/* Pilot site: one aeronautical chart. Cool white paper with a visible graticule, navy ink, three printing inks
   (blue = your agents and every action, magenta = your organization's tools, green = cleared), one line-weight family,
   square data boxes, and B612, the typeface of cockpit displays. The app itself appears as dark insets (scene-css.ts). */
@font-face { font-family: "B612"; src: url("/fonts/b612-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url("/fonts/b612-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/fonts/b612-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  color-scheme: light;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
  --font: "B612", "Verdana", "DejaVu Sans", sans-serif; --display: var(--font);
  --mono: "B612 Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;  /* chart data and labels */
  --code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;  /* commands and code: parentheses must read as parentheses */
  --t-xs: 0.75rem; --t-sm: 0.8125rem; --t-md: 0.9375rem; --t-lg: 1.0625rem; --t-xl: 1.375rem; --t-2xl: 2rem; --t-3xl: clamp(2.25rem, 4.6vw, 3.75rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-xl: 6px; --r-pill: 3px;
  /* The graticule is the layout grid, and it stays visible: the sheet is 14 cells wide between its margins (--gx), and every
     column starts on one of its lines. Narrower screens: 4 cells. */
  --cell: min(96px, calc((100vw - 48px) / 14)); --gx: calc((100vw - 14 * var(--cell)) / 2);
  --lw: 1.5px;   /* the one line weight; 1px for the graticule, 3px for emphasis */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --bg: oklch(0.957 0.011 245); --surface: oklch(0.985 0.005 245); --panel: oklch(0.928 0.016 245);
  --hover: oklch(0.9 0.022 250); --line: oklch(0.8 0.03 258); --grat: oklch(0.22 0.07 270 / 0.075);
  --ink: oklch(0.22 0.07 270); --ink-2: oklch(0.36 0.065 268); --ink-3: oklch(0.46 0.055 266);
  --accent: oklch(0.46 0.23 268); --accent-ink: oklch(0.99 0.005 268); --accent-soft: oklch(0.46 0.23 268 / 0.1); --link: oklch(0.44 0.23 268);
  --mag: oklch(0.49 0.22 345); --mag-soft: oklch(0.49 0.22 345 / 0.1);
  --red: oklch(0.5 0.19 25); --red-soft: oklch(0.93 0.04 25);
  --amber: oklch(0.47 0.11 70); --amber-soft: oklch(0.93 0.06 85);
  --green: oklch(0.45 0.11 165); --green-soft: oklch(0.93 0.04 165);
  --shadow: 0 1px 2px oklch(0.22 0.07 270 / 0.08), 0 12px 28px -12px oklch(0.22 0.07 270 / 0.28);
  --shadow-lg: 0 2px 4px oklch(0.22 0.07 270 / 0.08), 0 28px 56px -24px oklch(0.22 0.07 270 / 0.45);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 60px; scroll-behavior: smooth; }
@media (max-width: 1120px) { :root { --cell: calc((100vw - 48px) / 4); --gx: 24px; } }
body { margin: 0; font: var(--t-md)/1.6 var(--font); color: var(--ink); caret-color: var(--accent); accent-color: var(--accent); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100dvh; display: flex; flex-direction: column; padding-top: 60px;
  background: linear-gradient(var(--grat) 1px, transparent 1px) 0 59px / var(--cell) var(--cell), linear-gradient(90deg, var(--grat) 1px, transparent 1px) var(--gx) 0 / var(--cell) var(--cell), var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: var(--lw); }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; border-radius: var(--r-sm); }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--code); font-size: 0.875em; }
:not(pre) > code { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 4px; }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--s4); top: var(--s2); z-index: 40; background: var(--surface); padding: var(--s2) var(--s3); }
* { scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }

/* The mark. Only the horizon moves: a slow roll, like an instrument on a calm flight. */
.pmark { display: block; width: 26px; height: 26px; color: var(--ink); overflow: visible; flex: none; }
.pmark .ring { fill: none; stroke: currentColor; stroke-width: 4.4; }
.pmark .pin { fill: currentColor; }
.pmark .hz { transform: rotate(-16deg); animation: pm-roll 11s var(--ease-io) infinite; }
.pmark .hz path { fill: var(--accent); }
@keyframes pm-roll { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(9deg); } }

/* The bar: the chart's top margin. Paper, one ruled line under it, no glass. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--bg); border-bottom: var(--lw) solid var(--ink); }
.bar-in { margin: 0 var(--gx); height: 59px; display: flex; align-items: center; gap: var(--s5); }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.01em; flex: none; }
.bar nav { margin: 0 auto; display: flex; gap: 2px; }
.bar nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); padding: 7px 12px; border-radius: var(--r-md); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.bar nav a:hover { color: var(--ink); background: var(--hover); }
.bar nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 calc(-1 * var(--lw)) 0 var(--accent); border-radius: 0; }
.who { display: flex; gap: var(--s2); align-items: center; flex: none; }
.who .btn.small { height: 36px; padding: 0 var(--s4); font-size: var(--t-sm); }
.bar details { position: relative; }
.bar summary { list-style: none; cursor: pointer; } .bar summary::-webkit-details-marker { display: none; }
.acct summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); border: var(--lw) solid var(--ink); color: var(--ink); font-size: var(--t-sm); font-weight: 700; }
.acct summary:hover, .acct[open] summary { background: var(--hover); }
.bar .pop { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: var(--lw) solid var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop-in 0.2s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.bar .pop a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: var(--r-md); font-size: var(--t-sm); }
.bar .pop a:hover { background: var(--hover); }
.acct-who { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); }
.acct-who b { color: var(--ink); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; }
.mnav { display: none; }
.mnav summary { display: grid; place-content: center; gap: 5px; width: 36px; height: 36px; border-radius: var(--r-md); border: var(--lw) solid var(--ink); }
.mnav summary i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease); }
.mnav[open] summary i:first-child { transform: translateY(3.25px) rotate(45deg); } .mnav[open] summary i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.bar .mnav .pop { position: fixed; left: 12px; right: 12px; top: 68px; margin: 0; }
.bar .mnav .pop a { font-size: var(--t-lg); padding: 12px 14px; }
/* Other pages: 12 cells, centered, so their column also starts on a line of the graticule; admin tables take all 14 */
main { width: min(12 * var(--cell), 100% - 2 * var(--gx)); margin: 0 auto; padding: var(--s7) 0 var(--s8); flex: 1; }
main.wide { width: calc(100% - 2 * var(--gx)); padding-top: var(--s5); }
body.sheet main { width: 100%; padding: 0; }
.foot { display: flex; gap: var(--s5); justify-content: space-between; align-items: center; flex-wrap: wrap; padding: var(--s5) var(--gx); border-top: var(--lw) solid var(--ink); color: var(--ink-2); font-size: var(--t-sm); }
.foot-mark { display: flex; align-items: center; gap: 10px; } .foot-mark .pmark { width: 20px; height: 20px; }
.foot-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; } .foot-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1120px) { .bar nav:not(.pop) { display: none; } .mnav { display: block; } .who { margin-left: auto; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--t-2xl); margin: 0 0 var(--s4); }
h2 { font-size: var(--t-xl); margin: var(--s7) 0 var(--s3); }
h3 { font-size: var(--t-lg); margin: var(--s5) 0 var(--s2); }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; }

/* Controls: data boxes. Square corners, ink outline; the primary one is printed solid in blue. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 38px; padding: 0 var(--s4); border-radius: var(--r-pill);
  border: var(--lw) solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 700; font-size: var(--t-sm);
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease), transform 100ms var(--ease); }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.big { height: 54px; padding: 0 var(--s6); font-size: var(--t-lg); }
.btn.small { height: 30px; padding: 0 var(--s3); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.line { background: transparent; } .btn.line:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 18px; height: 18px; }
input[type=text], input[type=number], input[type=search], input[type=email], select, textarea {
  height: 36px; border: var(--lw) solid var(--ink-3); border-radius: var(--r-md); background: var(--surface); padding: 0 var(--s3); min-width: 0; }
textarea { height: auto; padding: var(--s2) var(--s3); font-family: var(--code); font-size: var(--t-sm); width: 100%; }
/* Focus is magenta everywhere: a field takes it as its border and a soft halo instead of the outline ring */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px var(--mag-soft); }
label { display: grid; gap: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
label.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-sm); font-size: var(--t-xs); font-weight: 700; background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); vertical-align: 2px; }
.pill.beta { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.pill.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.bad { background: var(--red-soft); color: var(--red); border-color: transparent; }
.note { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); max-width: 72ch; }
.note.warn { background: var(--amber-soft); border-color: transparent; color: var(--ink); }

/* Release notes */
.n-page-head { padding: var(--s7) 0 var(--s6); border-bottom: var(--lw) solid var(--ink); }
.n-page-head h1 { font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 var(--s3); }
.n-page-head p { font-size: var(--t-lg); color: var(--ink-2); margin: 0; }
.n-releases .release:first-child { border-top: 0; }
.n-empty { color: var(--ink-2); font-size: var(--t-lg); padding-top: var(--s6); }

