/* Local navbar prototype. Surfaces, type, radii and colours are the app's
   Tower design tokens (CrewTower/UI/Tower.swift); layout follows the app as
   it draws (SessionRowView, ConversationPage, ConversationBlockViews),
   independently of the older, still-used feature illustrations in
   hero-demo.css. The app draws its sheet 12pt wider than its content frame
   on each side, so every inset here is the app's own value less 12. */
/* main.js reads this from documentElement, just like the anchor targets. */
:root { --nav-offset: 68px; }
.has-notch-demo::before { content: ''; position: fixed; inset: 0 0 auto; height: 3px; background: #000; z-index: 79; pointer-events: none; }
/* Only the drawn notch catches the pointer. No screen-wide overlay. */
.nd {
  --nd-shoulder: 20px; --nd-width: 446px;
  /* Tower.Palette */
  --t-sheet: #0f0f10; --t-raised: #18181a; --t-raised2: #232325; --t-sunken: #09090a; --t-hover2: #2c2c2f;
  --t-line: rgb(255 255 255 / .075); --t-line-strong: rgb(255 255 255 / .16);
  --t-harbor: #4fb3bf;
  --t-text1: #f5f5f7; --t-text2: #c4c4ca; --t-text3: #8e8e95; --t-text4: #5f5f66;
  /* The state colours, each named for what it is: an approval, a question,
     work under way, a finish (and a diff's additions), a failure (and its
     deletions). The link colour is for links in what an agent wrote. */
  --t-ember: #ff7a3d; --t-iris: #a48cff; --t-slate: #6c9bc0; --t-mint: #6ee7c0; --t-rose: #ff4f79; --t-link: #6cb4ff;
  /* SF Pro for words (an agent's prose a little larger and looser), SF Mono for code. */
  --t-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --t-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sig: var(--t-text2); --sig-rgb: 196 196 202;
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--nd-width), calc(100vw - 24px)); z-index: 80;
  color: var(--t-text1); font: 400 12px/16px var(--t-sans); letter-spacing: 0; font-variant-numeric: tabular-nums;
  transition: width 1s cubic-bezier(.22, 1, .28, 1); color-scheme: dark; -webkit-font-smoothing: antialiased;
}
.nd[data-open="true"] { --nd-width: 760px; }
/* Concave shoulders join the black top edge without extending the hit area. */
.nd::before, .nd::after { content: ''; position: absolute; top: 0; width: var(--nd-shoulder); height: var(--nd-shoulder); pointer-events: none; background: radial-gradient(circle at 0 100%, transparent calc(var(--nd-shoulder) - .4px), #000 var(--nd-shoulder)); }
.nd::before { right: 100%; }
.nd::after { left: 100%; transform: scaleX(-1); }
.nd *, .nd-terminal * { box-sizing: border-box; min-width: 0; }
/* Resets without weight, so every class below wins over them and over the site's own element styles. */
:where(.nd, .nd-terminal) :where(button, select, input, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
:where(.nd) :where(p, h3, h4, ul, dl, dd, pre) { margin: 0; }
:where(.nd) :where(h3, h4) { font: inherit; }
.nd code { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; }
.nd button { cursor: pointer; }
.nd button:disabled { cursor: default; }
.nd :focus-visible { outline: 2px solid #ab9eff; outline-offset: 2px; }
.nd[data-input="pointer"] button:focus-visible, .nd[data-input="pointer"] [tabindex]:focus-visible { outline: none; }
.nd-i { width: 11px; height: 11px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.nd-i .nd-i-fill { fill: currentColor; stroke: none; }
.nd-i .nd-i-cut { stroke: var(--t-sheet); stroke-width: 1.6; }

/* One meaning per colour. --sig-rgb carries the same colour for its tints. */
[data-signal="ember"] { --sig: var(--t-ember); --sig-rgb: 255 122 61; }
[data-signal="iris"] { --sig: var(--t-iris); --sig-rgb: 164 140 255; }
[data-signal="slate"] { --sig: var(--t-slate); --sig-rgb: 108 155 192; }
[data-signal="mint"] { --sig: var(--t-mint); --sig-rgb: 110 231 192; }
[data-signal="rose"] { --sig: var(--t-rose); --sig-rgb: 255 79 121; }
[data-signal="text3"] { --sig: var(--t-text3); --sig-rgb: 142 142 149; }
[data-signal="text4"] { --sig: var(--t-text4); --sig-rgb: 95 95 102; }
.nd-c-ember { color: var(--t-ember); } .nd-c-iris { color: var(--t-iris); } .nd-c-slate { color: var(--t-slate); } .nd-c-mint { color: var(--t-mint); } .nd-c-rose { color: var(--t-rose); }
.nd-c-text1 { color: var(--t-text1); } .nd-c-text2 { color: var(--t-text2); } .nd-c-text3 { color: var(--t-text3); } .nd-c-text4 { color: var(--t-text4); }
.nd-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sig); flex-shrink: 0; }
.nd-bg-ember { background: var(--t-ember); } .nd-bg-iris { background: var(--t-iris); } .nd-bg-slate { background: var(--t-slate); } .nd-bg-mint { background: var(--t-mint); } .nd-bg-rose { background: var(--t-rose); }
.nd-bg-text2 { background: var(--t-text2); } .nd-bg-text3 { background: var(--t-text3); } .nd-bg-text4 { background: var(--t-text4); }

/* The bar and the sheet. */
.nd-shell { background: var(--t-sheet); border-radius: 0 0 22px 22px; overflow: hidden; box-shadow: 0 5px 12px #0002; transition: box-shadow .5s, border-radius 1s; position: relative; }
.nd[data-open="true"] .nd-shell { border-radius: 0 0 32px 32px; box-shadow: 0 16px 50px #110d2938, 0 2px 6px #0003; }
.nd-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 42px; background: #000; border: 0; padding: 0 17px; color: var(--t-text1); }
.nd-trigger:focus-visible { outline-offset: -4px !important; border-radius: 0 0 16px 16px; }
.nd-camera { flex: 1; display: grid; place-items: center; height: 100%; }
.nd-nudge-label { font-size: 11px; color: #eee8f5; white-space: nowrap; letter-spacing: .01em; transition: opacity .2s; }
.nd-nudge-label > span { margin-left: 4px; color: #93839f; }
.nd[data-open="true"] .nd-nudge-label { opacity: 0; animation: none; }
.nd-wing { display: flex; align-items: center; flex: 0 0 auto; gap: 9px; }
.nd-wing-right { justify-content: center; overflow: hidden; height: 42px; width: 43px; }
.nd-character-toggle { position: absolute; top: 0; right: 12px; height: 42px; width: 49px; background: none; border: 0; border-radius: 0 0 14px 14px; z-index: 2; }
.nd-character-toggle:hover { background: #ffffff0c; }
.nd-wing-left { transition: opacity .2s; }
.nd[data-open="true"] .nd-wing-left { opacity: 0; }
/* WaitingCount: a coloured digit beside its agent's mark, no badge. */
.nd-mark-group { display: inline-flex; align-items: center; gap: 4px; }
.nd-count { font-size: 12px; line-height: 1; font-weight: 600; min-width: 8px; }

/* Companions: one strip per mood, cut to the pet's content box and fitted to
   the bar's 32pt, like CharacterView. Motion continues while collapsed and
   pauses in a hidden tab. */
.nd-pet { position: relative; display: block; flex-shrink: 0; overflow: hidden; }
.nd-pet > i { position: absolute; left: 0; top: 0; transform-origin: 0 0; background-repeat: no-repeat; background-position: calc(var(--x) * -1px) calc(var(--y) * -1px); image-rendering: pixelated; animation-name: nd-strip; animation-fill-mode: forwards; }
@keyframes nd-strip { from { background-position-x: calc(var(--x) * -1px); } to { background-position-x: calc((var(--x) + var(--span)) * -1px); } }
.nd[data-page-visible="false"] .nd-pet > i { animation-play-state: paused; }
.nd-mini-quota { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.nd-mini-quota svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.6; }
.nd-mini-quota circle:first-child { stroke: var(--t-raised2); }
.nd-mini-quota circle:last-child { stroke: var(--t-text2); stroke-linecap: round; }
.nd-mini-quota span { font-size: 8px; font-weight: 600; color: var(--t-text2); }

/* SessionMark: the agent's own mark, 20pt; 11pt in a row's footnote, beside where it runs. */
.nd-brand { position: relative; display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; color: #fff; }
.nd-brand.nd-brand-foot { width: 11px; height: 11px; flex-basis: 11px; margin-right: 6px; }
.nd-brand-mark { display: block; width: 100%; height: 100%; background: currentColor; mask: var(--nd-logo) center / contain no-repeat; -webkit-mask: var(--nd-logo) center / contain no-repeat; }
.nd-brand[data-brand="claude"] { --nd-logo: url('assets/brand/claude.svg'); color: #d97757; }
.nd-brand[data-brand="codex"] { --nd-logo: url('assets/brand/codex.svg'); }
.nd-brand[data-brand="cursor"] { --nd-logo: url('assets/brand/cursor.svg'); }
.nd-brand[data-brand="opencode"] { --nd-logo: url('assets/brand/opencode.svg'); }
@keyframes nd-turn { to { transform: rotate(360deg); } }

/* StateGlyph: one silhouette per state on a 20pt grid, cut-outs in the dark
   the app cuts them with. Two things move, and only while the notch is open:
   a ripple leaving a state that waits on you, and the arc round a working ring. */
.nd-state-glyph { position: relative; display: block; flex: 0 0 auto; width: var(--g-size, 20px); height: var(--g-size, 20px); color: var(--t-text3); }
.nd-state-glyph[data-g="needs"] { color: var(--t-ember); }
.nd-state-glyph[data-g="question"] { color: var(--t-iris); }
.nd-state-glyph[data-g="working"] { color: var(--t-slate); }
.nd-state-glyph[data-g="failed"] { color: var(--t-rose); }
.nd-state-glyph[data-g="unread"] { color: var(--t-mint); }
/* A read finish's check sits under the words' grey, so it never outranks anything still asking. */
.nd-state-glyph[data-g="read"] { color: #6e6e76; }
.nd-g, .nd-ripple { position: absolute; overflow: visible; pointer-events: none; }
.nd-g { inset: 0; width: 100%; height: 100%; }
.nd-g .nd-g-fill { fill: currentColor; }
.nd-g .nd-g-cut { fill: #141018; }
.nd-g .nd-g-cut-line { fill: none; stroke: #141018; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.nd-g .nd-g-line { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nd-g .nd-g-ring { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
/* The working ring: its track, a pie filling with the plan, and the arc going round. */
.nd-g .nd-g-track, .nd-g .nd-g-sweep { fill: none; stroke: currentColor; stroke-width: 2.444; }
.nd-g .nd-g-track { opacity: .55; }
.nd-g .nd-g-sweep { stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); animation: nd-sweep 3s linear infinite; }
@keyframes nd-sweep { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
/* The one motion that asks: an outline leaving the glyph every 1.6 s. */
.nd-ripple { left: -50%; top: -50%; width: 200%; height: 200%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nd-ripple > * { vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; animation: nd-ripple 1.6s ease-out infinite; }
@keyframes nd-ripple { from { transform: scale(.4421); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.nd:not([data-open="true"]) :is(.nd-ripple > *, .nd-g-sweep) { animation: none; }
/* ActivitySpinner. */
.nd-spin { width: 11px; height: 11px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; animation: nd-turn .9s linear infinite; }

/* SessionFilterBar, and the way back from a conversation, in the open bar's left wing. */
.nd-filter { position: absolute; top: 0; left: 10px; height: 42px; display: flex; align-items: center; gap: 12px; z-index: 3; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.nd[data-open="true"] .nd-filter { opacity: 1; visibility: visible; transition-delay: .15s; }
.nd-segments { display: flex; gap: 4px; }
.nd-segment, .nd-mark-all, .nd-back, .nd-marked button { display: inline-flex; align-items: center; height: 24px; border: 0; border-radius: 8px; background: none; font-weight: 500; white-space: nowrap; transition: background-color .12s, color .12s; }
.nd-segment { gap: 5px; padding: 0 6px; color: var(--t-text3); }
.nd-segment b { font-weight: 500; }
.nd-segment b:not([class]) { color: var(--t-text3); }
.nd-segment[aria-pressed="true"] { color: var(--t-text1); }
.nd-segment[aria-pressed="true"] b:not([class]) { color: var(--t-text2); }
.nd-segment[aria-pressed="false"]:hover { color: var(--t-text2); background: var(--t-raised2); }
/* MachineFilterControl: beside the switch, quiet until a machine is chosen. */
.nd-segments .nd-picker-anchor { margin-left: 4px; }
.nd-machine-filter { display: inline-flex; align-items: center; gap: 5px; height: 24px; max-width: 160px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--t-text3); font-weight: 500; white-space: nowrap; transition: background-color .12s, color .12s; }
.nd-machine-filter > span { overflow: hidden; text-overflow: ellipsis; }
.nd-machine-filter > .nd-i:first-child { width: 11px; height: 11px; flex-shrink: 0; }
.nd-machine-filter > .nd-i:last-child { width: 9px; height: 9px; stroke-width: 1.9; flex-shrink: 0; transition: transform .2s; }
.nd-machine-filter[data-narrowed="true"] { color: var(--t-text1); }
.nd-machine-filter[data-narrowed="true"] > .nd-i:first-child { color: var(--t-harbor); }
.nd-machine-filter:hover, .nd-machine-filter[aria-expanded="true"] { color: var(--t-text1); background: var(--t-raised2); }
.nd-machine-filter[aria-expanded="true"] > .nd-i:last-child { transform: rotate(180deg); }
.nd-list-popup.nd-drop-popup { right: auto; left: 0; bottom: auto; top: calc(100% + 6px); white-space: nowrap; }
.nd-mark-all { gap: 5px; padding: 0 7px; color: var(--t-text3); }
.nd-mark-all:hover { color: var(--t-text1); background: var(--t-raised2); }
.nd-marked { display: inline-flex; align-items: center; gap: 5px; color: var(--t-text3); font-weight: 500; white-space: nowrap; }
.nd-marked > .nd-i { color: var(--t-mint); }
.nd-marked button { padding: 0 5px; margin-left: -5px; color: var(--t-text2); }
.nd-marked button:hover { color: var(--t-text1); background: var(--t-raised2); }
/* ConversationBackButton: always a filled capsule, so it reads as the button it is;
   it stands 6pt left of where the filter starts. */
.nd-back { gap: 6px; height: 26px; margin-left: -6px; padding: 0 10px 0 8px; border-radius: 13px; background: rgb(255 255 255 / .09); color: var(--t-text2); }
.nd-back .nd-i { width: 11px; height: 11px; stroke-width: 2.2; }
.nd-back b { font-weight: 400; color: var(--t-text3); }
.nd-back:hover { color: var(--t-text1); background: rgb(255 255 255 / .16); }

.nd-fold { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 1s cubic-bezier(.22,1,.28,1), visibility 1s; }
.nd[data-open="true"] .nd-fold { grid-template-rows: 1fr; visibility: visible; }
.nd-panel { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 54px); overflow: hidden; width: min(760px, calc(100vw - 24px)); position: relative; left: 50%; transform: translateX(-50%); }
.nd-quota, .nd-demo-tools { flex-shrink: 0; }
.nd-list { position: relative; max-height: min(480px, calc(100dvh - 160px)); overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; padding: 4px 0 14px; opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .48s cubic-bezier(.22,1,.28,1); }
.nd[data-open="true"] .nd-list { opacity: 1; transform: translateY(0); transition-delay: .12s; }
.nd-list[data-overflow="true"] { mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.nd[data-page="conversation"] .nd-list { max-height: none; overflow: visible; padding: 0; mask-image: none; }
/* The sheet: the list and its footer as one surface. While a card morphs into
   its conversation (CardMorph) the page stands over the list, still laid out
   beneath it, and the sheet's height follows the motion. */
.nd-sheet { position: relative; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.nd-sheet[data-morph] { overflow: hidden; }
.nd-sheet[data-morph] > :not(.nd-morph) { pointer-events: none; }
.nd-sheet[data-morph] .nd-list { transition: none; }
.nd-morph { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
/* MorphTravellers: the title, state and mark on their way between the card and the page header. */
.nd-travellers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.nd-traveller { position: absolute; top: 0; left: 0; margin: 0; transform-origin: top left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-row[data-travel] .nd-row-title, .nd-row[data-travel] .nd-row-trail .nd-words, .nd-row[data-travel] .nd-brand-foot,
.nd-conv[data-travel] .nd-conv-names h3, .nd-conv[data-travel] .nd-head-state, .nd-conv[data-travel] .nd-conv-head > .nd-brand { visibility: hidden; }
/* The page's own content: in once the shape has opened, a fade and a short rise; out first and quickly. */
.nd-conv .nd-conv-body, .nd-conv .nd-dock, .nd-conv .nd-conv-names p, .nd-conv .nd-conv-tools > :not(.nd-head-state) { transition: opacity .22s ease-out, transform .22s ease-out; }
.nd-conv .nd-conv-head { transition: border-color .22s ease-out; }
.nd-conv[data-reveal="off"] .nd-conv-body, .nd-conv[data-reveal="off"] .nd-dock, .nd-conv[data-reveal="off"] .nd-conv-names p,
.nd-conv[data-reveal="off"] .nd-conv-tools > :not(.nd-head-state) { opacity: 0; transform: translateY(6px); transition-duration: .1s; transition-timing-function: ease-in; }
.nd-conv[data-reveal="off"] .nd-conv-head { border-bottom-color: transparent; transition-duration: .1s; }
.nd[data-page="conversation"] .nd-quota { display: none; }
/* The rows behind an open picker step back (the sheet at 72% over them), so its list is never read against live text. */
.nd[data-open="true"]:not([data-picker=""]) .nd-list { opacity: .28; transition: opacity .2s; }

/* Controls: TowerButtonStyle. 26pt, an 8pt corner, the fill carries the emphasis. */
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 12px; border: 0; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: background-color .12s, color .12s; }
.nd-btn.nd-compact { height: 22px; padding: 0 9px; font-size: 11px; line-height: 14px; }
.nd-btn.nd-compact .nd-i { width: 10px; height: 10px; }
.nd-primary { background: var(--sig); color: color-mix(in srgb, var(--sig) 14%, black); }
.nd-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--sig) 90%, white); }
.nd-primary:active:not(:disabled) { background: color-mix(in srgb, var(--sig) 82%, black); }
.nd-secondary { background: var(--t-raised2); color: var(--t-text1); }
.nd-secondary:hover:not(:disabled) { background: var(--t-hover2); }
.nd-secondary:active:not(:disabled) { background: var(--t-raised); }
.nd-quiet { background: none; color: var(--t-text2); }
.nd-quiet:hover { background: var(--t-raised2); color: var(--t-text1); }
.nd-btn:disabled { color: var(--t-text4); }
.nd-primary:disabled { background: var(--t-raised2); }
.nd-spacer { flex: 1 1 auto; min-width: 8px; }
.nd-keys { color: var(--t-text3); font-size: 11px; line-height: 14px; white-space: nowrap; }

/* SessionRowView: each session its own card, 6pt apart (RowSurface). A card
   is lit in its state's colour from the glyph's corner, falling away across
   it as light does: an ask most, an unread finish less, work least, and a
   read finish or an idle session not at all. */
.nd-row { --lit-fill: 0; --lit-edge: 0; --edge: var(--t-line); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--t-raised); cursor: pointer; }
.nd-row + .nd-row { margin-top: 6px; }
.nd-row:is([data-row="needs"], [data-row="question"], [data-row="failed"]) { --lit-fill: .15; --lit-edge: .4; }
.nd-row[data-row="unread"] { --lit-fill: .11; --lit-edge: .3; }
.nd-row[data-row="working"] { --lit-fill: .08; --lit-edge: .22; }
.nd-row:not([data-row="read"], [data-row="idle"]) {
  --edge: linear-gradient(var(--edge-angle, 100deg), rgb(var(--sig-rgb) / var(--lit-edge)), rgb(var(--sig-rgb) / calc(var(--lit-edge) * .3)));
  /* A material catches light at its top edge; under it, the state's light. */
  background:
    linear-gradient(rgb(255 255 255 / .045), transparent 50%),
    radial-gradient(circle 560px at 3% 6%, rgb(var(--sig-rgb) / calc(var(--lit-fill) * 1.9)), rgb(var(--sig-rgb) / calc(var(--lit-fill) * .8)) 280px, rgb(var(--sig-rgb) / calc(var(--lit-fill) * .3)) 560px),
    var(--t-raised);
}
/* Under the card's words: its 1pt edge, then the pointer's lift. */
.nd-row::before, .nd-row::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.nd-row::before { padding: 1px; background: var(--edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nd-row::after { background: rgb(255 255 255 / .04); opacity: 0; transition: opacity .12s ease-out; }
/* An open menu stands over the cards after its own. */
.nd-row:has(.nd-menu) { z-index: 2; }
.nd-row-head { display: flex; align-items: flex-start; gap: 12px; }
/* The glyph centres on the title row as drawn, which the chips and the open button make 24pt tall. */
.nd-row-head > .nd-state-glyph { margin-top: 2px; }
.nd-row-col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nd-row-top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.nd-row-title { flex: 1 1 auto; min-width: 120px !important; padding: 0; border: 0; background: none; text-align: left; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--t-text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-row-trail { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
/* StateChip: the word in a capsule tinted with its colour, set a touch lighter
   so it reads on its own tint, then the time. A read finish says it in words. */
.nd-words { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nd-state-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid rgb(var(--sig-rgb) / .45); border-radius: 11px; background: rgb(var(--sig-rgb) / .2); color: color-mix(in oklab, var(--sig) 82%, white); font-weight: 600; }
/* OpenConversationButton: a round chevron ending the title line; the card lights it. */
.nd-open { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: rgb(255 255 255 / .07); color: var(--t-text2); transition: background-color .12s ease-out, color .12s ease-out; }
.nd-open .nd-i { width: 14px; height: 14px; stroke-width: 1.9; }
.nd-auto { display: inline-flex; color: var(--t-text3); }
/* The pointer lifts the card, and puts the way to its session where the state was. */
.nd-row-trail .nd-quiet { display: none; }
@media (hover: hover) {
  .nd-row:hover::after { opacity: 1; }
  .nd-row:hover .nd-open { background: rgb(255 255 255 / .14); color: var(--t-text1); }
  .nd-row:hover .nd-row-trail .nd-quiet { display: inline-flex; }
  .nd-row:hover .nd-words { display: none; }
}
/* The keyboard's hover: a row holding keyboard focus shows its Jump too. */
.nd[data-input="keyboard"] .nd-row:focus-within .nd-row-trail .nd-quiet { display: inline-flex; }
.nd[data-input="keyboard"] .nd-row:focus-within .nd-words { display: none; }
/* HideChoices: under the title, narrowest first; while they show, the card
   keeps its Hide and Jump. */
.nd-hide-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.nd-row[data-hiding] .nd-row-trail .nd-quiet { display: inline-flex; }
.nd-row[data-hiding] .nd-words { display: none; }
/* HiddenGroupHeader and HiddenSessionCard: the hidden sessions shown on
   request after the list, dimmed, each group or card with its way back. */
.nd-hidden-list { margin-top: 14px; }
.nd-hidden-head { display: flex; align-items: center; gap: 12px; min-height: 22px; padding: 0 5px 6px 16px; color: var(--t-text2); font-size: 12px; line-height: 16px; }
.nd-hidden-head > .nd-i, .nd-hide-line > .nd-i:first-child { width: 20px; height: 14px; flex-shrink: 0; stroke-width: 1.5; }
.nd-hidden-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nd-hidden-count { margin-left: -6px; color: var(--t-text3); font-variant-numeric: tabular-nums; }
.nd-hidden-card + .nd-hidden-card { margin-top: 6px; }
.nd-hidden-card + .nd-hidden-head { margin-top: 8px; padding-bottom: 0; }
.nd-hidden-card > .nd-row { opacity: .5; }
/* UndoHideNote and HiddenSessionsControl: the list's last lines, above the
   usage strip. */
.nd-hidden-foot { flex-shrink: 0; padding-bottom: 6px; }
.nd-hidden-foot:empty { display: none; }
.nd-hide-line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 28px; padding: 3px 14px 3px 16px; border: 0; background: none; color: var(--t-text2); font-size: 12px; line-height: 16px; text-align: left; }
.nd-hide-words { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-hide-words b { font-weight: 600; }
.nd-undo-hide .nd-quiet { margin-right: -9px; }
.nd-hidden-control { color: var(--t-text3); cursor: pointer; }
.nd-machine-notice { color: var(--t-text3); cursor: pointer; }
.nd-hidden-control > .nd-i:last-child { width: 12px; height: 12px; flex-shrink: 0; }
.nd-hidden-control:hover .nd-hide-words > :first-child { color: var(--t-text1); }
.nd-status-row { display: flex; align-items: flex-start; gap: 6px; }
.nd-status { flex: 1; color: var(--t-text2); overflow: hidden; }
.nd-status[data-lines="1"] { white-space: nowrap; text-overflow: ellipsis; }
.nd-status[data-lines="2"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nd-status[data-ask] { color: var(--t-text1); overflow-wrap: anywhere; }
.nd-status code { font: 11.5px/16px var(--t-mono); }
.nd-status strong { font-weight: 600; color: var(--t-text1); }
.nd-answered { opacity: .38; }
/* PlanProgressLine and PlanStepBar. */
.nd-progress { display: flex; align-items: center; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-progress strong { font-weight: 500; color: var(--t-text2); flex-shrink: 0; white-space: nowrap; }
.nd-progress span { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.nd-progress-bar { display: inline-flex; gap: 1px; width: 46px; flex-shrink: 0; margin-right: 6px; }
.nd-progress-bar i { height: 3px; border-radius: 1px; background: var(--t-raised2); }
.nd-progress-bar i[data-step="completed"] { background: var(--t-text2); }
.nd-progress-bar i[data-step="in_progress"] { background: var(--t-text4); }
/* TurnFilesLine. */
.nd-files { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-file { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--t-raised2); color: var(--t-text2); font-size: 11px; line-height: 14px; max-width: 100%; }
.nd-file .nd-i { width: 10px; height: 10px; color: var(--t-text3); }
.nd-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-file b { font-weight: 400; }
/* SubagentList. */
.nd-helpers { display: flex; flex-direction: column; gap: 3px; }
.nd-helper { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nd-helper-glyph { display: grid; place-items: center; width: 12px; flex-shrink: 0; color: var(--t-text3); }
.nd-helper-glyph .nd-i { width: 10px; height: 10px; }
.nd-helper strong { font-weight: 500; color: var(--t-text2); flex-shrink: 0; }
.nd-helper strong[data-lit] { color: var(--sig); }
.nd-helper span:last-child { color: var(--t-text3); overflow: hidden; text-overflow: ellipsis; }
.nd-helpers small { padding-left: 18px; color: var(--t-text3); font-size: 11px; line-height: 14px; }
/* The footnote: where the session runs. */
.nd-foot { display: flex; align-items: center; gap: 8px; padding-left: 32px; min-height: 14px; }
/* A trailing quiet button stands out by its own inset, so its words end on the row's text edge. */
.nd-foot .nd-quiet { margin: -4px -9px -4px 0; }
.nd-foot-words { display: flex; align-items: center; min-width: 0; font-size: 11px; line-height: 14px; color: var(--t-text3); white-space: nowrap; }
.nd-folder { padding: 1px 4px; margin: -1px -4px; border: 0; border-radius: 4px; background: none; color: var(--t-text3); flex-shrink: 0; }
.nd-folder:hover { background: var(--t-raised2); color: var(--t-text2); }
.nd-foot-rest { overflow: hidden; text-overflow: ellipsis; }
/* MachineBadge: the server glyph and the machine's name on a teal plate, after the title. */
.nd-machine { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; max-width: 150px; padding: 2px 6px; border-radius: 4px; background: rgb(79 179 191 / 0.14); color: var(--t-harbor); font-weight: 600; font-size: 11px; line-height: 14px; }
.nd-row-title.nd-row-title-fit { flex: 0 1 auto; }
.nd-conv-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nd-conv-title h3 { min-width: 0; }
.nd-machine > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-machine .nd-i { width: 11px; height: 11px; flex-shrink: 0; }
.nd-actions .nd-foot-words { flex-shrink: 1; }

/* What an ask needs: the request's detail, then its controls. */
.nd-attn { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.nd-indent { padding-left: 32px; }
.nd-well { padding: 9px 12px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-sunken); font: 11.5px/17px var(--t-mono); color: var(--t-text1); white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.nd-dollar { color: var(--t-text3); }
.nd-tool { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nd-tag { padding: 1px 5px; border-radius: 4px; background: var(--t-raised2); color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-params { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; font: 11.5px/17px var(--t-mono); }
.nd-params dt { color: var(--t-text3); }
.nd-params dd { color: var(--t-text1); overflow-wrap: anywhere; }
.nd-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* RemoteAnswerNote: where a session on another machine is answered, in the
   card's signal colour where a local card has its button. */
.nd-remote-answer { display: flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; color: var(--sig); font-weight: 500; white-space: nowrap; }
.nd-remote-answer span { overflow: hidden; text-overflow: ellipsis; }
.nd-remote-answer .nd-i { width: 13px; height: 13px; stroke-width: 1.4; }
/* The card's quiet lines (jumpNote, hostLinkNote): the icon on the glyph's
   column, the words on the title's. */
.nd-note { display: flex; align-items: flex-start; gap: 12px; color: var(--t-text2); }
.nd-note > .nd-i { width: 20px; height: 13px; margin-top: 1.5px; stroke-width: 1.4; }
.nd-link-note { color: var(--t-text3); }
.nd-link-note span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-actions[data-armed] { position: relative; }
.nd-actions[data-armed] > * { opacity: .42; }
.nd-actions[data-armed]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--sig) 70%, transparent); transform-origin: left; animation: nd-arm .45s linear .19s both; }
@keyframes nd-arm { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Allow, split: the safe default is one press, the lasting grants one step more deliberate. */
.nd-split { position: relative; display: inline-flex; align-items: center; height: 26px; border-radius: 8px; background: var(--sig); color: color-mix(in srgb, var(--sig) 14%, black); flex-shrink: 0; }
.nd-split-main { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 12px; border: 0; border-radius: 8px 0 0 8px; background: none; font-weight: 500; }
.nd-scope-toggle { position: relative; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 0 8px 8px 0; background: none; }
.nd-scope-toggle::before { content: ''; position: absolute; left: 0; top: 0; height: 26px; width: 1px; background: color-mix(in srgb, var(--sig) 14%, black); opacity: .25; }
.nd-split-main:hover, .nd-scope-toggle:hover { background: rgb(255 255 255 / .1); }
.nd-scope-toggle .nd-i { width: 10px; height: 10px; stroke-width: 1.8; }
/* Popovers: raised, a hairline edge, a 12pt corner. */
.nd-menu, .nd-popup { position: absolute; z-index: 6; padding: 4px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-raised); box-shadow: 0 6px 16px rgb(0 0 0 / .55); animation: nd-popup .2s cubic-bezier(.22,1,.28,1); }
@keyframes nd-popup { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.nd-menu { left: 0; top: calc(100% + 6px); width: 260px; }
.nd-menu button { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--t-text1); text-align: left; }
.nd-menu button small { display: block; margin-top: 1px; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-menu button:hover { background: var(--t-raised2); }
/* AnswerReceiptChip and BridgeReceiptChip: what a press did, where the buttons were. */
.nd-receipt { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; height: 26px; padding: 0 12px; border-radius: 8px; background: var(--t-raised2); color: var(--t-text1); font-weight: 500; animation: nd-receipt .28s cubic-bezier(.22,1,.28,1); }
.nd-receipt .nd-i { color: var(--t-text2); }
.nd-receipt[data-kind="allowed"] .nd-i { color: var(--t-mint); }
.nd-receipt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@keyframes nd-receipt { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
/* BulkCoverList: Allow all first says exactly what it covers. */
.nd-cover { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-sunken); cursor: default; }
.nd-cover > strong { font-weight: 600; }
.nd-cover dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 10px; }
.nd-cover dt { font-size: 11px; line-height: 17px; font-weight: 500; color: var(--t-text2); }
.nd-cover dd { font: 11.5px/17px var(--t-mono); color: var(--t-text2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nd-cover small { font-size: 11px; line-height: 14px; color: var(--t-text3); }
/* DenyNoteField and the plan's feedback field. */
.nd-note-form, .nd-compact-form { display: flex; align-items: center; gap: 8px; }
.nd-field { flex: 1; display: block; min-height: 32px; padding: 7px 10px; border: 1px solid var(--t-line-strong); border-radius: 8px; background: var(--t-raised2); color: var(--t-text1); font-size: 12px; line-height: 16px; resize: none; outline: none; }
.nd-field::placeholder { color: var(--t-text4); }
.nd-field:focus-visible { outline: none; border-color: #ab9eff99; }
/* AskPips and AskPager. */
.nd-ask-cluster { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.nd-pips { display: inline-flex; gap: 4px; }
.nd-pips i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--t-text4); }
.nd-pips i[data-on] { background: var(--sig); box-shadow: none; }
.nd-pager { display: inline-flex; align-items: center; width: 86px; height: 20px; border-radius: 4px; background: var(--t-raised2); color: var(--t-text3); font-size: 11px; line-height: 14px; font-weight: 500; }
.nd-pager > span { flex: 1; text-align: center; white-space: nowrap; }
.nd-page { display: grid; place-items: center; width: 22px; height: 20px; padding: 0; border: 0; background: none; color: var(--t-text2); }
.nd-page:disabled { color: var(--t-text4); }
.nd-page .nd-i { width: 9px; height: 9px; stroke-width: 1.8; }
/* QuestionForm: one grouped list per question, hairlines between its rows. */
.nd-qform { display: flex; flex-direction: column; gap: 10px; cursor: default; }
.nd-question { display: flex; flex-direction: column; gap: 6px; }
.nd-question-label { color: var(--t-text3); font-size: 11px; line-height: 14px; font-weight: 500; }
.nd-choices { display: flex; flex-direction: column; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-raised); overflow: hidden; }
.nd-choice { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; transition: background-color .12s; }
.nd-choice + .nd-choice { border-top: 1px solid var(--t-line); }
.nd-choice:hover { background: rgb(35 35 37 / .6); }
.nd-choice:active { background: var(--t-raised2); }
.nd-choice[aria-checked="true"] { background: color-mix(in srgb, var(--sig) 7%, transparent); }
.nd-choice-mark { display: grid; place-items: center; width: 16px; height: 16px; margin-top: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-text3); flex-shrink: 0; color: color-mix(in srgb, var(--sig) 14%, black); }
.nd-choice[aria-checked="true"] .nd-choice-mark { box-shadow: inset 0 0 0 1.5px var(--sig), inset 0 0 0 4px var(--t-sheet), inset 0 0 0 8px var(--sig); }
.nd-choice-mark.nd-square { border-radius: 4px; }
.nd-choice[aria-checked="true"] .nd-square { background: var(--sig); box-shadow: none; }
.nd-choice-mark .nd-i { width: 9px; height: 9px; stroke-width: 2.2; }
.nd-choice-words { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nd-choice-words strong { font-weight: 500; color: var(--t-text1); }
.nd-choice-words small { color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd kbd { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid var(--t-line); border-radius: 4px; color: var(--t-text3); font: 11px/14px var(--t-sans); }
/* PlanCard. */
.nd-plan-box { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 10px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-raised); cursor: text; }
.nd-plan-md { display: flex; flex-direction: column; gap: 7px; color: var(--t-text1); }
.nd-plan-md h4 { font-size: 13px; line-height: 19.5px; font-weight: 600; padding-top: 3px; }
.nd-plan-md p, .nd-plan-md li { font-size: 12px; line-height: 16px; }
.nd-plan-md strong { font-weight: 600; }
.nd-plan-md code { font: 11.5px/16px var(--t-mono); }

/* Markdown, shared by prose and the plan. */
.nd-md-list { display: flex; flex-direction: column; gap: 4px; padding: 0; list-style: none; }
.nd-md-list li { display: flex; align-items: baseline; gap: 8px; }
.nd-li-mark { flex: 0 0 auto; min-width: 10px; color: var(--t-text3); text-align: right; font-family: var(--t-sans); }
.nd-plan-md .nd-li-mark { min-width: 11px; }

/* ConversationPage. */
.nd-conv { display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - 112px)); }
.nd-conv-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--t-line); flex-shrink: 0; }
.nd-conv-names { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nd-conv-names h3 { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--t-text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-conv-names p { font-size: 11px; line-height: 14px; color: var(--t-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-conv-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* HeaderState: the row's glyph at 14pt, then its word in its colour and the time grey. */
.nd-head-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nd-head-state b { font-weight: 600; }
.nd-conv-body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 16px; }
.nd-conv-body:focus-visible { outline-offset: -2px; }
.nd-caption { padding: 6px 0; text-align: center; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-conv-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 28px; text-align: center; }
.nd-conv-state strong { font-size: 13px; line-height: 19.5px; font-weight: 500; color: var(--t-text2); }
.nd-conv-state span { color: var(--t-text3); }
.nd-conv-state .nd-btn { margin-top: 6px; }
/* PromptBubble: your words on the right, its corner pointing at you. */
.nd-bubble-row { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 120px; }
.nd-bubble-row small { color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-bubble { max-width: 540px; padding: 9px 14px; border-radius: 12px 12px 4px 12px; background: var(--t-raised2); color: var(--t-text1); font-size: 13px; line-height: 19.5px; overflow-wrap: anywhere; }
.nd-bubble code { font: 12px/19.5px var(--t-mono); }
/* Rail: a 20pt glyph column, the agent's words and work beside it. */
.nd-rail { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.nd-glyph { display: flex; justify-content: center; color: var(--t-text3); }
.nd-glyph .nd-i { width: 12px; height: 12px; }
.nd-rail[data-fold] > .nd-glyph { padding-top: 4px; }
.nd-rail[data-card] > .nd-glyph { padding-top: 11px; }
.nd-rail[data-tone="mint"] > .nd-glyph { color: var(--t-mint); }
/* ProseView: blocks 10pt apart, but SwiftUI sets a one-line Text at its natural
   height, not the 20.5pt line, so the gaps here are what the app measures. */
.nd-prose { display: flex; flex-direction: column; gap: 6px; color: var(--t-text1); font: 13.5px/21px var(--t-sans); overflow-wrap: anywhere; }
.nd-prose .nd-md-list { gap: 0; }
.nd-prose h4 { padding-top: 2px; font: 600 13px/19.5px var(--t-sans); }
.nd-prose strong { font-weight: 700; }
.nd-prose :is(p, li, h4) code { padding: 1px 2px; background: var(--t-raised2); color: var(--t-text1); font: 12px/1 var(--t-mono); }
/* ProseText: a link, and a file path the agent wrote, in the link colour with a soft underline. */
.nd .nd-link, .nd .nd-link:hover { color: var(--t-link); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(108 180 255 / .45); text-underline-offset: 2px; }
.nd-prose .nd-link code { color: inherit; }
.nd-thought { color: var(--t-text3); }
/* FoldLine: a turn's work, folded into one line that opens. */
.nd-fold-line { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--t-text3); text-align: left; transition: color .12s; }
.nd-fold-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-fold-line:hover { color: var(--t-text2); }
.nd-fold-line .nd-i { width: 9px; height: 9px; stroke-width: 2.1; color: var(--t-text3); transition: transform .2s ease-out; }
.nd-fold-line[aria-expanded="true"] .nd-i { transform: rotate(90deg); }
.nd-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-left: 12px; border-left: 1px solid var(--t-line); }
.nd-step { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 1px 0; border: 0; background: none; text-align: left; color: var(--t-text3); }
button.nd-step:hover { background: rgb(24 24 26 / .8); }
.nd-step-glyph { display: inline-flex; justify-content: center; width: 14px; flex-shrink: 0; align-self: center; }
.nd-step-glyph .nd-i { width: 10px; height: 10px; }
.nd-step-verb { flex-shrink: 0; }
.nd-step-target { color: var(--t-text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-step-target.nd-mono { font: 11.5px/16px var(--t-mono); }
.nd-step .nd-spin { align-self: center; width: 10px; height: 10px; }
.nd-step-detail { padding-left: 22px; }
.nd-counts { display: inline-flex; gap: 5px; font-size: 11px; line-height: 14px; flex-shrink: 0; }
.nd-counts b { font-weight: 500; }
.nd-ran { display: inline-flex; align-items: center; gap: 3px; color: var(--t-text3); font-size: 11px; line-height: 14px; flex-shrink: 0; }
.nd-ran .nd-i { width: 9px; height: 9px; stroke-width: 2.2; }
.nd-worked { display: flex; flex-direction: column; gap: 12px; }
.nd-worked-inner { display: flex; flex-direction: column; gap: 12px; }
/* CodeBlockView. */
.nd-codeblock { border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-sunken); overflow: hidden; font-family: var(--t-sans); }
.nd-code-head { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--t-line); color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-copy { display: inline-flex; align-items: center; gap: 4px; height: 20px; margin-left: auto; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: var(--t-text3); }
.nd-copy:hover { color: var(--t-text1); }
.nd-copy .nd-i { width: 11px; height: 11px; }
.nd-code-body { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; padding: 10px 0; }
.nd-code-lines { display: inline-flex; flex-direction: column; min-width: 100%; }
/* One Text set on the 17pt line; a diff draws each line on its own, at its natural height and a point either side. */
.nd-cl { display: flex; padding: 0 12px; font: 11.5px/17px var(--t-mono); color: #dfdfe0; white-space: pre; }
.nd-codeblock[data-marked] .nd-cl { padding: 1px 12px; line-height: 14px; }
.nd-cl code { font: inherit; }
.nd-cl-mark { flex-shrink: 0; }
.nd-cl[data-mark="add"] { background: rgb(110 231 192 / .12); }
.nd-cl[data-mark="add"] .nd-cl-mark { color: var(--t-mint); }
.nd-cl[data-mark="del"] { background: rgb(255 79 121 / .14); }
.nd-cl[data-mark="del"] .nd-cl-mark { color: var(--t-rose); }
.nd-sx-keyword { color: #fc5fa3; } .nd-sx-string { color: #fc6a5d; } .nd-sx-number { color: #d0bf69; } .nd-sx-type { color: #5dd8ff; }
.nd-sx-call { color: #67b7a4; } .nd-sx-comment { color: #6c7986; } .nd-sx-attribute { color: #bf8555; }
/* Cards on the rail: PlanChecklist, HelpersCard, FilesChangedCard. */
.nd-card { border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-raised); }
.nd-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nd-card-top strong { font-weight: 500; color: var(--t-text1); }
.nd-card-top span { color: var(--t-text3); font-size: 11px; line-height: 14px; white-space: nowrap; }
.nd-card-line { height: 1px; background: var(--t-line); }
.nd-plan-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.nd-plan-list ul { display: flex; flex-direction: column; gap: 6px; padding: 0; list-style: none; }
.nd-plan-list li { display: flex; align-items: center; gap: 8px; color: var(--t-text2); }
.nd-plan-list li .nd-i { width: 13px; height: 13px; margin: 0 1.5px; stroke-width: 1.3; color: var(--t-text4); }
.nd-plan-list li[data-step="completed"] { color: var(--t-text3); text-decoration: line-through; text-decoration-color: var(--t-text3); }
.nd-plan-list li[data-step="completed"] .nd-i { color: var(--t-text3); }
.nd-plan-list li[data-step="in_progress"] { color: var(--t-text1); font-weight: 500; }
.nd-plan-list li[data-step="in_progress"] .nd-i { color: var(--t-text1); }
.nd-helper-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; }
.nd-helper-row strong { font-weight: 500; color: var(--t-text1); white-space: nowrap; flex-shrink: 0; }
.nd-helper-words { color: var(--t-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-helper-state { display: grid; place-items: center; width: 14px; flex-shrink: 0; color: var(--t-text2); }
.nd-helper-row[data-state="done"] .nd-helper-state { color: var(--t-mint); }
.nd-helper-row > .nd-i { width: 9px; height: 9px; stroke-width: 2.1; color: var(--t-text3); transition: transform .2s ease-out; }
.nd-helper-row[aria-expanded="true"] > .nd-i { transform: rotate(90deg); }
.nd-took { color: var(--t-text3); font-size: 11px; line-height: 14px; white-space: nowrap; }
.nd-helper-steps { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px 34px; }
.nd-helper-steps p { color: var(--t-text3); }
.nd-files-card .nd-card-top { padding: 9px 12px; }
.nd-file-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--t-line); }
.nd-file-row > .nd-i { color: var(--t-text3); }
.nd-file-row > span:not(.nd-spacer):not(.nd-counts) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-divider { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-divider i { flex: 1; height: 1px; background: var(--t-line); }
/* LiveStepRow: what the session does this second. */
.nd-live { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.nd-live .nd-spin { width: 12px; height: 12px; color: var(--t-text1); }
.nd-live-words { display: flex; align-items: baseline; gap: 8px; }
.nd-live-words strong { font-weight: 500; color: var(--t-text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; max-width: 60%; }
.nd-live-words code { font: 11.5px/16px var(--t-mono); color: var(--t-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The dock: the ask in the reply box's place, the reply box, or where to answer. */
.nd-dock { flex-shrink: 0; padding: 10px 8px 12px; border-top: 1px solid var(--t-line); }
.nd-dock-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--sig) 50%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--sig) 7%, transparent); }
.nd-dock-top { display: flex; align-items: center; gap: 6px; min-height: 20px; color: var(--sig); font-size: 11px; line-height: 14px; font-weight: 500; }
.nd-dock-card .nd-status { flex: none; }
.nd-dock-quiet { display: flex; align-items: center; gap: 10px; padding-inline: 12px 8px; }
.nd-dock-glyph { display: inline-flex; color: var(--t-text3); }
.nd-dock-glyph .nd-i, .nd-dock-glyph .nd-spin { width: 13px; height: 13px; }
.nd-dock-quiet p { color: var(--t-text3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nd-reply { display: flex; flex-direction: column; gap: 6px; }
.nd-reply-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-raised2); transition: border-color .2s; }
.nd-reply-box[data-editing="true"] { border-color: var(--t-line-strong); }
.nd-reply-input { flex: 1; display: block; height: 34px; min-height: 34px; padding: 9px 0 9px 12px; border: 0; background: none; color: var(--t-text1); font-size: 12px; line-height: 16px; resize: none; outline: none; }
.nd-reply-input::placeholder { color: var(--t-text4); }
.nd-reply-input:focus-visible { outline: none; }
.nd-reply-box:focus-within { border-color: var(--t-line-strong); }
.nd-reply-box .nd-quiet { margin-right: -4px; }
.nd-send { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; padding: 0; border: 0; border-radius: 8px; background: var(--t-text1); color: var(--t-sheet); flex-shrink: 0; }
.nd-send .nd-i { width: 12px; height: 12px; stroke-width: 2; }
.nd-send[data-empty] { background: var(--t-raised2); color: var(--t-text4); }
.nd-reply-hints { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-reply > .nd-receipt { margin-bottom: 2px; }

/* HeaderChips: the hourglass and the context reading, opening sideways to say something. */
.nd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; border-radius: 4px; background: none; font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; transition: padding .3s cubic-bezier(.22,1,.28,1), background-color .3s; }
.nd-chip[data-open="true"] { padding: 2px 6px; background: var(--t-raised2); }
/* A chip that presses is drawn as a control even closed: a fill and an edge,
   so it is never read as plain text. */
.nd-chip.nd-pressable { padding: 2px 7px; border: 1px solid var(--t-line-strong); border-radius: 11px; background: var(--t-raised2); }
.nd-chip.nd-pressable[data-open="true"] { padding: 1px 5px; }
.nd-chip[data-open="true"][data-near="true"], .nd-cache[data-cache="cooling"][data-open="true"] { background: rgb(255 122 61 / .13); }
.nd-chip-words { color: var(--t-text2); animation: nd-words .23s ease-out .1s both; }
.nd-chip-words[data-near] { color: var(--t-ember); }
@keyframes nd-words { from { opacity: 0; } to { opacity: 1; } }
.nd-cache { gap: 5px; color: var(--t-text3); }
.nd-cache .nd-i { width: 10px; height: 11px; }
.nd-cache[data-cache="cooling"] { color: var(--t-ember); }
.nd-cache[data-cache="cooling"] .nd-chip-words { color: var(--t-ember); }
.nd-cache[data-cache="cold"] { color: var(--t-text4); }
.nd-cache[data-cache="cold"] .nd-chip-words { color: var(--t-text3); }

/* BridgeBreakdownView: the /context grid. */
.nd-breakdown { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.nd-breakdown header { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.nd-breakdown header strong { font-weight: 600; }
.nd-breakdown header span { color: var(--t-text2); }
.nd-breakdown header small { margin-left: auto; color: var(--t-text3); font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-breakdown-panel { display: flex; align-items: flex-start; gap: 20px; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-sunken); }
.nd-grid { display: grid; grid-template-columns: repeat(var(--columns), 9px); gap: 3px; flex-shrink: 0; }
.nd-grid i, .nd-hint i, .nd-legend i { width: 9px; height: 9px; border-radius: 2px; position: relative; }
.nd-grid i.nd-sq-free, .nd-hint i { background: rgb(255 255 255 / .07); }
.nd-grid i.nd-sq-buffer { background: rgb(255 255 255 / .16) linear-gradient(135deg, transparent 45%, rgb(255 255 255 / .35) 45% 57%, transparent 57%); }
.nd-grid i.nd-sq-hollow { box-shadow: inset 0 0 0 1.5px currentColor; }
.nd-grid i[data-marked]::after, .nd-hint i[data-marked]::after { content: ''; position: absolute; inset: -2px; border: 1.5px solid #ffb847; border-radius: 3px; }
.nd-legend { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 0; list-style: none; color: var(--t-text2); font-size: 11px; line-height: 14px; }
.nd-legend li { display: flex; align-items: center; gap: 8px; }
.nd-legend i { width: 8px; height: 8px; flex-shrink: 0; }
.nd-legend i.nd-sq-free { background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
.nd-legend i.nd-sq-buffer { background: rgb(255 255 255 / .22); }
.nd-legend span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nd-legend b { width: 54px; text-align: right; font-weight: 400; }
.nd-legend em { width: 40px; text-align: right; font-style: normal; color: var(--t-text3); }
.nd-legend .nd-sub { color: var(--t-text3); }
.nd-legend .nd-sub i { visibility: hidden; }
.nd-hint { display: flex; align-items: flex-start; gap: 8px; padding: 0 4px; color: var(--t-text2); font-size: 11px; line-height: 14px; }
.nd-hint i { flex-shrink: 0; margin-top: 2px; }

/* NotchSpotlight's "Show all" row and the empty Unread list. */
.nd-show-all { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 6px 14px 6px 16px; border: 0; background: none; color: var(--t-text3); text-align: left; }
.nd-show-all-glyph { display: grid; place-items: center; width: 20px; flex-shrink: 0; }
.nd-show-all-glyph .nd-i { width: 9px; height: 9px; stroke-width: 2.1; }
.nd-show-all-label { color: var(--t-text2); font-weight: 500; white-space: nowrap; }
.nd-show-all:hover .nd-show-all-label { color: var(--t-text1); }
.nd-show-all-counts { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nd-show-all-counts span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nd-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 0; color: var(--t-text3); }
.nd-empty > .nd-i { width: 20px; height: 20px; stroke-width: 1; }
.nd-empty small { font-size: 11px; line-height: 14px; }
.nd-all-hidden p { color: var(--t-text2); font-weight: 500; }
.nd-empty small button { padding: 2px 4px; margin-left: -4px; border: 0; border-radius: 4px; background: none; color: var(--t-text2); font-size: inherit; }
.nd-empty small button:hover { color: var(--t-text1); background: var(--t-raised2); }

/* The footer band: UsageStrip, then the Account and Companion pickers. */
.nd-quota { display: flex; align-items: center; gap: 12px; padding: 0 16px 14px; color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-usage { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.nd-usage-row { display: flex; align-items: center; gap: 12px; padding: 3px 0; white-space: nowrap; }
.nd-usage-name { width: 44px; flex-shrink: 0; }
.nd-gauges { display: flex; align-items: center; gap: 16px; }
.nd-gauge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nd-gauge-bar { position: relative; width: 28px; height: 4px; border-radius: 2px; background: var(--t-raised2); overflow: hidden; flex-shrink: 0; }
.nd-gauge-bar i { position: absolute; inset: 0 auto 0 0; }
.nd-gauge b { font-weight: 500; }
.nd-gauge-name { color: var(--t-text3); }
/* Two accounts: a table, every column as wide as the widest either row prints. */
.nd-table .nd-gauge-name { min-width: 4.2ch; }
.nd-table .nd-gauge b { min-width: 4.4ch; }
.nd-table-left .nd-gauge b { min-width: 7.2ch; }
.nd-table .nd-time-left { min-width: 9.6ch; }
.nd-table-left .nd-time-left { min-width: 13.4ch; }
.nd-resets { display: inline-flex; align-items: center; gap: 4px; }
.nd-resets .nd-i { width: 10px; height: 10px; }
.nd-pickers { display: flex; align-items: center; gap: 12px; margin: 0 -7px 0 auto; flex-shrink: 0; }
.nd-picker-anchor { position: relative; }
.nd-picker { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: var(--t-text2); white-space: nowrap; font-size: 11px; line-height: 14px; transition: background-color .2s, color .2s; }
.nd-picker:hover { background: var(--t-raised); color: var(--t-text1); }
.nd-picker[aria-expanded="true"] { background: var(--t-raised2); color: var(--t-text1); }
.nd-picker > .nd-i { width: 9px; height: 9px; stroke-width: 1.9; color: var(--t-text3); transition: transform .2s; }
.nd-picker[aria-expanded="true"] > .nd-i { transform: rotate(180deg); }
.nd-list-popup { right: 0; bottom: calc(100% + 8px); min-width: 140px; }
.nd-popup-row { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 10px 0 6px; border: 0; border-radius: 8px; background: none; color: var(--t-text1); font-size: 12px; text-align: left; }
.nd-popup-row:hover { background: var(--t-raised2); }
.nd-popup-check { display: grid; place-items: center; width: 14px; color: var(--t-text2); }
.nd-grid-popup { right: 0; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(7, 54px); gap: 2px; padding: 5px; }
.nd-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 54px; height: 56px; padding: 5px 0 0; border: 0; border-radius: 8px; background: none; color: var(--t-text2); font-size: 11px; line-height: 14px; }
.nd-tile:hover { background: rgb(35 35 37 / .6); color: var(--t-text1); }
.nd-tile[aria-pressed="true"] { background: var(--t-raised2); box-shadow: inset 0 0 0 1px var(--t-line-strong); color: var(--t-text1); font-weight: 500; }
.nd-tile-face { display: grid; place-items: center; width: 32px; height: 32px; }
.nd-none-face { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed var(--t-text4); }

/* The demo's own controls, outside the app's design. */
.nd-demo-tools { display: flex; align-items: center; gap: 12px; padding: 10px 16px 13px; border-top: 1px solid var(--t-line); color: var(--t-text3); font-size: 11px; line-height: 14px; }
.nd-demo-label { font-size: 8px; letter-spacing: .1em; padding: 2px 5px; border: 1px solid var(--t-line-strong); border-radius: 4px; }
.nd-demo-tools > button { padding: 3px 0; border: 0; background: none; color: var(--t-text3); white-space: nowrap; }
.nd-demo-tools > button:hover { color: var(--t-text1); }
.nd-demo-tools select { max-width: 190px; padding: 3px 3px 3px 0; border: 0; background: transparent; color: var(--t-text2); cursor: pointer; }
.nd-demo-tools option { background: var(--t-raised); }
.nd-scenario-label { margin-right: auto; }
.nd-options:empty { display: none; }
.nd-esc { margin-left: 3px; padding: 1px 3px; border: 1px solid var(--t-line-strong); border-radius: 3px; color: var(--t-text3); font-size: 8px; }
.nd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.nd-terminal { position: fixed; inset: auto 28px 28px auto; margin: 0; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 50px); border: 1px solid #ffffff2b; border-radius: 13px; background: #151419; color: #eee; box-shadow: 0 28px 100px #0008; font: 12px/1.6 -apple-system, BlinkMacSystemFont, sans-serif; overflow: auto; color-scheme: dark; }
.nd-terminal::backdrop { background: #17102922; }
.nd-terminal[open] { transform-origin: 50% 20%; animation: nd-window-open .5s cubic-bezier(.16,1,.3,1) both; }
.nd-terminal[open]::backdrop { animation: nd-backdrop-in .3s ease-out both; }
@keyframes nd-window-open {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nd-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.nd-terminal-head { display: flex; align-items: center; justify-content: space-between; background: #222126; padding: 9px 13px; font-size: 11px; }
.nd-terminal-head small { color: #ffffff60; font-size: 9px; }
.nd-terminal-head button { background: none; border: 0; color: #aaa; font-size: 19px; cursor: pointer; width: 24px; }
.nd-window-dots { display: flex; gap: 6px; }
.nd-window-dots i { width: 10px; height: 10px; background: #ff5f57; border-radius: 50%; }
.nd-window-dots i:nth-child(2) { background: #febc2e; }
.nd-window-dots i:nth-child(3) { background: #28c840; }
.nd-terminal-tabs { display: flex; background: #1d1c22; padding: 0 9px; overflow-x: auto; }
.nd-terminal-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; color: #888; background: none; padding: 10px 12px; font: 10px var(--font-mono); cursor: pointer; white-space: nowrap; }
.nd-terminal-tabs button[aria-selected="true"] { color: #eee; background: #ffffff07; border-color: #a08bde; }
.nd-terminal-body { min-height: 230px; max-height: 55dvh; overflow-y: auto; padding: 22px; font: 11.5px/1.8 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.nd-terminal-body .nd-terminal-path { color: #a89bcf; }
.nd-terminal-body .nd-terminal-tool { color: #8c8a96; }
.nd-terminal-body .nd-terminal-result { color: #76d19b; }
.nd-terminal-note { border-top: 1px solid #ffffff0f; padding: 11px 18px; margin: 0; color: #9995a7; font-size: 10px; }
.nd-terminal button:focus-visible { outline: 2px solid #ab9eff; outline-offset: -2px; }

@media (max-width: 760px) {
  .nd { --nd-width: 366px; --nd-shoulder: 10px; }
  .nd-camera { flex-basis: 0; }
  .nd-trigger { padding-inline: 13px; }
  .nd-wing-left { gap: 7px; }
  .nd-wing-left .nd-brand { width: 18px; height: 18px; flex-basis: 18px; }
  .nd-nudge-label { font-size: 10px; }
  .nd-row { padding-inline: 12px 10px; }
  /* The title keeps the open button on its line; the state wraps under it. */
  .nd-row-top { flex-wrap: wrap; row-gap: 4px; }
  .nd-row-title { flex: 1 1 calc(100% - 32px); white-space: normal; }
  .nd-open { order: 1; }
  .nd-row-trail { order: 2; flex-basis: 100%; margin-left: 0; }
  .nd-indent, .nd-foot { padding-left: 0; }
  .nd-actions .nd-spacer { flex-basis: 100%; height: 0; }
  .nd-actions .nd-foot-words { flex-basis: 100%; }
  .nd-btn, .nd-split, .nd-split-main, .nd-scope-toggle, .nd-scope-toggle::before { min-height: 32px; }
  .nd-scope-toggle::before { height: 100%; }
  .nd-conv-head { flex-wrap: wrap; row-gap: 8px; }
  .nd-conv-names { flex-basis: calc(100% - 32px); }
  .nd-conv-tools { margin-left: 32px; flex-wrap: wrap; row-gap: 6px; }
  .nd-bubble-row { padding-left: 32px; }
  .nd-dock-quiet { flex-wrap: wrap; row-gap: 8px; }
  .nd-dock-quiet p { flex-basis: calc(100% - 30px); }
  .nd-breakdown header { flex-wrap: wrap; }
  .nd-breakdown header small { margin-left: 0; flex-basis: 100%; }
  .nd-breakdown-panel { flex-direction: column; gap: 12px; }
  .nd-grid { grid-template-columns: repeat(var(--columns), 8px); gap: 2.5px; }
  .nd-grid i { width: 8px; height: 8px; }
  .nd-legend { align-self: stretch; }
  .nd-quota { flex-wrap: wrap; }
  .nd-pickers { margin-left: -7px; }
  .nd-grid-popup { right: auto; left: 0; grid-template-columns: repeat(5, 54px); }
  .nd-list { max-height: calc(100dvh - 230px); }
  .nd-demo-tools { gap: 10px; flex-wrap: wrap; }
  .nd-scenario-label select { max-width: 150px; }
  .nd-terminal { right: 16px; bottom: 16px; }
}
/* Like UsageStrip's ViewThatFits: the full-reset chip goes first, then a
   calm week's time left. */
@media (max-width: 560px) {
  .nd-quota .nd-resets { display: none; }
  .nd-time-left:not(.nd-urgent) { display: none; }
}
@media (max-width: 400px) {
  .nd-mark-all span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nd, .nd *, .nd-terminal, .nd-terminal::backdrop { animation: none !important; transition: none !important; }
  /* Held still: a steady outline where the ripple leaves, and the working ring whole. */
  .nd-ripple > * { opacity: .55; transform: scale(.6947); }
  .nd-g .nd-g-sweep { display: none; }
  .nd-g .nd-g-track { opacity: 1; }
}
