/* Example cards: small product examples on the website that play a short silent loop (site/public/demos.js).
   The markup holds the end state, so a card reads correctly with no script and with motion turned off.
   Layout only: every colour, font, corner and shadow is a token. State is a shape and a word. */
.hd{position:relative;box-sizing:border-box;margin:0;min-width:0;background:var(--surface);border:var(--rule) solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow-2);font:var(--weight-regular) var(--size-m)/var(--leading-snug) var(--font-text);color:var(--text);text-align:left;overflow:hidden}
.hd p{margin:0}
.hd b{font-weight:var(--weight-bold)}
.hd-top{display:flex;align-items:center;gap:var(--s2);min-height:42px;padding:0 var(--s4);border-bottom:var(--rule) solid var(--line);background:var(--sunken)}
.hd-kind,.hd-from{font-size:var(--size-xs);color:var(--text-muted)}
.hd-kind{font-weight:var(--weight-bold)}
.hd-body{padding:var(--s4);transition:opacity .28s ease}
.hd.is-fading .hd-body{opacity:0}
.hd.is-resetting,.hd.is-resetting *{transition:none!important;animation:none!important}
.hd-code{font-family:var(--font-code);font-size:var(--size-xs)}
.hd-push{margin-left:auto}
.hd-cut{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-num{font-size:var(--size-s);color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.hd-line{display:flex;align-items:center;gap:var(--s2);min-height:24px}
.hd-status{min-height:26px}
.hd-tag{display:inline-flex;align-items:center;height:21px;padding:0 7px;border:var(--rule) solid var(--accent-line);border-radius:var(--r-s);background:var(--accent-soft);color:var(--text-accent);font:var(--weight-bold) var(--size-xs)/var(--leading-none) var(--font-text);white-space:nowrap}

/* One pause control in every card's top bar: pause shows the finished result, play starts the loop again. */
.hd-ctl{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;min-height:28px;margin-left:auto;padding:0;border:0;border-radius:var(--r-s);background:transparent;color:var(--text-muted);cursor:pointer}
.hd-ctl[hidden],.hd-tabs[hidden]{display:none}
.hd-push+.hd-ctl{margin-left:var(--s1)}
.hd-ctl:hover{background:var(--hover);color:var(--text)}
.hd-ctl:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hd-ctl::before{content:"";width:3px;height:11px;margin-right:6px;background:currentColor;box-shadow:6px 0 0 currentColor}
.hd-ctl.is-paused::before{width:10px;height:12px;margin:0 0 0 2px;box-shadow:none;clip-path:polygon(0 0,100% 50%,0 100%)}
.hd-term .hd-ctl{color:var(--text-code-muted)}
.hd-term .hd-ctl:hover{background:var(--code-hover);color:var(--text-code)}
.hd-body .is-off{opacity:0}

.hd[role="tabpanel"]{padding-top:0}

/* A stack: one story told in the terminal, the console and by an AI agent. All views play on one clock; left alone, the
   view swaps at each step so visitors see the same step both ways. A tab pins one view. The current view is a blue
   underline, as everywhere else. */
.hd-tabs{display:flex;gap:var(--s4);margin-bottom:var(--s3)}
.hd-tabs button{position:relative;appearance:none;min-height:32px;padding:0 2px;border:0;background:none;font:var(--weight-bold) var(--size-m)/var(--leading-none) var(--font-text);color:var(--text-muted);cursor:pointer;transition:color .2s ease}
.hd-tabs button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent;transition:background-color .2s ease}
.hd-tabs button:hover{color:var(--text)}
.hd-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:var(--r-s)}
.hd-tabs button[aria-selected="true"]{color:var(--text)}
.hd-tabs button[aria-selected="true"]::after{background:var(--accent)}
.hd-deck{display:grid;gap:var(--s4)}
.hd-stack.is-live .hd-deck{gap:0}
.hd-stack.is-live .hd-deck>.hd{grid-area:1/1;transition:opacity .35s ease}
.hd-deck>.hd.is-back{opacity:0;pointer-events:none}

