/* styles/blackwhite-theme/blackwhite-theme.css
   SpinChoice — Dark/Light Theme Toggle (black-gray / neutral light gray)
   - Default: dark
   - Light mode uses [data-theme="light"] on <html>
   - Neutral shell colors; brand button color is controlled by --sc-brand
*/

/* BEGIN GENERATED SITE TOKENS: scripts/site-shell/tokens.mjs */
:root {
  --sc-page-canvas: #202124;
  --sc-page-raised-surface: #292A2D;
  --sc-page-header-surface: #202124;
  --sc-page-footer-surface: #292A2D;
  --sc-page-text: #E8EAED;
  --sc-page-text-muted: #BDC1C6;
  --sc-page-link: #97D1CA;
  --sc-page-brand: #125745;
  --sc-page-brand-hover: #0E493A;
  --sc-page-brand-active: #0B3A2E;
  --sc-page-brand-lift: #2A9D90;
  --sc-page-focus-ring: #8AB4F8;
  --sc-page-brand-channels: 18, 87, 69;
  --sc-page-brand-hover-channels: 14, 73, 58;
  --sc-page-brand-active-channels: 11, 58, 46;
  --sc-page-brand-lift-channels: 42, 157, 144;
  --sc-page-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

html[data-theme="light"] {
  --sc-page-canvas: #FFFFFF;
  --sc-page-raised-surface: #F8F9FA;
  --sc-page-header-surface: #FFFFFF;
  --sc-page-footer-surface: #F8F9FA;
  --sc-page-text: #202124;
  --sc-page-text-muted: #5F6368;
  --sc-page-link: #235F62;
  --sc-page-brand: #125745;
  --sc-page-brand-hover: #0E493A;
  --sc-page-brand-active: #0B3A2E;
  --sc-page-brand-lift: #2A9D90;
  --sc-page-focus-ring: #0645AD;
  --sc-page-brand-channels: 18, 87, 69;
  --sc-page-brand-hover-channels: 14, 73, 58;
  --sc-page-brand-active-channels: 11, 58, 46;
  --sc-page-brand-lift-channels: 42, 157, 144;
  --sc-page-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
/* END GENERATED SITE TOKENS */

:root{
  --sc-brand: #3E6F82;
  --sc-brand-hover: #345A69;
  --sc-brand-active: #174F5E;
  --sc-brand-lift: #2A9D90;
  --sc-brand-rgb: 62, 111, 130;
  --sc-brand-hover-rgb: 52, 90, 105;
  --sc-brand-lift-rgb: 42, 157, 144;
  --sc-brand-ring: rgba(232, 196, 104, 0.72);
  /* Page chrome keeps its own brand tint (header Share gradient). */
  --sc-page-brand-rgb: 62, 111, 130;
  --sc-page-brand-hover-rgb: 52, 90, 105;
  --sc-page-brand-lift-rgb: 42, 157, 144;

  --sc-friends: #22C55E;
  --sc-friends-hover: #16A34A;
  --sc-friends-active: #15803D;
  --sc-friends-lift: #4ADE80;
  --sc-friends-rgb: 34, 197, 94;
  --sc-friends-hover-rgb: 22, 163, 74;
  --sc-friends-lift-rgb: 74, 222, 128;
  --sc-friends-ring: rgba(134, 239, 172, 0.95);

  /* Change these four values later if you want to retheme the site's default shells. */
  --sc-default-dark: #1A1A1D;
  --sc-default-light: #FFFFFF;
  --sc-empty-wheel-dark: #303036;
  --sc-empty-wheel-light: #D9D9D9;

  /* Keep inner surfaces close to the default shell, but avoid old near-black/warm-white. */
  --sc-contrast-dark: #202024;
  --sc-contrast-light: #FFFFFF;

  /* Premium neutral surfaces matched to the new shell colors. */
  --sc-surface-dark: #242428;
  --sc-surface-dark-2: #1F1F23;
  --sc-surface-light: #F3F3F3;
  --sc-surface-light-2: #F8F8F8;
}

/* --sc-theme-* colour the app: the wheel area, the Entries editor and the
   dialogs. --sc-page-* colour the page around it: background, header surface,
   header menus and footer. Wheel pages set the app values once, in the
   "Wheel and Entries editor palette" at the end of this file. */
html:not([data-theme="light"]){
  --sc-theme-shell: var(--sc-default-dark);
  --sc-theme-contrast-surface: var(--sc-contrast-dark);
  --sc-theme-surface: var(--sc-surface-dark);
  --sc-theme-surface-2: var(--sc-surface-dark-2);
  --sc-page-shell: var(--sc-default-dark);
  --sc-page-surface: var(--sc-surface-dark);
}

html[data-theme="light"]{
  --sc-theme-shell: var(--sc-default-light);
  --sc-theme-contrast-surface: var(--sc-contrast-light);
  --sc-theme-surface: var(--sc-surface-light);
  --sc-theme-surface-2: var(--sc-surface-light-2);
  --sc-page-shell: var(--sc-default-light);
  --sc-page-surface: var(--sc-surface-light);
}

/* Provisional consumers. Other page families join in their own migration. */
html[data-page-kind="home"]:not(.sc-share-route),
html[data-page-kind="landing"]:not(.sc-share-route),
body.ep-shell--fairness,
body.tp-shell--privacy {
  --sc-page-shell: var(--sc-page-canvas);
  --sc-page-surface: var(--sc-page-footer-surface);
  --sc-page-brand-rgb: var(--sc-page-brand-channels);
  --sc-page-brand-hover-rgb: var(--sc-page-brand-hover-channels);
  --sc-page-brand-lift-rgb: var(--sc-page-brand-lift-channels);
}

html[data-page-kind="home"]:not(.sc-share-route) .site-header,
html[data-page-kind="landing"]:not(.sc-share-route) .site-header,
body.ep-shell--fairness .site-header,
body.tp-shell--privacy .site-header {
  --sc-header-nav-font: var(--sc-page-font-ui);
}

/* Circular page reveal; wheel views stay live above the page snapshots. */
@media (prefers-reduced-motion: no-preference){
  html.sc-theme-transition::view-transition,
  html.sc-theme-transition::view-transition-group(*),
  html.sc-theme-transition::view-transition-image-pair(*),
  html.sc-theme-transition::view-transition-old(*),
  html.sc-theme-transition::view-transition-new(*){
    pointer-events: none;
  }

  html.sc-theme-transition::view-transition-group(*){
    animation: none;
    z-index: 1;
  }

  html.sc-theme-transition::view-transition-group(root){
    z-index: 0;
  }

  html.sc-theme-transition::view-transition-old(*),
  html.sc-theme-transition::view-transition-new(*){
    animation: none;
    mix-blend-mode: normal;
  }

  html.sc-theme-transition::view-transition-old(*){
    display: none;
  }

  html.sc-theme-transition::view-transition-old(root){
    display: block;
  }

  html.sc-theme-transition::view-transition-new(root){
    animation: scThemeReveal 520ms cubic-bezier(.4, 0, .2, 1) both;
  }

  /* Capture the final palette so component color transitions cannot flash later.
     Leave animations and wheel transforms running throughout the reveal. */
  html.sc-theme-transition *,
  html.sc-theme-transition *::before,
  html.sc-theme-transition *::after{
    transition: none !important;
  }

  @keyframes scThemeReveal{
    from{ clip-path: circle(0 at var(--sc-theme-x) var(--sc-theme-y)); }
    to{ clip-path: circle(var(--sc-theme-r) at var(--sc-theme-x) var(--sc-theme-y)); }
  }
}

/* ---------- Header right side (nav + toggle) ---------- */
.header__right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Toggle UI ---------- */
.theme-toggle{
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(0,0,0,.20);
  border-radius: 999px;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, transform .06s ease;
}
.theme-toggle:hover{
  background: rgba(0,0,0,.28);
}
.theme-toggle:active{
  transform: translateY(1px);
}

.theme-toggle__track{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(148,163,184,.22);
  position: relative;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.theme-toggle__thumb{
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sc-page-shell);
  border: 1px solid rgba(148,163,184,.25);
  display: grid;
  place-items: center;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

/* Icons */
.theme-toggle__icon{
  position: absolute;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
  user-select: none;
}
.theme-toggle__icon--moon{ opacity: 1; transform: scale(1); }

/* Light state: thumb slides right + shows sun */
html[data-theme="light"] .theme-toggle__thumb{
  transform: translateX(20px);
  background: var(--sc-page-shell);
  border-color: rgba(15,23,42,.18);
}
html[data-theme="light"] .theme-toggle__icon--moon{ opacity: 0; transform: scale(.9); }
html[data-theme="light"] .theme-toggle__icon--sun{ opacity: 1; transform: scale(1); }

/* =========================================================
   LIGHT THEME (SOLID)
   ========================================================= */

html[data-theme="light"] body{
  color: #0f172a;
  background: var(--sc-page-shell) !important;
}

/* Links (no blue) */
html[data-theme="light"] a{ color: #111111; }
html[data-theme="light"] a:hover{ color: #000000; }

/* Header */
html[data-theme="light"] .site-header{
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
html[data-theme="light"] .site-header--scrolled{
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Header text */
html[data-theme="light"] .logo-text{ color: #0f172a !important; }
html[data-theme="light"] .logo-text span{ color: #0f172a !important; }
html[data-theme="light"] .nav a{ color: rgba(15,23,42,.75) !important; }
html[data-theme="light"] .nav a:hover{
  color: #0f172a !important;
  background-color: rgba(0,0,0,.06) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
}
html[data-theme="light"] .nav a:hover::after{
  border-color: rgba(0,0,0,.20) !important;
}

/* Inputs card */
html[data-theme="light"] .inputs-card{
  background-color: var(--sc-tool-panel, var(--sc-theme-contrast-surface)) !important;
  border-color: var(--sc-tool-line, rgba(0,0,0,.10)) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .inputs-card__label{ color: #0f172a !important; }

/* Textarea */
html[data-theme="light"] #optionsInput{
  background-color: var(--entries-field-bg, var(--sc-theme-contrast-surface, #FFFFFF)) !important;
  color: #0f172a !important;
  border-color: rgba(0,0,0,.18) !important;
}
html[data-theme="light"] #optionsInput::placeholder{ color: rgba(0,0,0,.45) !important; }

/* Buttons */
html[data-theme="light"] .btn--ghost{
  background-color: var(--sc-theme-surface-2) !important;
  border-color: rgba(0,0,0,.18) !important;
  color: rgba(0,0,0,.85) !important;
}
html[data-theme="light"] .btn--ghost:hover{
  background-color: var(--sc-theme-surface) !important;
  border-color: rgba(0,0,0,.24) !important;
}

/* Hint text */
html[data-theme="light"] .inputs-card__hint{ color: rgba(0,0,0,.55) !important; }

/* Sections text */
html[data-theme="light"] .info h2,
html[data-theme="light"] .info h3{ color: #0f172a !important; }
html[data-theme="light"] .steps,
html[data-theme="light"] .uses{ color: rgba(0,0,0,.70) !important; }

/* FAQ + metrics section (solid) */
html[data-theme="light"] .faq-metrics{
  border-top-color: rgba(0,0,0,.10) !important;
  background: var(--sc-theme-shell) !important;
}
html[data-theme="light"] .faq-metrics__faq h2,
html[data-theme="light"] .faq-metrics__metrics h2{ color: #0f172a !important; }
html[data-theme="light"] .faq-item h3{ color: #0f172a !important; }
html[data-theme="light"] .faq-item p{ color: rgba(0,0,0,.75) !important; }

html[data-theme="light"] .faq-metrics__metrics{
  background: var(--sc-theme-contrast-surface) !important;
  border-color: rgba(0,0,0,.12) !important;
  box-shadow: 0 22px 45px rgba(0,0,0,.08) !important;
}
html[data-theme="light"] .metric-label{ color: rgba(0,0,0,.55) !important; }
html[data-theme="light"] .metric-value{ color: #0f172a !important; }

/* Footer */
html[data-theme="light"] .site-footer{
  background-color: var(--sc-page-surface) !important;
  border-top-color: rgba(0,0,0,.12) !important;
}

html[data-theme="light"] .footer__inner,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .footer__socialshare-label{
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .footer__links a,
html[data-theme="light"] .footer__socialshare-link{
  color: #1e293b !important;
  opacity: 1 !important;
}

html[data-theme="light"] .footer__links a:hover,
html[data-theme="light"] .footer__socialshare-link:hover{
  color: #0f172a !important;
  text-decoration: underline;
}

/* Toggle in light */
html[data-theme="light"] .theme-toggle{
  background: rgba(0,0,0,.05) !important;
  border-color: rgba(0,0,0,.12) !important;
}
html[data-theme="light"] .theme-toggle__track{
  background: rgba(0,0,0,.06) !important;
  border-color: rgba(0,0,0,.10) !important;
}

/* =========================================================
   DARK THEME (SOLID) — shared shell color (no blue tint)
   ========================================================= */

html:not([data-theme="light"]) body{
  color: #e5e7eb;
  background-color: var(--sc-page-shell) !important;
}

/* Header: transparent at the top */
html:not([data-theme="light"]) .site-header{
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

html:not([data-theme="light"]) .site-header.site-header--scrolled{
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.site-header{
  --sc-header-scrolled-bg-trim: 0px;
  border-bottom: 0 !important;
  isolation: isolate;
}

.site-header > .header__inner{
  position: relative;
  z-index: 1;
}

.site-header::before{
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: calc(100% + 1px - var(--sc-header-scrolled-bg-trim));
  background: var(--sc-page-shell);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

/* Reduced motion: keep the header state change without its surface fade. */
@media (prefers-reduced-motion: reduce){
  .site-header::before{
    transition: none;
  }
}

.site-header.site-header--scrolled::before{
  opacity: 1;
}

.site-header.site-header--hidden::before{
  opacity: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .site-header.site-header--scrolled::before{
  box-shadow: none;
}

html:not([data-theme="light"]) .site-header.site-header--scrolled::before{
  box-shadow: none;
}

/* Keep the fixed header surface visible without adding a drop shadow. */
html[data-theme="light"] .site-header{
  --sc-header-visible-top-shadow: none;
}

html:not([data-theme="light"]) .site-header{
  --sc-header-visible-top-shadow: none;
}

.site-header:not(.site-header--hidden)::before{
  opacity: 1 !important;
  box-shadow: var(--sc-header-visible-top-shadow, none) !important;
}

html:not([data-theme="light"]) .site-header.site-header--hidden,
html[data-theme="light"] .site-header.site-header--hidden{
  opacity: 0 !important;
}

/* Cards / surfaces */
html:not([data-theme="light"]) .inputs-card{
  background-color: var(--sc-tool-panel, var(--sc-theme-shell)) !important;
  border-color: var(--sc-tool-line, rgba(255,255,255,.08)) !important;
  box-shadow: none !important;
}

/* Textarea */
html:not([data-theme="light"]) #optionsInput{
  background-color: var(--entries-field-bg, var(--sc-theme-contrast-surface, #0F0F10)) !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Links (no blue) */
html:not([data-theme="light"]) a:where(:not(.ep-button)){ color: rgba(255,255,255,.88); }
html:not([data-theme="light"]) a:where(:not(.ep-button)):hover{ color: rgba(255,255,255,1); }

/* Ghost buttons: neutral dark */
html:not([data-theme="light"]) .btn--ghost{
  background-color: var(--sc-theme-surface-2) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.90) !important;
}
html:not([data-theme="light"]) .btn--ghost:hover{
  background-color: var(--sc-theme-surface) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Footer */
html:not([data-theme="light"]) .site-footer{
  background-color: var(--sc-page-surface) !important;
  border-top-color: rgba(255,255,255,.12) !important;
}

html:not([data-theme="light"]) .footer__inner,
html:not([data-theme="light"]) .site-footer p,
html:not([data-theme="light"]) .footer__socialshare-label{
  color: #94a3b8 !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) .footer__links a,
html:not([data-theme="light"]) .footer__socialshare-link{
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) .footer__links a:hover,
html:not([data-theme="light"]) .footer__socialshare-link:hover{
  color: #f8fafc !important;
  text-decoration: underline;
}

/* =========================================================
   FINAL OVERRIDES — Toggle icons + visibility (bulletproof)
   ========================================================= */

.site-header #themeToggle.theme-toggle{
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 0 !important;
  overflow: visible !important;
  transform: translateY(0);
  transition: transform 140ms ease !important;
}

.site-header #themeToggle.theme-toggle:hover{
  background: transparent !important;
}

.site-header #themeToggle.theme-toggle:active{
  transform: translateY(1px) scale(0.96);
}

.site-header #themeToggle .theme-toggle__track{
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition:
    color 180ms ease,
    opacity 180ms ease !important;
}

.site-header #themeToggle .theme-toggle__track::before{
  content: none !important;
  display: none !important;
}

.site-header #themeToggle .theme-toggle__thumb{
  position: absolute !important;
  inset: 0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  display: grid !important;
  place-items: center !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: none !important;
  transform: none !important;
  transition:
    color 180ms ease,
    opacity 180ms ease !important;
}

.site-header #themeToggle .theme-toggle__thumb .theme-toggle__icon{
  position: absolute !important;
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  font-size: 18px !important;
  line-height: 1 !important;
  opacity: 0 !important;
  transform: scale(0.72) rotate(-10deg) !important;
  transition:
    opacity 170ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.site-header #themeToggle .theme-toggle__icon svg,
.site-header #themeToggle .theme-toggle__icon img{
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.site-header #themeToggle .theme-toggle__icon svg{
  fill: currentColor;
}

html[data-theme="light"] .site-header #themeToggle .theme-toggle__track{
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .site-header #themeToggle .theme-toggle__thumb{
  transform: none !important;
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(15,23,42,0.86) !important;
  -webkit-text-fill-color: rgba(15,23,42,0.86) !important;
  box-shadow: none !important;
}

.site-header #themeToggle.theme-toggle:focus-visible .theme-toggle__track{
  box-shadow: none !important;
}

html.sc-keyboard-focus .site-header #themeToggle.theme-toggle:focus-visible .theme-toggle__track{
  box-shadow:
    0 0 0 2px rgba(59,130,246,0.42) !important;
}

html:not([data-theme="light"]) .site-header #themeToggle .theme-toggle__icon--moon,
html[data-theme="light"] .site-header #themeToggle .theme-toggle__icon--sun{
  opacity: 1 !important;
  transform: scale(1) rotate(0deg) !important;
}

html:not([data-theme="light"]) .site-header #themeToggle .theme-toggle__icon--sun,
html[data-theme="light"] .site-header #themeToggle .theme-toggle__icon--moon{
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce){
  .site-header #themeToggle.theme-toggle,
  .site-header #themeToggle .theme-toggle__track,
  .site-header #themeToggle .theme-toggle__thumb,
  .site-header #themeToggle .theme-toggle__thumb .theme-toggle__icon{
    transition: none !important;
  }
}

/* =========================================================
   FINAL OVERRIDE — Header link/button text color + icons follow
   Targets: My Wheels / Save / Open / Customize (header-filebtn)
   ========================================================= */

/* Dark: bright white */
html:not([data-theme="light"]) .site-header{
  color: #FAFAF8 !important;
}
html:not([data-theme="light"]) .site-header .nav a,
html:not([data-theme="light"]) .site-header .nav a:visited,
html:not([data-theme="light"]) .site-header .logo,
html:not([data-theme="light"]) .site-header .logo:visited,
html:not([data-theme="light"]) .site-header .logo-text,
html:not([data-theme="light"]) .site-header .logo-text span,
html:not([data-theme="light"]) .site-header .header-filebtn,
html:not([data-theme="light"]) .site-header .mywheels__btn{
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  opacity: 1 !important;
}

/* Light: dark text */
html[data-theme="light"] .site-header{
  color: #0f172a !important;
}
html[data-theme="light"] .site-header .nav a,
html[data-theme="light"] .site-header .nav a:visited,
html[data-theme="light"] .site-header .logo,
html[data-theme="light"] .site-header .logo:visited,
html[data-theme="light"] .site-header .logo-text,
html[data-theme="light"] .site-header .logo-text span,
html[data-theme="light"] .site-header .header-filebtn,
html[data-theme="light"] .site-header .mywheels__btn{
  color: rgba(15,23,42,0.82) !important;
  -webkit-text-fill-color: rgba(15,23,42,0.82) !important;
  opacity: 1 !important;
}

/* Make icons follow text color */
.site-header .header-filebtn svg,
.site-header .header-filebtn svg * ,
.site-header .mywheels__btn svg,
.site-header .mywheels__btn svg * ,
.site-header .nav svg,
.site-header .nav svg *{
  stroke: currentColor !important;
  fill: none !important;
}

/* ===== FINAL (LAST) - Logo matches nav controls ===== */
.site-header .logo-text{
  font-family: var(--sc-header-nav-font, "Header Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-weight: 650 !important;
  font-size: var(--sc-header-nav-label-size) !important;
  letter-spacing: var(--sc-header-nav-letter-spacing, .04em) !important;
  line-height: 1 !important;
  text-transform: var(--sc-header-nav-transform, none) !important;
}

.site-header .newwheel-btn,
.site-header .header-filebtn,
.site-header .mywheels__btn,
.site-header .nav a,
.site-header .nav button{
  font-family: var(--sc-header-nav-font, "Header Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif) !important;
}

/* Header Share keeps the old animated premium style. */
.site-header #shareWheelBtn.header-filebtn{
  position: relative !important;
  align-self: stretch !important;
  height: 100% !important;
  padding: 0 14px !important;
  margin-left: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background:
    linear-gradient(
      115deg,
      rgba(var(--sc-page-brand-rgb),0.96),
      rgba(var(--sc-page-brand-hover-rgb),0.96),
      rgba(var(--sc-page-brand-lift-rgb),0.92),
      rgba(var(--sc-page-brand-rgb),0.96)
    ) !important;
  background-size: 320% 100% !important;
  animation: scShareFlow 5.2s ease-in-out infinite !important;
  box-shadow: none !important;
  overflow: hidden !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.site-header #shareWheelBtn.header-filebtn::before{
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  width: 170% !important;
  height: 110% !important;
  border-radius: 0 !important;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255,255,255,0.34) 45%,
      transparent 60%
    ) !important;
  opacity: .26 !important;
  transform: translateX(-120%) skewX(-18deg) !important;
  animation: scShareSheen 2.8s linear infinite !important;
  filter: blur(0.6px) !important;
  pointer-events: none !important;
}

.site-header #shareWheelBtn.header-filebtn:hover{
  animation-duration: 4.2s !important;
  opacity: 1 !important;
}

.site-header #shareWheelBtn.header-filebtn:focus-visible{
  outline: 2px solid var(--sc-brand-ring, rgba(134, 239, 172, 0.95)) !important;
  outline-offset: 2px !important;
}

html[data-theme="light"] .site-header #shareWheelBtn.header-filebtn{
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

@media (prefers-reduced-motion: reduce){
  .site-header #shareWheelBtn.header-filebtn{
    animation: none !important;
    background-size: 100% 100% !important;
  }

  .site-header #shareWheelBtn.header-filebtn::before{
    animation: none !important;
    opacity: .12 !important;
  }
}

/* Keep Entries "Spin With Friends" green while standard actions use the blue brand.
   This final lock prevents .btn--ghost from dulling it. */
#panel-entries #shareLiveBtn.btn.btn--ghost{
  background:
    linear-gradient(
      115deg,
      rgba(var(--sc-friends-rgb),0.96),
      rgba(var(--sc-friends-hover-rgb),0.96),
      rgba(var(--sc-friends-lift-rgb),0.92),
      rgba(var(--sc-friends-rgb),0.96)
    ) !important;
  background-size: 320% 100% !important;
  animation: scShareFlow 5.2s ease-in-out infinite !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

#panel-entries #shareLiveBtn.btn.btn--ghost::before{
  content: "";
  position: absolute;
  inset: -2px;
  width: 170%;
  height: 110%;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255,255,255,0.34) 45%,
      transparent 60%
    );
  transform: translateX(-120%) skewX(-18deg);
  animation: scShareSheen 2.8s linear infinite !important;
  opacity: .26;
  pointer-events: none;
  filter: blur(0.6px);
}

#panel-entries #shareLiveBtn.btn.btn--ghost:hover{
  background:
    linear-gradient(
      115deg,
      rgba(var(--sc-friends-rgb),0.96),
      rgba(var(--sc-friends-hover-rgb),0.96),
      rgba(var(--sc-friends-lift-rgb),0.92),
      rgba(var(--sc-friends-rgb),0.96)
    ) !important;
  background-size: 320% 100% !important;
  animation-duration: 4.2s !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
}

#panel-entries #shareLiveBtn.btn.btn--ghost:active{
  transform: translateY(1px);
}

#panel-entries #shareLiveBtn.btn.btn--ghost:focus-visible{
  outline: 2px solid var(--sc-friends-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  #panel-entries #shareLiveBtn.btn.btn--ghost{
    animation: none !important;
    background-size: 100% 100% !important;
  }

  #panel-entries #shareLiveBtn.btn.btn--ghost::before{
    animation: none !important;
    opacity: .12;
  }
}

