/* The product demo (site/demo.mjs, site/public/demo.js). Everything is scoped to .dv, and the picture's classes start
   with d- so nothing from site.css reaches inside it. The picture is a fixed 1280×720 canvas (360×640 on a phone),
   scaled to its box: the script sets the exact scale; these breakpoints are the scale without it. */
.dv{--d-paper:var(--paper);--d-surface:var(--surface);--d-sunken:var(--sunken);--d-line:var(--line);--d-strong:#8a8496;--d-ink:var(--ink);--d-muted:var(--muted);--d-on-ink:#fff;--d-human:var(--human);--d-human-soft:var(--human-soft);--d-on-human:#fff;--d-agent:var(--agent);--d-agent-fill:#12a37f;--d-agent-soft:var(--agent-soft);--d-outsider:var(--outsider);--d-on-outsider:var(--on-outsider);--d-note:#fff6d6;--d-note-line:#f0dc94;--d-note-label:#7a5200;--d-attention:#8f5a00;--d-attention-soft:var(--marigold-soft);--d-bezel:#1c1a27;--d-shadow:0 1px 2px #1c1a2714,0 10px 28px #1c1a2712;--d-hl-a:56%;--d-hl-b:92%;--d-s:.884;
  display:grid;gap:.625rem;margin:1.75rem 0 0;min-width:0;position:relative;font-size:1rem;line-height:1.4;container:dv / inline-size}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dv{--d-strong:#6e6884;--d-on-ink:#15131f;--d-on-human:#15131f;--d-note:#2d2814;--d-note-line:#534a22;--d-note-label:#ffd36b;--d-attention:#ffc95c;--d-bezel:#000;--d-shadow:0 1px 2px #0000004d,0 14px 32px #00000066;--d-hl-a:70%;--d-hl-b:94%}}
:root[data-theme="dark"] .dv{--d-strong:#6e6884;--d-on-ink:#15131f;--d-on-human:#15131f;--d-note:#2d2814;--d-note-line:#534a22;--d-note-label:#ffd36b;--d-attention:#ffc95c;--d-bezel:#000;--d-shadow:0 1px 2px #0000004d,0 14px 32px #00000066;--d-hl-a:70%;--d-hl-b:94%}
@media (max-width:1180px){.dv{--d-s:.84}}
@media (max-width:1100px){.dv{--d-s:.78}}
@media (max-width:1000px){.dv{--d-s:.70}}
@media (max-width:900px){.dv{--d-s:.62}}
@media (max-width:800px){.dv{--d-s:.545}}
@media (max-width:700px){.dv{--d-s:.47}}
@media (max-width:600px){.dv{--d-s:.98}}
@media (max-width:420px){.dv{--d-s:.9}}
@media (max-width:360px){.dv{--d-s:.8}}

/* The box: 16:9, and a 9:16 phone on a small screen */
.dv-screen{position:relative;width:100%;aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:var(--d-paper);box-shadow:var(--d-shadow);outline:1px solid var(--d-line);container-type:inline-size}
@media (max-width:600px){.dv-screen{aspect-ratio:9/16;width:min(100%,380px);justify-self:center;border:9px solid var(--d-bezel);border-radius:46px}}
/* The one labelled button on the picture: the first-run call to sound. */
/* Watch with sound: a light pill, part of the picture, so the page keeps one primary button (d-2026-10-19-home-hero-story-then-demo) */
.dv-pill{position:absolute;top:14px;left:14px;z-index:5;display:inline-flex;white-space:nowrap;align-items:center;gap:.625rem;min-height:52px;padding:0 1.4em;border-radius:999px;border:1px solid var(--d-line);background:var(--d-paper);color:var(--d-ink);font:inherit;font-size:1.0625rem;font-weight:700;cursor:pointer;box-shadow:var(--d-shadow);transition:transform .12s ease}
.dv-pill:hover{transform:translateY(-1px);background:var(--d-surface)}
.dv-pill[hidden],.dv:not(.dv-on) .dv-pill{display:none}
.dv-pill svg{width:18px;height:18px}
/* Both labels share one cell, so the pill keeps its width when it says it's loading. */
.dv-pl{display:grid}
.dv-pl>span{grid-area:1/1;text-align:left}
.dv-pl-wait,.dv-pill.loading .dv-pl-go{visibility:hidden}
.dv-pill.loading .dv-pl-wait{visibility:visible}
.dv-pill.loading{cursor:progress}
/* A moment's note over the picture, when the sound didn't load: out of the flow, so nothing moves. */
.dv-note{position:absolute;left:50%;top:14px;z-index:6;width:max-content;max-width:calc(100% - 28px);transform:translateX(-50%);padding:8px 14px;border-radius:12px;background:var(--d-ink);color:var(--d-paper);font-size:.875rem;font-weight:600;line-height:1.35;text-align:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
.dv-note.on{opacity:1;visibility:visible;transition:opacity .2s ease}
@media (prefers-reduced-motion:reduce){.dv-note{transition:none}}
.dv-pill:focus-visible,.dv-big:focus-visible,.dv-b:focus-visible,.dv-menu button:focus-visible,.dv-steps button:focus-visible,.d-cta:focus-visible{outline:3px solid var(--human);outline-offset:3px}
@media (max-width:600px){.dv-pill{top:5.5%;left:50%;transform:translateX(-50%);font-size:.9375rem;min-height:48px}.dv-pill:hover{transform:translateX(-50%)}}
/* With large text the pill can be wider than the picture: then it wraps inside it. */
.dv-pill{width:max-content;max-width:calc(100% - 28px);white-space:normal;text-align:left}
/* The big play button, whenever it's paused: paper on ink, like the site's buttons. It fades out on play. */
.dv-big{position:absolute;left:50%;top:50%;z-index:5;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;border:2px solid var(--d-ink);background:var(--d-ink);color:var(--d-paper);display:grid;place-items:center;cursor:pointer;box-shadow:var(--d-shadow);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s,transform .12s ease}
.dv-big svg{width:36px;height:36px;margin-left:4px}
.dv.paused .dv-big{opacity:1;visibility:visible;transition:opacity .2s ease,transform .12s ease}
.dv-big:hover{transform:scale(1.04)}
.dv:not(.dv-on) .dv-big{display:none}
/* A brief ▶ or ❚❚ where you tapped the picture (none with reduced motion). */
.dv-flash{position:absolute;left:50%;top:50%;z-index:4;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgb(20 18 31 / .6);color:#fff;display:grid;place-items:center;opacity:0;pointer-events:none}
.dv-flash svg{width:28px;height:28px}
.dv-flash.go{animation:dv-flash .5s ease-out}
@keyframes dv-flash{0%{opacity:.9;transform:scale(.8)}100%{opacity:0;transform:scale(1.25)}}
@media (prefers-reduced-motion:reduce){.dv-flash{display:none}.dv-big,.dv-pill{transition:none}}
.dv-screen{cursor:pointer}
/* Captions over the picture, as on a video. Wide: in the open space left of the phone, clear of Rook and the phone.
   Phone-shaped: in the band beside Rook, under the phone's screen. */
/* The caption box keeps two lines' height from the first cue, so a two-line cue never moves it. */
.dv-cap{position:absolute;left:13%;right:33%;bottom:3%;z-index:4;font-size:clamp(12px,1.9cqw,24px);height:3.3em;display:flex;justify-content:center;align-items:flex-end;text-align:center;pointer-events:none}
.dv-cap span{background:rgb(20 18 31 / .82);color:#fff;font-size:clamp(12px,1.9cqw,24px);line-height:1.45;font-weight:700;padding:.15em .55em;border-radius:8px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media (max-width:600px){.dv-cap{left:23%;right:3%;bottom:.8%;height:10.5%;align-items:center}.dv-cap span{font-size:clamp(11px,3.9cqw,16px)}}
html:not(.js) .dv-ctrls,html:not(.js) .dv-cap{display:none}
.dv:not(.dv-on) .dv-ctrls,.dv:not(.dv-on) .dv-cap{visibility:hidden}

/* The controls: the scrubber alone on the first row; one row of small icon buttons under it, at every width. */
.dv-ctrls{display:grid;gap:2px;min-width:0;font-size:.875rem}
.dv-row{display:flex;align-items:center;gap:2px;min-width:0;flex-wrap:nowrap;position:relative}
.dv-b{flex:none;width:44px;height:44px;border-radius:10px;border:0;background:transparent;color:var(--d-ink);display:inline-grid;place-items:center;cursor:pointer;padding:0}
.dv-b svg{width:22px;height:22px}
.dv-b:hover{background:var(--d-sunken)}
.dv-b{position:relative}
.dv-b:disabled{opacity:.4;cursor:default}
.dv-b[aria-pressed="true"],.dv-b[aria-expanded="true"]{background:var(--d-surface);box-shadow:inset 0 0 0 1px var(--d-line)}
.dv-b[aria-pressed="true"]::after,.dv-b[aria-expanded="true"]::after{content:"";position:absolute;left:50%;bottom:5px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--d-ink)}
.dv-time{flex:none;margin:0 .375rem 0 .25rem;font-family:"Plex Mono",ui-monospace,monospace;font-size:.8125rem;color:var(--d-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.dv-time [data-dv="now"]{display:inline-block;min-width:4ch;text-align:right}
.dv-chap{flex:1 1 0;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-more{display:none;position:relative}
.dv-menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:7;display:grid;min-width:13em;padding:.375rem;border-radius:12px;background:var(--d-surface);border:1px solid var(--d-line);box-shadow:var(--d-shadow)}
.dv-menu[hidden]{display:none}
.dv-menu button{display:flex;align-items:center;gap:.625rem;min-height:44px;padding:0 .625rem;border:0;border-radius:8px;background:transparent;color:var(--d-ink);font:inherit;font-weight:600;text-align:left;cursor:pointer;white-space:nowrap}
.dv-menu button:hover{background:var(--d-sunken)}
.dv-menu svg{width:20px;height:20px}
.dv-scrub{position:relative;height:36px;display:flex;align-items:center;min-width:0}
.dv-scrub input{-webkit-appearance:none;appearance:none;width:100%;height:36px;background:transparent;margin:0;cursor:pointer;position:relative;z-index:1}
.dv-scrub input:focus-visible{outline:3px solid var(--human);outline-offset:3px}
.dv-scrub input::-webkit-slider-runnable-track{height:5px;border-radius:3px;background:linear-gradient(90deg,var(--d-ink) var(--pct,0%),var(--d-line) var(--pct,0%))}
.dv-scrub input::-moz-range-track{height:5px;border-radius:3px;background:linear-gradient(90deg,var(--d-ink) var(--pct,0%),var(--d-line) var(--pct,0%))}
.dv-scrub input::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--d-ink);border:3px solid var(--d-surface);box-shadow:0 0 0 1px var(--d-strong);margin-top:-5.5px}
.dv-scrub input::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--d-ink);border:3px solid var(--d-surface);box-shadow:0 0 0 1px var(--d-strong)}
.dv-marks{position:absolute;left:8px;right:8px;top:50%;height:0;pointer-events:none;z-index:2}
.dv-marks i{position:absolute;top:-4px;width:2px;height:8px;border-radius:1px;background:var(--d-strong)}
.dv-marks i.past{background:var(--d-surface)}
.dv-steps{display:none;gap:8px;align-items:center;justify-content:center;flex-wrap:nowrap;height:36px}
.dv-steps button{position:relative;flex:none;width:32px;height:32px;border-radius:999px;border:1.5px solid var(--d-strong);background:transparent;color:var(--d-ink);font:inherit;font-size:.8125rem;font-weight:800;cursor:pointer;padding:0}
.dv-steps button[aria-current="step"]{background:var(--d-ink);color:var(--d-paper);border-color:var(--d-ink)}
.dv-steps button::before{content:"";position:absolute;inset:-6px}
.dv.stepped .dv-steps{display:flex}
.dv.stepped .dv-scrub,.dv.stepped .dv-time{display:none}
.dv:not(.stepped) .dv-step{display:none}
/* Never wrap: as the player narrows (or the text grows), the chapter name goes first, then Transcript and Replay
   move into ⋯, then the total time. Widths are the buttons' 44 px and the time's text, in rem. */
@container dv (max-width:calc(236px + 12rem)){.dv-chap{visibility:hidden}}
@container dv (max-width:calc(236px + 6rem)){.dv-wide{display:none}.dv-more{display:block}.dv-chap{display:none}.dv-first{margin-left:auto}}
@container dv (max-width:calc(190px + 6rem)){.dv-dur{display:none}}
@container dv (max-width:calc(190px + 3rem)){.dv-time{display:none}}
/* The transcript. Without the script it's a block under the still frame; with it, a panel over the picture, opened
   from the Transcript button, so it takes no room on the page. */
.dv-tr{border-top:1px solid var(--d-line);padding-top:.625rem;font-size:1rem}
.dv-trh{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.375rem}
.dv-trh h2{font-size:1.375rem;line-height:1.2;letter-spacing:-.02em;margin:0}
.dv-trh h2:focus{outline:none}
.dv-trx{margin-left:auto}
.dv:not(.dv-on) .dv-trx{display:none}
html.js .dv-tr{position:absolute;left:0;top:0;width:100%;aspect-ratio:16/9;z-index:6;overflow:auto;overscroll-behavior:contain;background:var(--d-surface);border:1px solid var(--d-line);border-radius:22px;padding:1.125rem 1.5rem 1.5rem;box-shadow:var(--d-shadow)}
.dv.dv-on .dv-tr:not(.open){display:none}
html.js .dv:not(.dv-on) .dv-tr{visibility:hidden;animation:dv-late 0s 4s forwards}
@keyframes dv-late{to{visibility:visible}}
@media (max-width:600px){html.js .dv-tr{width:min(100%,380px);left:50%;transform:translateX(-50%);aspect-ratio:9/16;border-radius:46px;padding:1.75rem 1.25rem}}
.dv-trn{color:var(--d-muted);font-size:.9375rem;margin:0 0 .5rem}
.dv-tr ol{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.dv-tr li{display:grid;grid-template-columns:3.5em minmax(0,1fr);gap:.625rem;border-top:1px solid var(--d-line);padding-top:.625rem}
.dv-tr p{margin:2px 0 0}
.dv-shown{color:var(--d-muted);font-size:.9375rem}
@media (max-width:600px){.dv-tr li{grid-template-columns:minmax(0,1fr)}}

/* ---------- The picture ---------- */
.d-stage{position:absolute;left:0;top:0;width:1280px;height:720px;transform-origin:0 0;transform:scale(var(--d-s));overflow:hidden;background:var(--d-paper);color:var(--d-ink);font-size:16px;line-height:24px;text-align:left}
.d-stage *{box-sizing:border-box}
/* The picture is video: its mock screens aren't text to select, and a long-press opens no menu. The transcript is. */
.d-stage,.dv-cap{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.d-stage p{margin:0}
.d-L{position:absolute}
.d-L,.d-F{opacity:0;visibility:hidden}
/* Before the script (and without it): the still frame. */
.dv:not(.dv-on) .d-poster{opacity:1;visibility:visible}
.d-av{width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;font-size:12px;font-weight:800;flex:none;background:var(--d-outsider);color:var(--d-on-outsider)}
.d-team{background:var(--d-human);color:var(--d-on-human)}
.d-xs{width:20px;height:20px;font-size:9px}
.d-face{width:22px;height:22px;flex:none;display:inline-block}
.d-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid var(--d-strong);white-space:nowrap}
.d-stk{display:inline-flex;align-items:center;height:24px;font-size:12px;line-height:16px;font-weight:800;border-radius:999px;padding:0 12px;white-space:nowrap;border:1px solid transparent}
.d-soft{background:var(--d-sunken);color:var(--d-ink)}
.d-mint{background:var(--d-agent-soft);color:var(--d-agent)}
.d-ink{border-color:var(--d-strong);color:var(--d-muted)}
.d-needs,.d-cn,.d-cd{display:inline-flex;align-items:center;height:24px;font-size:12px;line-height:16px;font-weight:800;border-radius:999px;padding:0 12px;white-space:nowrap;border:1px solid transparent}
.d-needs{background:var(--d-attention-soft);color:var(--d-attention)}
.d-cn{border-color:var(--d-strong);color:var(--d-muted)}
.d-cd{background:var(--d-sunken);color:var(--d-ink)}
.d-chips{display:grid;flex:none;justify-items:end;align-items:center}
.d-chips>*{grid-area:1/1}
.d-badge{min-width:24px;height:24px;border-radius:999px;background:#ffc233;color:#1c1a27;font-size:13px;font-weight:800;display:inline-grid;place-items:center;padding:0 7px}
.d-dot{width:7px;height:7px;border-radius:50%;background:var(--d-agent-fill);display:inline-block;vertical-align:1px}
.d-dots{display:inline-flex;gap:4px;align-items:center;height:20px}
.d-caret{display:inline-block;width:2px;height:1.1em;background:var(--d-ink);vertical-align:-3px;margin-left:1px}
.d-one{display:grid;justify-items:start}
.d-one>*{grid-area:1/1}
.d-b{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--d-line);background:var(--d-surface);color:var(--d-ink);font-weight:700;font-size:15px;white-space:nowrap;min-width:0}
.d-b svg{width:14px;height:14px;flex:none}
.d-b.d-pri{background:var(--d-ink);border-color:transparent;color:var(--d-on-ink)}
.d-b.d-sm{min-height:32px;font-size:13px;padding:0 12px}
.d-b.d-quiet{border-color:transparent;background:none;color:var(--d-human);padding:0 6px}
.d-who{display:flex;align-items:center;gap:10px;min-width:0}
.d-nm{min-width:0;flex:1;display:grid;line-height:20px}
.d-nm b{font-size:16px}
.d-nm span{font-family:"Plex Mono",ui-monospace,monospace;font-size:12px;color:var(--d-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-holder{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.d-tape{font-size:13px;line-height:18px;color:var(--d-muted);display:flex;align-items:center;gap:8px}
.d-tape::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--d-strong);flex:none}
.d-tape u{color:var(--d-human);text-decoration:none;font-weight:700}
.d-lit{background:var(--d-agent-soft);box-shadow:0 2px 0 var(--d-agent);border-radius:3px}
.d-ma{color:var(--d-agent)}
.d-eb{font-family:"Plex Mono",ui-monospace,monospace;font-size:11px;line-height:16px;letter-spacing:.06em;text-transform:uppercase;color:var(--d-muted)}
.d-status{position:absolute;left:0;right:0;top:0;height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;font-size:12px;font-weight:800}
.d-ic{display:flex;gap:4px;align-items:center}
.d-ic i{display:block;width:3px;border-radius:1px;background:var(--d-ink)}
.d-ic b{display:block;width:20px;height:10px;border-radius:3px;border:1.5px solid var(--d-ink);position:relative}
.d-ic b::after{content:"";position:absolute;inset:1.5px 5px 1.5px 1.5px;background:var(--d-ink);border-radius:1px}
.d-vstatus{display:none}

/* The rush, and the ping */
[data-k=floor]{left:100px;top:150px;width:420px}
.d-flh{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.d-flh .d-av{width:48px;height:48px;font-size:16px}
.d-flh b{display:block;font-size:24px;line-height:28px;font-weight:800;font-stretch:82%;letter-spacing:-.025em}
.d-flh span span{font-size:15px;color:var(--d-muted)}
.d-rail{height:8px;border-radius:4px;background:var(--d-strong);opacity:.55;margin:0 -12px}
.d-tickets{display:flex;gap:14px;align-items:flex-start;margin-top:-4px}
.d-ticket{width:126px;background:var(--d-surface);box-shadow:var(--d-shadow);border-radius:3px 3px 12px 12px;padding:12px 12px 14px;font-size:14px;line-height:20px;transform-origin:50% 0}
.d-ticket span{display:block;font-family:"Plex Mono",ui-monospace,monospace;font-size:12px;color:var(--d-muted);border-bottom:1px dashed var(--d-strong);padding-bottom:6px;margin-bottom:6px}
.d-queue{margin-top:22px;display:flex;align-items:center;gap:8px;font-size:15px;color:var(--d-muted)}
.d-queue span{display:flex}
.d-queue i{width:22px;height:22px;border-radius:50%;background:var(--d-strong);border:2px solid var(--d-paper);margin-left:-6px;display:block}
.d-queue i:first-child{margin-left:0}
[data-k=mail]{left:580px;top:196px;width:600px;background:var(--d-surface);border-radius:24px;box-shadow:var(--d-shadow);padding:22px 26px;display:grid;gap:10px}
.d-msub{font-size:26px;line-height:32px;font-weight:800;font-stretch:82%;letter-spacing:-.025em}
.d-mbody{font-size:18px;line-height:28px}
.d-mmeta{font-family:"Plex Mono",ui-monospace,monospace;font-size:12px;color:var(--d-muted)}

/* The shared inbox on a desk */
.d-win{left:40px;top:62px;width:1200px;height:624px;background:var(--d-surface);border-radius:24px;box-shadow:var(--d-shadow);overflow:hidden;display:grid;grid-template-rows:44px minmax(0,1fr);transform-origin:0 50%}
.d-wbar{display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--d-line);font-family:"Plex Mono",ui-monospace,monospace;font-size:13px;color:var(--d-muted)}
.d-wbar i{width:10px;height:10px;border-radius:50%;background:var(--d-line);display:block}
.d-wbar span{margin-left:8px}
.d-wbody{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:0}
.d-wlist{border-right:1px solid var(--d-line);padding:14px 0;display:grid;align-content:start;background:var(--d-paper)}
.d-lh{display:flex;align-items:center;gap:8px;padding:0 16px 10px;font-weight:800;font-size:18px;font-stretch:82%;letter-spacing:-.02em}
.d-wlin{position:relative}
.d-wrow{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px 10px;padding:10px 16px;border-top:1px solid var(--d-line);align-items:center;font-size:14px;line-height:19px;background:var(--d-paper)}
.d-t{display:grid;min-width:0}
.d-t b,.d-t span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-t span{color:var(--d-muted)}
.d-tags{grid-column:2;display:grid;min-height:22px;align-items:center;justify-items:start}
.d-tags>*{grid-area:1/1}
.d-wrow.d-on{background:var(--d-surface);box-shadow:inset 3px 0 0 var(--d-ink)}
[data-k=wRowH]{position:absolute;left:0;right:0;top:0}
.d-wthread{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0}
.d-thh{display:flex;align-items:center;gap:10px;padding:14px 24px 12px;border-bottom:1px solid var(--d-line)}
.d-thh b{font-size:22px;line-height:28px;font-weight:700;font-stretch:82%;letter-spacing:-.025em;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-back{display:none;font-size:22px;color:var(--d-muted)}
.d-thin{padding:18px 24px 24px;display:grid;gap:14px;align-content:start}
.d-msg{border:1px solid var(--d-line);border-radius:16px;padding:12px 16px;display:grid;gap:6px}
.d-msg p{font-size:16px;line-height:24px}
/* Rook's draft in the reply's place (app/components/thread/draft-strip.tsx) */
/* One frame and no coloured rail: the header (face, "Rook's draft for Harper", one state chip), a quiet context line,
   the whole draft, its Why open (What Rook used), one action bar, then the footer (design/mockups/draft-card.html). */
.d-strip{background:var(--d-surface);border:2px solid var(--d-line);border-radius:16px;padding:8px 12px 0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;font-size:14px;line-height:21px;box-shadow:var(--d-shadow);min-width:0}
.d-sh{display:flex;align-items:center;gap:8px;min-height:32px}
.d-ctx{font-size:12.5px;line-height:17px;color:var(--d-muted);margin-top:-4px}
.d-ctx b{color:var(--d-ink)}
.d-sh>b,.d-sh .d-one b{flex:1;min-width:0;color:var(--d-agent);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-sh .d-one{flex:1;min-width:0;grid-template-columns:minmax(0,1fr)}
.d-sh .d-one>*{max-width:100%}
.d-strip.d-big{font-size:17px;line-height:26px;padding:12px 18px 0;box-shadow:none}
.d-big .d-ctx{font-size:14px;line-height:20px}
.d-words{position:relative}
.d-words p{margin:0 0 8px}
.d-wcaret{position:absolute;left:0;top:0;width:2px;height:26px;background:var(--d-agent);border-radius:1px;opacity:0;visibility:hidden}
.d-w{opacity:0;border-radius:3px}
.d-used{background:var(--d-sunken);border-radius:12px;padding:8px 12px;display:grid;gap:2px;font-size:13px;line-height:19px;color:var(--d-muted)}
.d-big .d-used{font-size:15px;line-height:22px}
.d-used b{color:var(--d-ink);font-weight:600}
/* The action bar, full width under a line: on a phone the main action is the first row, the rest the second. The undo
   window and Sent take the same bar, so nothing moves. */
.d-slot{display:grid;margin:2px -12px 0;padding:10px 12px 0;border-top:1px solid var(--d-line)}
.d-slot>*{grid-area:1/1}
.d-acts{display:grid;gap:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;align-content:start}
.d-acts>.d-pri,.d-acts>.d-main{grid-column:1/-1;min-height:46px}
.d-acts>.d-g{grid-column:1/3}
.d-acts .d-b{min-height:40px;font-size:14px;padding:0 14px}
.d-then span{overflow:hidden;text-overflow:ellipsis}
.d-more{display:inline-grid;place-items:center;width:36px;height:40px;color:var(--d-muted)}
.d-more svg{width:20px;height:20px}
.d-g{min-width:0;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-mu{color:var(--d-muted)}
.d-acts .d-b.d-quiet{justify-self:end}
.d-foot{display:flex;align-items:center;gap:2px;min-height:36px;margin:0 -4px 2px 0;font-size:12px;line-height:16px;color:var(--d-muted)}
.d-foot .d-one{flex:1;min-width:0;grid-template-columns:minmax(0,1fr)}
.d-why{display:inline-flex;align-items:center;gap:2px;padding:0 8px;font-size:13px;font-weight:700;color:var(--d-human)}
.d-why svg{width:12px;height:12px}
.d-rate{display:inline-flex;color:var(--d-muted)}
.d-rate svg{width:15px;height:15px;margin:0 6px}
.d-rate .d-dn{transform:scale(1,-1)}
/* On the desk, the bar is one row: Approve and send, Edit, Then ▾, then ··· at the end. */
.d-deskbar{display:grid;margin:4px -18px 0;padding:12px 18px 0;border-top:1px solid var(--d-line)}
.d-deskbar .d-acts{grid-template-columns:auto auto auto minmax(0,1fr) auto;justify-items:start}
.d-deskbar .d-acts>.d-pri{grid-column:auto}
.d-deskbar .d-b{font-size:15px;min-height:44px;padding:0 18px}
.d-deskbar .d-more{grid-column:5}
.d-wait{background:var(--d-surface);border-radius:16px;padding:10px 12px;display:grid;gap:2px;font-size:14px;line-height:20px;box-shadow:var(--d-shadow);color:var(--d-muted)}
.d-wait b{color:var(--d-ink)}
.d-em{color:var(--d-ink);font-weight:700;border-bottom:2px solid transparent}
.d-em.on{border-bottom-color:var(--d-ink)}
.d-chg{color:var(--d-human);font-weight:700}

/* The phone */
[data-k=phone]{left:880px;top:40px;width:330px;height:640px;border:10px solid var(--d-bezel);border-radius:48px;background:var(--d-paper);box-shadow:var(--d-shadow);overflow:hidden}
.d-pscreen{position:absolute;left:0;right:0;top:30px;bottom:0;overflow:hidden}
.d-ps{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;visibility:hidden}
.d-ptop{position:relative;z-index:1;background:var(--d-paper);display:flex;align-items:center;gap:8px;padding:8px 14px;min-height:48px;border-bottom:1px solid var(--d-line);font-size:15px}
.d-ptop .d-back{display:block;line-height:1}
.d-ptop b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-ptop.d-big b{font-size:26px;line-height:32px;font-weight:800;font-stretch:82%;letter-spacing:-.03em;flex:none}
.d-me{width:28px;height:28px;font-size:11px;margin-left:auto}
.d-pbody{padding:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-content:start}
.d-pmsg{background:var(--d-surface);border-radius:16px;padding:10px 12px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;font-size:14px;line-height:20px;box-shadow:var(--d-shadow)}
.d-pmsg .d-av{width:28px;height:28px;font-size:11px}
.d-pmsg p{color:var(--d-muted)}
.d-plist{position:relative;flex:1}
.d-prow{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--d-line);background:var(--d-surface);font-size:14px;line-height:19px}
.d-prow .d-av{width:36px;height:36px}
.d-prow.d-top{position:absolute;left:0;right:0;top:0}
.d-side{font-size:12px;color:var(--d-muted);font-weight:700;white-space:nowrap}
.d-tabs{position:absolute;left:0;right:0;bottom:0;height:64px;border-top:1px solid var(--d-line);background:var(--d-surface);display:grid;grid-template-columns:repeat(4,1fr);align-items:center;justify-items:center;font-size:12px;font-weight:700;color:var(--d-muted);padding-bottom:8px}
.d-tabs .d-on{background:#ffc233;color:#1c1a27;border-radius:999px;padding:3px 10px}
/* Notes (app/components/thread/note.tsx) */
.d-slip{background:var(--d-note);border:1px solid var(--d-note-line);border-radius:16px;padding:10px 12px;display:grid;gap:8px}
.d-slip.d-mini{padding:8px 10px}
.d-nl{font-family:"Plex Mono",ui-monospace,monospace;font-size:10.5px;line-height:15px;letter-spacing:.06em;text-transform:uppercase;color:var(--d-note-label);display:flex;gap:6px;align-items:center}
.d-nl svg{width:11px;height:11px}
.d-note{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;font-size:14px;line-height:20px}
.d-note .d-av{width:22px;height:22px}
.d-note .d-nm{display:flex;gap:6px;align-items:baseline}
.d-note .d-nm b{font-size:14px}
.d-src{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px;font-size:12.5px;line-height:17px;color:var(--d-human);margin-top:4px}
.d-n{display:inline-grid;place-items:center;height:20px;border:1px solid var(--d-note-line);border-radius:6px;font-family:"Plex Mono",ui-monospace,monospace;font-size:11px;font-weight:700;color:var(--d-muted)}
.d-c{color:var(--d-muted);display:block}
.d-ncomp{position:absolute;left:10px;right:10px;bottom:10px;background:var(--d-note);border:2px solid var(--d-note-line);border-radius:22px;padding:10px 12px;display:grid;gap:8px;font-size:14px;line-height:20px}
.d-ph{color:var(--d-muted)}
.d-nrow{display:flex;justify-content:flex-end}
.d-add{min-height:36px;padding:0 14px;border-radius:999px;background:var(--d-note-label);color:var(--d-on-ink);font-weight:700;font-size:14px;display:inline-flex;align-items:center}
.d-rcomp{background:var(--d-surface);border:2px solid var(--d-strong);border-radius:16px;display:grid}
.d-rh{padding:6px 12px;border-bottom:1px solid var(--d-line);font-size:13px;color:var(--d-muted)}
.d-rh b{color:var(--d-ink)}
.d-rb{padding:10px 12px;min-height:66px;font-size:14px;line-height:21px}
.d-rf{display:flex;padding:0 10px 10px}
.d-guard{background:var(--d-sunken);border-radius:10px;padding:10px 12px;display:grid;gap:8px;font-size:14px;line-height:20px}
.d-guard b{font-weight:600}
.d-gacts{display:flex;gap:8px;align-items:center}
[data-k=env]{left:0;top:0;width:56px;height:40px}
[data-k=env] svg{width:100%;height:100%;display:block}
[data-k=whoTag]{left:880px;top:8px;width:330px;text-align:center;font-family:"Plex Mono",ui-monospace,monospace;font-size:13px;color:var(--d-muted);letter-spacing:.04em;z-index:4}
[data-k=wash]{inset:0;background:var(--d-paper);z-index:4;pointer-events:none}
[data-k=date]{left:500px;top:250px;width:280px;background:var(--d-surface);border-radius:24px;box-shadow:var(--d-shadow);padding:20px 24px 22px;display:grid;gap:6px;text-align:center;z-index:5}
.d-day{height:52px;overflow:hidden;position:relative}
.d-day span{position:absolute;left:0;right:0;font-size:44px;line-height:52px;font-weight:800;font-stretch:82%;letter-spacing:-.035em}
[data-k=rook]{left:34px;top:572px;width:120px;height:130px;z-index:9}
[data-k=rook] svg{display:block;width:100%;height:100%;overflow:visible}
[data-k=tap]{left:-24px;top:-24px;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--d-ink) 18%,transparent);border:2px solid color-mix(in srgb,var(--d-ink) 45%,transparent);z-index:10}
[data-k=rip]{left:-24px;top:-24px;width:48px;height:48px;border-radius:50%;border:3px solid var(--d-human);z-index:9}
[data-k=end]{inset:0;background:var(--d-paper);display:grid;place-items:center;align-content:center;gap:26px;text-align:center;padding:40px;z-index:8}
.d-brand{display:inline-flex;align-items:center;gap:12px;font-size:24px;font-weight:800;font-stretch:82%;letter-spacing:-.02em}
.d-brand svg{width:44px;height:44px}
.d-endline{font-size:76px;line-height:78px;font-weight:800;font-stretch:82%;letter-spacing:-.04em}
.d-hl{background-image:linear-gradient(transparent var(--d-hl-a),#ffc233 var(--d-hl-a),#ffc233 var(--d-hl-b),transparent var(--d-hl-b));background-repeat:no-repeat;background-size:0% 100%}
.d-endacts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.d-cta{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 24px;border-radius:999px;border:2px solid var(--d-ink);background:transparent;color:var(--d-ink);font:inherit;font-size:17px;font-weight:700;text-decoration:none;cursor:pointer}
.d-cta.d-pri{background:var(--d-ink);color:var(--d-paper)}
.d-cta svg{width:18px;height:18px}
.d-cta:focus-visible{outline:3px solid var(--d-human);outline-offset:3px}

/* A phone-shaped picture on a small screen: the stage is the phone */
@media (max-width:600px){
  .d-stage{width:360px;height:640px;font-size:14px;line-height:21px}
  .d-vstatus{display:flex;z-index:12;background:var(--d-paper);height:28px}
  [data-k=whoTag]{left:90px;top:6px;width:180px;font-size:11px;z-index:13}
  [data-k=floor]{left:18px;top:52px;width:324px}
  .d-flh{margin-bottom:14px}
  .d-flh .d-av{width:40px;height:40px;font-size:14px}
  .d-flh b{font-size:20px;line-height:24px}
  .d-tickets{gap:8px}
  .d-ticket{width:100px;font-size:12px;line-height:17px;padding:9px 9px 11px}
  .d-ticket span{font-size:11px}
  .d-queue{margin-top:14px;font-size:13px}
  [data-k=mail]{left:14px;top:300px;width:332px;padding:16px 18px;border-radius:20px;gap:8px}
  .d-msub{font-size:22px;line-height:27px}
  .d-mbody{font-size:16px;line-height:24px}
  .d-win{left:0;top:28px;width:360px;height:612px;border-radius:0;box-shadow:none;background:var(--d-paper);grid-template-rows:minmax(0,1fr)}
  .d-wbar,.d-wlist{display:none}
  .d-wbody{grid-template-columns:minmax(0,1fr)}
  .d-thh{padding:8px 14px;gap:8px;flex-wrap:wrap}
  .d-thh .d-back{display:block}
  .d-thh b{font-size:17px;line-height:22px}
  .d-thin{padding:12px 12px 20px;gap:10px}
  .d-msg{padding:10px 12px;background:var(--d-surface)}
  .d-msg p{font-size:14px;line-height:21px}
  .d-strip.d-big{font-size:15px;line-height:23px;padding:10px 12px}
  .d-big .d-used{font-size:13px;line-height:19px}
  .d-deskbar{display:none}
  .d-wcaret{height:23px}
  [data-k=phone]{left:0;top:0;width:360px;height:640px;border:0;border-radius:0;box-shadow:none}
  [data-k=phone]>.d-status{display:none}
  .d-pscreen{top:28px}
  .d-tabs{display:none}
  [data-k=date]{left:50px;top:220px;width:260px}
  .d-pscreen{bottom:72px}
  .d-win{height:540px}
  [data-k=rook]{left:12px;top:568px;width:62px;height:68px}
  [data-k=end]{padding:28px 22px 96px;gap:20px}
  .d-brand{font-size:20px}
  .d-brand svg{width:36px;height:36px}
  .d-endline{font-size:40px;line-height:42px}
  .d-endacts{flex-direction:column;align-items:stretch;width:100%}
  .d-cta{min-height:48px;font-size:16px;justify-content:center}
}
