/* Instrument: the app's one design-token file (design/ui-directions/NOTES.md §4). Nothing else names a colour, a size,
   a radius or a duration, unless it is truly local to one component. Dark only. */
:root{
  /* surfaces */
  --bg:#0a0a0b;        /* window, sidebar, tab bar, rail: one black */
  --raised:#111113;    /* nothing floats in the window; kept for host-drawn panels */
  --sheet:#000;        /* sheets */
  --hover:#141416;     /* a row or control under the pointer */
  --sel:#1a1a1d;       /* selected row, pressed row */
  --fill:#17171a;      /* quiet button, answer under the pointer */
  --fill-hover:#222226;
  --seam:#000;         /* the one-pixel divider between terminals */
  --scrim:rgb(0 0 0/.5);
  /* text */
  --fg:#f2f2f3;        /* 17.7 : 1 on --bg */
  --fg2:#a3a4aa;       /*  8.0 : 1 */
  --fg3:#7c7d84;       /*  4.8 : 1; times, hints, disabled */
  --fg-field:#c4c5cb;  /* secondary words on the Composer's surface: 10 : 1 on it with the keyboard */
  --ink:#0d0d0e;       /* text on metal */
  /* The product whose mark is drawn, including marks shipped as artwork. */
  --agent-claude:#d97757;
  --agent-gemini:#9168c0;
  --agent-gemini-blue:#4796e3;
  --agent-gemini-red:#d96570;
  --agent-agy:#749bff;
  --agent-qwen:#082dff;
  --agent-crush:#6b50ff;
  --agent-aider:#01ffac;
  --agent-codex:var(--fg);
  --agent-chatgpt:var(--fg);
  --agent-cursor:var(--fg);
  --agent-cursor-agent:var(--agent-cursor);
  --agent-opencode:var(--fg);
  --agent-copilot:var(--fg);
  --agent-pi:var(--fg);
  --agent-ollama:var(--fg);
  --agent-droid:var(--fg);
  --agent-goose:var(--fg);
  --agent-own:var(--fg);
  --agent-you:var(--lit-ice);
  --writer-new:#b9c3f6;
  --writer-seen:#8b8c93;
  --writer-glow:rgb(174 185 242/.65);
  --field-fill:rgb(255 255 255/.045);
  --field-edge:rgb(255 255 255/.06);
  --field-focus:rgb(223 228 236/.3);
  --entry-key:rgb(255 255 255/.05);
  --flow-fill:rgb(255 255 255/.03);
  --flow-edge:rgb(255 255 255/.09);
  /* lines */
  --line:#1f2024; --line2:#33343a;
  /* meaning */
  --accent:#dfe4ec;    /* keyboard focus ring only */
  --asks:#eab676;      /* needs you */
  --fail:#f0716e;      /* failure, or the key that ends running work or discards work */
  --plus:var(--fg2); --minus:var(--fg3);              /* a diffstat's counts */
  --add:rgb(155 203 167/.09); --del:rgb(240 113 110/.09);  /* a diff's lines, under the sign that marks them */
  /* Materials (NOTES §5): every control is one of four, on the ground above.
     Surface: the Composer: opaque graphite of the ground's own family with a hairline round it, brighter along its
       top. The room's light stands around it and never shows through it, so it has no colour of its own.
     Metal: the key, the one primary action in view, and the caps that show a key. A flat, evenly lit face its label
       always reads on (--ink on it is 15 : 1); the metal is at its edges: a bright top edge, the chromatic glint along
       its lower edge, a soft shadow beneath. Never a band behind the words.
     Quiet: every other control: text, a fill only under the pointer (--hover, --sel), a hairline round a button.
     Edge: --lit, the chromatic lit edge, for what has the keyboard and what is live. Never text, never decoration. */
  --surface:var(--fill);
  --surface-lit:var(--sel);
  --surface-edge:inset 0 1px 0 var(--line2),inset 0 0 0 1px var(--line),0 30px 60px -28px rgb(0 0 0/.85);
  --key:linear-gradient(180deg,#eceef1,#dde0e5);
  --key-edge:inset 0 1px 0 #fff,0 1px 0 #000,0 3px 7px -2px rgb(0 0 0/.75);
  --key-down:inset 0 1px 2px rgb(0 0 0/.28);
  --lit:linear-gradient(90deg,#b98a5e,#edcda6 18%,#f7f8fa 40%,#a9c0df 62%,#7b92c4 82%,#a58aa6);
  --lit-v:linear-gradient(180deg,#f7f8fa,#a9c0df 55%,#b98a5e);
  --bloom:#c46f3c,#dc9a52 16%,#dfe4ec 33%,#8fb2d8 50%,#5f7fc0 66%,#a7789a 83%,#c46f3c;
  --sheet-shadow:0 0 0 1px var(--line),0 30px 70px rgb(0 0 0/.7);
  /* Depth by rank (docs/build/same-page.md, “Depth by rank”). Every stroke is a shadow, so it stays crisp and never
     moves a layout. On this dark ground the ring and the top highlight carry the depth; what falls below is tight and
     near black. Nothing is sunk in: no inner well, no inset deeper than one hairline.
       ring          the hairline round a key or a surface, half a pixel (one inside a board's plane, which scales it)
       top-light     the inner highlight along a key's top edge
       bottom-shade  the faint inner shade along the main key's lower edge
       contact       the tight shadow a key casts where it touches the ground
       soft          the one soft shadow under the main key, a surface or a panel
       halo          a minuscule glow round the main key, in the key's own colour
       sheen         the vertical gradient of a few percent over the main key's face
       press-shade   pressed: the highlight goes and a shade falls along the top; the key shrinks to --press-scale
     Composed by rank: --depth-main (the one main key of a surface), --depth-key (an ordinary key), --depth-surface
     (cards, panels, the opened entry), and inside a board's zoomable plane --depth-plane (the ring and one tight
     shadow, never blur layered on blur, and no shadow at the far zoom level). Rows, quiet keys and chips are flat: a
     wash under the pointer (--hover), deeper while pressed (--sel). */
  --tray-depth:0 0 0 .5px rgb(255 255 255/.12),inset 0 .5px 0 rgb(255 255 255/.06),0 16px 32px -10px rgb(0 0 0/.8);
  --tray-key-light:inset 0 .5px 0 rgb(255 255 255/.1);
  --tray-hint-fill:#1d1d21;
  --tray-hint-depth:0 0 0 .5px rgb(255 255 255/.12),0 10px 20px -8px rgb(0 0 0/.8);
  --tray-ease:cubic-bezier(.22,1,.36,1);
  --ring-key:0 0 0 .5px rgb(255 255 255/.1);
  --ring-key-hover:0 0 0 .5px rgb(255 255 255/.16);
  --ring-main:0 0 0 .5px rgb(0 0 0/.5);
  --ring-surface:0 0 0 .5px rgb(255 255 255/.1);
  --ring-plane:0 0 0 1px rgb(255 255 255/.08);
  --top-light-key:inset 0 .5px 0 rgb(255 255 255/.08);
  --top-light-main:inset 0 1px 0 rgb(255 255 255/.95);
  --top-light-surface:inset 0 .5px 0 rgb(255 255 255/.05);
  --bottom-shade-main:inset 0 -1px 0 rgb(13 13 14/.12);
  --contact-key:0 1px 1px rgb(0 0 0/.55);
  --contact-main:0 1px 1px rgb(0 0 0/.6);
  --soft-main:0 4px 10px -3px rgb(0 0 0/.6);
  --soft-surface:0 12px 28px -10px rgb(0 0 0/.65);
  --shadow-plane:0 2px 4px -1px rgb(0 0 0/.55);
  --halo-main:0 0 10px -1px rgb(223 228 236/.14);
  --sheen-main:linear-gradient(180deg,#f2f4f6,#e9ebef 45%,#dcdfe4);
  --sheen-main-hover:linear-gradient(180deg,#f7f8f9,#eff1f3 45%,#e3e6ea);
  --sheen-main-down:linear-gradient(180deg,#d9dce1,#e2e5e9);
  --press-shade:inset 0 1px 2px rgb(0 0 0/.3);
  --press-shade-main:inset 0 1px 2px rgb(13 13 14/.22);
  --press-scale:.97;
  --depth-main:var(--ring-main),var(--top-light-main),var(--bottom-shade-main),var(--contact-main),var(--soft-main),var(--halo-main);
  --depth-main-down:var(--ring-main),var(--press-shade-main);
  --depth-key:var(--ring-key),var(--top-light-key),var(--contact-key);
  --depth-key-hover:var(--ring-key-hover),var(--top-light-key),var(--contact-key);
  --depth-key-down:var(--ring-key),var(--press-shade);
  --depth-surface:var(--ring-surface),var(--top-light-surface),var(--soft-surface);
  --depth-plane:var(--ring-plane),var(--shadow-plane);
  /* Prism, the picked hand (plan, “Package 30”; docs/design/prism-hand.md). White light draws what is there, and one
     of six colours draws what a plan tool makes. The stops --lit and --bloom already contain, by name, and the one
     green the chromatic lacked. The warm stops stay inside --lit and --bloom only: beside --asks they read as
     "needs you". No tool colour is amber or red. */
  --lit-white:#f7f8fa; --bloom-white:#dfe4ec; --lit-ice:#a9c0df; --bloom-ice:#8fb2d8;
  --lit-steel:#7b92c4; --bloom-steel:#5f7fc0; --lit-mauve:#a58aa6; --bloom-mauve:#a7789a;
  --patina:#9bcba7;    /* the green --add carries at 9 % */
  --tool-flow:var(--patina);
  --tool-states:color-mix(in oklch,var(--patina),var(--bloom-ice));
  --tool-look:var(--bloom-ice);
  --tool-decision:var(--bloom-steel);
  --tool-package:color-mix(in oklch,var(--bloom-steel),var(--bloom-mauve));
  --tool-challenge:var(--bloom-mauve);
  --ramp:linear-gradient(90deg,var(--tool-flow),var(--tool-states),var(--tool-look),var(--tool-decision),var(--tool-package),var(--tool-challenge));  /* the stage mark and the stage line: further along shows more */
  --tool-line:var(--fg-field);   /* the line that draws what is there */
  --arrived:var(--lit-ice);      /* the mark and the light where something arrived that the person did not do */
  /* type. One family at its normal width for everything said in words; the monospace face for figures, keys, counts
     and code only. Hierarchy is size, weight and colour. Each role is one size, weight, line height and letter
     spacing, and nothing in either page sets a font outside these (scripts/type-check.cjs holds both pages to it).
     --ts is the person's text size (the core's `text_size`: small, default, large): every role's size and line
     height is its own times it, in whole pixels, and so is every measure that holds one line of text. The key is the
     one role with a floor: no text size sets a key under 12 px on an 18 px line, and a key a row has no room for at
     that size is dropped, never shrunk (scripts/type-check.cjs measures every key at the three sizes). */
  --ts:1;
  --ui:system-ui,-apple-system,"Segoe UI Variable","Segoe UI",sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,"Cascadia Mono",Consolas,monospace;
  --f-thought:400 round(20px*var(--ts),1px)/round(28px*var(--ts),1px) var(--ui);   /* the Composer's thought */
  --f-question:500 round(16px*var(--ts),1px)/round(22px*var(--ts),1px) var(--ui);  /* a question, wherever it is asked; a thought in the capture sheet; a find field */
  --f-title:600 round(13px*var(--ts),1px)/round(18px*var(--ts),1px) var(--ui);     /* where you are: the window's and a sheet's title; and the word on a key and on the default answer */
  --f-label:500 round(13px*var(--ts),1px)/round(18px*var(--ts),1px) var(--ui);     /* a row's label: a thought, a workspace, a setting */
  --f-text:400 round(13px*var(--ts),1px)/round(18px*var(--ts),1px) var(--ui);      /* running text: a brief, an answer, a summary */
  --f-small:400 round(12px*var(--ts),1px)/round(16px*var(--ts),1px) var(--ui);     /* secondary text: a session, a tab, a fact, a quiet button */
  --f-section:600 round(11px*var(--ts),1px)/round(14px*var(--ts),1px) var(--ui);   /* a section's label: Workspaces, Running, Results, Terminal */
  --f-cap:400 round(11px*var(--ts),1px)/round(14px*var(--ts),1px) var(--ui);       /* fine print: a hint, the word over a brief */
  --f-num:400 round(11px*var(--ts),1px)/round(14px*var(--ts),1px) var(--mono);     /* figures: times, counts, key hints, paths, a diffstat */
  --f-key:500 max(12px,round(12px*var(--ts),1px))/max(18px,round(18px*var(--ts),1px)) var(--ui);  /* a key, on a cap or as a hint beside a label: never smaller (ui.tsx Key) */
  --f-code:400 round(12px*var(--ts),1px)/round(18px*var(--ts),1px) var(--mono);    /* code, and a shell's name */
  --f-term:400 13px/18px var(--mono);    /* a terminal's default; the person's terminal settings win */
  --ls-thought:-.014em; --ls-question:-.008em;  /* the two large roles are set a hair tighter; every other role at 0 */
  /* measure: a 4 px grid */
  --sp1:4px; --sp2:8px; --sp3:12px; --sp4:16px; --sp5:24px; --sp6:32px; --sp7:48px;
  --side-w:224px; --bar-h:38px; --tab-h:30px; --row-h:28px; --rail-h:26px; --ctl-h:24px; --ctl-l:34px; --key-h:max(18px,round(18px*var(--ts),1px));
  --fade:24px;         /* how far content dissolves at an edge it scrolls beyond */
  --settings-row:36px; --cap-w:720px;
  --lead:32px;         /* space for a leading mark */
  --sheet-s:480px; --sheet-m:640px; --sheet-l:900px;  /* a sheet: a quick decision, a form or a list, a view to read */
  /* radii */
  --r1:3px;   /* controls, key caps */
  --r2:6px;   /* host-drawn panels */
  --r3:10px;  /* bottom corners of sheets */
  --r4:20px;  /* the Composer's surface */
  --entry-key-gap:6px; --entry-text-inset:30px; --entry-editor-inset:22px;
  --entry-row-pad:9px; --entry-editor-pad:3px; --flow-name-pad:10px; --flow-head-overlap:-5px;
  --part-section-space:28px; --flow-detail-space:14px;
  --fact-column-gap:18px; --outline-indent:52px; --outline-entry-indent:60px;
  --doc-column-gap:36px; --doc-chapter-gap:44px; --doc-heading-pad:26px;
  --stat-row-pad:7px; --stat-block-radius:5px;
  --hairline:1px; --optical-inset:2px;
  --r-tick:1px; --r-small:2px; --r-round:50%;
  --r-tree:6px;  /* the elbow of a tree line that hangs detail under its row (Depth by rank) */
  --r-in:calc(var(--r4) - var(--sp3)); /* a control standing 12 px inside that surface */
  /* icons: one owned set on a 16 px grid, and one weight: every stroke of an icon and of an agent's ring is this wide on
     the screen whatever size it is shown at (parts.css), which is the weight of the text beside it at each text size */
  --i-w:calc(1.2px * var(--ts));
  --i-w-key:calc(1.35px * var(--ts));  /* the one heavier stroke: Return's arrow on the metal key, beside its word in 600 */ --i-cap:butt; --i-join:miter;
  /* “Twelve rules of craft”, rules 5 and 10. A decorative underlay belongs
     inside its own stacking context, one level below the page. */
  --layer-page:0; --layer-row:1; --layer-bar:2; --layer-menu:3; --layer-sheet:4; --layer-toast:5;
  --layer-under:calc(var(--layer-page) - 1);
  --floating-edge:var(--ring-surface), var(--top-light-surface);   /* a floating panel is a surface (Depth by rank) */
  --floating-shadow:var(--soft-surface);
  /* Motion is Prism's (plan, “Package 30”, point 5). A thing arrives fast and settles; everything leaves in
     --t-menu-out. No motion holds a key back: a popup, a menu and a field take keys from their first frame. */
  --t-instant:0ms; --t-switch:100ms; --t-menu-in:220ms; --t-menu-out:140ms;
  --t-pane-in:440ms; --t-pane-out:140ms; --t-card:560ms;
  --t-row:380ms;       /* a row arriving in a list */
  --t-cheer:700ms;     /* the light after an action that worked */
  --t-play:1200ms;     /* a tool's drawing, once */
  --t-rise:1100ms;     /* a statistics bar or meter rising to its new figure */
  --t-step:70ms;       /* between two things that arrive together */
  --t-line:50ms;       /* between the lines of a fold as it opens (Depth by rank) */
  --t-part:80ms;       /* between the parts of an opened entry as they arrive (Depth by rank) */
  --t-ambient:12s; --ambient:1;
  --t-working:2800ms; --t-loading-delay:1000ms; --t-progress-delay:10s; --t-loading:1100ms; --t-spinner:800ms;
  --t-selection:180ms; --t-landing-mark:120ms; --t-settle-short:160ms;
  --t-view-change:200ms; --t-tile-clear:90ms; --t-tile-fade:44ms; --t-tile-words:156ms;
  --t-arrived:1600ms; --t-feedback:300ms;
  --t-linger:1500ms;   /* a situational control stays after its gesture ends (the zoom control) */
  --t-offer:5000ms;    /* Undo or Go back stands this long after the edit it takes back */
  --t-sheet:var(--t-pane-in); --t-fast:var(--t-menu-out); --t-side:var(--t-pane-in);
  --ease:cubic-bezier(.16,1,.3,1); --ease-fold:cubic-bezier(.4,0,1,1);
  --ease-glide:cubic-bezier(.65,0,.35,1);   /* along a path */
  --ease-slide:var(--ease); --ease-linear:linear; --ease-breathe:ease-in-out;
  --spring:linear(0,.039,.134,.258,.393,.524,.644,.748,.833,.901,.952,.989,1.013,1.028,1.036,1.038,1.037,1.034,1.029,1.024,1.019,1.014,1.01,1.007,1);  /* growing: 4 % past the end */
  --spring-drop:linear(0,.055,.192,.372,.564,.744,.897,1.016,1.097,1.144,1.162,1.158,1.139,1.111,1.08,1.049,1.023,1.002,.987,.978,.974,.974,.976,.981,.986,.991,.995,.999,1.002,1.003,1.004,1.004,1);  /* landing: 16 % past the end and back */
  color-scheme:dark;
}
:root[data-text=small]{--ts:.92}
:root[data-text=large]{--ts:1.15}
/* The picture panel, board 10. The person names each ink. */
:root{--sketch-violet:#b79cf2;--sketch-green:#7fd3a0;--sketch-pink:#f08db4;--sketch-blue:#7fb4f5}
