/* access-term OS — Step 1 shell layer (shell-core). shell.css above is the approved prototype's CSS; this
   file only makes it a real, scrolling, typing shell. Tokens only; no hard-coded colours. */
[hidden] { display: none !important; }
.av { display: none; }              /* avatar hook: looks turn it on */
/* The desktop rule: a real background (--desk) with every top-level region floating on it as a piece.
   Gap tokens default to 0, so a look that sets none renders exactly as before. A look sets them per breakpoint:
   --gap-edge (piece to viewport edge), --gap-piece (piece to piece), --gap-bar (status bar to what is under it),
   and the -phone variants. */
:root { --gap-edge: 0px; --gap-piece: 0px; --gap-bar: 0px; --gap-edge-phone: 0px; --gap-piece-phone: 0px; --gap-bar-phone: 0px; --desk: var(--ground); }
html, body { overscroll-behavior: none; background: var(--desk); }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button:disabled { cursor: default; }

/* boot (on top of the prototype's .boot) */
#boot { background: var(--ground); color: var(--ink); }
#boot .boot-bus { width: 240px; height: 4px; gap: 4px; margin-top: 56px; }
#boot .boot-bus i { height: 4px; }
#boot p { font: var(--do); color: var(--ink-2); }
#boot .fatal { color: var(--stop); font-weight: 600; }

/* the frame follows the visible viewport (the phone keyboard shrinks it) */
.os { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); grid-template-rows: 36px minmax(0, 1fr) auto; }
/* pieces float inside the frame: padding and gaps come from the tokens (border-box: no page scroll).
   :where() keeps these at zero specificity, so any rule a look writes wins over them. */
:where(.os) { padding: var(--gap-edge); }
:where(.main) { column-gap: var(--gap-piece); margin-top: var(--gap-bar); }
:where(.conv > .now, .conv > .now:empty + .cmp) { margin-top: var(--gap-piece); }   /* the dock can be its own piece */
:where(.phone .os) { padding: var(--gap-edge-phone); }
:where(.phone .main) { column-gap: 0; margin-top: var(--gap-bar-phone); }
:where(.phone .conv > .now, .phone .conv > .now:empty + .cmp) { margin-top: var(--gap-piece-phone); }
/* a look that opens --gap-piece sees the desk between the tab strip, the panes and an app frame: the side region
   then paints the desk over its own colour. The layer has no size while the gap is 0, so nothing changes for a
   look that leaves the token alone (a look with a painted desk sets `.main > .side { background-image: none }`). */
.main > .side { background-image: linear-gradient(var(--desk), var(--desk)); background-repeat: no-repeat; background-size: 100% min(100%, var(--gap-piece) * 100000); }
.diag { font: var(--meta); color: var(--hold-ink); background: var(--well); border-top: 1px solid var(--rule); padding: 6px 16px; }

