/* ════════════════════════════════════════════════════════════════════
   guest.css — shared shell for the Luniter GUEST SITE
   --------------------------------------------------------------------
   The Guest Site is welcome / about / basics / glossary / learning /
   using-ai / observatory / membership. This file is the single source of truth for the
   chrome they all share: design tokens, the 4 runtime palettes, the
   reset, the nav, the generic section system, buttons, the callout,
   the newsletter band, the footer, and the shared responsive rules.

   Page-UNIQUE component CSS (hero variants, score grids, tier grids,
   editions, lesson lists, the welcome galaxy, etc.) stays inline in
   each page's own <style> block — loaded AFTER this file, so any page
   that needs a shared class styled differently can simply override it.

   The Member Site has its own stylesheet (assets/css/site.css); the
   two are deliberately separate. See assets/js/guest-nav.js.

   PALETTE — the :root defaults below ARE the TNB · Deep — Tuned palette
   (accent #82AAFF, surface #011732): Luniter's canonical default since
   2026-06-21 (docs/LUNITER_DESIGN_LANGUAGE.md Part 7.4). The body.p-<id>
   blocks are the three runtime-switchable alternates (tnb-deep / current /
   cosmic-midnight); the palette switcher widget toggles the body class.

   NOTE on naming — the Guest Site uses short, page-local token names
   (--accent, --surface, --font-b …). The Member Site's design_tokens.py
   SSOT uses the longer --color-* / --font-* names. Same design system,
   same values, deliberately separate worlds (see Problem 1, Phase 274).
   ════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   Design tokens (mirrors LUNITER_DESIGN_LANGUAGE.md Appendix A)
   ───────────────────────────────────────────────────────── */
:root {
  --bg: #000000;
  --text: #FFFFFF;

  /* Score / status colors — FIXED across palettes (never theme these).
     Canonical values per LUNITER_DESIGN_LANGUAGE.md Part 7.3. */
  --green: #85BB65;
  --gold: #D4AF37;
  --orange: #ff9100;
  --yellow: #F5C842;
  --red: #FF5252;

  /* Heat zones — FIXED across palettes */
  --zone-cold:  #6366F1;
  --zone-cool:  #06B6D4;
  --zone-prime: #85BB65;
  --zone-warm:  #ff9100;
  --zone-hot:   #FF5252;

  /* Type / radius */
  --font-d: 'DM Serif Display', Georgia, serif;
  --font-b: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-m: 'DM Mono', 'SF Mono', Menlo, monospace;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --radius-btn: 50px;

  /* Per-palette tokens (overridden by body.p-<id> below — initial = tnb-deep-v2 · Tuned) */
  --surface:        #011732;
  --surface-alt:    #042447;
  --border:         #123962;
  --rule:           rgba(var(--color-accent-rgb), 0.08);
  --text-muted:     #CAD5E3;
  --text-dim:       #8196AF;
  --accent:         #82AAFF;
  --accent-hover:   #ADCBFF;
  --footer-bg:      #000A21;

  /* RGB triplets for the rgba(var(--color-accent-rgb), α) washes used across
     the guest pages. These two deliberately keep the Member-Site --color-*
     names (the wash/hairline CSS was written against them). Values must match
     --accent / --surface above and in each palette block below. */
  --color-accent-rgb:  130, 170, 255;
  --color-surface-rgb: 1, 23, 50;
}

/* Each palette block re-declares --rule so it re-resolves against that
   palette's accent RGB (a :root-computed --rule would keep the default). */
