/* Brix conversation features beyond the reference (operator goal of 2026-11-06, « rattraper Jarvis »): autonomy and risk, documents,
   wake-ups and fan-out. The demo has none of them, so every value below reuses its tokens and pieces: the chat bar's mode pill
   (`.cmp-mode`), tags, the approval card (`.action-card`), the thread's event rows (`.t-event`, 22px glyph), the workspace's file rows
   (`.ws-files`) and the step wizard's layer. 13px body, 32.5px controls; nothing inflated. */

/* ---------- Autonomy in the conversation head ---------- */
.brix-autonomy { display: flex; align-items: center; flex: none; gap: 4px; margin-left: auto; }
.thread-head > .brix-autonomy { min-width: auto; }
/* One-line head from 961px (operator, 2026-11-06: the view jumped on every switch): a title of any length, the loading skeleton
   and the head's controls all keep the head at one height, so the thread never moves when another conversation opens. The title
   ends in an ellipsis (whole on hover); in a narrow head the controls drop their words before they would wrap. */
@media (min-width: 961px) {
  .thread-head { flex-wrap: nowrap; container-type: inline-size; }
  .thread-head > div:not(.brix-autonomy) { flex: 1 1 auto; min-width: 0; }
  .thread-head h1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .thread-head .meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .thread-head .meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@container (max-width: 760px) {
  .brix-later-btn span, .brix-risk-btn span, .brix-limited span { display: none; }
}
.thread-head .brix-autonomy + .ws-switch { margin-left: 8px; }
.brix-risk-btn { gap: 5px; color: var(--ink-2); }
.brix-risks { display: grid; gap: 10px; width: min(560px, calc(100vw - 32px)); padding: 12px 14px 14px; font-size: 12.5px; }
.brix-risks-lead { line-height: 1.45; color: var(--ink); }
.brix-risks-rule { line-height: 1.45; color: var(--ink-2); }
.brix-risks-source { margin-top: -6px; color: var(--ink-3); }
.brix-risks-limit { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; color: var(--wait); }
.brix-risks-limit .icon { flex: none; margin-top: 2px; }
/* The ceiling lowers the level asked for (RefusalReason): a lock and « Limité à … » beside the pill, the lock alone in a narrow head. */
.brix-limited { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 500; color: var(--wait); white-space: nowrap; cursor: help; }
.brix-mode-fixed, .brix-mode-fixed:hover { cursor: default; background: var(--surface); color: var(--ink-2); }
.brix-limited:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* What each level does with each risk (Jarvis's table, four levels): scrolls sideways rather than squeezing at phone width. */
.brix-matrix-wrap { overflow-x: auto; max-width: 100%; }
.brix-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.brix-matrix th, .brix-matrix td { padding: 5px 6px; border-top: 1px solid var(--line); text-align: left; font-weight: 500; white-space: nowrap; }
.brix-matrix thead th { border-top: 0; color: var(--ink-3); font-size: 11.5px; font-weight: 600; vertical-align: bottom; }
.brix-matrix thead th.cur { color: var(--ink); }
.brix-matrix-level { display: inline-flex; align-items: center; gap: 4px; }
.brix-matrix td .icon { margin-right: 4px; vertical-align: -2px; }
.brix-matrix th.cur, .brix-matrix td.cur { background: var(--surface-2); }
.brix-matrix td.cur { font-weight: 600; }
.brix-matrix .runs { color: var(--ok); }
.brix-matrix .asks { color: var(--wait); }
.brix-matrix .refused { color: var(--ink-3); }

/* Settings › Brix: the organization's default level as four cards (the theme cards' pattern), the risk rule in plain words. */
.brix-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.brix-level {
  display: grid; gap: 4px; align-content: start; padding: 9px 11px 10px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 12.5px; text-align: left; cursor: pointer;
}
.brix-level:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--ink-3); }
.brix-level[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brix-level:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brix-level-head { display: flex; align-items: center; gap: 6px; }
.brix-level-head strong { font-size: 13px; font-weight: 700; }
.brix-level-head .cmp-level-soon, .brix-level-head .cmp-level-lock { margin-left: auto; }
.brix-level-effect { color: var(--ink-2); line-height: 1.45; }
.brix-level:disabled, .brix-level[aria-disabled="true"] { cursor: not-allowed; }
.brix-level[aria-disabled="true"] > *, .brix-levels.off .brix-level[aria-checked="false"] > * { opacity: 0.6; }
.brix-levels.off .brix-level[aria-checked="true"] { box-shadow: none; border-style: dashed; }
.brix-soon-line { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.brix-soon-line > .pf-soon-pill, .brix-soon-line > .icon { margin-right: 6px; vertical-align: -2px; }
.brix-soon-line > .pf-soon-pill { vertical-align: 0; }
.brix-soon-line .icon { color: var(--ink-3); }
.brix-rule { margin: 0; max-width: 68ch; color: var(--ink); line-height: 1.5; }

/* Breckly ID › Rôles: the role's ceiling as a compact field in its row. */
.field.dd.brix-ceiling { display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 150px; }
.field.dd.brix-ceiling > span { flex: 1; }
.brix-ceiling-soon, .brix-ceiling-value { display: inline-flex; align-items: center; gap: 6px; }
.brix-ceiling-caption { display: none; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .brix-ceiling-caption { display: inline; } }

/* Risk tags: the kit's tag in the status tones (read ok, change amber, destruction critical). */
.tag.brix-risk { height: 20px; padding: 0 6px; gap: 3px; font-size: 11px; white-space: nowrap; }
.tag.brix-risk + .tag.brix-risk { margin-left: 4px; }
.tag.risk-read { color: var(--ok); border-color: color-mix(in oklab, var(--ok-mark) 35%, var(--surface)); background: color-mix(in oklab, var(--ok-mark) 8%, var(--surface)); }
.tag.risk-change { color: var(--wait); border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); background: color-mix(in oklab, var(--wait-mark) 10%, var(--surface)); }
.tag.risk-destructive { color: var(--crit); border-color: color-mix(in oklab, var(--crit-mark) 40%, var(--surface)); background: color-mix(in oklab, var(--crit-mark) 8%, var(--surface)); }

/* ---------- Documents ---------- */
.brix-docs .brix-doc-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; max-width: 100%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brix-docs .brix-doc-open:hover { color: var(--accent); }
.wizard-layer:has(.brix-doc) { width: min(980px, 100%); height: min(860px, calc(var(--view-h, 100dvh) - 32px)); }
.brix-doc { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.brix-doc-head { display: grid; gap: 6px; padding: 18px 20px 0; }
.brix-doc-head h2 { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 16px; font-weight: 700; }
.brix-doc-head h2 .tile { flex: none; width: 29px; height: 29px; }
.brix-doc-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brix-doc-head h2 .pill { flex: none; }
.brix-doc-head .wizard-lead { margin: 0; font-size: 12.5px; }
.brix-doc-tabs.tabs { flex: none; margin: 10px 0 0; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.brix-doc-tabs .tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 9px; font-size: 12.5px; }
.brix-doc-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.brix-doc-sec { display: grid; align-content: start; gap: 12px; padding: 16px 20px 18px; outline: none; }
.brix-doc-sec[hidden] { display: none; }
.brix-doc-sec:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-line); }
.brix-doc-sec > .md { max-width: 76ch; }
.brix-doc-skel { display: grid; gap: 10px; }
.brix-doc .wizard-foot { flex: none; }
.brix-exports { flex-wrap: wrap; gap: 6px; }
.brix-exports .ws-label { margin-right: 2px; }
.brix-exports .btn { gap: 5px; }
.brix-sheets { justify-self: start; max-width: 100%; overflow-x: auto; }
.brix-source-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brix-source { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); overflow: auto; max-height: 60vh; }
.brix-source code { font-family: var(--font-data); font-size: 12px; line-height: 1.6; white-space: pre; }
.brix-mermaid { display: grid; gap: 10px; margin: 0; }
.brix-mermaid-svg { display: grid; justify-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: auto; }
.brix-mermaid-svg svg { max-width: 100%; height: auto; }
.data-table tr.brix-cur td, .dt-table tr.brix-cur td { background: var(--surface-2); }
.brix-wrap { white-space: normal; min-width: 160px; }
/* A workbook sheet fills the reader (DataLayout.Fill): the body stops scrolling and the sheet's rows scroll under its titles. */
.brix-doc-body.fill { display: flex; flex-direction: column; overflow: hidden; }
.brix-doc-body.fill > .brix-doc-sec:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.brix-doc-body.fill .brix-sheet { flex: 0 1 auto; min-height: 0; }
.brix-docs-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
/* The editor */
.brix-edit-body { flex: 1 1 auto; }
.brix-edit-src { font-family: var(--font-data); font-size: 12px; line-height: 1.55; white-space: pre-wrap; min-height: 220px; resize: vertical; }
.brix-edit-src.grid { white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 16; }
.brix-edit-sheets, .brix-edit-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.brix-edit-sheet-tools { display: inline-flex; gap: 6px; margin-left: auto; }
.brix-edit-mode .brix-bounds-one { margin-left: auto; }
.brix-edit-preview { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); min-height: 220px; }
.brix-bounds { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 0; padding: 0; list-style: none; }
.brix-bounds li, .brix-bounds-one { font-size: 12px; color: var(--ink-2); }
.brix-bounds .num, .brix-bounds-one .num { font-weight: 600; color: var(--ink); }
.brix-bounds .near, .brix-bounds .near .num, .brix-bounds-one.near, .brix-bounds-one.near .num { color: var(--wait); }
.brix-bounds .over, .brix-bounds .over .num, .brix-bounds-one.over, .brix-bounds-one.over .num { color: var(--crit); font-weight: 700; }
.brix-edit-why { min-width: 0; }
.brix-edit-problem { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--crit); }
.brix-edit-problem .icon { flex: none; }