/* system bar */
.sys { overflow: hidden; }
.sys .link { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sys .slow { color: var(--hold-ink); font-weight: 700; }
.sys button.it { height: 28px; padding: 0 2px; font: inherit; }
.sys .need { color: var(--hold-ink); font-weight: 700; }

/* conversation: the log really scrolls; the rail is drawn by the log itself so it is always full height */
.log { overflow-y: auto; overflow-x: hidden; justify-content: flex-start; overscroll-behavior: contain; padding-bottom: 12px;
  background: linear-gradient(var(--rule-2), var(--rule-2)) no-repeat calc(var(--tw) + 7px) 0 / 2px 100%; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.log::before { content: ""; flex: 1 0 0; }          /* short conversations sit at the bottom */
.log:focus { outline: none; }
.evs, .evs-lost, .evs-out { flex: none; display: flex; flex-direction: column; }
#askSlot:empty { display: none; }
.now:empty { display: none; }
.now:empty + .cmp { border-top: 1px solid var(--rule); padding-top: 16px; }
.ev > .evb { min-width: 0; overflow-wrap: anywhere; }
.ev > .g.nt b { margin-top: 0; line-height: 28px; }
/* the speaker stays in view at the top of a long entry while it scrolls (label, tick, avatar).
   Opt-in per look (theme.json "sticky-speaker": true -> data-sticky-speaker on <html>); on in the base look. */
:root:not([data-look]) .ev > .g, :root:not([data-look]) .ev > .tk,
:root[data-look="current"] .ev > .g, :root[data-look="current"] .ev > .tk,
:root[data-sticky-speaker] .ev > .g, :root[data-sticky-speaker] .ev > .tk { position: sticky; top: 4px; align-self: start; }
:root:not([data-look]) .ev > .tk, :root[data-look="current"] .ev > .tk, :root[data-sticky-speaker] .ev > .tk { min-height: 28px; }
.ev.do > .g.nt b { line-height: 24px; margin-top: 0; }
.ev p.yt { white-space: pre-wrap; }
.day { display: flex; }
.empty { padding: 24px 24px 24px calc(var(--tw) + 24px); font: var(--do); color: var(--ink-3); }
.more { align-self: center; flex: none; margin: 12px 0 4px calc(var(--tw) + 24px); min-height: 36px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--ground); font: var(--ui); color: var(--ink-2); position: relative; z-index: 1; }
.stick { position: sticky; bottom: 0; height: 0; flex: none; z-index: 2; }
.newbelow { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: 700 14px/16px var(--cond); white-space: nowrap; }
.newbelow svg.ic { width: 16px; height: 16px; }

/* Claude's words: markdown, in the --say voice */
.mdx { font: var(--say); color: var(--ink); }
.mdx > * + * { margin-top: 10px; }
.ev .mdx p { max-width: 34em; }
.mdx h3, .mdx h4, .mdx h5, .mdx h6 { font: var(--lead); margin-top: 16px; }
.mdx h3 { font: var(--l1); }
.mdx > :first-child { margin-top: 0; }
.mdx strong { font-weight: 700; }
.mdx a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.mdx-c { font: 500 .86em/1 var(--mono); background: var(--well); border: 1px solid var(--rule); border-radius: var(--r-1, 5px); padding: 1px 4px; }
.mdx-pre { font: var(--code); color: var(--ink-2); background: var(--well); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; overflow-x: auto; white-space: pre; overflow-wrap: normal; max-width: 100%; }
.mdx-pre code { font: inherit; }
.mdx-l { padding-left: 1.4em; max-width: 34em; }
.mdx-l li + li { margin-top: 4px; }
.mdx-l .mdx-l { margin-top: 4px; }
.mdx-q { border-left: 2px solid var(--rule-2); padding-left: 14px; color: var(--ink-2); }
.mdx-hr { border: 0; border-top: 1px solid var(--rule); }
/* a table keeps readable columns (10 to 40 characters each) and scrolls sideways inside itself when it is wider
   than the conversation: never two words a cell */
.mdx-tw { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; }
.mdx-t { border-collapse: collapse; font: 400 15px/22px var(--sans); width: max-content; max-width: none; }
.mdx-t th, .mdx-t td { text-align: left; padding: 6px 16px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; min-width: 10ch; max-width: 40ch; }
/* a long reply folded to its start (thread.js): the last lines fade out and "Show all" sits at the fold */
.mdx.fold { max-height: 1200px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent); mask-image: linear-gradient(#000 calc(100% - 64px), transparent); }
.fold-b { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--ground); font: var(--ui); color: var(--ink); }
.fold-b > span { font: var(--meta); color: var(--ink-3); }
.fold-b:hover { border-color: var(--ink-3); }
.phone .fold-b { min-height: 44px; }
.mdx-t th { font: 700 13px/16px var(--sans); color: var(--ink-2); border-bottom-color: var(--rule-2); }

/* a burst of activity: one row, opens to its steps */
.act { text-align: left; }
.act > span { flex: 1; min-width: 0; }
.act em { flex: none; padding-left: 8px; }
button.act:hover { color: var(--ink-2); }
.act .err { color: var(--stop); font-weight: 600; }
.plain-chg b { font: 500 13px/20px var(--mono); color: var(--ink-2); font-weight: 500; }
.do-list { list-style: none; margin: 6px 0 4px 6px; padding-left: 12px; border-left: 1px solid var(--rule); }
.do-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 3px 0; font: var(--do); color: var(--ink-3); }
.do-list li > b { flex: none; min-width: 52px; font-weight: 600; color: var(--ink-2); }
.do-list li > span { flex: 1; min-width: 0; font: 400 13px/20px var(--mono); overflow-wrap: anywhere; }
.do-list li.bad > b { color: var(--stop); }
.out-b { font: var(--meta); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.do-out { flex-basis: 100%; font: var(--code); color: var(--ink-2); background: var(--well); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; max-height: 320px; overflow: auto; white-space: pre; overflow-wrap: normal; }
.do-cut { flex-basis: 100%; }

/* the outbox: his words before Claude has shown them */
.ev.queued .ob-s { margin-top: 2px; color: var(--ink-2); }
.ev.ob-unconfirmed .ob-s { color: var(--stop); font-weight: 600; }
.ev.ob-unconfirmed > .tk::after { border-color: var(--stop); }
.ob-b { display: flex; gap: 8px; margin-top: 8px; }

/* the line is lost */
.ev.lost p { max-width: 32em; }
.ev.lost .lost-h { font: 700 17px/28px var(--sans); }
.ev.lost .lost-d { color: var(--ink-2); font: 400 16px/24px var(--sans); margin-top: 4px; }
.lost-b { display: flex; gap: 8px; margin-top: 12px; padding: 0 0 4px 4px; }

/* composer */
.cmp { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.field { height: auto; min-height: 52px; align-items: flex-end; }
.field:focus-within { border-color: var(--ink); }
.field .ib { flex: none; height: 50px; }
.field .ib:disabled { color: var(--ink-3); opacity: .5; }
.field .to { margin-bottom: 8px; padding: 0 10px; }
.field .to .lamp { margin-left: -1px; }
.field textarea { flex: 1; min-width: 0; display: block; border: 0; background: none; resize: none; color: var(--ink); font: 400 16px/24px var(--sans); padding: 13px 8px 13px 0; outline: none; overflow-y: hidden; }
.field textarea::placeholder { color: var(--ink-3); opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field textarea:disabled { color: var(--ink-3); }
.field .hint { height: 50px; }
.field .send { color: var(--ink); }
.field .send:disabled { color: var(--ink-3); }
.field.drop { border-style: dashed; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 100%; padding-left: 10px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--well); font: 500 13px/16px var(--sans); color: var(--ink-2); }
.chip svg.ic { width: 14px; height: 14px; }
.chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/16px var(--mono); color: var(--ink); }
.chip em { flex: none; font-style: normal; color: var(--ink-3); }
.chip.err { border-color: var(--stop); }
.chip.err em { color: var(--stop); font-weight: 600; }
.chip-x { flex: none; width: 32px; height: 30px; display: grid; place-items: center; color: var(--ink-2); }
.cmp-err { font: var(--do); color: var(--stop); padding-bottom: 8px; }

/* ── phone ── */
.phone .os { grid-template-rows: auto minmax(0, 1fr) auto; }
.phone .sys { height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.phone .sys .link { font: 500 15px/20px var(--sans); display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.phone .sys .need { height: 44px; min-width: 44px; justify-content: center; font: 700 16px/20px var(--sans); }
/* the phone bar fits honestly: mark, machine name and the lamp stay; "Connected" drops out whole when there is no
   room (it wraps to a clipped second line: never half a word); any other link state keeps its words and the
   machine name shortens instead. Stop, needs-you and the buttons never shrink. */
.phone .sys > * { flex: none; }
.phone .sys > .sp { flex: 1 1 0; min-width: 0; }
.phone .sys > .x { flex: 0 1 auto; min-width: 2ch; overflow: hidden; text-overflow: ellipsis; }
.phone .sys > .link { flex: 0 1 auto; min-width: 12px; gap: 0; }
.phone .sys > .link > .lamp { flex: none; }
.phone .sys > .link > .lw { margin-left: 8px; white-space: nowrap; }
.phone .sys > .link[data-live="1"] { flex-wrap: wrap; height: 20px; overflow: hidden; align-content: flex-start; row-gap: 20px; }
.phone .sys > .link[data-live="1"]::before { content: ""; width: 0; height: 20px; }
.phone .sys > .link:not([data-live="1"]) { flex: none; overflow: visible; }
.phone .job { display: none; }
.phone .main { grid-template-rows: minmax(0, 1fr); }
.phone .act { min-height: 44px; }
.phone .more, .phone .out-b { min-height: 44px; }
.phone .ob-b .btn, .phone .lost-b .btn { height: 44px; }
.phone .newbelow { height: 44px; }
.phone .cmp { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
.phone.kb-open .cmp { padding-bottom: 8px; }
.phone .field { min-height: 56px; height: auto; }   /* shell.css fixes 56px: a second line must grow the box */
.phone .field .ib { height: 54px; width: 48px; }
.phone .field .to { height: 44px; margin-bottom: 5px; }
.phone .field textarea { font-size: 17px; line-height: 26px; padding: 14px 6px 14px 0; }
.phone .chip, .phone .chip-x { height: 44px; }
.phone .chip-x { width: 44px; }
.phone .mdx { font: 400 17px/26px var(--sans); }
.phone .mdx-pre, .phone .do-out { font-size: 12.5px; }
@media (max-width: 380px) { .phone .field .to i { display: none; } }
/* phone: the words get the width. There is no speaker column (shell.css: --tw is 4 px there): the rail runs down the
   left edge and each entry's speaker and time sit on one small line above its words, so a reply is about 336 of
   390 px wide instead of 290. Plain selectors on purpose: Lumen already lays its phone out this way with its own
   avatar sizes, and its rules (loaded after these) keep winning. */
.phone .ev { grid-template-rows: auto auto; }
.phone .ev > .g { grid-column: 3; grid-row: 1; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 8px; padding: 0; text-align: left; }
.phone .ev > .g time, .phone .ev > .g b, .phone .ev > .g b:first-child, .phone .ev > .g.nt b { display: inline; margin: 0; line-height: 22px; }
.phone .ev > .tk { grid-column: 2; grid-row: 1 / span 2; }
.phone .ev > .evb { grid-column: 3; grid-row: 2; }

/* ── the compact dock ── (owner: "in the chatbox I don't need Stop, instead make it smaller so I have more room")
   The dock's STRUCTURE is held here with id-level selectors: a look gives it its material (surface, radius, shadow,
   colour, type family) but cannot make it tall again. Idle and empty it is the message box alone: 56 px (phone 60).
   #now = one 24 px line (lamp, state word, timer, then a count and at most 8 ticks while agents work), truly empty
   when there is nothing to say. #cmp = one row: attach, To Claude, the words, Send. Stop lives in the status bar. */
#conv > #now.now { display: block; padding: 0; min-height: 0; }
#conv > #now.now:empty { display: none; }
#conv > #now.now > .now-g { display: flex; align-items: center; gap: 8px; height: 24px; min-width: 0; margin: 0; padding: 0 12px 0 max(12px, calc(var(--tw, 0px) + 2px)); white-space: nowrap; overflow: hidden; }
#now .now-g > .lamp { position: static; flex: none; margin: 0; }
#now .now-g > .now-1 { display: flex; flex: none; align-items: baseline; gap: 6px; min-width: 0; min-height: 0; margin: 0; }
#now .now-1 > b { font: 600 13px/20px var(--sans); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
#now .now-1 > .t { margin: 0; font: var(--meta); line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#now .now-1 > .t::before { content: "\00B7\00A0"; }
/* the state word is never cut: when the line is tight the agent count, then the ticks, drop out whole */
#now .now-g > .now-2 { display: flex; flex: 0 1 auto; min-width: 0; flex-flow: row wrap; align-items: center; align-content: flex-start; gap: 0 8px; height: 20px; overflow: hidden; margin: 0 0 0 auto; }
#now .now-2 > * { min-height: 20px; }
#now .now-1 > b { overflow: visible; text-overflow: clip; white-space: nowrap; }
#now .now-2 > .bus { flex: none; width: auto; height: 8px; gap: 2px; align-items: center; overflow: visible; }
#now .now-2 > .bus > i { flex: none; width: 4px; min-width: 0; max-width: none; height: 8px; }
#now .now-2 > .cnt { font: var(--meta); line-height: 20px; color: var(--ink-2); white-space: nowrap; }
#now .now-2 > .cnt b { color: var(--ink); font-weight: 700; }
#now[data-state="needs-you"] .now-1 > b { color: var(--hold-ink); }
#now[data-state="lost"] .now-1 > b { color: var(--stop); }
#now { --pc-size: 22px; }                              /* the dock's Close control (pieces.js) fits the line */
#now .now-g > .pcs { margin: 0 -6px 0 0; }
#conv > #cmp.cmp { padding: 0 8px 6px; }
#conv > #now.now:empty + #cmp.cmp { padding-top: 6px; }
#cmp > .field { display: flex; align-items: flex-end; height: auto; min-height: 44px; padding: 0; }
#cmp .field > .ib { width: 40px; height: 42px; margin: 0; }
#cmp .field > .to { height: 28px; margin: 0 8px 7px 0; padding: 0 9px; }
#cmp .field > textarea { margin: 0; padding: 9px 8px 9px 0; line-height: 24px; }
#cmp .field > .send { width: 32px; height: 32px; margin: 0 5px 5px 2px; }
.phone #conv > #cmp.cmp { padding: 0 8px max(6px, env(safe-area-inset-bottom)); }
.phone.kb-open #conv > #cmp.cmp { padding-bottom: 6px; }
/* keyboard up: the box sits 6 px over the keyboard; the desk's own bottom gutter and a look's floating-dock margin step aside */
html body.phone.kb-open #main { padding-bottom: 0; margin-bottom: 0; }
html body.phone.kb-open #conv > #cmp.cmp { margin-bottom: 0; }
.phone #cmp > .field { min-height: 48px; }
.phone #cmp .field > .ib { width: 44px; height: 46px; }
.phone #cmp .field > .to { height: 32px; margin: 0 6px 7px 0; }
.phone #cmp .field > textarea { font-size: 17px; line-height: 26px; padding: 10px 6px 10px 0; min-width: 0; flex: 1 1 0; }   /* it takes the room left, never more (composer.js picks words that fit) */
/* phone: ONE row, always (attach, To Claude, the words, Send). Send stays a small button (36 px drawn, 44 px to
   touch) at two-id weight so no look can make it a big square again. When the words no longer fit beside the To
   chip the chip steps aside (composer.js sets data-lines="many"); the box grows only for a real second line. */
.phone #conv > #cmp.cmp > .field > .send { position: relative; width: 36px; height: 36px; margin: 0 5px 5px 2px; }
.phone #conv > #cmp.cmp > .field > .send::after { content: ""; position: absolute; inset: -4px; }
.phone #conv > #cmp.cmp > .field[data-lines="many"] > .to { display: none; }

/* Stop's one home is the status bar, in every layout: a small red square beside the working state (status.js) */
#sys > .pc-run:not([data-home]) { display: none; }      /* never two: the stand-in for a closed dock retires */
#sys > .pc-run { flex: none; gap: 8px; }
#sys > .pc-run > b { font-weight: 600; color: var(--ink); white-space: nowrap; }      /* the word whole, or not at all (status.js gives it up when tight) */
#sys > .pc-run > .t { font-variant-numeric: tabular-nums; color: var(--ink-2); }
#sys > .pc-run > .btn.stop { flex: none; width: 28px; height: 28px; min-width: 0; padding: 0; gap: 0; }
#sys > .pc-run > .btn.stop .sq { width: 10px; height: 10px; }
#sys > .pc-run > .btn.stop[aria-disabled="true"] { cursor: default; }
#sys > .pc-run > .why { color: var(--stop); font-weight: 600; white-space: nowrap; }     /* "Still working — Stop did not take. Press again." */
#sys > .pc-run > .why:empty { display: none; }
.phone #sys > .pc-run > .why { display: none; }
#sys > .pc-ag { flex: none; gap: 8px; }                  /* Claude idle, agents at work: the words, no Stop */
#sys > .pc-ag > b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.phone #sys > .pc-run > .lamp, .phone #sys > .pc-run > b, .phone #sys > .pc-run > .t { display: none; }
.phone #sys > .pc-run > .btn.stop { width: 44px; height: 44px; border-color: transparent; background: none; box-shadow: none; }
.phone #sys > .pc-run > .btn.stop .sq { width: 12px; height: 12px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--stop) 18%, transparent); }
.phone #sys > .pc-run > .btn.stop.off .sq { box-shadow: 0 0 0 8px color-mix(in srgb, var(--rule-2) 30%, transparent); }

/* ── the message box's microphone (mic.js) ── left of Send, only when the speech service is on this server.
   Idle it is a plain tool like attach; listening it is Stop: an accent disc with a square, a level bar and m:ss
   beside it, the service's line in the placeholder; working: a quiet ring, the button disabled. 44 px on the phone. */
#cmp .field > .mic { position: relative; flex: none; display: grid; place-items: center; }
#cmp .field > .mic[hidden] { display: none; }
#cmp .field > .mic > svg.ic { position: relative; z-index: 1; width: 20px; height: 20px; stroke-width: 1.6; fill: none; }
#cmp .field > .mic[data-mic="muted"] { color: var(--ink-3); opacity: .7; }
#cmp .field > .mic[data-mic="listening"] { color: var(--on-accent); }
#cmp .field > .mic[data-mic="listening"]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
#cmp .field > .mic[data-mic="listening"] > svg.ic rect { fill: currentColor; stroke: none; }
#cmp .field > .mic[data-mic="working"]:disabled { opacity: 1; color: var(--ink-3); }
#cmp .field > .mic > .mic-spin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink-3) 30%, transparent); border-top-color: var(--accent); animation: mic-spin 1s linear infinite; }
@keyframes mic-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #cmp .field > .mic > .mic-spin { animation-duration: 3s; } }
#cmp .field > .mic-lv { flex: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 2px 0 4px; }
#cmp .field > .mic-lv[hidden] { display: none; }
#cmp .mic-lv > .mic-bar { position: relative; display: block; width: 28px; height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ink-3) 28%, transparent); }
#cmp .mic-lv > .mic-bar > i { position: absolute; inset: 0; border-radius: 2px; background: var(--accent); transform-origin: left center; transform: scaleX(var(--lv, 0)); transition: transform 60ms linear; }
#cmp .mic-lv > .mic-t { font: 500 13px/20px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 3.2ch; }
#cmp > .mic-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 4px 8px; font: 500 14px/20px var(--sans); color: var(--ink); }
#cmp > .mic-msg[hidden] { display: none; }
#cmp > .mic-msg[data-kind="line"] { color: var(--ink-2); font-weight: 400; }
#cmp > .mic-msg > .mic-say { flex: 1 1 14em; min-width: 0; }
#cmp > .mic-msg > .btn[hidden] { display: none; }
.phone #cmp .field > .mic-lv { height: 46px; }
.phone #cmp .field > .mic[data-mic="listening"]::before { width: 34px; height: 34px; margin: -17px 0 0 -17px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.phone #cmp > .mic-msg > .btn { height: 44px; min-width: 44px; }
/* phone: while it listens the row needs the room — the To chip steps aside (as it does for a second line) */
.phone #conv > #cmp.cmp > .field:is([data-mic="listening"], [data-mic="working"]) > .to { display: none; }