body.p-current {
  --surface: #0A1628; --surface-alt: #0D1E33; --border: #1A2A40;
  --text-muted: #B0B8C8; --text-dim: #7A8599;
  --accent: #4A9FD9; --accent-hover: #5BB0EA;
  --footer-bg: #050E1C;
  --color-accent-rgb: 74, 159, 217; --color-surface-rgb: 10, 22, 40;
  --rule: rgba(var(--color-accent-rgb), 0.08);
}
body.p-tnb-deep {
  --surface: #001B3A; --surface-alt: #002451; --border: #00346E;
  --text-muted: #BBDAFF; --text-dim: #7285B7;
  --accent: #82AAFF; --accent-hover: #A5C2FF;
  --footer-bg: #00112B;
  --color-accent-rgb: 130, 170, 255; --color-surface-rgb: 0, 27, 58;
  --rule: rgba(var(--color-accent-rgb), 0.08);
}
body.p-tnb-deep-v2 {
  --surface: #011732; --surface-alt: #042447; --border: #123962;
  --text-muted: #CAD5E3; --text-dim: #8196AF;
  --accent: #82AAFF; --accent-hover: #ADCBFF;
  --footer-bg: #000A21;
  --color-accent-rgb: 130, 170, 255; --color-surface-rgb: 1, 23, 50;
  --rule: rgba(var(--color-accent-rgb), 0.08);
}
body.p-cosmic-midnight {
  --surface: #0E0924; --surface-alt: #191334; --border: #2B274F;
  --text-muted: #C4C4D5; --text-dim: #8D8CA6;
  --accent: #D480DA; --accent-hover: #EB9DEF;
  --footer-bg: #060217;
  --color-accent-rgb: 212, 128, 218; --color-surface-rgb: 14, 9, 36;
  --rule: rgba(var(--color-accent-rgb), 0.08);
}

