/* ════════════════════════════════════════════════════════════════
   Aaron's Math Sprint — Shared Stylesheet
   "AMBER CONSOLE" mission-control system (redesign 2026-07-05).
   UI: IBM Plex Sans · Data/labels: IBM Plex Mono · No serif.

   Aesthetic direction:
     Mission control / calm cockpit / everything one glance away.
     - Cold slate dark theme (default via [data-theme="midnight"]),
       cool-paper light theme (:root, the "vermillion" localStorage value).
     - ONE accent: instrument amber. Green reserved for passed/success.
     - HUD corner brackets on cards, 1px lines over shadows, radius ≤2px.
     - Mono numerals for every piece of data. Motion: quiet (150ms).

   TWO THEMES via <html data-theme="…">:
     (default / "vermillion")  cool paper + ink + amber
     [data-theme="midnight"]   cold slate + amber (primary look)

   COMPONENT CONTRACT (classes pages may use):
     Shell ....... .site-header .brand .nav .nav a[.active] .theme-toggle
                   .page .page-head .eyebrow  footer.site-footer
     Surfaces .... .card  .card.flat  .callout  .callout--hill
     Type ........ h1 h2 h3  .lead  .sub  .mono  code
     Buttons ..... .btn .btn--secondary .btn--ghost .btn--success
     Tags ........ .tag  .pill (.pill--win .pill--hill .pill--away .pill--info)
     Tiles ....... .tiles (grid)  a.tile  .tile b  .tile span  .tile__meta
     Progress .... .bar  .bar > i   .stat  .stat .n  .statgrid  .statrow
     Routine ..... .steps .step .step__t .step__b   .minday
     Tracker ..... .track label input  .streak .streak .n
     Reveal ...... details.reveal  summary  .reveal__body
     Decision .... .tree .tree .q .tree .arrow
     Confidence .. .attrib .attrib .win .attrib .err
     Plan ........ .phase .phase h3  .wk
     Worked ex ... .we .we__step  .answer (inside details.reveal)  .formula
     Console ..... .hud (corner brackets, add to any surface)
     Dock/Palette  .dock … .pal …  (injected by aaron-chrome.js — do not
                   hand-write; include <script src="aaron-chrome.js" defer>)
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ─────────────────────────  TOKENS — DAYLIGHT (default / "vermillion")  ───────────────────── */
:root {
  --color-ink:#1A212B; --color-amber:#A5701C; --color-amber-bright:#C08A2E;
  --color-green:#2E7D5B; --color-red:#B04434; --color-info:#3E6A8E;

  --surface-page:#EEF1F4; --surface-card:#FFFFFF; --surface-muted:#E3E8ED; --surface-subtle:#F5F7F9;
  --surface-inverse:#1A212B; --surface-primary:#A5701C; --surface-primary-subtle:#F4EBDC;
  --surface-success:#2E7D5B; --surface-success-subtle:#E4EFE9;
  --surface-warning:#C08A2E; --surface-warning-subtle:#F6EEDD;
  --surface-danger-subtle:#F4E3E0; --surface-info-subtle:#E4EBF2;

  --text-primary:var(--color-ink); --text-secondary:#5B6470; --text-tertiary:#79828E;
  --text-inverse:#F2F4F6; --text-on-primary:#FFFFFF; --text-link:#8F6119;
  --text-success:#276A4E; --text-warning:#7A5A14; --text-danger:var(--color-red); --text-info:var(--color-info);

  --border-default:#D6DBE2; --border-subtle:#E2E6EB; --border-strong:#AEB7C1; --border-focus:#A5701C;

  --grid-line:rgba(26,33,43,0.045);
  --hero-from:#1A212B; --hero-to:#232C3A; --hero-text:#F2F4F6; --hero-dim:#A7B0BC;

  /* fonts / scale */
  --font-display:'IBM Plex Sans',system-ui,sans-serif;
  --font-body:'IBM Plex Sans',system-ui,sans-serif;
  --font-mono:'IBM Plex Mono','Courier New',monospace;
  --text-xs:.75rem; --text-sm:.875rem; --text-base:1rem; --text-lg:1.125rem; --text-xl:1.25rem; --text-2xl:1.5rem; --text-3xl:1.875rem; --text-4xl:2.25rem;

  /* spacing / radius / shadow — console is square + flat */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem; --space-12:3rem;
  --radius-sm:0; --radius-default:1px; --radius-md:2px; --radius-lg:2px; --radius-xl:2px; --radius-full:2px;
  --shadow-sm:none; --shadow-default:none; --shadow-md:none; --shadow-lg:none;

  --content-narrow:820px; --header-h:52px; --dock-h:48px;
}