/* The console view: a small copy of the console, with the ink side menu and one page at a time. */
.hd-deck>.hd-app{display:flex;flex-direction:column}
.hd-app .hd-body{display:grid;flex:1;padding:0}
.hd-shell{display:grid;grid-template-columns:132px minmax(0,1fr);min-height:304px}
.hd-nav{list-style:none;margin:0;padding:var(--s3) var(--s2);background:var(--wall);color:var(--text-wall-soft);font-size:var(--size-xs)}
.hd-nav li{display:flex;align-items:center;min-height:28px;margin-bottom:1px;padding:0 var(--s2);border-radius:var(--r-s);transition:background .2s ease,color .2s ease}
.hd-nav li.is-here{background:var(--wall-tile);color:var(--text-wall);font-weight:var(--weight-bold)}
.hd-main{min-width:0;padding:var(--s4)}
.hd-page.is-gone,.hd-btn.is-gone{display:none}
.hd-h{margin:0 0 var(--s3)!important;font-size:var(--size-l);font-weight:var(--weight-bold);color:var(--text)}
.hd-dim2{color:var(--text-muted);font-weight:var(--weight-regular)}
.hd-note2{margin-top:var(--s2)!important;font-size:var(--size-xs);color:var(--text-muted);font-variant-numeric:tabular-nums;transition:opacity .25s ease}
.hd-note2.is-off{opacity:0}
.hd-app .hd-diffs{min-height:0}
.hd-app .hd-check .hd-btn{margin-left:var(--s2)}

/* Shapes: disc good, triangle look at this, octagon failed, ring waiting, turning ring working, red dot recording. */
.hd-mark{display:inline-block;box-sizing:border-box;flex:none;width:12px;height:12px}
.hd-mark.is-ok{border-radius:50%;background:var(--fixed)}
.hd-mark.is-warn{background:var(--caution);clip-path:var(--shape-triangle)}
.hd-mark.is-bad{background:var(--broken);clip-path:var(--shape-octagon)}
.hd-mark.is-wait{border-radius:50%;border:1.5px solid var(--line-strong)}
.hd-mark.is-busy{border-radius:50%;border:1.5px solid var(--accent-line);border-top-color:var(--accent);animation:hd-turn .8s linear infinite}
.hd-mark.is-live{border-radius:50%;background:var(--live);animation:hd-pulse 1.2s ease-in-out infinite}
@keyframes hd-turn{to{transform:rotate(360deg)}}
@keyframes hd-pulse{50%{opacity:.35}}
@keyframes hd-blink{50%{opacity:0}}
@keyframes hd-in{from{opacity:0;transform:translateY(6px)}}

/* Three numbers under a result. */
.hd-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2);margin:var(--s3) 0 0}
.hd-metrics div{padding:10px var(--s3);border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground)}
.hd-metrics dt{font-size:var(--size-xs);color:var(--text-muted)}
.hd-metrics dd{margin:2px 0 0;font-size:var(--size-2xl);font-weight:var(--weight-bold);font-variant-numeric:tabular-nums}

/* A result bar across the foot of a card. */
.hd-foot{display:flex;align-items:center;gap:var(--s2);min-height:40px;margin-top:var(--s3);padding:var(--s2) var(--s3);border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground);transition:opacity .3s ease,background .3s ease,border-color .3s ease}
.hd-foot.is-done{background:var(--fixed-bg);border-color:var(--fixed-line)}
.hd-foot.is-off{opacity:0}

