/* Console-only pieces, on top of the V1 styles and the V2 flat layer. Flat: hairlines, no boxed cards. */
.dim { color: var(--text-3); font-size: 12px; }
.mono { font-family: var(--mono); }
.hide { display: none !important; }

/* sign-in */
.entry .mark { width: 72px; height: 72px; margin: 0 auto 20px; }
.entry .mark svg { width: 100%; height: 100%; }
.signin { text-align: left; display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; }
.signin label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.signin input:not([type=checkbox]) { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; color: var(--text); font: 14px var(--sans); outline: 0; }
.signin input:focus { border-color: var(--canopy); }
.signin label.check { flex-direction: row; }
.signin .btn { justify-content: center; height: 42px; }
.si-err { color: var(--bad-2); font-size: 13px; border-left: 2px solid var(--bad); padding-left: 10px; }
.conn { margin-left: 12px; }

/* agent cards: the last thing the agent said, like a terminal */
.term-thumb { height: auto !important; aspect-ratio: 16 / 8; background: var(--ink-0) !important; }
.term-thumb pre { margin: 0; padding: 12px 14px; height: 100%; overflow: hidden; font: 11.5px/1.5 var(--mono); color: var(--code-text); white-space: pre-wrap; word-break: break-word; display: flex; flex-direction: column; justify-content: flex-end; }
.term-thumb .ask { position: absolute; }
.card .thumb.term-thumb { position: relative; }