/* ─────────────────────────  TOKENS — MIDNIGHT (primary look)  ───────────────────── */
[data-theme="midnight"] {
  --surface-page:#10141D; --surface-card:#131926; --surface-muted:#1A2130; --surface-subtle:#151B28;
  --surface-inverse:#0B0F16; --surface-primary:#E0A458; --surface-primary-subtle:#241D10;
  --surface-success:#6FBF8F; --surface-success-subtle:#152218;
  --surface-warning:#E0A458; --surface-warning-subtle:#241D10;
  --surface-danger-subtle:#2A1714; --surface-info-subtle:#16202E;

  --text-primary:#EAEDF2; --text-secondary:#95A0B0; --text-tertiary:#6E7987;
  --text-inverse:#10141D; --text-on-primary:#10141D; --text-link:#E0A458;
  --text-success:#6FBF8F; --text-warning:#E0A458; --text-danger:#D97E6A; --text-info:#8CA8C6;

  --border-default:#242D3D; --border-subtle:#1A2130; --border-strong:#3A465A; --border-focus:#E0A458;

  --grid-line:rgba(149,160,176,0.05);
  --hero-from:#131926; --hero-to:#10141D; --hero-text:#EAEDF2; --hero-dim:#95A0B0;
}

/* ─────────────────────────  BASE  ───────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-body); color:var(--text-primary); line-height:1.55;
  background-color:var(--surface-page);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:32px 32px;
  min-height:100vh;
  padding-bottom:calc(var(--dock-h) + 12px); /* clear the fixed practice dock */
}
h1,h2,h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;line-height:1.15}
h1{font-size:clamp(1.6rem,5.5vw,2.1rem)}
h2{font-size:1.2rem}
h3{font-size:1rem}
p{margin:0}
a{color:var(--text-link);text-decoration:none}
a:hover{text-decoration:underline}
b,strong{font-weight:600}
.mono,code{font-family:var(--font-mono);font-size:.9em}
code{background:var(--surface-muted);padding:1px 6px;border-radius:var(--radius-sm)}
.lead{font-size:.95rem;color:var(--text-secondary);margin:.4rem 0 .2rem}
.sub{font-size:.8rem;color:var(--text-tertiary)}
.eyebrow{font-family:var(--font-mono);font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.14em;color:var(--text-tertiary)}
:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:var(--radius-sm)}

/* ─────────────────────────  HUD CORNER BRACKETS  ───────────────────── */
.hud{position:relative}
.hud::before,.hud::after{content:"";position:absolute;width:10px;height:10px;pointer-events:none;z-index:1}
.hud::before{top:-1px;left:-1px;border-top:2px solid var(--surface-primary);border-left:2px solid var(--surface-primary)}
.hud::after{bottom:-1px;right:-1px;border-bottom:2px solid var(--surface-primary);border-right:2px solid var(--surface-primary)}
.hud--quiet::before,.hud--quiet::after{border-color:var(--border-strong)}
.hud--green::before,.hud--green::after{border-color:var(--surface-success)}