/* Pull request: a list of checks, the failed one opened. */
.hd-title{font-size:var(--size-l);font-weight:var(--weight-bold);line-height:var(--leading-snug)}
.hd-sub{margin:2px 0 var(--s3)!important;font-size:var(--size-s);color:var(--text-muted)}
.hd-checks{list-style:none;margin:0;padding:0;border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground);overflow:hidden}
.hd-checks>li{border-bottom:var(--rule) solid var(--line)}
.hd-checks>li:last-child{border-bottom:0}
.hd-check{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 var(--s3)}
.hd-res{margin-left:auto;font-size:var(--size-s);color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.hd-check.is-failed{background:var(--broken-bg)}
.hd-check.is-failed .hd-res{color:var(--text-bad);font-weight:var(--weight-bold)}
/* A check that caught something: amber, look at this. The check worked; it is the change that is held. */
.hd-check.is-caught{background:var(--caution-bg)}
.hd-check.is-caught .hd-res{color:var(--text-warn);font-weight:var(--weight-bold)}
.hd-found{padding:var(--s2) var(--s3) var(--s2) 34px}
.hd-found>*{display:flex;align-items:center;gap:var(--s2);min-height:28px;transition:opacity .25s ease,transform .25s ease}
.hd-found>.is-off{opacity:0;transform:translateY(5px)}
.hd-found .hd-cap{font-size:var(--size-s);color:var(--text-soft)}
.hd-val{margin-left:auto;white-space:nowrap}
.hd-val b{color:var(--text-warn)}
.hd-merge{display:flex;align-items:center;gap:10px;margin-top:var(--s3);font-size:var(--size-s);color:var(--text-soft)}
.hd-btn-off{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:var(--r-m);border:var(--rule) solid var(--line-strong);background:var(--sunken);color:var(--text-muted);font-weight:var(--weight-bold);font-size:var(--size-m)}

/* Console: a boxed step with its state line, a note under it, and a control drawn as it looks on screen. */
.hd-panel{margin:6px 0 var(--s3);padding:var(--s3);border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground)}
.hd-panel .hd-line{min-height:30px}
.hd-note{margin-top:var(--s2)!important;min-height:38px;font-size:var(--size-s);color:var(--text-soft)}
.hd-btn{display:inline-flex;align-items:center;height:30px;padding:0 var(--s3);border:var(--rule) solid var(--line-strong);border-radius:var(--r-m);background:var(--surface);font-size:var(--size-s);font-weight:var(--weight-bold);white-space:nowrap;transition:background .15s ease,opacity .2s ease}
.hd-btn.is-pressed{background:var(--hover)}
.hd-run{display:grid;min-width:0;padding:6px 0}
.hd-run small{font-size:var(--size-xs);color:var(--text-muted)}
.hd-res.is-changed{color:var(--text-warn);font-weight:var(--weight-bold)}
.hd-checks,.hd-cap{transition:opacity .25s ease}

/* Replay: a progress line, the answers that changed, one opened as a small table. */
.hd-bar{height:3px;margin:10px 0 var(--s3);border-radius:3px;background:var(--line);overflow:hidden}
.hd-bar i{display:block;height:100%;width:100%;background:var(--accent);transition:width .25s linear}
.hd-cap{font-size:var(--size-xs);font-weight:var(--weight-bold);color:var(--text-muted)}
.hd-diffs{list-style:none;margin:6px 0 0;padding:0;min-height:150px;border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground);overflow:hidden}
.hd-diffs>li{border-bottom:var(--rule) solid var(--line);transition:opacity .25s ease,transform .25s ease}
.hd-diffs>li:last-child{border-bottom:0}
.hd-diffs>li.is-off{opacity:0;transform:translateY(6px)}
.hd-diff{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 var(--s3)}
.hd-word{margin-left:auto;font-size:var(--size-xs);font-weight:var(--weight-bold);color:var(--text-warn);white-space:nowrap}
.hd-table{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);margin:0 var(--s3) var(--s3) 34px;border:var(--rule) solid var(--line);border-radius:var(--r-s);background:var(--surface);overflow:hidden;transition:opacity .3s ease,transform .3s ease}
.hd-table.is-off{opacity:0;transform:translateY(6px)}
.hd-table>span{padding:6px 10px;min-width:0}
.hd-table .hd-th{font-size:var(--size-xs);color:var(--text-muted);background:var(--sunken);border-bottom:var(--rule) solid var(--line)}
.hd-now{padding:1px 5px;border-radius:4px;border:var(--rule) solid var(--caution-line);background:var(--caution-bg);color:var(--text-warn);font-weight:var(--weight-bold)}

