/* Website appearance. App screenshots and QR codes keep their original colors. */
:root {
  --site-bg:#fff; --site-surface:#f3f6fa; --site-raised:#fff; --site-soft:#eaf0f8;
  --site-ink:#192a3c; --site-muted:#637287; --site-line:#e3eaf2; --site-accent:#386ce6;
}
.site-theme-picker { position:relative; display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:10px; background:transparent; color:var(--site-muted); font:inherit; cursor:pointer; }
.site-theme-picker[hidden] { display:none!important; }
.site-theme-picker:hover,.site-theme-picker:focus-visible { background:var(--site-soft); color:var(--site-accent); }
.site-theme-picker:focus-visible { outline:2px solid var(--site-accent); outline-offset:2px; }
.site-theme-symbol { display:none; pointer-events:none; line-height:0; }
html[data-theme-preference="system"] [data-theme-symbol="system"],html[data-theme-preference="light"] [data-theme-symbol="light"],html[data-theme-preference="dark"] [data-theme-symbol="dark"] { display:block; }
.site-document-appearance { display:flex; justify-content:flex-end; align-items:center; gap:8px; max-width:1120px; padding:12px 24px 0; margin:auto; font:13px/1.5 system-ui,sans-serif; color:var(--site-muted); }
.site-document-appearance .site-theme-picker { width:auto; min-height:44px; padding:8px 12px; color:var(--site-ink); background:var(--site-raised); border:1px solid var(--site-line); border-radius:8px; }
.site-document-appearance .site-theme-picker:hover { background:var(--site-soft); }
@media(max-width:380px) { html[lang="en"] body #site-header .site-brand-name { max-width:76px; white-space:normal; font-size:12px!important; } }

@media screen {
html[data-theme="dark"] {
  color-scheme:dark;
  --site-bg:#101720; --site-surface:#18222e; --site-raised:#1e2b3a; --site-soft:#25354a;
  --site-ink:#e1e9f3; --site-muted:#a9b9cb; --site-line:#334458; --site-accent:#9abaff;
  --text-primary:var(--site-ink); --text-secondary:var(--site-muted); --text-tertiary:#9baec3;
  --background:var(--site-bg); --surface-light:var(--site-surface); --surface-medium:var(--site-raised); --surface-dark:var(--site-line);
  --primary-color:var(--site-accent); --secondary-color:#8daff8; --primary-dark:#b3ccff;
  --glass-effect:#1e2b3ae6; --glass-border:1px solid var(--site-line);
  --shadow-sm:0 2px 6px #0003; --shadow-md:0 6px 16px #0003; --shadow-lg:0 10px 26px #0004;
  background:var(--site-bg);
}
html[data-theme="dark"] body { background:var(--site-bg); color:var(--site-ink); }
html[data-theme="dark"] body #site-header { background:#101720f5!important; color:var(--site-ink); border-bottom-color:var(--site-line)!important; }
html[data-theme="dark"] body #site-header :is(.logo>a,.site-brand-name) { color:var(--site-ink)!important; }
html[data-theme="dark"] body #site-header :is(.nav-links a,.lang-switcher__trigger,.lang-switcher__option) { color:var(--site-muted)!important; }
html[data-theme="dark"] body #site-header :is(.nav-links a:hover,.nav-links a[aria-current="page"],.lang-switcher__option.is-active) { color:var(--site-accent)!important; }
html[data-theme="dark"] body #site-header .nav-links a.nav-cta { color:#fff!important; }
html[data-theme="dark"] body #site-header nav .hamburger span { background:var(--site-muted)!important; }
html[data-theme="dark"] body #site-header nav .hamburger.active { background:var(--site-soft)!important; }
html[data-theme="dark"] .lang-switcher__menu { background:var(--site-raised); border-color:var(--site-line); box-shadow:0 12px 32px #0005; }
html[data-theme="dark"] .lang-switcher__option:hover,html[data-theme="dark"] .lang-switcher__option.is-active { background:var(--site-soft); }
html[data-theme="dark"] :is(.footer,.footer__desktop,.footer__mobile) { background:#0d141d!important; border-color:var(--site-line)!important; }
html[data-theme="dark"] :is(.footer__logo-title,.footer__social-title,.footer__links-title) { color:var(--site-ink)!important; }
html[data-theme="dark"] :is(.footer__logo-description,.footer__link,.footer__mobile-link,.footer__mobile-copyright,.footer__mobile-copyright p,.footer__mobile-copyright a,.footer__copyright p,.footer__copyright a) { color:var(--site-muted)!important; }
html[data-theme="dark"] .back-to-top { background:var(--site-raised); color:var(--site-accent); border-color:var(--site-line); }
html[data-theme="dark"] :is(a,button,select,summary,input):focus-visible { outline-color:var(--site-accent)!important; }

/* Home, showcase and shared product components. */
html[data-theme="dark"] :is(.product-shell,.showcase-site,.features-site,.download-site,.home-intro,.launcher-features,.product-modes,.showcase-page) { background:var(--site-bg); color:var(--site-ink); }
html[data-theme="dark"] :is(.home-intro h1,.lf-heading h2,.lf-copy h3,.product-modes h2,.product-modes figcaption strong,.connect-promo h2,.showcase-page h1,.showcase-page h2,.showcase-page h3) { color:var(--site-ink); }
html[data-theme="dark"] :is(.hi-label,.hi-body,.hi-quick span,.home-intro figcaption,.lf-heading p,.lf-copy p,.lf-copy li,.lf-note,.pm-note,.product-modes figcaption,.connect-promo p,.connect-promo small,.showcase-page p) { color:var(--site-muted); }
html[data-theme="dark"] :is(.home-intro h1 span,.lf-copy a,.hi-actions a:not(.hi-primary),.connect-promo a,.connect-promo .connect-promo-label,.sc-inline-link,.sc-bottom a,.showcase-page .sc-kicker,.sc-categories a) { color:var(--site-accent); }
html[data-theme="dark"] :is(.lf-card,.product-modes figure,.connect-promo,.pm-tabs,.feature-art) { background:var(--site-surface); border-color:var(--site-line); color:var(--site-ink); }
html[data-theme="dark"] :is(.hi-quick,.sc-categories,.sc-feature-section,.sc-bottom,.sc-feature-list article) { border-color:var(--site-line); }
html[data-theme="dark"] .pm-tabs button { color:var(--site-muted); }
html[data-theme="dark"] .pm-tabs button[aria-selected="true"] { background:var(--site-soft); color:var(--site-ink); }
html[data-theme="dark"] :is(.sc-tool-icon,.sc-tools article .sc-tool-icon) { background:var(--site-soft); color:var(--site-accent); }
html[data-theme="dark"] :is(.feature-art p,.feature-art figcaption,.art-trigger small,.art-status,.art-tire small,.art-phones span) { color:var(--site-muted); }
html[data-theme="dark"] :is(.art-trigger,.art-action,.art-files,.art-tire,.art-devices span,.art-themes span) { background:var(--site-raised); border-color:var(--site-line); color:var(--site-ink); }
html[data-theme="dark"] :is(.art-transfer,.art-file-head>span) { background:var(--site-soft); color:var(--site-accent); }
html[data-theme="dark"] .art-file-row { border-color:var(--site-line); }
html[data-theme="dark"] .feature-art svg { color:var(--site-accent); }
/* Match Astro's scoped component rules without changing the day palette. */
html[data-theme="dark"] body :is(.home-intro,.launcher-features,.product-modes,.connect-promo,.feature-art) :is(h1,h2,h3,h4,strong) { color:var(--site-ink)!important; }
html[data-theme="dark"] body :is(.home-intro,.launcher-features,.product-modes,.connect-promo,.feature-art) :is(p,li,small,figcaption) { color:var(--site-muted)!important; }
html[data-theme="dark"] body :is(.home-intro,.launcher-features,.product-modes,.connect-promo,.feature-art) :is(.hi-quick span,.art-phones span) { color:var(--site-muted)!important; }
html[data-theme="dark"] body :is(.pm-tabs,.product-modes figure) { background:var(--site-surface)!important; border-color:var(--site-line)!important; }
html[data-theme="dark"] body .pm-tabs button { color:var(--site-muted)!important; }
html[data-theme="dark"] body .pm-tabs button[aria-selected="true"] { background:var(--site-soft)!important; color:var(--site-ink)!important; }
html[data-theme="dark"] body .product-modes figcaption strong { color:var(--site-ink)!important; }
html[data-theme="dark"] body.product-shell .music-promo { background:var(--site-bg); }
html[data-theme="dark"] body.product-shell .music-promo a { background:var(--site-soft); color:var(--site-ink); }
html[data-theme="dark"] body.product-shell :is(.home-intro h1 span,.lf-copy a,.hi-actions a:not(.hi-primary),.connect-promo a,.connect-promo .connect-promo-label) { color:var(--site-accent)!important; }
html[data-theme="dark"] body :is(.art-devices span,.art-file-head>span,.art-themes span) { background:var(--site-raised)!important; color:var(--site-accent)!important; border-color:var(--site-line)!important; }
html[data-theme="dark"] :is(.sc-categories span,.product-modes figcaption>span) { color:var(--site-muted)!important; }

/* Feature cards and their inline tools. */
html[data-theme="dark"] .features-page { --fx-ink:var(--site-ink); --fx-muted:var(--site-muted); --fx-blue:var(--site-accent); }
html[data-theme="dark"] .fx-card { background:var(--site-surface); border-color:var(--site-line); }
html[data-theme="dark"] .fx-card-automation { background:#1b2a43; }
html[data-theme="dark"] :is(.fx-card-vehicle,.fx-card-companion) { background:#172b2b; }
html[data-theme="dark"] :is(.fx-card-vehicle .fx-eyebrow,.fx-card-companion .fx-eyebrow) { color:#9cceba; }
html[data-theme="dark"] :is(.fx-directory,.fx-feature-overview,.fx-detail-grid article+article,.fx-next) { border-color:var(--site-line); }
html[data-theme="dark"] .fx-feature-overview { background:#ffffff03; }
html[data-theme="dark"] :is(.fx-directory a,.fx-tags li,.fx-visual figcaption,.fx-preview-bar>span,.fx-routine-note,.fx-device-status,.fx-device-labels,.fx-phone-shot span,.features-page .fx-note) { color:var(--site-muted); }
html[data-theme="dark"] .fx-directory a:hover { background:var(--site-soft); color:var(--site-accent); }
html[data-theme="dark"] .fx-directory svg { color:var(--site-accent); }
html[data-theme="dark"] .fx-switch { background:var(--site-soft); }
html[data-theme="dark"] .fx-switch button { color:var(--site-muted); }
html[data-theme="dark"] .fx-switch button[aria-selected="true"] { background:#385271; color:#f0f5ff; }
html[data-theme="dark"] :is(.fx-primary,.features-page .fx-primary) { background:#386ce6; color:#fff; }
html[data-theme="dark"] :is(.fx-tool,.fx-tool-featured,.fx-tool-featured:nth-child(2)) { background:var(--site-surface); border-color:var(--site-line); }
html[data-theme="dark"] :is(.fx-tool-example,.fx-app-example,.fx-key-input,.fx-tire,.fx-file-stack>div,.fx-phone-outline,.fx-headunit-outline) { background:var(--site-raised); border-color:var(--site-line); box-shadow:none; }
html[data-theme="dark"] :is(.fx-tool .fx-tool-icon,.fx-app-tile-icon,.fx-app-tiles>div .fx-app-tile-icon,.fx-file-stack>div>span) { background:var(--site-soft); color:var(--site-accent); }
html[data-theme="dark"] :is(.fx-tool-highlights li,.fx-key-input,.fx-key-action,.fx-app-example-heading,.fx-app-tiles>div,.fx-file-stack strong,.fx-tire strong) { color:var(--site-ink); }
html[data-theme="dark"] :is(.fx-tool-example figcaption,.features-page .fx-tool-note,.fx-tire small,.fx-transfer-devices small,.fx-transfer-scene>p) { color:var(--site-muted); border-color:var(--site-line); }
html[data-theme="dark"] .fx-app-example-heading>span:last-child { background:#294238; color:#b4dfc9; }

/* Expanded feature stories. Preserve original app pixels in both site modes. */
html[data-theme="dark"] .feature-discovery { --fd-ink:var(--site-ink); --fd-muted:var(--site-muted); }
html[data-theme="dark"] .fd-card { --fd-ink:var(--site-ink); --fd-muted:var(--site-muted); --fd-accent:var(--site-accent); background:var(--site-surface); border-color:var(--site-line); }
html[data-theme="dark"] .fd-card-smart-island { background:#1d2c43; }
html[data-theme="dark"] :is(.fd-card-traffic-guidance,.fd-card-live-obd) { background:#172a27; --fd-accent:#9cceba; }
html[data-theme="dark"] .fd-card-cockpit-clocks { background:#282622; --fd-accent:#d8c4a3; }
html[data-theme="dark"] :is(.fd-collection-heading,.feature-discovery .fd-requirement) { border-color:var(--site-line); }
html[data-theme="dark"] :is(.feature-discovery .fd-eyebrow,.fd-directory a) { color:var(--site-accent); }
html[data-theme="dark"] .fd-directory a { background:var(--site-surface); border-color:var(--site-line); }
html[data-theme="dark"] .fd-directory a:hover { background:var(--site-soft); }
html[data-theme="dark"] :is(.fd-source-stage,.fd-source-themes img) { background:var(--site-raised); border-color:var(--site-line); }
html[data-theme="dark"] .fd-source-island { background:#111c2c; }

/* SmartCar Connect uses one shared palette throughout its panels. */
html[data-theme="dark"] .connect-page { --cp-bg:var(--site-bg); --cp-ink:var(--site-ink); --cp-muted:var(--site-muted); --cp-soft:var(--site-surface); --cp-line:var(--site-line); --cp-blue:var(--site-accent); --cp-blue-soft:var(--site-soft); --cp-green:#8ecdb0; --cp-shadow:#0005; }
html[data-theme="dark"] .cp-button { background:#386ce6; color:#fff; }
html[data-theme="dark"] .cp-member-family { background:#294238; }
html[data-theme="dark"] .cp-feature-chips li+li { border-color:var(--site-line); }

/* Support, download and contact retain their existing layout. */
html[data-theme="dark"] :is(.help-page,.help-hero,.help-topics,.help-documents,.help-search-results,.download-page,.contact-content,.support-section,.mission-section,.contact-methods,.system-requirements,.download-instructions) { background:var(--site-bg)!important; color:var(--site-ink); }
html[data-theme="dark"] :is(.help-search-shell,.help-topic-card,.help-document-column,.help-result-item,.channel-card,.version-info-section,.vg-card,.vg-card.recommended,.vg-card.warning-card,.instructions-content,.faq-q,.faq-a,.hero-card,.contact-card,.contact-method,.support-card,.mission-card,.requirement-item,.qr-content,.qr-popover-content) { background:var(--site-surface)!important; border-color:var(--site-line)!important; color:var(--site-ink); box-shadow:none; }
html[data-theme="dark"] :is(.help-page,.download-page,.contact-content) :is(h1,h2,h3,h4,h5,strong) { color:var(--site-ink); }
html[data-theme="dark"] :is(.help-page,.download-page,.contact-content) :is(p,li,small,.meta-label,.stat-label,.faq-a,.help-result-meta,.help-result-desc,.help-topic-card small,.help-section-title p) { color:var(--site-muted); }
html[data-theme="dark"] :is(.help-search-input,.help-result-title,.help-link-list a,.help-topic-card strong,.faq-q,.step-body h5,.card-info h3,.version-tag-large,.version-size,.version-date) { color:var(--site-ink); }
html[data-theme="dark"] :is(.help-search-input::placeholder,.help-results-summary,.help-results-empty,.help-results-empty span) { color:var(--site-muted); }
html[data-theme="dark"] :is(.help-search-clear,.step-body code,.faq-a code,.instruction-tab,.tab-qr-btn,.tab-download-btn.secondary) { background:var(--site-raised)!important; color:var(--site-ink)!important; border-color:var(--site-line)!important; }
html[data-theme="dark"] :is(.help-link-list a,.help-document-column,.faq-item,.install-step,.version-meta-divider) { border-color:var(--site-line); }
html[data-theme="dark"] :is(.channel-card.active,.instruction-tab.active) { background:var(--site-soft)!important; border-color:#799dde!important; color:var(--site-ink)!important; }
html[data-theme="dark"] :is(.vg-quick-tip,.install-alt-tip,.product-access-note) { background:var(--site-surface); color:var(--site-muted); border-color:var(--site-line); }
html[data-theme="dark"] :is(.download-hero h1,.contact-content .hero-content h1) { background:none; color:var(--site-ink); -webkit-text-fill-color:var(--site-ink); }
html[data-theme="dark"] :is(.qr-code,.qr-popover-code) { background:#fff; }
html[data-theme="dark"] :is(.help-page,.download-page,.contact-content) a:not([class*="btn"]):not(.help-topic-card):not(.help-result-item) { color:var(--site-accent); }
html[data-theme="dark"] :is(.version-meta-group,.download-help-card,.highlight-list li,.community-section,.info-card,.community-group,.contact-link,.social-methods,.social-compact-item,.social-item,.mission-item,.support-item,.map-details,.form-card) { background:var(--site-surface)!important; border-color:var(--site-line)!important; box-shadow:none; }
html[data-theme="dark"] :is(.version-header-appstore,.instructions-tabs) { background:var(--site-raised); border-color:var(--site-line); }
html[data-theme="dark"] .version-meta-group .version-tag-large { color:var(--site-accent)!important; }
html[data-theme="dark"] .download-page :is(.card-info p,.vg-card-list li,.download-help-card span,.download-help-card p,.instructions-content p,.faq-a p) { color:var(--site-muted); }
html[data-theme="dark"] .download-page :is(.channel-card h3,.version-highlights h4,.download-help-card h3,.download-help-card strong) { color:var(--site-ink); }
html[data-theme="dark"] .download-captcha-dialog { background:var(--site-surface); color:var(--site-ink); border-color:var(--site-line); }
html[data-theme="dark"] :is(.download-captcha-challenge,.download-captcha-input,.download-captcha-refresh,.download-captcha-btn:not(.primary)) { background:var(--site-raised); color:var(--site-ink); border-color:var(--site-line); }
html[data-theme="dark"] :is(.download-captcha-dialog h3,.download-captcha-question) { color:var(--site-ink); }
html[data-theme="dark"] .download-captcha-hint { color:var(--site-muted); }
html[data-theme="dark"] .download-captcha-error { color:#ffaaa5; }
html[data-theme="dark"] .download-captcha-status-icon { background:var(--site-soft); color:var(--site-accent); }
html[data-theme="dark"] .download-captcha-btn.primary { background:#386ce6; color:#fff; }
html[data-theme="dark"] .contact-content :is(.hero-btn.primary,.btn-join,.btn-copy,.member-contact a) { background:#386ce6; color:#fff; }
html[data-theme="dark"] .contact-content .hero-btn.secondary { background:var(--site-raised); color:var(--site-ink); border-color:var(--site-line); }
html[data-theme="dark"] .tab-download-btn.disabled,html[data-theme="dark"] .tab-download-btn[disabled],html[data-theme="dark"] .tab-download-btn[aria-disabled="true"] { background:#334458!important; color:#c3cedd!important; }

/* Music keeps the dark cinematic scenes and softens its paper sections. */
html[data-theme="dark"] body.music-page { --m-paper:var(--site-surface); --m-ink:var(--site-ink); --m-muted:var(--site-muted); --m-violet:#c1a6ff; --m-line:#596b83; }
html[data-theme="dark"] :is(.music-main .music-everyday,.mx-details) { background:var(--site-surface); color:var(--site-ink); }
html[data-theme="dark"] :is(.music-everyday h2,.music-everyday h3) { color:var(--site-ink); }
html[data-theme="dark"] :is(.music-everyday article p,.music-main .music-everyday-note,.mx-details .mx-rail-hint) { color:var(--site-muted); border-color:var(--site-line); }
html[data-theme="dark"] .mx-details-head .music-eyebrow { color:#c1a6ff; }
html[data-theme="dark"] .mx-details-aura { background:radial-gradient(ellipse at 50% 40%,#332449,#18222e 70%); }
html[data-theme="dark"] .mx-details-aura i { display:none; }
html[data-theme="dark"] .mx-card { --kick:#c1a6ff; background:var(--site-raised); border-color:var(--site-line); box-shadow:0 12px 25px #0003; }
html[data-theme="dark"] .mx-card-art { filter:brightness(.76); }
html[data-theme="dark"] .mx-rail-btn { background:var(--site-raised); color:var(--site-ink); border-color:#71839b; }
html[data-theme="dark"] .mx-rail-btn:hover { background:var(--site-soft); }

/* Browser copies of reading documents. Native/offline help resources are untouched. */
html[data-theme="dark"] .doc-page { --doc-bg:var(--site-bg); --doc-surface:var(--site-surface); --doc-surface-soft:var(--site-raised); --doc-text:var(--site-ink); --doc-muted:var(--site-muted); --doc-border:var(--site-line); --doc-border-soft:var(--site-line); --doc-blue:var(--site-accent); --doc-green:#8ecdb0; --doc-orange:#dfbc87; --doc-red:#ffaaa5; --doc-shadow:none; color:var(--site-ink); }
html[data-theme="dark"] :is(.doc-card,.doc-table,.doc-legal) { background:var(--site-surface); color:var(--site-ink); border-color:var(--site-line); box-shadow:none; }
html[data-theme="dark"] :is(.doc-mini,.doc-page th,.doc-page code,.doc-page pre) { background:var(--site-raised); color:var(--site-ink); border-color:var(--site-line); }
html[data-theme="dark"] .doc-page :is(h1,h2,h3,h4) { color:var(--site-ink); }
html[data-theme="dark"] :is(.doc-page td,.doc-feedback,.doc-legal h2) { border-color:var(--site-line); }
html[data-theme="dark"] .doc-page :is(.doc-pill,.tag,[class^="tag-"]) { background:var(--site-soft); color:var(--site-ink); }
html[data-theme="dark"] .doc-page :is(.doc-callout,blockquote,.note,.tip,.warning,.important,.version-box) { background:var(--site-raised); color:var(--site-muted); border-color:var(--site-line); }
@media(max-width:1200px) {
  html[data-theme="dark"] body #site-header .nav-links { background:var(--site-raised)!important; border-color:var(--site-line)!important; }
  html[data-theme="dark"] body #site-header .nav-links a[aria-current="page"] { background:var(--site-soft)!important; }
}
}
@media print { .site-theme-picker,.site-document-appearance { display:none!important; } }
