/* scene.css */
:root {
  /* Neutrals: pure gray, lightness only */
  --bg: oklch(0.991 0 0); --paper: oklch(1 0 0); --fill: oklch(0.973 0 0); --fill-2: oklch(0.955 0 0);
  --line: oklch(0.931 0 0); --track: oklch(0.94 0 0);
  --ink: oklch(0.243 0 0); --ink-body: oklch(0.378 0 0); --ink-2: oklch(0.48 0 0); --ink-3: oklch(0.555 0 0);
  --trim: oklch(0.982 0 0); --trim-line: var(--line);

  /* Primary actions inside artifacts are ink, not brand */
  --primary: var(--ink); --primary-hover: oklch(0.32 0 0); --primary-soft: var(--fill-2); --primary-text: var(--ink);

  /* The one accent: artifact.cafe speaking (CTA, now, cue, pins) */
  --accent: oklch(0.64 0.16 50); --accent-2: oklch(0.585 0.16 47); --accent-text: oklch(0.5 0.13 48);
  --accent-soft: oklch(0.968 0.018 65); --accent-line: oklch(0.9 0.04 65);
  --coral: var(--accent); --coral-soft: var(--accent-soft);

  /* Status */
  --green: oklch(0.52 0.11 155); --green-soft: oklch(0.966 0.024 155); --green-line: oklch(0.88 0.06 155); --green-bright: oklch(0.65 0.14 155);
  --red: oklch(0.55 0.18 28);
  --blue: oklch(0.5 0.04 245); --blue-soft: oklch(0.945 0.012 245);

  /* Example tiles: four hues, same lightness per step.
     soft = fills behind text, tint = image-like blocks, solid = marks, ink = letters on soft */
  --c-orange-soft: oklch(0.92 0.039 50); --c-orange-tint: oklch(0.85 0.077 50); --c-orange: oklch(0.62 0.14 50); --c-orange-ink: oklch(0.45 0.1 50);
  --c-blue-soft: oklch(0.92 0.033 255); --c-blue-tint: oklch(0.85 0.064 255); --c-blue: oklch(0.62 0.175 255); --c-blue-ink: oklch(0.45 0.125 255);
  --c-violet-soft: oklch(0.92 0.036 295); --c-violet-tint: oklch(0.85 0.07 295); --c-violet: oklch(0.62 0.19 295); --c-violet-ink: oklch(0.45 0.17 295);
  --c-green-soft: oklch(0.92 0.045 155); --c-green-tint: oklch(0.85 0.085 155); --c-green: oklch(0.62 0.145 155); --c-green-ink: oklch(0.45 0.1 155);

  /* Claude Code terminal */
  --term-bg: oklch(0.2 0 0); --term-fg: oklch(0.92 0 0); --term-dim: oklch(0.62 0 0); --term-hi: oklch(0.8 0.1 60);

  /* Depth: a ring plus two soft layers, never a solid border */
  --shadow: 0 0 0 1px oklch(0 0 0 / .06), 0 1px 2px -1px oklch(0 0 0 / .06), 0 2px 4px oklch(0 0 0 / .04);
  --shadow-hover: 0 0 0 1px oklch(0 0 0 / .08), 0 1px 2px -1px oklch(0 0 0 / .08), 0 2px 4px oklch(0 0 0 / .06);
  --shadow-pop: 0 0 0 1px oklch(0 0 0 / .06), 0 4px 8px -2px oklch(0 0 0 / .06), 0 20px 40px -16px oklch(0 0 0 / .16);

  --sans: "InterVariable", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --out: cubic-bezier(.32, .72, 0, 1);   /* enters */
  --move: cubic-bezier(.65, 0, .35, 1);  /* things already on screen */
  /* The walkthrough frame: one inset inside the sheet, 12 inside a window, one dock height (see FRAME.md) */
  --inset: 16px; --inset-in: 12px; --dock-h: 60px;
  --press: .97;                          /* scale on :active, 150ms ease-out */
  --term-ok: oklch(0.705 0.157 148.1); --term-claude: oklch(0.672 0.131 38.8);
  /* A check drawn as a mask, for chips that cannot hold an svg */
  --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* names the mini previews use */
  --k-ink: var(--ink); --k-ink-2: var(--ink-2); --k-ink-3: var(--ink-3); --k-line: var(--line); --k-sans: var(--sans); --k-mono: var(--mono);
}
/* Dividers are one device pixel on retina screens */
:root { --hairline: 1px; }
@media (min-resolution: 2dppx) { :root { --hairline: .5px; } }
/* Avatar photos get a faint edge so light ones don't melt into paper */
img[src$=".webp"] { outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { -webkit-user-select: none; user-select: none; }
[id] { scroll-margin-top: 64px; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "cv01", "ss03"; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: oklch(0.205 0 0 / .1); }
.mono { font-family: var(--mono); }

/* Top bar */
.sc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; background: oklch(0.991 0 0 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; }
.sc-brand { position: relative; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.sc-brand::before { content: ""; position: absolute; inset: -12px -8px; }
.sc-title { color: var(--ink-2); }
.sc-x { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) { .sc-x:hover { background: oklch(0.205 0 0 / .06); } }
@media (max-width: 560px) { .sc-title { display: none; } }

/* ---------- The desk: three app windows ---------- */
.desk { position: relative; max-width: 1240px; height: max(560px, min(720px, calc(100svh - 190px))); margin: 8px auto 0; }
.w { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .08), 0 24px 48px -24px oklch(0.205 0 0 / .35); }
.w-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: var(--hairline) solid var(--line); background: var(--trim); color: var(--ink-2); font: 12px/1 var(--mono); }
.w-name { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 500 13px/1 var(--sans); }
.w-name em { font: 12px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.91 0 0); }
[data-claude] { display: inline-flex; }
[data-claude] svg { width: 14px; height: 14px; }

