/* Shell layout that the frames do not carry: sign-in, the canvas, the phone fold. */
[hidden]{display:none!important}
.center{min-height:100vh;display:grid;place-items:center;padding:24px}
.signin{width:340px;padding:22px;display:flex;flex-direction:column;gap:12px}
.signin .ws{padding:0 0 6px}
.signin label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--ink2)}
.signin input{height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font:inherit;background:#fff;color:var(--ink)}
.signin input:focus{outline:2px solid var(--ink);outline-offset:1px}
.signin .btn{justify-content:center;height:36px}
.err{margin:0;color:var(--late);background:var(--late-bg);border-radius:8px;padding:8px 10px;font-size:12.5px}
.canvas{padding:28px 24px;display:flex;flex-direction:column;gap:18px;min-width:0}
.rail .foot{margin-top:auto;padding:8px}
@media (max-width:760px){.rail{display:none}.canvas{padding:18px 14px}}

/* The desk */
.app{min-height:100vh}
.rail{position:sticky;top:0;height:100vh;overflow:auto}
/* The top bar stays in place when the page scrolls. The agent's panel and a record's panel are pinned just under it
   (top:56px, the bar's height): if the bar scrolled away, an empty strip of that height was left above them. */
.top{position:sticky;top:0;z-index:6}
.rail .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px 8px 2px;border-top:1px solid var(--line)}
.rail .me .t{flex:1 1 auto;min-width:0}.rail .me .s{font-size:11.5px;color:var(--mute)}
.top .cmd{position:relative}
.top .cmd input{flex:1 1 auto;border:0;outline:0;background:transparent;font:inherit;color:var(--ink);min-width:0}
.top .date{margin-left:auto}
button.ic{border:0;background:transparent;padding:4px;border-radius:6px;cursor:pointer;color:var(--ink2);display:grid;place-items:center}
button.ic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
button.ic:hover{background:#F1F0EC}
.results{position:absolute;left:0;right:0;top:42px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(20,22,26,.12);padding:6px;z-index:20}
.results a{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--ink)}
.results a.on,.results a:hover{background:#F1F0EC}
.results a span{font-size:11.5px;color:var(--mute);margin-left:auto}
.results .none{padding:10px;color:var(--mute)}
.work{flex:1 1 auto;display:flex;min-height:0}
.canvas{flex:1 1 auto;padding:26px 24px 60px;display:flex;flex-direction:column;gap:18px;min-width:0}
/* The work area uses the window's whole width, so the agent's panel is flush at the right edge (founder, 14 Nov 2026: a
   strip of 270px was left beside it when the canvas stopped at 1180px). Only a part of plain words keeps a reading width. */
.parts>[data-part="text"]{max-width:76ch}
.canvas .head{display:flex;flex-direction:column;gap:6px}
.head .subline{margin:0;color:var(--mute);font-size:12.5px;line-height:1.5}
.rail .nav .n.ok{color:var(--ok)}
.stage{white-space:nowrap}
.parts{display:flex;flex-direction:column;gap:16px;min-width:0}
.parts.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.parts.two>*{grid-column:1 / -1}.parts.two>.half{grid-column:auto}
.banner{background:var(--gate-bg);border:1px solid var(--gate-line);color:var(--gate);border-radius:10px;padding:10px 14px}
.tiles{display:flex;gap:36px;flex-wrap:wrap;padding:2px 0 4px}
.tiles.strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;padding:0;background:var(--line2)}
.tiles.strip .stat{background:#fff;padding:16px 18px;min-width:0;display:flex;flex-direction:column;gap:6px}
.tiles.strip .v{font-size:24px;letter-spacing:-.02em;overflow-wrap:anywhere}
.stat .note{font-size:11.5px;color:var(--mute)}
.stat .v.unknown{font-size:13px;font-weight:400;color:var(--mute);letter-spacing:0}
@media(max-width:760px){.tiles.strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stat .v.late{color:var(--late)}.stat .v.ok{color:var(--ok)}.stat .v.gate{color:var(--gate)}
.gates{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.gc .checks{display:flex;flex-wrap:wrap;gap:4px 14px}
.gc .sub.mono{font:12px "Geist Mono",ui-monospace,Menlo,monospace;color:var(--mute);overflow-wrap:anywhere}
.approvals .cf.plain{border:0;padding:10px 2px 0}
.scroll{overflow-x:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain}
/* A table wider than its card always shows its scrollbar (a Mac hides it until scrolled, so nobody knew there was more:
   founder, 15 Nov 2026), and the row's buttons stay pinned at the right edge, so they are never cut off. */
/* Chrome and Safari draw this bar always (::-webkit-scrollbar). The standard scrollbar-width/scrollbar-color would win
   over it in Chrome and fall back to the Mac's bar that hides until scrolled (15 Nov 2026: the founder saw no bar), so
   they are given only to a browser without the webkit bar. */
@supports not selector(::-webkit-scrollbar){.scroll{scrollbar-width:thin;scrollbar-color:#B9BCC2 #F1F0EA}}
.scroll::-webkit-scrollbar{height:10px;width:10px}
.scroll::-webkit-scrollbar-track{background:#F1F0EA}
.scroll::-webkit-scrollbar-thumb{background:#B9BCC2;border-radius:6px;border:2px solid #F1F0EA}
.scroll::-webkit-scrollbar-thumb:hover{background:#8E9198}
.scroll td.acts,.scroll th.acts{position:sticky;right:0;background:#fff;z-index:1;box-shadow:-10px 0 10px -10px rgba(20,20,20,.18)}
.scroll tr.f td.acts{background:#F5F4EF}
.scroll:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.scroll-note{padding:5px 16px;font-size:11.5px;color:var(--ink2);background:#F6F6F3;border-top:1px solid var(--line2)}
.scroll th:first-child,.scroll td:first-child{position:sticky;left:0;background:#fff;z-index:1}
.scroll tr.f td:first-child{background:#F5F4EF}
.slide{flex:1 1 auto;min-width:0;touch-action:none;cursor:ew-resize;user-select:none}
.slide:focus-visible{outline:2px solid var(--gate);outline-offset:3px}
.cf .right{margin-left:auto;display:flex;gap:10px;align-items:center}
.prov i.late{background:var(--late)}
td.acts{text-align:right;white-space:nowrap}td.acts .btn{margin-left:6px}
td a.open{text-decoration:none;font-weight:500}
td a.open:hover{text-decoration:underline}
.none{padding:22px 16px;color:var(--mute)}
.lanes{display:flex;gap:12px;padding:12px 16px 16px;overflow-x:auto}
.lane{flex:1 0 170px;display:flex;flex-direction:column;gap:8px;min-width:0;background:#EFEEE9;border-radius:12px;padding:10px;align-self:flex-start}
.lane-h{font-size:11.5px;color:var(--ink2);text-transform:capitalize;display:flex;justify-content:space-between;gap:8px}
.lane-h .n{color:var(--mute)}
.pc{text-decoration:none;color:var(--ink)}
.pc:hover,.pc:focus-visible{outline:2px solid var(--ink);outline-offset:-1px}
.pc-meta{display:flex;justify-content:space-between;gap:8px;margin-top:4px}
.pc-next{font-size:12px;color:var(--ink2)}
/* Hands on a board: a card that can be moved, the copy that follows the pointer, and the columns lit while it moves
   (one it may be dropped on is outlined, one it may not is faded). The board's own look is unchanged at rest. */
.pc[data-moves]{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.pc.dragging{opacity:.35}.pc.busy{opacity:.6}
.drag-ghost{position:fixed;left:0;top:0;margin:0;z-index:90;pointer-events:none;cursor:grabbing;box-shadow:0 14px 34px rgba(20,22,26,.18)}
.dragging-card,.dragging-card *{cursor:grabbing!important}
.dragging-card .lane[data-lane]{align-self:stretch;min-height:120px}
.lane.drop-ok{outline:2px dashed var(--ink2);outline-offset:-2px}
.lane.drop-ok.drop-over{outline-style:solid;background:#E4E3DD}
.lane.drop-no{opacity:.45}
.move-to{display:flex;flex-direction:column;gap:6px;min-width:160px}.move-to b{font-size:12px;color:var(--ink2);font-weight:500}
.move-to .btn{justify-content:flex-start;text-transform:capitalize}
/* A cell that can be changed in place, and its input while it is. */
td[data-edit]{cursor:text}td[data-edit]:hover{background:#FBFBF9}
td[data-edit]:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.cell-input{width:100%;min-width:120px;height:30px;border:1px solid var(--ink2);border-radius:6px;padding:0 8px;font:inherit;background:#fff;color:var(--ink)}
.record-actions{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0}
.pc .s{font-size:12px;color:var(--mute)}
.bars{display:flex;align-items:flex-end;gap:10px;height:160px;padding:16px}
.bar{flex:1 1 0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%;font-size:11px;color:var(--mute)}
.bar i{width:100%;max-width:44px;background:var(--ink);border-radius:5px 5px 0 0;display:block}
.bar .bv{font-weight:600;color:var(--ink);font-size:11.5px;white-space:nowrap}
.bars{height:190px}
.chart-sum{margin:0;padding-bottom:0}
.cal .today .d b{background:var(--ink);color:#fff;border-radius:6px;padding:0 5px}
.calnote{padding:8px 16px 0;color:var(--mute)}
.whybox{padding:14px 16px}.whybox h3{margin:0 0 6px;font-size:13px}
.pop{position:fixed;z-index:40;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(20,22,26,.16);width:340px;max-width:calc(100vw - 24px)}
.pop form{padding:14px;display:flex;flex-direction:column;gap:10px}
.pop label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--ink2)}
.pop input,.pop textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;color:var(--ink)}
.pop .row{display:flex;gap:8px;justify-content:flex-end}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:10px;padding:10px 14px;z-index:50;max-width:min(560px,calc(100vw - 32px));box-shadow:0 10px 30px rgba(20,22,26,.25)}
.toast.bad{background:var(--late)}
/* The line that asks for notices on this device: under the top bar, on every screen, until it is answered. */
.push-nudge{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 24px 0;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#FFFDF6;font-size:13.5px;line-height:1.35}
.push-nudge[hidden]{display:none}
.push-nudge>span{flex:1 1 220px;min-width:0}
.toast button{margin-left:12px;background:transparent;border:0;color:#fff;text-decoration:underline;cursor:pointer;font:inherit}
/* The agent's dock and the input box */
.dock{margin-left:auto;width:388px;flex:none;border-left:1px solid var(--line);background:#FDFDFC;display:none;flex-direction:column;position:sticky;top:56px;height:calc(100vh - 56px)}
.work[data-agent-open="1"]>.dock{display:flex}
.work[data-agent-open="1"]>.record-panel{display:none}
.record-panel{width:340px;flex:none;display:flex;flex-direction:column;border-left:1px solid var(--line);background:#FDFDFC;position:sticky;top:56px;height:calc(100vh - 56px)}
.record-panel .dh{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
#record-content{overflow:auto;flex:1;min-height:0}
.record-panel .canvas{padding:16px}.record-panel .h1{font-size:20px}
.record-panel .doc{padding:12px}.record-panel .dochead{display:none}
.record-panel .record-ask{margin:12px;flex:none}
.record-panel .li{align-items:flex-start;flex-wrap:wrap}
.record-panel .kv{overflow-wrap:anywhere}
.dock .dh{display:flex;align-items:center;gap:8px;padding:10px 10px 10px 16px;border-bottom:1px solid var(--line2);flex:none}
.pulse.off{background:#C9C8C2;box-shadow:0 0 0 4px rgba(20,22,26,.05)}
.stream{flex:1 1 auto;overflow:auto;padding:20px 18px 12px;display:flex;flex-direction:column;gap:18px;min-height:0}
.askwrap{padding:10px 12px 14px;display:flex;flex-direction:column;gap:8px}
.tray{display:flex;flex-wrap:wrap;gap:6px}.tray:empty{display:none}
.chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:5px 6px 5px 10px;background:#FBFBF9;font-size:12.5px;max-width:100%;min-width:0}
.chip .n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.chip .s{color:var(--mute);font-size:11.5px;white-space:nowrap}
.chip.read .s{color:var(--ok)}.chip.refused .s,.chip.failed .s{color:var(--late)}
.chip img{width:28px;height:28px;border-radius:6px;object-fit:cover;flex:none;border:1px solid var(--line2)}
.chip .x{border:0;background:none;color:var(--mute);cursor:pointer;font-size:15px;line-height:1;padding:2px 5px;border-radius:5px}
.chip .x:hover{background:#F1F0EC;color:var(--ink)}
.drop .dock{outline:2px dashed var(--ink);outline-offset:-6px}
@media (max-width:1180px){.work[data-agent-open="1"]>.dock,.record-panel{position:fixed;right:0;top:56px;bottom:70px;width:min(390px,100%);height:auto;z-index:35;box-shadow:-10px 0 30px rgba(20,22,26,.12)}}
@media (max-width:760px){
  .top{padding:0 12px;gap:8px}.top .prov{display:none}.top .kbd{display:none}
  .parts.two{grid-template-columns:minmax(0,1fr)}
  .gates{grid-template-columns:minmax(0,1fr)}
  .tiles{gap:22px}
  .scroll table,.scroll tbody{display:block}
  .scroll thead{display:none}
  .scroll tr{display:grid;grid-template-columns:minmax(0,1fr);margin:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  .scroll td,.scroll td:first-child,.scroll td:last-child{position:static;display:flex;justify-content:space-between;gap:12px;min-width:0;height:auto;padding:8px 10px;white-space:normal;text-align:right;overflow-wrap:anywhere}
  .scroll td::before{content:attr(data-label);color:var(--mute);font-size:11.5px;text-align:left;flex:0 0 30%}
  .scroll td.e:not(:first-child):not(.acts){display:none}
  .scroll td:first-child{border-top:0;text-align:left;font-weight:600}
  .scroll td:first-child::before{display:none}
  .scroll td.w>span{display:block;overflow:visible;max-width:none}
  .scroll td.acts{flex-wrap:wrap;justify-content:flex-end}
  .scroll td.acts .btn{margin-left:0}
  .scroll td.acts .rowmenu{margin-left:0}
  .scroll tfoot{display:block}.scroll tfoot tr{display:grid;grid-template-columns:minmax(0,1fr);margin:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  .scroll tfoot td:empty{display:none}.scroll tfoot td:first-child::before{display:none}
  .phone-nav{display:flex}
  [data-money] .btn.g{height:44px;border-radius:999px;justify-content:center;flex:1 1 auto}
}
.tb{display:none}
@media (max-width:760px){
  .canvas{padding-bottom:96px}
  .tb{display:flex;position:fixed;left:0;right:0;bottom:0;justify-content:space-around;align-items:center;padding:6px 6px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;font-size:10.5px;color:var(--mute);z-index:30}
  .tb a{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:var(--mute);min-width:56px}
  .tb a.on{color:var(--ink)}
  .tb svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
  .tb .mic{width:46px;height:46px;border-radius:50%;background:var(--ink);color:#fff;border:0;display:grid;place-items:center;margin-top:-20px;box-shadow:0 6px 14px rgba(20,22,26,.25)}
  .toast{bottom:88px}
  /* More: the last item of the bar opens a sheet of everything the side menu holds. */
  .tb .more{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:56px;border:0;background:none;padding:0;font:inherit;color:var(--mute);position:relative}
  .tb .more.on,.tb .more[aria-expanded="true"]{color:var(--ink)}
  .tb .n{position:absolute;top:-4px;left:calc(50% + 4px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--gate);color:#fff;font-size:10px;line-height:16px;text-align:center}
  .tb a{position:relative}
  .more-sheet{position:fixed;left:0;right:0;bottom:0;z-index:29;max-height:min(78vh,640px);overflow:auto;background:#fff;border-top:1px solid var(--line);border-radius:14px 14px 0 0;box-shadow:0 -12px 30px rgba(20,22,26,.14);padding:6px 10px calc(78px + env(safe-area-inset-bottom))}
  .more-sheet .dh{display:flex;align-items:center;justify-content:space-between;padding:8px 6px 6px;position:sticky;top:-6px;background:#fff}
  .more-sheet .ic{width:36px;height:36px;border:0;background:none;color:var(--mute);display:grid;place-items:center}
  .more-sheet .ic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
  .more-sheet .nav a,.more-sheet .nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 10px;border-radius:9px;color:var(--ink2);text-decoration:none;font:inherit;font-weight:500;border:0;background:none;width:100%;text-align:left}
  .more-sheet .nav a.on{background:#EFEEE9;color:var(--ink)}
  .more-sheet .nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
  .more-sheet .nav .n{margin-left:auto}
  .more-sheet .nav.own{border-top:1px solid var(--line2);margin-top:6px;padding-top:6px}
  .more-sheet .nav form{margin:0}
}
@media (min-width:761px){.more-sheet{display:none!important}}
.rail .nav.own{flex:none;margin-top:8px;padding-top:8px;border-top:1px solid var(--line2)}
.btn.busy{opacity:.55}
/* Forms, checklists, documents, media, public pages */
.fields{padding:4px 16px 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--ink2)}
.fields input,.fields textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;color:var(--ink);background:#fff}
.fields select{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;color:var(--ink);background:#fff}
.fields .rows-field{grid-column:1/-1;border:0;margin:0;padding:0;min-width:0;font-size:12px;color:var(--ink2)}
.fields .rows-field legend{padding:0 0 5px}
.fields .rows-in{width:100%;border-collapse:collapse}
.fields .rows-in th{text-align:left;font-weight:500;padding:0 6px 4px 0}
.fields .rows-in td{padding:0 6px 6px 0}
.fields .rows-in input{width:100%;box-sizing:border-box}
.fields label.chk{flex-direction:row;align-items:flex-start;gap:8px}
.fields label.chk input{width:auto;margin-top:2px}
.fields .row{grid-column:1 / -1;display:flex;justify-content:flex-end}
.fields .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.li.done .t{color:var(--ink2)}
.card.pad{padding:18px}
.doc{padding:22px 26px}.dochead{display:flex;align-items:center;gap:12px;margin-bottom:10px}.dochead h2{margin:0;flex:1 1 auto;font-size:20px;letter-spacing:-.01em}
.mediagrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;padding:12px 16px 16px}
.mediagrid figure{margin:0;display:flex;flex-direction:column;gap:6px}
.mediagrid img,.mediagrid video{width:100%;border-radius:10px;border:1px solid var(--line);background:#fff}
.mediagrid audio{width:100%}
.mediagrid figcaption{font-size:12.5px}.mediagrid figcaption .s{display:block;color:var(--mute);font-size:11.5px}
.public{width:min(560px,100%);display:flex;flex-direction:column;gap:16px}
.public .ws{padding:0}
@media print{.rail,.top,.dock,.tb,.noprint,.toast{display:none!important}.canvas{padding:0;max-width:none}.card{border:0;box-shadow:none}body{background:#fff}}
.stream .msg{display:flex;flex-direction:column;gap:8px;min-width:0}
.stream .msg .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.stream .gates{grid-template-columns:minmax(0,1fr)}
.stream .gc .big{font-size:18px}
.stream .s{font-size:11.5px;color:var(--mute)}
.dock .dh .s{margin-left:auto;font-size:11.5px;color:var(--mute)}
.rail .feat{display:flex;align-items:center;gap:10px;margin:10px 0 8px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;text-decoration:none;color:var(--ink)}
.rail .feat svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;opacity:.8}
.rail .feat .s{font-size:11.5px;color:var(--mute)}
.rail .nav{flex:1 1 auto}
/* Long words in a cell keep to two lines; the whole text is on the record's page and in the title. */
td.w>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:420px}
td.w{min-width:160px}
body.recording [data-mic]{color:var(--late)}
body.recording [data-mic].mic{background:var(--late)}

/* Independently stacked recipe columns, folded in reading order on a narrow canvas. */
.canvas{container-type:inline-size}
.part-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px;align-items:start;min-width:0}
.part-columns:has(>.parts-column:only-child){grid-template-columns:minmax(0,1fr)}
.parts-column{display:flex;flex-direction:column;gap:14px;min-width:0}
.parts-column .li{flex-wrap:wrap}.parts-column .li .t{flex-basis:140px}
.tile-body{padding:16px;gap:24px}.ch .pill{margin-left:auto}
.compact .gates{display:flex;flex-direction:column;gap:0}
.compact .gc{background:#fff;border:0;border-radius:0;border-bottom:1px solid var(--line2);padding:12px 16px}
.compact .gc .big{font-size:18px}.compact .acts{flex-wrap:wrap}
.compact .cf{margin:0}.mediagrid .acts{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px}
.terminal-actions{padding:12px 16px}.term{margin:0;overflow-wrap:anywhere}
.key-hints{display:flex;gap:8px;align-items:center;flex:none;font-size:11.5px;color:var(--mute)}
.key-hints button,.key-hints a{display:flex;gap:5px;align-items:center;border:0;background:none;padding:0;color:inherit;font:inherit;text-decoration:none;cursor:pointer}
@container(max-width:720px){.part-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1180px){.key-hints{display:none}}

.card.gate{background:var(--gate-bg);border-color:var(--gate-line)}
.media-compact figure{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px 12px;align-items:start}
.media-compact figure>img,.media-compact figure>video,.media-compact figure>.none{grid-row:1 / span 2;min-width:0;height:150px;object-fit:cover}
.media-compact figure>figcaption,.media-compact figure>.acts{grid-column:2}
.text-note{padding:14px 16px;color:var(--ink2)}.text-note p{margin:0}
@container(max-width:720px){.part-columns:has(.approvals)>.parts-column[data-column="side"],.part-columns:has(.card.gate)>.parts-column[data-column="side"]{order:-1}}

@container(max-width:720px){.cal{grid-template-columns:repeat(3,minmax(0,1fr))}.cal>div{min-height:160px}}
/* The conversation part: an agent's own log as a conversation. The newest line is at the foot and the box opens there. */
.cv{display:flex;flex-direction:column-reverse;overflow:auto;max-height:620px;border-top:1px solid var(--line2)}
.cv-in{display:flex;flex-direction:column;gap:12px;padding:16px;min-width:0}
.cv-you{display:flex;justify-content:flex-end}.cv-you .bub{white-space:pre-wrap;overflow-wrap:anywhere}
.cv-md{line-height:1.6;overflow-wrap:anywhere;min-width:0}.cv-md p{margin:0 0 8px;white-space:pre-line}.cv-md p:last-child{margin-bottom:0}
.cv-md h4{margin:10px 0 6px;font-size:13px;font-weight:600}.cv-md ul{margin:0 0 8px;padding-left:18px}.cv-md li{margin:2px 0}
.cv-md code,.cv-name{font:12px "Geist Mono",ui-monospace,Menlo,monospace;background:#F3F2EE;border-radius:5px;padding:1px 5px}
.cv-code,.cv-diff{margin:0;font:12px/1.6 "Geist Mono",ui-monospace,Menlo,monospace;background:#FBFBF9;border:1px solid var(--line2);border-radius:8px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}
.cv-diff .add,.cv-count .add{color:var(--ok)}.cv-diff .del,.cv-count .del{color:var(--late)}
.cv-diff .add{background:var(--ok-bg)}.cv-diff .del{background:var(--late-bg)}.cv-diff .m{color:var(--mute)}
.cv-step{border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}
.cv-step summary{display:flex;align-items:center;gap:8px;padding:7px 10px;cursor:pointer;list-style:none;min-width:0}
.cv-step summary::-webkit-details-marker{display:none}
.cv-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink2)}
.cv-count{font:12px "Geist Mono",ui-monospace,Menlo,monospace;white-space:nowrap}
.cv-dot{width:6px;height:6px;border-radius:50%;background:#C9C8C2;flex:none}.cv-dot.ok{background:var(--ok)}.cv-dot.late{background:var(--late)}.cv-dot.run{background:var(--ink)}
.cv-body{padding:0 10px 10px;display:flex;flex-direction:column;gap:8px}
.cv-k{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--mute)}.cv-k b{color:var(--ink);font-size:13px;font-weight:600}
.cv-todos{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.cv-todos ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.cv-todos li{display:flex;align-items:baseline;gap:9px}.cv-todos li.done{color:var(--mute);text-decoration:line-through}.cv-todos li.now{font-weight:600}
.cv-todos .mk{width:8px;height:8px;border-radius:50%;border:1px solid #C9C8C2;flex:none}.cv-todos .mk.ok{background:var(--ok);border-color:var(--ok)}.cv-todos .mk.run{background:var(--ink);border-color:var(--ink)}
.cv-q.answered{border:1px solid var(--line);border-radius:14px;padding:12px 16px;display:flex;flex-direction:column;gap:6px;color:var(--ink2)}
.cv-ask{margin:0;font-weight:600}.cv-opts{display:flex;flex-direction:column;gap:6px}.cv-press{margin:0;display:flex}
.cv-opt{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;text-align:left;border:1px solid var(--gate-line);border-radius:10px;background:#fff;padding:8px 12px;font:inherit;color:var(--ink);cursor:pointer}
.cv-opt.off{cursor:default;border-color:var(--line)}.cv-opt b{font-weight:600}
button.cv-opt:hover,button.cv-opt:focus-visible{border-color:var(--gate);outline:0}
.cv-rule{display:flex;align-items:center;gap:10px;color:var(--mute);font-size:11.5px}.cv-rule::before,.cv-rule::after{content:"";flex:1 1 auto;border-top:1px solid var(--line)}
.cv-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--line2)}
.cv-status.gate{background:var(--gate-bg)}.cv-status .cv-press{margin-left:auto}.cv-tokens{font-variant-numeric:tabular-nums}
.cv-status span.s,[data-part="conversation"] .ch .s{color:var(--mute);font-size:12px}[data-part="conversation"] .ch .s{margin-left:6px}
.cv-status.gate .pulse{background:var(--gate);box-shadow:0 0 0 4px rgba(168,100,0,.14)}

/* A tile for each terminal of a Space. In a list: side by side where there is room. As laid out: each tab is one
   rectangle and its tiles sit where their machine lays them out. A terminal is dark, as terminals are. */
.term-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:12px}
.term-rects{position:relative;margin:12px;min-height:420px;max-height:78vh;width:calc(100% - 24px)}
.term-rects+.term-rects{margin-top:16px}
.term-tile{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.term-rects>.term-tile{position:absolute;box-sizing:border-box;border-width:1px;outline:3px solid #fff;outline-offset:-1px}
.term-tile.needs,.term-rects>.term-tile.needs{border-color:var(--gate);outline:2px solid var(--gate);outline-offset:-2px;z-index:1}
.term-head{display:flex;align-items:center;gap:6px;padding:5px 8px;min-height:32px;border-bottom:1px solid var(--line2);flex:none}
.term-head b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-weight:600}
.term-head .s{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mute)}
.term-mark{flex:none;width:20px;height:20px;border-radius:5px;background:#F1F0EC;color:var(--ink2);display:grid;place-items:center;font-size:10.5px;font-weight:600}
.term-st{flex:none;font-size:11.5px;color:var(--mute)}.term-st.ok{color:var(--ok)}
.term-st.gate{background:var(--gate-bg);color:var(--gate);border-radius:999px;padding:1px 8px;font-weight:600}
.seg{display:inline-flex;flex:none;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.seg-b{border:0;background:#fff;color:var(--ink2);font:inherit;font-size:11.5px;padding:2px 8px;cursor:pointer}
.seg-b.on{background:#EFEEE9;color:var(--ink);font-weight:600}
.term-big{flex:none;border:0;background:none;color:var(--mute);cursor:pointer;font-size:14px;line-height:1;padding:2px 4px;border-radius:5px}
.term-big:hover{background:#F1F0EC;color:var(--ink)}
.term-view{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}
.term-view[hidden]{display:none}
.term-view[data-view="terminal"]{background:#14161A}
.term-tile .term{margin:0;border-radius:0;flex:1;overflow:auto}
.term-tiles .term-tile .term{max-height:260px}
.term-live{overflow:hidden;background:#14161A;flex:none}.term-live[hidden]{display:none}
.term-note{color:#7C818C;padding:14px 16px;font-size:12px}
.term-said{background:var(--late-bg);color:var(--late);padding:4px 10px;font-size:12px;flex:none}.term-said[hidden]{display:none}
.term-head .cv-press{flex:none;display:inline-flex}.term-head .term-stop{height:22px;padding:0 8px;font-size:11.5px}
.term-tile[data-type="1"] .term-live{cursor:text}
.term-x{border:0;background:none;color:var(--mute);cursor:pointer;font-size:15px;line-height:1;padding:2px 5px;border-radius:5px}
.term-x:hover{background:#F1F0EC;color:var(--ink)}.term-x.armed{background:var(--late-bg);color:var(--late);font-size:11.5px;font-weight:600;padding:3px 8px}
.term-top{display:inline-flex;gap:6px;margin-left:auto;align-items:center}.term-top .cv-press{display:inline-flex}
.term-view[data-view="chat"]>.card{border:0;border-radius:0;box-shadow:none;flex:1;min-height:0}
.tile-box:empty{display:none}
.term-tile.big{position:fixed!important;inset:12px;width:auto!important;height:auto!important;z-index:60;box-shadow:0 20px 60px rgba(20,22,26,.35)}
body.tile-big{overflow:hidden}
.part-columns.browse{grid-template-columns:minmax(200px,260px) minmax(0,1fr)}
@container(max-width:720px){.part-columns.browse{grid-template-columns:minmax(0,1fr)}
  .term-rects{aspect-ratio:auto!important;min-height:0;max-height:none;display:flex;flex-direction:column;gap:10px}
  .term-rects>.term-tile{position:static;width:auto!important;height:62vh!important;outline:0}}

/* The one input box (the dock's, and a conversation's with an agent as its target): one rounded box, files above the
   words, the words growing as they are typed, and a row under them with + at the left and the microphone and send at
   the right. Send becomes stop while the agent works and nothing new is typed. */
.ask{flex-direction:column;align-items:stretch;gap:4px;padding:10px 10px 8px 14px;border-radius:18px;border-color:#E2E1DC;
  box-shadow:0 1px 2px rgba(20,22,26,.04),0 6px 18px rgba(20,22,26,.05);transition:border-color .15s,box-shadow .15s;cursor:text}
.ask:focus-within{border-color:#CFCEC8;box-shadow:0 1px 2px rgba(20,22,26,.05),0 8px 24px rgba(20,22,26,.08)}
.ask textarea{display:block;width:100%;border:0;outline:0;background:transparent;font:14.5px/1.5 Geist,Inter,system-ui,sans-serif;color:var(--ink);
  min-width:0;resize:none;max-height:220px;min-height:26px;padding:3px 2px 2px;overflow-y:auto}
.ask textarea::placeholder{color:#A3A7AE}
.ask .tray{padding:2px 0 6px}
.ask-bar{display:flex;align-items:center;gap:4px;margin-left:-6px;cursor:default}
.ask-hint{flex:1 1 auto;min-width:0;font-size:11.5px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ask-round{width:32px;height:32px;border-radius:50%;padding:0;color:var(--ink2)}
.ask-round svg{width:17px;height:17px}
.ask-bar [data-attach]{border:1px solid var(--line)}
.ask-go{width:32px;height:32px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none;padding:0}
.ask-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ask-go.stop svg{fill:currentColor;stroke-width:1.2}
.ask textarea:placeholder-shown~.ask-bar .ask-go[type=submit]{background:#D9D8D3}
.ask:not(.busy) .ask-go.stop{display:none}
.ask.busy textarea:placeholder-shown~.ask-bar .ask-go[type=submit]{display:none}
.ask.busy textarea:not(:placeholder-shown)~.ask-bar .ask-go.stop{display:none}
.ask.sending .ask-go[type=submit]{opacity:.55}
[data-part="conversation"] .askwrap{padding:10px 12px 12px;border-top:1px solid var(--line2)}

/* The office's own agent's panel. The person's words in a soft bubble at the right; the agent's in plain sans prose
   with a line length that reads well; what it did as quiet lines that open; time and cost small under the answer. */
.dock .dh b{font-weight:600}
.dock .dh .room{display:flex;gap:2px;margin-left:auto}
.dock .dh .s+.room{margin-left:0}
.dock .dh .ic{width:28px;height:28px;border-radius:7px;color:var(--mute)}
.dock .dh .ic:hover{color:var(--ink)}
.dock .dh .ic[aria-pressed="true"]{background:#EFEEE9;color:var(--ink)}
.stream .bub{max-width:85%;border-radius:18px;padding:9px 14px;font-size:14.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.stream .bub.pending{opacity:.65}
.stream .msg+.bub{margin-top:6px}
.stream .msg>.pill{align-self:flex-start}
.stream-empty{margin:auto 0;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:24px 12px;color:var(--ink2)}
.stream-empty p{margin:0;font-size:15px;line-height:1.55;max-width:30ch}
.reply{min-width:0}
.reply .cv-md{font:15px/1.65 Geist,Inter,system-ui,sans-serif;color:var(--ink);max-width:68ch;letter-spacing:-.003em}
.reply.quiet .cv-md{color:var(--ink2)}
.reply .cv-md p{margin:0 0 .8em}
.reply .cv-md h4{font-size:15.5px;font-weight:600;margin:1.15em 0 .45em;letter-spacing:-.01em}
.reply .cv-md>h4:first-child{margin-top:0}
.reply .cv-md ul,.reply .cv-md ol{margin:0 0 .8em;padding-left:1.45em}
.reply .cv-md li{margin:.3em 0;padding-left:.2em}
.reply .cv-md li>ul,.reply .cv-md li>ol{margin:.3em 0 0}
.reply .cv-md ol>li::marker{color:var(--ink2);font-weight:500}
.reply .cv-md ul>li::marker{color:var(--mute)}
.reply .cv-md b{font-weight:600}
.reply .cv-md code{font-size:.84em;padding:1.5px 5px}
.reply .cv-md .cv-code{font-size:12.5px;line-height:1.6;margin:0 0 .8em;padding:12px 14px;border-radius:10px;max-height:420px;white-space:pre;overflow:auto;overflow-wrap:normal}
.reply .cv-md blockquote{margin:0 0 .8em;padding:1px 0 1px 14px;border-left:3px solid var(--line);color:var(--ink2)}
.reply .cv-md blockquote>:last-child{margin-bottom:0}
.reply .cv-md hr{border:0;border-top:1px solid var(--line);margin:1.1em 0}
.reply .cv-md>:last-child{margin-bottom:0}
.reply .cv-tablewrap{overflow-x:auto;margin:0 0 .8em;border:1px solid var(--line);border-radius:10px;background:#fff;max-width:100%}
.reply .cv-table{font-size:13.5px;line-height:1.45}
.reply .cv-table th,.reply .cv-table td{height:auto;padding:7px 12px;border-top:1px solid var(--line2);text-align:left;vertical-align:top;white-space:normal;min-width:80px}
.reply .cv-table thead th{border-top:0;font-size:12px;font-weight:600;color:var(--ink2);background:#FBFBF9;letter-spacing:0;white-space:nowrap}
.reply .cv-tablewrap>.s{padding:6px 12px;border-top:1px solid var(--line2)}
.stream .meta,.stream .steps summary{font-size:11.5px;color:var(--mute)}
.stream .steps summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;border-radius:6px;padding:2px 6px;margin-left:-6px}
.stream .steps summary::-webkit-details-marker{display:none}
.stream .steps summary::after{content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-left:2px;transition:transform .15s}
.stream .steps[open] summary::after{transform:rotate(45deg)}
.stream .steps summary:hover{background:#F1F0EC;color:var(--ink2)}
.step-list{list-style:none;margin:6px 0 2px;padding:0 0 0 12px;border-left:1.5px solid var(--line);display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--ink2)}
.step-list li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;min-width:0}
.step-list .st-on{font:11.5px "Geist Mono",ui-monospace,Menlo,monospace;color:var(--mute);overflow-wrap:anywhere;min-width:0}
.step-list .st-why{font-size:11.5px;color:var(--late);overflow-wrap:anywhere;min-width:0}
.live{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink2)}
.live .pulse{animation:live 1.4s ease-in-out infinite}
.live-w{background:linear-gradient(90deg,var(--ink2) 0%,var(--ink2) 40%,#B9BCC2 50%,var(--ink2) 60%,var(--ink2) 100%);background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:shine 2.2s linear infinite}
@keyframes live{50%{box-shadow:0 0 0 6px rgba(14,122,85,.08)}}
@keyframes shine{from{background-position:110% 0}to{background-position:-110% 0}}
@media (prefers-reduced-motion:reduce){.live .pulse,.live-w{animation:none}.live-w{color:var(--ink2);background:none}}

/* Room: wider, or the whole window as a conversation page with a centred column; a phone gives it the whole screen. */
.work[data-agent-size="wide"]>.dock{width:min(640px,48vw)}
@media (min-width:1181px){
  .work[data-agent-open="1"][data-agent-size="full"]>.dock{flex:1 1 auto;width:auto;border-left:0;background:var(--bg)}
  .work[data-agent-open="1"][data-agent-size="full"]>.canvas{display:none}
}
@media (max-width:1180px){
  .work[data-agent-open="1"][data-agent-size="wide"]>.dock{width:min(640px,100%)}
  .work[data-agent-open="1"][data-agent-size="full"]>.dock{left:0;width:auto;bottom:0;background:var(--bg)}
}
.work[data-agent-size="full"] .stream,.work[data-agent-size="full"] .dock .askwrap{padding-left:max(20px,calc((100% - 760px) / 2));padding-right:max(20px,calc((100% - 760px) / 2))}
.work[data-agent-size="full"] .stream{padding-top:32px;gap:22px}
.work[data-agent-size="full"] .dock .askwrap{padding-bottom:22px}
@media (max-width:760px){
  .work[data-agent-open="1"]>.dock{position:fixed;inset:0;width:auto;height:auto;z-index:45;box-shadow:none;border-left:0}
  .dock .dh .room{display:none}
  .dock .dh .ic[data-agent-close]{margin-left:auto}
  .dock .askwrap{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .stream{padding:16px 14px 10px}
  .ask textarea{font-size:16px}
}
.cv-queue{display:flex;flex-direction:column;gap:6px;padding:10px 12px 0;border-top:1px solid var(--line2)}
.cv-wait{display:flex;align-items:center;gap:10px;border:1px dashed var(--line);border-radius:10px;padding:6px 6px 6px 12px;min-width:0}
.cv-wait .s,.cv-you .s{color:var(--mute);font-size:11.5px;white-space:nowrap}.cv-wait .cv-press{margin-left:auto}
.cv-ql{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-you{flex-direction:column;align-items:flex-end;gap:3px}.cv-you .bub.pending{opacity:.6}
.cv-start{padding:32px 20px 24px;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center}
.cv-start h4{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em}.cv-hints{display:flex;flex-direction:column;gap:6px}
.cv-form{display:flex;flex-direction:column;gap:8px;margin:0}.cv-form .acts{display:flex;gap:8px;margin-top:2px}
.cv-opt{flex-direction:row;align-items:flex-start;gap:10px}.cv-ot{display:flex;flex-direction:column;gap:2px;min-width:0}
.cv-n{flex:none;width:20px;height:20px;border-radius:6px;border:1px solid var(--line);display:grid;place-items:center;font:11px "Geist Mono",ui-monospace,Menlo,monospace;color:var(--ink2);background:#FBFBF9}
label.cv-opt{cursor:pointer}label.cv-opt:has(input:checked){border-color:var(--gate);background:var(--gate-bg)}
label.cv-opt>input[type=radio],label.cv-opt>input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px}
label.cv-opt:focus-within{border-color:var(--gate)}
.cv-own{align-items:center}.cv-own input{flex:1 1 auto;border:0;outline:0;background:transparent;font:inherit;color:var(--ink);min-width:0}
.cv-ask .s{font-weight:400;color:var(--mute);font-size:11.5px}
.ask.sending .btn.p{opacity:.55}.cv-wait.not{border-style:solid;border-color:var(--late-bg)}.cv-wait .s.late{color:var(--late);white-space:normal}
.cv-q .sub .s{display:block;margin-top:3px;color:var(--late)}
.cv-start p{margin:0;color:var(--mute)}

/* A panel the person left open is drawn open on the first paint (early.js sets the two marks in the head); the shell's
   script takes the marks away once it has set the panel itself. Only where the panel sits beside the page. */
@media (min-width:1181px){
  html[data-agent-kept="1"] .work[data-agent-open="0"]>.dock{display:flex}
  html[data-agent-kept="1"][data-agent-room="wide"] .work[data-agent-open="0"]>.dock{width:min(640px,48vw)}
  html[data-agent-kept="1"][data-agent-room="full"] .work[data-agent-open="0"]>.dock{flex:1 1 auto;width:auto;border-left:0;background:var(--bg)}
  html[data-agent-kept="1"][data-agent-room="full"] .work[data-agent-open="0"]>.canvas{display:none}
}

/* A row's buttons never run past its card: the first stays on the row and the rest are under More (14 Nov 2026). */
td.acts .rowmenu{display:inline-block;margin-left:6px}
.li .rowmenu,.pc .rowmenu,.acts .rowmenu{display:inline-block}
.menu-box{display:flex;flex-direction:column;gap:4px;min-width:150px}
.menu-box .btn{justify-content:flex-start;margin:0;width:100%}
/* The total under a column of money. */
.scroll tfoot td{border-top:1px solid var(--line);font-weight:600;background:#FBFBF9}
.scroll tfoot td:first-child{position:sticky;left:0;background:#FBFBF9;z-index:1}
/* A conversation (the thread kit part): theirs on the left, ours on the right, the newest at the foot. */
.card[data-part="thread"] .th{display:flex;flex-direction:column;gap:3px;max-height:min(62vh,640px);min-height:120px;overflow-y:auto;padding:14px 16px;background:#F1F0EA;border-top:1px solid var(--line2);scroll-behavior:auto}
.th-day{align-self:center;margin:10px 0 6px}
.th-day span{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:999px;padding:2px 10px;font-size:11.5px;color:var(--mute)}
.th-row{display:flex;max-width:100%}
.th-row.theirs{justify-content:flex-start}
.th-row.ours{justify-content:flex-end}
.th-b{max-width:min(78%,34rem);border:1px solid var(--line);border-radius:12px;padding:7px 11px 5px;background:#fff;min-width:0}
.th-row.ours .th-b{background:var(--ok-bg);border-color:#CFE8DB}
.th-row.theirs .th-b{border-top-left-radius:4px}
.th-row.ours .th-b{border-top-right-radius:4px}
.th-row.focus .th-b{box-shadow:0 0 0 2px var(--gate-line)}
.th-who{font-size:11.5px;font-weight:600;color:var(--ink2);margin-bottom:1px;overflow-wrap:anywhere}
.th-sub{font-size:12px;font-weight:600;margin-bottom:2px;overflow-wrap:anywhere}
.th-w{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13.5px;line-height:1.45}
.th-t{display:block;text-align:right;font-size:10.5px;color:var(--mute);margin-top:2px}
.th-reply{display:flex;flex-direction:column;gap:8px;padding:10px 14px 12px;border-top:1px solid var(--line2);background:#fff}
.th-reply textarea{width:100%;resize:vertical;min-height:52px;font:inherit;font-size:13.5px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;color:var(--ink)}
.th-reply .row{display:flex;justify-content:flex-end}
@media (max-width:640px){.th-b{max-width:88%}.card[data-part="thread"] .th{max-height:58vh;padding:12px 10px}}
/* The agent panel drawn with the Night Desk chat frame (src/agency/kit/nd/chatframe.py). Its look is the design's own
   stylesheet (static/nightdesk/base.css and theme.css, loaded with the page frame); here only what the old dock box
   around it needs: the panel's own ground, a question on its way shown faintly, and no room buttons on a phone. */
.dock.chat-frame{background:var(--chat-bg,#FDFDFC)}
.dock.chat-frame .k-msg.pending{opacity:.65}
.dock.chat-frame svg.ic{padding:0;border-radius:0;display:inline-block;background:none}
.dock.chat-frame [data-agent-room] svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dock.chat-frame .dock-note{margin:0;padding:8px 14px;border-bottom:1px solid var(--line)}
@media (max-width:760px){.dock.chat-frame [data-agent-room]{display:none}.dock.chat-frame .chat-hide{display:inline-grid}}
.work[data-agent-size="full"] .dock.chat-frame .chat-log,.work[data-agent-size="full"] .dock.chat-frame .k-composer{padding-left:max(20px,calc((100% - 760px) / 2));padding-right:max(20px,calc((100% - 760px) / 2))}
/* City behaviours on the Night Desk components (kit/adapt.py): what the design's sample has no look for. */
.k-tools{display:inline-flex;align-items:center;gap:12px;font-size:12.5px;font-weight:400;text-transform:none;letter-spacing:0}
.k-tools .k-src{margin:0}
.k-src.is-stale::before{background:var(--late);box-shadow:none}
.k-count>a,.k-count>.k-tools{margin-left:auto}
.k-count>a+.k-tools{margin-left:12px}
.k-link{text-decoration:none}
.k-edit{display:inline-block;min-width:3ch;min-height:1.3em;cursor:text;border-bottom:1px dashed var(--line)}
.k-edit.is-blank{min-width:8ch}
.k-edit:focus-visible,.k-edit:hover{border-bottom-color:var(--accent)}
.k-table tr.is-flag td:first-child{box-shadow:inset 2px 0 0 var(--amber-btn)}
.k-table tfoot td{padding:var(--row) var(--pad);font-weight:600;border-top:1px solid var(--line)}
.k-table tfoot .num{text-align:right;font-family:var(--font-num);font-variant-numeric:tabular-nums;white-space:nowrap}
.k-table a.open{color:inherit;text-decoration:none}
.k-table a.open:hover{text-decoration:underline}
.k-table td:last-child .rowmenu,.k-list-right .rowmenu,.k-bcard .rowmenu{display:inline-block}
.k-list-title a{color:inherit;text-decoration:none}
.k-bcard[data-moves]{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.k-bcard.dragging{opacity:.35}.k-bcard.busy{opacity:.6}
.dragging-card .k-lane[data-lane]{align-self:stretch;min-height:120px}
.k-lane.drop-ok{outline:2px dashed var(--ink2);outline-offset:-2px}
.k-lane.drop-ok.drop-over{outline-style:solid}
.k-lane.drop-no{opacity:.45}
.k-calnote{margin:8px var(--pad,14px) 0;font-size:12.5px;color:var(--mute)}
.k-longfact{margin-top:14px}
.k-longfact .lg-text{white-space:pre-wrap}
.k-tabs a.k-tab{text-decoration:none}
.k-text .k-line{margin:0}
a.k-btn{text-decoration:none;display:inline-block}
.k-panel>.k-tiles{padding:4px var(--pad) var(--pad)}
.k-table-wrap.scroll td:first-child,.k-table-wrap.scroll th:first-child,.k-table-wrap.scroll td.acts,.k-table-wrap.scroll th.acts{background:var(--surface)}
.k-table-wrap.scroll tr.total td{background:var(--surface2)}
/* Until the frame (NIGHT-DESK step 1) replaces the office's menu: the design's .nav rule is not the office's menu. */
.rail .nav{align-items:stretch;background:none;border-right:0}
/* Every lane of a board stays within reach of a drag on a desk (the design's lanes are 200px at least). */
@media (min-width:761px){.k-board{grid-auto-columns:minmax(150px,1fr)}}
/* An email as it will arrive (kit part email_preview): the frame at a computer's width, a phone's, or darkened as a
   dark-mode mail app roughly does; the shell's script switches data-mode. */
.k-mailprev{display:grid;gap:10px;padding:0 var(--pad,14px) var(--pad,14px)}
.k-mailprev .k-tabs{display:flex;gap:6px}
.k-mailprev-frame{display:flex;justify-content:center;background:var(--surface2);border-radius:var(--radius-sm,8px);padding:12px;overflow:auto}
.k-mailprev iframe{width:100%;max-width:640px;height:560px;border:0;background:#fff;border-radius:6px}
.k-mailprev[data-mode="phone"] iframe{max-width:390px;height:680px}
.k-mailprev[data-mode="dark"] iframe{max-width:390px;height:680px;filter:invert(1) hue-rotate(180deg)}
.k-mailprev-dark{display:none;margin:0}
.k-mailprev[data-mode="dark"] .k-mailprev-dark{display:block}