/* Terminal: ink in both themes. */
.hd-term{background:var(--code-bg);border-color:var(--code-line);color:var(--text-code)}
.hd-term .hd-top{background:transparent;border-color:var(--code-line)}
.hd-term .hd-kind{color:var(--text-code-muted)}
.hd-term .hd-body{min-height:304px;font-family:var(--font-code);font-size:var(--size-xs);line-height:var(--leading-body)}
.hd-tl{white-space:pre-wrap;overflow-wrap:anywhere}
.hd-tl.is-off{visibility:hidden}
.hd-dim{color:var(--text-code-muted)}
.hd-gap{height:var(--s2)}
.hd-caret{display:none;width:7px;height:14px;margin:4px 0 0 1px;background:var(--code-ink);vertical-align:top;animation:hd-blink 1s steps(1) infinite}
.hd-tl.is-typing .hd-caret{display:inline-block}

/* AI agent: the person's request, each Crumbtrail tool the agent calls with its result, then the agent's answer. */
.hd-agent .hd-body{display:flex;flex-direction:column;gap:var(--s3);min-height:304px}
.ha-ask{align-self:flex-end;max-width:85%;padding:var(--s2) var(--s3);border-radius:var(--r-l) var(--r-l) var(--r-s) var(--r-l);background:var(--accent-soft);border:var(--rule) solid var(--accent-line);font-size:var(--size-s);line-height:var(--leading-snug)}
.ha-ask.is-typing .hd-caret{display:inline-block;background:var(--text)}
.ha-calls{list-style:none;margin:0;padding:0;border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground);overflow:hidden}
.ha-calls>li{display:flex;align-items:center;gap:10px;min-height:34px;padding:0 var(--s3);border-bottom:var(--rule) solid var(--line);transition:opacity .25s ease,transform .25s ease}
.ha-calls>li:last-child{border-bottom:0}
.ha-calls>li.is-off{display:none}
.ha-calls:not(:has(>li:not(.is-off))){visibility:hidden}
.ha-reply.is-off{opacity:0;transform:translateY(6px)}
.ha-reply{display:grid;gap:var(--s2);max-width:92%;font-size:var(--size-s);line-height:var(--leading-snug);transition:opacity .3s ease,transform .3s ease}
.ha-found{list-style:none;margin:0;padding:0;display:grid;gap:var(--s1);max-width:340px}
.ha-found li{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}

/* Mocks: the app, the services it calls and a switch on each. */
.hd-mock{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:stretch}
.hd-mock-app{display:flex;flex-direction:column;justify-content:center;gap:var(--s1);padding:var(--s3);border:var(--rule) solid var(--line-strong);border-radius:var(--r-m);background:var(--ground)}
.hd-mock-app small{font-size:var(--size-xs);color:var(--text-muted)}
.hd-mock-app b{font-family:var(--font-code);font-size:var(--size-s)}
.hd-mock-app .hd-line{margin-top:var(--s1);font-size:var(--size-xs);color:var(--text-soft);white-space:nowrap}
.hd-svcs{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2)}
.hd-svcs li{display:flex;align-items:center;min-height:52px}
.hd-track{position:relative;flex:none;width:44px;height:1px;background:var(--line-strong)}
.hd-track i{position:absolute;top:-4px;left:0;width:9px;height:9px;border-radius:50%;background:var(--accent);animation:hd-run 1.3s linear infinite;transition:background .3s ease}
.hd-track i+i{animation-delay:-.65s}
@keyframes hd-run{from{left:0;opacity:0}15%{opacity:1}85%{opacity:1}to{left:calc(100% - 9px);opacity:0}}
.hd-svc{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:52px;padding:6px var(--s3);border:var(--rule) solid var(--accent-line);border-radius:var(--r-m);background:var(--accent-soft);transition:background .3s ease,border-color .3s ease}
.hd-svc-t{min-width:0;display:grid}
.hd-svc-t small{font-size:var(--size-xs);color:var(--text-accent)}
.hd-switch{position:relative;flex:none;margin-left:auto;width:30px;height:18px;border-radius:var(--r-pill);background:var(--line-strong);transition:background .25s ease}
.hd-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--surface);transition:left .25s ease}
.hd-svcs li.is-live .hd-svc{background:var(--ground);border-color:var(--line)}
.hd-svcs li.is-live .hd-svc-t small{color:var(--text-muted)}
.hd-svcs li.is-live .hd-switch{background:var(--ink-2)}
.hd-svcs li.is-live .hd-switch::after{left:14px}
.hd-svcs li.is-live .hd-track i{background:var(--muted)}