/* ─────────────────────────  HEADER + NAV  ───────────────────── */
.site-header{
  position:sticky;top:0;z-index:50;background:var(--surface-inverse);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.site-header__bar{max-width:var(--content-narrow);margin:0 auto;display:flex;align-items:center;gap:var(--space-3);padding:0 var(--space-4);height:var(--header-h)}
.brand{font-family:var(--font-body);font-weight:700;font-size:.95rem;color:var(--hero-text);white-space:nowrap}
.brand span{color:#E0A458}
.brand a{color:inherit;text-decoration:none}
.theme-toggle{
  margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:transparent;border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.8);
  font-family:var(--font-mono);font-size:.62rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  border-radius:var(--radius-md);padding:5px 10px;
}
.theme-toggle:hover{border-color:rgba(255,255,255,.45);color:#fff}
.nav{background:var(--surface-inverse);border-bottom:1px solid rgba(255,255,255,.09)}
.nav__scroll{max-width:var(--content-narrow);margin:0 auto;display:flex;gap:2px;padding:0 var(--space-3) 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.nav__scroll::-webkit-scrollbar{display:none}
.nav a{
  flex:0 0 auto;font-family:var(--font-mono);color:rgba(255,255,255,.5);font-size:.68rem;font-weight:500;
  letter-spacing:.07em;text-transform:uppercase;text-decoration:none;
  padding:12px 11px;border-bottom:2px solid transparent;white-space:nowrap;transition:color .15s
}
.nav a:hover{color:rgba(255,255,255,.85);text-decoration:none}
.nav a.active{color:#E0A458;font-weight:600;border-bottom-color:#E0A458}

/* ─────────────────────────  PAGE WRAP  ───────────────────── */
.page{max-width:var(--content-narrow);margin:0 auto;padding:var(--space-5) var(--space-4) var(--space-12)}
.page-head{margin-bottom:var(--space-5)}
.page-head h1{margin-bottom:4px;margin-top:4px}
.stack{display:flex;flex-direction:column;gap:var(--space-4)}

/* ─────────────────────────  CARDS / CALLOUTS  ───────────────────── */
.card{position:relative;background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--radius-lg);padding:var(--space-5)}
.card::before,.card::after{content:"";position:absolute;width:10px;height:10px;pointer-events:none}
.card::before{top:-1px;left:-1px;border-top:2px solid var(--border-strong);border-left:2px solid var(--border-strong)}
.card::after{bottom:-1px;right:-1px;border-bottom:2px solid var(--border-strong);border-right:2px solid var(--border-strong)}
.card.flat{background:var(--surface-subtle)}
.card.flat::before,.card.flat::after{display:none}
.card>h2{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.card__title{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.callout{position:relative;background:var(--surface-card);border:1px solid var(--border-default);border-left:3px solid var(--surface-primary);border-radius:var(--radius-lg);padding:var(--space-4) var(--space-5)}
.callout h2{color:var(--text-link);font-size:1.02rem}
.callout--hill{border-left-color:var(--surface-warning)}
.callout--hill h2{color:var(--text-warning)}

/* hero (ink instrument band) */
.hero{position:relative;overflow:visible;color:var(--hero-text);border-radius:var(--radius-xl);padding:var(--space-6) var(--space-5);
  background:linear-gradient(150deg,var(--hero-from),var(--hero-to));border:1px solid var(--border-default)}
.hero::before,.hero::after{content:"";position:absolute;width:12px;height:12px;pointer-events:none}
.hero::before{top:-1px;left:-1px;border-top:2px solid #E0A458;border-left:2px solid #E0A458}
.hero::after{bottom:-1px;right:-1px;border-bottom:2px solid #E0A458;border-right:2px solid #E0A458}
.hero h1{color:var(--hero-text)}
.hero p{color:var(--hero-dim);margin-top:8px}
.hero__chip{display:inline-flex;align-items:center;gap:8px;margin-top:14px;border:1px dashed rgba(224,164,88,.5);
  border-radius:var(--radius-md);padding:6px 11px;font-family:var(--font-mono);font-size:.64rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:#E0A458}

/* ─────────────────────────  BUTTONS  ───────────────────── */
.btn{appearance:none;cursor:pointer;font-family:var(--font-mono);font-weight:600;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;
  border:none;border-radius:var(--radius-default);padding:11px 16px;display:inline-flex;align-items:center;gap:8px;
  background:var(--surface-primary);color:var(--text-on-primary);transition:filter .15s,transform .1s}
.btn:hover{filter:brightness(1.08);text-decoration:none}
.btn:active{transform:scale(.98)}
.btn--success{background:var(--surface-success);color:var(--text-on-primary)}
.btn--secondary{background:transparent;border:1px solid var(--border-strong);color:var(--text-primary)}
.btn--ghost{background:transparent;color:var(--text-secondary);border:1px solid var(--border-default);font-weight:500}

/* ─────────────────────────  TAGS / PILLS  ───────────────────── */
.tag{font-family:var(--font-mono);font-size:.58rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;padding:3px 8px;
  border-radius:var(--radius-md);background:var(--surface-primary-subtle);color:var(--text-link);border:1px solid var(--border-default)}
.pill{display:inline-block;font-family:var(--font-mono);font-size:.58rem;font-weight:600;border-radius:var(--radius-md);padding:2px 8px;
  text-transform:uppercase;letter-spacing:.08em;border:1px solid var(--border-default);background:transparent}
.pill--win{color:var(--text-success);border-color:var(--surface-success)}
.pill--hill{color:var(--text-warning);border-color:var(--surface-warning)}
.pill--away{color:var(--text-info);border-color:var(--text-info)}
.pill--info{color:var(--text-info);border-color:var(--text-info)}

/* ─────────────────────────  TILES (link grid)  ───────────────────── */
.tiles{display:grid;grid-template-columns:1fr;gap:var(--space-3)}
a.tile{display:flex;flex-direction:column;gap:3px;background:var(--surface-subtle);border:1px solid var(--border-default);border-radius:var(--radius-lg);
  padding:var(--space-4);text-decoration:none;color:var(--text-primary);transition:border-color .15s,background .15s}
a.tile:hover{border-color:var(--surface-primary);background:var(--surface-card);text-decoration:none}
.tile b{font-size:.95rem;font-weight:600}
.tile span{font-size:.76rem;color:var(--text-secondary)}
.tile__meta{display:flex;align-items:center;gap:8px;margin-top:6px}

/* ─────────────────────────  PROGRESS / STAT  ───────────────────── */
.bar{height:4px;background:var(--surface-muted);border-radius:var(--radius-sm);overflow:hidden}
.bar>i{display:block;height:100%;background:var(--surface-primary);border-radius:var(--radius-sm);transition:width .4s ease}
.bar>i.ok{background:var(--surface-success)}
.bar>i.mid{background:var(--surface-warning)}
.statrow{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--border-subtle)}
.statrow:first-child{border-top:none}
.statrow .name{flex:1;font-weight:500;font-size:.9rem}
.statrow .mono{font-size:.76rem;color:var(--text-secondary);min-width:54px}
.stat{display:flex;flex-direction:column;gap:2px}
.stat .n{font-family:var(--font-mono);font-weight:600;font-size:1.9rem;line-height:1.05;font-variant-numeric:tabular-nums}
.stat .k{font-family:var(--font-mono);font-size:.62rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-tertiary);font-weight:500}
.statgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3)}

/* ─────────────────────────  DAILY ROUTINE  ───────────────────── */
.steps{margin-top:6px}
.step{display:flex;gap:12px;padding:11px 0;border-top:1px solid var(--border-subtle)}
.step:first-child{border-top:none}
.step__t{flex:0 0 56px;font-family:var(--font-mono);font-size:.6rem;font-weight:600;letter-spacing:.04em;color:var(--text-link);
  background:var(--surface-primary-subtle);border:1px solid var(--border-default);border-radius:var(--radius-md);height:fit-content;padding:5px 6px;text-align:center}
.step__b{flex:1}
.step__b b{font-size:.92rem}
.step__b span{display:block;font-size:.8rem;color:var(--text-secondary);margin-top:2px}
.minday{margin-top:14px;background:var(--surface-success-subtle);border:1px solid var(--surface-success);border-radius:var(--radius-md);padding:11px 13px;font-size:.84rem;color:var(--text-success)}

/* ─────────────────────────  CHECK-IN TRACKER  ───────────────────── */
.track label{display:flex;align-items:center;gap:11px;padding:10px 0;border-top:1px solid var(--border-subtle);font-size:.9rem;cursor:pointer}
.track label:first-child{border-top:none}
.track input{width:19px;height:19px;accent-color:var(--surface-primary);flex:0 0 auto}
.track .done{color:var(--text-tertiary);text-decoration:line-through}
.streak{display:flex;align-items:center;justify-content:space-between;margin-top:14px;background:var(--surface-inverse);color:var(--hero-text);
  border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:12px 15px}
.streak .n{font-family:var(--font-mono);font-weight:600;font-size:1.5rem;line-height:1}
.streak small{color:var(--hero-dim);font-family:var(--font-mono);font-size:.64rem;letter-spacing:.06em;text-transform:uppercase}

/* ─────────────────────────  REVEAL (collapsibles / answer keys)  ───────────────────── */
details.reveal{border-top:1px solid var(--border-subtle)}
details.reveal:first-of-type{border-top:none}
details.reveal>summary{list-style:none;cursor:pointer;padding:13px 0;font-weight:600;font-size:.93rem;display:flex;align-items:center;justify-content:space-between;gap:8px}
details.reveal>summary::-webkit-details-marker{display:none}
details.reveal>summary .chev{transition:transform .2s;color:var(--text-tertiary);flex:0 0 auto}
details.reveal[open]>summary .chev{transform:rotate(90deg)}
.reveal__body{padding:2px 0 15px;font-size:.88rem;color:var(--text-secondary)}
.reveal__body ul{margin:6px 0 6px 18px}
.reveal__body li{margin:5px 0}
details.reveal.boxed{border:1px dashed var(--border-strong);border-radius:var(--radius-md);padding:0 var(--space-4);background:var(--surface-subtle)}

/* ─────────────────────────  DECISION TREE  ───────────────────── */
.tree{background:var(--surface-subtle);border:1px dashed var(--border-strong);border-radius:var(--radius-md);padding:13px 14px;margin:10px 0;font-size:.86rem}
.tree b{color:var(--text-link)}
.tree .q{font-weight:600;margin-top:9px;color:var(--text-primary)}
.tree .q:first-child{margin-top:0}
.tree .arrow{color:var(--text-tertiary)}

/* ─────────────────────────  CONFIDENCE / ATTRIBUTION  ───────────────────── */
.attrib{display:grid;grid-template-columns:1fr;gap:11px;margin:11px 0}
.attrib>div{border-radius:var(--radius-md);padding:13px;font-size:.85rem}
.attrib .win{background:var(--surface-success-subtle);border:1px solid var(--surface-success);color:var(--text-success)}
.attrib .err{background:var(--surface-warning-subtle);border:1px solid var(--surface-warning);color:var(--text-warning)}
.attrib b{display:block;font-family:var(--font-mono);font-size:.6rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:5px;opacity:.9}

/* ─────────────────────────  PLAN / CALENDAR  ───────────────────── */
.phase{border-left:3px solid var(--surface-primary);padding-left:13px;margin:12px 0 4px}
.phase.success{border-left-color:var(--surface-success)}
.phase h3{font-size:1rem}
.phase .sub{margin-bottom:6px}
.wk{border-top:1px solid var(--border-subtle);padding:10px 0;font-size:.85rem}
.wk b{color:var(--text-primary)}

/* ─────────────────────────  WORKED EXAMPLE  ───────────────────── */
.we{background:var(--surface-subtle);border:1px solid var(--border-subtle);border-left:3px solid var(--surface-success);border-radius:var(--radius-md);padding:14px 15px;margin:10px 0}
.we__step{font-family:var(--font-mono);font-size:.85rem;padding:4px 0;color:var(--text-primary)}
.formula{font-family:var(--font-mono);font-size:1rem;font-weight:500;padding:13px 16px;background:var(--surface-subtle);border-radius:var(--radius-default);border-left:3px solid var(--surface-primary);overflow-x:auto}

/* ─────────────────────────  FOOTER  ───────────────────── */
.site-footer{text-align:center;color:var(--text-tertiary);font-family:var(--font-mono);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;padding:var(--space-8) var(--space-4) var(--space-10)}
.site-footer a{color:var(--text-secondary)}

/* ─────────────────────────  PRACTICE DOCK (injected by aaron-chrome.js)  ───────────────────── */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:55;background:var(--surface-inverse);border-top:1px solid var(--border-strong)}
.dock__in{max-width:var(--content-narrow);margin:0 auto;display:flex;align-items:center;gap:4px;padding:0 var(--space-3);height:var(--dock-h);overflow-x:auto;scrollbar-width:none;font-family:var(--font-mono)}
.dock__in::-webkit-scrollbar{display:none}
.dock__tag{font-size:.56rem;color:rgba(255,255,255,.35);letter-spacing:.14em;text-transform:uppercase;flex:0 0 auto;padding-right:8px;border-right:1px solid rgba(255,255,255,.15);margin-right:6px}
.dock a{flex:0 0 auto;font-size:.66rem;letter-spacing:.05em;color:rgba(255,255,255,.6);padding:5px 9px;text-transform:uppercase;text-decoration:none}
.dock a:hover{color:#E0A458;text-decoration:none}
.dock a.dock--here{color:#E0A458;border-bottom:1px solid #E0A458}
.dock button{flex:0 0 auto;margin-left:auto;font-family:var(--font-mono);font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;
  color:#10141D;background:#E0A458;border:none;padding:7px 12px;cursor:pointer;border-radius:var(--radius-md);
  position:sticky;right:0;box-shadow:0 0 0 6px var(--surface-inverse)}
.dock button:active{transform:scale(.97)}

/* ─────────────────────────  JUMP PALETTE (injected by aaron-chrome.js)  ───────────────────── */
.pal{position:fixed;inset:0;z-index:60;display:none;align-items:flex-start;justify-content:center;background:rgba(6,9,14,.7);padding:10vh 16px 0}
.pal.open{display:flex}
.pal__box{width:100%;max-width:520px;background:var(--surface-card);border:1px solid var(--surface-primary);border-radius:var(--radius-md);overflow:hidden}
.pal__box input{width:100%;background:var(--surface-page);border:none;border-bottom:1px solid var(--border-default);color:var(--text-primary);
  font-family:var(--font-mono);font-size:.9rem;padding:13px 16px;outline:none}
.pal__box input::placeholder{color:var(--text-tertiary)}
.pal__list{max-height:46vh;overflow-y:auto}
.pal__list a{display:flex;align-items:center;gap:10px;padding:10px 16px;color:var(--text-primary);font-size:.85rem;border-top:1px solid var(--border-subtle);text-decoration:none}
.pal__list a:hover,.pal__list a.sel{background:var(--surface-primary-subtle);text-decoration:none}
.pal__list .t{font-family:var(--font-mono);font-size:.56rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-link);
  border:1px solid var(--border-default);border-radius:var(--radius-md);padding:2px 6px;flex:0 0 auto}
.pal__hint{font-family:var(--font-mono);font-size:.58rem;color:var(--text-tertiary);padding:8px 16px;border-top:1px solid var(--border-default)}

/* ─────────────────────────  RESPONSIVE  ───────────────────── */
@media (min-width:560px){
  .tiles{grid-template-columns:1fr 1fr}
  .attrib{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