/* ---------- Wake-ups in the thread ---------- */
.brix-wake { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 9px; width: min(640px, calc(100% - 35.5px)); margin-left: 35.5px;
  padding: 8px 10px 8px 9px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.brix-wake .t-ic { background: var(--accent-soft); color: var(--accent); }
.brix-wake.failed { border-style: solid; border-color: color-mix(in oklab, var(--crit-mark) 35%, var(--surface)); }
.brix-wake.failed .t-ic { background: color-mix(in oklab, var(--crit-mark) 10%, var(--surface)); color: var(--crit); }
.brix-wake.over { opacity: 0.8; }
.brix-wake.over .t-ic { background: var(--sunken); color: var(--ink-3); }
.brix-wake-text { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.brix-wake-text p { margin: 0; line-height: 1.45; }
.brix-wake-text strong { font-weight: 700; color: var(--ink); }
.brix-wake-text time { font-weight: 600; color: var(--ink); }
.brix-wake-text .muted { font-size: 12px; }
.brix-zone { font-size: 11.5px; color: var(--ink-3); }
.brix-wake-err { color: var(--crit); }
.brix-wake-note { margin-top: 4px !important; padding: 6px 9px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.brix-wake .btn { align-self: center; }

/* ---------- Fan-out, in the workspace's Subagents tab (DESIGN.md: the subagent rows, app.css .ws-agents) ---------- */
.brix-fans > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.brix-fans > li > * { min-width: 0; }
.brix-fans .ws-agent-head strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brix-fans .ws-agent-head .pill { flex: none; }
.brix-fan-progress { margin: 2px 0 0; }
.brix-fan-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.brix-fan-counts li { display: inline-flex; align-items: center; gap: 4px; }
.brix-fan-counts .num { font-weight: 700; color: var(--ink); }
.brix-fan-check { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 2px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface-2); }
.brix-fan-check > .icon { margin-top: 1px; color: var(--ink-3); }
.brix-fan-check.ok { border-color: color-mix(in oklab, var(--ok-mark) 32%, var(--surface)); background: color-mix(in oklab, var(--ok-mark) 7%, var(--surface)); }
.brix-fan-check.ok > .icon { color: var(--ok); }
.brix-fan-check.verify { border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); background: color-mix(in oklab, var(--wait-mark) 9%, var(--surface)); }
.brix-fan-check.verify > .icon { color: var(--wait); }
.brix-fan-check strong { font-weight: 700; color: var(--ink); }
.brix-fan-detail { margin-top: 3px !important; color: var(--ink); overflow-wrap: anywhere; }
.brix-fans details > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.brix-fan-targets li { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto auto; gap: 7px; }
.brix-fan-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.brix-fan-name:hover { color: var(--accent); }
.brix-fan-state { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.brix-fan-steps { font-size: 11.5px; }
.ws-agent-steps .failed .icon { color: var(--crit); }
.ws-agent-steps .verify .icon { color: var(--wait); }
.ws-agent-steps .skipped { color: var(--ink-3); }
.brix-run { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.brix-run.ok, .brix-fan-counts .ok .icon { color: var(--ok); }
.brix-run.failed, .brix-fan-counts .failed .icon { color: var(--crit); }
.brix-run.verify, .brix-fan-counts .verify .icon { color: var(--wait); }
.brix-run.running, .brix-fan-counts .running .icon { color: var(--accent); }
.brix-run.waiting, .brix-fan-counts .waiting .icon { color: var(--ink-3); }
.brix-run.skipped, .brix-fan-counts .skipped .icon { color: var(--ink-3); }
.brix-fan-table { margin-top: 6px; min-width: 0; overflow-x: auto; }
.brix-fan-table td .data { white-space: nowrap; }

/* ---------- Wake-ups list: a link in the conversation list, a panel on the home ---------- */
.home-wakeups { margin-top: 17px; }

@media (max-width: 960px) {
  .thread-head .brix-autonomy { order: 8; margin-left: 0; }
}
@media (max-width: 600px) {
  .brix-wake { width: 100%; margin-left: 0; grid-template-columns: 22px minmax(0, 1fr); }
  .brix-wake .btn { grid-column: 2; justify-self: start; }
  .brix-doc-head, .brix-doc-sec { padding-left: 16px; padding-right: 16px; }
  .brix-risk-btn span { display: none; }
}

/* ---------- Resume later: the head action and its wizard ---------- */
.brix-later-btn { gap: 5px; color: var(--ink-2); }
.brix-wake-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.brix-wrap-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.brix-wake.verify { border-style: solid; border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); }
.brix-wake.verify .t-ic { background: color-mix(in oklab, var(--wait-mark) 10%, var(--surface)); color: var(--wait); }
@media (max-width: 600px) {
  .brix-later-btn span { display: none; }
}

/* A document reads as a document: the chat's paragraph rhythm, more air before a heading, a larger title. */
.brix-doc-sec .md > * + * { margin-top: 9px; }
.brix-doc-sec .md > :is(h3, h4, h5) { margin-top: 18px; }
.brix-doc-sec .md > :is(h3, h4, h5) + * { margin-top: 6px; }
.brix-doc-sec .md > h3:first-child { font-size: 18px; }

/* ---------- « Tâches » in the workspace: cards in the plan cards' shape (`.ws-plan`) ---------- */
.ws-dot.crit { background: var(--crit-mark); }
.brix-task-sec { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.brix-task { gap: 7px; }
.brix-task.off { border-color: color-mix(in oklab, var(--crit-mark) 50%, var(--surface)); box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / 6%)); }
.brix-task.focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.brix-task-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brix-task-head .kebab { margin-left: auto; }
.brix-task-when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.brix-task-head time.brix-task-when { cursor: default; border-bottom: 1px dotted var(--line-strong); }
.brix-task-title { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.brix-task-note { font-size: 12.5px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.brix-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.brix-task-meta .ws-label { margin: 0; }
.brix-task .ws-outcome { font-size: 12px; }

/* A narrow conversation folds the autonomy row while the on-screen keyboard is open (viewport.css), so the composer stays above it. */
@media (max-width: 960px) { :root[data-keyboard] .fit .thread-head .brix-autonomy { display: none; } }

/* ---------- A narrow conversation's head: one row (operator, 2026-11-13: « le top prend trop de place ») ----------
   At 960px and below: back, the title on one line, then the head's actions as 32.5px icons and the Conversation / Workspace switch
   as the « Espace de travail » toggle, its dot while a decision waits. The author and start date stay in the workspace's Périmètre,
   whose own panel title the toggle already says. The frame sits closer under the top bar, so the thread gets the room. In an
   installed app the top bar's « Retour » is the only one (viewport.css `.top-back`). */
.ws-toggle { display: none; }
:root[data-standalone] .thread-back { display: none; }
@media (max-width: 960px) {
  main.fit:has(.convo-layout:not(.list-only)) { padding-top: 7px; padding-bottom: calc(6px + var(--view-b)); }
  main.fit .convo-layout:not(.list-only) { height: calc(var(--view-h, 100dvh) - var(--top-h) - 13px); }
  .thread-head { flex-wrap: nowrap; gap: 2px; padding-bottom: 6px; }
  .thread-head > .thread-title { flex: 1 1 auto; min-width: 0; margin: 0 4px 0 2px; }
  .thread-head h1 { overflow: hidden; font-size: 15.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
  .thread-head .meta, .thread-head .ws-switch { display: none; }
  .thread-head > .presence-stack { margin-left: 0; }
  .thread-head .brix-autonomy { order: 0; gap: 2px; margin-left: 0; }
  .thread-head .brix-autonomy .btn.small { width: 32.5px; height: 32.5px; padding: 0; justify-content: center; }
  .thread-head .brix-autonomy .btn.small > span { display: none; }
  .thread-back { margin-left: -7px; }
  .ws-toggle { display: grid; }
  .ws-toggle[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
  .ws-toggle .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--wait-mark); box-shadow: 0 0 0 2px var(--bg); }
  .with-ws > .ws { margin-top: 8px; }
  .with-ws > .ws > .panel-head { display: none; }
  .fit .messages { padding-top: 14px; }
}

/* ---------- A wake-up Brix proposed (M14-20): the wake-up note's frame, solid accent while it waits for a confirmation ---------- */
.brix-prop { grid-template-columns: 22px minmax(0, 1fr); }
.brix-prop.live { border-style: solid; border-color: color-mix(in oklab, var(--accent) 35%, var(--surface)); }
.brix-prop-left.soon { color: var(--wait); font-weight: 600; }
.brix-prop-label { margin-top: 4px !important; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.brix-prop-note { margin-top: 2px !important; max-height: 160px; overflow: hidden auto; }
.brix-prop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.brix-prop .brix-prop-actions .btn { align-self: auto; }
.brix-prop-safe { margin-top: 2px !important; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 600px) {
  .brix-prop .brix-prop-actions .btn { grid-column: auto; }
}

/* ---------- A command an approved plan runs, that the mode asks about (operator 2026-11-08): the approval card, distinct from the plan's ---------- */
.action-card.brix-cmd-ok.live { border-color: color-mix(in oklab, var(--wait-mark) 45%, var(--surface)); }
.action-card.brix-cmd-ok .act-who .linkish { font-size: inherit; }
.action-card.brix-cmd-ok .act-facts dd .muted { font-size: 11.5px; }
.brix-cmd-end { display: grid; gap: 0; width: min(720px, calc(100% - 35.5px)); margin-left: 35.5px; }
.brix-cmd-end > .action-card { margin-top: 10px; }
.brix-cmd-rows { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.brix-cmd-row { gap: 6px; min-width: 0; }
.brix-cmd-row.over { opacity: 0.8; }
.brix-cmd-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12px; color: var(--ink-3); min-width: 0; }
.brix-cmd-row-on { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.brix-cmd-row-when { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brix-cmd-row-code { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: 12px; color: var(--ink); }
.brix-cmd-row .btn { justify-self: start; }
.brix-plan-anchor { display: block; height: 0; scroll-margin-top: 13.5px; }
@media (max-width: 600px) {
  .brix-cmd-end { width: 100%; margin-left: 0; }
}
.act-mode { display: flex; align-items: flex-start; gap: 5px; }
.act-mode > .icon, .act-mode > svg { flex: none; margin-top: 2px; }

/* Secrets Brix found (M14-68/M14-69): the capture notice in the turn, its chips, the offer to keep one in Pass, the workspace tab. */
.brix-found { width: min(860px, 100%); min-width: 0; }
.brix-found .msg-captures { justify-content: flex-start; margin: 0 0 4px 19px; }
.found-chip { font-size: 12px; }
.found-chip > .icon { color: var(--ink-3); }
.found-chip strong { font-weight: 600; color: var(--ink); }
.brix-promote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; margin: 10px 0 4px; }
.brix-promote-form .fgroup { margin: 0; }
.brix-promote-asset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 32.5px; margin: 0; }
.brix-promote .act-who code { font-size: 11.5px; overflow-wrap: anywhere; }
.brix-found-ws { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.brix-found .web-read-note .linkish { margin-left: 4px; }
.brix-found-kept { margin-left: 6px; }
@media (max-width: 600px) { .brix-promote-form { grid-template-columns: minmax(0, 1fr); } }