/* Data copy: rows in the original and the few that are copied. */
.hd-panes{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:var(--s3);margin-top:var(--s3)}
.hd-pane{padding:10px var(--s3) var(--s3);border:var(--rule) solid var(--line);border-radius:var(--r-m);background:var(--ground)}
.hd-pane-k{display:block;margin-bottom:var(--s2);font-size:var(--size-xs);font-weight:var(--weight-bold);color:var(--text-muted)}
.hd-dots{display:grid;grid-template-columns:repeat(auto-fill,8px);gap:4px}
.hd-dots i,.hd-fly i{width:8px;height:8px;border-radius:50%;background:var(--line-strong);transition:background .25s ease,transform .25s ease}
.hd-dots i.is-hit{background:var(--accent);transform:scale(1.15)}
.hd-slots{display:grid;grid-template-columns:repeat(6,8px);gap:4px}
.hd-slots i{box-sizing:border-box;width:8px;height:8px;border-radius:50%;background:var(--accent);transition:background .2s ease}
.hd-slots i.is-empty{background:transparent;border:var(--rule) dashed var(--line-strong)}
.hd-fly{position:absolute;inset:0;pointer-events:none}
.hd-fly i{position:absolute;left:0;top:0;background:var(--accent);transition:transform .62s cubic-bezier(.3,.7,.2,1)}
.hd-steps{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:2px}
.hd-steps li{display:flex;align-items:center;gap:var(--s2);min-height:24px;color:var(--text-soft)}

/* The hero demo. It plays once when its Record button is pressed, not by itself: an order is recorded, a change
   arrives, the recording is replayed against it, and the answers that changed stop the merge. The markup holds
   the end state; the start screen is shown only where scripts run and motion is welcome. */