/* ---------- Regions of the sheet: full width, ruled off from each other, content on the 14 cells of the graticule (--gx is the sheet's margin, html.ts) ---------- */
.c-sec, .c-legend, .c-end { padding: var(--s9) var(--gx); border-top: var(--lw) solid var(--ink); }
.sheet h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.04; letter-spacing: -0.032em; margin: 0 0 var(--s5); max-width: 18ch; }
.sheet h1 em, .sheet h2 em { font-style: normal; color: var(--accent); }
.c-intro { font-size: var(--t-xl); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0; }
.c-fine { font-size: var(--t-sm); color: var(--ink-3); margin: 0; }
.c-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.c-also { color: var(--ink); font-weight: 700; font-size: var(--t-md); }
.c-also:hover { color: var(--accent); }

/* ---------- First viewport: the title block over the chart's open left third, the app as the inset ---------- */
/* One screen tall, within limits: on a very tall screen the chart keeps its proportions instead of stretching */
.c-hero { position: relative; min-height: clamp(660px, calc(100svh - 60px), 980px); overflow: hidden; }
.c-title { position: relative; z-index: 2; width: min(40vw, 6 * var(--cell)); margin-left: var(--gx); padding: clamp(56px, 12svh, 132px) 0 var(--s7); display: grid; gap: var(--s5); justify-items: start; }
.c-title h1 { font-size: clamp(2.75rem, 5.5vw, 5.25rem); line-height: 0.98; letter-spacing: -0.036em; margin: 0; }
.c-lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36ch; margin: 0; }
.c-title > * { animation: c-in 0.9s var(--ease-out) both; }
.c-title > :nth-child(2) { animation-delay: 0.08s; } .c-title > :nth-child(3) { animation-delay: 0.16s; } .c-title > :nth-child(4) { animation-delay: 0.22s; }
@keyframes c-in { from { opacity: 0; transform: translateY(14px); } }

.c-chart { display: block; overflow: visible; }
.c-chart.wide { position: absolute; top: 0; bottom: 0; left: var(--gx); right: var(--gx); width: calc(100% - 2 * var(--gx)); height: 100%; }
.c-chart.tall { display: none; }
.c-chart text { font-family: var(--font); }
.c-chart .nm { font-size: 15px; font-weight: 700; fill: var(--ink); letter-spacing: -0.01em; }
.c-chart .sub { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-2); }
/* A paper halo, as charts print their lettering: a line never runs through a name */
.c-chart text { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.c-chart.tall .nm { font-size: 12.5px; }
/* Symbols and the rose keep the line weight at any size; routes do not (their draw-in measures the path in its own units) */
.c-chart .sym, .c-chart .rose path, .c-chart .rose .rim, .c-chart .rose .inner { vector-effect: non-scaling-stroke; }
.rt { --c: var(--accent); cursor: pointer; text-decoration: none; outline: none; }
.rt.m { --c: var(--mag); }
.rt .hit { fill: none; stroke: transparent; stroke-width: 30; pointer-events: stroke; }
.rt .ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; mix-blend-mode: multiply; transition: stroke-width 0.25s var(--ease); animation: c-draw 0.95s var(--ease-io) calc(0.2s + var(--i) * 0.08s) both; }
.rt.dash .ln { stroke-dasharray: 0.012 0.03; animation-name: c-fade; }
.rt .sym { fill: var(--bg); stroke: var(--c); stroke-width: var(--lw); transition: fill 0.25s var(--ease); }
.rt .sym, .rt text { animation: c-fade 0.6s var(--ease-out) calc(0.1s + var(--i) * 0.08s) both; }
.rt:hover .ln, .rt:focus-visible .ln { stroke-width: 3.5; }
.rt:hover .sym, .rt:focus-visible .sym { fill: var(--c); }
.rt:focus-visible .nm { fill: var(--c); text-decoration: underline; }
@keyframes c-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes c-fade { from { opacity: 0; } }
.rose .rim { fill: var(--bg); stroke: var(--ink); stroke-width: var(--lw); }
.rose .core { fill: var(--bg); }
.rose .inner { fill: none; stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 1 5; }
.rose .tk { stroke: var(--ink); stroke-width: 1px; fill: none; }
.rose .north, .rose .pin { fill: var(--ink); }
.rose .dial { fill: none; stroke: var(--ink); }
.rose .hz { transform: rotate(var(--bank, -16deg)); transition: transform 1.5s var(--ease-out); }
.rose .hz path { fill: var(--accent); }

.c-inset { position: absolute; z-index: 2; right: var(--gx); bottom: 36px; width: clamp(340px, min(43vw, 62svh), 620px); margin: 0; animation: c-in 1s var(--ease-out) 0.5s both; }
.c-inset figcaption { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-2); margin-bottom: var(--s2); display: inline-flex; align-items: center; gap: var(--s2); background: var(--bg); padding: 2px var(--s2) 2px 0; }
.c-inset figcaption::before { content: ""; width: 22px; border-top: var(--lw) solid var(--ink); }
/* The way down to the legend, in the chart's bottom margin */
.c-tolegend { position: absolute; z-index: 2; left: var(--gx); bottom: 36px; display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-2); text-decoration: none; background: var(--bg); padding: 4px var(--s2) 4px 0; }
.c-tolegend svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.c-tolegend:hover { color: var(--accent); } .c-tolegend:hover svg { transform: translateY(3px); }
/* The app's windows on paper: an ink outline and a printed shadow, in the app's own system face */
.sheet .sc { --font: var(--sys); --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; border-radius: 10px; box-shadow: 0 0 0 var(--lw) var(--ink), 0 26px 50px -26px oklch(0.22 0.07 270 / 0.6); }
/* A scene is drawn in em, sized from its holder: the window scales as a whole, at the proportions it was drawn for */
.c-play, .n-frame, .n-play { container-type: inline-size; }
.sheet .sc { font-size: 1.82cqw; }
.sc h2, .sc h3, .sc h4 { font-family: var(--sys); }
.c-play .sc-cam { animation: none !important; }

/* ---------- The legend: what the page's symbols mean, which is how Pilot works ---------- */
.c-legend { display: grid; grid-template-columns: calc(6 * var(--cell)) minmax(0, 1fr); gap: var(--s7) var(--cell); align-items: start; }
.c-legend-say p { font-size: var(--t-lg); line-height: 1.6; color: var(--ink-2); max-width: 44ch; margin: 0; }
.c-key { margin: 0; border-top: var(--lw) solid var(--ink); }
.c-key > div { display: grid; grid-template-columns: calc(3 * var(--cell)) minmax(0, 1fr); gap: 0; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.c-key dt { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.c-key dd { margin: 0; color: var(--ink-2); }
.sheet dt svg, .c-row svg, .c-two svg, .c-today svg { width: 28px; height: 28px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet svg .sb { stroke: var(--accent); fill: var(--bg); } .sheet svg .sm { stroke: var(--mag); fill: var(--bg); } .sheet svg .sg { stroke: var(--green); }
.sheet svg .dash { stroke-dasharray: 2.5 5; }

/* ---------- The tour: the window stays, the words change (site.js sets data-step on the sticky section) ---------- */
.n-tour { position: relative; border-top: var(--lw) solid var(--ink); }
.n-tour-stage { position: sticky; top: 60px; height: calc(100svh - 60px); display: grid; grid-template-columns: calc(4 * var(--cell)) minmax(0, 1fr); align-items: center; gap: var(--cell); padding: 0 var(--gx); }
.n-tour-text { position: relative; min-height: 17rem; }
.n-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); pointer-events: none; }
.n-step h2 { margin-bottom: var(--s4); max-width: 12ch; }
.n-step p { font-size: var(--t-xl); line-height: 1.45; color: var(--ink-2); max-width: 28ch; margin: 0; }
.n-tour-shot { position: relative; aspect-ratio: 16 / 10; }
.n-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out); pointer-events: none; }
/* The steps as a route with its waypoints */
.n-note { position: absolute; right: var(--gx); bottom: 6svh; margin: 0; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.n-dots { position: absolute; left: var(--gx); bottom: 6svh; display: flex; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.n-dots li { position: relative; padding: var(--s3) var(--s5) 0 0; border-top: var(--lw) solid var(--line); min-width: 5.25rem; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.n-dots li::before { content: ""; position: absolute; left: 0; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: var(--lw) solid currentColor; }
.n-tour:not([data-step]) [data-i="0"] { opacity: 1; transform: none; }

/* ---------- Connections: a directory, ruled like the tables printed in a chart's margin ---------- */
.c-dir { margin-top: var(--s7); border-top: var(--lw) solid var(--ink); }
.c-dir.agents { margin-top: var(--s8); }
.c-row { display: grid; grid-template-columns: calc(3 * var(--cell)) minmax(0, 1fr) calc(3 * var(--cell)); gap: 0; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.c-row.head { padding: 10px 0; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.c-row b { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-lg); }
.c-row > span { color: var(--ink-2); max-width: 62ch; padding-right: var(--s6); }
.c-row .how { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--t-sm); color: var(--ink); line-height: 1.5; }
.c-row .how svg { margin-top: -4px; }

/* ---------- Two columns of facts beside a statement ---------- */
.c-split { display: grid; grid-template-columns: calc(6 * var(--cell)) minmax(0, 1fr); gap: var(--s7) var(--cell); align-items: start; }
/* 3 cells + 4: the second list starts on a line of the graticule */
.c-two { display: grid; grid-template-columns: calc(3 * var(--cell)) minmax(0, 1fr); gap: 0; }
.c-two > div:first-child { padding-right: var(--s6); }
.c-two h3 { display: flex; align-items: center; gap: var(--s3); margin: 0; padding-bottom: var(--s3); border-bottom: var(--lw) solid var(--ink); font-size: var(--t-lg); }
.c-two ul { list-style: none; margin: 0; padding: 0; }
.c-two li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

.c-steps { counter-reset: s; list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s4); max-width: 46ch; }
.c-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: var(--s3); color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; }
.c-steps li::before { content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; border: var(--lw) solid var(--ink); border-radius: var(--r-sm); font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); }
.c-steps b { color: var(--ink); }
.c-proc { display: grid; gap: var(--s4); min-width: 0; }
.c-proc .c-fine i { font-style: normal; font-family: var(--code); color: var(--mag); }
.c-cmd { background: var(--ink); color: oklch(0.93 0.02 250); border-radius: var(--r-lg); padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s2); min-width: 0; }
.c-cmd span { font-family: var(--mono); font-size: var(--t-xs); color: oklch(0.78 0.05 255); }
.c-cmd code { font-family: var(--code); font-size: var(--t-sm); line-height: 1.6; background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.c-cmd i { font-style: normal; color: oklch(0.8 0.13 345); }
.c-facts { display: grid; grid-template-columns: calc(3 * var(--cell)) minmax(0, 1fr); margin: var(--s3) 0 0; border-top: var(--lw) solid var(--ink); }
.c-facts > div { padding: 14px var(--s4) 14px 0; border-bottom: 1px solid var(--line); }
.c-facts dt { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.c-facts dd { margin: 2px 0 0; font-weight: 700; }

/* ---------- For companies: the same chart printed in reverse, ink as the ground ---------- */
.c-co { display: grid; grid-template-columns: calc(6 * var(--cell)) minmax(0, 1fr); gap: var(--s7) var(--cell); align-items: start; background: var(--ink); color: oklch(0.95 0.012 250);
  background-image: linear-gradient(oklch(1 0 0 / 0.07) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.07) 1px, transparent 1px); background-size: var(--cell) var(--cell); background-position: var(--gx) 0; }
.c-co h2 em { color: oklch(0.8 0.12 268); }
.c-co .c-intro { color: oklch(0.86 0.03 255); }
.c-next { margin: var(--s5) 0 var(--s6); color: oklch(0.86 0.03 255); max-width: 44ch; }
.c-co .btn.line { border-color: currentColor; color: inherit; } .c-co .btn.line:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.c-co ::selection { background: var(--bg); color: var(--ink); }
.c-co :focus-visible { outline-color: oklch(0.8 0.13 345); }
.c-today { list-style: none; margin: 0; padding: 0; border-top: var(--lw) solid currentColor; }
.c-today li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); padding: 18px 0; border-bottom: 1px solid oklch(1 0 0 / 0.2); color: oklch(0.86 0.03 255); }
.c-today b { color: oklch(0.97 0.008 250); }
.c-co svg .sg { stroke: oklch(0.82 0.15 165); }