/* ─────────────────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(var(--color-accent-rgb), 0.25);
  border-radius: 4px;
}

/* Site-wide starfield (fixed, behind everything) */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.content-layer { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────
   Sticky nav — markup injected by assets/js/guest-nav.js
   ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--color-surface-rgb), 0.85);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nav-brand-name {
  font-family: var(--font-d);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-brand-tag {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  flex: 1;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-tab:hover { background: rgba(var(--color-accent-rgb), 0.04); color: var(--text); }
.nav-tab.active { color: var(--text); }
.nav-right { display: flex; align-items: center; }
.nav-signin {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 20px;
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--accent); }
/* Bridge button — crosses into the Member Site (see guest-nav.js) */
.nav-bridge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-right: 14px;
  border-radius: var(--radius-btn);
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.nav-bridge:hover { border-color: var(--accent); color: var(--accent); }
.nav-bridge-arrow { font-size: 0.92em; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-btn);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────
   Generic section system
   ───────────────────────────────────────────────────────── */
section.s {
  padding: 96px 24px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.s-inner { max-width: 1100px; margin: 0 auto; }
.s-narrow { max-width: 760px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-m);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.s-title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 24px;
}
.s-lede {
  font-family: var(--font-b);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 24px;
}
.s-lede strong { color: var(--text); font-weight: 500; }
.s-body p {
  font-family: var(--font-b);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 64ch;
}
.s-body p:first-of-type {
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.6;
}
.s-body p strong { color: var(--text); font-weight: 500; }
.s-body p em { color: var(--text); font-style: italic; }

/* ─────────────────────────────────────────────────────────
   Buttons + inline links
   ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.30);
}
.btn-large { padding: 18px 42px; font-size: 1rem; }
.btn-secondary {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 0.5px solid rgba(176, 184, 200, 0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }
.inline-link {
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent);
  transition: color 0.15s, border-color 0.15s;
}
.inline-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* ─────────────────────────────────────────────────────────
   Callout box
   ───────────────────────────────────────────────────────── */
.callout {
  margin-top: 36px;
  background: var(--surface-alt);
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.callout-lbl {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.callout p {
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.callout p strong { color: var(--text); font-weight: 500; }

/* ─────────────────────────────────────────────────────────
   "Why" / philosophy close — used by about, basics, learning
   ───────────────────────────────────────────────────────── */
.why-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.why-quote {
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 32px;
}
.why-body p {
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: left;
}
.why-body p strong { color: var(--text); font-weight: 500; }
.why-stamp {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.why-stamp::before,
.why-stamp::after {
  content: '';
  width: 28px;
  height: 0.5px;
  background: rgba(176, 184, 200, 0.4);
}

/* ─────────────────────────────────────────────────────────
   Next-step card — used by basics, glossary
   ───────────────────────────────────────────────────────── */
.next-step {
  max-width: 880px;
  margin: 44px auto 0;
  background:
    radial-gradient(at 14% 30%, rgba(var(--color-accent-rgb), 0.14) 0%, transparent 55%),
    var(--surface-alt);
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  border-radius: var(--radius-md);
  padding: 40px 40px 38px;
  text-align: center;
}
.next-step-eyebrow {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.next-step h3 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 400;
}
.next-step p {
  font-family: var(--font-b);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 26px;
}

/* ─────────────────────────────────────────────────────────
   Final CTA — base (membership / brief override locally)
   ───────────────────────────────────────────────────────── */
.final-cta {
  padding: 96px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(var(--color-accent-rgb), 0.04));
}
.final-cta h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--text);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-sub {
  font-family: var(--font-b);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────
   Newsletter band
   ───────────────────────────────────────────────────────── */
.newsletter-band {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 24px;
}
.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.newsletter-text .lbl {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.newsletter-text p {
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.newsletter-text strong { color: var(--text); font-weight: 500; }
.ck-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 4px 4px 4px 18px;
  min-width: 320px;
}
.ck-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-b);
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px 0;
}
.ck-form input::placeholder { color: var(--text-dim); }
.ck-form button {
  padding: 9px 22px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.15s;
}
.ck-form button:hover { background: var(--accent-hover); }

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-d);
  font-size: 1rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  grid-column: 1 / -1;
  font-family: var(--font-b);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.footer-disclaimer strong { color: var(--text); font-weight: 600; }
.footer-contact {
  grid-column: 1 / -1;
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -12px;
}
.footer-contact a { color: var(--text); border-bottom: 0.5px solid var(--rule); }
.footer-contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   Shared responsive — shell only.
   Pages keep hero/component breakpoints in their own <style>.
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  section.s { padding: 80px 24px; }
}
@media (max-width: 768px) {
  section.s { padding: 64px 20px; }
  .final-cta-row { flex-direction: column; gap: 16px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 16px; }
  .ck-form { min-width: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .nav-signin { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }
  .nav-brand-tag { display: none; }
  .nav-bridge { padding: 6px 11px; margin-right: 8px; font-size: 0.78rem; }
  .nav-tabs {
    margin-left: 12px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 6px 9px; font-size: 0.78rem; white-space: nowrap; }
  /* Keep all three launch tabs visible beneath the brand and subscribe button. */
  .nav-inner { height: auto; min-height: 64px; padding: 12px 20px 8px; flex-wrap: wrap; gap: 8px; }
  .nav-brand { flex: 1; }
  .nav-right { margin-left: auto; }
  .nav-tabs { order: 3; flex: 0 0 100%; width: 100%; margin-left: 0; justify-content: space-between; }
  .nav-tab { padding: 6px 4px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Shared widget styles from luniter.design_tokens.palette_switcher_css(). */
/* Palette switcher widget — floating bottom-right */
  #palette-switcher {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 12px;
    color: var(--color-text, #FFFFFF);
  }
  #palette-switcher .ps-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill, 999px);
    padding: 6px 10px;
    color: inherit;
    cursor: pointer;
    transition: background var(--duration-fast, 150ms) var(--ease-standard);
  }
  #palette-switcher .ps-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.32);
  }
  #palette-switcher .ps-dots {
    display: inline-flex;
    gap: 4px;
  }
  #palette-switcher .ps-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  #palette-switcher .ps-chevron {
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
    transition: transform var(--duration-fast, 150ms);
  }
  #palette-switcher[data-state="expanded"] .ps-chevron {
    transform: rotate(90deg);
  }
  #palette-switcher .ps-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 220px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md, 12px);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
  #palette-switcher[data-state="expanded"] .ps-panel {
    display: flex;
  }
  #palette-switcher .ps-panel-title {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 8px 4px;
  }
  #palette-switcher .ps-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--duration-fast, 150ms);
  }
  #palette-switcher .ps-option:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  #palette-switcher .ps-option[data-active="true"] {
    background: rgba(255, 255, 255, 0.10);
  }
  #palette-switcher .ps-swatch {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid rgba(255, 255, 255, 0.20);
  }
  #palette-switcher .ps-label {
    flex: 1;
  }
  #palette-switcher .ps-reset {
    margin-top: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 4px);
    color: rgba(255, 255, 255, 0.55);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color var(--duration-fast, 150ms), border-color var(--duration-fast, 150ms);
  }
  #palette-switcher .ps-reset:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
  }
  @media (max-width: 600px) {
    #palette-switcher { right: 8px; bottom: 8px; }
    #palette-switcher .ps-label { display: none; }
    #palette-switcher .ps-panel { min-width: 0; }
  }
