/* Shared public automotive theme. Loaded last to normalize legacy route styles. */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --color-background: #03070d;
  --color-surface: #08111c;
  --color-surface-elevated: #0d1825;
  --color-border: #18334f;
  --color-border-bright: #087cff;
  --color-primary: #075ee8;
  --color-primary-bright: #1684ff;
  --color-text: #f4f6f8;
  --color-text-muted: #a9b3c0;
  --color-text-subtle: #788594;
  --theme-shadow: 0 18px 50px rgba(0,0,0,.28);
  --theme-header: rgba(3,7,13,.9);
  --theme-input: #07101a;
  --theme-soft: #0a1521;
  --ca-blue: var(--color-primary-bright);
  --ca-blue-dark: var(--color-primary);
  --ca-ink: var(--color-text);
  --ca-slate: var(--color-text-muted);
  --ca-border: var(--color-border);
  --ca-surface: var(--color-surface);
  --ca-soft: var(--theme-soft);
  --ca-steel: var(--color-surface-elevated);
  --ca-track: var(--color-background);
  --color-page:#03070d;--color-page-alt:#050b13;--color-surface-1:#08111c;--color-surface-2:#0d1825;--color-surface-3:#122033;--color-surface-hover:#162841;
  --color-border-subtle:#1b2a3a;--color-border-default:#294057;--color-border-strong:#3e5e7d;--color-border-accent:#1684ff;
  --color-primary-hover:#1677f2;--color-primary-active:#0450ca;--color-primary-soft:rgba(22,132,255,.14);--color-text-primary:#f5f7fa;--color-text-secondary:#bec8d3;--color-text-disabled:#5f6c79;--color-text-on-primary:#fff;
  --color-success:#32c48d;--color-warning:#f3b33d;--color-danger:#ed5b68;--color-info:#48a7ff;--color-focus-ring:#63b2ff;--shadow-panel:0 16px 40px rgba(0,0,0,.28);--shadow-float:0 22px 60px rgba(0,0,0,.42);--radius-sm:8px;--radius-md:12px;--radius-lg:18px;--radius-xl:24px;
}
html[data-theme="light"] {
  color-scheme: light;
  --color-background: #f2f5f8;
  --color-surface: #ffffff;
  --color-surface-elevated: #e9eff5;
  --color-border: #c5d3e0;
  --color-border-bright: #075ee8;
  --color-primary: #075ee8;
  --color-primary-bright: #096bd9;
  --color-text: #101a25;
  --color-text-muted: #536273;
  --color-text-subtle: #6f7e8d;
  --theme-shadow: 0 16px 40px rgba(16,36,58,.1);
  --theme-header: rgba(255,255,255,.94);
  --theme-input: #ffffff;
  --theme-soft: #e9eff5;
  --ca-blue: var(--color-primary);
  --ca-blue-dark: #064da9;
  --ca-ink: var(--color-text);
  --ca-slate: var(--color-text-muted);
  --ca-border: var(--color-border);
  --ca-surface: var(--color-surface);
  --ca-soft: var(--theme-soft);
  --ca-steel: #dce6ef;
  --ca-track: #dce6ef;
  --color-page:#f2f5f8;--color-page-alt:#e9eff5;--color-surface-1:#fff;--color-surface-2:#edf2f7;--color-surface-3:#e2eaf2;--color-surface-hover:#d9e5f0;--color-border-subtle:#d7e1ea;--color-border-default:#b8c8d6;--color-border-strong:#8299ad;--color-text-primary:#101a25;--color-text-secondary:#46586a;--color-text-disabled:#8795a5;
}
html[data-theme] body{background:var(--color-background);color:var(--color-text);transition:background-color .2s,color .2s}
html[data-theme] body:not(:has(.public-home)) main{background:var(--color-background);min-height:60vh}
html[data-theme] body:not(:has(.public-home)) h1,html[data-theme] body:not(:has(.public-home)) h2,html[data-theme] body:not(:has(.public-home)) h3,html[data-theme] body:not(:has(.public-home)) h4,html[data-theme] body:not(:has(.public-home)) h5{color:var(--color-text);font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;font-weight:800}
html[data-theme] body:not(:has(.public-home)) p,html[data-theme] body:not(:has(.public-home)) li,html[data-theme] body:not(:has(.public-home)) small{color:var(--color-text-muted)}
html[data-theme] a{transition:color .18s,border-color .18s,background-color .18s}