/* ---------- The contact form: fields are data boxes on the sheet; in the navy band they print in reverse ---------- */
.c-co-form h3 { margin: 0 0 var(--s4); font-size: var(--t-xl); }
.c-co-form { grid-column: 2; }
.c-form { display: grid; gap: var(--s4); }
.c-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.c-field { display: grid; gap: 6px; align-content: start; }
.c-field label { font-size: var(--t-sm); font-weight: 700; color: inherit; display: block; }
.c-form input, .c-form textarea { width: 100%; height: 44px; font-family: var(--font); font-size: var(--t-md); }
.c-form textarea { height: auto; min-height: 140px; padding: var(--s3); line-height: 1.5; resize: vertical; }
.c-field.bad input, .c-field.bad textarea { border-color: var(--red); }
.c-err { margin: 0; font-size: var(--t-sm); color: var(--red); font-weight: 700; }
.c-notice { padding: var(--s3) var(--s4); background: var(--red-soft); border-radius: var(--r-md); }
.c-human { min-height: 65px; }  /* the challenge's box, reserved so the button does not jump when it loads */
.c-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.c-form-foot .c-fine { max-width: 40ch; }
.c-sent h3 { margin: 0 0 var(--s2); font-size: var(--t-xl); color: var(--green); }
.c-sent p { margin: 0 0 var(--s3); }
.c-co .c-form input, .c-co .c-form textarea { background: oklch(1 0 0 / 0.06); border-color: oklch(1 0 0 / 0.45); color: oklch(0.97 0.008 250); }
.c-co .c-form input:focus, .c-co .c-form textarea:focus { border-color: oklch(0.8 0.13 345); box-shadow: 0 0 0 3px oklch(0.8 0.13 345 / 0.25); }
.c-co .c-form ::placeholder { color: oklch(0.8 0.03 255); }
.c-co .c-fine { color: oklch(0.86 0.03 255); }
.c-co .btn.primary { background: var(--bg); border-color: var(--bg); color: var(--ink); } .c-co .btn.primary:hover { background: oklch(0.8 0.12 268); border-color: oklch(0.8 0.12 268); }
.c-co .c-today { margin-top: var(--s6); }
/* /contact: the statement on the left, the form on the right, on the same cells as the home page */
.c-contact { display: grid; grid-template-columns: calc(5 * var(--cell)) minmax(0, 1fr); gap: var(--s7) var(--cell); align-items: start; padding-top: var(--s5); }
.c-contact h1 { font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -0.03em; }

/* ---------- What's new ---------- */
.c-new-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.c-new-head h2 { margin: 0; }
.c-new-head a { font-weight: 700; }
.c-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: var(--lw) solid var(--ink); }
.c-line li a { display: block; position: relative; padding: var(--s5) var(--s5) var(--s4) 0; color: inherit; text-decoration: none; }
.c-line li a::before { content: ""; position: absolute; top: -6px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: var(--lw) solid var(--accent); }
.c-line b { font-size: var(--t-2xl); letter-spacing: -0.03em; margin-right: var(--s3); }
.c-line time { display: block; font-family: var(--mono); color: var(--ink-3); font-size: var(--t-xs); margin: var(--s1) 0 var(--s3); }
.c-line p { color: var(--ink-2); margin: 0; max-width: 34ch; }
.c-line li a:hover b { color: var(--accent); }
.c-empty { color: var(--ink-2); font-size: var(--t-lg); margin: 0; padding-top: var(--s5); border-top: var(--lw) solid var(--ink); max-width: none; }

/* ---------- The close: the sheet's one field of solid blue ---------- */
.c-end { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s7); background: var(--accent); color: oklch(0.99 0.005 268); border-top-color: var(--accent); padding-top: var(--s8); padding-bottom: var(--s8); }
.c-end-copy { display: grid; justify-items: start; gap: var(--s5); }
/* The dial at full size: the same mark, its ring a hairline like the chart's rose */
.c-end-dial { width: clamp(220px, 26vw, 360px); height: auto; aspect-ratio: 1; color: inherit; }
.c-end-dial .ring { stroke-width: 2.6; } .c-end-dial .hz path { fill: var(--ink); }
.c-word { display: flex; align-items: center; font-size: clamp(4.5rem, 15vw, 6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0; max-width: none; }
.c-word .c-o { width: 0.66em; height: 0.66em; margin: 0.05em 0.035em 0 0.03em; color: inherit; }
.c-word .c-o .hz path { fill: var(--ink); }
.c-end-say { font-size: clamp(1.375rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0; max-width: 22ch; }
.btn.invert { background: var(--bg); border-color: var(--bg); color: var(--ink); } .btn.invert:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.c-end .c-fine { color: oklch(0.93 0.03 268); max-width: 62ch; } .c-end .c-fine a { color: inherit; }
.c-end ::selection { background: var(--bg); color: var(--ink); }
.c-end :focus-visible { outline-color: var(--bg); }

/* ---------- Narrower screens: the same sheet, folded ---------- */
@media (min-width: 1121px) { .n-mobile { display: none; } }
@media (max-width: 1120px) {
  .c-hero { min-height: 0; overflow: visible; padding-bottom: var(--s7); }
  .c-chart.wide { display: none; }
  .c-chart.tall { display: block; width: min(100% - 2 * var(--s4), 540px); height: auto; margin: 0 auto; }
  .c-title { width: auto; margin: 0; padding: var(--s7) var(--gx) var(--s6); }
  .c-title h1 { font-size: clamp(2.75rem, 9.5vw, 4.75rem); max-width: 12ch; }
  .c-lede { max-width: 44ch; }
  .c-inset { position: static; width: auto; margin: var(--s6) var(--s4) 0; }
  .c-play { aspect-ratio: 6 / 5; } .sheet .c-play .sc { aspect-ratio: auto; height: 100%; font-size: 2.5cqw; }
  .c-play .sc-app { grid-template-columns: 1fr; } .c-play .sc-side, .c-play .sc-cur { display: none; }
  .c-legend, .c-split, .c-co, .c-end { grid-template-columns: 1fr; }
  .c-co-form { grid-column: auto; } .c-contact { grid-template-columns: 1fr; }
  .c-key > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .c-two, .c-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-tolegend { display: none; } .c-end-dial { display: none; }
  .c-sec, .c-legend, .c-end { padding-top: var(--s8); padding-bottom: var(--s8); }
  .n-tour { height: auto; }
  .n-tour-stage { position: static; height: auto; display: block; padding: var(--s8) var(--gx); }
  .n-note { position: static; margin-bottom: var(--s6); }
  .n-tour-text, .n-tour-shot, .n-dots { display: none; }
  .n-mobile { display: grid; gap: var(--s8); }
  .c-row { grid-template-columns: 1fr; gap: var(--s2); } .c-row.head { display: none; }
  .c-row .how { margin-top: var(--s1); }
}
@media (max-width: 620px) {
  .c-key > div { grid-template-columns: 1fr; gap: var(--s1); }
  .c-two, .c-facts { grid-template-columns: 1fr; }
  .c-pair { grid-template-columns: 1fr; }
  .c-cta .btn.big { width: 100%; }
}
.n-mobile > div > h2 { margin: 0 0 var(--s3); }
.n-mobile > div > p { color: var(--ink-2); font-size: var(--t-lg); margin: 0 0 var(--s5); }
.n-play { aspect-ratio: 6 / 5; } .sheet .n-play .sc { aspect-ratio: auto; height: 100%; font-size: 2.5cqw; }
.n-play .sc-app { grid-template-columns: 1fr; } .n-play .sc-side { display: none; }  /* a phone: the page alone, so it reads */
.n-play .sc-cam { animation: none !important; } .n-play .sc-cur { display: none; }  /* the camera and cursor are framed for the desktop layout */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .n-step, .n-frame { transition: none; } .rose .hz { transition: none; } }
.c-chart .k0{--i:0}.c-chart .k1{--i:1}.c-chart .k2{--i:2}.c-chart .k3{--i:3}.c-chart .k4{--i:4}.c-chart .k5{--i:5}.c-chart .k6{--i:6}.c-chart .k7{--i:7}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s6) var(--s8); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.list li { padding-left: var(--s5); position: relative; color: var(--ink-2); max-width: 64ch; }
.list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.list li b { color: var(--ink); font-weight: 600; }
section.band { border-top: 1px solid var(--line); margin-top: var(--s8); padding-top: var(--s8); }