.hs-stage{position:relative}
.hs-steps{list-style:none;display:flex;gap:var(--s3);margin:0 0 0 auto;padding:0;font-size:var(--size-xs);color:var(--text-muted)}
.hs-steps li{transition:color .2s ease}
.hs-steps li.is-here{color:var(--text);font-weight:var(--weight-bold)}
.hs-ctl{flex:none;appearance:none;min-height:28px;margin-left:var(--s2);padding:0 var(--s2);border:0;border-radius:var(--r-s);background:transparent;color:var(--text-soft);font:var(--weight-bold) var(--size-xs)/var(--leading-none) var(--font-text);cursor:pointer}
.hs-ctl[hidden]{display:none}
.hs-ctl:hover{background:var(--hover);color:var(--text)}
.hs-ctl:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hs-panes{display:flex;margin-top:var(--s2)}
.hs-pane{flex:1 1 0;min-width:0;box-sizing:border-box}
.hs-pane .hd-pane-k{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-side{flex:0 1 0;min-width:0;overflow:hidden;opacity:0;transition:flex-grow .5s cubic-bezier(.16,1,.3,1),opacity .3s ease .12s}
.hs-side.is-open{flex-grow:1;opacity:1}
.hs-side .hs-pane{margin-left:var(--s3)}
.hs-lines{list-style:none;margin:0;padding:0}
.hs-lines li,.hs-total{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);white-space:nowrap;font-variant-numeric:tabular-nums;transition:opacity .25s ease}
.hs-lines li{min-height:26px}
.hs-lines li>:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* A line fades in where it stands: a moving dot starts from it or lands on it, so it must not shift. */
.hs-lines li.is-off,.hs-total.is-off{opacity:0}
.hs-lines li.is-missing>:first-child{color:var(--text-muted)}
.hs-total{min-height:32px;margin-top:var(--s1);border-top:var(--rule) solid var(--line);font-weight:var(--weight-bold)}
.hs-rec{margin-top:var(--s3)}
.hs-rec-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:var(--s2)}
.hs-rec-top .hd-num{margin-bottom:var(--s2);font-size:var(--size-xs)}
.hs-trail{display:flex;align-items:center;justify-content:space-between;height:14px}
.hs-trail i{box-sizing:border-box;flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent);transition:background .2s ease,transform .2s ease}
.hs-trail i.is-empty{background:transparent;border:var(--rule) dashed var(--line-strong)}
.hs-trail i.is-same{background:var(--fixed)}
.hs-trail i.is-changed{width:12px;height:12px;border-radius:0;background:var(--caution);clip-path:var(--shape-triangle)}
.hs-trail i.is-now{transform:scale(1.4)}
.hs-change{margin-top:var(--s4);transition:opacity .35s ease,transform .5s cubic-bezier(.16,1,.3,1)}
.hs-change.is-off{opacity:0;transform:translateY(10px)}
.hs-change-t{display:flex;align-items:baseline;gap:var(--s2);font-size:var(--size-l)}
.hs-change-t .hd-code{color:var(--text-muted)}
.hs-start{display:none}
.hs-go::before{content:"";box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle,var(--record-mark) 0 3.5px,var(--on-accent-fill) 4px)}
.hs-go:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){
  .hd-story:not(.is-live) .hd-body{opacity:.3}
  .hd-story:not(.is-live) .hs-steps li{color:var(--text-muted);font-weight:var(--weight-regular)}
  .hd-story:not(.is-live) .hs-start{position:absolute;inset:0;width:max-content;height:max-content;margin:auto;display:grid;justify-items:center;gap:var(--s3);padding:var(--s6) var(--s8);border:var(--rule) solid var(--line-strong);border-radius:var(--r-l);background:var(--surface);box-shadow:var(--shadow-2);text-align:center}
  .hd-story.is-live .hd-body{animation:hd-in .45s cubic-bezier(.16,1,.3,1)}
}

@media (prefers-reduced-motion:reduce){
  .hd *{animation:none!important;transition:none!important}
  .hd-track i{display:none}
}
@media (max-width:460px){
  .hd-body{padding:var(--s3)}
  .hd-top{padding:0 var(--s3)}
  .hd-found{padding-left:var(--s3)}
  .hd-table{margin-left:var(--s3)}
  .hd-verb{display:none}
  .hd-line{align-items:flex-start}
  .hd-line .hd-mark{margin-top:4px}
  .hd-status{min-height:44px}
  .hd-status.hd-wrap{flex-wrap:wrap}
  .hd-status.hd-wrap .hd-push{margin-left:20px}
  .hd-term .hd-body{min-height:420px}
  .hd-agent .hd-body{min-height:420px}
  .ha-calls>li{flex-wrap:wrap;padding:6px var(--s3);gap:2px 10px}
  .ha-calls .hd-res{margin-left:22px;white-space:normal}
  .ha-ask,.ha-reply{max-width:100%}
  .hd-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;min-height:420px}
  .hd-nav{display:flex;gap:var(--s1);overflow:hidden;padding:var(--s2)}
  .hd-nav li{flex:none;margin:0}
  .hd-nav li:nth-child(n+4){display:none}
  .hd-main{padding:var(--s3)}
  .hd-mock{grid-template-columns:minmax(0,1fr);gap:10px}
  .hd-track{display:none}
  .hd-panes{grid-template-columns:minmax(0,1fr)}
  .hd-slots{grid-template-columns:repeat(12,8px)}
  .hd-metrics dd{font-size:var(--size-xl)}
}