/* Shared navigation and theme control */
html[data-theme] .top-bar{background:var(--color-background);border-bottom:1px solid var(--color-border);color:var(--color-text-muted)}
html[data-theme] .navbar,html[data-theme] .navbar.bg-dark,html[data-theme] .navbar.nav-sticky{background:rgba(3,7,13,.94)!important;backdrop-filter:blur(18px);border-bottom:1px solid #18334f;box-shadow:none;color:#f4f6f8}
html[data-theme] .navbar-dark .navbar-nav .nav-link,html[data-theme] .navbar-dark .navbar-brand,html[data-theme] .nav-auth-link{color:#f4f6f8!important}
html[data-theme] .navbar-dark .navbar-nav .nav-link:hover,html[data-theme] .navbar-dark .navbar-nav .nav-link:focus-visible,html[data-theme] .navbar-dark .navbar-nav .nav-link.active{color:#1684ff!important}
.site-theme-toggle{align-items:center;background:#0d1825;border:1px solid #18334f;border-radius:999px;color:#f4f6f8;display:inline-flex;flex:0 0 auto;gap:7px;justify-content:center;margin-left:12px;min-height:42px;padding:0 13px;transition:.18s}
.site-theme-toggle:hover,.site-theme-toggle:focus-visible{border-color:var(--color-border-bright);box-shadow:0 0 0 3px rgba(22,132,255,.16);outline:0}.site-theme-toggle i{color:var(--color-primary-bright)}.theme-icon-light{display:none}html[data-theme="light"] .theme-icon-light{display:inline-block}html[data-theme="light"] .theme-icon-dark{display:none}.theme-toggle-label{font-size:.72rem;font-weight:700;text-transform:uppercase}
html[data-theme] .site-mega-menu,html[data-theme] .account-dropdown,html[data-theme] .navbar .dropdown-menu{background:var(--color-surface)!important;border-color:var(--color-border)!important;box-shadow:var(--theme-shadow)}
html[data-theme] .dropdown-item,html[data-theme] .dropdown-item strong,html[data-theme] .mega-menu-heading{color:var(--color-text)!important}html[data-theme] .dropdown-item small{color:var(--color-text-muted)!important}html[data-theme] .dropdown-item:hover,html[data-theme] .dropdown-item:focus,html[data-theme] .dropdown-item:focus-visible{background:var(--color-surface-elevated)!important;color:var(--color-text)!important}
html[data-theme] .site-mega-menu .dropdown-item:hover,html[data-theme] .site-mega-menu .dropdown-item:focus,html[data-theme] .site-mega-menu .dropdown-item:focus-visible,html[data-theme] .site-mega-menu .dropdown-item.active,html[data-theme] .site-mega-menu .dropdown-item[aria-current="page"]{background:var(--color-primary)!important;color:#fff!important;outline-color:var(--color-focus-ring)}
html[data-theme] .site-mega-menu .dropdown-item:hover strong,html[data-theme] .site-mega-menu .dropdown-item:focus strong,html[data-theme] .site-mega-menu .dropdown-item:focus-visible strong,html[data-theme] .site-mega-menu .dropdown-item.active strong,html[data-theme] .site-mega-menu .dropdown-item[aria-current="page"] strong{color:#fff!important}
html[data-theme] .site-mega-menu .dropdown-item:hover small,html[data-theme] .site-mega-menu .dropdown-item:focus small,html[data-theme] .site-mega-menu .dropdown-item:focus-visible small,html[data-theme] .site-mega-menu .dropdown-item.active small,html[data-theme] .site-mega-menu .dropdown-item[aria-current="page"] small{color:#dbeafe!important}
html[data-theme] .site-mega-menu .dropdown-item:hover i,html[data-theme] .site-mega-menu .dropdown-item:focus i,html[data-theme] .site-mega-menu .dropdown-item:focus-visible i,html[data-theme] .site-mega-menu .dropdown-item.active i,html[data-theme] .site-mega-menu .dropdown-item[aria-current="page"] i{color:#fff!important}
html[data-theme] .account-dropdown{color:var(--color-text)}html[data-theme] .account-dropdown .account-summary strong,html[data-theme] .account-dropdown .account-workspace-link strong,html[data-theme] .account-dropdown .account-menu-empty strong{color:var(--color-text)!important}html[data-theme] .account-dropdown .account-summary small,html[data-theme] .account-dropdown .account-workspace-link small,html[data-theme] .account-dropdown .account-menu-empty small{color:var(--color-text-muted)!important}html[data-theme] .account-menu-heading{background:rgba(22,132,255,.16);border-left-color:var(--color-primary-bright);color:#75baff}html[data-theme] .account-summary-label{color:#75baff}html[data-theme] .account-role-badge{background:rgba(22,132,255,.18);color:#91c8ff}html[data-theme] .account-menu-empty{background:var(--color-surface-elevated);border-color:var(--color-border);color:var(--color-text)}html[data-theme] .account-dropdown .account-logout{color:#ffb4ba!important}html[data-theme] .account-dropdown .account-logout i{color:#ff7f8b!important}

/* Cinematic page introductions */
html[data-theme] body:not(:has(.public-home)) .page-header{background-color:#06101b;background-image:linear-gradient(90deg,rgba(3,7,13,.96),rgba(3,7,13,.46)),url('/assets/img/home/car-club-hero-1600.jpg');background-position:center 55%;background-size:cover;border-bottom:1px solid var(--color-border);margin:0;padding:clamp(65px,9vw,120px) 0}
html[data-theme] .page-header.clubs-page-hero{background-image:linear-gradient(90deg,rgba(3,7,13,.94),rgba(3,7,13,.38)),url('/assets/img/home/clubs-hero.png')!important}
html[data-theme] .page-header.events-page-hero{background-image:linear-gradient(90deg,rgba(3,7,13,.94),rgba(3,7,13,.38)),url('/assets/img/home/events-hero.png')!important}
html[data-theme] .page-header.marketplace-page-hero{background-image:linear-gradient(90deg,rgba(3,7,13,.94),rgba(3,7,13,.38)),url('/assets/img/home/marketplace-hero.png')!important}
html[data-theme] .page-header.community-chat-hero{background-image:linear-gradient(90deg,rgba(3,7,13,.94),rgba(3,7,13,.38)),url('/assets/img/home/club-chat-hero.png')!important}
html[data-theme] .page-header.routes-page-hero{background-image:linear-gradient(90deg,rgba(3,7,13,.94),rgba(3,7,13,.38)),url('/assets/img/home/routes-hero.png')!important}
html[data-theme] body:not(:has(.public-home)) .page-header h1,html[data-theme] body:not(:has(.public-home)) .page-header h2{color:#fff;font-size:clamp(2.8rem,6vw,5.4rem);letter-spacing:-.02em;line-height:.95;text-transform:uppercase}
html[data-theme] body:not(:has(.public-home)) .page-header p,html[data-theme] body:not(:has(.public-home)) .page-header a{color:#d7e0e9}
html[data-theme] body:not(:has(.public-home)) .section-header p,html[data-theme] body:not(:has(.public-home)) .portal-eyebrow,html[data-theme] body:not(:has(.public-home)) .garage-eyebrow,html[data-theme] body:not(:has(.public-home)) .detail-eyebrow{color:var(--color-primary-bright)!important;font-family:"Barlow Condensed",Arial,sans-serif;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
html[data-theme] body:not(:has(.public-home)) .section-header h2{font-size:clamp(2.4rem,5vw,4.4rem);text-transform:uppercase}

/* Listings, cards and directory surfaces */
html[data-theme] .listing-page,html[data-theme] .community-page,html[data-theme] .market-page,html[data-theme] .garage-page,html[data-theme] .route-page{background:var(--color-background)}
html[data-theme] .listing-guide,html[data-theme] .listing-toolbar,html[data-theme] .listing-refine-bar,html[data-theme] .listing-results-bar,html[data-theme] .community-card,html[data-theme] .listing-simple-row,html[data-theme] .market-card,html[data-theme] .garage-dark-card,html[data-theme] .dg-vehicle-card,html[data-theme] .route-detail-main,html[data-theme] .route-detail-panel,html[data-theme] .detail-card,html[data-theme] .portal-card,html[data-theme] .competition-card,html[data-theme] .portfolio-card{background:var(--color-surface)!important;border-color:var(--color-border)!important;box-shadow:var(--theme-shadow);color:var(--color-text)}
html[data-theme] .community-card{border:1px solid var(--color-border);border-radius:12px;overflow:hidden}html[data-theme] .community-card:hover{border-color:var(--color-border-bright)!important;box-shadow:0 18px 50px rgba(7,94,232,.12);transform:translateY(-3px)}
html[data-theme] .community-card h3,html[data-theme] .community-card h3 a,html[data-theme] .listing-simple-copy h3 a,html[data-theme] .listing-simple-metric strong,html[data-theme] .market-card h2{color:var(--color-text)!important}
html[data-theme] .community-card p,html[data-theme] .listing-simple-copy p,html[data-theme] .listing-simple-metric,html[data-theme] .listing-summary{color:var(--color-text-muted)!important}
html[data-theme] .community-card-img{background:var(--color-surface-elevated)}html[data-theme] .community-card-foot,html[data-theme] .community-card-meta{border-color:var(--color-border)!important}
html[data-theme] .listing-filter-group .filter-btn,html[data-theme] .listing-view-toggle button,html[data-theme] .event-segmented button{background:var(--color-surface)!important;border-color:var(--color-border)!important;color:var(--color-text-muted)!important}
html[data-theme] .listing-filter-group .filter-btn.active,html[data-theme] .listing-filter-group .filter-btn.is-active,html[data-theme] .listing-view-toggle button.is-active,html[data-theme] .event-segmented button.active{background:var(--color-primary)!important;color:#fff!important}
html[data-theme] .listing-filter-chip,html[data-theme] .status-open,html[data-theme] .dg-pill{background:rgba(22,132,255,.12)!important;border-color:rgba(22,132,255,.3)!important;color:var(--color-primary-bright)!important}

/* Forms, tables, modals and content panels */
html[data-theme] .form-control,html[data-theme] input:not([type="checkbox"]):not([type="radio"]),html[data-theme] select,html[data-theme] textarea{background:var(--theme-input)!important;border-color:var(--color-border)!important;color:var(--color-text)!important}
html[data-theme] .form-control::placeholder,html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--color-text-subtle)!important}
html[data-theme] .form-control:focus,html[data-theme] input:focus,html[data-theme] select:focus,html[data-theme] textarea:focus{border-color:var(--color-border-bright)!important;box-shadow:0 0 0 3px rgba(22,132,255,.15)!important}
html[data-theme] label{color:var(--color-text)!important}html[data-theme] option{background:var(--color-surface);color:var(--color-text)}
html[data-theme] .modal-content,html[data-theme] .cookie-consent-inner,html[data-theme] .accessibility-drawer,html[data-theme] .message-modal-content{background:var(--color-surface)!important;border-color:var(--color-border)!important;color:var(--color-text)}
html[data-theme] .modal-header,html[data-theme] .modal-footer,html[data-theme] hr{border-color:var(--color-border)!important}
html[data-theme] .table{color:var(--color-text)}html[data-theme] .table td,html[data-theme] .table th{border-color:var(--color-border)!important}html[data-theme] .table-striped tbody tr:nth-of-type(odd){background:var(--theme-soft)}
html[data-theme] .btn-custom{background:var(--color-primary)!important;border-color:var(--color-primary)!important;color:#fff!important}html[data-theme] .btn-custom:hover{background:var(--color-primary-bright)!important;border-color:var(--color-primary-bright)!important;box-shadow:0 8px 24px rgba(7,94,232,.2)}
html[data-theme] .btn-outline-custom,html[data-theme] .btn-outline-secondary{background:transparent!important;border-color:var(--color-border)!important;color:var(--color-text)!important}html[data-theme] .btn-outline-custom:hover,html[data-theme] .btn-outline-secondary:hover{border-color:var(--color-primary-bright)!important;color:var(--color-primary-bright)!important}

/* Footer and utility surfaces */
html[data-theme] .footer{background:#02060b!important;border-top:1px solid #18334f;color:#a9b3c0}html[data-theme] .footer h2,html[data-theme] .footer a{color:#f4f6f8}html[data-theme] .footer a:hover{color:#1684ff}.footer-cookie-button{color:inherit}
html[data-theme="light"] .public-home{--color-background:#f2f5f8;--color-surface:#fff;--color-surface-elevated:#e9eff5;--color-border:#c5d3e0;--color-text:#101a25;--color-text-muted:#536273;--color-text-subtle:#6f7e8d;background:var(--color-background);color:var(--color-text)}
html[data-theme="light"] .public-home h1,html[data-theme="light"] .public-home .ph-hero h1,html[data-theme="light"] .public-home .ph-final h2{color:#fff}html[data-theme="light"] .public-home .ph-hero p,html[data-theme="light"] .public-home .ph-final p{color:#d9e1e9}html[data-theme="light"] .ph-product,html[data-theme="light"] .ph-market{background:#f2f5f8}html[data-theme="light"] .ph-journeys,html[data-theme="light"] .ph-events,html[data-theme="light"] .ph-drives,html[data-theme="light"] .ph-chat-feature{background:#e9eff5}

@media(max-width:991px){.site-theme-toggle{margin-left:auto;margin-right:8px}.theme-toggle-label{display:none}html[data-theme] .navbar .navbar-collapse{background:#03070d!important}.site-theme-toggle{height:42px;width:42px}}
@media(max-width:575px){html[data-theme] body:not(:has(.public-home)) .page-header{padding:55px 0}html[data-theme] body:not(:has(.public-home)) .page-header h1,html[data-theme] body:not(:has(.public-home)) .page-header h2{font-size:2.65rem}.community-card:hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{scroll-behavior:auto!important;transition:none!important}}

/* Shared discovery/search system */
.search-field-group{display:grid;gap:7px;min-width:min(100%,320px)}.listing-search-label{color:var(--color-text-primary)!important;font-size:.82rem;font-weight:700;margin:0}.listing-search{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-sm)!important;min-height:50px;position:relative}.listing-search:hover{border-color:var(--color-border-strong)!important}.listing-search:focus-within{background:var(--color-surface-3)!important;border-color:var(--color-border-accent)!important;box-shadow:0 0 0 3px rgba(99,178,255,.2)!important}.listing-search .form-control{min-height:48px!important;padding-right:46px!important}.search-clear-button{align-items:center;background:transparent;border:0;border-radius:6px;color:var(--color-text-secondary);display:flex;height:40px;justify-content:center;position:absolute;right:4px;top:4px;width:40px}.search-clear-button:hover,.search-clear-button:focus-visible{background:var(--color-surface-hover);color:#fff;outline:2px solid var(--color-focus-ring)}
.mobile-filter-controls{display:none}.mobile-filter-panel{display:contents}.active-filter-summary{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;min-height:0}.active-filter-label{color:var(--color-text-secondary);font-size:.78rem;font-weight:700}.active-filter-chip{background:var(--color-primary-soft);border:1px solid rgba(22,132,255,.38);border-radius:999px;color:var(--color-text-primary);font-size:.78rem;padding:7px 11px;text-transform:capitalize}.clear-all-filters{background:transparent;border:0;color:var(--color-info);font-size:.78rem;font-weight:700;min-height:38px;padding:6px 10px}.clear-all-filters:hover{text-decoration:underline}.listing-summary[aria-live],.listing-summary{color:var(--color-text-secondary)!important;font-weight:700}
.community-empty,.market-empty,.route-empty,.dg-empty{background:var(--color-surface-1)!important;border:1px dashed var(--color-border-default)!important;border-radius:var(--radius-md);color:var(--color-text-secondary)!important;min-height:180px;padding:34px!important;text-align:center}.community-empty:before,.market-empty:before{color:var(--color-info);content:'\f002';display:block;font:900 1.8rem 'Font Awesome 5 Free';margin-bottom:15px}.status-full,.status-closed,.status-sold{background:rgba(237,91,104,.13)!important;border:1px solid rgba(237,91,104,.38)!important;color:#ff9ca5!important}.status-pending{background:rgba(243,179,61,.14)!important;border:1px solid rgba(243,179,61,.4)!important;color:#ffd47b!important}.status-open,.status-active,.status-available{background:rgba(50,196,141,.13)!important;border:1px solid rgba(50,196,141,.38)!important;color:#79e1ba!important}
.listing-page input[type=checkbox],.listing-page input[type=radio]{accent-color:var(--color-primary);height:20px;width:20px}.listing-page .event-available-toggle{min-height:44px}.listing-page button:disabled,.listing-page input:disabled,.listing-page select:disabled{cursor:not-allowed;opacity:.55}.listing-page button:focus-visible,.listing-page a:focus-visible{box-shadow:0 0 0 3px rgba(99,178,255,.28)!important;outline:2px solid var(--color-focus-ring)!important;outline-offset:2px}
@media(max-width:767px){.listing-toolbar{position:static!important}.listing-toolbar .listing-filter-group{display:none!important}.mobile-filter-controls{display:flex;margin:12px 0}.mobile-filter-toggle{align-items:center;background:var(--color-surface-2);border:1px solid var(--color-border-default);border-radius:var(--radius-sm);color:var(--color-text-primary);display:flex;font-weight:700;gap:9px;justify-content:center;min-height:48px;padding:0 18px;width:100%}.mobile-filter-toggle b{align-items:center;background:var(--color-primary);border-radius:999px;color:#fff;display:inline-flex;font-size:.7rem;height:22px;justify-content:center;min-width:22px}.mobile-filter-panel{background:var(--color-surface-1);border:1px solid var(--color-border-default);border-radius:var(--radius-md);display:none;margin-bottom:16px;padding:14px}.mobile-filter-panel.is-open{display:grid;gap:14px}.mobile-filter-panel .listing-filter-group{display:grid!important;grid-template-columns:1fr 1fr}.mobile-filter-panel .club-refine-bar,.mobile-filter-panel .event-refine-bar,.mobile-filter-panel .listing-refine-bar{display:grid!important;gap:12px;margin:0!important}.mobile-filter-panel button,.mobile-filter-panel select,.mobile-filter-panel label{min-height:44px}.search-field-group{min-width:100%;width:100%}.active-filter-summary{overflow-x:auto;flex-wrap:nowrap}.active-filter-label,.active-filter-chip,.clear-all-filters{flex:0 0 auto}}

/* Marketplace discovery and form treatment */
.market-panel{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-panel);display:flex;flex-direction:column;gap:8px}.market-panel>label:not(.market-terms-check){font-size:.82rem;font-weight:700;margin:6px 0 0}.market-results-toolbar{align-items:end!important;gap:28px!important}.market-search-controls{display:grid;gap:7px;max-width:620px;width:100%}.market-search-controls>label{font-size:.82rem;font-weight:700;margin:0}.market-filter-row{display:grid;gap:10px;grid-template-columns:1fr 1fr;margin-top:5px}.market-filter-row label{color:var(--color-text-secondary)!important;font-size:.75rem;font-weight:700}.market-filter-row select{margin-top:5px;min-height:44px}.market-results-toolbar .listing-search{position:relative}.market-results-toolbar .listing-search>i{color:var(--color-text-muted);left:16px;position:absolute;top:17px;z-index:1}.market-results-toolbar .listing-search input{padding-left:45px!important}.market-empty{grid-column:1/-1}.market-status:not(:empty){background:var(--color-primary-soft);border:1px solid var(--color-border-accent);border-radius:var(--radius-sm);color:var(--color-text-primary);padding:10px 12px}
@media(max-width:767px){.market-results-toolbar{align-items:stretch!important;display:grid!important}.market-filter-row{grid-template-columns:1fr}.market-search-controls{max-width:none}.market-layout{display:grid!important}.market-panel{position:static!important}}

.listing-skeleton{background:var(--color-surface-1);border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);min-height:340px;overflow:hidden;padding:20px}.listing-skeleton span,.listing-skeleton i{animation:listing-pulse 1.5s ease-in-out infinite;background:linear-gradient(90deg,var(--color-surface-2),var(--color-surface-3),var(--color-surface-2));background-size:200% 100%;border-radius:6px;display:block}.listing-skeleton span{height:165px;margin:-20px -20px 24px}.listing-skeleton i{height:14px;margin:12px 0}.listing-skeleton i:nth-child(2){height:25px;width:72%}.listing-skeleton i:nth-child(4){width:48%}@keyframes listing-pulse{0%{background-position:200% 0}100%{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.listing-skeleton span,.listing-skeleton i{animation:none}}

/* Discovery layout correction: one coherent toolbar, no legacy white strips. */
.listing-page .listing-toolbar{align-items:end!important;background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-panel);display:grid!important;gap:14px!important;grid-template-columns:minmax(0,1fr) auto!important;margin:0 0 12px!important;padding:14px!important;position:static!important}
.listing-page .club-search-fields,.listing-page .event-search-fields{align-items:end!important;display:grid!important;gap:10px!important;grid-template-columns:minmax(280px,1fr) minmax(180px,220px)!important;min-width:0!important;width:100%!important}.search-field-group{display:grid;gap:7px;min-width:0!important}.listing-page .listing-search{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;box-shadow:none!important;width:100%!important}.listing-page .club-country-filter,.listing-page .event-country-filter{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-sm)!important;min-height:50px!important}.listing-page .club-country-filter:focus-within,.listing-page .event-country-filter:focus-within{border-color:var(--color-border-accent)!important;box-shadow:0 0 0 3px rgba(99,178,255,.2)!important}
.discovery-filter-panel{background:var(--color-surface-1);border:1px solid var(--color-border-default);border-radius:var(--radius-md);display:grid;gap:10px;margin:0 0 10px;padding:12px}.listing-page .discovery-filter-panel .listing-filter-group{background:var(--color-surface-2)!important;border:1px solid var(--color-border-subtle)!important;border-radius:var(--radius-sm)!important;display:flex!important;gap:6px!important;justify-content:flex-start!important;padding:5px!important;width:fit-content}.listing-page .discovery-filter-panel .filter-btn{background:transparent!important;border:1px solid transparent!important;color:var(--color-text-secondary)!important;min-height:40px!important}.listing-page .discovery-filter-panel .filter-btn:hover{background:var(--color-surface-hover)!important;color:var(--color-text-primary)!important}.listing-page .discovery-filter-panel .filter-btn.active{background:var(--color-primary)!important;border-color:var(--color-primary-hover)!important;color:#fff!important}
.listing-page .discovery-filter-panel .club-refine-bar,.listing-page .discovery-filter-panel .event-refine-bar{align-items:center!important;background:transparent!important;border:0!important;border-top:1px solid var(--color-border-subtle)!important;border-radius:0!important;display:flex!important;gap:10px!important;margin:0!important;padding:10px 0 0!important}.listing-page .event-segmented{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}.listing-page .event-segmented button{color:var(--color-text-secondary)!important}.listing-page .event-segmented button:hover{background:var(--color-surface-hover)!important;color:var(--color-text-primary)!important}.listing-page .event-segmented button.is-active{background:var(--color-primary)!important;color:#fff!important}.listing-page .event-available-toggle{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}.listing-page .discovery-filter-panel select{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important;min-height:46px!important}.listing-page .listing-summary{background:transparent!important;margin:4px 0 0!important}.listing-page .active-filter-summary{margin:8px 0 16px!important}
@media(max-width:991px){.listing-page .listing-toolbar{grid-template-columns:1fr!important}.listing-page .listing-view-toggle{justify-self:start}.listing-page .club-search-fields,.listing-page .event-search-fields{grid-template-columns:minmax(0,1fr) minmax(160px,200px)!important}}
@media(max-width:767px){.listing-page .listing-toolbar{padding:12px!important}.listing-page .club-search-fields,.listing-page .event-search-fields{grid-template-columns:1fr!important}.mobile-filter-controls{display:flex!important;margin:10px 0!important}.discovery-filter-panel{display:none;margin-bottom:12px;padding:12px}.discovery-filter-panel.is-open{display:grid;gap:12px}.listing-page .discovery-filter-panel .listing-filter-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%}.listing-page .discovery-filter-panel .club-refine-bar,.listing-page .discovery-filter-panel .event-refine-bar{display:grid!important;grid-template-columns:1fr!important}.listing-page .discovery-filter-panel .event-segmented{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%}.listing-page .discovery-filter-panel select{margin:0!important;width:100%!important}.listing-page .active-filter-summary{margin-top:6px!important}}

/* Remaining searchable directories use the same solid, high-contrast controls. */
.listing-page .listing-toolbar>.listing-filter-group,.mechanics-listing-page .listing-toolbar>.listing-filter-group{background:var(--color-surface-2)!important;border:1px solid var(--color-border-subtle)!important;border-radius:var(--radius-sm)!important;padding:5px!important}.listing-page .listing-toolbar>.listing-filter-group .filter-btn,.mechanics-listing-page .listing-toolbar>.listing-filter-group .filter-btn{background:transparent!important;border:1px solid transparent!important;color:var(--color-text-secondary)!important}.listing-page .listing-toolbar>.listing-filter-group .filter-btn.active,.mechanics-listing-page .listing-toolbar>.listing-filter-group .filter-btn.active{background:var(--color-primary)!important;color:#fff!important}
.listing-page>.container>.club-refine-bar,.listing-page>.container>.event-refine-bar,.mechanics-listing-page .club-refine-bar,.photographer-refine-bar{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;box-shadow:none!important;padding:12px!important}.listing-page .event-segmented,.mechanics-listing-page .event-segmented,.photographer-refine-bar .event-segmented{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}.listing-page .event-segmented button,.mechanics-listing-page .event-segmented button,.photographer-refine-bar button{color:var(--color-text-secondary)!important}.listing-page .event-segmented button.is-active,.mechanics-listing-page .event-segmented button.is-active,.photographer-refine-bar button.is-active{background:var(--color-primary)!important;color:#fff!important}
.listing-page .event-country-filter,.mechanics-listing-page .event-country-filter,.auto-services-page .event-country-filter{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}.auto-services-page .listing-toolbar,.photographer-listing-toolbar,.route-toolbar{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;padding:12px!important}.auto-services-page .listing-search,.photographer-listing-toolbar .listing-search,.route-toolbar .listing-search,.jobs-toolbar .listing-search,.news-toolbar .listing-search{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}.auto-services-page .club-refine-bar{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;padding:12px!important}.auto-services-page .auto-service-category-filter,.auto-services-page .club-refine-bar select{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
@media(max-width:767px){.listing-page .listing-toolbar>.listing-filter-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.listing-page>.container>.club-refine-bar,.listing-page>.container>.event-refine-bar,.mechanics-listing-page .club-refine-bar,.photographer-refine-bar{display:grid!important;grid-template-columns:1fr!important}.auto-services-page .listing-toolbar,.photographer-listing-toolbar,.route-toolbar{grid-template-columns:1fr!important}}

.listing-page:not(.clubs-listing-page):not(.events-listing-page) .listing-toolbar{align-items:end!important;display:flex!important;flex-wrap:wrap!important}.listing-page:not(.clubs-listing-page):not(.events-listing-page) .listing-toolbar .listing-search{flex:1 1 320px!important}.listing-page:not(.clubs-listing-page):not(.events-listing-page) .listing-toolbar select{flex:0 1 210px!important;min-height:48px!important}@media(max-width:767px){.listing-page:not(.clubs-listing-page):not(.events-listing-page) .listing-toolbar>*{flex:1 1 100%!important;width:100%!important}}

/* Mobile discovery controls: one themed toolbar and one filter disclosure. */
html[data-theme] .mobile-disclosure-trigger{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important;box-shadow:none!important}
html[data-theme] .mobile-disclosure-trigger:hover,html[data-theme] .mobile-disclosure-trigger[aria-expanded=true]{background:var(--color-surface-hover)!important;border-color:var(--color-border-accent)!important}
html[data-theme] .mobile-sheet{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .mobile-sheet-header{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .mobile-sheet-header button{background:var(--color-surface-2)!important;color:var(--color-text-primary)!important}
html[data-theme] .club-tiers-disclosure>summary{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .club-tiers-disclosure>summary small{color:var(--color-text-secondary)!important}
@media(max-width:767px){
html[data-theme] .clubs-listing-page .listing-toolbar,html[data-theme] .events-listing-page .listing-toolbar{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;display:grid!important;gap:10px!important;margin:0!important;padding:11px!important;width:100%!important}
html[data-theme] .clubs-listing-page .club-search-fields,html[data-theme] .events-listing-page .event-search-fields{display:grid!important;gap:9px!important;grid-template-columns:1fr!important;width:100%!important}
html[data-theme] .listing-page .search-field-group,html[data-theme] .listing-page .listing-search,html[data-theme] .listing-page .club-country-filter,html[data-theme] .listing-page .event-country-filter{margin:0!important;max-width:none!important;min-width:0!important;width:100%!important}
html[data-theme] .listing-page .listing-search,html[data-theme] .listing-page .club-country-filter,html[data-theme] .listing-page .event-country-filter{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-sm)!important;min-height:48px!important}
html[data-theme] .listing-page .listing-search input,html[data-theme] .listing-page .club-country-filter select,html[data-theme] .listing-page .event-country-filter select{background:transparent!important;border:0!important;color:var(--color-text-primary)!important;min-height:46px!important;width:100%!important}
html[data-theme] .listing-page .listing-view-toggle{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;display:grid!important;grid-template-columns:1fr 1fr!important;justify-self:stretch!important;width:100%!important}
html[data-theme] .listing-page .listing-view-toggle button{color:var(--color-text-secondary)!important;min-height:42px!important}html[data-theme] .listing-page .listing-view-toggle button[aria-pressed=true]{background:var(--color-primary)!important;color:#fff!important}
html[data-theme] .mobile-filter-controls{margin:9px 0!important}.mobile-filter-toggle{background:var(--color-surface-1)!important;border-color:var(--color-border-accent)!important;color:var(--color-text-primary)!important;min-height:48px!important}
html[data-theme] .discovery-filter-panel.is-open{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-panel)!important;display:grid!important;gap:12px!important;margin:9px 0 12px!important;padding:11px!important}
html[data-theme] .listing-page .discovery-filter-panel .listing-filter-group{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:5px!important;width:100%!important}
html[data-theme] .listing-page .discovery-filter-panel .club-refine-bar,html[data-theme] .listing-page .discovery-filter-panel .event-refine-bar{background:transparent!important;border:0!important;border-top:1px solid var(--color-border-subtle)!important;display:grid!important;gap:9px!important;grid-template-columns:1fr!important;padding:11px 0 0!important}
html[data-theme] .listing-page .discovery-filter-panel .event-segmented{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
html[data-theme] .listing-page .discovery-filter-panel select,html[data-theme] .listing-page .discovery-filter-panel .event-available-toggle{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important;margin:0!important;min-height:46px!important;width:100%!important}
}

/* Navigation-safe page heroes. The desktop navbar can become fixed, so heroes reserve a full title zone. */
html[data-theme] body:not(:has(.public-home)) main>.page-header{box-sizing:border-box!important;display:flex!important;align-items:center!important;margin:0!important;min-height:clamp(340px,32vw,430px)!important;padding:150px 0 82px!important}
html[data-theme] body:not(:has(.public-home)) main>.page-header .container{position:relative;z-index:1}html[data-theme] body:not(:has(.public-home)) main>.page-header h2{margin:0 0 16px!important;overflow:visible!important;padding:0 0 14px!important}
html[data-theme] body:not(:has(.public-home)) main>.founder-hero,html[data-theme] body:not(:has(.public-home)) main>.photographer-hero,html[data-theme] body:not(:has(.public-home)) main>.seo-hero{box-sizing:border-box;min-height:clamp(390px,38vw,540px);padding-top:clamp(130px,12vw,175px)!important;padding-bottom:80px!important}
html[data-theme] .dg-hero,html[data-theme] .garage-community-hero,html[data-theme] .garage-hero,html[data-theme] .route-hero,html[data-theme] .cars-search-hero,html[data-theme] .top-clubs-hero,html[data-theme] .mechanic-application-hero{box-sizing:border-box;min-height:320px;padding-top:clamp(80px,9vw,125px)!important;padding-bottom:60px!important}
@media(max-width:991px){html[data-theme] body:not(:has(.public-home)) main>.page-header{min-height:300px!important;padding:105px 0 65px!important}html[data-theme] body:not(:has(.public-home)) main>.founder-hero,html[data-theme] body:not(:has(.public-home)) main>.photographer-hero,html[data-theme] body:not(:has(.public-home)) main>.seo-hero{min-height:340px;padding-top:100px!important;padding-bottom:65px!important}}
@media(max-width:767px){html[data-theme] body:not(:has(.public-home)) main>.page-header{display:flex!important;min-height:235px!important;padding:72px 0 52px!important}html[data-theme] body:not(:has(.public-home)) main>.auth-page-header{display:flex!important}html[data-theme] body:not(:has(.public-home)) main>.founder-hero,html[data-theme] body:not(:has(.public-home)) main>.photographer-hero,html[data-theme] body:not(:has(.public-home)) main>.seo-hero{min-height:280px;padding-top:72px!important;padding-bottom:52px!important}html[data-theme] .dg-hero,html[data-theme] .garage-community-hero,html[data-theme] .garage-hero,html[data-theme] .route-hero,html[data-theme] .cars-search-hero,html[data-theme] .top-clubs-hero,html[data-theme] .mechanic-application-hero{min-height:240px;padding-top:62px!important;padding-bottom:45px!important}}

/* Standalone feature pages still carrying legacy light-only palettes. */
html[data-theme] .driving-game-page,html[data-theme] .support-page,html[data-theme] .founder-page,html[data-theme] .garage-directory-page,html[data-theme] .route-page,html[data-theme] .top-clubs-page{background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.driving-game-page,.support-page,.founder-page,.garage-directory-page,.route-page,.top-clubs-page) :is(h1,h2,h3,h4,strong,label){color:var(--color-text-primary)!important}
html[data-theme] :is(.driving-game-page,.support-page,.founder-page,.garage-directory-page,.route-page,.top-clubs-page) :is(p,small,li,dt,span){border-color:var(--color-border-subtle);color:var(--color-text-secondary)!important}

/* Driving challenge */
html[data-theme] :is(.driving-panel,.driving-card){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .driving-stage{border-color:var(--color-border-accent)!important;box-shadow:var(--shadow-float)!important}html[data-theme] .driving-kicker,html[data-theme] .driving-score{color:var(--color-primary-bright)!important}
html[data-theme] .driving-club-select select{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .driving-leaderboard li{border-color:var(--color-border-subtle)!important;color:var(--color-text-primary)!important}html[data-theme] .driving-form-message{color:var(--color-warning)!important}

/* FAQs */
html[data-theme] :is(.support-quick-links a,.support-toc,.support-section,.support-empty){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .support-quick-links a:hover,html[data-theme] .support-quick-links a:focus{background:var(--color-surface-hover)!important;border-color:var(--color-border-accent)!important}html[data-theme] .support-quick-links i{background:var(--color-primary-soft)!important;color:var(--color-primary-bright)!important}
html[data-theme] .support-toc a{border-color:var(--color-border-subtle)!important;color:var(--color-text-secondary)!important}html[data-theme] .support-toc a:hover{background:var(--color-surface-hover)!important;color:var(--color-text-primary)!important}
html[data-theme] .faq-item{border-color:var(--color-border-subtle)!important}html[data-theme] .faq-item h3 a,html[data-theme] .support-section a{color:var(--color-primary-bright)!important}html[data-theme] .support-search{background:rgba(3,7,13,.78)!important;border-color:rgba(99,178,255,.5)!important}html[data-theme] .support-search input{background:transparent!important;color:#fff!important}
html[data-theme] .support-page .support-hero :is(h1,h2,h3,p,strong,span){color:#fff!important}html[data-theme] .support-page .support-hero .support-kicker{color:#8bc7ff!important}

/* Founder page */
html[data-theme] :is(.founder-story,.founder-car-panel,.founder-principles,.founder-note){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .founder-principle-list article{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}html[data-theme] :is(.founder-story,.founder-principles,.founder-car-panel,.founder-note) :is(p,blockquote){color:var(--color-text-secondary)!important}html[data-theme] .founder-note blockquote{color:var(--color-text-primary)!important}

/* Community garages and build diaries */
html[data-theme] .garage-directory-page{background:var(--color-page)!important}html[data-theme] :is(.garage-directory-page .garage-search-panel,.garage-directory-page .garage-ranking,.garage-directory-page .garage-card,.garage-directory-page .garage-empty){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .garage-directory-page :is(h2,h3,a,strong,label){color:var(--color-text-primary)!important}html[data-theme] .garage-directory-page :is(p,span,li){color:var(--color-text-secondary)!important}html[data-theme] .garage-directory-page .garage-eyebrow{color:var(--color-primary-bright)!important}
html[data-theme] .garage-directory-page .garage-search-grid :is(input,select){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .garage-directory-page .garage-section-head>p{background:var(--color-primary-soft)!important;border-color:var(--color-border-accent)!important;color:var(--color-primary-bright)!important}html[data-theme] .garage-directory-page .garage-card-actions{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .garage-directory-page .garage-community-hero :is(h1,p,a,strong,span){color:#fff!important}html[data-theme] .garage-directory-page .garage-community-hero .garage-eyebrow{color:#8bc7ff!important}

/* Route planner */
html[data-theme] :is(.route-toolbar,.route-builder-panel,.route-detail-panel,.route-card,.route-empty,.route-comment){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .route-page :is(.listing-search,.route-filter,.route-mode-picker button,.route-stop-row button,.route-rating button){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .route-page :is(input,select,textarea){background:transparent!important;color:var(--color-text-primary)!important}html[data-theme] .route-page .route-mode-picker button.is-active{background:var(--color-primary)!important;border-color:var(--color-primary-hover)!important;color:#fff!important}
html[data-theme] .route-builder-map,html[data-theme] .route-detail-map{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}html[data-theme] .route-summary,html[data-theme] .route-facts{color:var(--color-text-secondary)!important}
html[data-theme] .route-page .route-hero :is(h1,h2,h3,p,strong,span){color:#fff!important}

/* Top 100 clubs */
html[data-theme] .top-clubs-page{--rank-ink:var(--color-text-primary);--rank-muted:var(--color-text-secondary);--rank-line:var(--color-border-default);--rank-red:var(--color-primary-bright);background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.top-clubs-score-key div,.top-clubs-search,.top-clubs-panel,.top-club-search-result,.top-club-feature,.top-club-share,.top-clubs-search-results>p,.top-clubs-search-empty){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .top-clubs-list,html[data-theme] .top-clubs-rest,html[data-theme] .top-club-feature-stats,html[data-theme] .top-clubs-search-field{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}html[data-theme] .top-club-row{border-color:var(--color-border-subtle)!important}html[data-theme] .top-club-row:hover{background:var(--color-surface-hover)!important}html[data-theme] .top-club-row.is-shared-club{background:rgba(243,179,61,.1)!important}
html[data-theme] .top-clubs-search-field input{color:var(--color-text-primary)!important}html[data-theme] .top-club-share-links :is(a,button){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .top-club-feature-logo{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .top-clubs-page :is(.top-clubs-hero,.top-clubs-cta) :is(h1,h2,h3,p,strong,span,a){color:#fff!important}html[data-theme] .top-clubs-page .top-clubs-kicker{color:#8bc7ff!important}
html[data-theme] .top-club-feature.is-champion{background:radial-gradient(circle at 90% 0,rgba(230,170,36,.14),transparent 32%),var(--color-surface-1)!important;border-color:rgba(230,170,36,.58)!important}html[data-theme] .top-clubs-top-ten>.top-club-row{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;border-left-color:var(--color-primary)!important}html[data-theme] :is(.top-clubs-utilities,.top-clubs-trust){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .top-clubs-range-head{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}

/* Authenticated member areas. These screens still include late legacy light
   styles, therefore the shared semantic theme layer deliberately wins. */
html[data-theme] .simple-dashboard,html[data-theme] .account-settings-page,html[data-theme] .booked-events-page,html[data-theme] .history-page,html[data-theme] .messages-page,html[data-theme] .notification-history-page,html[data-theme] .garage-workspace,html[data-theme] .mechanic-admin-page,html[data-theme] .supplier-admin-page{background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.simple-dashboard,.account-settings-page,.booked-events-page,.history-page,.messages-page,.notification-history-page,.garage-workspace,.mechanic-admin-page,.supplier-admin-page) :is(h1,h2,h3,h4,strong,label,legend){color:var(--color-text-primary)!important}
html[data-theme] :is(.simple-dashboard,.account-settings-page,.booked-events-page,.history-page,.messages-page,.notification-history-page,.garage-workspace,.mechanic-admin-page,.supplier-admin-page) :is(p,small,em,.form-text,.account-status){color:var(--color-text-secondary)!important}

html[data-theme] :is(.activation-journey,.dashboard-section,.dashboard-profile-link,.dashboard-booking-card,.dashboard-empty,.engagement-empty,.engagement-feed-item,.engagement-checklist a,.settings-photo-card,.settings-card,.settings-related-links a,.booked-event-card,.booked-events-empty,.history-item,.history-empty,.messages-panel,.conversation-btn,.messages-empty,.notification-history-item,.notification-history-empty,.garage-panel,.garage-stats div,.vehicle-card,.portal-panel,.journey-panel,.supplier-work-card,.supplier-record-card,.supplier-form-section,.mechanic-admin-sidebar,.supplier-admin-sidebar){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.activation-steps li,.dashboard-quick-links a,.engagement-checklist a,.dashboard-empty,.engagement-empty,.settings-related-links a,.privacy-preferences-form fieldset,.history-toolbar,.history-pagination button,.conversation-delete-btn,.thread-message,.message-safety-note,.garage-toolbar,.garage-tabs,.garage-empty-state,.portal-empty,.supplier-work-summary>*,.supplier-status-grid>*,.supplier-image-preview,.mechanic-completion,.mechanic-listing-preview){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.activation-steps li.is-next,.dashboard-quick-links a:hover,.engagement-feed-item:hover,.engagement-checklist a:hover,.settings-related-links a:hover,.history-item:hover,.conversation-row.is-active .conversation-btn,.conversation-btn:hover,.vehicle-card.is-selected,.vehicle-card:hover){background:var(--color-primary-soft)!important;border-color:var(--color-border-accent)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.activation-progress,.engagement-progress,.garage-progress,.mechanic-completion-track){background:var(--color-surface-3)!important}html[data-theme] :is(.activation-progress span,.engagement-progress span,.garage-progress span,.mechanic-completion-track span){background:var(--color-primary)!important}
html[data-theme] :is(.dashboard-eyebrow,.settings-eyebrow,.ticket-eyebrow,.portal-eyebrow,.history-type){color:var(--color-primary-bright)!important}

html[data-theme] :is(.simple-dashboard,.account-settings-page,.booked-events-page,.history-page,.messages-page,.notification-history-page,.garage-workspace,.mechanic-admin-page,.supplier-admin-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.simple-dashboard,.account-settings-page,.booked-events-page,.history-page,.messages-page,.notification-history-page,.garage-workspace,.mechanic-admin-page,.supplier-admin-page) :is(input,textarea)::placeholder{color:var(--color-text-muted)!important}
html[data-theme] :is(.simple-dashboard,.account-settings-page,.booked-events-page,.history-page,.messages-page,.notification-history-page,.garage-workspace,.mechanic-admin-page,.supplier-admin-page) :is(input,select,textarea):focus{border-color:var(--color-border-accent)!important;box-shadow:0 0 0 3px rgba(99,178,255,.2)!important}

html[data-theme] .ticket-primary-cta{background:linear-gradient(135deg,var(--color-primary-hover),var(--color-primary))!important;border:1px solid var(--color-border-accent)!important}html[data-theme] .ticket-primary-cta *{color:#fff!important}
html[data-theme] .club-scan-cta{background:var(--color-surface-1)!important;border-color:var(--color-primary)!important;color:var(--color-text-primary)!important}
html[data-theme] .dashboard-alert-panel{background:rgba(243,179,61,.12)!important;border-color:rgba(243,179,61,.45)!important}html[data-theme] .dashboard-alert-panel p{color:var(--color-text-secondary)!important}
html[data-theme] .settings-danger{background:rgba(237,91,104,.08)!important;border-color:rgba(237,91,104,.4)!important}.account-delete-modal>section{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .ticket-panel{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .ticket-qr{background:#fff!important}
html[data-theme] .booked-event-badges span{background:rgba(50,196,141,.14)!important;color:var(--color-success)!important}html[data-theme] .booked-event-badges .is-waitlist{background:rgba(243,179,61,.14)!important;color:var(--color-warning)!important}html[data-theme] .booked-event-badges .is-checked-in{background:rgba(72,167,255,.14)!important;color:var(--color-info)!important}

html[data-theme] .thread-header{border-color:var(--color-border-default)!important}html[data-theme] .thread-messages{background:var(--color-page-alt)!important;border-radius:var(--radius-md);padding:18px!important}html[data-theme] .thread-message{background:var(--color-surface-2)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .thread-message.is-mine{background:var(--color-primary)!important;border-color:var(--color-primary-hover)!important;color:#fff!important}html[data-theme] .thread-message.is-mine *{color:#fff!important}
html[data-theme] .reply-form{border-color:var(--color-border-default)!important}html[data-theme] .message-modal-dialog{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .message-modal-header{border-color:var(--color-border-default)!important}
html[data-theme] .notification-history-item.is-unread{background:var(--color-primary-soft)!important;border-color:var(--color-border-accent)!important}

html[data-theme] .garage-hero{background:linear-gradient(135deg,var(--color-surface-3),#071a2d)!important;border-color:var(--color-border-accent)!important}html[data-theme] .garage-hero *{color:#fff!important}
html[data-theme] .garage-public-settings>div:last-child{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .vehicle-visibility-option{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .vehicle-visibility-option strong{color:var(--color-text-primary)!important}html[data-theme] .vehicle-visibility-option small{color:var(--color-text-secondary)!important}
html[data-theme] .garage-tab{background:transparent!important;border-color:transparent!important;color:var(--color-text-secondary)!important}html[data-theme] .garage-tab.is-active,html[data-theme] .garage-tab:hover{background:var(--color-primary)!important;color:#fff!important}
html[data-theme] .garage-image-preview,html[data-theme] .vehicle-card-image,html[data-theme] .supplier-image-preview{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}

/* Secondary member/profile workspaces use the same surfaces. */
html[data-theme] .photographer-shell,html[data-theme] .dealer-admin-page,html[data-theme] .staff-attendance-shell{background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.photo-panel,.dealer-admin-panel,.staff-workspace-panel,.staff-course-card,.staff-course-header,.staff-module,.staff-attendee-row){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] :is(.photographer-shell,.dealer-admin-panel,.staff-attendance-shell) :is(h1,h2,h3,h4,strong,label){color:var(--color-text-primary)!important}html[data-theme] :is(.photographer-shell,.dealer-admin-panel,.staff-attendance-shell) :is(p,small,em){color:var(--color-text-secondary)!important}
html[data-theme] :is(.photographer-shell,.dealer-admin-panel,.staff-attendance-shell) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .staff-workspace-tabs{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}html[data-theme] .staff-workspace-tabs button{background:transparent!important;color:var(--color-text-secondary)!important}html[data-theme] .staff-workspace-tabs button.active{background:var(--color-primary)!important;color:#fff!important}
html[data-theme] .staff-attendee-row.is-present{background:rgba(50,196,141,.1)!important;border-color:rgba(50,196,141,.4)!important}

/* Mechanic and valeter profiles. Keep dark feature panels high contrast and
   map the remaining legacy white cards to the active theme. */
html[data-theme] .supplier-profile-shell{color:var(--color-text-primary)!important}
html[data-theme] :is(.supplier-public-benefits article,.supplier-public-content>main,.supplier-public-content>div .booking-panel,.supplier-enquiry-bottom,.supplier-enquiry-panel){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .supplier-profile-shell :is(.event-description,.detail-info-grid section,.portal-list-item,.supplier-highlight-row div){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .supplier-profile-shell :is(h1,h2,h3,h4,strong,label,legend){color:var(--color-text-primary)!important}
html[data-theme] .supplier-profile-shell :is(.supplier-public-benefits p,.event-description p,.detail-info-grid li,.booking-meta p,.supplier-enquiry-intro p,.portal-list-item span,.form-text){color:var(--color-text-secondary)!important}
html[data-theme] .supplier-profile-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .supplier-profile-shell :is(input,textarea)::placeholder{color:var(--color-text-muted)!important}
html[data-theme] .supplier-public-card{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important;box-shadow:var(--shadow-panel)!important}
html[data-theme] .supplier-public-card div{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .supplier-public-card span{color:var(--color-text-secondary)!important}
html[data-theme] .supplier-public-card strong{color:var(--color-text-primary)!important}
html[data-theme="dark"] .supplier-public-hero :is(.supplier-public-copy h1,.supplier-public-copy p,.supplier-profile-meta,.supplier-profile-meta span,.detail-eyebrow){color:#fff!important}
html[data-theme="dark"] .supplier-public-story.supplier-promo-story :is(h1,h2,h3,h4,p,li,span,small,strong,a:not(.btn)){color:#fff!important}
html[data-theme="dark"] .supplier-promo-preview{background:rgba(3,7,13,.82)!important;border-color:rgba(255,255,255,.28)!important}
html[data-theme="dark"] .supplier-promo-preview-head,html[data-theme="dark"] .supplier-promo-list>div{border-color:rgba(255,255,255,.2)!important}
html[data-theme="dark"] .supplier-promo-list span i,html[data-theme="dark"] .supplier-promo-copy .detail-eyebrow{color:#8bc7ff!important}
html[data-theme="dark"] .supplier-profile-shell :is(h1,h2,h3,h4,p,li,span,small,strong,label,legend,dt,dd){color:#fff!important}
html[data-theme="dark"] .supplier-profile-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:#fff!important}
html[data-theme] .event-details-page:has(.supplier-profile-shell){background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] body:has(.supplier-profile-shell) .page-header p{color:#fff!important}
html[data-theme="dark"] .supplier-profile-shell .provider-disclaimer{color:#ffe8ad!important;background:rgba(245,174,44,.12)!important;border-color:rgba(245,174,44,.55)!important}
html[data-theme="dark"] .supplier-profile-shell .provider-disclaimer :is(strong,p){color:#fff4d6!important}
html[data-theme="dark"] .supplier-profile-shell .provider-disclaimer>i{color:#ffc95c!important}
html[data-theme="light"] .supplier-profile-shell .provider-disclaimer{color:#78350f!important;background:#fffbeb!important;border-color:#f5a623!important}
html[data-theme="light"] .supplier-profile-shell .provider-disclaimer :is(strong,p){color:#78350f!important}
/* These panels remain dark in both themes, so they must not inherit the light
   theme's dark typography. */
html[data-theme] .supplier-public-hero .supplier-public-copy :is(h1,h2,h3,h4,p,span,small,strong,label,a:not(.btn)){color:#fff!important}
html[data-theme] .supplier-public-hero .supplier-public-copy .detail-eyebrow{color:#63b2ff!important}
html[data-theme] .supplier-public-story.supplier-promo-story :is(h1,h2,h3,h4,p,li,span,small,strong,label,a:not(.btn)){color:#fff!important}
html[data-theme] .supplier-public-story.supplier-promo-story .detail-eyebrow,html[data-theme] .supplier-public-story.supplier-promo-story i{color:#63b2ff!important}
html[data-theme] .supplier-promo-preview{color:#fff!important;background:rgba(3,7,13,.84)!important;border-color:rgba(255,255,255,.28)!important}
html[data-theme] .supplier-promo-preview-head,html[data-theme] .supplier-promo-list>div{border-color:rgba(255,255,255,.2)!important}

/* The footer is intentionally dark regardless of the selected theme. */
html[data-theme] .footer :is(h1,h2,h3,h4,h5,h6,strong){color:#f4f6f8!important}
html[data-theme] .footer :is(p,span,small,li,address){color:#a9b3c0!important}
html[data-theme] .footer a{color:#f4f6f8!important}
html[data-theme] .footer a:hover,html[data-theme] .footer a:focus-visible{color:#63b2ff!important}

/* Public club profiles: replace legacy white cards with shared theme surfaces. */
html[data-theme] .club-detail-page{background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] .club-detail-breadcrumb{color:var(--color-text-muted)!important}
html[data-theme] .club-detail-breadcrumb a{color:var(--color-primary-bright)!important}
html[data-theme] .club-detail-page :is(.club-story-section,.club-events-showcase,.club-forum-section,.club-detail-feature-card,.club-join-card,.club-claim-panel){color:var(--color-text-primary)!important}
html[data-theme] .club-detail-page :is(.club-story-section,.club-events-showcase,.club-forum-section,.club-detail-feature-card,.club-join-card,.club-claim-panel) :is(h1,h2,h3,h4,strong,label,dt,dd){color:var(--color-text-primary)!important}
html[data-theme] .club-detail-page :is(.club-story-lead,.club-section-note,.club-detail-feature-card li,.club-eligibility-note,.club-join-card>p,.club-forum-post p,.club-forum-post small,.club-events-empty span){color:var(--color-text-secondary)!important}
html[data-theme] :is(.club-proof-strip,.club-event-showcase-card,.club-events-empty,.club-forum-section,.club-detail-feature-card,.club-join-card,.club-claim-panel){background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important}
html[data-theme] .club-proof-strip>div{border-color:var(--color-border-subtle)!important}
html[data-theme] .club-proof-strip span{color:var(--color-text-muted)!important}
html[data-theme] .club-proof-strip strong{color:var(--color-text-primary)!important}
html[data-theme] .club-proof-strip i{color:var(--color-primary-bright)!important;background:var(--color-primary-soft)!important}
html[data-theme] .club-activity-list span{color:var(--color-text-primary)!important;background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .club-activity-list i{color:var(--color-primary-bright)!important}
html[data-theme] .club-event-showcase-card h3{color:var(--color-text-primary)!important}
html[data-theme] .club-event-showcase-card p{color:var(--color-text-secondary)!important}
html[data-theme] :is(.club-event-date,.club-event-showcase-card>div>a,.club-section-heading>a,.club-garage-link,.club-claim-link,.club-join-card .status-text,.club-forum-form span){color:var(--color-primary-bright)!important}
html[data-theme] .club-forum-post{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .club-forum-post strong{color:var(--color-text-primary)!important}
html[data-theme] .club-join-facts>div,html[data-theme] .club-sponsors-card{border-color:var(--color-border-subtle)!important}
html[data-theme] .club-join-facts dt{color:var(--color-text-secondary)!important}
html[data-theme] .club-join-facts dd{color:var(--color-text-primary)!important}
html[data-theme] .club-sponsors-card h3{color:var(--color-text-primary)!important}
html[data-theme] .club-sponsors-list a{color:var(--color-text-primary)!important;background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .club-sponsors-list a:hover,html[data-theme] .club-sponsors-list a:focus-visible{background:var(--color-surface-hover)!important;border-color:var(--color-border-accent)!important}
html[data-theme] .club-sponsors-list img{background:var(--color-surface-3)!important}
html[data-theme] .club-sponsors-list small{color:var(--color-text-secondary)!important}
html[data-theme] .club-detail-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .club-detail-page :is(input,textarea)::placeholder{color:var(--color-text-muted)!important}
html[data-theme] .club-detail-page .community-empty{color:var(--color-text-secondary)!important;background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .club-detail-loading>p{color:var(--color-text-secondary)!important}
html[data-theme] .club-loading-hero,html[data-theme] .club-loading-strip,html[data-theme] .club-loading-strip span{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .club-updates-section{background:linear-gradient(135deg,var(--color-surface-3),#071a2d)!important;border:1px solid var(--color-border-accent)!important;box-shadow:var(--shadow-panel)!important}
html[data-theme] .club-updates-section :is(h2,h3,strong){color:#fff!important}
html[data-theme] .club-updates-section :is(p,small){color:rgba(255,255,255,.74)!important}
html[data-theme] .club-updates-section :is(.portal-eyebrow,.club-news-date,.club-section-heading>a){color:#8bc7ff!important}
html[data-theme] .club-organiser-news-section .club-news-list .club-news-card{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.14)!important}

/* Club leader workspace. This page has a late inline stylesheet, so these
   scoped declarations intentionally use important to preserve theme tokens. */
html[data-theme] .leader-workspace{background:var(--color-page)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-workspace h1,html[data-theme] .leader-workspace h2,html[data-theme] .leader-workspace h3,html[data-theme] .leader-workspace h4,html[data-theme] .leader-workspace strong,html[data-theme] .leader-workspace label{color:var(--color-text-primary)!important}
html[data-theme] .leader-workspace p,html[data-theme] .leader-workspace small,html[data-theme] .leader-workspace .leader-form-note,html[data-theme] .leader-workspace .leader-topbar p,html[data-theme] .leader-workspace .leader-panel-heading p{color:var(--color-text-secondary)!important}
html[data-theme] .leader-status,html[data-theme] .leader-club-card,html[data-theme] .leader-admin-sidebar,html[data-theme] .leader-workspace-stats div,html[data-theme] .leader-club-metrics div,html[data-theme] .leader-tier-features,html[data-theme] .leader-dashboard-card,html[data-theme] .leader-metric-card,html[data-theme] .leader-chart-card,html[data-theme] .leader-eventday,html[data-theme] .leader-member-profile,html[data-theme] .leader-content-item,html[data-theme] .leader-blog-image-tools,html[data-theme] .leader-update-history-item,html[data-theme] .leader-event-item,html[data-theme] .leader-request-item,html[data-theme] .leader-member-row,html[data-theme] .leader-attendee-row{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-club-nav button,html[data-theme] .leader-tabs,html[data-theme] .leader-tabs button,html[data-theme] .leader-quick-action-card,html[data-theme] .leader-overview-panel,html[data-theme] .leader-panel-heading,html[data-theme] .leader-club-editor,html[data-theme] .leader-event-edit form,html[data-theme] .leader-schedule-fields,html[data-theme] .leader-eventday-hero,html[data-theme] .leader-member-profile-grid span,html[data-theme] .leader-dashboard-card li,html[data-theme] .leader-read-summary span,html[data-theme] .leader-read-list span,html[data-theme] .leader-read-list em{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-admin-summary,html[data-theme] .leader-dashboard-hero,html[data-theme] .leader-eventday-stats div{background:linear-gradient(135deg,var(--color-surface-3),#071a2d)!important;border-color:var(--color-border-accent)!important;color:#fff!important}
html[data-theme] .leader-admin-summary *,html[data-theme] .leader-dashboard-hero *,html[data-theme] .leader-eventday-stats div *{color:#fff!important}
html[data-theme] .leader-club-nav button:hover,html[data-theme] .leader-tabs button:hover,html[data-theme] .leader-filter-bar button:hover{background:var(--color-surface-hover)!important;border-color:var(--color-border-accent)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-club-nav button.is-active,html[data-theme] .leader-tabs button.is-active,html[data-theme] .leader-filter-bar button.is-active,html[data-theme] .leader-quick-action-card:hover{background:var(--color-primary)!important;border-color:var(--color-primary-hover)!important;color:#fff!important}
html[data-theme] .leader-club-nav button.is-active *,html[data-theme] .leader-tabs button.is-active *,html[data-theme] .leader-quick-action-card:hover *{color:#fff!important}
html[data-theme] .leader-tier-banner,html[data-theme] .leader-tier-feature-card,html[data-theme] .leader-onboarding,html[data-theme] .leader-onboarding li{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-workspace input:not([type=checkbox]):not([type=radio]),html[data-theme] .leader-workspace select,html[data-theme] .leader-workspace textarea{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme] .leader-workspace input::placeholder,html[data-theme] .leader-workspace textarea::placeholder{color:var(--color-text-muted)!important}
html[data-theme] .leader-brand-preview,html[data-theme] .leader-location-map,html[data-theme] .leader-image-preview,html[data-theme] .leader-chart-card svg{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important}
html[data-theme] .leader-workspace hr,html[data-theme] .leader-member-row,html[data-theme] .leader-event-item,html[data-theme] .leader-content-item{border-color:var(--color-border-subtle)!important}
html[data-theme] .ticket-scanner-dialog,html[data-theme] .leader-help-sheet,html[data-theme] .leader-read-sheet{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;color:var(--color-text-primary)!important;box-shadow:var(--shadow-float)!important}
html[data-theme] .ticket-scanner-dialog h2,html[data-theme] .ticket-scanner-dialog h3,html[data-theme] .leader-help-sheet h2,html[data-theme] .leader-help-sheet h3,html[data-theme] .leader-read-sheet h2,html[data-theme] .leader-read-sheet h3{color:var(--color-text-primary)!important}
html[data-theme] .ticket-scanner-dialog p,html[data-theme] .leader-help-sheet p,html[data-theme] .leader-read-sheet p{color:var(--color-text-secondary)!important}
html[data-theme] .ticket-scanner-video,html[data-theme] .ticket-scanner-result,html[data-theme] .leader-help-sheet section,html[data-theme] .leader-read-sheet section{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}
html[data-theme="dark"] .leader-status-pill,html[data-theme="dark"] .leader-request-status,html[data-theme="dark"] .leader-attendee-status,html[data-theme="dark"] .leader-session-pill{background:rgba(25,132,255,.14)!important;border-color:rgba(69,163,255,.4)!important;color:#8bc7ff!important}
html[data-theme="dark"] .leader-status-pill.is-approved,html[data-theme="dark"] .leader-request-status.is-approved,html[data-theme="dark"] .leader-attendee-status.is-checked{background:rgba(33,184,125,.14)!important;border-color:rgba(55,211,151,.38)!important;color:#72e5b5!important}
html[data-theme="dark"] .leader-status-pill.is-pending,html[data-theme="dark"] .leader-request-status.is-pending{background:rgba(245,174,44,.14)!important;border-color:rgba(245,174,44,.38)!important;color:#ffd078!important}
html[data-theme] .leader-mobile-bottom-nav{background:var(--color-surface-1)!important;border-color:var(--color-border-default)!important;box-shadow:var(--shadow-float)!important}
html[data-theme] .leader-mobile-bottom-nav a{color:var(--color-text-secondary)!important}html[data-theme] .leader-mobile-bottom-nav a.is-active{color:var(--color-primary)!important}

/* Authentication panels remain legible in both themes. */
html[data-theme] .form-container .auth-security-check{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-secondary)!important}
html[data-theme] .auth-page .form-container,html[data-theme] .auth-layout .form-container{background:var(--color-surface-1)!important;border:1px solid var(--color-border-default)!important;box-shadow:var(--shadow-panel)!important;color:var(--color-text-primary)!important}html[data-theme] .form-container .auth-form-heading h1,html[data-theme] .form-container h1,html[data-theme] .form-container h2,html[data-theme] .form-container h3{color:var(--color-text-primary)!important}html[data-theme] .form-container .auth-form-heading span,html[data-theme] .form-container .register-intro,html[data-theme] .form-container .terms-consent,html[data-theme] .form-container .auth-status,html[data-theme] .form-container>p{color:var(--color-text-secondary)!important}html[data-theme] .form-container .auth-field-label,html[data-theme] .form-container label{color:var(--color-text-primary)!important}html[data-theme] .form-container input:not([type=checkbox]):not([type=radio]),html[data-theme] .form-container select,html[data-theme] .form-container textarea{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-primary)!important}html[data-theme] .form-container input::placeholder,html[data-theme] .form-container textarea::placeholder{color:var(--color-text-muted)!important}html[data-theme] .form-container .registration-privacy,html[data-theme] .form-container .password-reset-panel,html[data-theme] .form-container .club-login-choice{background:var(--color-surface-2)!important;border-color:var(--color-border-default)!important;color:var(--color-text-secondary)!important}html[data-theme] .form-container .auth-divider{color:var(--color-text-secondary)!important}html[data-theme] .form-container .auth-divider:before,html[data-theme] .form-container .auth-divider:after{background:var(--color-border-default)!important}