/* agent page: conversation */
.agentpage { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.agentpage .agentbar .sub span + span::before { content: "·"; margin-right: 10px; color: var(--text-3); }
.convo { flex: 1; min-height: 0; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.turn { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.turn .who { font-size: 12px; font-weight: 600; color: var(--text-2); margin-right: 8px; }
.turn time { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.t-in .bubble { margin-top: 6px; background: color-mix(in srgb, var(--canopy) 8%, transparent); border-left: 2px solid var(--canopy); padding: 8px 12px; white-space: pre-wrap; color: var(--text); font-size: 14px; border-radius: 0; }
.t-out pre { margin: 6px 0 0; padding: 10px 12px; background: var(--ink-0); border: 1px solid var(--line); border-radius: 3px; font: 12.5px/1.55 var(--mono); color: var(--code-text); white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
.t-out.running pre { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.tabbody { padding: 18px; overflow: auto; }
.agentpage .composer { position: sticky; bottom: 0; }
.composer .hint { font-size: 11.5px; color: var(--text-3); }

/* forms */
.vault-form, .sch-form { padding-bottom: 14px; }
.vf-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 0 0 12px; }
.vf-row label, .sch-form label.full { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); flex: 1; min-width: 160px; }
.sch-form label.full { margin-bottom: 12px; }
.vf-row input, .vf-row select, .vf-row textarea, .sch-form textarea { background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 9px 11px; color: var(--text); font: 14px var(--sans); outline: 0; }
.sch-form textarea { min-height: 70px; resize: vertical; }
.vf-row input:focus, .vf-row textarea:focus, .sch-form textarea:focus { border-color: var(--canopy); }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.day { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px !important; min-width: 0 !important; flex: none !important; border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 8px; font-size: 12px; cursor: pointer; }
.day input { accent-color: var(--canopy); }
.acts-cell { white-space: nowrap; text-align: right; }
.acts-cell .btn { margin-left: 4px; }
table.t td .tag2 { margin: 2px 2px 2px 0; }

@media (max-width: 780px) {
  .acts-cell { white-space: normal; text-align: left; }
  .acts-cell .btn { margin: 4px 4px 0 0; }
  table.t th:nth-child(3), table.t td:nth-child(3) { display: none; }
  .convo { padding: 14px 12px; }
  .t-out pre { font-size: 12px; }
}

/* Role-aware, and locked rather than hidden. A control your role can't use is still drawn, greyed and unusable,
   and says what it needs and who can give it to you. Hiding it meant the console looked different for every
   person with no way to tell why, and that nobody learned what the pavilion can do. The Gate refuses the action
   either way; this is only about what a person is shown. console.js `lockControls()` adds `.locked`. */
.locked { opacity: .45; cursor: not-allowed; }
.locked > * { pointer-events: none; }
/* A locked button's reason wraps inside it rather than running off the page (found by tt-frame's render check as a viewer). */
.btn.locked { flex-wrap: wrap; white-space: normal; height: auto; max-width: 100%; }
.locked::after { content: attr(data-lock-why); display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; cursor: default; pointer-events: auto; }
/* Inside a row of buttons the reason goes beside them, not under: the row would jump a line otherwise. */
.op-acts.locked::after, .acts-cell.locked::after, td .locked::after { display: inline; margin: 0 0 0 8px; }
/* In a band of rows the band says it once (console.js lockNotes); each locked control keeps it as its tooltip. */
.op-band .locked::after { content: none; display: none; }
/* Each budget's Change and Remove: the form under the list says who to ask, once, not beside every budget. */
.bud-acts.locked::after { content: none; display: none; }
/* Rows of a list whose page says it once at the top (connector templates) or in the form below (a connector's routes). */
.tpl-row .locked::after, .cn-route .locked::after { content: none; display: none; }
.op-band > .lock-note { margin: 0 0 6px; font-size: 12.5px; }
.op-band > .lock-note[hidden] { display: none; }
.need-viewer-only, .need-below-approver { display: none; }
body.r-viewer .need-viewer-only { display: block; }
/* A viewer on an agent's page reads the note above; the locked composer under it would only say it again (tour r4). */
body.r-viewer #composer[data-agpane] { display: none; }

/* The read failed, your data is fine. Two tones, and never an empty list standing in for a question nobody asked.
   A refused panel offers no "try again": a button that will be refused again is a promise the panel can't keep. */
.op-fail { border-left: 2px solid var(--warn); padding: 10px 0 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.op-fail.refused { border-left-color: var(--line-2); }
.op-fail b { color: var(--text); font-size: 14px; font-weight: 600; }
.op-fail span { color: var(--text-2); font-size: 13px; }
.op-fail-acts { margin-top: 6px; }
.op-fail-detail { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.op-fail-help { color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
/* The phone's More: Help, when the Gate names a support address. The same row as the buttons around it (flat.css). */
.morelist a.mo-help { display: flex; align-items: center; gap: 12px; border-bottom: var(--hair); color: var(--text); padding: 15px 4px; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.morelist a.mo-help svg { width: 18px; height: 18px; color: var(--text-2); flex: none; }
td > .op-fail { margin: 4px 0; }

/* Overblast's `agent-clear` keeps a page's bottom-docked bar out from under their floating launcher. Our field that
   asks and searches (console/ask.js) is a row of the shell between the page and the tab bar, not something drawn
   over the page, so a page's last row, the vault forms, the task composer and the schedule form all end above it by
   construction and need no class. What does float at the bottom — the toasts — is lifted over it (below). */

/* ------------------------------------------------------------------ running the pavilion

   Today and Waiting on you. Flat, hairline rules, square corners, no boxed cards: structure comes from the rules
   and the spacing, and state is carried by the row itself rather than by a legend somewhere else. */

.op-band { border-top: var(--hair, 1px solid var(--line)); padding-top: 12px; margin-bottom: 26px; }
.op-band > h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.op-band > h2 .n { font: 12px var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.op-band > h2 .n.warn { color: var(--warn); }
.op-band > h2 .all { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-weight: 400; background: none; border: 0; padding: 0; }
.op-band > h2 .all:hover { color: var(--text); }
.op-rows { margin-top: 10px; }
.op-more { font-size: 13px; color: var(--text-3); border-top: var(--hair, 1px solid var(--line)); padding: 11px 0 0 12px; margin: 0; }

/* A row. The rule down its left side carries the state, so a stuck thing looks stuck with nothing to go and read. */
.op-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  border-top: var(--hair, 1px solid var(--line)); border-left: 2px solid transparent; padding: 12px 0 12px 12px; }
.op-row:first-child { border-top: 0; }
.op-row .op-main { flex: 1 1 260px; min-width: 0; }
.op-row .op-t { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.op-row .op-t .who { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--canopy-2); margin-right: 7px; }
.op-row .op-sub { color: var(--text-2); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.op-row .op-where { color: var(--text-3); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.op-row .op-where b { color: var(--text-2); font-weight: 500; }
.op-row .op-age { font: 12.5px var(--mono); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.op-row .op-acts { display: flex; gap: 6px; flex-wrap: wrap; flex: none; align-items: baseline; }
.op-row .op-acts > span[class*="need-"] { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.page-head .actions > span[class*="need-"] { display: inline-flex; gap: 8px; align-items: center; }

.op-row.live { border-left-color: var(--ok); }
.op-row.live .op-age { color: var(--ok); }
.op-row.ask, .op-row.stuck { border-left-color: var(--warn); }
.op-row.ask .op-age { color: var(--warn); }
.op-row.stuck .op-age { color: var(--warn); font-weight: 500; }
.op-row.cold { border-left-color: var(--bad); }
.op-row.cold .op-age { color: var(--bad-2); font-weight: 500; }
.op-row.work { border-left-color: var(--canopy); }
.op-row.past { border-left-color: var(--line-2); }
.op-row.past .op-t { color: var(--text-2); font-weight: 500; }
.op-row.past .op-t .who { color: var(--text-2); }

.op-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; margin-right: 8px; vertical-align: 1px; animation: pulse 1.4s infinite; }
.op-row.ask .op-dot, .op-row.stuck .op-dot { background: var(--warn); animation: pulse 1s infinite; }
.op-row.cold .op-dot { background: var(--bad); animation: none; }
.op-row.work .op-dot { background: var(--canopy); animation: none; }
.op-row.past .op-dot { background: var(--line-2); animation: none; }

/* Answering a lead's question without leaving the page. */
.op-answer { display: flex; gap: 8px; margin-top: 2px; flex-basis: 100%; order: 5; max-width: 460px; }
.op-answer input { flex: 1; min-width: 0; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 7px 10px; color: var(--text); font: 13px var(--sans); outline: 0; }
.op-answer input:focus { border-color: var(--canopy); }
.op-row .tk-work { flex-basis: 100%; order: 6; }
.op-row .tk-form { margin-top: 10px; }

/* Empty states (CP.empty in console.js; CONSOLE-REDESIGN §3.6 "Empty states"). One pattern everywhere a list or an area
   can be empty: a line icon from the console's own set (its 1.8 stroke), one short line, and the one obvious action.
   Flat: no box, no fill, centred in the list's area, muted. `.sm` is the form for one section of a page with several
   (For you's bands, Activity, Billing): the icon at the line's start, the note and the action under the line. */
.cp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 44px 16px 48px; margin: 0; color: var(--text-3); }
.cp-empty-i { width: 24px; height: 24px; flex: none; color: var(--text-3); margin-bottom: 6px; }
.cp-empty-t { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1.4; max-width: 46ch; overflow-wrap: anywhere; }
.cp-empty-t b { color: var(--text); font-weight: 600; }
.cp-empty-n { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.45; max-width: 52ch; overflow-wrap: anywhere; }
.cp-empty-a { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cp-empty-a .btn { text-decoration: none; }
.cp-empty.sm { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; justify-items: start; text-align: left; padding: 14px 0 6px; }
.cp-empty.sm .cp-empty-i { width: 16px; height: 16px; margin: 1px 0 0; grid-row: 1; }
.cp-empty.sm > :not(.cp-empty-i) { grid-column: 2; }
.cp-empty.sm .cp-empty-t { font-size: 13px; font-weight: 400; max-width: 72ch; }
.cp-empty.sm .cp-empty-n { font-size: 12.5px; max-width: 72ch; }
.cp-empty.sm .cp-empty-a { margin-top: 6px; justify-content: flex-start; }
/* as a table's only row (CP.emptyRow): no cell padding or rule of its own */
tr.cp-empty-row > td, table.t tr.cp-empty-row > td { padding: 0; border: 0; background: none; }
tr.cp-empty-row:hover > td { background: none; }

/* Nothing happening, said as a sentence. An empty band is an answer, not a blank. */
.op-none { color: var(--text-3); font-size: 13px; padding: 14px 0 4px; margin: 0; }
.op-none b { color: var(--text-2); font-weight: 500; }
.op-checked { color: var(--text-3); font-size: 12px; margin: 6px 0 0; }

.op-today .stats { margin-bottom: 0; }
.op-budget { padding: 14px 0 0; }
.op-budget .bud-top { font-size: 13px; }
.op-budget .bud-bar { max-width: 420px; }

/* The count, from every page. */
.op-waiting { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn);
  border-radius: 3px; padding: 4px 9px; font-size: 12.5px; font-weight: 500; background: color-mix(in srgb, var(--warn) 7%, transparent); white-space: nowrap; }
.op-waiting i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }

/* Pins: a person's own short list in the sidebar, each with live state (frame.css .s-item .state). */
/* On a phone there is no rail, so pins are a row at the top of Today. */
.op-pinrow { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-bottom: 8px; border-bottom: var(--hair, 1px solid var(--line)); }
.op-pin { display: inline-flex; align-items: center; gap: 7px; flex: none; background: transparent; border: 1px solid var(--line-2); border-radius: 3px; padding: 7px 10px; color: var(--text); font-size: 13px; }
.op-pin svg { width: 14px; height: 14px; color: var(--text-3); }
.op-pin i { font: 10.5px var(--mono); font-style: normal; color: var(--text-3); }
.op-pin i.live { color: var(--ok); } .op-pin i.ask { color: var(--warn); } .op-pin i.stuck { color: var(--bad-2); }

/* Widgets: artifacts an agent built that are worth a look every morning, first on Today (docs/ARTIFACTS.md §7).
   Not pins — a pin is a way back to something and lives in the rail. */
.op-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 24px; margin-bottom: 26px; }
.op-tile { border-top: var(--hair, 1px solid var(--line)); padding-top: 12px; }
.op-tile-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.op-tile-h b { font-size: 15px; }
.op-tile-h .btn { margin-left: auto; }
.op-tile-h .btn + .btn { margin-left: 0; }
.op-tile iframe { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: 3px; background: #fff; display: block; }
/* A widget that cannot be drawn says why, in a line, and Today carries on around it. */
.op-tile-off { border: 1px dashed var(--line-2); border-radius: 3px; padding: 22px 16px; color: var(--text-3); font-size: 13px; text-align: center; }
.op-widget-more { display: none; }

@media (max-width: 780px) {
  .op-row { gap: 8px 12px; padding-left: 10px; }
  .op-row .op-main { flex-basis: 100%; }
  .op-row .op-age { order: 3; }
  .op-row .op-acts { order: 4; margin-left: auto; }
  .op-row .op-acts { flex: 1 1 100%; min-width: 0; } /* the locked buttons' reason wraps on a phone (found by the theme render check) */
  .op-row .op-acts > span[class*="need-"].locked { display: flex; }
  .op-pinrow { display: flex; }
  .op-tiles { grid-template-columns: 1fr; }
  .op-tile iframe { height: 220px; }
  /* A glance, not a dashboard: the first widget is drawn and the rest wait behind a line, so the day's decisions
     are not pushed two screens down by three frames. */
  .op-tiles:not(.open) .op-tile.extra { display: none; }
  .op-widget-more { display: block; width: 100%; background: transparent; border: 0; border-top: var(--hair, 1px solid var(--line)); color: var(--text-3); font-size: 13px; text-align: left; padding: 12px 0 0; }
  .topbar .op-waiting { font-size: 12px; padding: 4px 7px; }
}

/* welcome: two ways in */
.welcome-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; max-width: 760px; margin: 0 auto; }
.welcome-opts .signin { margin: 0; max-width: none; border-top: 1px solid var(--line-2); padding-top: 16px; }
.welcome-opts h3 { margin: 0; font-size: 15px; }
.inv-link { display: flex; gap: 8px; margin-top: 10px; }
.inv-link input { flex: 1; min-width: 0; background: var(--ink-0); border: 1px solid var(--control); border-radius: 4px; padding: 7px 10px; color: var(--text); font: 12px var(--mono); }
#memTable tr.mem-person td { padding-top: 18px; border-bottom: 1px solid var(--line); color: var(--text); }
#memTable select { background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; color: var(--text); padding: 4px 8px; }
#memTable select[data-pmerge] { max-width: 220px; }
#memTable tr.mem-person td:last-child { white-space: nowrap; }
/* A phone: each person a line (name · devices, then their role, Merge with… and Remove person), each device a short
   line under them (what it is, its key, when it was seen, Remove device). The table's third-column rule would hide the
   person's actions here, so the rows are blocks instead of columns. */
@media (max-width: 780px) {
  #memTable, #memTable tbody { display: block; width: 100%; }
  #memTable tr:has(th) { display: none; }
  #memTable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); }
  #memTable tr.mem-person { padding: 18px 0 10px; }
  #memTable td, #memTable tr.mem-person td, #memTable td:nth-child(3) { display: block; padding: 0; border: 0; min-width: 0; }
  #memTable td:empty { display: none; }
  #memTable tr > td:first-child { flex-basis: 100%; }
  #memTable tr.mem-person td:last-child { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; }
  #memTable select, #memTable select[data-pmerge] { max-width: 100%; min-height: 36px; }
}
@media (max-width: 780px) { .welcome-opts { grid-template-columns: 1fr; } }
.tag2.bad { color: var(--bad-2); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
#mchTable input[data-code] { background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 5px 8px; color: var(--text); font-size: 13px; letter-spacing: .08em; }
@media (max-width: 780px) {
  #mchTable tr { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #mchTable th { display: none; }
  #mchTable td { display: block !important; padding: 0 !important; border: 0 !important; }
  #mchTable .acts-cell { display: flex !important; flex-wrap: wrap; gap: 6px; }
  #mchTable .acts-cell .btn { margin: 0; }
}

/* An email address or phone number (format.js addr): never broken mid-word. An email may wrap at its "@" only; a part
   longer than the line is cut with an ellipsis, the whole address in its title. */
.cp-addr { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; overflow-wrap: normal; word-break: normal; }
.cp-addr.one, .cp-addr > span { white-space: nowrap; } /* not even at a hyphen: an email's halves each stay whole */

/* passkeys: the first way in on the welcome screen */
.welcome-opts .pk-signin { grid-column: 1 / -1; }
/* Sent here by a phone's New pavilion: the create form leads, full width, and the two sign-ins share the row below. */
.welcome-opts .signin.first { grid-column: 1 / -1; }
.welcome-opts:has(.signin.first) .pk-signin { grid-column: auto; }
/* Below the heading, never pulled into it: a negative top margin laid it over "pavilion"'s descenders on a phone (tour, 14 Nov 2026). */
.entry .entry-links { margin: 10px 0 14px; }
.entry .entry-links a { color: inherit; }
.pk-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pk-row label { flex: 1; min-width: 180px; }
#pkTable td:first-child { width: 100%; }

/* projects: a task is a short vertical pipeline (docs/PROJECTS.md §2d). Hairlines, no boxed cards. */
.pl-task { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.pl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* A task a deep link named (#/projects/<p>/task/<id>, from search): a hairline in the accent at its left, no box. */
.pl-task.pl-hit, .pl-step.pl-hit { box-shadow: inset 2px 0 0 var(--canopy); padding-left: 12px; scroll-margin: 80px; }
.pl-head .sp, .vf-row .sp { flex: 1; }
/* a choice in a page's or a panel's heading (Billing › Usage's range and its chart's meter) is drawn like the console's
   other fields, not the browser's own grey box */
.page-head .actions > select, .panel .ph > select { height: 30px; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; color: var(--text);
  font: 13px var(--sans); padding: 0 8px; cursor: pointer; }
/* a tick-box in a form row sits on one line with its words (the SSH key's "Ask a person…" stood above its words) */
.vf-row label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.vf-row label.check input { width: auto; padding: 0; }
.pl-brief { font-size: 13px; }
.pl-steps { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); margin-left: 7px; }
.pl-step { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 5px 0 5px 14px; position: relative; font-size: 13px; }
.pl-step .pl-job { padding-left: 0; }
.pl-step .pl-job .pl-ic { left: -21px; }
/* A job: what actually ran, under the task it ran for (docs/PROJECTS.md §2d). */
.pl-job { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; width: 100%; padding: 3px 0 3px 14px; position: relative; font-size: 12.5px; color: var(--text-2); }
.pl-ic { position: absolute; left: -7px; width: 14px; text-align: center; background: var(--ink-0, #0b0f14); font-size: 12px; color: var(--text-3); }
.st-done .pl-ic { color: var(--ok); } .st-failed .pl-ic { color: var(--bad-2); } .st-running .pl-ic { color: var(--canopy); animation: cp-run 1.2s ease-in-out infinite; }
.st-skipped { opacity: .6; } .st-needs-approval .pl-ic { color: var(--warn); }
@keyframes cp-run { 50% { opacity: .35; } }
.pl-kind { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); min-width: 58px; }
.pl-what { color: var(--text); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.pl-where { font-size: 12px; }
.pl-out { width: 100%; }
.pl-out summary { cursor: pointer; color: var(--text-3); font-size: 12px; }
.pl-out pre { margin: 6px 0 0; padding: 8px 10px; background: var(--ink-0); border: 1px solid var(--line); border-radius: 3px; font: 11.5px/1.5 var(--mono); color: var(--code-text); white-space: pre-wrap; max-height: 260px; overflow: auto; }
.pl-q { border-left: 2px solid var(--warn); padding: 6px 10px; font-size: 13px; }
.pl-qa { display: flex; gap: 8px; margin-top: 8px; }
.pl-qa input { flex: 1; min-width: 0; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 7px 10px; color: var(--text); font: 13px var(--sans); }
.nt-step { border-top: 1px dashed var(--line); padding-top: 10px; }
.nt-step select, .nt-step input:not([type=checkbox]), #ntNeeds { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 13px var(--sans); }
@media (max-width: 780px) { .pl-step, .pl-job { padding-left: 12px; } .pl-where { width: 100%; } .pl-step[style] { margin-left: 8px !important; } }
/* SSH keys on a phone: drop the agents column, stack the two buttons */
@media (max-width: 600px) {
  #sshTable th:nth-child(4), #sshTable td:nth-child(4) { display: none; }
  #sshTable td:last-child .btn { display: block; margin: 0 0 6px; }
  #sshNewSlot pre { font-size: 11.5px; }
  #sshTable .tag2 { white-space: normal; word-break: break-all; }
}

/* a notice or suspension from the platform's operators */
.platform-banner { position: sticky; top: 0; z-index: var(--z-sticky); padding: 10px 16px; font-size: 14px; line-height: 1.45; background: #2a2414; color: #f3e3b5; border-bottom: 1px solid #5a4a1f; }
.platform-banner.bad { background: #2c1512; color: #ffd2c8; border-bottom-color: #6b2a20; }

/* Usage */
.us-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line, #1f2833); margin-bottom: 18px; }
.us-card { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line, #1f2833); }
.us-card small { display: block; font-size: 12px; color: var(--text-3, #6d7682); text-transform: uppercase; letter-spacing: .05em; }
.us-card b { display: block; font-size: 24px; font-weight: 650; margin: 4px 0 2px; }
.us-card span { font-size: 13px; color: var(--text-2, #a7adb6); }
.us-chart { padding: 6px 0 4px; }
.us-bars { height: 140px; display: flex; align-items: flex-end; gap: 2px; }
.us-bars i { flex: 1; min-width: 2px; background: var(--canopy-fill); border-radius: 2px 2px 0 0; opacity: .85; }
.us-bars i:hover { opacity: 1; }
.us-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3, #6d7682); margin-top: 6px; }
@media (max-width: 700px) { .us-cards { grid-template-columns: 1fr 1fr; } }

/* Budgets */
.bud-list { display: flex; flex-direction: column; }
.bud { padding: 12px 0; border-bottom: 1px solid var(--line, #1f2833); }
.bud:last-child { border-bottom: 0; }
.bud-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bud-top .dim { font-size: 13px; }
.bud-acts { margin-left: auto; display: flex; gap: 6px; }
.bud-bar { height: 6px; background: var(--line, #1f2833); border-radius: 3px; margin: 8px 0 6px; overflow: hidden; }
.bud-bar i { display: block; height: 100%; background: var(--canopy-fill); opacity: .55; }
.bud.warning .bud-bar i { opacity: .85; }
.bud.over .bud-bar i { opacity: 1; background: var(--bad); }
.bud-text { font-size: 13px; }

/* Credits */
.cred-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line, #1f2833); }
.cred-bal { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cred-top .dim { font-size: 13px; }
.cred-ledger td.mono { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cred-none { margin: 12px 0 0; }
.platform-banner a { color: inherit; text-decoration: underline; }

/* Voice messages (docs/HOST-AND-VOICE.md §2): the mic, the recording bar, and a message's state, words and audio */
.vm-mic svg { width: 16px; height: 16px; }
.vm-mic:disabled { opacity: .4; cursor: not-allowed; }
.vm-rec { display: none; }
.vm-on > :not(.vm-rec) { display: none !important; }
.vm-on > .vm-rec { display: flex; flex: 1; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.composer.vm-on > .vm-rec, .vm-compose.vm-on > .vm-rec { border: 1px solid var(--line-2); border-radius: 4px; background: var(--ink-2); padding: 10px; }
.vm-rec .sp { flex: 1; }
.vm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; animation: cp-run 1.2s ease-in-out infinite; }
.vm-time { font: 600 15px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.vm { display: flex; flex-direction: column; gap: 6px; }
.vm-bubble { white-space: normal !important; }
.vm-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vm-meta .btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.vm-meta .btn svg { width: 13px; height: 13px; }
.vm-tag { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--canopy-2); }
.vm-tag svg { width: 13px; height: 13px; }
.vm-why { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.vm-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.vm-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 14px; }
.vm-edit { display: flex; flex-direction: column; gap: 6px; }
.vm-edit textarea { width: 100%; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 14px var(--sans); resize: vertical; outline: 0; }
.vm-edit textarea:focus { border-color: var(--canopy); }
.vm-compose { padding: 0 0 12px; }
.vm-box { border: 1px solid var(--line-2); border-radius: 4px; background: var(--ink-2); padding: 8px 10px; }
.vm-box textarea { width: 100%; background: transparent; border: 0; outline: 0; resize: vertical; color: var(--text); font: 14px var(--sans); min-height: 40px; }
.vm-row { display: flex; gap: 6px; align-items: center; }
.vm-row .sp { flex: 1; }
.vm-list { display: flex; flex-direction: column; }
.vm-item { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.vm-from { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.vm-from time { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
@media (max-width: 780px) {
  .vm-on > .vm-rec { gap: 8px; }
  .vm-rec .dim { display: none; }
}

/* Project files: a folder list with a preview beside it, uploads, history, branches and merges, search, keeping.
   Flat: hairlines and type, no boxes. Every class here starts with fs- (or prj-tabs). */
.prj-tabs { padding: 0; margin: -8px 0 18px; }
.fs-chips { margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.fs-chips .chip { flex: none; }
.fs-sub { overflow-wrap: anywhere; }
.fs-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.fs-bar .sp, .fs-uph .sp, .fs-ph .sp, .fs-mh .sp, .fs-mend .sp { flex: 1; }
.fs-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.fs-crumbs button { background: none; border: 0; padding: 2px 2px; color: var(--sky); font: inherit; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.fs-crumbs button:last-child { color: var(--text); font-weight: 600; cursor: default; }
.fs-crumbs span { color: var(--text-3); }
.fs-old { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.fs-split.has-sel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.fs-listwrap { position: relative; min-width: 0; }
.fs-list { width: 100%; }
.fs-list .fs-row { cursor: pointer; }
.fs-list .fs-row:hover td { background: var(--ink-2); }
.fs-list .fs-row.on td { background: color-mix(in srgb, var(--canopy) 7%, transparent); }
.fs-name { overflow-wrap: anywhere; }
.fs-ic { display: inline-block; width: 16px; color: var(--text-3); }
.fs-ck { width: 28px; }
.fs-ck input { accent-color: var(--canopy); }
.fs-drop { margin-top: 10px; padding: 14px 0; border-top: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px; text-align: center; }
.fs-listwrap.over .fs-drop { border-top-color: var(--canopy); color: var(--canopy-2); background: color-mix(in srgb, var(--canopy) 5%, transparent); }
.fs-listwrap.over { outline: 1px dashed var(--canopy); outline-offset: 4px; }
.fs-preview:empty { display: none; }
.fs-preview { min-width: 0; border-left: 1px solid var(--line); padding-left: 20px; }
.fs-ph { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.fs-ph b { overflow-wrap: anywhere; min-width: 0; }
.fs-x svg { width: 16px; height: 16px; }
.fs-pb { padding: 12px 0; }
.fs-code { margin: 0; padding: 10px 0; font: 12.5px/1.55 var(--mono); color: var(--code-text); white-space: pre-wrap; word-break: break-word; max-height: 70vh; overflow: auto; }
.fs-code i { color: var(--text-3); font-style: normal; }
.fs-ln { display: inline-block; width: 3.2em; margin-right: 10px; text-align: right; color: var(--text-3); user-select: none; }
.fs-media { max-width: 100%; max-height: 70vh; display: block; }
audio.fs-media { width: 100%; }
.fs-pdf { width: 100%; height: 70vh; border: 0; background: #fff; }
.fs-up { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fs-uph { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fs-bar2 { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.fs-bar2 i { display: block; height: 100%; background: var(--canopy); transition: width .2s; }
.fs-up.failed .fs-bar2 i { background: var(--bad); }
.fs-up.done .fs-bar2 i { background: var(--ok); }
.fs-skip summary { cursor: pointer; color: var(--text-3); }
.fs-skip .mono { font-size: 12px; color: var(--text-3); max-height: 160px; overflow: auto; padding-top: 4px; }
.fs-v { border-top: 1px solid var(--line); padding: 10px 0; }
.fs-vh { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fs-vn { background: none; border: 0; padding: 0; color: var(--sky); font: 600 13px var(--mono); cursor: pointer; min-width: 44px; text-align: left; }
.fs-vm { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.fs-add, .fs-op.fs-add { color: var(--ok); } .fs-chg, .fs-op.fs-chg { color: var(--warn); } .fs-del, .fs-op.fs-del { color: var(--bad-2); }
.fs-vd { padding: 8px 0 0 56px; }
.fs-chs { display: flex; flex-direction: column; }
.fs-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 3px 0; font-size: 13px; }
.fs-op { font: 600 13px var(--mono); width: 12px; text-align: center; }
.fs-cp { overflow-wrap: anywhere; min-width: 0; }
.fs-dbtn { height: 24px !important; padding: 0 8px !important; font-size: 12px !important; }
.fs-diff { width: 100%; }
.fs-dcode { border-left: 1px solid var(--line-2); padding-left: 10px; max-height: 50vh; }
.fs-hh { color: var(--sky); }
.fs-dadd { color: var(--ok); }
.fs-ddel { color: var(--bad-2); }
.fs-lead { margin: 0 0 10px; }
.fs-b { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
.fs-bh { flex: 1; min-width: 220px; overflow-wrap: anywhere; }
.fs-bd { width: 100%; }
.fs-mh { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fs-mh h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.fs-mh p { margin: 4px 0 0; }
.fs-cf { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.fs-cfh { overflow-wrap: anywhere; }
.fs-cfo { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-cft { width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 12.5px/1.5 var(--mono); resize: vertical; outline: 0; }
.fs-cft:focus { border-color: var(--canopy); }
.fs-mend { display: flex; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.fs-sf { display: flex; gap: 8px; margin-bottom: 14px; }
.fs-sf input { flex: 1; min-width: 0; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 8px 11px; color: var(--text); font: 14px var(--sans); outline: 0; }
.fs-sf input:focus { border-color: var(--canopy); }
.fs-sh { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 0 4px; }
.fs-hit { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; color: var(--text); cursor: pointer; font: inherit; }
.fs-hit:hover { background: var(--ink-2); }
.fs-hit .mono { overflow-wrap: anywhere; }
.fs-snip { font: 12px/1.5 var(--mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.fs-snip mark { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--text); }
.fs-keep p { max-width: 760px; }
.fs-h3 { font-size: 14px; margin: 18px 0 6px; font-weight: 600; }
.fs-kl { display: flex; flex-direction: column; font-size: 13px; }
.fs-kl > * { border-top: 1px solid var(--line); padding: 6px 0; overflow-wrap: anywhere; }
.fs-tr { display: flex; gap: 8px; align-items: baseline; }
.fs-tr input { accent-color: var(--canopy); }
@media (max-width: 780px) {
  .fs-split.has-sel { grid-template-columns: minmax(0, 1fr); }
  .fs-preview { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .fs-list .fs-wide { display: none; }
  .fs-vd { padding-left: 0; }
  .fs-vh .fs-acts { width: 100%; }
  .fs-bar .btn.sm { padding: 0 8px; }
  .fs-crumbs { width: 100%; }
}
/* Billing (#/billing): flat, hairlines */
.bl-plans th, .bl-plans td { vertical-align: top; }
.bl-plans td:first-child { color: var(--text-3); white-space: nowrap; }
.bl-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; }
.bl-note { margin: 10px 0 0; font-size: 13px; max-width: 720px; }
.bl-promo { margin: 0 0 12px; padding: 8px 0 8px 10px; border-left: 2px solid var(--canopy); color: var(--text); font-size: 13.5px; }
.bl-presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.bl-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; flex: 1 1 100% !important; min-width: 0 !important; color: var(--text) !important; font-size: 14px !important; }
.bl-meter { height: 6px; background: var(--line); border-radius: 1px; margin: 4px 0 0; overflow: hidden; }
.bl-meter i { display: block; height: 100%; background: var(--canopy); }
@media (max-width: 780px) {
  #blView table.t th:nth-child(3), #blView table.t td:nth-child(3) { display: table-cell; }   /* the plans' Pro column, amounts */
  .bl-plans { font-size: 13px; }
  .bl-acts .btn { flex: 1 1 100%; justify-content: center; }
}
/* The host role (#/machines › Host): flat, hairlines */
.hr-form .checks { gap: 0; margin: 6px 0 4px; }
.hr-form .check div { color: var(--text); }
.hr-acts { align-items: center; padding: 12px 0; }
.hr-where { font-weight: 400; }
.hr-where .tag2 { vertical-align: middle; margin-left: 4px; }
.agentbar .hr-where .tag2 { display: inline-block; margin-left: 0; }
@media (max-width: 780px) {
  .hr-acts .btn { flex: 1 1 100%; justify-content: center; }
}

/* devices (console/devices.js): rows with hairlines, no boxes; wraps at phone width */
.dv-list { padding-bottom: 6px; }
.dv-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 11px 0; border-bottom: var(--hair); min-width: 0; }
.dv-main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.dv-main .dim { font-size: 12.5px; margin-top: 2px; }
.dv-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dv-acts input { width: 92px; background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 6px 8px; color: var(--text); font: 13px var(--mono); }
.dv-ext { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.linkbtn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 0 0 4px; font: inherit; }
.dv-qr { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; padding: 6px 0 14px; }
.dv-qr svg { flex: none; max-width: 100%; height: auto; border: var(--hair); }
.dv-qr > div { flex: 1 1 220px; min-width: 0; }
.dv-qr .inv-link input { width: 100%; }
.dv-pol { border-bottom: var(--hair); padding: 8px 0 12px; }
.dv-pol h3 { font-size: 14px; margin: 6px 0 8px; }
.dv-tool { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 5px 0; }
.dv-tool > span { flex: 0 0 170px; color: var(--text-2); font-size: 13px; }
.dv-tool select { flex: 1 1 200px; max-width: 320px; background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 6px 8px; color: var(--text); font: 13px var(--sans); }
.dv-chk { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; font-size: 13px; }
.dv-adopt { padding: 8px 0 4px; border-bottom: var(--hair); }
.dv-adopt textarea { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 8px 10px; color: var(--text); font: 13px var(--mono); resize: vertical; width: 100%; }
.dv-adopt .check { margin: 0 0 12px; background: none; border: 0; border-top: var(--hair); border-radius: 0; padding: 10px 0 0; }
.dv-note { font-size: 12.5px; margin: 0 0 12px; max-width: 72ch; }
.dv-exts { margin-top: 6px; }
.dv-x { padding: 6px 0; border-top: var(--hair); font-size: 13px; overflow-wrap: anywhere; }
.dv-x .dim { display: block; font-size: 12.5px; margin-top: 2px; }
.dv-x .linkbtn { margin-right: 10px; font-size: 12.5px; }
.dv-home:empty { display: none; }
.dv-home { padding: 4px 0 2px 12px; border-left: var(--hair); margin-top: 6px; }
.dv-hd { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 5px 0; border-bottom: var(--hair); font-size: 12.5px; }
.dv-hd .mono { min-width: 0; overflow-wrap: anywhere; }
.dv-exact { display: inline-flex; gap: 6px; flex-wrap: wrap; flex: 1 1 220px; }
.dv-exact input { flex: 1 1 100px; min-width: 0; background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 6px 8px; color: var(--text); font: 13px var(--mono); }
@media (max-width: 780px) { .dv-tool > span { flex-basis: 100%; } .dv-tool select { max-width: none; } }
/* my tasks (console/tasks.js) */
.tk .why { margin: 6px 0; }
.tk-form { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.tk-d { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-d textarea, .tk-d input[type=number] { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 8px 10px; color: var(--text); font: 14px var(--sans); max-width: 100%; }
.tk-d input[type=file] { max-width: 100%; font-size: 13px; color: var(--text-2); }
.tk-sig { background: #fff; border: var(--hair); max-width: 100%; touch-action: none; }
.tk .acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* connected devices (console/iot.js): tiles with hairlines, no boxes; one column on a phone, a grid on a desktop */
.iot-claim { padding: 4px 0 10px; border-bottom: var(--hair); }
.iot-claim .vf-row { align-items: flex-end; }
.iot-claim input { min-width: 0; }
.iot-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 28px; }
.iot-tile { padding: 12px 0 8px; border-bottom: var(--hair); min-width: 0; overflow-wrap: anywhere; }
.iot-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.iot-vals { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 2px; }
.iot-v { display: flex; flex-direction: column; min-width: 0; }
.iot-v .dim { font-size: 12px; }
.iot-v b { font-size: 19px; font-weight: 500; }
.iot-sub { font-size: 12.5px; margin-top: 2px; }
.iot-tile summary { font-size: 12.5px; color: var(--text-2); cursor: pointer; padding: 6px 0 2px; }
.iot-more { padding: 4px 0 6px; }
.iot-chart { margin: 8px 0 4px; }
.iot-chart .dim { font-size: 12px; }
.iot-spark { display: block; width: 100%; height: 72px; color: var(--text-2); border-bottom: var(--hair); }
.iot-ax { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--mono); color: var(--text-3, var(--text-2)); padding-top: 2px; }
.iot-ax span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* how far back a chart goes: words on a hairline, never buttons in boxes */
.iot-range { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 12.5px; padding: 4px 0 2px; border-bottom: var(--hair); }
.iot-range .linkbtn { color: var(--text-2); padding: 0; }
.iot-range .linkbtn.on { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.iot-range .dim { margin-left: auto; font-size: 11.5px; }
.iot-events { margin: 8px 0 4px; }
.iot-ev { font-size: 12.5px; padding: 3px 0; border-top: var(--hair); }
.iot-ev .mono { font-size: 11.5px; color: var(--text-2); margin-right: 6px; }
.iot-cmd { margin: 10px 0 4px; padding-top: 8px; border-top: var(--hair); }
.iot-cmd .vf-row { align-items: center; }
.iot-cmd select, .iot-cmd input { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 6px 8px; color: var(--text); font: 13px var(--sans); min-width: 0; }
.iot-cmd input { font-family: var(--mono); flex: 1 1 150px; }
.iot-acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
/* Fleets, whose position it is, long history (docs/IOT.md steps 7–8): hairlines, no boxes. */
.iot-sect { margin: 10px 0 4px; padding-top: 8px; border-top: var(--hair); }
.iot-sect > .dim { font-size: 12px; }
.iot-say { font-size: 13px; margin: 4px 0 0; max-width: 72ch; }
.iot-keep { padding: 8px 0 4px; }
.iot-keep label { min-width: 120px; }
.iot-keep select, .iot-keep input { padding: 6px 8px; font-size: 13px; }
.iot-wait { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; }
.iot-subs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.iot-subs input { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 5px 8px; color: var(--text); font: 13px var(--sans); min-width: 0; flex: 1 1 140px; max-width: 220px; }
.iot-w { white-space: nowrap; }
.iot-add { padding: 6px 0 10px; }
.iot-add > summary { font-size: 13px; color: var(--text-2); cursor: pointer; padding: 6px 0; }
.iot-add textarea { font: 12.5px var(--mono); min-width: 0; }
.iot-add label[hidden] { display: none; }
#iotFleets .dv-acts select { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 5px 8px; color: var(--text); font: 13px var(--sans); }
.iot-rule { padding: 8px 0 4px; border-top: var(--hair); }
.iot-rule .vf-row { align-items: flex-end; }
.iot-rule select[multiple] { min-height: 0; }
/* A rule form row belongs to one kind of rule: `hidden` has to beat .vf-row's own display, here and on a phone. */
.iot-rule .vf-row[hidden], .iot-rule label[hidden] { display: none; }
/* A lock's own limits (docs/IOT.md step 5): a list of words on hairlines, label beside value; stacked on a phone. */
.iot-kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 0 16px; margin: 6px 0 4px; font-size: 13px; }
.iot-kv dt { color: var(--text-2); padding: 4px 0; border-top: var(--hair); }
.iot-kv dd { margin: 0; padding: 4px 0; border-top: var(--hair); min-width: 0; overflow-wrap: anywhere; }
.iot-sect .iot-ev .linkbtn { font-size: 12.5px; padding: 0 0 0 6px; }
.iot-keep input[type=number] { width: 7em; }
@media (max-width: 780px) {
  .iot-tiles { grid-template-columns: 1fr; }
  .iot-kv { grid-template-columns: 1fr; }
  .iot-kv dd { border-top: 0; padding-top: 0; }
  .iot-keep { flex-direction: column; align-items: stretch; }
  .iot-keep > *, .iot-keep input[type=number] { width: 100%; max-width: 100%; box-sizing: border-box; }
  .iot-claim .vf-row, .iot-rule .vf-row, .iot-cmd .vf-row { flex-direction: column; align-items: stretch; }
  /* Each control fills its row and no more: a select or button wider than the panel would scroll sideways. */
  .iot-claim .vf-row > *, .iot-rule .vf-row > *, .iot-cmd .vf-row > * { width: 100%; max-width: 100%; box-sizing: border-box; flex: none; }
}

/* ---------------------------------------------------------------- Connectors (docs/CONNECTORS.md) */
/* Flat: hairlines between things, no boxes. The hosts lead the review, in large type, because the key goes there. */
.cn-item + .cn-item { margin-top: 0; }
.cn-lead { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 14px 0 8px; letter-spacing: .01em; }
.cn-hosts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 2px 0 10px; }
.cn-host { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cn-host b { font: 600 17px/1.25 var(--mono); word-break: break-all; }
.cn-hosts.big .cn-host b { font-size: 22px; letter-spacing: -.01em; }
.cn-host .dim { font-size: 11.5px; }
.cn-host em { font-style: normal; }
.cn-warn { display: block; color: var(--warn); font-size: 12.5px; font-weight: 500; margin-top: 3px; max-width: 60ch; }
.cn-said { color: var(--text-3, var(--text-2)); font-style: italic; }
.cn-review h3, .cn-hook h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 18px 0 6px; }
.cn-ops { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 2px; }
.cn-ops th { text-align: left; font-weight: 500; color: var(--text-3, var(--text-2)); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 12px 6px 0; border-bottom: var(--hair); }
.cn-ops td { padding: 8px 12px 8px 0; border-top: var(--hair); vertical-align: top; }
.cn-ops tr.cn-flagged td { background: color-mix(in srgb, var(--warn) 5%, transparent); }
.cn-ops .dim { font-size: 12px; }
.cn-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.cn-transform { margin: 8px 0 12px; font-size: 13px; }
.cn-code { font: 12px/1.5 var(--mono); margin: 6px 0 0; padding: 8px 0; border-top: var(--hair); border-bottom: var(--hair); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; color: var(--text); background: transparent; }
.cn-addr { font-size: 12.5px; word-break: break-all; padding: 6px 0; color: var(--text-2); }
.cn-hook { margin-top: 6px; }
.cn-routes { padding: 2px 0 6px; }
.cn-route { font-size: 13px; padding: 5px 0; border-top: var(--hair); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cn-routeform { padding-top: 8px; border-top: var(--hair); }
.cn-routeform select { background: var(--ink-2); border: 1px solid var(--control); border-radius: 3px; padding: 7px 9px; color: var(--text); font: 13px var(--sans); min-width: 0; }
.cn-steps { margin: 2px 0 8px 18px; padding: 0; color: var(--text-2); font-size: 13px; }
.cn-steps li { margin: 3px 0; }
.cn-changes { margin: 2px 0 8px 18px; padding: 0; font-size: 13px; }
/* READER step 4 (CONNECTORS §3h): a manifest's declared questions, one per hairline, the shape in words beneath. */
.cn-readers { list-style: none; margin: 2px 0 8px; padding: 0; font-size: 13px; }
.cn-readers li { padding: 7px 0; border-top: var(--hair); min-width: 0; overflow-wrap: anywhere; }
.cn-readers .mono { font-size: 11.5px; color: var(--text-2); margin-right: 6px; }
.cn-readers .dim { font-size: 12px; margin-top: 2px; max-width: 72ch; }
.cn-approve { margin-top: 18px; padding-top: 12px; border-top: var(--hair); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cn-approve p { flex-basis: 100%; margin: 0 0 4px; color: var(--text-2); font-size: 13px; max-width: 70ch; }
.cn-ev { font-size: 13px; padding: 6px 0; border-top: var(--hair); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cn-ev .mono { font-size: 11.5px; }
/* OAuth connectors (console/connector-oauth.js): who signed in, the scopes in words, hairlines between them. */
.cno { margin: 6px 0 4px; }
.cno h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.cno p { margin: 4px 0; font-size: 13.5px; max-width: 72ch; }
.cno-lead { font-size: 11.5px !important; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3, var(--text-2)); margin-top: 12px !important; }
.cno-scopes { list-style: none; margin: 2px 0 6px; padding: 0; font-size: 13px; }
.cno-scopes li { padding: 6px 0; border-top: var(--hair); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cno-scopes code { font: 11.5px var(--mono); color: var(--text-3, var(--text-2)); word-break: break-all; }
.cno-missing li span { color: var(--warn); }
.cno-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
@media (max-width: 780px) {
  .cn-hosts.big .cn-host b { font-size: 18px; }
  .cn-host b { font-size: 15px; }
  /* A table would scroll the page sideways on a phone: each row becomes its own stack of labelled lines. */
  .cn-ops, .cn-ops tbody, .cn-ops tr, .cn-ops td { display: block; width: 100%; box-sizing: border-box; }
  .cn-ops thead { display: none; }
  .cn-ops tr { border-top: var(--hair); padding: 8px 0; }
  .cn-ops td { border: 0; padding: 2px 0; }
  .cn-ops td:empty { display: none; }
  .cn-routeform { flex-direction: column; align-items: stretch; }
  .cn-routeform > * { width: 100%; max-width: 100%; box-sizing: border-box; flex: none; }
}

/* ------------------------------------------------------------------ artifacts (docs/ARTIFACTS.md)
   Two columns that say the same thing twice over: what is live, and what the working copy has. Flat: hairline
   rules between facts, no boxed cards, and one column on a phone. Every class here starts with af-. */
.af-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.af-two > .panel { min-width: 0; }
.af-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.af-fact > b { font-weight: 600; }
.af-fact a, .af-fact .mono { word-break: break-all; min-width: 0; }
.af-msg { padding: 9px 0; border-bottom: 1px solid var(--line); }
.af-diff { margin: 10px 0; }
.af-changes { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 8px; font-size: 12.5px; align-items: baseline; }
.af-changes .mono { word-break: break-all; }
.af-ch { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.af-ch.added { color: var(--ok, #6ee7a8); }
.af-ch.deleted { color: var(--bad, #ff8a9c); }
.af-pub { margin: 12px 0 10px; align-items: flex-end; }
.af-pub .grow { flex: 1 1 220px; min-width: 0; }
.af-live iframe { width: 100%; height: min(70vh, 560px); border: 1px solid var(--line-2); border-radius: 4px; background: #fff; display: block; }
.af-thread { padding: 12px 0; border-bottom: 1px solid var(--line); }
.af-th-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.af-th-head .mono { word-break: break-all; min-width: 0; }
.af-cm { margin: 8px 0 0; display: flex; flex-direction: column; gap: 3px; }
.af-cm > .dim { font-size: 11.5px; }
.af-data { margin: 8px 0 0; font-size: 11.5px; font-style: italic; }
.af-link { align-items: flex-end; margin-top: 12px; }
.af-link label { flex: 1 1 140px; min-width: 0; }
/* ARTIFACT-AGENTS §14 step 3: the assistant's walls on an artifact, and a link opened by too many people. Flat, hairlines. */
.af-warn { margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--warn); color: var(--text); }
.af-asst .cv-chase { margin: 0 0 6px; }
.af-stops { padding: 9px 0; border-bottom: 1px solid var(--line); }
.af-stops p { margin: 4px 0 0; font-size: 12.5px; overflow-wrap: anywhere; }
.af-quietwords { align-items: flex-end; margin-top: 12px; }
.af-quietwords label { min-width: 0; }
@media (max-width: 760px) {
  .af-two { grid-template-columns: 1fr; gap: 0; }
  .af-live iframe { height: min(60vh, 420px); }
  .af-th-head { gap: 4px 8px; }
}

/* ------------------------------------------------------------------ conversations (docs/CONVERSATIONS.md §9)
   A thread: messages, the lines said to them, the composer. Flat: hairline rules,
   a rule on the left for who is speaking, no boxed cards. Every class here starts with cv-. */
/* The list, the thread's header and the layout are the Conversations area's panels since console redesign step 6
   (conv-list.css, chat.css, panels.js); what is here is the thread's own content. */
.cv-select { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 5px 8px; color: var(--text); font-size: 12.5px; }
.cv-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: var(--hair); font-size: 12.5px; }
.cv-thread > .note { margin: 12px 0 0; }
.cv-msgs { display: flex; flex-direction: column; padding: 4px 0 8px; }
.cv-day { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 11.5px; margin: 16px 0 4px; }
.cv-day::before, .cv-day::after { content: ''; flex: 1; border-top: var(--hair); }
.cv-msg { padding: 9px 0 9px 12px; border-left: 2px solid var(--line-2); margin-top: 6px; }
.cv-msg.peer { border-left-color: var(--sky); }
.cv-who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.cv-who time { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.cv-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.cv-data { margin: 4px 0 12px; }
.cv-compose { border-top: var(--hair); padding-top: 12px; }
.cv-compose textarea { width: 100%; box-sizing: border-box; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 9px 11px; color: var(--text); font: 14px var(--sans); resize: vertical; outline: 0; }
.cv-compose textarea:focus { border-color: var(--canopy); }
.cv-compose-row { display: flex; gap: 8px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
/* Step 2 (§5b–§5f): who is answering, the line said to the customer, an answer being written, the claim, the draft. */
.cv-answering b { font-weight: 600; }
.cv-facts .btn.sm { margin: -3px 0; }
.cv-sys { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 0 8px 12px; border-left: 2px dotted var(--line-2); margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.cv-sys-k { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.cv-sys-t { font-style: italic; overflow-wrap: anywhere; }
.cv-sys time { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.cv-writing { padding: 9px 0 9px 12px; border-left: 2px dashed var(--line-2); margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.cv-dots::before { content: '···'; margin-right: 8px; color: var(--canopy-2); letter-spacing: .1em; animation: cv-pulse 1.4s ease-in-out infinite; }
@keyframes cv-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cv-dots::before { animation: none; } }
.cv-ask { margin-top: 12px; padding: 8px 0 8px 12px; border-left: 2px solid var(--warn); font-size: 13px; }
.cv-ask .linkbtn, .cv-status .linkbtn, .cv-draft .linkbtn { color: var(--canopy-2); padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.cv-owed { margin: 10px 0 0; }
.cv-draft { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; padding: 2px 0 2px 10px; border-left: 2px solid var(--canopy); margin-bottom: 8px; font-size: 12.5px; color: var(--text-2); }
.cv-draft b { font-weight: 600; color: var(--text); }
.cv-status { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding-bottom: 8px; font-size: 12.5px; }
.cv-claim { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); }
.cv-claim svg { width: 14px; height: 14px; flex: none; }
.cv-claim b { font-weight: 600; }
/* Step 3: what the gate says, the chase, a draft to release, and the channel's settings — rules on the left, no boxes. */
.cv-gate, .cv-chase { margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.cv-chase { border-left-color: var(--warn); }
.cv-chase.bad { border-left-color: var(--bad); color: var(--text); }
.cv-mark { color: var(--warn); }
.cv-mark.bad { color: var(--bad-2); }
.cv-release { margin: 12px 0 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--canopy); font-size: 12.5px; color: var(--text-2); }
.cv-release b { font-weight: 600; color: var(--text); }
.cv-release blockquote { margin: 6px 0; color: var(--text); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cv-set { margin-top: 18px; border-top: var(--hair); padding-top: 10px; font-size: 12.5px; }
.cv-set summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; list-style: none; }
.cv-set summary::-webkit-details-marker { display: none; }
.cv-set summary > span:first-child { font-weight: 600; color: var(--text); }
.cv-set summary > span:first-child::after { content: '+'; margin-left: 6px; color: var(--text-3); font-weight: 400; }
.cv-set[open] summary > span:first-child::after { content: '−'; }
.cv-set-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 560px; }
.cv-set-form > label, .cv-set-form fieldset > label { display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.cv-set-form label.check { flex-direction: row; align-items: center; gap: 8px; }
.cv-set-form fieldset { border: 0; padding: 0 0 0 12px; margin: 0; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cv-set-form fieldset:disabled { opacity: .5; }
.cv-set-form input:not([type=checkbox]) { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 8px; color: var(--text); font: 13px var(--sans); min-width: 0; }
.cv-set-form .cv-select { max-width: 100%; }
.cv-set-form p { margin: 0; }
.cv-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.cv-days label { display: flex; align-items: center; gap: 8px; }
.cv-days label span { width: 30px; flex: none; color: var(--text-3); }
.cv-days input { width: 100%; font-family: var(--mono) !important; }

/* ------------------------------------------------------------------ one field that asks and searches (console/ask.js)

   Desktop: a row docked under the page, on every page but the Steward's and an agent's. Its panel (the conversation,
   search results, a picker) opens above it. Phone: a slim line above the tab bar that opens a full-screen sheet.
   Flat like the rest: hairlines, square-ish corners, no card. 16px in the field on a phone so iOS doesn't zoom. */
/* Since step 10 (CONSOLE-REDESIGN §3.2, D8) it is ⌘K's sheet, not a docked row: closed, nothing of it shows; open, a
   sheet floats over the page on --pop-bg (the only shadowed things are floating ones), with a scrim behind it. */
/* The ⌘K sheet is #ask: scoped to it, since .ask is also a For you row kind (an agent asking) and hiding .ask hid every decision. */
#ask.ask { display: none; }
#ask.ask.open { display: block; }
#ask.ask.under-dialog, body:has(#overlay [aria-modal="true"]) #ask.ask { display: none; }
.ask-scrim { position: fixed; inset: 0; z-index: var(--z-palette); background: var(--scrim); }
.ask-sheet { position: fixed; z-index: calc(var(--z-palette) + 1); left: 50%; top: 10vh; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); max-height: min(76vh, 680px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--content-radius); box-shadow: var(--elev-3); background: var(--pop-bg); color: var(--text); }
.ask-form.composer { border: 0; border-top: var(--hair, 1px solid var(--line)); padding: 8px 10px; background: transparent; position: static; flex: none; }
.ask-form .box { padding: 3px 4px 3px 4px; border-radius: 4px; background: var(--ink-2); }
/* the box carries the focus ring while its field has the focus (tokens.css, "the ring on the box"), so there is one ring, on the box */
.ask.drag .ask-form .box { border-style: dashed; border-color: var(--warn); }
.ask-line { display: flex; align-items: flex-end; gap: 4px; }
.ask-toggle { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 4px; color: var(--canopy-2); }
.ask-toggle:hover, .ask.open .ask-toggle { background: var(--ink-3); }
.ask-toggle svg { width: 18px; height: 18px; }
.ask-input { flex: 1; min-width: 0; min-height: 36px; max-height: 168px; overflow-y: auto; padding: 8px 2px; outline: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 15px/1.35 var(--sans); color: var(--text); cursor: text; }
/* the placeholder stays on one line (it wrapped to two at 1280 beside the model picker), cut with an ellipsis */
.ask-input:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-kbd { align-self: center; flex: none; font-size: 11px; color: var(--text-3); margin: 0 4px; }
.ask-form .vm-mic, .ask-send { flex: none; height: 36px; }
.ask-form .vm-mic { width: 36px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
.ask-form .vm-mic:hover { background: var(--ink-3); }
.ask-send svg { width: 15px; height: 15px; }
/* The model picker: a quiet word until someone picks something other than Recommended. */
.ask-model { flex: none; align-self: center; max-width: 150px; height: 30px; padding: 0 6px; background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--text-3); font: 12.5px var(--sans); cursor: pointer; text-overflow: ellipsis; }
.ask-model:hover, .ask-model:focus { border-color: var(--line-2); color: var(--text-2); outline: 0; }
.ask-model.chosen { color: var(--text); border-color: var(--line-2); }
.ask-model.bad { color: var(--bad-2); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.ask-model option { background: var(--ink-1); color: var(--text); }
.ask-send.open-it { background: var(--ink-3); border-color: var(--line-2); color: var(--text); }
.ask-send.open-it svg { transform: rotate(180deg); }
.ask-send:disabled, .ask.no-ask .ask-form .vm-mic { opacity: .45; cursor: not-allowed; }
.ask.no-ask .ask-toggle { color: var(--text-3); }
.ask-form.vm-on > .vm-rec { border: 1px solid var(--line-2); border-radius: 4px; background: var(--ink-2); padding: 6px 10px; }
.ask-note { margin: 0; padding: 0 14px 10px; flex: none; font-size: 12.5px; color: var(--text-2); max-height: 4.4em; overflow: hidden; }
.ask-note.lock { color: var(--text-3); }
.ask-note.warn { color: var(--warn); }
.ask-note.bad { color: var(--bad-2); }

/* A chip: one thing, named. Drawn as a chip, deleted whole, and sent as its reference (`@agent:linkcheck`). */
.ask-chip { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--canopy) 13%, transparent); color: var(--canopy-2);
  font: 500 13.5px/1.55 var(--sans); white-space: nowrap; vertical-align: baseline; user-select: all; }
.ask-chip.cmd { background: color-mix(in srgb, var(--sky) 13%, transparent); color: var(--sky); font-family: var(--mono); font-size: 13px; }
.t-in .bubble .ask-chip { font-size: 13px; }

/* The sheet's upper part, above the field: the conversation with the Steward, search results, or a picker. */
.ask-panel { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; }
.ask-steward { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.ask-steward > svg { color: var(--canopy-2); }
.ask-steward:hover, .ask-steward:focus-visible { background: var(--ink-3); border-left-color: var(--canopy); }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-bottom: var(--hair, 1px solid var(--line)); flex: none; min-height: 44px; }
.ask-head .sp { flex: 1; }
.ask-head .iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; color: var(--text-2); }
.ask-head .iconbtn svg { width: 17px; height: 17px; }
.ask-head .ask-back { display: none; }
.ask-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ask-page { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.ask-page:hover { color: var(--text); }
.ask-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.ask-body .ask-convo { padding: 12px 14px; gap: 16px; overflow: visible; }
.ask-convo .t-out pre { max-height: 240px; }
.ask-grp { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px 4px; }
.ask-grp span { text-transform: none; letter-spacing: 0; }
.ask-it { display: flex; align-items: center; gap: 11px; padding: 7px 14px; min-height: 44px; cursor: pointer; border-left: 2px solid transparent; }
.ask-it.on { background: var(--ink-3); border-left-color: var(--canopy); }
.ask-it > svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.ask-it-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ask-it-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-it-t small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-it-k { flex: none; font: 11px var(--mono); color: var(--text-3); }
.ask-it.locked-it { opacity: .5; }
.ask-empty { color: var(--text-3); font-size: 13px; padding: 12px 14px; margin: 0; }
.ask-sheet .cp-empty { padding: 28px 16px 32px; }
.ask-sheet .cp-empty.sm { padding: 12px 14px; }
.ask-keys { color: var(--text-3); font-size: 12px; padding: 10px 14px 8px; margin: 4px 0 0; border-top: var(--hair, 1px solid var(--line)); }
.ask-keys kbd { font-size: 10.5px; margin: 0 1px; }
.ask-keys.top { margin: 0 0 2px; padding: 8px 14px; border-top: 0; border-bottom: var(--hair, 1px solid var(--line)); }

@media (max-width: 780px) {
  /* The sheet: the whole screen, the conversation above, the full composer at the bottom, safe areas kept. */
  .ask-scrim { display: none; }
  .ask.open .ask-sheet { left: 0; right: 0; top: 0; transform: none; width: auto; height: var(--ask-vh, 100dvh); max-height: none; border-radius: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top); background: var(--content-bg); }
  .ask-head .ask-back { display: grid; }
  .ask-head .ask-x { display: none; }
  .ask-head .iconbtn { width: 44px; height: 44px; }
  .ask-form.composer { border-top: var(--hair, 1px solid var(--line)); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ink-0); }
  .ask-input { font-size: 16px; min-height: 44px; padding: 11px 2px; }
  .ask-toggle { display: none; }
  .ask-kbd { display: none; }
  .ask-form .vm-mic, .ask-send { height: 44px; }
  .ask-form .vm-mic { width: 44px; }
  .ask-model { height: 44px; font-size: 16px; max-width: 160px; margin-right: auto; }
  /* In the sheet the words get the whole width; the model, the mic and Ask sit on a row under them. */
  .ask-line { flex-wrap: wrap; align-items: center; }
  .ask-input { flex: 1 0 100%; max-height: 30vh; }
  .ask-title { flex: none; }
  .ask-page { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ask-send { padding: 0 14px; }
  .ask-note { padding: 0 12px calc(8px + env(safe-area-inset-bottom)); margin: 0; background: var(--ink-0); }
  .ask-it { padding: 8px 14px; }
  .ask-keys { display: none; }
}
/* Conversations, step 4: the assistant's budget on a channel, in the channel's settings (flat: a hairline, no box). */
.cv-budget { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cv-budget-set { display: inline-flex; gap: 6px; align-items: center; }
.cv-budget-set input { width: 110px; }
/* Conversations step 6: a channel a connector carries, named on a row; a DM's voice note, said in a member's words. */
.cv-chan { color: var(--text-2); font-weight: 500; }
.cv-voice { font-size: 12px; margin: 2px 0 4px; font-style: italic; }
/* CONVERSATIONS §12h: the three answer modes. One control, three words on a hairline; the one in force is underlined in
   the accent — solid where this level says it, dotted where it inherits. No box, no pill. Shared with the Channels page. */
.md { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-seg { display: flex; flex-wrap: wrap; gap: 0; border-bottom: var(--hair); max-width: 100%; }
.md-opt { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 12px 7px; color: var(--text-2); font: 13px var(--sans); cursor: pointer; }
.md-opt:first-child { padding-left: 0; }
.md-opt:hover:not(:disabled) { color: var(--text); }
.md-opt.on { color: var(--text); font-weight: 600; border-bottom-color: var(--canopy); }
.md-opt.inh { color: var(--text); border-bottom: 2px dotted var(--canopy); }
.md-opt:disabled { color: var(--text-3); cursor: not-allowed; }
.md-from { margin: 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.md-from .linkbtn { font-size: 12.5px; }
.md-th { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--text-2); }
.md-th input { width: 74px; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 4px 6px; color: var(--text); font: 13px var(--mono, monospace); }
.cv-modes { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; max-width: 640px; }
.cv-mode-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.cv-mode-k { color: var(--text-3); font-size: 12.5px; padding-top: 7px; overflow-wrap: anywhere; }
.cv-modes > p { margin: 0; font-size: 12.5px; }
.cv-modeline { font-size: 12.5px; color: var(--text-2); }
.cv-held { color: var(--warn); }
@media (max-width: 640px) {
  .cv-mode-row { grid-template-columns: minmax(0, 1fr); }
  .cv-mode-k { padding-top: 0; }
  .md-opt { padding: 8px 10px 9px; }
}

/* Create a pavilion: Cloudflare Turnstile's check (console/turnstile.js). Its iframe is 65px tall and at least 300px
   wide ("flexible"), so the slot keeps that height while it loads instead of pushing the button down. */
.human { display: flex; flex-direction: column; gap: 6px; }
.human[hidden] { display: none; }
.human-widget { min-height: 65px; min-width: 0; }
.human-note { margin: 0; font-size: 12.5px; color: var(--text-3); }
.si-err[hidden] { display: none; }
/* No site key from the Gate: nobody can create here yet, and the button says so by looking off. */
.signin .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- Tasks › For you (CONSOLE-REDESIGN §1.3, step 4) */
/* Four bands in the list pane: a small-capitals heading with its count, then rows on hairlines, each answered where it
   stands (its buttons under its words). The decisions and the outside work sit in #inbox, on the safety palette. */
.fy { padding: 0 0 28px; }
.fy .op-band { border-top: 0; padding: 0; margin: 0; }
.fy .op-band > h2 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 16px 16px 6px; font-weight: 600; gap: 8px; }
.fy .op-band > h2 .n { font: 12px var(--sans); letter-spacing: 0; text-transform: none; }
.fy .op-band > h2 .all { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--canopy-2); }
.fy .op-band > .lock-note { padding: 0 16px 8px; margin: 0; }
.fy .op-band:focus { outline: none; }
.fy .op-rows { margin-top: 0; border-top: 1px solid var(--line); }
.fy .op-row { padding: 12px 16px 12px 14px; border-left-width: 2px; row-gap: 6px; }
.fy .op-row .op-main { flex: 1 1 220px; }
.fy .op-row .op-acts { order: 4; flex-basis: 100%; }
.fy .op-row .op-answer { order: 5; max-width: none; }
/* a customer's request answered on its row: the quote in its currency, how long it holds, then the button (tt-gap-areas) */
.fy-quote { flex-wrap: wrap; align-items: center; }
.fy-quote .fy-q { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.fy-quote .fy-q:first-child { flex: 1 1 140px; min-width: 0; }
.fy-quote .fy-q input[type="number"] { flex: none; width: 64px; }
.fy .op-row .op-where a { color: var(--canopy-2); }
.fy .op-none, .fy .op-checked { padding-left: 16px; padding-right: 16px; }
.fy .op-none { padding-top: 12px; }
.fy .op-checked { padding-bottom: 6px; }
.fy .op-fail { margin: 8px 16px; }
.fy .in-caps { padding: 10px 16px 0; margin: 0; }
.fy .in-list { border-top: 0; }
.fy .in-row { padding: 12px 16px 12px 14px; }
.fy .in-top .dot { align-self: center; }
.fy .op-row .tk-work { order: 6; }
.fy-inv:empty { display: none; }
.fy-inv { padding: 0; } /* its band draws its own 16 px, as the others do (the band sat 16 px in from the rest) */
.fy .cp-empty.sm { padding: 12px 16px 8px; }
.fy #fyStart:empty { display: none; }
.fy #fyStart { padding: 12px 16px 0; }
/* Overview: the grid, then the day's figures and what is running */
.ov .op-band { margin-bottom: 20px; }
@media (max-width: 780px) {
  .fy .op-row, .fy .in-row { padding: 12px 14px 12px 12px; }
  .fy .op-band > h2 { padding: 14px 14px 6px; }
  .fy .op-band > .lock-note { padding: 0 14px 8px; }
  .fy .cp-empty.sm { padding-left: 14px; padding-right: 14px; }
}
.fy-bar { display: flex; justify-content: flex-end; padding: 10px 16px 0; }

/* A screen still in a glimpse (glimpse-still.js): a block when shown, and hidden until the first picture arrives. */
.gl-still-img { display: block; }
.gl-still-img[hidden] { display: none; }

/* Automations (docs/AUTOMATIONS.md §11): one list of every kind; on a phone each row is a short stack under a hairline. */
.au-h { margin: 28px 0 10px; font-size: 15px; font-weight: 600; }
.au-list td .dim { overflow-wrap: anywhere; }
@media (max-width: 780px) {
  table.au-list, .au-list tbody, .au-list tr, .au-list td { display: block; width: 100%; }
  .au-list tr.au-head { display: none; }
  .au-list tr { border-bottom: var(--hair); padding: 10px 0; }
  table.au-list td { border: 0; padding: 2px 0; }
  table.au-list td:nth-child(3) { display: inline-block; } /* the phone rule above hides a table's third column; here it is the last run */
  .au-list .acts-cell { padding-top: 6px; }
  .au-list td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--text-3); }
  .au-list td[data-l] { display: inline-block; width: auto; min-width: 33%; vertical-align: top; padding-right: 12px; }
  .au-list td.au-none { display: none; }
}