.w-term { left: 20px; top: 0; width: calc(46% - 20px); height: 100%; z-index: 1; background: #161618; }
.w-term .w-bar { background: #1E1E21; border-color: rgb(255 255 255 / .06); }
.w-term .dots i { background: rgb(255 255 255 / .14); }
.w-term .w-name { color: #E8E8EA; }
.w-slack { right: 20px; top: 0; width: calc(54% - 32px); height: 100%; z-index: 2; }
.w-browser { left: calc(36% + 4px); right: 20px; top: 0; height: 100%; z-index: 3; opacity: 0; transform: scale(.96); visibility: hidden; transition: opacity 250ms var(--out), transform 350ms var(--out), visibility 0s 350ms; }
.desk[data-phase="b"] .w-browser { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.desk[data-phase="b"] .w-term { width: 36%; }
.desk[data-phase="b"] .w-slack { opacity: 0; visibility: hidden; }

/* One window at a time on small screens */
.tabs { display: none; }
@media (max-width: 900px) {
  .tabs { display: flex; gap: 4px; justify-content: center; margin: 4px 16px 8px; padding: 3px; border-radius: 999px; background: oklch(0.94 0 0); }
  .tabs button { flex: 1; height: 30px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px oklch(0.205 0 0 / .12); }
  .tabs button:disabled { opacity: .4; cursor: default; }
  .desk { height: calc(100svh - 230px); min-height: 480px; margin: 0 16px; }
  .w, .desk[data-phase="b"] .w-term { left: 0; right: 0; top: 0; width: auto; height: 100%; opacity: 0; visibility: hidden; transform: none; transition: opacity 200ms var(--out), visibility 0s 200ms; }
  .w[data-on] { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 4; }
  .desk[data-phase="b"] .w-browser:not([data-on]) { opacity: 0; visibility: hidden; }
}

/* Claude Code */
.log { flex: 1; overflow: auto; padding: 14px 16px 8px; color: #C9C9CE; font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #3A3A3E transparent; }
.log-hi { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(217 119 87 / .5); white-space: normal; }
.log-hi svg { width: 20px; height: 20px; }
.log-hi b { display: block; color: #fff; font-weight: 500; }
.log-hi span { color: #8A8A90; }
.log .h { color: #fff; font-weight: 500; } .log .k { color: #6E6E74; } .log .b { color: #F2F2F4; font-weight: 500; }
.log .c { color: #F5A88E; } .log .ok { color: #8FD9B6; } .log .you { color: #fff; } .log .dim { color: #8A8A90; }
.log .md { display: block; margin: 6px 0; padding-left: 12px; border-left: 2px solid #2C2C30; color: #A8A8AE; }
.prompt { flex: none; display: flex; gap: 10px; align-items: center; margin: 0 12px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #34343A; color: #E8E8EA; font: 13px/1.5 var(--mono); }
.prompt > span:first-child { color: var(--term-hi); }
.caret { width: 7px; height: 15px; background: #E8E8EA; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Slack */
.sl { flex: 1; display: flex; min-height: 0; }
.sl-side { flex: none; display: flex; flex-direction: column; gap: 2px; width: 148px; padding: 12px 8px; background: #3F0E40; color: rgb(255 255 255 / .7); font-size: 14px; }
.sl-side b { padding: 0 8px 10px; color: #fff; }
.sl-side span { padding: 3px 8px; border-radius: 6px; }
.sl-side .on { background: #1164A3; color: #fff; }
.sl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sl-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-bottom: var(--hairline) solid var(--line); }
.sl-head span { font-size: 12px; color: var(--ink-3); }
.sl-feed { flex: 1; overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px; }
.sl-msg { display: flex; gap: 10px; font-size: 14px; animation: rise 300ms var(--out); }
.sl-msg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: cover; }
.sl-who { font-weight: 500; font-size: 14px; } .sl-who time { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.sl-msg p { margin: 1px 0 0; }
.sl-msg a { color: #1264A3; }
.unfurl { position: relative; display: flex; gap: 12px; margin-top: 6px; padding: 8px 10px 8px 12px; border: 0; border-left: 4px solid oklch(0.897 0 0); border-radius: 4px; background: none; text-align: left; cursor: default; transition: background-color 150ms ease, scale 150ms ease-out; }
.unfurl:enabled { cursor: pointer; }
.unfurl:enabled:active { scale: .98; }
@media (hover: hover) { .unfurl:enabled:hover { background: oklch(0.97 0 0); } }
.unfurl small { display: block; font-size: 12px; color: var(--ink-3); }
.unfurl b { display: block; color: #1264A3; font-weight: 500; }
.unfurl span { display: block; font-size: 13px; color: var(--ink-2); }
.uf-thumb { flex: none; width: 92px; height: 60px; padding: 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.uf-thumb i { display: block; height: 4px; margin-bottom: 4px; border-radius: 2px; background: oklch(0.91 0 0); }
.uf-thumb i:first-child { width: 60%; height: 6px; background: var(--ink); }
.uf-thumb i:nth-child(3) { width: 80%; } .uf-thumb i:nth-child(4) { display: flex; height: 14px; background: linear-gradient(90deg, oklch(0.947 0 0) 30%, #fff 0 34%, oklch(0.952 0 0) 0 64%, #fff 0 68%, var(--green-soft) 0); }
.sl-typing { font-size: 12px; color: var(--ink-3); padding: 0 16px 4px; min-height: 18px; }
.sl-compose { margin: 0 16px 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px oklch(0.873 0 0); color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-compose[data-filled] { color: #1264A3; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1100px) { .sl-side { display: none; } }

/* Browser */
.w-browser .w-bar { gap: 8px; }
.url { padding: 5px 10px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vtabs { display: inline-flex; padding: 2px; border-radius: 999px; background: oklch(0.952 0 0); }
.vtabs button, .seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: 12px/1 var(--mono); color: var(--ink-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.vtabs button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px oklch(0.205 0 0 / .12); }
.guest { margin-left: auto; white-space: nowrap; color: var(--ink-3); }
@media (max-width: 1100px) { .guest { display: none; } }
.banner { display: flex; align-items: center; gap: 8px; height: 0; overflow: hidden; padding: 0 16px; background: var(--coral-soft); color: #8E2D16; font-size: 13px; transition: height 250ms var(--out); }
.banner[data-in] { height: 36px; }
.banner b { font-weight: 500; }
.bw { flex: 1; overflow: auto; position: relative; }

/* The spec */
.spec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; padding: 28px 28px 40px; }
.spec-main { min-width: 0; }
.gutter { position: relative; }
.crumb { font: 12px/16px var(--mono); color: var(--ink-3); }
.spec h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chip { padding: 1px 9px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-size: 12px; line-height: 20px; transition: background-color 300ms ease, color 300ms ease; }
.spec[data-ver="2"] .chip { background: var(--green-soft); color: var(--green); }
.lede { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: oklch(0.973 0 0); }
.kpis b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.kpis > div > span { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.sec { margin-top: 26px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-h h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sec-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: oklch(0.952 0 0); }
.seg button { font-family: var(--sans); }

/* Sequence diagram */
.seq { padding: 12px 12px 6px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(90deg, transparent calc(16.66% - .5px), oklch(0.945 0 0) 0 calc(16.66% + .5px), transparent 0 calc(50% - .5px), oklch(0.945 0 0) 0 calc(50% + .5px), transparent 0 calc(83.33% - .5px), oklch(0.945 0 0) 0 calc(83.33% + .5px), transparent 0) 0 40px / 100% calc(100% - 40px) no-repeat; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 6px; }
.lanes span { justify-self: center; padding: 3px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px oklch(0.91 0 0); font-size: 12px; font-weight: 500; }
.steps-seq { list-style: none; margin: 0; padding: 0; }
.steps-seq li { position: relative; height: 34px; transition: opacity 200ms ease; }
.steps-seq li .ln { position: absolute; top: 22px; height: 1.5px; background: var(--ink); left: var(--l); width: var(--w); }
.steps-seq li .ln::after { content: ""; position: absolute; top: -3.5px; border: 4px solid transparent; }
.steps-seq li[data-dir="r"] .ln::after { right: -2px; border-left-color: var(--ink); border-right: 0; }
.steps-seq li[data-dir="l"] .ln::after { left: -2px; border-right-color: var(--ink); border-left: 0; }
.steps-seq li .lb { position: absolute; top: 3px; left: var(--l); width: var(--w); text-align: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.steps-seq li.done .ln { background: var(--green); } .steps-seq li.done[data-dir="r"] .ln::after { border-left-color: var(--green); } .steps-seq li.done[data-dir="l"] .ln::after { border-right-color: var(--green); }
.steps-seq li.done .lb { color: var(--green); font-weight: 500; }
.steps-seq[data-playing] li { opacity: .25; }
.steps-seq[data-playing] li[data-lit] { opacity: 1; }
.steps-seq li[data-lit] .lb { color: var(--ink); font-weight: 500; }
.steps-seq li.todo { height: 44px; }
.steps-seq li.todo .lb { top: 6px; left: 10%; width: 80%; padding: 4px 8px; white-space: normal; line-height: 1.35; border-radius: 8px; outline: 1.5px dashed oklch(0.83 0 0); color: var(--ink-3); }
.play { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; position: relative; transition: scale 150ms ease-out; }
.play:active { scale: .96; }

/* Device share */
.share { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.share i { width: var(--w); background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--c); }

/* Rollout gantt */
@property --s { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --e { syntax: "<number>"; inherits: true; initial-value: 2; }
.gantt { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px 10px; }
.g-head, .g-row { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); align-items: center; }
.g-head span { font: 11px/24px var(--mono); color: var(--ink-3); text-align: center; }
.g-row { position: relative; height: 32px; font-size: 13px; }
.g-row > span { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.g-bar { position: absolute; top: 8px; height: 16px; border-radius: 5px; background: var(--ink); left: calc(150px + (100% - 150px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 150px) * (var(--e) - var(--s)) / 5 - 4px); transition: --s 600ms var(--move), --e 600ms var(--move); }
.g-sec { background: #7C5CE0; } .g-soft { background: #C9BFF2; }
.g-launch { background: var(--ink); }
.spec[data-ver="1"] .g-launch { --s: 2; --e: 3; }
.spec[data-ver="2"] .g-launch { --s: 5; --e: 6; }
.g-chg { animation: rise 400ms var(--out); }
@media (max-width: 640px) { .g-head, .g-row { grid-template-columns: 112px repeat(5, minmax(0, 1fr)); } .g-bar { left: calc(112px + (100% - 112px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 112px) * (var(--e) - var(--s)) / 5 - 4px); } }

.risks { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.risks > div { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.risks > div + div { border-top: var(--hairline) solid var(--line); }
.risks b { font-weight: 500; }
.risks > div > span:last-child { color: var(--ink-2); }
.sev { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.sev-hi { background: oklch(0.947 0 0); color: #B42318; } .sev-md { background: #FFF4D6; color: #8A5A00; } .sev-lo { background: oklch(0.952 0 0); color: var(--ink-2); }
@media (max-width: 560px) { .risks > div { grid-template-columns: 60px minmax(0, 1fr); } .risks > div > span:last-child { grid-column: 2; } }

.spec[data-ver="1"] .v2, .spec[data-ver="2"] .v1 { display: none; }
.new2 { display: none; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/17px var(--mono); vertical-align: 2px; }
.spec[data-ver="2"] .new2 { display: inline-block; }

@media (max-width: 1100px) {
  .spec { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 32px; }
  .gutter { display: contents; }
  .th { position: relative !important; margin-top: 10px; top: auto !important; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* Comment threads and pins */
.th { position: absolute; left: 0; right: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .07), 0 8px 24px -10px oklch(0.205 0 0 / .25); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(4px) scale(.97); transform-origin: top left; transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move); }
.th[data-in] { opacity: 1; transform: none; }
.th[data-done] .msg { opacity: .7; }
.msg { display: flex; gap: 8px; }
.msg + .msg { margin-top: 9px; padding-top: 9px; border-top: var(--hairline) solid oklch(0.955 0 0); }
.msg .av { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; }
.who { font-size: 12px; font-weight: 500; }
.who em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.msg p { margin: 1px 0 0; min-height: 19px; }
.dots3 { display: inline-flex; gap: 3px; padding-top: 7px; } .dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: bob 900ms ease-in-out infinite; } .dots3 i:nth-child(2) { animation-delay: 150ms; } .dots3 i:nth-child(3) { animation-delay: 300ms; }
@keyframes bob { 50% { opacity: .3; transform: translateY(-2px); } }
.reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: var(--hairline) solid oklch(0.955 0 0); font-size: 12px; color: var(--ink-3); }
.reply span { width: 100%; }
.reply button { position: relative; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out; }
.reply button:active { scale: .96; }
.res { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/16px var(--mono); }
.pin { position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; color: #fff; font: 500 10px/1 var(--sans); box-shadow: 0 0 0 2px #fff, 0 2px 6px oklch(0.205 0 0 / .25); transform: scale(.6); opacity: 0; transition: transform 250ms var(--out), opacity 150ms ease; }
.pin[data-in] { transform: none; opacity: 1; }
.marked { outline: 2px solid var(--c); outline-offset: 2px; border-radius: 6px; }

/* Human cursors: only when someone pins a comment */
.cur { position: absolute; z-index: 40; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; color: var(--c); pointer-events: none; opacity: 0; transition: transform 600ms var(--move), opacity 200ms ease; will-change: transform; }
.cur[data-in] { opacity: 1; }
.cur svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .2)); transition: scale 120ms ease-out; }
.cur[data-press] svg { scale: .82; }
.cur span { margin-top: 14px; padding: 2px 7px; border-radius: 6px; background: var(--c); color: #fff; font: 500 12px/18px var(--sans); white-space: nowrap; }

/* Bottom director bar: one caption, one next action */
.dir { position: fixed; z-index: 30; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 16px; width: min(calc(100% - 32px), 720px); min-height: 64px; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px oklch(0.205 0 0 / .45); }
.steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: none; }
.steps li { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .2); transition: background-color 200ms ease, width 250ms var(--out); }
.steps li[data-on] { background: #fff; }
.steps li[data-now] { width: 16px; border-radius: 3px; }
.cap { flex: 1; margin: 0; font-size: 15px; line-height: 1.4; transition: opacity 150ms ease; }
.cap[data-out] { opacity: 0; }
.go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
.go:active { scale: .96; }
@media (hover: hover) { .go:hover { background: #F04E2C; } }
/* The cue ring: it arrives (scales in), holds, then exhales once and arrives again.
   stage.js sets --cx/--cy (grow) and --ax/--ay (arrive) from the target's size so the ring
   always travels about 6px per side, whether the target is a button or a full-width slider. */
:where([data-cue], [data-hit]) { position: relative; }
[data-cue], [data-hit] { scroll-margin: 24px; }
[data-cue]::after, [data-hit]::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px var(--coral); opacity: 0; pointer-events: none; }
[data-cue]::after { animation: cue 2.4s var(--out) infinite; }
.unfurl[data-cue]::after { border-radius: 8px; }
@keyframes cue {
  0% { opacity: 0; transform: scale(var(--ax, .96), var(--ay, .96)); }
  12%, 58% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(var(--cx, 1.06), var(--cy, 1.06)); }
}
/* The beat when the target is used: the ring turns green and breathes out once */
[data-hit]::after { box-shadow: 0 0 0 2px var(--green-bright); animation: cue-hit 560ms var(--out) forwards; }
@keyframes cue-hit { from { opacity: 1; transform: none; } 35% { opacity: 1; } to { opacity: 0; transform: scale(var(--cx, 1.06), var(--cy, 1.06)); } }

/* Press feedback for any custom control: add .press (scale .97, 150ms ease-out) */
.press { transition: scale 150ms ease-out; }
.press:active { scale: var(--press); }
/* A check that draws itself: <svg class="chk-draw"><path pathLength="1" d="M3 7.4l2.6 2.6L11 4.4"/></svg> (page.js CHECK_DRAW) */
.chk-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chk-draw 300ms var(--out) 60ms forwards; }
@keyframes chk-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
/* A number that is about to roll */
.num { font-variant-numeric: tabular-nums; }
.ghost { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, scale 150ms ease-out; }
.ghost:active { scale: .96; }
.end { flex: 1; }
.end b { font-size: 16px; font-weight: 500; }
.end ul { margin: 6px 0 12px; padding-left: 18px; color: rgb(255 255 255 / .75); font-size: 14px; }
.end-act { display: flex; gap: 8px; }
.dir:has(.end:not([hidden])) .cap, .dir:has(.end:not([hidden])) .steps { display: none; }
@media (max-width: 560px) { .dir { flex-wrap: wrap; bottom: 12px; padding: 14px 14px 14px 18px; } .cap { flex-basis: calc(100% - 60px); } .go { width: 100%; justify-content: center; } }

.toast { position: fixed; z-index: 50; left: 50%; top: 64px; translate: -50% 0; padding: 10px 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .07), 0 12px 32px -10px oklch(0.205 0 0 / .3); font-size: 14px; opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--out), transform 250ms var(--out); pointer-events: none; }
.toast[data-in] { opacity: 1; transform: none; }
.toast b { font-weight: 500; }

/* ---------- Hub ---------- */
.hub-main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 96px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hub-eyebrow { font: 12px/16px var(--mono); color: var(--ink-3); }
.hub h1 { margin: 10px 0 0; font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.hub-lede { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hub-lede b { color: var(--ink); font-weight: 500; }
.hub-lede + .hub-lede { margin-top: 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hub h1 { font-size: 36px; } }

/* Reply vs artifact */
.vs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.vs > div { display: flex; flex-direction: column; gap: 10px; }
.vs-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.vs-k b { color: var(--ink); font-weight: 500; }
.reply-card { padding: 14px; border-radius: 14px 14px 14px 4px; background: oklch(0.94 0 0); font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.reply-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.reply-card i { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: oklch(0.894 0 0); }
.art-card { flex: 1; padding: 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06), 0 16px 32px -18px oklch(0.205 0 0 / .35); }
.art-url { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font: 11px/1 var(--mono); color: var(--ink-3); }
.art-url span { padding: 4px 8px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink); }
.art-t { font-size: 15px; font-weight: 500; }
.art-t em { margin-left: 6px; font-style: normal; font-weight: 500; color: var(--green); }
.art-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.art-kpis div { padding: 8px; border-radius: 8px; background: oklch(0.973 0 0); font-size: 10px; color: var(--ink-2); }
.art-kpis b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -0.02em; }
.art-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 18px; }
.art-bars u { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #D6D6E8; transform-origin: bottom; animation: grow 5s var(--out) infinite; }
.art-bars u:last-of-type { background: var(--ink); }
.art-bars u:nth-child(2) { animation-delay: .08s } .art-bars u:nth-child(3) { animation-delay: .16s } .art-bars u:nth-child(4) { animation-delay: .24s } .art-bars u:nth-child(5) { animation-delay: .32s } .art-bars u:nth-child(6) { animation-delay: .4s }
@keyframes grow { 0% { transform: scaleY(0); } 18%, 100% { transform: none; } }
.art-pin { position: absolute; right: 6%; top: -10px; display: flex; align-items: center; gap: 6px; animation: pinin 5s var(--out) infinite; }
.art-pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 3px; background: #7C5CE0; box-shadow: 0 0 0 2px #fff; }
.art-pin span { padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; white-space: nowrap; }
@keyframes pinin { 0%, 35% { opacity: 0; transform: translateY(4px) scale(.95); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.art-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.art-foot span { padding: 2px 8px; border-radius: 999px; background: oklch(0.952 0 0); font: 10px/16px var(--mono); color: var(--ink-2); }

.blk { margin-top: 72px; }
.blk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.blk h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.blk-h p { margin: 0; color: var(--ink-2); }

/* What people make */
.made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.made-c { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); }
.made-c .rs-mini { margin-bottom: 6px; }
.made-c > b { padding: 0 4px; font-size: 14px; font-weight: 500; }
.made-c > span { padding: 0 4px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .made { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What artifact.cafe adds */
.adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.add { padding: 18px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); }
.add b { display: block; margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.add p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.add-v { position: relative; height: 92px; border-radius: 10px; background: oklch(0.973 0 0); overflow: hidden; }
.av-link { position: absolute; left: 14px; right: 14px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 11px/1 var(--mono); }
.av-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.av-open { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 4px; }
.av-open span { padding: 2px 8px; border-radius: 999px; background: var(--paper); font-size: 11px; color: var(--ink-2); animation: rise2 4s var(--out) infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes rise2 { 0%, 10% { opacity: 0; transform: translateY(4px); } 20%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-doc { position: absolute; inset: 14px 14px 0; border-radius: 8px 8px 0 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 10px; }
.av-doc i { display: block; height: 5px; margin-bottom: 6px; border-radius: 3px; background: oklch(0.94 0 0); }
.av-doc i:first-child { width: 50%; height: 7px; background: var(--ink); }
.av-doc .pin { opacity: 1; transform: none; animation: pinpop 4s var(--out) infinite; }
.av-doc .pin + .pin { animation-delay: .6s; }
@keyframes pinpop { 0%, 15% { opacity: 0; transform: scale(.7); } 25%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-ver { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.av-ver span { padding: 6px 12px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 12px/1 var(--mono); }
.av-ver span:last-child { animation: v2 4s var(--out) infinite; }
.av-ver em { font-style: normal; color: var(--ink-3); }
@keyframes v2 { 0%, 30% { background: var(--paper); color: var(--ink); } 40%, 100% { background: var(--ink); color: #fff; } }
@media (max-width: 860px) { .adds { grid-template-columns: minmax(0, 1fr); } }

/* Scenes */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); color: inherit; text-decoration: none; transition: box-shadow 150ms ease, translate 200ms var(--out); }
a.card:active { scale: .99; }
@media (hover: hover) { a.card:hover { translate: 0 -2px; box-shadow: 0 0 0 1px oklch(0.205 0 0 / .1), 0 12px 28px -14px oklch(0.205 0 0 / .3); } }
.card-av { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 12px; }
.card b { padding-right: 60px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.card p { margin: 0; padding-right: 60px; color: var(--ink-2); font-size: 14px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.route span { padding: 3px 9px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink-2); font-family: var(--mono); }
.card-meta { margin-top: 10px; display: flex; justify-content: space-between; font: 12px/16px var(--mono); color: var(--ink-3); }
.card[aria-disabled="true"] { opacity: .6; }
.card-go { color: var(--ink); }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Resting states that an animation used to reveal */
  [data-cue]::after, [data-hit]::after { opacity: 1; }
  .chk-draw path { stroke-dashoffset: 0; }
}

/* Moving between the hub and a demo: the card grows into the demo and back */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* desk.css */
/* The desk: two lines of context, then artifacts to open */
/* Pills. The accent gradient, lit from above, is the one brand moment; the rest is white */
.top-btns { margin-left: auto; display: flex; gap: 8px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: scale 200ms ease-out, box-shadow 200ms ease-out, filter 200ms ease-out; }
.btn:active { scale: .96; }
/* 32px pills, 44px to a thumb */
.btn::before { content: ""; position: absolute; inset: -6px 0; }
.btn-xl { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-1 { background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); box-shadow: inset 0 0 1px 1px oklch(1 0 0 / .06), 0 1.5px 2px oklch(0 0 0 / .1), 0 0 0 1px var(--accent-2); color: #fff; }
.btn-2 { background: var(--paper); box-shadow: var(--shadow); color: var(--ink); }
@media (hover: hover) { .btn-1:hover { filter: brightness(1.05); } .btn-2:hover { box-shadow: var(--shadow-hover); } }

/* Home: no frosted bar. Content dissolves into the top and bottom edges:
   blur layers stacked from 0.5px to 4px, each masked shorter than the last so the
   blur grows toward the edge with no seam, then an eased veil of page color. Up top the veil is solid behind the nav
   row, so even the dark terminal can't show through as a grey bar. */
/* Nav edges line up with the 1072 content column */
.hub:not(.page) .sc-top { padding-inline: max(24px, calc((100% - 1072px) / 2)); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.edge { position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none; }
.edge-t { top: 0; height: 112px; --edge-s: 40%; --edge-e1: 100%; --edge-e2: 85%; --edge-e3: 70%; --edge-e4: 55%; --edge-veil: linear-gradient(oklch(0.991 0 0 / 1) 40%, oklch(0.991 0 0 / 0.987) 44.9%, oklch(0.991 0 0 / 0.951) 49.3%, oklch(0.991 0 0 / 0.896) 53.5%, oklch(0.991 0 0 / 0.825) 57.4%, oklch(0.991 0 0 / 0.741) 61.2%, oklch(0.991 0 0 / 0.648) 64.7%, oklch(0.991 0 0 / 0.55) 68.3%, oklch(0.991 0 0 / 0.45) 71.7%, oklch(0.991 0 0 / 0.352) 75.3%, oklch(0.991 0 0 / 0.259) 78.8%, oklch(0.991 0 0 / 0.175) 82.6%, oklch(0.991 0 0 / 0.104) 86.5%, oklch(0.991 0 0 / 0.049) 90.7%, oklch(0.991 0 0 / 0.013) 95.1%, oklch(0.991 0 0 / 0) 100%); }
.edge-b { bottom: 0; height: 72px; transform: scaleY(-1); --edge-s: 0%; --edge-e1: 100%; --edge-e2: 75%; --edge-e3: 50%; --edge-e4: 30%; --edge-veil: linear-gradient(oklch(0.991 0 0 / 1) 0%, oklch(0.991 0 0 / 0.987) 8.1%, oklch(0.991 0 0 / 0.951) 15.5%, oklch(0.991 0 0 / 0.896) 22.5%, oklch(0.991 0 0 / 0.825) 29%, oklch(0.991 0 0 / 0.741) 35.3%, oklch(0.991 0 0 / 0.648) 41.2%, oklch(0.991 0 0 / 0.55) 47.1%, oklch(0.991 0 0 / 0.45) 52.9%, oklch(0.991 0 0 / 0.352) 58.8%, oklch(0.991 0 0 / 0.259) 64.7%, oklch(0.991 0 0 / 0.175) 71%, oklch(0.991 0 0 / 0.104) 77.5%, oklch(0.991 0 0 / 0.049) 84.5%, oklch(0.991 0 0 / 0.013) 91.9%, oklch(0.991 0 0 / 0) 100%); }
.edge i { position: absolute; inset: 0; }
.edge i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e1)); }
.edge i:nth-child(2) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e2)); }
.edge i:nth-child(3) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e3)); }
.edge i:nth-child(4) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e4)); }
.edge::after { content: ""; position: absolute; inset: 0; background: var(--edge-veil); }

/* One column, one left edge. Pictures use the full width; prose stops at 720 */
.dk { max-width: 1120px; margin: 0 auto; padding: 56px 24px 128px; }
.dk-hero h1 { margin: 0; font-weight: 500; text-wrap: balance; }
@media (max-width: 640px) { .dk { padding-top: 48px; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
/* A card: the frame of page color holds the white preview and the words under it */
.tile { display: flex; flex-direction: column; padding: 4px; border: 0; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); color: inherit; text-align: left; text-decoration: none; font: inherit; -webkit-tap-highlight-color: transparent; transition: box-shadow 200ms ease-out, scale 200ms ease-out; }
.tile .tile-f { padding: 0; background: none; box-shadow: none; }
.tile .tile-f::after { inset: 0; }
button.tile, a.tile { cursor: pointer; }
/* A frame of page color around a white page: radius 16 outside, 16 - 4 inside */
.tile-f { position: relative; padding: 4px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); transition: box-shadow 200ms ease-out, scale 200ms ease-out; }
.tile-f::after { content: ""; position: absolute; inset: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .09); pointer-events: none; }
.tile .rs-mini { --p: 14px; height: 184px; padding: var(--p); border-radius: 12px; background: var(--paper); box-shadow: none; }
@media (max-width: 960px) { .tile .rs-mini { --p: 12px; height: 148px; } }
@media (hover: hover) { .tile:hover { box-shadow: var(--shadow-pop); } .tile:hover .tile-go { background: var(--ink); box-shadow: none; color: #fff; } }
.tile:active { scale: .99; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-b { display: flex; flex: 1; flex-direction: column; padding: 14px 12px 10px; }
.tile-t { font-size: 16px; line-height: 24px; font-weight: 500; }
.tile-d { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
/* The foot: what it replaces, and the way in */
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.tile-was { min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); text-wrap: pretty; }
.tile-go { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out; }
/* The last card is the visitor's own: artifacts of every kind come out around a question mark */
.rs-mini.yr { display: grid; place-items: center; }
.yr > * { grid-area: 1 / 1; }
.yr u { display: block; }
.yr-q { z-index: 1; display: grid; place-items: center; width: 56px; height: 70px; border-radius: 8px; background: var(--paper); outline: 1.5px dashed oklch(0 0 0 / .22); outline-offset: -1.5px; font: 500 26px/1 var(--sans); color: var(--ink-3); transition: color 200ms ease-out, outline-color 200ms ease-out; }
.yr-a { display: flex; gap: 3px; box-sizing: border-box; width: 52px; height: 40px; padding: 7px; border-radius: 6px; background: var(--paper); box-shadow: var(--float); translate: var(--x) var(--y); rotate: var(--r); }
.yr-a u { flex: 1; border-radius: 2px; background: var(--c-blue-tint); }
.yr-chart { align-items: flex-end; } .yr-chart u:nth-child(1) { height: 45%; } .yr-chart u:nth-child(2) { height: 70%; } .yr-chart u:nth-child(3) { height: 100%; background: var(--c-blue); }
.yr-doc, .yr-poll, .yr-sliders { flex-direction: column; justify-content: center; gap: 5px; } :is(.yr-doc, .yr-poll, .yr-sliders) u { flex: none; height: 4px; }
.yr-doc u { background: oklch(0 0 0 / .14); } .yr-doc u:nth-child(1) { width: 55%; background: oklch(0 0 0 / .4); } .yr-doc u:nth-child(3) { width: 75%; }
.yr-poll u { height: 6px; } .yr-poll u:nth-child(1) { background: var(--c-orange-tint); } .yr-poll u:nth-child(2) { width: 60%; } .yr-poll u:nth-child(3) { width: 30%; background: var(--c-violet-tint); }
.yr-sliders u { background: linear-gradient(90deg, var(--c, var(--c-blue)) var(--w, 60%), oklch(0 0 0 / .1) 0); } .yr-sliders u:nth-child(2) { --c: var(--c-orange); --w: 40%; } .yr-sliders u:nth-child(3) { --c: var(--c-violet); --w: 25%; }
.yr-board u { background: oklch(0 0 0 / .07); } .yr-board u:nth-child(3) { background: var(--c-green-tint); }
.yr-designs u:nth-child(1) { background: var(--c-green-tint); } .yr-designs u:nth-child(2) { background: var(--c-orange-tint); }
@container (max-width: 240px) { .yr-a, .yr-q { zoom: .72; } }
@keyframes yr-out { from { translate: 0 0; rotate: 0deg; scale: .4; opacity: 0; } }
@keyframes yr-loop { 0%, 100% { translate: 0 0; rotate: 0deg; scale: .4; opacity: 0; } 10%, 88% { translate: var(--x) var(--y); rotate: var(--r); scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* with a pointer they come out again on hover or focus; on touch they keep coming on their own */
  @media (hover: hover) { .tile-yours:is(:hover, :focus-visible) .yr-a { animation: yr-out 500ms var(--out) both; animation-delay: calc(var(--i) * 70ms); } }
  @media (hover: none) { .yr-a { animation: yr-loop 6s var(--move) infinite; animation-delay: calc(var(--i) * 70ms); } }
}
@media (hover: hover) { .tile-yours:hover .yr-q { color: var(--ink); outline-color: oklch(0 0 0 / .45); } }
@media (max-width: 960px) { .tile-yours { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tile-foot { flex-direction: column; align-items: flex-start; gap: 8px; } }
.tile[aria-disabled="true"] .rs-mini { opacity: .75; }

/* The sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: oklch(0.273 0 0 / .28); opacity: 0; transition: opacity 250ms var(--out); }
.sheet-bg[data-in] { opacity: 1; }
.sheet { position: fixed; z-index: 61; inset: var(--inset); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .08), 0 30px 80px -20px oklch(0.273 0 0 / .45); opacity: 0; transform: scale(.96); transition: opacity 200ms var(--out), transform 260ms var(--out); }
.sheet[data-in] { opacity: 1; transform: none; }
.sheet:not([data-in]) { transition-duration: 150ms, 180ms; }
/* One inset (16) for the sheet's content, one (12) inside controls; the top bar and the dock are both 60 */
.sh-top { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 var(--inset-in) 0 var(--inset); border-bottom: var(--hairline) solid var(--line); background: var(--paper); }
.sh-av { width: 32px; height: 32px; border-radius: 8px; }
.sh-t { flex: 1; min-width: 0; }
.sh-t b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.sh-t span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-x { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .sh-x:hover { background: oklch(0.95 0 0); color: var(--ink); } }
.sh-x:active { scale: var(--press); }
.sh-x::before { content: ""; position: absolute; inset: -4px; }
/* The way out, named for people with a keyboard */
.sh-esc { display: none; align-items: center; height: 22px; margin-right: -4px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font: 500 11px/1 var(--mono); }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .sh-esc { display: inline-flex; } }

/* Body: the story on the left, the artifact on the right */
.sh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "before art" "now art"; overflow: hidden; }
.sh-body::before { content: ""; grid-column: 1; grid-row: 1 / -1; border-right: var(--hairline) solid var(--line); pointer-events: none; }
.st { position: relative; min-width: 0; padding: var(--inset) var(--inset) 0; }
.st-before { grid-area: before; }
.st-now { grid-area: now; overflow: auto; padding-bottom: var(--inset); }
.st-k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.st-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.st-now .st-k::before { background: var(--accent); }
.st-note { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }

.mail { max-height: 118px; overflow: hidden; padding: 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-2); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mail-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.mail-h b { color: var(--ink); font-weight: 500; }
.mail-h b + span { overflow: hidden; text-overflow: ellipsis; }
.mail p { margin: 0; }

/* Claude Code, one terminal for the whole story. It follows the real one (hero.css .lp-term):
   traffic lights, a hairline under the bar, a 2ch gutter for dots, a 5ch indent for results,
   a shimmering status line, and the input box waiting underneath. */
.term { overflow: hidden; border-radius: 12px; background: oklch(0.205 0 0); color: var(--term-fg); font: 12px/1.6 var(--mono); }
.term-h { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; box-shadow: 0 var(--hairline) 0 oklch(1 0 0 / .07); font: 500 11px/1 var(--sans); color: oklch(0.72 0 0); }
.term-h::before { content: ""; flex: none; width: 10px; height: 10px; margin-right: 32px; border-radius: 50%; background: oklch(0.694 0.196 26.4); box-shadow: 16px 0 0 oklch(0.835 0.161 80.9), 32px 0 0 oklch(0.728 0.217 144.7); }
.term-h em { margin-left: auto; font: 11px/1 var(--mono); font-style: normal; color: oklch(0.55 0 0); transition: color 200ms ease; }
.term[data-state="work"] .term-h em { color: var(--term-claude); }
.term[data-state="done"] .term-h em { color: var(--term-ok); }
.term-b { padding: 10px 12px 12px; }
/* The input box waits under the session */
.term::after { content: ">"; display: block; margin: 0 12px 12px; padding: 7px 9px 7px 11px; border: 1px solid oklch(0.42 0 0); border-radius: 6px; color: oklch(0.91 0 0); background: linear-gradient(oklch(0.91 0 0), oklch(0.91 0 0)) calc(11px + 2ch) 50% / 1ch 13px no-repeat; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { background-size: 0 13px; } }
/* Beside the page the rail never scrolls: like the real app, the bar and the input box stay put
   and only the session scrolls, following the newest line. */
@media (min-width: 1101px) {
  .st-now { display: flex; flex-direction: column; overflow: hidden; }
  .st-now .term { display: flex; flex-direction: column; min-height: 0; }
  .st-now :is(.term-h, .st-k) { flex: none; }
  .st-now .term::after { flex: none; }
  .st-now .term-b { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
}
.tl { position: relative; padding-left: 2ch; animation: rise 250ms var(--out); text-wrap: pretty; }
.tl + .tl { margin-top: 6px; }
.tl::before { content: ""; position: absolute; left: 0; top: calc((1lh - 6px) / 2); width: 6px; height: 6px; border-radius: 50%; background: currentColor; color: var(--term-ok); }
.tl u { text-decoration: none; color: var(--term-hi); }
.tl-you { margin-bottom: 8px; padding: 6px 8px 6px calc(2ch + 8px); border-radius: 6px; background: rgb(255 255 255 / .06); }
.tl-you::before { content: ">"; left: 8px; top: 6px; width: auto; height: auto; border-radius: 0; background: none; color: oklch(0.72 0 0); font-size: 12px; line-height: 19px; }
.tl-wait::before { content: none; }
.tl-ok { color: var(--term-ok); }
.tl-dim { color: var(--term-dim); }
.tl-dim::before { color: var(--term-dim); }
.tr { position: relative; padding-left: 3ch; color: oklch(0.72 0 0); }
.tr::before { content: ""; position: absolute; left: 1px; top: 4px; width: 5px; height: 6px; border-left: 1px solid oklch(0.5 0 0); border-bottom: 1px solid oklch(0.5 0 0); }
/* Waiting: Claude orange, a shimmer sweeping through the words, and the real hint */
.spin { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .18); border-top-color: var(--term-hi); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.term .tl-wait { background: linear-gradient(90deg, var(--term-claude) 35%, oklch(0.86 0.07 50) 50%, var(--term-claude) 65%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 250ms var(--out), shine 1.8s linear infinite; }
@keyframes shine { to { background-position: 0 0; } }
.term .tl-wait::after { content: "(esc to interrupt)"; display: inline-block; margin-left: 1ch; color: oklch(0.5 0 0); }
.term .spin { top: 0; width: auto; height: auto; border: 0; color: var(--term-claude); animation: none; }
.term .spin::before { content: "✻\FE0E"; display: inline-block; animation: spin 2.4s linear infinite; }

/* The artifact window */
.frame { grid-area: art; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: var(--inset); overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .09), 0 18px 40px -24px oklch(0.273 0 0 / .35); }
.frame .w-bar { height: 40px; gap: 10px; background: var(--trim); border-bottom-color: var(--trim-line); color: var(--ink-2); }
.frame .dots i { background: oklch(0.88 0 0); }
.frame .url { background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); color: var(--ink); padding: 5px 12px; }
.frame .vtabs { background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px var(--trim-line); }
.frame .vtabs button[aria-pressed="true"] { box-shadow: 0 1px 2px oklch(0.273 0 0 / .14); }
.frame .guest { color: var(--ink-2); font: 12px/1 var(--sans); }
.frame .bw { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 600px) 248px; justify-content: center; gap: 36px; align-content: start; padding: 32px 32px 40px; }
.b-gutter { position: relative; }
.b-th { position: absolute; }

.bud { position: relative; min-width: 0; }
.bud[data-ver="1"] .v2-only, .bud[data-ver="2"] .v1-only { display: none; }
.bud .crumb { display: flex; align-items: center; gap: 8px; font: 12px/20px var(--sans); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--sans); }
.chip-amber { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip-green { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.bud-h { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bud-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.bud-sub b { color: var(--ink); font-weight: 500; }




/* Comment pin: Dana's avatar, inline with the row it is about */
.c-pin { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50% 50% 50% 3px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .12), 0 2px 6px oklch(0.273 0 0 / .18); opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: transform 250ms var(--out), opacity 150ms ease; }
.c-pin img { width: 16px; height: 16px; border-radius: 50%; }
.c-pin[data-in] { opacity: 1; transform: none; }
.th { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .08), 0 8px 24px -12px oklch(0.273 0 0 / .3); }
.b-th { left: 0; right: 0; }
.th .msg .av { width: 22px; height: 22px; }
.th-cl { display: grid; place-items: center; background: oklch(0.931 0 0); }

/* After the last step: one call to action */
.sh-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-top: var(--hairline) solid var(--line); background: var(--paper); font-size: 14px; animation: rise 300ms var(--out); }
.mk-l { font-weight: 500; }
.sh-foot .mk-l { margin-right: auto; }
.ghost-d { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: oklch(0.95 0 0); font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .ghost-d:hover { background: oklch(0.923 0 0); } }
.ghost-d:active { scale: var(--press); }
.sh-foot .go { background: var(--accent); color: #fff; }
@media (hover: hover) { .sh-foot .go:hover { background: var(--accent-2); } }
.sh-foot .go:active { scale: var(--press); }

/* Narrower: the artifact first, the story around it */
@media (max-width: 1180px) {
  .frame .bw { grid-template-columns: minmax(0, 600px); }
  .b-gutter { display: none; }
}
@media (max-width: 1100px) {
  .sh-body { display: flex; flex-direction: column; overflow: auto; }
  .sh-body::before { content: none; }
  .st-before { order: 1; }
  .frame { order: 2; flex: none; overflow: visible; }
  .frame .bw { overflow: visible; padding: 24px 20px 28px; }
  .st-now { order: 3; overflow: visible; padding-top: 0; }
  .mail { max-height: 92px; }
}
@media (max-width: 640px) {
  :root { --dock-h: 96px; }
  .sheet { inset: 0; border-radius: 0; }
  .sh-top { height: 56px; }
  .frame .bw { padding: 20px 16px 24px; }
  .frame .w-bar .dots { display: none; }
  .bud-h { font-size: 22px; }
}

/* ---------- Before first, full size; the way forward sits right under it ---------- */
.sh-body[data-stage="before"] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-template-areas: "before"; place-items: center; overflow: auto; }
.sh-body[data-stage="before"]::before { content: none; }
.sh-body[data-stage="before"] :is(.st-now, .frame, .st-note) { display: none; }
.sh-body[data-stage="before"] .st-before { width: min(100%, 680px); padding: 24px 24px 56px; }
/* The card is zoomed 1.2, so its 10px corners read as the window's 12 */
.sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1.2; border-radius: 10px; }
.sh-body[data-stage="before"] :is(.mail, .sk-long) { max-height: none; -webkit-mask-image: none; mask-image: none; }
.mail p + p { margin-top: 8px; }
/* The label, the pain in one short line, then the evidence: 16 / 24 / 24 on the 8px grid */
.sh-body[data-stage="before"] .st-before > .st-k { width: fit-content; margin-bottom: 16px; padding: 4px 10px 4px 9px; border-radius: 6px; background: color-mix(in oklch, var(--ink) 8%, transparent); color: var(--ink); font-size: 13px; line-height: 20px; }
.bf-head { display: none; }
.sh-body[data-stage="before"] .bf-head { display: block; margin-bottom: 24px; }
.bf-head h2 { margin: 0; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bf-head p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.sk-re { margin-left: 30px; }
.bf-cta { display: none; }
.sh-body[data-stage="before"] .bf-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.bf-cta p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.bf-cta p b { color: var(--ink); font-weight: 500; }
/* The one brand moment, shared with the finish line: lit from above, pressed with a scale */
.bf-go, .dock .go { gap: 8px; background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); color: #fff; box-shadow: inset 0 0 1px 1px oklch(1 0 0 / .06), 0 1.5px 2px oklch(0 0 0 / .1), 0 0 0 1px var(--accent-2); transition: scale 150ms ease-out, filter 150ms ease-out; }
.bf-go { height: 44px; padding: 0 16px 0 20px; font-size: 15px; }
.bf-go:active, .dock .go:active { scale: var(--press); }
.bf-arrow { transition: translate 200ms var(--out); }
@media (hover: hover) {
  .bf-go:hover, .dock .go:hover { background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); filter: brightness(1.05); }
  .bf-go:hover .bf-arrow { translate: 2px 0; }
}
.bf-go:active .bf-arrow { translate: 3px 0; }
/* The Before card, emptied, growing into the page's window (stage.js) */
.morph { position: fixed; z-index: 70; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-pop); pointer-events: none; }

/* ---------- The dock: what to do now, and then the finish ----------
   One 60px strip under the page, level with the top bar. The instruction and the finish line
   share its slot, so nothing shifts when one gives way to the other. */
.dock { position: relative; flex: none; display: none; min-height: var(--dock-h); border-top: var(--hairline) solid var(--line); background: var(--paper); }
.sh-body:not([data-stage="before"]) ~ .dock { display: grid; }
.dock > * { grid-area: 1 / 1; }
.dock > .sh-foot { min-width: 0; flex-wrap: nowrap; gap: 12px; padding: 0 var(--inset-in) 0 var(--inset); border: 0; background: none; animation: none; }
.guide b { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); font-size: 12px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.guide b::before { content: ""; width: 14px; height: 14px; background: radial-gradient(circle, currentColor 2.5px, transparent 3px); }
.guide[data-beat] b, .guide[data-state="ok"] b { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.guide[data-beat] b::before, .guide[data-state="ok"] b::before { background: currentColor; -webkit-mask: var(--ck) center / 14px no-repeat; mask: var(--ck) center / 14px no-repeat; animation: ck-in 260ms var(--out); }
@keyframes ck-in { from { opacity: 0; transform: scale(.6); } }
.guide .mk-l { min-width: 0; margin: 0 auto 0 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); text-wrap: pretty; }
/* The finish: a green check draws in, its ring breathes out once, and the offer rises */
.dock > #make { animation: rise 300ms var(--out); }
.dock .mk-l { margin-right: auto; }
.mk-ok { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); font-size: 12px; line-height: 1; font-weight: 500; animation: ok-pop 360ms var(--out) 60ms backwards; }
.mk-ok .chk-draw path { animation-delay: 220ms; }
.mk-ok::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--green-bright); opacity: 0; pointer-events: none; animation: ok-ring 700ms var(--out) 160ms; }
@keyframes ok-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes ok-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3, 1.6); } }
/* The ring on a wide target is a rounded frame, not a line */
:is(.ch-r, .pl-opts):is([data-cue], [data-hit])::after { inset: -6px -10px; border-radius: 10px; }
@media (max-width: 640px) {
  .sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1; border-radius: 12px; }
  .sh-body[data-stage="before"] .st-before { padding: 20px var(--inset) 32px; }
  .bf-head h2 { font-size: 22px; line-height: 30px; }
  .sh-body[data-stage="before"] .bf-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .bf-go { height: 48px; justify-content: center; }
  .dock > .guide { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 10px var(--inset); }
  .dock > #make { flex-wrap: wrap; align-content: center; gap: 10px 8px; padding: 12px var(--inset); }
  .dock > #make .mk-l { flex: 1 1 calc(100% - 82px); }
  .dock > #make :is(.ghost-d, .go) { flex: 1 1 calc(50% - 4px); justify-content: center; height: 44px; }
}

/* A pin and its thread point at each other */
.c-pin { cursor: default; transition: transform 250ms var(--out), opacity 150ms ease, box-shadow 150ms ease; }
.c-pin .c-you { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 8px/1 var(--sans); }
.c-pin[data-hot] { box-shadow: 0 0 0 2px var(--ink), 0 2px 6px oklch(0.273 0 0 / .18); }
.b-th { transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move), box-shadow 150ms ease; }
.b-th[data-hot] { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px -12px oklch(0.273 0 0 / .3); }
.th-you { display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 9px/1 var(--sans); }


/* =====================================================================================
   The budget artifact. Scoped to #sheet.
   One page inset (--pg) for the header, the rows and the footer; an 8px rhythm; radii that
   nest (window 12, controls 8, chips 6, pills 999). Colour: ink for the page, the tile hues
   for the channels, amber only where artifact.cafe speaks, green for done.
   ===================================================================================== */
#sheet .frame .bw {
  --pg: 32px; --th: 20px; --tr: 6px; --hit: 24px;
  --cols: minmax(0, 600px) 240px;
  --red-soft: oklch(0.966 0.02 28); --red-line: oklch(0.88 0.06 28);
  display: flex; flex-direction: column; justify-content: flex-start; align-content: normal; gap: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-bottom: 104px;
}
#sheet .bw-in { flex: 1 0 auto; display: grid; grid-template-columns: var(--cols); justify-content: center; align-content: start; column-gap: 32px; padding: var(--pg) var(--pg) 24px; }
#sheet .b-gutter { position: relative; min-width: 0; }

/* Header: the title on the left, the number everything moves on the right */
#sheet .bud-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
#sheet .bud-hd > div:first-child { min-width: 0; }
#sheet .bud-h { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
#sheet .bud-sub { margin-top: 4px; font-size: 14px; line-height: 20px; max-width: 34em; }
#sheet .fc { flex: none; display: grid; justify-items: end; text-align: right; }
#sheet .fc-k { font-size: 12px; line-height: 16px; color: var(--ink-3); }
#sheet .fc b { margin-top: 4px; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#sheet .fc em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
#sheet .fc em[data-s="up"] { color: var(--green); }
#sheet .fc em[data-s="down"] { color: var(--ink-2); }

/* The split, as one bar: hard stops with a 2px gap, an empty rail for what is left */
#sheet .al { position: relative; height: 8px; border-radius: 4px; background: var(--track); }
#sheet .al::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--al, none); transform-origin: 0 50%; }
#sheet .al::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: calc(var(--lim, 100) * 1%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); opacity: 0; transition: opacity 150ms ease; }
#sheet .al[data-over]::after { opacity: 1; }
#sheet #p-al { margin-bottom: 4px; }

/* Channel rows */
#sheet .chs { border-top: var(--hairline) solid var(--line); }
#sheet .ch { position: relative; padding: 12px 0; }
#sheet .ch + .ch { border-top: var(--hairline) solid var(--line); }
#sheet .ch-h { display: flex; align-items: center; gap: 8px; height: 24px; min-width: 0; }
#sheet .ch-sw { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
#sheet .ch-h b { font-size: 15px; line-height: 24px; font-weight: 500; white-space: nowrap; }
#sheet .ch-h output { margin-left: auto; min-width: 4.5em; text-align: right; font-size: 15px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
#sheet .ch-h .c-pin { margin-left: auto; }
#sheet .ch-h .c-pin + output { margin-left: 0; min-width: 4em; }
#sheet .ch-r { position: relative; height: var(--hit); margin-top: 8px; }
#sheet .ch-r:is([data-cue], [data-hit])::after { inset: -4px -10px; border-radius: 14px; }
#sheet .ch-f { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 8px; }
#sheet .ch-w { min-width: 0; font-size: 13px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
#sheet .ch-s { flex: none; font-size: 12px; line-height: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Claude's tick: a mark under the track at its suggestion; the thumb covers it when you agree */
#sheet .rec { position: absolute; z-index: 0; top: calc(50% + var(--tr) / 2 + 2px); left: calc(var(--th) / 2 + (100% - var(--th)) * var(--f)); width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--ink-3); transition: opacity 150ms ease; pointer-events: none; }
#sheet .ch[data-rec] .rec { opacity: 0; }

/* The slider: the track fills with the channel colour up to the thumb's centre */
#sheet .ch input[type="range"] { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; display: block; width: 100%; height: var(--hit); margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
#sheet .ch input[type="range"]::-webkit-slider-runnable-track { height: var(--tr); border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--track) 0); }
#sheet .ch input[type="range"]::-moz-range-track { height: var(--tr); border-radius: 3px; background: var(--track); }
#sheet .ch input[type="range"]::-moz-range-progress { height: var(--tr); border-radius: 3px; background: var(--c); }
#sheet .ch input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--th); height: var(--th); margin-top: calc((var(--tr) - var(--th)) / 2); border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 0 transparent; transition: box-shadow 150ms ease, scale 150ms ease-out; }
#sheet .ch input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: var(--th); height: var(--th); border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 0 transparent; transition: box-shadow 150ms ease, scale 150ms ease-out; }
@media (hover: hover) {
  #sheet .ch input[type="range"]:not(:disabled):hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 6px color-mix(in oklch, var(--c) 18%, transparent); }
  #sheet .ch input[type="range"]:not(:disabled):hover::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 6px color-mix(in oklch, var(--c) 18%, transparent); }
}
#sheet .ch input[type="range"]:not(:disabled):active::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 8px color-mix(in oklch, var(--c) 24%, transparent); }
#sheet .ch input[type="range"]:not(:disabled):active::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 8px color-mix(in oklch, var(--c) 24%, transparent); }
#sheet .ch input[type="range"]:focus-visible { outline: none; }
#sheet .ch input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
#sheet .ch input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
#sheet .ch input[type="range"]:disabled { cursor: default; }
#sheet .ch input[type="range"]:disabled::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .1); }
#sheet .ch input[type="range"]:disabled::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .1); }

/* Ask Claude: a small chip next to the label it is about, pressable, and it stays as "Asked" */
#sheet .ask { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: 4px; padding: 0 8px 0 6px; border: 0; border-radius: 6px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 12px/1 var(--sans); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, scale 150ms ease-out; }
#sheet .ask::before { content: ""; position: absolute; inset: -10px -4px; }
@media (hover: hover) { #sheet .ask:enabled:hover { background: var(--fill-2); color: var(--ink); } }
#sheet .ask:active:enabled { scale: var(--press); }
#sheet .ask:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#sheet .ask:is([data-cue], [data-hit])::after { inset: -4px; border-radius: 10px; }
#sheet .ask[data-done] { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); color: var(--green); cursor: default; }
#sheet .ask:disabled:not([data-done]) { opacity: .5; cursor: default; }
#sheet .ask svg { flex: none; }

/* The one rule of the page stays in view: what is left, and the way to approve. Full-bleed, on the same two columns. */
#sheet .bud-foot { position: sticky; bottom: 0; z-index: 2; flex: none; background: var(--paper); box-shadow: 0 calc(var(--hairline) * -1) 0 var(--line); }
#sheet .bud-foot-in { display: grid; grid-template-columns: var(--cols); justify-content: center; column-gap: 32px; padding: 12px var(--pg); }
#sheet .bud-foot-c { display: grid; gap: 12px; min-width: 0; }
#sheet .bud-foot-r { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#sheet .left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color 200ms ease; }
#sheet .left::before { content: ""; flex: none; width: 14px; height: 14px; background: radial-gradient(circle, currentColor 3px, transparent 3.5px); }
#sheet .left svg { display: none; flex: none; }
#sheet .left[data-ok] { color: var(--green); }
#sheet .left[data-ok]::before { display: none; }
#sheet .left[data-ok] svg { display: block; }
#sheet .left[data-bad] { color: var(--red); }

#sheet .approve { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 136px; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--primary); color: var(--paper); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, scale 150ms ease-out; }
@media (hover: hover) { #sheet .approve:enabled:hover { background: var(--primary-hover); } }
#sheet .approve:active:enabled { scale: var(--press); }
#sheet .approve:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#sheet .approve:disabled:not([data-ok]) { background: var(--fill-2); color: var(--ink-3); cursor: default; }
#sheet .approve:disabled:not([data-ok])::after { visibility: hidden; }
#sheet .approve[data-ok] { background: var(--green); color: var(--paper); cursor: default; }
#sheet .ap-t { display: inline-flex; align-items: center; gap: 6px; }

/* Threads: Dana and Priya on the rows they are about; you and the agent in the same place */
#sheet .b-th { left: 0; right: 0; }
#sheet .th { padding: 12px; font: 13px/20px var(--sans); }
#sheet .msg { display: block; }
#sheet .msg + .msg { margin-top: 12px; padding-top: 12px; border-top: var(--hairline) solid var(--line); animation: bud-msg 280ms var(--out); }
#sheet .msg-h { display: flex; align-items: center; gap: 8px; height: 20px; }
#sheet .th .msg .av { width: 20px; height: 20px; }
#sheet .who { font-size: 12px; line-height: 16px; }
#sheet .msg p { margin: 4px 0 0; min-height: 0; color: var(--ink-body); text-wrap: pretty; }
#sheet .msg-typing .dots3 { height: 20px; margin-top: 4px; padding: 0; align-items: center; }
#sheet .msg-h .th-res { gap: 4px; height: 20px; margin-left: auto; padding: 0 8px 0 5px; }
/* In v2 a thread that was already answered folds to one line, so the new ones have the room */
#sheet .bw[data-ver="2"] .th[data-answered] .msg + .msg { display: none; }
#sheet .bw[data-ver="2"] .th[data-answered] .msg p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#sheet .bw[data-ver="2"] .th[data-answered] .msg-h::after { content: "Answered"; margin-left: auto; font-size: 12px; line-height: 16px; color: var(--ink-3); }
/* A thread that grew: the ones below move with it, no glide */
#sheet .b-gutter[data-snap] .b-th { transition-duration: 200ms, 250ms, 0s, 150ms; }
#sheet .th { scroll-margin-bottom: 8px; }
@keyframes bud-msg { from { opacity: 0; transform: translateY(4px); } }

/* v2: the plan the decision produced */
#sheet .plan { list-style: none; margin: 0; padding: 0; }
#sheet .plan li { position: relative; display: grid; grid-template-columns: minmax(112px, 160px) minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 16px 0; border-top: var(--hairline) solid var(--line); font-size: 14px; line-height: 24px; }
#sheet .plan li:first-child { margin-top: 20px; }
#sheet .plan li > b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
#sheet .plan li > b i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
#sheet .plan li > span { min-width: 0; color: var(--ink-2); text-wrap: pretty; }
#sheet .plan li > em { font-style: normal; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
#sheet .plan .plan-t { border-top-color: var(--ink); border-top-width: var(--hairline); }
#sheet .plan li .th { grid-column: 1 / -1; }
#sheet .plan-ok { display: flex; align-items: center; gap: 12px; min-height: 24px; margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
#sheet .plan-ok .chip { gap: 4px; height: 24px; padding: 0 10px 0 6px; font-size: 12px; }
#sheet .bud[data-fresh] #p-al::before { animation: bud-grow 700ms var(--out) both; }
#sheet .bud[data-fresh] .plan li { animation: bud-row 420ms var(--out) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
@keyframes bud-grow { from { transform: scaleX(0); } }
@keyframes bud-row { from { opacity: 0; transform: translateY(6px); } }

#sheet .tk { color: var(--term-ok); }
#sheet #copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 144px; }
#sheet #copy svg { color: var(--green); }

/* Under 1181px the gutter is gone: threads sit inside the row they are about */
@media (max-width: 1180px) {
  #sheet .frame .bw { --cols: minmax(0, 600px); }
  #sheet .ch .th, #sheet .plan li .th { position: relative; left: auto; right: auto; top: auto; margin-top: 12px; }
  #sheet .ch .th:not([data-in]) { display: none; }
  #sheet .ch .th[data-in] { animation: bud-msg 280ms var(--out); }
}
/* Under 1101px the story stacks and the sheet's body scrolls: the footer sticks to it */
@media (max-width: 1100px) {
  #sheet .frame { overflow: clip; }
  #sheet .frame .bw { --pg: 24px; overflow: visible; scroll-padding-bottom: 0; }
  #sheet .sh-body { scroll-padding-bottom: 104px; }
}
@media (max-width: 640px) {
  #sheet .frame .bw { --pg: 16px; }
  #sheet .bw-in { padding-bottom: 16px; }
  #sheet .bud-hd { flex-direction: column; gap: 16px; padding-bottom: 16px; }
  #sheet .bud-h { font-size: 22px; line-height: 28px; }
  #sheet .fc { width: 100%; grid-template: "k b" auto "d b" auto / 1fr auto; justify-items: start; align-items: center; }
  #sheet .fc-k { grid-area: k; } #sheet .fc em { grid-area: d; }
  #sheet .fc b { grid-area: b; justify-self: end; margin: 0; font-size: 28px; line-height: 36px; }
  #sheet .ch-f { flex-direction: column; gap: 4px; }
  #sheet .plan li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  #sheet .plan li > span { grid-column: 1 / -1; grid-row: 2; padding-left: 16px; }
  #sheet .bud-foot-in { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #sheet .approve { height: 44px; min-width: 128px; }
}
/* Touch: 44px to grab, a bigger thumb, a bigger Ask */
@media (pointer: coarse) {
  #sheet .frame .bw { --th: 28px; --hit: 44px; }
  #sheet .ch-r:is([data-cue], [data-hit])::after { inset: -2px -10px; }
  #sheet .ask { height: 28px; padding: 0 10px 0 8px; }
  #sheet .ask::before { inset: -8px -4px; }
  #sheet .approve { height: 44px; }
}
/* page.css */
/* Shared by the demo pages: the sheet as a page, and the "Before" message */
body.page .sheet { transform: none; opacity: 1; }
body.page .frame .bw { display: block; }

/* Before: a chat message with circled screenshots */
.sk { padding: 12px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.45; }
.sk-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sk-h b { font-weight: 500; }
.sk-h time { font-size: 11px; color: var(--ink-3); }
.sk-av { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--c); color: var(--t); font: 500 10px/1 var(--sans); text-box: trim-both cap alphabetic; }
.sk p { margin: 4px 0 0 30px; color: var(--ink); }
.sk-shots { display: flex; gap: 8px; margin: 8px 0 0 30px; }
.shot { position: relative; display: flex; flex-direction: column; gap: 4px; width: 92px; height: 68px; padding: 8px; border-radius: 6px; background: oklch(0.958 0 0); box-shadow: inset 0 0 0 1px oklch(0.914 0 0); overflow: hidden; }
.shot i { display: block; height: 4px; border-radius: 2px; background: oklch(0.874 0 0); }
.shot i:nth-child(2) { width: 70%; } .shot i:nth-child(3) { width: 50%; }
.shot-big { display: block; width: 60%; height: 9px; border-radius: 2px; background: oklch(0.835 0 0); }
.shot-btn { display: block; width: 34px; height: 10px; margin-top: auto; margin-left: auto; border-radius: 5px; box-shadow: inset 0 0 0 1px oklch(0.779 0 0); }
.shot-btn--full { width: 100%; background: oklch(0.835 0 0); box-shadow: none; }
/* The red circle is the content here: what feedback used to look like */
.ring { position: absolute; border: 2px solid #D93A2B; border-radius: 50%; opacity: .85; }
.ring-a { right: 2px; bottom: 2px; width: 48px; height: 22px; transform: rotate(-8deg); }
.ring-b { left: 3px; bottom: 1px; width: 82px; height: 24px; transform: rotate(4deg); }


/* A Before message can carry a file or a long paragraph */
.sk-file { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 30px; padding: 8px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; }
.sk-file i { display: grid; place-items: center; width: 26px; height: 30px; flex: none; border-radius: 4px; background: oklch(0.95 0.025 30); color: var(--red); font: 500 8px/1 var(--sans); font-style: normal; }
.sk-file b { display: block; font-weight: 500; }
.sk-file span { color: var(--ink-3); font-size: 11px; }
.sk-long { margin: 4px 0 0 30px; color: var(--ink-2); font-size: 13px; line-height: 1.5; max-height: 96px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.sk + .sk { margin-top: 8px; }
.sk-thread { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 30px; font-size: 12px; color: #1264A3; font-weight: 500; }
.sk-faces { display: flex; } .sk-faces .sk-av { width: 18px; height: 18px; font-size: 8px; box-shadow: 0 0 0 2px var(--paper); } .sk-faces .sk-av + .sk-av { margin-left: -4px; }
.sk-mini { display: flex; gap: 8px; margin-top: 6px; font-size: 13px; }
.sk-mini .sk-av { width: 18px; height: 18px; font-size: 8px; }
.sk-mini p { margin: 0; }
.sk-mini b { font-weight: 500; margin-right: 4px; }

/* A run-the-clock control under the terminal: the cause for what happens next */
.clock { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 12px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease, opacity 150ms ease; }
@media (hover: hover) { .clock:enabled:hover { background: var(--primary-hover); } }
.clock:active { scale: .97; }
.clock:disabled { opacity: .4; cursor: default; }
.clock[data-done] { opacity: 1; background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px oklch(0.883 0 0); padding: 0 12px; }

/* Content column for single-artifact pages */
.pg { max-width: 640px; margin: 0 auto; }
.pg-wide { display: grid; grid-template-columns: minmax(0, 620px) 248px; justify-content: center; gap: 32px; }
.pg-gutter { position: relative; }
.pg-gutter .th { position: absolute; left: 0; right: 0; }
@media (max-width: 1180px) {
  .pg-wide { grid-template-columns: minmax(0, 620px); }
  .pg-gutter { display: none; }
  .pg-wide .th { position: relative; margin-top: 16px; }
}
.sts { display: flex; align-items: center; gap: 8px; }
.pg-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
.chip-n { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: oklch(0.95 0 0); color: var(--ink-2); font: 500 11px/1 var(--sans); }
@media (max-width: 640px) {
  .sk-file, .sk-long, .sk-thread { margin-left: 0; }
  .pg-hd { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* A complete page, not one widget: meta line, lede, stat row, sections, a foot */
.pg { max-width: 760px; container-type: inline-size; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.d-meta .d-dot::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.d-lede { max-width: 62ch; margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 22px; }
.d-stats > div { padding: 12px 14px; border-radius: 10px; background: oklch(0.971 0 0); }
.d-stats span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.d-stats b { display: inline-block; margin-top: 4px; font-size: 20px; line-height: 24px; letter-spacing: -0.02em; font-weight: 500; font-variant-numeric: tabular-nums; }
.d-stats em { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 300ms ease; }
em[data-up] { color: var(--green); } em[data-down] { color: var(--red); }
.d-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 20px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.d-facts span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.d-facts b { font-weight: 500; }
.d-sec { margin-top: 32px; }
.d-h { margin: 0 0 10px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: inherit; }
.d-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.d-rows { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.d-rows li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: var(--hairline) solid var(--line); }
.d-rows li[data-new] { animation: rise 350ms var(--out); }
.d-rows time { flex: none; width: 48px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.d-rows em { flex: none; margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-3); transition: color 300ms ease; }
.d-new { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.d-tb { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.d-tb th { padding: 0 0 8px; font-size: 12px; font-weight: 400; color: var(--ink-3); text-align: right; }
.d-tb td { padding: 9px 0; border-top: var(--hairline) solid var(--line); text-align: right; }
.d-tb :is(th, td):first-child { text-align: left; }
.d-tb td:first-child { font-weight: 500; }
.d-foot { margin: 36px 0 0; padding-top: 14px; border-top: var(--hairline) solid var(--line); font-size: 12px; line-height: 18px; color: var(--ink-3); }
@container (max-width: 620px) { .d-two { grid-template-columns: minmax(0, 1fr); gap: 0; } .d-two > * + * { margin-top: 32px; } }

/* designs.css */
/* Three designs: a canvas with three artboards, each a real phone screen at 320px, scaled to fit.
   Shared page parts live in page.css; the walkthrough frame in desk.css. */

/* The page: one column, the canvas under a short header */
.frame .bw { padding: 20px 24px 28px; }
@media (max-width: 1100px) { .frame .bw { padding: 24px 20px 28px; } }
@media (max-width: 640px) { .frame .bw { padding: 20px 16px 24px; } }
:root { --sand: oklch(0.972 0.015 72); }
.dz { position: relative; max-width: 780px; margin: 0 auto; container-type: inline-size; }
.dz-hd .d-meta { margin-bottom: 6px; }
.dz-hd .d-lede { max-width: none; margin-top: 4px; font-size: 15px; line-height: 22px; }
.dz .d-sec { margin-top: 24px; }
.cur { position: fixed; z-index: 80; }

/* The canvas: one inset (12) on every side, one gap (12) between artboards */
.dz-canvas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; align-items: start; margin-top: 16px; padding: 12px; border-radius: 28px; background: var(--fill); box-shadow: inset 0 0 0 1px oklch(0 0 0 / .04); }
.dz-row { display: contents; }
.dsg { display: grid; gap: 8px; min-width: 0; margin: 0; }

/* Label row: letter, name, who voted for it */
.dsg-l { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 13px; line-height: 18px; }
.dsg-l > b { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); font: 500 11px/1 var(--sans); text-box: trim-both cap alphabetic; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.dsg-l > span:not(.dsg-v) { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsg-v { display: flex; flex: none; margin-left: auto; padding-left: 6px; }
.vt { position: relative; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 2px var(--fill); cursor: pointer; transition: scale 150ms ease-out; }
.vt::before { content: ""; position: absolute; inset: -6px -3px; }
.vt + .vt { margin-left: -6px; }
.vt-i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; font-size: 10px; }
.vt:active { scale: var(--press); }
@media (hover: hover) { .vt:hover { scale: 1.12; } }
.vt[data-new] { animation: dz-pop 240ms var(--out); }
.vt-you { width: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 11px/1 var(--sans); cursor: default; }
.vt-you::before { content: none; }
@keyframes dz-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes dz-in { from { opacity: 0; transform: translateY(4px); } }

/* The artboard: a clip for the screen, and a frame for the pins to hang off */
.dsg-scr { position: relative; aspect-ratio: 320 / 440; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .07), 0 1px 2px oklch(0 0 0 / .05), 0 10px 24px -12px oklch(0 0 0 / .2); transition: box-shadow 250ms var(--out); }
.scr-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--paper); contain: paint; }
.dsg[data-k="b"] .scr-clip { background: var(--sand); }
.scr-in { width: 320px; height: 440px; transform: scale(var(--k, .75)); transform-origin: 0 0; }

/* Pick: ink on hover, ink with a check once chosen; the others quieten without fading */
.pick { position: relative; height: 36px; padding: 0; border: 0; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, scale 150ms ease-out; }
.pick::before { content: ""; position: absolute; inset: -4px 0; }
@media (hover: hover) { .pick:enabled:hover { background: var(--ink); color: #fff; } }
.pick:enabled:active { scale: var(--press); }
.pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick:disabled { cursor: default; }
.pk-t { display: inline-flex; align-items: center; gap: 6px; }
.dz[data-picked] .pick { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.dz[data-picked] .dsg:not([data-chosen]) .dsg-scr { box-shadow: 0 0 0 1px oklch(0 0 0 / .07); }
.dsg[data-chosen] .pick { background: var(--ink); box-shadow: none; color: #fff; }
/* The green beat belongs to the button you pressed */
.dz[data-picked] .dsg:not([data-chosen]) .pick::after { content: none; }
.dsg[data-chosen] .pk-t { animation: dz-in 220ms var(--out); }
.dsg[data-chosen] .dsg-scr { box-shadow: 0 0 0 2px var(--fill), 0 0 0 4px var(--ink), 0 12px 24px -12px oklch(0 0 0 / .3); }
.dsg[data-chosen] .dsg-l > b { background: var(--ink); box-shadow: none; color: #fff; }

/* ---------- The screens: one real cart, three ways to show it ---------- */
.ck { display: flex; flex-direction: column; height: 100%; padding: 12px 18px 16px; font: 13px/18px var(--sans); color: var(--ink); }
.ck :is(em, i, u) { font-style: normal; text-decoration: none; }
.ck small { display: block; font-size: 11px; line-height: 14px; color: var(--ink-3); }
.ck svg { flex: none; display: block; }
.ck-amt { font-weight: 500; font-variant-numeric: tabular-nums; }
.ck-th { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; }
.ck-th[data-t="apron"] { background: var(--c-orange-soft); color: var(--c-orange-ink); }
.ck-th[data-t="mug"] { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.ck-th svg { width: 20px; height: 20px; }
.ck-item { display: flex; align-items: center; gap: 10px; }
.ck-item > span { flex: 1; min-width: 0; }
.ck-item b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-item em { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ck-end { display: flex; flex-direction: column; margin-top: auto; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 26px; margin: 0 -8px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); }
.ck-row em { font-variant-numeric: tabular-nums; color: var(--ink); }

/* The v2 rows are mounted in every screen and open on the chosen one */
.ck-ship { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--move); }
.ck-ship-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 250ms ease; }
.dsg[data-v2] .ck-ship { grid-template-rows: 1fr; }
.dsg[data-v2] .ck-ship-in { opacity: 1; transition-delay: 120ms; }
.dsg[data-v2] .ck-ship .ck-row:last-child { animation: dz-new 1600ms ease-out 200ms backwards; }
@keyframes dz-new { 0%, 25% { background: var(--green-soft); box-shadow: 0 0 0 1px var(--green-line); } 100% { background: transparent; box-shadow: 0 0 0 1px transparent; } }

/* Pay: the label and the v2 label sit on top of each other, so the button never changes width */
.ck-pay { display: grid; place-items: center; font-weight: 500; }
.ck-pl { display: grid; }
.ck-pl > i { grid-area: 1 / 1; text-align: center; transition: opacity 250ms ease, transform 300ms var(--out); }
.ck-pl > i + i { opacity: 0; transform: translateY(6px); }
.dsg[data-v2] .ck-pl > i:first-child { opacity: 0; transform: translateY(-6px); }
.dsg[data-v2] .ck-pl > i + i { opacity: 1; transform: none; }

/* Pins and the notes' spots */
.ck [data-anchor] { transition: box-shadow 200ms ease; }
.ck [data-anchor][data-hot] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.ck-b [data-anchor][data-hot] { box-shadow: 0 0 0 2px var(--sand), 0 0 0 4px var(--accent); }

/* A: Classic. Neutral and blue, step bar, bordered boxes, small corners, a compact Pay. */
.ck-a { --a: oklch(0.5 0.17 255); }
.ck-nav { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; height: 28px; margin: 0 -6px 4px; font-size: 15px; line-height: 20px; font-weight: 500; text-align: center; }
.ck-nav svg { margin: auto; color: var(--ink-2); }
.ck-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 6px; margin-bottom: 10px; }
.ck-steps i { height: 3px; border-radius: 2px; background: var(--line); }
.ck-steps i[data-on] { background: var(--a); }
.ck-steps span { font-size: 11px; line-height: 14px; color: var(--ink-3); }
.ck-steps span[data-on] { color: var(--ink); font-weight: 500; }
.ck-h { margin-bottom: 2px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--ink-3); }
.ck-a .ck-item { padding: 6px 0; }
.ck-a .ck-item + .ck-item { border-top: var(--hairline) solid var(--line); }
.ck-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ck-box b { display: block; font-weight: 500; }
.ck-box span { display: block; color: var(--ink-2); }
.ck-box u { align-self: flex-start; color: var(--a); font-size: 12px; font-weight: 500; }
.ck-a .ck-total { display: flex; align-items: center; justify-content: space-between; height: 36px; margin-top: 4px; padding: 0 12px; border-radius: 10px; background: var(--fill); font-size: 14px; font-weight: 500; }
.ck-a .ck-total .ck-amt { font-size: 17px; }
.ck-a .ck-pay { align-self: flex-end; height: 38px; margin-top: 10px; padding: 0 28px; border-radius: 10px; background: var(--a); color: #fff; font-size: 14px; }
.ck-a .ck-ship-in { padding-bottom: 0; }
.ck-a .ck-row { margin: 0; padding: 0 12px; }

/* B: Summary first. A sand page, the amount as the hero, soft cards, one ink button. */
.ck-b { padding: 12px 16px 14px; background: var(--sand); }
.ck-bar { display: flex; align-items: center; height: 20px; margin-bottom: 6px; padding: 0 2px; font-size: 12px; line-height: 16px; }
.ck-bar b { font-weight: 500; color: var(--ink-2); }
.ck-sum { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 16px 12px 18px; border-radius: 20px; background: linear-gradient(160deg, oklch(0.935 0.05 68), oklch(0.915 0.065 58)); box-shadow: inset 0 0 0 1px oklch(0.8 0.08 60 / .3); }
.ck-sum > div:first-child { min-width: 0; }
.ck-sum > div > span { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--c-orange-ink); }
.ck-sum .ck-amt { display: block; margin: 2px 0 4px; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.ck-sum small { color: oklch(0.42 0.06 55); }
.ck-stack { display: flex; margin-top: 2px; }
.ck-stack .ck-th { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px oklch(0.925 0.058 63); }
.ck-stack .ck-th + .ck-th { margin-left: -10px; }
.ck-stack .ck-th svg { width: 17px; height: 17px; }
.ck-b .ck-ship-in { padding-top: 8px; }
.ck-b .ck-row { gap: 8px; height: 36px; margin: 0; padding: 0 14px; border-radius: 12px; background: var(--paper); color: var(--ink-2); }
.ck-b .ck-row span { flex: 1; }
.ck-b .ck-row svg { color: var(--ink-3); }
.ck-list { margin-top: 8px; padding: 4px 14px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .04); }
.ck-b .ck-item { padding: 7px 0; }
.ck-b .ck-item + .ck-item { border-top: var(--hairline) solid var(--line); }
.ck-b .ck-th { width: 34px; height: 34px; border-radius: 10px; }
.ck-b .ck-th svg { width: 18px; height: 18px; }
.ck-addr { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 14px; border-radius: 16px; background: oklch(1 0 0 / .6); box-shadow: inset 0 0 0 1px oklch(0 0 0 / .05); }
.ck-addr > svg:first-child { color: var(--c-orange-ink); }
.ck-addr > div { flex: 1; min-width: 0; }
.ck-addr b { display: block; font-weight: 500; }
.ck-addr span { display: block; color: var(--ink-2); }
.ck-addr > svg:last-child { color: var(--ink-3); }
.ck-b .ck-pay { height: 48px; margin-top: auto; border-radius: 16px; background: var(--ink); color: #fff; font-size: 15px; }
.ck-b .ck-addr { margin-bottom: 12px; }

/* C: Express. A wallet first, a card form second, a pill, violet where it is live. */
.ck-c { --v: oklch(0.52 0.19 295); }
.ck-hd { padding: 2px 0 12px; }
.ck-hd b { display: block; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; font-weight: 500; }
.ck-wallet { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.ck-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 11px; line-height: 14px; color: var(--ink-3); }
.ck-or i { flex: 1; height: var(--hairline); background: var(--line); }
.ck-field + .ck-field { margin-top: 10px; }
.ck-field small { margin-bottom: 4px; }
.ck-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px oklch(0.88 0 0); font-variant-numeric: tabular-nums; }
.ck-in span { color: var(--ink-3); }
.ck-in svg { color: var(--ink-3); }
.ck-field[data-on] .ck-in { box-shadow: inset 0 0 0 1.5px var(--v), 0 0 0 3px oklch(0.62 0.19 295 / .18); }
.ck-field[data-on] .ck-in span { color: var(--ink); }
.ck-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ck-2 .ck-field + .ck-field { margin-top: 0; }
.ck-c .ck-total { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 0; font-size: 14px; font-weight: 500; }
.ck-c .ck-total .ck-amt { font-size: 17px; }
.ck-c .ck-pay { height: 46px; margin-top: 10px; border-radius: 999px; background: var(--v); color: #fff; font-size: 14px; }
.ck-c .ck-ship-in { margin-inline: -8px; }
.ck-c .ck-row { margin: 0; padding: 0 8px; }

/* ---------- Notes: a face on the spot; hover, tap or focus it to read ---------- */
.n-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50% 50% 50% 4px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .1), 0 2px 6px oklch(0 0 0 / .22); cursor: pointer; opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: transform 250ms var(--out), scale 150ms ease-out, opacity 150ms ease, box-shadow 150ms ease; }
.n-pin::before { content: ""; position: absolute; inset: -8px; }
.n-pin[data-in] { opacity: 1; transform: none; }
.n-pin[data-wait] { visibility: hidden; pointer-events: none; }
.n-pin:active { scale: var(--press); }
.n-pin[data-open] { box-shadow: 0 0 0 2px var(--accent), 0 2px 6px oklch(0 0 0 / .22); }
@media (hover: hover) { .n-pin[data-in]:hover { transform: scale(1.08); } }
.n-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; font-size: 10px; }
.nb { position: absolute; z-index: 6; width: 244px; max-width: calc(100% - 16px); padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .08), 0 12px 28px -10px oklch(0 0 0 / .35); font-size: 13px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 150ms ease, transform 200ms var(--out); }
.nb[data-in] { opacity: 1; transform: none; }
.nb p { text-wrap: pretty; }

/* ---------- v2: the chosen direction beside the notes it answered ---------- */
.dz-notes { display: none; }
.dz[data-ver="2"] .dsg:not([data-chosen]) { display: none; }
.dz[data-ver="2"] .dsg[data-chosen] { grid-column: 1; grid-row: 1; }
.dz[data-ver="2"] .n-pin { display: none; }
.dz[data-ver="2"] .dz-notes { display: block; grid-column: 2 / 4; grid-row: 1; }
/* The notes answer after the chosen screen has slid into its column (420ms), never across it */
.dz-notes .d-h { display: flex; align-items: center; height: 24px; margin: 0 0 8px; animation: rise 240ms var(--out) 340ms both; }
.dz-notes .th { position: relative; left: auto; right: auto; padding: 12px 14px; opacity: 1; transform: none; animation: rise 300ms var(--out) calc(var(--i, 0) * 80ms + 380ms) both; }
.dz-notes .th + .th { margin-top: 8px; }
.dz-notes .res { display: inline-flex; align-items: center; gap: 4px; height: 20px; margin-top: 10px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); color: var(--green); font: 500 11px/1 var(--sans); }
.dz-notes .res .chk-draw path { animation-delay: calc(var(--i, 0) * 80ms + 700ms); }
.dz[data-swap] .dz-canvas { animation: dz-in 220ms var(--out); }
.vtabs:not([hidden]) { animation: dz-pop 240ms var(--out); }

/* The table: the chosen column picks up a quiet fill */
.dz-cmp .d-tb th b { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 5px; background: var(--fill-2); color: var(--ink-2); font-size: 10px; font-weight: 500; line-height: 1; transition: background-color 200ms ease, color 200ms ease; }
.dz-cmp .d-tb th { vertical-align: middle; }
.dz-cmp .d-tb :is(th, td):not(:first-child) { width: 24%; transition: background-color 250ms ease; }
.dz[data-picked="a"] .d-tb [data-k="a"], .dz[data-picked="b"] .d-tb [data-k="b"], .dz[data-picked="c"] .d-tb [data-k="c"] { background: var(--fill); }
.dz[data-picked="a"] .d-tb th[data-k="a"] b, .dz[data-picked="b"] .d-tb th[data-k="b"] b, .dz[data-picked="c"] .d-tb th[data-k="c"] b { background: var(--ink); color: #fff; }
.dz-cmp .d-tb :is(th, td)[data-k] { padding-inline: 8px; }

/* Finish: the copy button confirms itself */
#copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Before: the screenshots Kai sent, circled ---------- */
.sk-face { width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; }
.sk-re b { margin-right: 0; }
.sk-shots { gap: 8px; }
.sk-shot { --k: .3125; position: relative; width: 100px; height: 138px; flex: none; overflow: hidden; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
/* In the rail the screenshots are a thumbnail, so the agent's terminal keeps the room */
.sh-body:not([data-stage="before"]) .sk-shot { --k: .2; width: 64px; height: 88px; border-radius: 6px; }
.sh-body:not([data-stage="before"]) .sk-ring { border-width: 1.5px; }
.sk-shot[data-k="b"] { background: var(--sand); }
.sk-shot .scr-in { position: absolute; left: 0; top: 0; }
.sk-ring { position: absolute; border: 2px solid oklch(0.58 0.2 27); border-radius: 50%; opacity: .9; }
.sk-ring[data-k="a"] { right: 2%; bottom: 2%; width: 50%; height: 18%; transform: rotate(-7deg); }
.sk-ring[data-k="b"] { left: 2%; bottom: 1%; width: 94%; height: 21%; transform: rotate(3deg); }

/* ---------- Narrow canvases: the screens scroll sideways, one and a bit in view ---------- */
@container (max-width: 647px) {
  .dz-canvas { display: block; padding: 12px 0 16px; }
  .dz-row { display: flex; gap: 12px; overflow-x: auto; padding: 8px 12px 12px; scroll-padding-inline: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dz-row::-webkit-scrollbar { display: none; }
  .dsg { flex: 0 0 min(72%, 248px); align-content: start; scroll-snap-align: start; }
  .dz[data-ver="2"] .dz-row { justify-content: center; }
  .dz[data-ver="2"] .dz-notes { margin-top: 4px; padding: 0 12px; }
}
@media (max-width: 640px) {
  .sk-shots, .sk > p { margin-left: 0; }
  .sk > p { margin-top: 6px; }
}
/* Phone-width frames: the eyebrow's second half drops to its own line, the table gives its labels room */
@container (max-width: 480px) {
  .dz-hd .d-meta .d-dot { flex-basis: 100%; }
  .dz-hd .d-meta .d-dot::before { content: none; }
  .dz-cmp .d-tb { table-layout: fixed; font-size: 13px; }
  .dz-cmp .d-tb :is(th, td):first-child { width: 28%; }
  .dz-cmp .d-tb :is(th, td)[data-k] { width: 24%; padding-inline: 4px; }
  .dz-cmp .d-tb th { vertical-align: top; }
  .dz-cmp .d-tb th b { display: grid; margin: 0 0 4px auto; }
}