/* Download */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); margin-bottom: var(--s5); }
.tabs a { padding: 5px var(--s4); border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 520; }
.tabs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tabs > span { padding: 5px var(--s4); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); max-width: 760px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); }
.steps > li::before { content: counter(s); width: 26px; height: 26px; border-radius: var(--r-sm); font-family: var(--mono); display: grid; place-items: center; background: var(--accent-soft); color: var(--link); font-weight: 650; font-size: var(--t-sm); }
.steps h3 { margin: 2px 0 var(--s2); }
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; margin: var(--s2) 0; }
.cmd pre { margin: 0; padding: var(--s3); flex: 1; overflow-x: auto; white-space: pre; font-size: var(--t-sm); }
.cmd button { border: 0; border-left: 1px solid var(--line); background: var(--surface); padding: 0 var(--s4); cursor: pointer; color: var(--ink-2); font-weight: 520; }
.cmd button:hover { color: var(--ink); background: var(--hover); }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.docs aside { position: sticky; top: 84px; max-height: calc(100dvh - 96px); overflow: auto; display: grid; gap: var(--s4); }
.docs aside h4 { margin: 0 0 var(--s1); font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); text-transform: none; }
.docs aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs aside a { display: block; padding: 5px var(--s3); border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); }
.docs aside a:hover { background: var(--hover); color: var(--ink); }
.docs aside a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 560; }
.docs aside select, .docs aside input { width: 100%; }
#search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
#search-results a small { display: block; color: var(--ink-3); }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs aside { position: static; max-height: none; } }
.prose { max-width: 72ch; }
.prose h1 { font-size: var(--t-2xl); }
.prose h2 { margin-top: var(--s6); padding-top: var(--s2); }
.prose h2 a.anchor, .prose h3 a.anchor { color: var(--ink-3); text-decoration: none; margin-left: var(--s2); opacity: 0; transition: opacity 150ms var(--ease); }
.prose h2:hover a.anchor, .prose h3:hover a.anchor, .prose a.anchor:focus { opacity: 1; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); overflow-x: auto; }
.prose table { border-collapse: collapse; margin: var(--s4) 0; font-size: var(--t-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.prose th { color: var(--ink-2); font-weight: 600; }
.prose li { margin: var(--s1) 0; }
.prose blockquote { margin: var(--s4) 0; padding: var(--s1) var(--s4); border-left: 1px solid var(--line); color: var(--ink-2); }
.prose img { max-width: 100%; }

/* Releases */
.release { border-top: 1px solid var(--line); padding: var(--s5) 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s5); }
.release header h2 { margin: 0 0 var(--s1); font-size: var(--t-xl); }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; } }

/* Tables (admin) */
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
pre.diff { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); overflow-x: auto; font-size: var(--t-sm); line-height: 1.45; }
pre.diff span { display: block; }
pre.diff .add { background: var(--green-soft); }
pre.diff .del { background: var(--red-soft); }
table.data th, table.data td { padding: 7px var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { color: var(--ink-3); font-weight: 700; font-size: var(--t-xs); position: sticky; top: 60px; background: var(--bg); }
table.data td.n, table.data th.n { text-align: right; }
table.data tr:hover td { background: var(--hover); }
.mono { font-family: var(--code); font-size: var(--t-sm); }

/* Admin */
.admin { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: var(--s6); }
.admin > nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.admin > nav a { padding: 6px var(--s3); border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; }
.admin > nav a:hover { background: var(--hover); color: var(--ink); }
.admin > nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 560; box-shadow: 0 0 0 1px var(--line); }
.admin h1 { font-size: var(--t-xl); }
.admin h2 { font-size: var(--t-lg); margin-top: var(--s6); }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } .admin > nav { position: static; display: flex; flex-wrap: wrap; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.tile { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tile b { display: block; font-size: var(--t-2xl); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.tile span { color: var(--ink-3); font-size: var(--t-sm); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: var(--s5) var(--s6); }
.chart { margin: 0; }
.chart figcaption { font-weight: 600; margin-bottom: var(--s2); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart .lab { fill: var(--ink-3); font-size: 13px; font-family: var(--font); }
.chart .val { fill: var(--ink-2); font-size: 13px; font-family: var(--font); }
.chart .series { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent-soft); opacity: 0.6; }
.chart .mk { fill: var(--accent); }
.chart .hit { fill: transparent; } .chart .hit:hover { fill: var(--hover); }
.chart g.pt:hover .dot { r: 4; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart details { margin-top: var(--s2); font-size: var(--t-sm); }
.chart details summary { cursor: pointer; color: var(--ink-3); }
.empty { color: var(--ink-3); padding: var(--s5) 0; }
form.inline { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin: var(--s3) 0; }
form.stack { display: grid; gap: var(--s3); max-width: 720px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); margin: 0; display: grid; gap: var(--s3); }
legend { padding: 0 var(--s2); color: var(--ink-2); font-weight: 560; }
.grow { flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; }
.denied { max-width: 560px; margin: 10vh auto 0; }
.denied-mark { width: 56px; height: 56px; margin-bottom: var(--s5); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .js .reveal { opacity: 1; transform: none; } }

/* ---------- The tour's scenes: Pilot's dark interface, sized in container units so one window scales as a whole ---------- */
.sc { --T: 10s; --bg: oklch(0.165 0.014 265); --sf: oklch(0.215 0.014 265); --sf2: oklch(0.245 0.015 265); --tint: oklch(1 0 0 / 0.055); --sel: oklch(1 0 0 / 0.11);
  --tx: oklch(0.96 0.004 265); --tx2: oklch(0.79 0.012 265); --tx3: oklch(0.69 0.012 265); --ln: oklch(1 0 0 / 0.09); --ln2: oklch(1 0 0 / 0.18);
  --ac: oklch(0.55 0.2 268); --act: oklch(0.82 0.11 268); --acs: oklch(0.7 0.16 268 / 0.2); --glass: oklch(0.31 0.02 265 / 0.44);
  --wait: oklch(0.81 0.15 78); --work: oklch(0.76 0.17 150); --bgjob: oklch(0.77 0.1 200); --ready: oklch(0.76 0.12 235); --idle: oklch(0.6 0.01 265);
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10; min-height: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg); color: var(--tx);
  font: 1.12cqw/1.45 var(--font); letter-spacing: -0.005em; text-align: left; -webkit-font-smoothing: antialiased; user-select: none;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.1), 0 30px 120px oklch(0 0 0 / 0.75); }
.sc * { box-sizing: border-box; }
.sc-cam { position: absolute; inset: 0; transform-origin: 0 0; background: radial-gradient(60% 50% at 20% 0%, oklch(0.38 0.15 268 / 0.35), transparent 70%), var(--bg); }
.sc-app { position: absolute; inset: 0; display: grid; grid-template-columns: 17.5% 1fr; gap: 1.2%; padding: 1.2%; }
.sc h2, .sc h3, .sc h4 { margin: 0; letter-spacing: -0.02em; }
.sc small { color: var(--tx3); font-size: 0.86em; }
.sc code { font: 0.86em/1.4 var(--mono); color: var(--tx2); background: none; padding: 0; border: 0; border-radius: 0; }  /* not the site's code style */
.sc-swap { display: inline-grid; justify-items: start; } .sc-swap > * { grid-area: 1 / 1; }
div.sc-swap { display: grid; }
.lamp { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--idle); flex: none; }
.lamp[data-s="work"] { background: var(--work); box-shadow: 0 0 0 0.22em oklch(0.76 0.17 150 / 0.18); }
.lamp[data-s="wait"] { background: var(--wait); box-shadow: 0 0 0 0.22em oklch(0.81 0.15 78 / 0.2); }
.lamp[data-s="bgjob"] { background: var(--bgjob); } .lamp[data-s="ready"] { background: var(--ready); }

