/* =====================================================================
   Elvatio OS  ·  Design system "Warm Horizon"  ·  v1.0, 28 Sep 2026
   Winner: warm-luxe, merged with grafts from neo-minimal, mission-control
   and aurora-glass. Dark only. Read DESIGN.md for the rules behind this.

   App copy (scripts/elvatio_os/web/css). Source: data/os/design/tokens.css. Set
   <body data-mood="you|working|clear">. Fonts load below (Google Fonts only).
   ===================================================================== */
/* Fonts load from index.html (<link> to Google Fonts), not @import, so the page never waits on a chained request. */

/* ---------------------------------------------------------------------
   1. THE MOOD  (signature motion)
   One registered color drives the whole OS. It glides between states
   over 2.6s: ember = you are needed, champagne = only working,
   sage = all clear. Everything sun-shaped reads it.
   --------------------------------------------------------------------- */
@property --mood   { syntax: '<color>'; inherits: true; initial-value: #f08a5d; }
@property --mood-2 { syntax: '<color>'; inherits: true; initial-value: #f3d3a0; }

/* ---------------------------------------------------------------------
   2. TOKENS
   --------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* canvas + surfaces (warm charcoal, never pure black except Focus) */
  --bg-0:       #0c0a09;   /* Focus room */
  --bg:         #14110f;   /* app canvas */
  --bg-side:    #100e0c;   /* sidebar */
  --surface-1:  #1f1a16;   /* card base */
  --surface-2:  #26201b;   /* card top, raised */
  --surface-3:  #2b241e;   /* popover, toast, sheet */
  --glass:      rgba(28, 23, 19, .80);
  --line:       rgba(240, 222, 196, .08);
  --line-2:     rgba(240, 222, 196, .14);
  --line-3:     rgba(240, 222, 196, .22);

  /* ink (contrast measured on --surface-3, the lightest surface) */
  --ink:        #f3ebe0;   /* 13.6:1  primary text */
  --ink-2:      #c7bba9;   /*  8.5:1  secondary text */
  --ink-3:      #9a8e80;   /*  4.8:1  meta, timestamps, labels (smallest allowed text) */
  --ink-4:      #6d645a;   /*  NON-TEXT ONLY: hairlines, idle ticks, empty ring tracks */

  /* accents */
  --champ:      #e8cb96;   /* working, primary actions, selection */
  --champ-hi:   #f6e2b8;
  --champ-deep: #c9a66a;
  --champ-ink:  #2a1f12;   /* text on champagne, 10.3:1 */
  --champ-soft: rgba(232, 203, 150, .10);
  --ember:      #f08a5d;   /* ONLY means "you". Filled = you block it. Hollow = someone else does. */
  --ember-deep: #d96f43;
  --ember-soft: rgba(240, 138, 93, .12);
  --sage:       #a8c08e;   /* done, resting, healthy, all clear */
  --sage-soft:  rgba(168, 192, 142, .12);
  --ash:        #8c8277;   /* stale */

  /* mood targets */
  --mood-you:     #f08a5d;
  --mood-working: #e8cb96;
  --mood-clear:   #a8c08e;
  --breath: 7s;            /* sun breathing: 7s when needed, 9s working, 11s clear */

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: 64px;  /* Focus sentence */
  --fs-h1:      60px;  /* page status sentence */
  --fs-greet:   24px;  /* "Good morning, Arsen." */
  --fs-h2:      28px;  /* section heads, session names */
  --fs-h3:      17.5px;/* card titles (sans 520) */
  --fs-lede:    17px;
  --fs-body:    15px;
  --fs-sm:      13.5px;
  --fs-meta:    12.5px;
  --fs-label:   11px;  /* mono uppercase, tracked .14em */

  /* spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px;
  --gutter: 56px;          /* desktop page gutter; 16px on mobile */

  /* radii */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* elevation (tactile: inset top highlight + soft drop) */
  --e-1: inset 0 1px 0 rgba(255, 240, 220, .05), 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -22px rgba(0, 0, 0, .75);
  --e-2: inset 0 1px 0 rgba(255, 240, 220, .07), 0 2px 6px rgba(0, 0, 0, .40), 0 30px 70px -20px rgba(0, 0, 0, .80);
  --e-3: inset 0 1px 0 rgba(255, 240, 220, .08), 0 0 0 1px rgba(0, 0, 0, .45), 0 40px 100px -24px rgba(0, 0, 0, .90);
  --blur: blur(18px) saturate(1.2);

  /* motion */
  --ease:        cubic-bezier(.2, .7, .2, 1);    /* default: out, soft landing */
  --ease-inout:  cubic-bezier(.65, 0, .35, 1);   /* mood glide, halos */
  --t-fast: 160ms; --t-base: 320ms; --t-slow: 600ms; --t-mood: 2600ms;

  /* layout */
  --side-w: 248px;
  --content-max: 1096px;
  --dock-h: 52px;
  --tab-h: 64px;

  /* z */
  --z-dock: 40; --z-tab: 60; --z-sheet: 100; --z-palette: 110; --z-focus: 120; --z-toast: 130; --z-grain: 200;
}

/* mood states. Set on <body>. The transition is the signature motion. */
[data-mood="you"]     { --mood: #f08a5d; --mood-2: #f3d3a0; --breath: 7s; }
[data-mood="working"] { --mood: #e8cb96; --mood-2: #f6e6c4; --breath: 9s; }
[data-mood="clear"]   { --mood: #a8c08e; --mood-2: #e9e0bc; --breath: 11s; }

/* ---------------------------------------------------------------------
   3. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  transition: --mood var(--t-mood) var(--ease-inout), --mood-2 var(--t-mood) var(--ease-inout);
}
/* tactile grain, fixed, never interactive */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0,0,0,0,1,0,0,0,0,.94,0,0,0,0,.86,0,0,0,.55,0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .055; mix-blend-mode: overlay;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
::selection { background: rgba(232, 203, 150, .28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   4. TYPE
   --------------------------------------------------------------------- */
.label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.meta  { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.greet { font-family: var(--serif); font-size: var(--fs-greet); line-height: 1.1; color: var(--ink-2); margin: 0; font-weight: 400; }
.greet em { font-style: italic; background: linear-gradient(100deg, #f6dfb3 10%, #e8b77e 60%, #ee8f5f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.014em; margin: 0; text-wrap: balance; }
/* only the count word carries the mood */
.h1 .count { background: linear-gradient(100deg, var(--mood-2) 0%, var(--mood) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; font-style: italic; }
.h1 .count--work { background-image: linear-gradient(100deg, var(--champ-hi) 0%, var(--champ) 70%); }
.h1 .count--good { background-image: linear-gradient(100deg, #e9e0bc 0%, var(--sage) 70%); }
.h1 .swap { display: inline-block; transition: opacity var(--t-base) var(--ease), filter var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.h1 .swap.out { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.005em; line-height: 1.1; margin: 0; }
.lede { font-size: var(--fs-lede); color: var(--ink-2); margin: 12px 0 0; letter-spacing: -.003em; }
.lede b { color: var(--ink); font-weight: 500; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.sec-head .meta { letter-spacing: .06em; }
.sec-head .link { margin-left: auto; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.sec-head .link:hover { color: var(--ink); }

/* ---------------------------------------------------------------------
   5. STATUS MARKERS  (shape + color, readable without color)
   you      = filled ember diamond          (Arsen blocks it)
   waiting  = hollow ember ring             (someone else blocks it)
   working  = champagne disc, breathing     (live)
   done     = solid sage disc               (done or resting)
   stale    = dashed ash ring               (silent 3h while it has work)
   --------------------------------------------------------------------- */
.st { width: 8px; height: 8px; flex: none; display: inline-block; position: relative; border-radius: 50%; vertical-align: middle; }
.st--done    { background: var(--sage); }
.st--working { background: var(--champ); animation: st-breathe 3.8s ease-in-out infinite; }
.st--waiting { box-shadow: inset 0 0 0 1.6px var(--ember); }
.st--stale   { border: 1.5px dashed var(--ash); }
.st--you     { width: 8px; height: 8px; border-radius: 1.5px; transform: rotate(45deg) scale(.92); background: var(--ember);
               box-shadow: 0 0 0 3px rgba(240, 138, 93, .16), 0 0 12px rgba(240, 138, 93, .5); }
.st--lg { width: 10px; height: 10px; }
.st--sm { width: 6px; height: 6px; }
.st--sm.st--you { width: 6px; height: 6px; }
@keyframes st-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 203, 150, .42); } 55% { box-shadow: 0 0 0 6px rgba(232, 203, 150, 0); } }

/* ---------------------------------------------------------------------
   6. SUN  (brand mark, day arc, brief orb: all read --mood)
   --------------------------------------------------------------------- */
.mark { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 0%, #2b241c, #15120f);
  box-shadow: inset 0 0 0 1px rgba(232, 203, 150, .22), 0 6px 18px -6px color-mix(in srgb, var(--mood) 55%, transparent); }
.mark svg { width: 20px; height: 20px; }
.mood-a { stop-color: var(--mood-2); }
.mood-b { stop-color: var(--mood); }

.orb { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 250, 240, .95) 0 6%, rgba(255, 250, 240, 0) 22%),
    radial-gradient(circle at 50% 42%, var(--mood-2) 0%, var(--mood) 58%, color-mix(in srgb, var(--mood) 45%, #1a120c) 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .28), inset 0 1px 1px rgba(255, 255, 255, .35),
              0 0 0 1px rgba(255, 240, 220, .08), 0 0 22px color-mix(in srgb, var(--mood) 45%, transparent);
  animation: orb-breathe var(--breath) ease-in-out infinite; }
.orb::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--mood) 22%, transparent);
  animation: orb-ripple var(--breath) ease-out infinite; }
.orb--lg { width: 44px; height: 44px; }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes orb-ripple  { 0% { transform: scale(.8); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.dayarc { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; }
.dayarc svg { width: 66px; height: 24px; overflow: visible; }
.dayarc .sun { fill: var(--mood); }
.dayarc .sun-glow { fill: color-mix(in srgb, var(--mood) 22%, transparent); }

/* ambient light at the top of every page, tinted by mood, drifting 40s */
.ambient { position: absolute; left: 0; right: 0; top: 0; height: 620px; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient::before { content: ""; position: absolute; inset: -40px -10%;
  background:
    radial-gradient(640px 300px at 36% -60px, color-mix(in srgb, var(--mood) 13%, transparent), transparent 70%),
    radial-gradient(700px 380px at 92% -80px, rgba(232, 203, 150, .06), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate; }
.ambient .sky { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(760px 430px at 84% 0%, #000 35%, transparent 100%); mask-image: radial-gradient(760px 430px at 84% 0%, #000 35%, transparent 100%); }
.ambient .horizon { position: absolute; right: -200px; top: -560px; width: 980px; height: 980px; opacity: .85; }
.horizon circle { fill: none; }
.horizon .h-edge { stroke: url(#g-mood-line); stroke-width: 1.4; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mood) 45%, transparent)); }
.horizon .h-ring { stroke: rgba(240, 222, 196, .05); }
.horizon .h-orbit { transform-origin: 490px 490px; animation: spin 120s linear infinite; }
.horizon .h-sat { fill: var(--mood); }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(8%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   7. BUTTONS, CHIPS, KBD
   Rule: one filled champagne primary per viewport. Others use --soft.
   --------------------------------------------------------------------- */
.btn { height: 34px; padding: 0 15px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-base), box-shadow var(--t-base), color var(--t-base); }
.btn:active { transform: scale(.97); }
.btn .i { width: 15px; height: 15px; stroke-width: 2; }
.btn--primary { color: var(--champ-ink); background: linear-gradient(180deg, #f3dcae, #dcb87c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px -10px rgba(232, 180, 110, .65); }
.btn--primary:hover { background: linear-gradient(180deg, #f7e3bb, #e2bf85); }
.btn--soft { color: var(--champ); background: var(--champ-soft); box-shadow: inset 0 0 0 1px rgba(232, 203, 150, .26); }
.btn--soft:hover { background: rgba(232, 203, 150, .16); }
.btn--ghost { color: var(--ink-2); background: rgba(240, 222, 196, .02); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: var(--ink); background: rgba(240, 222, 196, .05); }
.btn--quiet { color: var(--ink-3); padding: 0 10px; }
.btn--quiet:hover { color: var(--ink); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 34px; padding: 0; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }

.kbd { font-family: var(--mono); font-size: 10.5px; line-height: 1; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; background: rgba(0, 0, 0, .2); }
.btn--primary .kbd { color: rgba(42, 31, 18, .62); border-color: rgba(42, 31, 18, .22); background: rgba(255, 255, 255, .18); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--r-pill); font-size: var(--fs-meta); color: var(--ink-2);
  background: rgba(240, 222, 196, .04); border: 1px solid var(--line); white-space: nowrap; }
.chip .i { width: 14px; height: 14px; color: var(--ink-3); }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember);
  padding: 3px 8px 3px 7px; border-radius: var(--r-pill); background: var(--ember-soft); font-weight: 500; }
.state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.state--you     { color: var(--ember); background: var(--ember-soft); }
.state--waiting { color: var(--ember); box-shadow: inset 0 0 0 1px rgba(240, 138, 93, .3); }
.state--working { color: var(--champ); background: var(--champ-soft); }
.state--done    { color: var(--sage); background: var(--sage-soft); }

/* ---------------------------------------------------------------------
   8. CARD + LIT EDGE + POINTER LIGHT
   .card gets a champagne 1px edge lit from the top-left and (desktop,
   motion allowed) a soft light that follows the pointer. JS sets --mx/--my.
   --------------------------------------------------------------------- */
.card { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface-1) 72%); box-shadow: var(--e-1); isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(246, 226, 184, .30), rgba(240, 222, 196, .09) 34%, rgba(240, 222, 196, .06) 70%, rgba(240, 222, 196, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity var(--t-base);
  background: radial-gradient(360px 220px at var(--mx, 30%) var(--my, 0%), rgba(246, 226, 184, .07), transparent 70%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover::after { opacity: 1; } }
.card--you { background: radial-gradient(380px 160px at 0% 0%, var(--ember-soft), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface-1) 80%); }
.card--you::before { background: linear-gradient(140deg, rgba(240, 138, 93, .45), rgba(240, 138, 93, .12) 40%, rgba(240, 222, 196, .06) 80%); }

/* ---------------------------------------------------------------------
   9. SHELL: sidebar, topbar, main
   --------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #110f0d, #0e0c0a); border-right: 1px solid var(--line);
  padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; }
.brand-name { font-family: var(--serif); font-size: 23px; letter-spacing: .005em; line-height: 1; }
.brand-name small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin-left: 6px; vertical-align: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav .nav-more { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 11px; color: var(--ink-2); font-size: 14.5px; width: 100%;
  transition: background var(--t-base) var(--ease), color var(--t-base); }
.nav a:hover, .nav .nav-more:hover { background: rgba(240, 222, 196, .04); color: var(--ink); }
.nav a.on { background: linear-gradient(180deg, rgba(232, 203, 150, .10), rgba(232, 203, 150, .06)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(232, 203, 150, .10); }
.nav a.on .i { color: var(--champ); }
.nav .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.nav .count.you { color: var(--ember); }
.nav .nav-more { margin-top: 14px; color: var(--ink-3); }
.nav .nav-more .chev { margin-left: auto; width: 14px; height: 14px; transition: transform var(--t-base) var(--ease); }
.more-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.more-list > div { overflow: hidden; }
.side.more-open .more-list { grid-template-rows: 1fr; }
.side.more-open .nav-more .chev { transform: rotate(90deg); }
.more-list a { height: auto; min-height: 44px; padding: 7px 12px; align-items: flex-start; }
.more-list a .i { margin-top: 2px; width: 16px; height: 16px; color: var(--ink-3); }
.more-list .mt { font-size: 13.5px; color: var(--ink-2); line-height: 1.25; }
.more-list .md { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-list a > span { min-width: 0; flex: 1; }
.more-list .st { margin: 6px 0 0 auto; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 11px; padding: 8px 8px 2px; }
.avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; color: var(--champ-ink);
  background: linear-gradient(145deg, #f1d9ab, #c79f62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.me .n { font-size: 13.5px; }
.me .r { font-size: 11.5px; color: var(--ink-3); }

/* focus entry: ring that empties as decisions are cleared, sage check when clear */
.focus-entry { border-radius: 18px; padding: 16px 14px 14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  background: radial-gradient(200px 120px at 0% 0%, color-mix(in srgb, var(--mood) 12%, transparent), transparent 70%), linear-gradient(180deg, rgba(240, 222, 196, .04), rgba(240, 222, 196, .015));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 240, 220, .04); }
.focus-entry .fe-ring { position: relative; width: 40px; height: 40px; }
.focus-entry .fe-ring > svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.focus-entry .fe-ring .arc { stroke: var(--mood); transition: stroke-dashoffset 900ms var(--ease); }
.focus-entry .fe-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; }
.focus-entry .fe-t { font-size: 13.5px; line-height: 1.35; }
.focus-entry .fe-t span { font-size: 12px; color: var(--ink-3); }
.focus-entry .btn { grid-column: 1 / -1; height: 36px; margin-top: 4px; }
.focus-entry.is-clear .btn { display: none; }
.focus-entry.is-clear .fe-ring span { color: var(--sage); }

.main { position: relative; min-width: 0; background: var(--bg); }
.wrap { position: relative; z-index: 1; max-width: var(--content-max); margin: 0 auto; padding: 26px var(--gutter) 150px; }
.topline { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.topline .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search-pill { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 13px; border-radius: var(--r-pill); min-width: 230px;
  background: rgba(240, 222, 196, .035); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; transition: border-color var(--t-base), background var(--t-base); }
.search-pill:hover { border-color: var(--line-2); background: rgba(240, 222, 196, .05); }
.search-pill .kbd { margin-left: auto; }

/* ---------------------------------------------------------------------
   10. HOME: needs card, queue line, brief
   --------------------------------------------------------------------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 32px; margin-top: 30px; align-items: start; }
.needs { display: flex; flex-direction: column; gap: 12px; }
.need { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 10px; padding: 17px 18px 15px 14px; max-height: 320px; overflow: hidden;
  transition: transform var(--t-base) var(--ease), opacity 450ms var(--ease), filter 450ms var(--ease), max-height 520ms var(--ease), padding 520ms var(--ease), margin 520ms var(--ease); }
.need.is-out { opacity: 0; filter: blur(8px); transform: translateX(28px) scale(.98); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -12px; }
.need.is-in { animation: need-in 620ms var(--ease) both; }
@keyframes need-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.need__idx { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--champ-deep); text-align: center; padding-top: 1px; }
.need__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.need__kicker .meta { color: var(--ink-3); }
.need__title { margin: 0; font-size: var(--fs-h3); font-weight: 520; letter-spacing: -.008em; line-height: 1.3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.need__why { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.need__then { margin: 7px 0 0; color: var(--ink-3); font-size: var(--fs-meta); display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
.need__then .i { width: 14px; height: 14px; margin-top: 2px; color: var(--champ-deep); }
.need__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.need__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.queue-line { margin: 12px 4px 0; font-size: var(--fs-meta); color: var(--ink-3); display: flex; align-items: center; gap: 9px; transition: opacity var(--t-base); }

.brief { padding: 20px 22px 18px; overflow: hidden;
  background: radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--mood) 7%, transparent), transparent 70%), linear-gradient(180deg, #1d1915, #181512); }
.brief__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brief__head .who { line-height: 1.2; }
.brief__head .who .h2 { font-size: 24px; }
.brief__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.brief__list li { display: grid; grid-template-columns: 12px 1fr; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.brief__list li .st { margin-top: 7px; animation: none; }
.brief__list b { color: var(--ink); font-weight: 520; }
.brief__foot { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line-2); display: flex; align-items: baseline; gap: 10px; }
.brief__foot .say { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.brief__foot .meta { margin-left: auto; }

/* ---------------------------------------------------------------------
   11. SESSION DOCK (desktop) + DOT GRID (mobile)
   --------------------------------------------------------------------- */
.dock { position: fixed; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2); transform: translateX(-50%); bottom: 22px; z-index: var(--z-dock);
  display: flex; align-items: center; gap: 2px; height: var(--dock-h); padding: 0 8px 0 18px; border-radius: var(--r-pill);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--e-2); }
.dock__label { margin-right: 10px; }
.dock__item { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: var(--r-pill); font-size: 13px; color: var(--ink-2); position: relative; white-space: nowrap; }
.dock__item:hover, .dock__item:focus-visible { background: rgba(240, 222, 196, .05); color: var(--ink); }
.dock__tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; width: 250px; white-space: normal;
  padding: 11px 13px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--e-2); font-size: var(--fs-meta); color: var(--ink-2);
  transition: opacity var(--t-base), transform var(--t-base) var(--ease); }
.dock__tip b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { opacity: 1; transform: translate(-50%, 0); }
.dock__sum { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 22px; }
.dock__open { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); margin-left: 4px; }
.dock__open:hover { color: var(--ink); background: rgba(240, 222, 196, .05); }

.dotgrid { display: none; }

/* ---------------------------------------------------------------------
   12. HEALTH RING + CLIENT ROWS
   ring colors: >=85 sage, 65-84 champagne, <65 ember (low health is
   always also a Needs item for Arsen, so ember stays honest)
   --------------------------------------------------------------------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(240, 222, 196, .08); }
.ring .arc { transition: stroke-dashoffset 1.4s var(--ease); filter: drop-shadow(0 0 4px rgba(0, 0, 0, .0)); }
.ring .v { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); line-height: 1; }
.ring--sm .v { font-size: 16px; }
.ring--lg .v { font-size: 50px; }
.ring--lg .v small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin-top: 6px; text-align: center; }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgba(240, 222, 196, .035); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--ink-3); }
.seg button.on { background: rgba(232, 203, 150, .12); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(232, 203, 150, .18); }
.health-pill { display: inline-flex; align-items: center; gap: 11px; padding: 6px 16px 6px 7px; border-radius: var(--r-pill); background: rgba(240, 222, 196, .035); border: 1px solid var(--line); }
.health-pill .t { font-size: 13px; line-height: 1.25; }
.health-pill .t span { display: block; font-size: 11.5px; color: var(--sage); }

.crow { overflow: hidden; }
.crow__top { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.35fr) auto 20px; align-items: center; gap: 18px; padding: 14px 18px 14px 16px; cursor: pointer; }
.crow__name { font-size: 16px; font-weight: 520; letter-spacing: -.006em; }
.crow__type { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 1px; }
.crow__issue { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; min-width: 0; }
.crow__issue span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .chev { color: var(--ink-3); width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.crow.open .chev { transform: rotate(90deg); color: var(--ink-2); }
.crow__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.crow__panel > div { overflow: hidden; }
.crow.open .crow__panel { grid-template-rows: 1fr; }
.cp { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 34px; padding: 18px 26px 22px; border-top: 1px solid var(--line); }
.cp__score { display: flex; flex-direction: column; align-items: center; }
.cp__cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.cp__cap b { color: var(--ink-2); font-weight: 500; }
.lift { margin-top: 14px; font-size: var(--fs-meta); color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: rgba(240, 138, 93, .07); border: 1px solid rgba(240, 138, 93, .18); line-height: 1.45; width: 100%; }
.lift b { color: var(--ember); font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .lbl { font-size: 14.5px; line-height: 1.3; }
.checks .sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.checks .pts { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.checks .pts.done { color: var(--sage); }
.checks .pts.you  { color: var(--ember); }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.ck .i { width: 12px; height: 12px; stroke-width: 2.4; }
.ck--done    { background: var(--sage-soft); color: var(--sage); }
.ck--you     { background: var(--ember-soft); }
.ck--working { background: var(--champ-soft); }
.ck--stale   { background: transparent; }
.ck .st--stale { width: 12px; height: 12px; }
.nextstep { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(240, 138, 93, .08), rgba(240, 138, 93, .02) 60%); border: 1px solid rgba(240, 138, 93, .18); }
.nextstep .txt { font-size: 14px; color: var(--ink-2); }
.nextstep .txt b { color: var(--ink); font-weight: 520; }
.nextstep .acts { margin-left: auto; display: flex; gap: 8px; }
.trail { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 4px; }
.trail .row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; font-size: var(--fs-meta); color: var(--ink-3); }
.trail .row span:last-child { color: var(--ink-2); }

.healthy { display: flex; align-items: center; gap: 20px; padding: 16px 18px; cursor: pointer; }
.faces { display: flex; padding-left: 4px; }
.face { width: 36px; height: 36px; margin-left: -5px; border-radius: 50%; display: grid; place-items: center; position: relative; background: #1b1714; box-shadow: 0 0 0 3px #1c1815; font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.face:first-child { margin-left: 0; }
.face svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.face.more { font-family: var(--mono); font-weight: 400; color: var(--ink-3); }
.healthy .txt { font-size: 14.5px; color: var(--ink-2); }
.healthy .txt b { color: var(--ink); font-weight: 520; }
.healthy .sub { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 2px; }
.healthy .show { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------------
   13. SESSIONS: cards + 24h tick strip
   --------------------------------------------------------------------- */
.sgroup { margin-top: 32px; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scard { padding: 18px 20px 16px; display: flex; flex-direction: column; min-height: 238px; overflow: hidden; }
.scard.is-working .sweep { position: absolute; left: -40%; top: 0; height: 1px; width: 40%; background: linear-gradient(90deg, transparent, rgba(232, 203, 150, .8), transparent); animation: sweep 7s ease-in-out infinite; z-index: 3; }
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.scard__top { display: flex; align-items: center; gap: 9px; }
.scard__state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.scard--you .scard__state, .scard--waiting .scard__state { color: var(--ember); }
.scard.is-working .scard__state { color: var(--champ); }
.scard__ago { margin-left: auto; }
.scard__name { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin: 12px 0 0; }
.scard__role { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 3px; }
.scard__now { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.scard__cta { margin-top: 14px; }
.scard__cta .btn { height: 34px; font-size: 13px; padding: 0 14px; }
.scard__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; gap: 12px; }
.ticks { flex: 1; min-width: 0; }
.ticks__bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.ticks__bars i { flex: 1; min-width: 1px; border-radius: 1px; background: rgba(240, 222, 196, .13); }
.ticks__bars i.lit { background: var(--champ); box-shadow: 0 0 6px rgba(232, 203, 150, .35); }
.ticks__bars i.you { background: var(--ember); }
.ticks__axis { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .04em; }
.legend { display: flex; gap: 22px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-meta); color: var(--ink-3); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------------
   14. LEADS + generic stats
   --------------------------------------------------------------------- */
.lgrid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 12px; margin-top: 34px; }
.panel { padding: 20px 22px; }
.panel .label { display: block; margin-bottom: 14px; }
.bignum { font-family: var(--serif); font-size: 48px; line-height: 1; }
.bignum small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.progress { height: 6px; border-radius: 6px; background: rgba(240, 222, 196, .07); overflow: hidden; margin: 16px 0 10px; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--champ-deep), var(--champ)); box-shadow: 0 0 12px rgba(232, 203, 150, .4); }
.progress-scale { display: flex; justify-content: space-between; }
.verdicts { list-style: none; margin: 0; padding: 0; }
.verdicts li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.verdicts li:last-child { border-bottom: 0; }
.verdicts .n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.verdict { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); }
.verdict--go   { color: var(--sage); background: var(--sage-soft); }
.verdict--cond { color: var(--champ); background: var(--champ-soft); }
.verdict--hold { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.panel p { font-size: var(--fs-sm); color: var(--ink-2); margin: 10px 0 0; line-height: 1.5; }
.panel--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: end; }
.verdicts .vname .meta { display: block; margin-top: 1px; }
.growth__bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.growth__bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: rgba(240, 222, 196, .10); }
.growth__bars i.lit { background: linear-gradient(180deg, var(--champ-hi), var(--champ-deep)); box-shadow: 0 0 14px rgba(232, 203, 150, .35); }
.growth__axis { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------------------------------------------------------------------
   15. ALL CLEAR
   --------------------------------------------------------------------- */
.clear-card { position: relative; overflow: hidden; border-radius: 26px; min-height: 500px; padding: 34px 38px 30px;
  background: radial-gradient(560px 300px at 50% 118%, rgba(240, 138, 93, .16), transparent 65%), radial-gradient(420px 240px at 50% 100%, color-mix(in srgb, var(--mood) 18%, transparent), transparent 70%), linear-gradient(180deg, #1b1714, #15120f); }
.clear-card h2 { position: relative; z-index: 3; font-family: var(--serif); font-weight: 400; font-size: 50px; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
.clear-card h2 em { color: var(--champ); }
.clear-card .sunset { position: absolute; left: 0; bottom: 0; width: 100%; height: 240px; z-index: 1; }
.clear-card .sunset .sun-disc { animation: set 11s ease-in-out infinite alternate; }
@keyframes set { from { transform: translateY(0); } to { transform: translateY(6px); } }
.donelog { position: relative; z-index: 3; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.donelog li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.donelog li span:last-child { text-decoration: line-through; text-decoration-color: rgba(168, 192, 142, .55); text-decoration-thickness: 1px; }
.donelog .meta { color: var(--sage); }
.next-pill { position: relative; z-index: 3; margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 8px 14px 8px 12px; border-radius: var(--r-pill); background: rgba(15, 13, 11, .55); border: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   16. FOCUS (dark room)
   --------------------------------------------------------------------- */
.focus { position: fixed; inset: 0; z-index: var(--z-focus); display: none; flex-direction: column; overflow: hidden;
  background: radial-gradient(1000px 640px at 50% 58%, color-mix(in srgb, var(--mood) 22%, transparent), transparent 62%), radial-gradient(640px 420px at 50% 50%, rgba(232, 203, 150, .10), transparent 65%), var(--bg-0); }
.focus.on { display: flex; animation: fade-in var(--t-slow) var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.halo { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 980px; height: 980px; pointer-events: none; }
.halo circle { fill: none; stroke: rgba(232, 203, 150, .09); }
.halo .h-mood { stroke: color-mix(in srgb, var(--mood) 30%, transparent); }
.halo .spin { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.halo .spin-rev { transform-origin: 50% 50%; animation: spin 140s linear infinite reverse; }
.halo .sat { fill: var(--mood); stroke: none; }
.f-top { position: relative; z-index: 3; display: flex; align-items: center; padding: 24px 32px; }
.f-top .label { display: flex; align-items: center; gap: 10px; }
.f-ticks { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.f-ticks i { width: 26px; height: 3px; border-radius: 3px; background: rgba(240, 222, 196, .12); transition: background var(--t-base); }
.f-ticks i.done { background: var(--sage); }
.f-ticks i.now { background: var(--mood); box-shadow: 0 0 12px color-mix(in srgb, var(--mood) 60%, transparent); }
.f-leave { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); height: 40px; padding: 0 6px 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.f-leave:hover { color: var(--ink); }
.f-leave .x { display: none; }
.f-stage { position: relative; z-index: 3; flex: 1; display: grid; place-items: center; padding: 0 24px 24px; }
.f-stack { position: relative; width: min(840px, 100%); }
.f-sliver { position: absolute; left: 50%; bottom: 0; height: 60px; border-radius: 0 0 var(--r-xl) var(--r-xl); background: linear-gradient(180deg, rgba(40, 34, 28, .3), rgba(40, 34, 28, .95)); border: 1px solid var(--line-2); border-top: 0; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.f-sliver.s1 { width: 94%; transform: translate(-50%, 12px); }
.f-sliver.s2 { width: 87%; transform: translate(-50%, 24px); opacity: .6; }
.f-card { position: relative; z-index: 2; border-radius: var(--r-xl); padding: 38px 44px 34px; text-align: left;
  background: linear-gradient(180deg, rgba(40, 33, 27, .66), rgba(24, 20, 17, .80)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--e-3); }
.f-card.card::before { background: linear-gradient(140deg, rgba(246, 226, 184, .40), rgba(240, 222, 196, .10) 35%, rgba(240, 222, 196, .05) 70%, rgba(240, 222, 196, .14)); }
.f-kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.f-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.015em; margin: 20px 0 0; text-wrap: balance; }
.f-title em { font-style: italic; color: var(--champ); }
.f-why { font-size: 18px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.5; max-width: 620px; }
.f-facts { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.f-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.f-facts li .i { width: 16px; height: 16px; margin-top: 2px; color: var(--champ-deep); }
.f-facts b { color: var(--ink); font-weight: 500; }
.f-actions { display: flex; gap: 10px; margin-top: 26px; align-items: center; }
.f-actions .btn--quiet { margin-left: auto; }
.f-foot { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 22px; padding: 0 24px 28px; font-size: 13px; color: var(--ink-3); }
.f-next { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(20, 17, 14, .6); }
.f-next b { color: var(--ink-2); font-weight: 450; }
.f-keys { display: flex; gap: 14px; }
.f-keys span { display: flex; align-items: center; gap: 6px; }
.f-done { text-align: center; }
.f-done .f-title { font-size: 72px; margin-top: 0; }
.f-done .f-title em { color: var(--sage); }

/* ---------------------------------------------------------------------
   17. PALETTE (Cmd+K)
   --------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: var(--z-palette); display: none; background: rgba(8, 6, 5, .56); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scrim.on { display: block; animation: fade-in 220ms var(--ease); }
.palette { position: absolute; left: calc(50% + var(--side-w) / 2); top: 14vh; transform: translateX(-50%); width: 640px; max-width: calc(100vw - 32px); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #231e19, #1a1612); box-shadow: var(--e-3); overflow: hidden; animation: pop 320ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(.985); } to { opacity: 1; transform: translate(-50%, 0); } }
.p-input { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.p-input .i { width: 20px; height: 20px; color: var(--champ-deep); }
.p-input input { flex: 1; background: none; border: 0; outline: 0; font-family: var(--sans); font-size: 18px; letter-spacing: -.005em; }
.p-input input::placeholder { color: var(--ink-3); }
.p-list { padding: 6px 8px 8px; max-height: 60vh; overflow: auto; }
.p-group { padding: 12px 12px 6px; }
.p-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.p-item .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(240, 222, 196, .04); border: 1px solid var(--line); color: var(--ink-3); flex: none; }
.p-item .ico .i { width: 15px; height: 15px; }
.p-item .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-item .sub { margin-left: auto; font-size: var(--fs-meta); color: var(--ink-3); display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.p-item.sel { background: linear-gradient(90deg, rgba(232, 203, 150, .11), rgba(232, 203, 150, .03)); color: var(--ink); }
.p-item.sel::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--champ); box-shadow: 0 0 10px rgba(232, 203, 150, .6); }
.p-item.sel .ico { color: var(--champ); border-color: rgba(232, 203, 150, .28); }
.p-foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.p-foot span { display: flex; align-items: center; gap: 7px; }

/* ---------------------------------------------------------------------
   18. TOAST  (own lane: above the dock / tab bar, one line, never over buttons)
   --------------------------------------------------------------------- */
.toast { position: fixed; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2); bottom: calc(22px + var(--dock-h) + 14px); transform: translate(-50%, 16px); opacity: 0; z-index: var(--z-toast);
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 6px 0 14px; border-radius: var(--r-pill); max-width: calc(100vw - 32px); white-space: nowrap;
  background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--e-2); font-size: 13.5px; color: var(--ink-2);
  transition: opacity var(--t-base), transform 420ms var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .msg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.toast .undo { color: var(--champ); font-size: 13px; font-weight: 500; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--champ-soft); flex: none; }

.crow__m { display: none; font-size: var(--fs-meta); color: var(--ink-2); align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.crow__m span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need__kicker .m-idx { display: none; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--champ-deep); line-height: 1; margin-right: -2px; }

/* ---------------------------------------------------------------------
   19. MOBILE CHROME: top bar, tab bar, sheet (hidden on desktop)
   --------------------------------------------------------------------- */
.m-top, .tabbar, .sheet { display: none; }

@media (max-width: 760px) {
  :root { --fs-h1: 42px; --fs-display: 38px; --fs-greet: 20px; --gutter: 16px; }
  .shell { display: block; }
  .side, .topline, .dock { display: none !important; }
  .wrap { padding: 0 var(--gutter) calc(var(--tab-h) + 48px); }
  .ambient .sky { display: none; }

  .m-top { display: flex; align-items: center; gap: 10px; height: 58px; position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    background: rgba(20, 17, 15, .94); border-bottom: 1px solid transparent; }
  .m-top .mark { width: 28px; height: 28px; border-radius: 8px; }
  .m-top .brand-name { font-size: 21px; }
  .m-top .sp { margin-left: auto; }
  .m-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(240, 222, 196, .04); border: 1px solid var(--line); position: relative; }
  .m-icon.focus-ic { color: var(--champ); border-color: rgba(232, 203, 150, .22); background: rgba(232, 203, 150, .07); }

  .lede { font-size: 15.5px; margin-top: 10px; }
  .home-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
  .need { grid-template-columns: 1fr; padding: 15px 16px 14px; border-radius: 20px; }
  .need__idx { display: none; }
  .need__kicker .m-idx { display: inline; }
  .need__then { display: none; }
  .need__foot { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .need__actions { margin-left: 0; width: 100%; }
  .need__actions .btn--primary, .need__actions .btn--soft, .need__actions .btn--ghost { flex: 1; height: 42px; }
  .need__actions .btn--primary, .need__actions .btn--soft { order: 1; }
  .need__actions .btn--ghost { order: 2; }
  .need__actions .btn--quiet { height: 42px; order: 3; padding: 0 6px 0 8px; }
  .brief { padding: 18px 16px 16px; }

  .dotgrid { display: block; margin-top: 28px; }
  .dotgrid__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 16px 2px 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(240, 222, 196, .02); }
  .dotgrid__cell { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 10.5px; line-height: 1.25; color: var(--ink-2); letter-spacing: -.01em; }
  .dotgrid__cell .st { width: 10px; height: 10px; }
  .dotgrid__cell .st--you { width: 9px; height: 9px; }
  .dotgrid__sum { font-size: var(--fs-meta); color: var(--ink-3); margin: 10px 4px 0; display: flex; align-items: center; gap: 8px; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tab); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #171411; border-top: 1px solid var(--line-2); box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .7); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); position: relative; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--champ); }
  .tabbar a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--champ); box-shadow: 0 0 10px var(--champ); }
  .tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--ember); color: #2a140a; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }

  .sheet { position: fixed; inset: 0; z-index: calc(var(--z-tab) - 1); background: rgba(8, 6, 5, .6); }
  .sheet.on { display: block; animation: fade-in 220ms var(--ease); }
  .sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(var(--tab-h) + 16px); border-radius: 26px 26px 0 0; background: #1b1714; border-top: 1px solid var(--line-2); box-shadow: var(--e-3); animation: sheet-up 380ms var(--ease); }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-3); margin: 0 auto 14px; }
  .sheet__head { padding: 0 8px 10px; }
  .sheet a { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 13px 10px; }
  .sheet a + a { box-shadow: inset 0 1px 0 var(--line); }
  .sheet a .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(240, 222, 196, .04); border: 1px solid var(--line); color: var(--ink-2); }
  .sheet .mt { font-size: 16px; }
  .sheet .md { font-size: 13px; color: var(--ink-3); margin-top: 1px; }

  .toast { left: 50%; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); }

  .page-head { flex-direction: column; align-items: stretch !important; gap: 16px !important; }
  .crow__top { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 12px; padding: 13px 14px; }
  .crow__top > .crow__issue, .crow__top > .state { display: none; }
  .crow__m { display: flex !important; }
  .cp { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .cp__score { flex-direction: row; align-items: center; gap: 16px; }
  .cp__cap { text-align: left; margin-top: 0; }
  .checks li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .nextstep { display: grid; grid-template-columns: 12px 1fr; gap: 10px 12px; align-items: start; padding: 14px; }
  .nextstep > .st { margin-top: 7px; }
  .nextstep .acts { grid-column: 1 / -1; margin-left: 0; width: 100%; }
  .nextstep .acts .btn { flex: 1; height: 40px; }
  .trail .row { grid-template-columns: 1fr; gap: 0; }
  .healthy { flex-wrap: wrap; gap: 12px; }
  .healthy .show { margin-left: 0; }
  .sgrid { grid-template-columns: 1fr; }
  .scard { min-height: 0; }
  .legend { gap: 12px 18px; }
  .lgrid { grid-template-columns: 1fr; }
  .panel--wide { grid-template-columns: 1fr; gap: 14px; }

  .palette { left: 12px; right: 12px; top: 12px; width: auto; transform: none; max-width: none; animation: none; }
  .p-foot { display: none; }
  .p-item .sub .kbd { display: none; }

  .f-top { padding: 14px 16px; }
  .f-top .label .word { display: none; }
  .f-leave { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .f-leave .word, .f-leave .kbd { display: none; }
  .f-leave .x { display: block; }
  .f-stage { padding: 0 14px 12px; align-items: start; }
  .f-card { padding: 24px 20px 20px; border-radius: 24px; }
  .f-title { margin-top: 16px; }
  .f-why { font-size: 16px; }
  .f-actions { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .f-actions .btn { width: 100%; }
  .f-actions .btn--ghost { height: 48px; }
  .f-actions .btn--quiet { margin: 0 auto; }
  .f-actions .kbd, .f-keys { display: none; }
  .f-foot { padding: 0 16px 22px; }
  .halo { width: 720px; height: 720px; top: 40%; }
  .f-done .f-title { font-size: 48px; }
  .f-stage:has(.f-done) { align-items: center; padding-bottom: 80px; }

  .clear-card { min-height: 470px; padding: 26px 20px 24px; border-radius: 24px; }
  .clear-card h2 { font-size: 40px; }
}

/* ---------------------------------------------------------------------
   20. REDUCED MOTION: keep state changes, drop travel and loops
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body { transition: none; }
}