.site-header .header-filebtn svg.header-filebtn__ico--filled,
.site-header .header-filebtn svg.header-filebtn__ico--filled *{
  stroke: none !important;
  fill: currentColor !important;
}

html .inputs-card.is-entries-minimized{
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Desktop header Share: plain, same footprint as the other nav controls. */
@media (min-width: 880px){
  .site-header #shareWheelBtn.header-filebtn{
    position: relative !important;
    z-index: 0 !important;
    align-self: stretch !important;
    height: 100% !important;
    padding: 0 10px !important;
    margin-left: 0 !important;
    border-radius: 0 !important;
    gap: 8px !important;
    background: transparent !important;
    background-size: auto !important;
    animation: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    color: rgba(255,255,255,0.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
    font-family: var(--sc-header-nav-font) !important;
    font-size: var(--sc-header-nav-label-size) !important;
    font-weight: var(--sc-header-nav-weight, 500) !important;
    letter-spacing: var(--sc-header-nav-letter-spacing, .04em) !important;
    line-height: 1 !important;
    text-transform: var(--sc-header-nav-transform, none) !important;
  }

  .site-header #shareWheelBtn.header-filebtn::before{
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 0 8px 8px !important;
    background: rgba(255,255,255,0.12) !important;
    opacity: 0 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transition: opacity 0.16s ease !important;
  }

  .site-header #shareWheelBtn.header-filebtn:hover::before,
  .site-header #shareWheelBtn.header-filebtn:focus-visible::before{
    opacity: 1 !important;
  }

  .site-header #shareWheelBtn.header-filebtn:active{
    transform: translateY(1px) !important;
  }

  .site-header #shareWheelBtn.header-filebtn:focus-visible{
    outline: 2px solid rgba(129, 140, 248, 0.72) !important;
    outline-offset: 3px !important;
    border-radius: 8px !important;
  }

  html[data-theme="light"] .site-header #shareWheelBtn.header-filebtn{
    color: #202124 !important;
    -webkit-text-fill-color: #202124 !important;
  }

  html[data-theme="light"] .site-header #shareWheelBtn.header-filebtn::before{
    background: rgba(32,33,36,0.07) !important;
  }
}