/* The sidebar: glass, as in the app */
.sc-side { display: flex; flex-direction: column; gap: 0.25em; padding: 0.9em 0.7em; border-radius: 1.1em; background: var(--glass); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.11); font-size: 0.95em; min-width: 0; }
.sc-brand { display: flex; align-items: center; gap: 0.5em; font-weight: 650; padding: 0 0.3em 0.5em; }
.sc-logo { width: 1.25em; height: 1.25em; border-radius: 50%; border: 0.2em solid var(--tx); background: linear-gradient(170deg, transparent 50%, var(--ac) 50%); }
.sc-search { display: flex; justify-content: space-between; padding: 0.45em 0.6em; border-radius: 0.7em; background: var(--tint); color: var(--tx3); margin-bottom: 0.4em; }
.sc-search kbd { font: inherit; font-size: 0.8em; padding: 0 0.3em; border-radius: 0.3em; box-shadow: inset 0 0 0 1px var(--ln2); }
.sc-nav { display: flex; align-items: center; gap: 0.6em; padding: 0.4em 0.6em; border-radius: 0.6em; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-nav > i { width: 0.95em; height: 0.95em; border-radius: 0.25em; box-shadow: inset 0 0 0 0.12em currentColor; opacity: 0.7; flex: none; }
.sc-nav.on { background: var(--sel); color: var(--tx); }
.sc-nav em { margin-left: auto; font-style: normal; font-size: 0.85em; color: var(--tx3); }
.sc-ag { font-size: 0.92em; }
.sc-group { margin: 0.7em 0.6em 0.1em; font-size: 0.8em; color: var(--tx3); font-weight: 600; }

/* The page */
.sc-main { position: relative; display: flex; flex-direction: column; gap: 0.9em; min-width: 0; min-height: 0; padding: 0.4em 0.2em 0; }
.sc-bar { display: flex; align-items: center; gap: 0.8em; min-height: 2.4em; }
.sc-bar h3 { font-size: 1.35em; font-weight: 650; }
.sc-x { color: var(--tx3); font-size: 0.88em; margin-left: auto; white-space: nowrap; }
.sc-bar .sc-pill + .sc-x { margin-left: 0.4em; }
.sc-seg { display: flex; padding: 0.2em; border-radius: 99em; background: var(--tint); font-size: 0.9em; }
.sc-seg > * { padding: 0.25em 0.8em; border-radius: 99em; color: var(--tx2); font-weight: 500; }
.sc-seg b { background: var(--sel); color: var(--tx); }
.sc-btn { display: inline-flex; align-items: center; padding: 0.4em 0.95em; border-radius: 99em; font-size: 0.9em; font-weight: 550; background: var(--tint); box-shadow: inset 0 0 0 1px var(--ln2); color: var(--tx); white-space: nowrap; }
.sc-btn.pri { background: var(--ac); box-shadow: none; color: #fff; }
.sc-bar .sc-btn.pri { margin-left: auto; }
.sc-rel { padding: 0.15em 0.7em; border-radius: 99em; background: var(--acs); color: var(--act); font-size: 0.85em; font-weight: 600; }
.sc-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1em; }
.sc-split.wide { grid-template-columns: 1.45fr 1fr; }
.sc-list { display: flex; flex-direction: column; border-radius: 1em; background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; align-self: start; }
.sc-row { display: flex; align-items: center; gap: 0.75em; padding: 0.75em 0.9em; border-top: 1px solid var(--ln); min-width: 0; }
.sc-row:first-child { border-top: 0; }
.sc-cli { width: 1.5em; height: 1.5em; border-radius: 0.45em; background: conic-gradient(from 20deg, oklch(0.72 0.15 45), oklch(0.65 0.17 30), oklch(0.72 0.15 45)); flex: none; }
.sc-rt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-rt b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-pill { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.2em 0.65em; border-radius: 99em; font-size: 0.84em; font-weight: 600; white-space: nowrap; flex: none; background: var(--tint); color: var(--tx2); }
.sc-pill[data-s="work"] { background: oklch(0.76 0.17 150 / 0.16); color: oklch(0.86 0.13 150); }
.sc-pill[data-s="wait"] { background: oklch(0.8 0.15 75 / 0.18); color: oklch(0.87 0.12 82); }
.sc-pill[data-s="bgjob"] { background: oklch(0.77 0.1 200 / 0.16); color: oklch(0.86 0.08 200); }
.sc-pill[data-s="ready"] { background: oklch(0.76 0.12 235 / 0.16); color: oklch(0.84 0.1 235); }
.sc-pill[data-s="ended"] { box-shadow: inset 0 0 0 1px var(--ln); background: none; color: var(--tx3); }
.sc-pane { position: relative; display: flex; flex-direction: column; gap: 0.8em; padding: 1em 1.1em; border-radius: 1em; background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln); min-width: 0; overflow: hidden; }
.sc-pbar { display: flex; justify-content: space-between; color: var(--tx3); font-size: 0.86em; padding-bottom: 0.6em; border-bottom: 1px solid var(--ln); }
.sc-pane h4 { font-size: 1.3em; font-weight: 650; line-height: 1.2; }
.sc-pane h4.edge { padding-left: 0.6em; border-left: 0.25em solid oklch(0.74 0.17 25); }
.sc-meta { margin: -0.5em 0 0; color: var(--tx3); font-size: 0.88em; }
.sc-step { display: flex; flex-direction: column; gap: 0.45em; padding: 0.9em 1em; border-radius: 0.9em; background: var(--acs); box-shadow: inset 0 0 0 1px oklch(0.7 0.16 268 / 0.25); }
.sc-step[data-s="wait"] { background: oklch(0.8 0.15 75 / 0.12); box-shadow: inset 0 0 0 1px oklch(0.81 0.15 78 / 0.35); }
.sc-step[data-s="work"] { background: oklch(0.76 0.17 150 / 0.12); box-shadow: inset 0 0 0 1px oklch(0.76 0.17 150 / 0.3); }
.sc-k { font-size: 0.82em; font-weight: 650; color: var(--act); }
.sc-step[data-s="wait"] .sc-k { color: oklch(0.87 0.12 82); } .sc-step[data-s="work"] .sc-k { color: oklch(0.86 0.13 150); }
.sc-step code { padding: 0.4em 0.6em; border-radius: 0.5em; background: oklch(0 0 0 / 0.3); }
.sc-acts { display: flex; gap: 0.5em; margin-top: 0.2em; }
.sc-prog { height: 0.3em; border-radius: 99em; background: var(--tint); overflow: hidden; }
.sc-prog i { display: block; height: 100%; width: 64%; background: var(--work); border-radius: inherit; }
.sc-msg p { margin: 0; color: var(--tx2); }
.sc-toast { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; align-items: center; gap: 0.6em; padding: 0.65em 1.1em; border-radius: 99em; background: oklch(0.31 0.02 265 / 0.85); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14), 0 1em 3em oklch(0 0 0 / 0.5); white-space: nowrap; font-weight: 550; }
.sc-cur { position: absolute; z-index: 9; width: 2.2%; left: 50%; top: 80%; opacity: 0; filter: drop-shadow(0 0.15em 0.3em oklch(0 0 0 / 0.5)); }

/* Chat */
.sc-chat .sc-bar { padding-bottom: 0.6em; border-bottom: 1px solid var(--ln); }
.sc-thread { flex: 1; display: flex; flex-direction: column; gap: 0.9em; padding: 0 6%; min-height: 0; }
.sc-you { align-self: flex-end; max-width: 70%; padding: 0.6em 0.95em; border-radius: 1.1em 1.1em 0.3em 1.1em; background: var(--sf2); box-shadow: inset 0 0 0 1px var(--ln); }
.sc-say { margin: 0; color: var(--tx); }
.sc-say p { margin: 0 0 0.4em; }
.sc-tools { display: flex; flex-direction: column; border-radius: 0.9em; background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln); }
.sc-tool { display: grid; grid-template-columns: 3.6em 1fr auto; align-items: center; gap: 0.6em; padding: 0.5em 0.9em; border-top: 1px solid var(--ln); position: relative; }
.sc-tool:first-child { border-top: 0; }
.sc-tool b { font-size: 0.86em; color: var(--tx2); font-weight: 600; }
.sc-tool code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-res { font-size: 0.84em; color: oklch(0.86 0.13 150); font-weight: 600; grid-column: 3; grid-row: 1; }
.sc-spin { grid-column: 3; grid-row: 1; justify-self: end; width: 0.95em; height: 0.95em; border-radius: 50%; border: 0.14em solid var(--ln2); border-top-color: var(--work); opacity: 0; }
.sc-phase { position: relative; height: 1.5em; margin: 0 6%; color: oklch(0.86 0.13 150); font-size: 0.88em; font-weight: 600; }
.sc-phase span { position: absolute; left: 0; opacity: 0; }
.sc-compose { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; margin: 0 6% 1em; padding: 0.8em 0.9em; border-radius: 1.1em; background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); }
.sc-compose .ph { flex: 1 1 100%; color: var(--tx3); }
.sc-chips { display: flex; gap: 0.4em; font-size: 0.82em; color: var(--tx2); }
.sc-chips i { font-style: normal; padding: 0.2em 0.6em; border-radius: 99em; background: var(--tint); }
.sc-send { margin-left: auto; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--ac); }

/* @ references */
.sc-home { padding: 4% 7% 0; }
.sc-head { font-size: 2.1em; font-weight: 700; letter-spacing: -0.03em; }
.sc-head em { font-style: normal; color: var(--wait); }
.sc-compose.big { margin: 0; padding: 1.1em 1.1em 0.9em; font-size: 1.1em; }
.sc-line { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em; min-height: 3.2em; align-content: flex-start; }
.sc-at { color: var(--act); font-weight: 600; }
.sc-chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.1em 0.55em 0.1em 0.2em; border-radius: 0.5em; background: var(--acs); color: var(--act); font-weight: 550; box-shadow: inset 0 0 0 1px oklch(0.7 0.16 268 / 0.35); }
.sc-caret { width: 0.1em; height: 1.15em; background: var(--act); }
.sc-ref { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 0.35em; font: 700 0.78em/1 var(--font); font-style: normal; color: #fff; flex: none; }
.sc-ref[data-k="jira"] { background: #2684ff; } .sc-ref[data-k="teams"] { background: #5b5fc7; } .sc-ref[data-k="mail"] { background: #0078d4; }
.sc-ref[data-k="notion"] { background: #f5f5f4; color: #111; } .sc-ref[data-k="session"] { background: conic-gradient(from 20deg, oklch(0.72 0.15 45), oklch(0.65 0.17 30), oklch(0.72 0.15 45)); }
.sc-picker { position: absolute; left: 0.6em; right: 0.6em; top: calc(100% + 0.5em); z-index: 4; padding: 0.5em; border-radius: 1em; background: oklch(0.27 0.02 265 / 0.92); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14), 0 1.5em 4em oklch(0 0 0 / 0.55); font-size: 0.92em; opacity: 0; }
.sc-tabs { display: flex; gap: 0.3em; padding: 0.2em 0.2em 0.5em; font-size: 0.86em; color: var(--tx2); }
.sc-tabs > * { padding: 0.2em 0.65em; border-radius: 99em; } .sc-tabs b { background: var(--sel); color: var(--tx); }
.sc-pr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7em; padding: 0.5em 0.6em; border-radius: 0.6em; }
.sc-pr b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3-hi { background: var(--sel); }

/* History */
.sc-searchrow { display: flex; gap: 0.7em; align-items: center; }
.sc-field { flex: 1; display: flex; align-items: center; gap: 0.2em; padding: 0.55em 0.9em; border-radius: 0.8em; background: var(--tint); box-shadow: inset 0 0 0 1px var(--ln2); min-height: 2.4em; }
.s4-ai { color: var(--act); }
.s4-list { flex: none; }
.sc-found { display: flex; flex-direction: column; border-radius: 1em; background: var(--sf); box-shadow: inset 0 0 0 1px oklch(0.7 0.16 268 / 0.3); overflow: hidden; }
.sc-found > .sc-k { padding: 0.7em 0.9em 0.2em; }
.sc-found .why { color: var(--act); }

/* Inbox */
.sc-prio { font-style: normal; font-size: 0.78em; font-weight: 700; padding: 0.15em 0.45em; border-radius: 0.4em; background: var(--tint); color: var(--tx2); flex: none; }
.sc-prio[data-p="P1"] { background: oklch(0.71 0.18 25 / 0.18); color: oklch(0.86 0.1 25); }
.sc-prio[data-p="P2"] { background: oklch(0.8 0.15 75 / 0.16); color: oklch(0.87 0.12 82); }
.sc-ago { flex: none; }
.sc-tag { font-size: 0.8em; font-weight: 600; padding: 0.15em 0.55em; border-radius: 99em; background: oklch(0.76 0.17 150 / 0.16); color: oklch(0.86 0.13 150); flex: none; }
.s5-r1 { background: var(--sel); }
.sc-sum { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.3em; color: var(--tx2); }
.sc-sum.found { list-style: none; padding: 0; } .sc-sum.found li { display: flex; gap: 0.6em; align-items: center; color: var(--tx); }
.sc-draft { padding: 0.8em 0.9em; border-radius: 0.8em; background: var(--tint); box-shadow: inset 0 0 0 1px var(--ln); }
.sc-draft p { margin: 0.3em 0 0; }

.s5-pane, .s6-pane { gap: 0.6em; font-size: 0.94em; }

/* Meetings */
.sc-week { display: flex; flex-direction: column; border-radius: 1em; background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; }
.sc-days { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--ln); font-size: 0.86em; color: var(--tx3); font-weight: 600; }
.sc-days span { padding: 0.6em 0.7em; } .sc-days .today { color: var(--act); background: oklch(0.7 0.16 268 / 0.12); }
.sc-grid { position: relative; flex: 1; background-image: linear-gradient(to bottom, var(--ln) 1px, transparent 1px), linear-gradient(to right, transparent calc(40% - 1px), oklch(0.7 0.16 268 / 0.08) calc(40% - 1px), oklch(0.7 0.16 268 / 0.08) 60%, transparent 60%); background-size: 100% 9%, 100% 100%; }
.sc-ev { position: absolute; width: calc(20% - 4px); padding: 0.25em 0.45em; border-radius: 0.45em; font-size: 0.8em; overflow: hidden; line-height: 1.25; }
.sc-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sc-ev small { font-size: 0.9em; }
.sc-ev.c0 { background: oklch(0.31 0.071 25); box-shadow: inset 0.2em 0 0 oklch(0.74 0.17 25); } .sc-ev.c1 { background: oklch(0.31 0.067 55); box-shadow: inset 0.2em 0 0 oklch(0.74 0.16 55); }
.sc-ev.c3 { background: var(--sf); box-shadow: inset 0 0 0 1px oklch(0.74 0.15 92); } .sc-ev.c4 { background: oklch(0.31 0.063 145); box-shadow: inset 0.2em 0 0 oklch(0.74 0.15 145); }
.sc-ev.c7 { background: oklch(0.31 0.063 250); box-shadow: inset 0.2em 0 0 oklch(0.74 0.15 250); } .sc-ev.c8 { background: oklch(0.31 0.063 300); box-shadow: inset 0.2em 0 0 oklch(0.74 0.15 300); }
.sc-ev.x0, .sc-ev.x1 { opacity: 0.6; }
.s6-ev { outline: 0.15em solid var(--ac); outline-offset: 0.1em; }
.sc-badge { position: absolute; right: 0.3em; bottom: 0.3em; width: 1em; height: 1em; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 0.2em oklch(0.76 0.12 235 / 0.25); }
.sc-now { position: absolute; left: 40%; width: 20%; top: 33%; height: 2px; background: var(--ac); }
.sc-now i { position: absolute; left: 0.3em; top: -0.75em; font: 700 0.7em/1.5 var(--font); font-style: normal; padding: 0 0.4em; border-radius: 99em; background: var(--ac); color: #fff; }
.sc-agentrow { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.8em; border-radius: 0.8em; background: var(--tint); }
/* Final frame: the state each swap ends on */
.s1-a, .s1-b, .s1-ask, .s2-w, .s4-busy, .s6-a { opacity: 0; }
.sc .d0{--d:0s}.sc .d1{--d:0.25s}.sc .d2{--d:0.5s}.sc .d3{--d:0.75s}.sc .d4{--d:1s}.sc .d5{--d:1.25s}.sc .d6{--d:1.5s}.sc .d7{--d:1.75s}.sc .d8{--d:2s}.sc .d9{--d:2.25s}.sc .d10{--d:2.5s}.sc .d11{--d:2.75s}.sc .d12{--d:3s}.sc .d13{--d:3.25s}.sc .d14{--d:3.5s}.sc .d15{--d:3.75s}.sc .d16{--d:4s}.sc .d17{--d:4.25s}.sc .d18{--d:4.5s}.sc .d19{--d:4.75s}.sc .d20{--d:5s}.sc .d21{--d:5.25s}.sc .d22{--d:5.5s}.sc .d23{--d:5.75s}.sc .d24{--d:6s}.sc .d25{--d:6.25s}.sc .d26{--d:6.5s}.sc .d27{--d:6.75s}.sc .d28{--d:7s}.sc .d29{--d:7.25s}.sc .d30{--d:7.5s}.sc .d31{--d:7.75s}.sc .d32{--d:8s}.sc .d33{--d:8.25s}.sc .d34{--d:8.5s}.sc .d35{--d:8.75s}.sc .d36{--d:9s}.sc .d37{--d:9.25s}.sc .d38{--d:9.5s}.sc .d39{--d:9.75s}.sc .d40{--d:10s}.sc-ev.x0{left:calc(0 * 20% + 2px)}.sc-ev.x1{left:calc(1 * 20% + 2px)}.sc-ev.x2{left:calc(2 * 20% + 2px)}.sc-ev.x3{left:calc(3 * 20% + 2px)}.sc-ev.x4{left:calc(4 * 20% + 2px)}.sc-ev.y0{top:calc(0 * 4.5%)}.sc-ev.h0{height:calc(0 * 4.5% - 3px)}.sc-ev.y1{top:calc(1 * 4.5%)}.sc-ev.h1{height:calc(1 * 4.5% - 3px)}.sc-ev.y2{top:calc(2 * 4.5%)}.sc-ev.h2{height:calc(2 * 4.5% - 3px)}.sc-ev.y3{top:calc(3 * 4.5%)}.sc-ev.h3{height:calc(3 * 4.5% - 3px)}.sc-ev.y4{top:calc(4 * 4.5%)}.sc-ev.h4{height:calc(4 * 4.5% - 3px)}.sc-ev.y5{top:calc(5 * 4.5%)}.sc-ev.h5{height:calc(5 * 4.5% - 3px)}.sc-ev.y6{top:calc(6 * 4.5%)}.sc-ev.h6{height:calc(6 * 4.5% - 3px)}.sc-ev.y7{top:calc(7 * 4.5%)}.sc-ev.h7{height:calc(7 * 4.5% - 3px)}.sc-ev.y8{top:calc(8 * 4.5%)}.sc-ev.h8{height:calc(8 * 4.5% - 3px)}.sc-ev.y9{top:calc(9 * 4.5%)}.sc-ev.h9{height:calc(9 * 4.5% - 3px)}.sc-ev.y10{top:calc(10 * 4.5%)}.sc-ev.h10{height:calc(10 * 4.5% - 3px)}.sc-ev.y11{top:calc(11 * 4.5%)}.sc-ev.h11{height:calc(11 * 4.5% - 3px)}.sc-ev.y12{top:calc(12 * 4.5%)}.sc-ev.h12{height:calc(12 * 4.5% - 3px)}.sc-ev.y13{top:calc(13 * 4.5%)}.sc-ev.h13{height:calc(13 * 4.5% - 3px)}.sc-ev.y14{top:calc(14 * 4.5%)}.sc-ev.h14{height:calc(14 * 4.5% - 3px)}.sc-ev.y15{top:calc(15 * 4.5%)}.sc-ev.h15{height:calc(15 * 4.5% - 3px)}.sc-ev.y16{top:calc(16 * 4.5%)}.sc-ev.h16{height:calc(16 * 4.5% - 3px)}.sc-ev.y17{top:calc(17 * 4.5%)}.sc-ev.h17{height:calc(17 * 4.5% - 3px)}.sc-ev.y18{top:calc(18 * 4.5%)}.sc-ev.h18{height:calc(18 * 4.5% - 3px)}.sc-ev.y19{top:calc(19 * 4.5%)}.sc-ev.h19{height:calc(19 * 4.5% - 3px)}.sc-ev.y20{top:calc(20 * 4.5%)}.sc-ev.h20{height:calc(20 * 4.5% - 3px)}

/* ---------- Motion: only on the scene shown (.on), started again by site.js. Everything above is the final frame. ---------- */
@keyframes sc-in { from { opacity: 0; transform: translateY(0.7em); filter: blur(0.3em); } }
@keyframes sc-out { to { opacity: 0; } }
@keyframes sc-type { from { clip-path: inset(-0.2em 100% -0.2em 0); } to { clip-path: inset(-0.2em 0 -0.2em 0); } }
@keyframes sc-blink { 50% { opacity: 0; } }
@keyframes sc-spin { to { rotate: 1turn; } }
.on .in { animation: sc-in 0.6s var(--ease-out) var(--d, 0s) both; }
.on .type { --w: 1s; animation: sc-type var(--w) steps(28, end) var(--d, 0s) both; }
.on .type.lines { animation-name: sc-lines; animation-timing-function: steps(4, end); }
@keyframes sc-lines { from { clip-path: inset(-0.2em 0 100% 0); } to { clip-path: inset(-0.2em 0 -0.2em 0); } }
.on .w0 { --w: 0.45s; } .on .w1 { --w: 0.8s; } .on .w2 { --w: 1.2s; } .on .w3 { --w: 1.6s; } .on .w4 { --w: 2.6s; }
.on .sc-caret { animation: sc-blink 1s steps(1) infinite; }
.on .sc-spin { animation: sc-show 0.2s var(--d) both, sc-spin 0.8s linear infinite, sc-out 0.2s calc(var(--d) + 0.5s) forwards; }
@keyframes sc-show { from { opacity: 0; } to { opacity: 1; } }
.on .sc-res { animation: sc-in 0.4s var(--ease-out) var(--d) both; }
.on .sc-cur { animation: var(--path) var(--T) var(--ease-io) both; }

/* 1. Agents */
.on.s1 .s1-a { animation: s1-a var(--T) steps(1) both; } .on.s1 .s1-b { animation: s1-b var(--T) steps(1) both; } .on.s1 .s1-c { animation: s1-c var(--T) steps(1) both; }
@keyframes s1-a { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes s1-b { 0% { opacity: 0; } 25% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes s1-c { 0% { opacity: 0; } 74%, 100% { opacity: 1; } }
.on.s1 .s1-r2 { animation: s1-row var(--T) both; }
@keyframes s1-row { 0%, 24% { background: transparent; } 26%, 72% { background: oklch(0.8 0.15 75 / 0.08); } 76% { background: var(--sel); } }
.on.s1 .s1-pane { animation: s1-pane var(--T) var(--ease-out) both; }
@keyframes s1-pane { 0%, 40% { opacity: 0; transform: translateX(6%); } 46%, 100% { opacity: 1; transform: none; } }
.on.s1 .s1-ask { animation: s1-ask var(--T) both; } .on.s1 .s1-done { animation: s1-done var(--T) var(--ease-out) both; }
@keyframes s1-ask { 0%, 71% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes s1-done { 0%, 72% { opacity: 0; transform: scale(0.97); } 78%, 100% { opacity: 1; transform: none; } }
.on.s1 .s1-ok { animation: sc-press var(--T) both; }
@keyframes sc-press { 0%, 69% { transform: none; } 70% { transform: scale(0.92); filter: brightness(1.3); } 72%, 100% { transform: none; } }
.on.s1 .sc-cam { animation: s1-cam var(--T) var(--ease-io) both; }
@keyframes s1-cam { 0%, 44% { transform: none; } 56%, 84% { transform: translate(-60%, -14%) scale(1.6); } 94%, 100% { transform: none; } }
.s1 { --path: s1-cur; }
@keyframes s1-cur { 0%, 12% { left: 58%; top: 86%; opacity: 0; } 16% { opacity: 1; } 33% { left: 42%; top: 31%; transform: none; } 36% { transform: scale(0.85); } 38% { left: 42%; top: 31%; transform: none; }
  58% { left: 83%; top: 50%; } 66%, 69% { left: 86.5%; top: 52%; transform: none; } 70% { transform: scale(0.85); } 72%, 88% { left: 86.5%; top: 52%; transform: none; opacity: 1; } 94%, 100% { opacity: 0; left: 86.5%; top: 52%; } }

/* 2. Chat */
.on.s2 .s2-w { animation: s2-w var(--T) steps(1) both; } .on.s2 .s2-d { animation: s2-d var(--T) steps(1) both; }
@keyframes s2-w { 0% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes s2-d { 0% { opacity: 0; } 90%, 100% { opacity: 1; } }
.on.s2 .s2-p1 { animation: s2-p1 var(--T) both; } .on.s2 .s2-p2 { animation: s2-p2 var(--T) both; } .on.s2 .s2-p3 { animation: s2-p3 var(--T) both; }
@keyframes s2-p1 { 0%, 4% { opacity: 0; } 6%, 21% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes s2-p2 { 0%, 22% { opacity: 0; } 24%, 67% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes s2-p3 { 0%, 68% { opacity: 0; } 70%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
.on.s2 .sc-cam { animation: s2-cam var(--T) var(--ease-io) both; }
@keyframes s2-cam { 0%, 24% { transform: none; } 32%, 62% { transform: translate(-24%, -20%) scale(1.3); } 70%, 80% { transform: translate(-12%, -26%) scale(1.3); } 92%, 100% { transform: none; } }

/* 3. @ */
.s3-at, .s3-q { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; }
.on.s3 .s3-at { animation: s3-at var(--T) steps(1) both; } .on.s3 .s3-q { animation: s3-at var(--T) steps(1) both; }
@keyframes s3-at { 0%, 19% { opacity: 0; max-width: 0; } 20%, 43% { opacity: 1; max-width: 4em; } 44%, 100% { opacity: 0; max-width: 0; } }
.on.s3 .s3-chip { animation: s3-chip var(--T) var(--ease-out) both; }
@keyframes s3-chip { 0%, 43% { opacity: 0; transform: scale(0.6); max-width: 0; padding: 0; } 46%, 100% { opacity: 1; transform: none; max-width: 30em; } }
.on.s3 .s3-pick { animation: s3-pick var(--T) var(--ease-out) both; }
@keyframes s3-pick { 0%, 21% { opacity: 0; transform: translateY(-0.6em) scale(0.98); } 24%, 42% { opacity: 1; transform: none; } 45%, 100% { opacity: 0; transform: translateY(-0.3em); } }
.on.s3 .s3-hi { animation: s3-hi var(--T) both; }
@keyframes s3-hi { 0%, 39% { background: var(--sel); } 40%, 43% { background: var(--acs); } }
.on.s3 .s3-toast { animation: s3-toast var(--T) var(--ease-out) both; }
.s3-toast, .s5-toast { opacity: 0; }
@keyframes s3-toast { 0%, 74% { opacity: 0; transform: translateY(1em); } 78%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.on.s3 .s3-send { animation: s3-send var(--T) both; }
@keyframes s3-send { 0%, 71% { transform: none; } 72% { transform: scale(0.8); filter: brightness(1.4); } 74%, 100% { transform: none; } }
.on.s3 .sc-cam { animation: s3-cam var(--T) var(--ease-io) both; }
@keyframes s3-cam { 0%, 16% { transform: none; } 24%, 42% { transform: translate(-20%, -38%) scale(1.5); } 50%, 66% { transform: translate(-14%, -18%) scale(1.35); } 76%, 100% { transform: none; } }
.s3 { --path: s3-cur; }
@keyframes s3-cur { 0%, 28% { left: 70%; top: 85%; opacity: 0; } 32% { opacity: 1; } 39% { left: 45%; top: 45%; transform: none; } 41% { transform: scale(0.85); } 43% { transform: none; left: 45%; top: 45%; }
  60% { left: 86%; top: 37%; } 70%, 71% { left: 89.5%; top: 37.5%; transform: none; } 72% { transform: scale(0.85); } 74%, 86% { left: 89.5%; top: 37.5%; transform: none; opacity: 1; } 92%, 100% { opacity: 0; left: 89.5%; top: 37.5%; } }

/* 4. History */
.on.s4 .s4-drop { animation: s4-drop var(--T) var(--ease-io) both; }
@keyframes s4-drop { 0%, 25% { max-height: 4em; opacity: 1; } 31%, 100% { max-height: 0; opacity: 0; padding-block: 0; border-width: 0; } }
.s4-drop { max-height: 0; opacity: 0; padding-block: 0; border-width: 0; overflow: hidden; }
.on.s4 .s4-found { animation: s4-found var(--T) var(--ease-out) both; }
@keyframes s4-found { 0%, 38% { opacity: 0; transform: translateY(1em); } 42%, 100% { opacity: 1; transform: none; } }
.on.s4 .s4-busy { animation: s4-busy var(--T) steps(1) both; } .on.s4 .s4-got { animation: s4-got var(--T) steps(1) both; }
@keyframes s4-busy { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes s4-got { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
.on.s4 .s4-ai { animation: s4-ai var(--T) both; }
@keyframes s4-ai { 0%, 35% { transform: none; } 36% { transform: scale(0.9); background: var(--acs); } 38%, 100% { transform: none; background: var(--acs); } }
.on.s4 .sc-cam { animation: s4-cam var(--T) var(--ease-io) both; }
@keyframes s4-cam { 0%, 48% { transform: none; } 58%, 86% { transform: translate(-22%, -38%) scale(1.45); } 96%, 100% { transform: none; } }
.s4 { --path: s4-cur; }
@keyframes s4-cur { 0%, 20% { left: 60%; top: 70%; opacity: 0; } 24% { opacity: 1; } 34% { left: 93%; top: 17.5%; transform: none; } 36% { transform: scale(0.85); } 38%, 46% { left: 93%; top: 17.5%; transform: none; opacity: 1; } 52%, 100% { opacity: 0; left: 93%; top: 17.5%; } }

/* 5. Inbox */
.on.s5 .s5-r1 { animation: s5-r1 var(--T) both; }
@keyframes s5-r1 { 0%, 17% { background: transparent; } 19%, 100% { background: var(--sel); } }
.on.s5 .s5-pane { animation: s5-pane var(--T) var(--ease-out) both; }
@keyframes s5-pane { 0%, 18% { opacity: 0; transform: translateX(6%); } 24%, 100% { opacity: 1; transform: none; } }
.on.s5 .s5-tag { animation: s5-tag var(--T) var(--ease-out) both; }
@keyframes s5-tag { 0%, 73% { opacity: 0; transform: scale(0.6); } 77%, 100% { opacity: 1; transform: none; } }
.on.s5 .s5-go { animation: sc-press var(--T) both; }
.on.s5 .s5-toast { animation: s3-toast var(--T) var(--ease-out) both; }
.on.s5 .sc-cam { animation: s5-cam var(--T) var(--ease-io) both; }
@keyframes s5-cam { 0%, 26% { transform: none; } 34%, 60% { transform: translate(-60%, -60%) scale(1.6); } 64%, 74% { transform: translate(-60%, -20%) scale(1.6); } 86%, 100% { transform: none; } }
.s5 { --path: s5-cur; }
@keyframes s5-cur { 0%, 4% { left: 40%; top: 80%; opacity: 0; } 8% { opacity: 1; } 16% { left: 30%; top: 23%; transform: none; } 18% { transform: scale(0.85); } 20% { transform: none; left: 30%; top: 23%; }
  60% { left: 80%; top: 40%; } 67%, 69% { left: 76%; top: 36.5%; transform: none; } 70% { transform: scale(0.85); } 72%, 86% { left: 76%; top: 36.5%; transform: none; opacity: 1; } 92%, 100% { opacity: 0; left: 76%; top: 36.5%; } }

/* 6. Meetings */
.on.s6 .s6-pane { animation: s5-pane var(--T) var(--ease-out) both; }
.on.s6 .s6-ev { animation: s6-ev var(--T) both; }
@keyframes s6-ev { 0%, 17% { outline-color: transparent; } 19%, 100% { outline-color: var(--ac); } }
.on.s6 .s6-a { animation: s6-a var(--T) steps(1) both; } .on.s6 .s6-b { animation: s6-b var(--T) steps(1) both; }
@keyframes s6-a { 0% { opacity: 0; } 34% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes s6-b { 0% { opacity: 0; } 54%, 100% { opacity: 1; } }
.on.s6 .s6-badge { animation: s6-badge var(--T) var(--ease-out) both; }
@keyframes s6-badge { 0%, 33% { opacity: 0; transform: scale(0); } 36%, 53% { opacity: 1; transform: none; background: var(--work); } 54%, 100% { opacity: 1; transform: none; background: var(--ready); } }
.on.s6 .s6-go { animation: s6-go var(--T) both; }
@keyframes s6-go { 0%, 31% { transform: none; } 32% { transform: scale(0.9); filter: brightness(1.4); } 34%, 100% { transform: none; } }
.on.s6 .sc-cam { animation: s6-cam var(--T) var(--ease-io) both; }
@keyframes s6-cam { 0%, 22% { transform: none; } 32%, 50% { transform: translate(-60%, -18%) scale(1.6); } 58%, 86% { transform: translate(-60%, -56%) scale(1.6); } 96%, 100% { transform: none; } }
.s6 { --path: s6-cur; }
@keyframes s6-cur { 0%, 4% { left: 30%; top: 85%; opacity: 0; } 8% { opacity: 1; } 15% { left: 43%; top: 58%; transform: none; } 17% { transform: scale(0.85); } 19% { transform: none; left: 43%; top: 58%; }
  25% { left: 72%; top: 40%; } 30%, 31% { left: 73.5%; top: 37.8%; transform: none; } 32% { transform: scale(0.85); } 34%, 50% { left: 73.5%; top: 37.8%; transform: none; opacity: 1; } 56%, 100% { opacity: 0; left: 73.5%; top: 37.8%; } }

@media (prefers-reduced-motion: reduce) { .sc *, .sc .sc-cam { animation: none !important; } }
@media (min-width: 1121px) { .n-tour { height: calc(6 * 85svh + 40svh); } }
.n-tour[data-step="0"] .n-step[data-i="0"], .n-tour[data-step="0"] .n-frame[data-i="0"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="0"] .n-dots [data-i="0"] { color: var(--ink); border-color: var(--accent); }
.n-tour[data-step="1"] .n-step[data-i="1"], .n-tour[data-step="1"] .n-frame[data-i="1"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="1"] .n-dots [data-i="1"] { color: var(--ink); border-color: var(--accent); }
.n-tour[data-step="2"] .n-step[data-i="2"], .n-tour[data-step="2"] .n-frame[data-i="2"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="2"] .n-dots [data-i="2"] { color: var(--ink); border-color: var(--accent); }
.n-tour[data-step="3"] .n-step[data-i="3"], .n-tour[data-step="3"] .n-frame[data-i="3"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="3"] .n-dots [data-i="3"] { color: var(--ink); border-color: var(--accent); }
.n-tour[data-step="4"] .n-step[data-i="4"], .n-tour[data-step="4"] .n-frame[data-i="4"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="4"] .n-dots [data-i="4"] { color: var(--ink); border-color: var(--accent); }
.n-tour[data-step="5"] .n-step[data-i="5"], .n-tour[data-step="5"] .n-frame[data-i="5"] { opacity: 1; transform: none; filter: none; }
.n-tour[data-step="5"] .n-dots [data-i="5"] { color: var(--ink); border-color: var(--accent); }