@media (min-width: 880px) and (prefers-reduced-motion: reduce){
  .site-header #shareWheelBtn.header-filebtn::before{
    transition: none !important;
  }
}

/* =========================================================
   Wheel and Entries editor palette
   One look for the wheel area, the Entries editor and the app dialogs on
   every page with the wheel: the homepage, every tool page and their
   translations. Change these colours here and every page follows. The
   editor's finer details (hover and focus borders, toolbar buttons) live in
   the shared component stylesheets such as styles/entries-tabs/entries-tabs.css
   and are also the same on every page; change them there.
   Pages differ only by their data (preset, title, route switches) and by the
   content below the wheel. CSS aimed at one kind of page must not repaint the
   tool or set these values (tests/shared-wheel-editor-css.test.mjs). After a
   change, run npm run check:shell-parity. Share viewers (/w/, /p/), the
   embed (/e) and /overlay keep their own styles. The page around the tool
   (--sc-page-*: background, header, footer) is separate shared-design work,
   docs/blueprint/WORK.md DESIGN-1.
   ========================================================= */
html[data-page-kind]:not(.sc-share-route){
  --sc-tool-ink: #202124;
  --sc-tool-muted: #5f6368;
  --sc-tool-paper: #ffffff;
  --sc-tool-panel: #f8f9fa;
  --sc-tool-line: #dadce0;
  --sc-brand: #125745;
  --sc-brand-hover: #0e493a;
  --sc-brand-active: #0b3a2e;
  --sc-brand-rgb: 18, 87, 69;
  --sc-brand-hover-rgb: 14, 73, 58;
  --sc-theme-shell: var(--sc-tool-paper);
  --sc-theme-contrast-surface: var(--sc-tool-paper);
  --sc-theme-surface: var(--sc-tool-panel);
  --sc-theme-surface-2: var(--sc-tool-paper);
}

html[data-page-kind]:not([data-theme="light"]):not(.sc-share-route){
  --sc-tool-ink: #e8eaed;
  --sc-tool-muted: #bdc1c6;
  --sc-tool-paper: #202124;
  --sc-tool-panel: #292a2d;
  --sc-tool-line: #5f6368;
}

/* The Entries card reads --sc-tool-panel and --sc-tool-line in its own
   rules above, so the minimized state below them still wins. */
html[data-page-kind]:not(.sc-share-route):not([data-page-bg-solid="1"]) .hero:not([data-section-background]){
  color: var(--sc-tool-ink);
}
html[data-page-kind]:not(.sc-share-route) .hero .inputs-card{
  --etabs-border: var(--sc-tool-line);
  --etab-divider: var(--sc-tool-line);
  --etab-text: var(--sc-tool-muted);
  --etab-soft-inactive-text: var(--sc-tool-muted);
  --etab-hover-text: var(--sc-tool-ink);
  --etab-active-text: var(--sc-tool-ink);
  --etab-focus-ring: var(--sc-tool-muted);
  --entries-field-bg: var(--sc-tool-paper);
  --results-title: var(--sc-tool-ink);
  --results-empty: var(--sc-tool-muted);
  --results-item-bg: var(--sc-tool-paper);
  --results-item-border: var(--sc-tool-line);
  --results-item-text: var(--sc-tool-ink);
  --results-item-meta: var(--sc-tool-muted);
  color: var(--sc-tool-ink);
}
html[data-page-kind]:not(.sc-share-route) .hero .inputs-card #optionsInput{
  color: var(--sc-tool-ink) !important;
  background-color: var(--sc-tool-paper) !important;
  border-color: var(--sc-tool-line) !important;
  caret-color: var(--sc-tool-ink);
}
html[data-page-kind]:not(.sc-share-route) .hero .inputs-card #optionsInput::placeholder{
  color: var(--sc-tool-muted) !important;
}
html[data-page-kind]:not(.sc-share-route) .hero .inputs-card :is(.inputs-card__label, .inputs-card__hint){
  color: var(--sc-tool-muted) !important;
}
html[data-page-kind]:not(.sc-share-route) .hero .inputs-card .entries-starter-hint{
  color: var(--sc-tool-muted);
}
html[data-page-kind]:not(.sc-share-route) .hero:not([data-section-background]) .csmw-panel{
  --csmw-border: var(--sc-tool-line);
  --csmw-muted: var(--sc-tool-muted);
  color: var(--sc-tool-ink);
}
html[data-page-kind]:not(.sc-share-route) .hero:not([data-section-background]) :is(.csmw-panel__textwrap, .csmw-panel__results){
  background-color: var(--sc-tool-panel);
}

/* Forced colours removes the toolbar backgrounds and focus shadows.
   Inset outlines keep the existing button sizes and avoid clipping inside
   the Entries panel. Turn off Advanced already reserves outer focus space. */
@media (forced-colors: active){
  html[data-page-kind]:not(.sc-share-route) .hero .inputs-card .etool-btn,
  html[data-page-kind]:not(.sc-share-route) .hero .inputs-card #panel-entries .sc-adv-on-note__btn{
    outline: 1px solid ButtonText;
    outline-offset: -1px;
  }

  html[data-page-kind]:not(.sc-share-route) .hero .inputs-card .etool-btn:focus-visible{
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  html[data-page-kind]:not(.sc-share-route) .hero .inputs-card #panel-entries .sc-adv-on-note__btn:focus-visible{
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}
