/* Ported verbatim from Breckly/demo/assets/css/ops.css. Change a value here only to match the reference. */
/* Ops screens beyond Home, Conversations and Infrastructure (assets/js/opsviews.js):
   topology, activity and settings. */

/* ---------- Shared pieces ---------- */

.ops-gap { margin-top: 17px; }
.page > .machine-head + .banner { margin: 17px 0 0; }
/* A note under a machine head (capabilities, no agent) takes its own line instead of squeezing the identity column. */
.machine-head > p { flex-basis: 100%; }
.ops-kpis { margin: 0 0 17px; }
.ops-hint { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.ops-sub { margin: 16px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.panel-body .ops-flush { margin: 0 -17px; padding-bottom: 0; }
.ops-link-text { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ops-link-text.strong { font-size: 13px; }
.ops-link-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.ops-note-line { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 4px; }
/* The connector that manages an imported asset, on its row and its page (asset connectors live in Infrastructure). */
.role .ops-src { color: var(--ink-3); }
.role .ops-src.warn { color: var(--wait); }
/* A connector disabled through an approved plan (ConnectorView.Enabled false): muted, never a warning. */
.role .ops-src.off { color: var(--ink-3); }
.role .ops-src-off, .ops-src-off { color: var(--ink-3); }
.pill.conn-off { color: var(--ink-3); background: var(--surface-2); }
.ops-conn-off { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; }
.ops-conn-off > .icon { flex: none; margin-top: 2px; }
/* Infrastructure « Ajouter »: each kind and its hint (« UniFi (console locale) · compte local de la console ») on one line. */
.infra-add + .menu-pop { width: max-content; }
/* Infrastructure tree: a host's chevron, its indented VMs and LXC containers, and the agent column. */
.infra-name { gap: 8px; }
.infra-tw { width: 24px; height: 24px; flex: none; }
.infra-tw .icon { transition: transform .15s ease; }
.infra-tw[aria-expanded="true"] .icon { transform: rotate(90deg); }
.infra-tw-gap { width: 24px; flex: none; }
.infra-child .infra-name { padding-left: 32px; }
.infra-agent { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; }
.infra-agent.on > .icon { color: var(--ok); }
.infra-agent.off { color: var(--wait); }
.infra-agent.none { color: var(--ink-3); gap: 8px; }
.infra-agent.pending { color: var(--wait); gap: 8px; }
@media (prefers-reduced-motion: reduce) { .infra-tw .icon { transition: none; } }
/* Connector setup is a step wizard (DESIGN.md Overlays › Step wizard): Telegram's steps keep their chat illustrations (remote.css rd-msgs). */
.ops-tg { display: grid; gap: 12px; }
.ops-tg-manual { display: grid; gap: 8px; }
.ops-tg-manual > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent); width: max-content; }
.ops-tg-manual[open] > summary { margin-bottom: 4px; }
/* OVH rights to create, each with its copy button. */
.ops-rights { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ops-rights li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
/* A configured connector's settings (the wizard's summary): the state and the connection test on a Raised Row block, then one
   label and value grid per section, machine values in Martian Mono on one line with an ellipsis; stacked at phone width. */
.ops-conn-wizard .wizard-head h2 .tile .product-logo { border-radius: 5px; }
.ops-conn-status { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ops-conn-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; }
.ops-conn-info { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.ops-conn-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ops-conn-status-row > .ops-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ops-conn-found { line-height: 1.45; }
.ops-conn-counts { color: var(--ink-2); }
.ops-conn-wait { margin: 0; font-size: 12.5px; }
.asset-sources .asset-src-sync { height: auto; min-height: 0; padding: 0 4px; margin-left: 6px; font-size: inherit; vertical-align: baseline; }
.ops-conn-result { display: grid; gap: 8px; }
.ops-conn-result:empty { display: none; }
.ops-conn-result .banner .btn { flex: none; }
.ops-conn-facts { display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: center; gap: 4px 16px; margin: 2px 0 0; }
.ops-conn-facts dt { color: var(--ink-3); }
.ops-conn-facts dd { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 22px; margin: 0; color: var(--ink); }
.ops-conn-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-conn-set { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.ops-conn-set + .linkish { margin-left: 6px; }
@media (max-width: 520px) {
  .ops-conn-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ops-conn-facts dd + dt { margin-top: 6px; }
}
/* A connector's actions (ConnectorActionState, M9-07): what the API reports in three plain lines (done, to do, not proven), the
   Kubernetes action token's renewal, the OVH credential choice and the scope as ticks. */
.ops-act { display: grid; gap: 10px; }
.ops-act-wait { margin: 0; font-size: 12.5px; }
.ops-act-list { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.45; }
.ops-act-list li { display: flex; align-items: flex-start; gap: 7px; padding: 0; border: 0; color: var(--ink-2); }
.ops-act-list li > .icon { flex: none; margin-top: 2px; }
.ops-act-list li.ok > .icon { color: var(--ok); }
.ops-act-list li.todo > .icon { color: var(--ink-3); }
.ops-act-list li.warn { color: var(--ink); }
.ops-act-list li.warn > .icon { color: var(--wait); }
.ops-act-scope { color: var(--ink); overflow-wrap: anywhere; }
.ops-act-renew { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ops-act-renew-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.ops-act-dates { margin: 0; font-size: 12.5px; line-height: 1.45; }
.ops-act-choice { display: grid; gap: 6px; }
.ops-act-choice .check > span { display: grid; gap: 1px; }
.ops-act-choice .muted { font-weight: 400; font-size: 12px; }
.ops-act-scopes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ops-act-scopes .check > span { font-family: var(--font-data); font-size: 12px; }
.ops-act-section { display: grid; gap: 10px; }
/* The actions section of the settings takes the whole row under its title, beside « Modifier » only on the title's line. */
.wizard-summary li:has(.ops-act-section) > .btn { grid-row: 1; }
.wizard-summary li > .val:has(.ops-act-section) { grid-column: 1 / -1; }
/* The review list of the last step. */
.ops-review { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ops-review li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ops-review span { color: var(--ink-2); overflow-wrap: anywhere; }
.ops-tg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* A local UniFi console's certificate to compare (ConnectorsPanel, unifi-local): where it was read, a copy button, then the SHA-256
   fingerprint in 32 pairs, 16 a line (8 on a phone) so it reads like a browser's certificate viewer. */
.ops-cert { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ops-cert-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 12.5px; color: var(--ink-2); }
.ops-cert-head .data { color: var(--ink); }
.ops-fp { display: grid; grid-template-columns: repeat(16, max-content); gap: 3px 9px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.ops-cert-how { display: grid; gap: 5px; margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.ops-cert-how .ops-link-text { display: inline; overflow-wrap: anywhere; }
.ops-cert-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.ops-cert-note > .icon { flex: none; margin-top: 2px; color: var(--ink-3); }
.ops-cert-note .data { overflow-wrap: anywhere; }
.ops-cert-confirm { display: grid; gap: 4px; }
@media (max-width: 520px) { .ops-fp { grid-template-columns: repeat(8, max-content); } }
/* SSH connector (ConnectorsPanel, M14-07): a host key as algorithm and OpenSSH SHA256 fingerprint in monospace, the command that
   prints the server's own, the Pass secret pickers, the machines it covers in a fixed-height table, and the inventory interval. */
.ssh-key { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 12.5px; }
.ssh-key dt { color: var(--ink-3); }
.ssh-key dd { min-width: 0; margin: 0; color: var(--ink); }
.ssh-fp { overflow-wrap: anywhere; user-select: all; }
.ssh-cmd { margin: 5px 0 2px; }
.ssh-secret { display: flex; align-items: center; gap: 8px; }
.ssh-secret > .select-wrap, .ssh-secret > select { flex: 1 1 auto; min-width: 0; }
.ssh-secret > .btn { flex: none; }
.ssh-secret-new { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ssh-secret-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ssh-machines-step { gap: 6px; }
/* The addresses a machine is known by, under the host of an SSH connector started from its page. */
.ssh-host-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.ssh-host-choice .chip { height: 25px; padding: 0 10px; font-size: 12px; }
/* « Ajouter un connecteur » in a device's Sources head, after the count. */
.asset-src-head { display: inline-flex; align-items: center; gap: 10px; }
.ssh-machines { display: flex; flex-direction: column; height: min(52vh, 380px); min-height: 220px; }
.ssh-machines-count { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; }
.ssh-every { display: flex; align-items: center; gap: 8px; }
.ssh-every .ssh-every-n { width: 96px; }
@media (max-width: 520px) { .ssh-secret { flex-wrap: wrap; } .ssh-secret > .btn { margin-left: auto; } }
.ops-tg-cmd { margin: 0; flex: 1 1 160px; }
.ops-tg-chat { flex: none; overflow: visible; max-width: 380px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ops-tg-chat li { background: var(--surface); }
.ops-tg-chat li.me { background: var(--accent-soft); }
.ops-tg-chat li.sys { background: none; }
.ops-tg-chat code { font-size: 11.5px; }
.ops-tg-found { display: grid; gap: 6px; }
.ops-tg-chatrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-md); }

.ops-result { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.ops-result.ok .icon { color: var(--ok); }
.ops-result.fail, .ops-result.stopped { color: var(--crit); font-weight: 600; }
.ops-result.waiting { color: var(--wait); font-weight: 600; }
.ops-result.declined { color: var(--ink-2); }
.ops-result.running { color: var(--accent); font-weight: 600; }
.ops-result.none { color: var(--ink-3); }

/* Status dots are circles (state); the brick stays for critical items only. */
.ops-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-mark); }
.ops-dot.degraded { background: var(--wait-mark); }
.ops-dot.offline { background: var(--crit-mark); }
.ops-dot.unknown { background: var(--line-strong); }

.ops-actor { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ops-actor > .persona { flex: none; }
.ops-av {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in oklab, var(--p-deep) 80%, var(--p-mid)); color: #FFFFFF; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
}

/* ---------- Topology ---------- */

.ops-topo { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 17px; align-items: start; }
.ops-map-panel { display: flex; flex-direction: column; align-self: stretch; }
.ops-map { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 28px; padding: 14px; }
.ops-links { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ops-link { fill: none; stroke: var(--line-strong); stroke-width: 1.5; transition: stroke 0.2s; }
.ops-link.vpn { stroke: color-mix(in oklab, var(--accent) 55%, var(--surface)); }
.ops-link.backup { stroke: var(--wait-mark); stroke-dasharray: 5 4; }
.ops-link.down { stroke: var(--crit-mark); stroke-dasharray: 4 4; }
.ops-link.on:not(.down):not(.backup) { stroke: var(--accent); stroke-width: 2.5; }
.ops-link.on.backup { stroke-width: 2.5; }

.ops-bands { display: grid; gap: 12px; min-width: 0; }
/* Live topology: no Internet column; a site band puts its devices box beside the site node. */
.ops-map.live { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; }
.ops-band-body .ops-segs.wide { grid-column: 2 / -1; }
.ops-band-body .ops-segs.full { grid-column: 1 / -1; }
.ops-band { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.ops-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; padding: 9px 12px 0; font-size: 12px; }
.ops-band-head h3 { font-size: 14px; font-weight: 700; }
.ops-band-flag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.ops-band-flag.crit { color: var(--crit); }
.ops-band-flag.wait { color: var(--wait); }
.ops-band-flag.ok { color: var(--ok); }
.ops-band-body { display: grid; grid-template-columns: 136px 136px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 10px 12px 12px; }
.ops-col { display: grid; gap: 10px; min-width: 0; }
.ops-segs { display: grid; gap: 8px; min-width: 0; }
.ops-seg { padding: 0 7px 7px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-width: 0; }
.ops-seg-head { display: flex; justify-content: space-between; gap: 8px; padding: 7px 2px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ops-seg-head .data { overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--ink-3); }
.ops-leaves { display: flex; flex-wrap: wrap; gap: 6px; }

.ops-node {
  position: relative; display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0;
  padding: 4px 8px 4px 4px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  text-align: left; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ops-leaves .ops-node { flex: 1 1 128px; width: auto; max-width: 230px; }
.ops-node:hover { border-color: var(--ink-3); }
.ops-node.degraded { border-color: color-mix(in oklab, var(--wait-mark) 60%, var(--surface)); }
.ops-node.offline { border-color: color-mix(in oklab, var(--crit-mark) 55%, var(--surface)); background: color-mix(in oklab, var(--crit-mark) 5%, var(--surface)); }
.ops-node[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ops-node .tile { flex: none; width: 26px; height: 26px; border-radius: 7.5px; }
.ops-node-txt { flex: 1; min-width: 0; line-height: 1.25; }
.ops-node-txt strong { display: block; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-node-txt small { display: block; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-node.offline small { color: var(--crit); }
.ops-node.degraded small { color: var(--wait); }
/* A node is the trigger of the asset hover card (AssetChip): the anchor takes the node's place, the node fills it, and its focus
   ring and selection shadow stay visible. */
.hovercard-anchor.ops-node-card { display: flex; width: 100%; }
.ops-node-card > .hovercard-trigger { display: flex; flex: 1; min-width: 0; overflow: visible; }
.ops-leaves > .ops-node-card { flex: 1 1 128px; width: auto; max-width: 230px; }
.ops-leaves .ops-node-card .ops-node { max-width: none; }

.ops-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 17px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.ops-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ops-key { display: inline-block; width: 22px; border-top: 2px solid var(--line-strong); }
.ops-key.vpn { border-color: color-mix(in oklab, var(--accent) 55%, var(--surface)); }
.ops-key.backup { border-top-style: dashed; border-color: var(--wait-mark); }
.ops-key.down { border-top-style: dashed; border-color: var(--crit-mark); }

.ops-side { position: sticky; top: calc(var(--top-h) + 16px); }
.ops-site-sum { list-style: none; margin: 0; padding: 0; }
.ops-site-sum li { padding: 9px 0; border-top: 1px solid var(--line); }
.ops-site-sum li:first-child { border-top: 0; padding-top: 2px; }
.ops-site-sum p { margin-top: 2px; font-size: 11.5px; }
.ops-site-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ops-site-top .muted { font-size: 11.5px; }
/* One pillar per device; offline ones stand taller. */
.ops-pips { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 6px; }
.ops-pips i { width: 6px; height: 18.5px; border-radius: 3px; background: var(--ok-mark); }
.ops-pips i.degraded { background: var(--wait-mark); }
.ops-pips i.offline { height: 22px; background: var(--crit-mark); }
.ops-pips i.unknown { background: var(--line-strong); }
.ops-sel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ops-sel-head > div { flex: 1; min-width: 0; }
.ops-sel-head h3 { font-size: 15px; font-weight: 700; }
.ops-sel-head p { font-size: 12px; }
.ops-sel .banner { margin-bottom: 12px; }
.ops-sel-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ops-mini { list-style: none; margin: 0; padding: 0; }
.ops-mini li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- Activity ---------- */

.ops-evt { display: grid; gap: 14px; margin-top: 12px; }
.ops-evt dl.facts dd .ops-actor { justify-content: flex-end; }
.ops-raw summary { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.ops-raw summary::-webkit-details-marker { display: none; }
.ops-raw summary .icon { transition: transform 0.15s; }
.ops-raw[open] summary .icon { transform: rotate(90deg); }
.ops-raw pre { margin: 8px 0 0; padding: 12px; max-height: 260px; overflow: auto; border-radius: var(--r-md); background: var(--sunken); font: 500 12px/1.55 var(--font-data); }

/* ---------- Settings ---------- */

.ops-settings .btn.danger:not(.solid) { color: var(--crit); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .ops-topo { grid-template-columns: minmax(0, 1fr); }
  .ops-side { position: static; }
}

@media (max-width: 720px) {
  .ops-conn li > .pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .ops-conn li > .btn { grid-column: 3; grid-row: 1 / 3; }
  /* Stacked sites read on their own; long links would cross the devices. */
  .ops-map { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .ops-links, .ops-legend .ops-lk { display: none; }
  .ops-band-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ops-segs { grid-column: 1 / -1; }
  .ops-band-body .ops-segs.wide, .ops-band-body .ops-segs.full { grid-column: 1 / -1; }
}

/* Tables: short cells stay on one line, prose cells wrap. */
.ops-nowrap { white-space: nowrap; }

/* A Brix turn as a timeline (plan M14-15, as Claude Code shows one): its messages as separate bubbles, tool calls between them
   as one-line rows that never wrap (the state in a fixed 14px box, so completing changes no height), consecutive calls folded
   into « 3 actions », a muted reasoning line, notices, plans and questions at their place. Unfolding a row shows its arguments
   and output under a hairline. */
.brix-turn > .chat-col { gap: 5px; }
.tl-tool, .tl-group, .tl-reason { width: min(860px, 100%); min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.tl-line { display: flex; align-items: center; gap: 7px; min-width: 0; height: 26px; margin-left: -6px; padding: 0 8px 0 6px; border-radius: 6px;
  cursor: pointer; list-style: none; white-space: nowrap; }
.tl-line::-webkit-details-marker { display: none; }
.tl-line:hover { background: var(--sunken); }
.tl-line:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-ic { display: grid; flex: none; place-items: center; width: 14px; height: 14px; color: var(--ink-3); }
.tl-ic .spin { width: 12px; height: 12px; border-width: 1.75px; color: var(--accent); }
.ok > .tl-line > .tl-ic { color: var(--ok); }
:is(.failed, .refused) > .tl-line > .tl-ic { color: var(--crit); }
:is(.held, .stopped) > .tl-line > .tl-ic { color: var(--wait); }
.tl-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-sum strong { font-weight: 600; color: var(--ink); }
.tl-sum .cmd-code { overflow-wrap: normal; }
.held > .tl-line > .tl-sum { color: var(--wait); }
.refused > .tl-line > .tl-sum { color: var(--crit); }
.tl-line > .tag.brix-risk { flex: none; height: 18px; font-size: 10.5px; }
.tl-line > .tag.tl-kind { flex: none; height: 18px; padding: 0 5px; font-size: 10.5px; color: var(--ink-3); }
/* The call's target on its folded line (the asset chip with its hover card is in the unfolded body), and its risk as a dot on a phone. */
.tl-on { flex: none; max-width: 14em; overflow: hidden; text-overflow: ellipsis; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--sunken);
  font-family: var(--font-data); font-size: 11px; line-height: 18px; color: var(--ink-2); }
.tl-risk-dot { display: none; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--wait-mark); }
.tl-risk-dot.risk-read { background: var(--ok-mark); }
.tl-risk-dot.risk-destructive { background: var(--crit-mark); }
.tl-sum .tl-verb { color: inherit; }
.declined > .tl-line > .tl-ic, .declined > .tl-line > .tl-sum { color: var(--ink-3); }
.tl-meta { flex: none; color: var(--ink-3); }
.tl-sum .tl-meta { font-weight: 400; }
.tl-crit { color: var(--crit); }
.tl-wait { color: var(--wait); }
.tl-chev { flex: none; color: var(--ink-3); transition: transform 0.2s var(--ease-out); }
details[open] > .tl-line > .tl-chev { transform: rotate(90deg); }
.tl-body { display: grid; gap: 6px; min-width: 0; margin: 3px 0 8px 6px; padding-left: 13px; border-left: 1px solid var(--line); }
.tl-group-body { gap: 0; margin-top: 1px; }
.tl-group-body > .tl-tool { width: 100%; }
.tl-facts { margin: 0; font-size: 12px; color: var(--ink-3); }
.tl-reason-text { margin: 0; max-width: 68ch; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
/* A command's output being read from the operations journal when its row opens. */
.tl-loading { display: flex; align-items: center; gap: 6px; }
.tl-loading .spin { width: 12px; height: 12px; border-width: 1.75px; color: var(--accent); }
.held .tl-reason-text { color: var(--wait); }
/* What released the call (a read, the level, a plan, a person), or why it did not run: the unfolded row's last line. */
.tl-by { display: flex; align-items: flex-start; gap: 5px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.tl-by > .icon { flex: none; margin-top: 2px; }
.tl-by.wait { color: var(--wait); }
/* A call waiting for approval (the per-call gate): under its row, the request, its risk and target, then Autoriser and Refuser. Waiting
   is amber text on a ground tinted with the waiting mark (DESIGN.md, 7–10 % ground, 28–45 % border), never a brick. */
.tl-gate { display: grid; gap: 6px; width: min(860px, 100%); min-width: 0; margin: 1px 0 4px; padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--wait-mark) 38%, var(--surface)); border-radius: 8px; background: color-mix(in oklab, var(--wait-mark) 8%, var(--surface)); }
.tl-gate-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tl-gate-ask > .icon { flex: none; color: var(--wait); }
.tl-gate-ask > span[aria-hidden] { font-weight: 400; color: var(--ink-3); }
.tl-gate-ask > span:not([aria-hidden]) + span:not([aria-hidden]) { font-weight: 400; color: var(--ink-2); }
.tl-gate-ask .tag.brix-risk { height: 18px; font-size: 10.5px; }
.tl-gate-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tl-gate-note { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 11.5px; color: var(--ink-3); }
.tl-group-body > .tl-gate { margin-left: 0; }
.tl-reason > .tl-line { color: var(--ink-3); }
.chat-row .tl-reason-body .md :is(p, li) { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.tl-notice { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.tl-notice > .icon { flex: none; }
.tl-notice.halted { color: var(--wait); }
.tl-notice.halted strong { font-weight: 600; }
.tl-notice.halted span { color: var(--ink-3); }
.tl-notice.retry { color: var(--ink-3); }
.tl-notice.retry .spin { width: 12px; height: 12px; border-width: 1.75px; color: var(--accent); }
.chat-row .msg-error.tl-notice { margin-top: 0; }
.tl-thinking { display: inline-flex; align-items: center; min-height: 26px; font-size: 12.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .tl-chev { transition: none; } }
@media (pointer: coarse) { .tl-line { height: 32px; } }
@media (max-width: 560px) {
  .tl-line > .tag.brix-risk { display: none; }
  .tl-line > .tl-risk-dot { display: block; }
  .tl-on { max-width: 8em; }
  /* A phone keeps the command itself: the verb gives way first, then a long target. */
  .tl-tool > .tl-line .tl-verb { display: none; }
  .tl-gate-ask > span[aria-hidden] { display: none; }
  .tl-gate-act .btn { flex: 1 1 0; justify-content: center; }
  /* A group with failures or approvals to give keeps its count and those flags; the systems it touched give way. */
  .tl-group.flags > .tl-line .tl-sum .tl-meta { display: none; }
}
/* A page Brix read on the web (M14-20): a compact source card in the source rows' type (12.5px title, 11.5px meta), its excerpt folded
   as plain text in the data font, wrapped, scrolling past 240px. A refused read or search is one muted line. */
.web-read { display: grid; gap: 2px; width: min(560px, 100%); min-width: 0; margin: 2px 0 4px; padding: 7px 10px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.web-read-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.web-read-head > .icon { flex: none; color: var(--ink-3); }
.web-read-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.web-read-head > .tag.web-read-cut { flex: none; height: 18px; padding: 0 5px; font-size: 10.5px; color: var(--wait); }
.web-read-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: 11.5px; color: var(--accent); text-decoration: none; }
a.web-read-url:hover { text-decoration: underline; text-underline-offset: 3px; }
a.web-read-url:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 3px; }
.web-read-meta { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.web-read-excerpt { margin-top: 4px; }
.web-read-excerpt > summary { display: flex; align-items: center; gap: 5px; width: fit-content; height: 22px; margin-left: -4px; padding: 0 6px 0 4px;
  border-radius: 5px; list-style: none; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--wait); }
.web-read-excerpt > summary::-webkit-details-marker { display: none; }
.web-read-excerpt > summary:hover { background: var(--sunken); }
.web-read-excerpt > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.web-read-excerpt > summary > .tl-chev { color: var(--ink-3); }
.web-read-excerpt[open] > summary > .tl-chev { transform: rotate(90deg); }
.web-read-excerpt > pre { max-height: 240px; margin: 4px 0 0; padding: 7px 9px; overflow: hidden auto; border-radius: 6px; background: var(--sunken);
  font-family: var(--font-data); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.web-read-note { display: flex; align-items: flex-start; gap: 6px; width: min(860px, 100%); min-width: 0; margin: 0; padding: 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.web-read-note > .icon { flex: none; margin-top: 2px; }
@media (pointer: coarse) { .web-read-excerpt > summary { height: 32px; } }
/* Brix's metrics page (M14-23): one compact line chart per series under « source · résolution · période », its values folded in a
   table, the reasons a page is partial; and the connector reads a catalog lists. */
.web-read.metric-read { width: min(640px, 100%); gap: 4px; }
.metric-series { display: grid; gap: 2px; min-width: 0; margin-top: 6px; }
.metric-series-head { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: 12px; }
.metric-series-head > .c-key { flex: none; }
.metric-series-head code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: 11.5px; color: var(--ink); }
.metric-last { margin-left: auto; font-weight: 600; color: var(--ink); }
.metric-gaps { flex: none; font-size: 11px; color: var(--ink-3); }
.metric-series .tc { margin: 0; }
.metric-values { margin-top: 0; }
.metric-table-wrap { max-height: 220px; margin-top: 4px; overflow: auto; border-radius: 6px; background: var(--sunken); }
.metric-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.metric-table { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.metric-table th { position: sticky; top: 0; padding: 4px 9px; background: var(--sunken); text-align: right; font-weight: 600; color: var(--ink-3); }
.metric-table td { padding: 2px 9px; text-align: right; color: var(--ink-2); white-space: nowrap; }
.metric-table th:first-child, .metric-table td:first-child { text-align: left; }
.metric-skew { color: var(--wait); }
.metric-notes { display: grid; gap: 2px; margin: 6px 0 0; padding: 0 0 0 16px; font-size: 11.5px; color: var(--ink-3); }
.tool-catalog-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tool-catalog-head { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.tool-catalog-head strong { color: var(--ink); }
.tool-catalog-head code, .tool-catalog-ops code { font-family: var(--font-data); font-size: 11.5px; color: var(--ink-2); }
.tool-catalog-n { margin-left: auto; font-size: 11px; }
.tool-catalog-ops { display: grid; gap: 1px; margin: 2px 0 0; padding: 0 0 0 12px; list-style: none; }
.tool-catalog-ops > li { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink-3); }
.tool-catalog-reads { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-catalog-req { flex: none; margin-left: auto; font-size: 11px; }
@media (max-width: 640px) { .tool-catalog-ops > li { flex-wrap: wrap; } .tool-catalog-req { margin-left: 0; } }
/* A native file read or search (M14-17): the path in the data font, the matches as a compact list, path and size. */
.file-read-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: 12px; font-weight: 600; color: var(--ink); }
.file-read-root { font-family: var(--font-data); font-size: 11.5px; }
.file-matches { display: grid; gap: 1px; max-height: 220px; margin: 4px 0 0; padding: 0; overflow: hidden auto; list-style: none; }
.file-matches > li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12px; }
.file-matches code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: 11.5px; color: var(--ink-2); }
.file-match-size { flex: none; margin-left: auto; font-size: 11px; color: var(--ink-3); }
:is(.msg-bot, .chat-row) .msg-error { display: flex; align-items: center; gap: 6px; margin-top: 8.5px; font-size: 13px; color: var(--crit); }
:is(.msg-bot, .chat-row) .msg-error .icon { flex: none; }
.msg-sources { margin-top: 10px; max-width: 560px; }
/* A row that is the trigger of the asset hover card (AssetChip): Brix's sources, the topology's attention list. */
.hovercard-anchor.asset-chip-row { display: flex; width: 100%; }
.asset-chip-row > .hovercard-trigger { flex: 1; min-width: 0; overflow: visible; }
:is(.msg-bot, .chat-row) .msg-sources-head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.msg-sources .rows { margin-top: 3px; padding: 0; }
.msg-source { padding: 6px 3.5px; grid-template-columns: 18.5px minmax(0, 1fr) auto auto; }
.msg-source > .icon:first-child { color: var(--ink-3); }
.msg-source-kind { font-size: 11.5px; color: var(--ink-3); }
:is(.msg-bot, .chat-row) .msg-sources-more { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

/* Brix's Markdown (M9): the reference's message typography (14px, 1.62, 68ch measure), headings stepped down to the thread's scale,
   tables as the mini table, code in the data font with a copy button. Raw HTML never reaches this markup. */
.md { font-size: 14px; line-height: 1.62; }
:is(.msg-bot, .chat-row) .md > * { margin: 0; }
:is(.msg-bot, .chat-row) .md > * + * { margin-top: 8px; }
.md p, .md ul, .md ol, .md blockquote { max-width: 68ch; }
.md h3, .md h4, .md h5, .md h6 { line-height: 1.35; font-weight: 700; color: var(--ink); }
:is(.msg-bot, .chat-row) .md > * + :is(h3, h4, h5, h6) { margin-top: 14px; }
.md h3 { font-size: 15.5px; }
.md h4 { font-size: 14.5px; }
.md h5, .md h6 { font-size: 13.5px; }
.md ul, .md ol { padding-left: 20px; }
.md li + li { margin-top: 2px; }
.md li > ul, .md li > ol { margin-top: 2px; }
.md ul.contains-task-list { padding-left: 4px; list-style: none; }
.md .task-list-item input { margin-right: 6px; vertical-align: -2px; }
.md a { color: var(--accent); font-weight: 600; text-decoration: none; }
.md a:hover { text-decoration: underline; text-underline-offset: 3px; }
.md strong { font-weight: 700; color: var(--ink); }
.md del { color: var(--ink-3); }
.md blockquote { padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.md :not(pre) > code { padding: 0.5px 4px; border-radius: 4px; background: var(--sunken); font-family: var(--font-data); font-size: 11.5px; }
.md table.mini-table { display: block; width: max-content; max-width: 100%; min-width: 0; overflow-x: auto; }
.md table.mini-table td { white-space: normal; }
.md table.mini-table td:nth-child(2) { font-weight: 400; }
.md-code { max-width: 860px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); overflow: hidden; }
.md-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 11px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.md-code-lang { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.md-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; }
.md-code code { font-family: var(--font-data); font-size: 12px; line-height: 1.6; white-space: pre; }
/* The streaming caret closes the last line: the last paragraph, heading, quote or list item. */
.md.streaming > :is(p, h3, h4, h5, h6, blockquote):last-child::after, .md.streaming > :is(ul, ol):last-child > li:last-child::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 1.5px; background: var(--accent); animation: md-caret 1s steps(1) infinite; }
@keyframes md-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .md.streaming *::after { animation: none !important; opacity: 0.6; } }

/* Questions from Brix (M9), carded like the approval card: header chip, question, option rows, « Autre », stepper, summary. */
.q-card { max-width: 640px; margin-top: 13.5px; padding: 13.5px 15.5px; border: 1px solid var(--accent-line, var(--line-strong)); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.q-card.answered { border-color: var(--line); box-shadow: none; padding: 10px 13.5px; }
.q-card.interrupted .q-title .icon { color: var(--ink-3); }
.q-interrupted { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.q-interrupted .icon { flex: none; color: var(--ink-3); }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.q-title .icon { color: var(--accent); }
.q-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; }
.q-steps { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.q-dot { width: 8px; height: 8px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); cursor: pointer; }
.q-dot.done { border-color: var(--ok-mark); background: var(--ok-mark); }
.q-dot.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-steps .num { margin-left: 3px; font-variant-numeric: tabular-nums; }
:is(.msg-bot, .chat-row) .q-text { margin-top: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.q-opts { display: grid; gap: 6px; margin-top: 10px; }
.q-opt.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.q-opt.check:hover { border-color: var(--line-strong); background: var(--surface-2); }
.q-opt.picked { border-color: var(--accent); background: var(--accent-soft); }
.q-opt input { margin-top: 2px; }
/* A radio group with nothing picked yet is :indeterminate; keep the empty ring, not the kit's indeterminate bar. */
.q-opt input[type="radio"]:indeterminate { background: var(--surface); border-color: var(--line-strong); }
.q-opt input[type="radio"]:indeterminate::after { content: none; }
.q-opt-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.q-opt-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.q-opt-desc { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.q-free { width: 100%; margin-top: 6px; }
.q-card > .q-free { margin-top: 10px; }
.q-actions { display: flex; align-items: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.q-actions .spin { width: 14px; height: 14px; color: var(--accent); }
.q-missing { font-size: 12px; color: var(--wait); }
.q-summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 10px; align-items: center; margin: 8px 0 0; font-size: 13px; }
.q-summary dd { margin: 0; color: var(--ink-2); }
/* Shared asset page (Ops and Endpoint): agent state in the head, connector errors in the Sources panel. */
.asset-agent.off { color: var(--wait); }
.asset-agent.none { color: var(--ink-3); }
/* A machine whose agent was uninstalled (API f43879f): the record is kept read-only. Its row is greyed (muted text on a sunken
   ground, faded tile), its links muted, and a neutral badge gives the date: nothing failed, so never a status colour. In a row's
   role line the badge is plain text, so the row keeps its height. */
.dt tbody tr.row-uninstalled > td { color: var(--ink-3); background: color-mix(in oklab, var(--sunken) 60%, var(--surface)); }
.dt tbody tr.row-uninstalled .machine-cell > .tile { opacity: 0.55; filter: grayscale(1); }
.asset-chip.is-uninstalled > .hovercard-trigger > a { color: var(--ink-3); }
.asset-chip.is-uninstalled > .hovercard-trigger > a:hover { color: var(--accent); }
.asset-chip-state { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.pill.asset-uninstalled, .pill.asset-archived { color: var(--ink-2); background: var(--sunken); border-color: var(--line); font-weight: 500; }
.pill.asset-uninstalled > .icon, .pill.asset-archived > .icon { color: var(--ink-3); }
.role .pill.asset-uninstalled { height: auto; padding: 0; border: 0; background: none; font-size: 11.5px; color: var(--ink-3); }
.asset-retired-banner .asset-retired-actions { display: inline-flex; flex-wrap: wrap; gap: 7px; }
/* A machine whose agent has not connected yet (AgentPendingBanner): the checks under its sentence, one per line. */
.asset-pending-tips { display: grid; gap: 3px; margin-top: 6px; color: var(--ink-2); }
.asset-pending-tips code { font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
/* The agent's own update (AgentUpdateNote): muted when up to date, the accent while scheduled or under way, amber when blocked or
   rolled back, crit text on failure, never a brick (DESIGN.md, The Brick Rule). */
.agent-upd.quiet { color: var(--ink-3); }
.agent-upd.info { color: var(--accent); font-weight: 600; }
.agent-upd.wait { color: var(--wait); }
.agent-upd.crit { color: var(--crit); font-weight: 600; }
/* The agent update label opens its tooltip card on hover or focus (AgentUpdateNote); on an asset page it is also the button of the
   « Mise à jour de l'agent » panel, drawn as text with a dotted underline. */
.agent-upd-anchor { vertical-align: bottom; }
.agent-upd-anchor .hovercard-trigger { overflow: visible; }
.agent-upd-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agent-upd-btn.agent-upd { font-weight: inherit; }
.agent-upd-btn.agent-upd.info, .agent-upd-btn.agent-upd.crit { font-weight: 600; }
.agent-upd-btn:hover { text-decoration-style: solid; }
span.agent-upd[tabindex] { cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agent-upd-state { font-weight: 600; line-height: 1.45; }
.agent-upd-state.quiet { color: var(--ink-2); }
.agent-upd-state.info { color: var(--accent); }
.agent-upd-state.wait { color: var(--wait); }
.agent-upd-state.crit { color: var(--crit); }
.agent-upd-line { line-height: 1.45; }
/* The companion's next transport retry (AgentRetryLine): the countdown ticks in a fixed-width slot of tabular figures, so the line
   never moves while it counts down. */
.agent-upd-retry { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; color: var(--ink-2); line-height: 1.45; }
.agent-upd-retry .icon { flex: none; align-self: center; color: var(--ink-3); }
.agent-upd-count { display: inline-block; min-width: 9.5ch; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-sources .asset-src-upd { display: block; margin-top: 3px; line-height: 1.45; }
.agent-upd-dlg { display: grid; gap: 14px; margin-top: 12px; font-size: 13px; }
.agent-upd-summary { display: grid; gap: 4px; color: var(--ink-2); line-height: 1.5; }
.agent-upd-summary .agent-upd-state { font-size: 14px; }
.dialog .agent-upd-how { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 11px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.agent-upd-how .icon { flex: none; margin-top: 2px; color: var(--ink-3); }
.agent-upd-h { margin: 2px 0 -6px; font-size: 13px; font-weight: 700; }
.agent-upd-attempt { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.agent-upd-attempt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.agent-upd-attempt-head time { margin-left: auto; font-size: 12px; }
.dialog .agent-upd-why { margin-top: 0; font-size: 12.5px; color: var(--ink-3); }
.dialog .agent-upd-soon { margin-top: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.agent-upd-soon .pill { margin-right: 7px; vertical-align: 1px; }
.agent-upd-news { display: grid; gap: 6px; }
.agent-upd-news .agent-upd-h { margin: 0; }
.dialog .agent-upd-note { margin-top: 0; white-space: pre-line; }
.agent-upd-points { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.55; }
.agent-upd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-upd-skel { display: grid; gap: 8px; }
.agent-upd-skel .skel { display: block; height: 10px; }
.agent-upd-skel .skel.short { width: 60%; }
.asset-sources .asset-src-err { color: var(--wait); }
/* Asset head (operator choice of 2026-11-05, the demo's DC-01 head): the product's logo in the tile, warnings in line 2, "↗" after
   a link that leaves Breckly. */
.asset-head .tile .product-logo { border-radius: 5px; }
.asset-warn { color: var(--wait); }
/* Identity card: the machine's usage is not set, and remote control waits for it. */
.asset-usage-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; }
.asset-ext { color: var(--ink-3); font-weight: 400; }
/* A fact longer than the head is wide (a Windows product name on a phone) takes its own line and ends in an ellipsis. */
.asset-head .machine-meta > span { min-width: 0; max-width: 100%; }
.asset-head .machine-meta .product-badge { max-width: 100%; vertical-align: top; }
/* From 1280px the head keeps to two lines (operator's mockup): the name, chips and actions share line 1, and the facts run under
   them across the head instead of wrapping beside the actions. Narrower, the demo's wrapping head. Same markup either way. */
@media (min-width: 1280px) {
  .asset-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 13.5px; row-gap: 3.5px; align-items: center; }
  .asset-head > .icon-btn, .asset-head > .tile { grid-row: 1 / span 2; }
  .asset-head > .machine-id { display: contents; }
  .asset-head h1 { grid-column: 3; grid-row: 1; min-width: 0; }
  .asset-head .machine-meta { grid-column: 3 / -1; grid-row: 2; margin-top: 0; }
  .asset-head > .machine-actions { grid-column: 4; grid-row: 1; flex-wrap: nowrap; }
  .asset-head > p { grid-column: 1 / -1; }
}

/* Bell panel (PL-03, richer than app.js `bellMenu` on operator request): header, day groups, items with sentence, facts and actions. */
.notif-panel { width: min(400px, calc(100vw - 34px)); display: grid; gap: 0; margin: -4px; }
.notif-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 6px 8px; border-bottom: 1px solid var(--line); }
.notif-panel-head > strong { font-size: 13.5px; margin-right: auto; }
.notif-panel-tools { display: inline-flex; align-items: center; gap: 2px; }
.notif-panel-list { max-height: min(62vh, 560px); overflow-y: auto; padding: 2px 0; }
/* Keeps the panel the same height while it fills (skeleton rows, then items): it opens once, without growing. */
.notif-panel-list { min-height: min(260px, 40vh); scrollbar-gutter: stable; }
.notif-skeleton { padding: 12px 14px; gap: 18px; }
.notif-empty { margin: 0; padding: 14px 8.5px; font-size: 12.5px; }
.notif-day { position: sticky; top: 0; z-index: 1; padding: 8px 8.5px 4px; background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.notif-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 8.5px; border-radius: var(--r-sm); }
.notif-item:hover { background: var(--sunken); }
.notif-item .notif-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--ink-3); background: var(--sunken); }
.notif-item.tone-critical .notif-icon { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }
.notif-item.tone-warning .notif-icon { color: var(--wait); background: color-mix(in srgb, var(--wait) 14%, transparent); }
.notif-item.tone-online .notif-icon { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.notif-item.tone-info .notif-icon { color: var(--accent); background: var(--accent-soft); }
.notif-main { min-width: 0; }
.notif-title { display: flex; align-items: baseline; gap: 6px; }
.notif-title .unread { flex: none; align-self: center; }
.notif-title strong { font-size: 13px; font-weight: 600; min-width: 0; }
.notif-item:not(.is-unread) .notif-title strong { font-weight: 500; color: var(--ink-2); }
.notif-title time { margin-left: auto; flex: none; font-size: 11.5px; color: var(--ink-3); }
.notif-main p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.notif-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.notif-meta .tag b { font-weight: 600; margin-left: 4px; }
.notif-asset { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink); }
.notif-asset:hover { border-color: var(--line-strong); background: var(--surface); }
.notif-asset > :not(.muted) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; }
.notif-row-tools { display: inline-flex; gap: 0; opacity: .55; }
.notif-item:hover .notif-row-tools, .notif-item:focus-within .notif-row-tools { opacity: 1; }
.notif-panel-foot { display: flex; justify-content: flex-start; padding: 8px 8.5px 4px; border-top: 1px solid var(--line); font-size: 12.5px; }
.notif-panel-foot .link-text { display: inline-flex; align-items: center; gap: 5px; }
.notif-repeat { font-size: 12px; white-space: nowrap; }

/* Mon compte › Notifications (M12): a channel the API reports unavailable keeps its column, with the reason under its title;
   the row a notification's « Ne plus m'alerter » link points at is tinted; on a phone the three switch columns narrow. */
.notify-table thead th { vertical-align: bottom; padding-top: 7px; padding-bottom: 7px; height: auto; }
.notify-off { display: block; max-width: 96px; margin: 2px auto 0; white-space: normal; font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--ink-3); }
.notify-table tr.is-target > td { background: var(--accent-soft); }
.notify-paused { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.notify-skeleton { padding: 14px 17px; gap: 18px; }
/* datatable.css gives every table 980px and unwrapped cells below 861px (scrolling lists); this three-switch matrix fits instead. */
@media (max-width: 860px) {
  .notify-table { min-width: 0; }
  .notify-table td { white-space: normal; }
}
@media (max-width: 560px) {
  .notify-table th:not(:first-child), .notify-table td:not(:first-child) { width: 60px; padding-left: 4px; padding-right: 4px; }
  .notify-table th:first-child, .notify-table td:first-child { padding-left: 17px; }
  .notify-table thead th { white-space: normal; }
  .notify-off { max-width: 60px; }
}
/* Hosted rows on an asset page: the name carries the asset hover card, the chevron opens the asset. */
.rows .asset-row { cursor: default; }
:is(.msg-bot, .chat-row) .q-sent { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* The Brix conversation as a chat (M9, operator request): bubbles on both sides with their avatars, runs of the same author
   grouped under one name and time, cards attached under Brix's bubble. User bubble geometry from the reference (13.5/13.5/3.5/13.5,
   tailed bottom-right, 760px at most); Brix's bubble mirrors it, up to the 1120px assistant measure. */
.messages:has(.chat-row) { gap: 16px; grid-template-columns: minmax(0, 1fr); }
.chat-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; }
.chat-row.me { grid-template-columns: minmax(0, 1fr) 26px; }
.chat-row.me .chat-av { order: 2; }
.chat-row.cont { margin-top: -11px; }
.chat-av { display: grid; justify-items: center; padding-top: 18px; }
.chat-row.cont .chat-av { padding-top: 0; }
.chat-col { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.chat-row.me .chat-col { justify-items: end; }
.chat-who { display: flex; align-items: baseline; gap: 7px; font-size: 12px; }
.chat-who strong { font-weight: 700; color: var(--ink); }
.chat-who time { font-size: 11px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chat-row.me .chat-who { flex-direction: row-reverse; }
.chat-bubble { min-width: 0; max-width: 100%; padding: 9px 13.5px; font-size: 14px; line-height: 1.62; }
.chat-row.me .chat-bubble { max-width: min(760px, 78%); border: 1px solid var(--accent-line); border-radius: 13.5px 13.5px 3.5px 13.5px; background: var(--accent-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-row.brix .chat-bubble { max-width: min(1120px, 100%); border: 1px solid var(--line); border-radius: 13.5px 13.5px 13.5px 3.5px; background: var(--surface); box-shadow: var(--shadow-1); }
[data-theme="dark"] .chat-row.brix .chat-bubble { box-shadow: none; }
.chat-row.brix .chat-bubble:empty { display: none; }
.chat-row.brix .chat-bubble.working { padding: 7px 12px; }
.chat-bubble > :first-child { margin-top: 0; }
.chat-row .chat-bubble p { font-size: 14px; line-height: 1.62; max-width: 68ch; }
.chat-row .chat-col > .q-card, .chat-row .chat-col > .action-card, .chat-row .chat-col > .msg-sources, .chat-row .chat-col > .mini-wrap,
.chat-row .chat-col > .choices, .chat-row .chat-col > ul.rows { width: min(640px, 100%); margin-top: 4px; }
.chat-row .chat-col > .mini-wrap { width: min(860px, 100%); }
.chat-row .chat-col > .msg-sources { margin-top: 6px; }
.chat-status { font-size: 11.5px; color: var(--ink-3); }
.chat-status.wait { color: var(--wait); }
.chat-status.failed { color: var(--crit); }
.chat-me { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 9.5px; font-weight: 800; }
.chat-brix { display: inline-grid; }
.chat-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.chat-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .chat-dots i { animation: none; opacity: 0.6; } }
.cmp-stop { gap: 5px; }
@media (max-width: 600px) {
  .chat-row { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; }
  .chat-row.me { grid-template-columns: minmax(0, 1fr) 22px; }
  .chat-row.me .chat-bubble { max-width: 88%; }
  .chat-bubble { padding: 8px 11px; }
}
.chat-row.me .chat-status { max-width: min(760px, 78%); text-align: right; }
/* Asset head (Ops and Endpoint): the identity keeps room for its name and facts; when the actions do not fit beside it, they go
   to the next line instead of squeezing it into a narrow column. */
.machine-head > .machine-id { flex: 1 1 240px; min-width: min(240px, 100%); }
.machine-head > .machine-actions { flex: 0 1 auto; }
/* An unavailable head action explains itself in a tooltip that opens below, clear of the sticky top bar, aligned on its right edge. */
.machine-actions .tip { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; transform: none; }
.machine-actions .tip::after { top: auto; bottom: 100%; left: auto; right: 16px; margin-left: 0; border-top-color: transparent; border-bottom-color: var(--ink); }
@media (max-width: 640px) { .machine-actions .tip { white-space: normal; width: max-content; max-width: min(240px, calc(100vw - 34px)); } }
/* Sources rows: the text has the whole line; the state and Configure sit under it. */
.asset-sources li { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
.asset-sources li > .tile { grid-row: 1 / 3; align-self: start; }
.asset-sources li > span:nth-child(2) { grid-column: 2 / 4; }
.asset-sources li > .pill { grid-column: 2; grid-row: 2; justify-self: start; }
.asset-sources li > .btn { grid-column: 3; grid-row: 2; justify-self: end; }

/* A conversation thread while its messages load (ConversationsPage): a question on the right and the lines of an answer. */
.thread-skel { display: grid; gap: 18px; padding: 6px 0 12px; }
.thread-skel > .skel.me { justify-self: end; width: min(360px, 62%); height: 38px; border-radius: 16px; }
.thread-skel > .brix { display: grid; gap: 9px; width: min(720px, 100%); }

/* Brix runs commands (M9 step 2): a command row of the turn unfolds to the exact command, its target as an asset chip, the exit
   code and duration, then its output in the Markdown code block's frame with the kit's copy button. */
.cmd-code { padding: 0.5px 5px; border-radius: 4px; background: var(--sunken); font-family: var(--font-data); font-size: 11.5px; color: var(--ink); overflow-wrap: anywhere; }
.cmd-src { margin-top: 2px; max-width: 860px; }
.cmd-src pre { max-height: 240px; overflow: hidden auto; }
/* The exact command wraps (it is what is consented to; no sideways scroll); only an output may scroll. */
.cmd-block.cmd-src code { white-space: pre-wrap; overflow-wrap: anywhere; }
/* What the model received from a tool, verbatim: wrapped (no reformatting, only the display wraps), scrolling past 320px. */
.cmd-block.tl-got { max-width: 860px; }
.cmd-block.tl-got pre { max-height: 320px; overflow: hidden auto; }
.cmd-block.tl-got code { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-body > .cmd-cut { margin-top: -2px; }
.cmd-target { font-weight: 600; color: var(--ink); }
.cmd-target a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cmd-target a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmd-target.data { font-weight: 500; }
.cmd-empty { font-size: 12px; color: var(--ink-3); }
.cmd-out { min-width: 0; max-width: 860px; }
.cmd-out > summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cmd-out > summary::-webkit-details-marker { display: none; }
.cmd-out > summary > .icon { flex: none; color: var(--ink-3); transition: transform 0.2s var(--ease-out); }
.cmd-out[open] > summary > .icon { transform: rotate(90deg); }
.cmd-out-n { font-weight: 500; color: var(--ink-3); }
.cmd-out > .cmd-block { margin-top: 6px; }
.cmd-block pre { max-height: 360px; overflow: auto; }
.cmd-block code { font-family: var(--font-data); font-size: 12px; line-height: 1.6; white-space: pre; color: var(--ink); }
.cmd-more { display: block; width: 100%; padding: 6px 12px; border: 0; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--accent); font: 600 12px/1.4 var(--font-ui, inherit); text-align: left; cursor: pointer; }
.cmd-more:hover { background: var(--surface); text-decoration: underline; text-underline-offset: 3px; }
.cmd-cut { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; font-size: 11.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .cmd-out > summary > .icon { transition: none; } }

/* An action Brix proposes (M9 step 2), on the reference's approval card: who proposes it and where, the exact command with its copy
   button, effect, risks and verification, then the decision and the live execution as a stepper. Waiting reads in amber text, a
   failure in crit text with a crit-tinted border, never a brick (DESIGN.md, The Brick Rule). */
.action-card.brix-action { max-width: 720px; min-width: 0; }
.action-card.brix-action h3 { min-width: 0; overflow-wrap: anywhere; }
.action-card.failed { border-color: color-mix(in oklab, var(--crit) 40%, var(--surface)); }
.action-card.closed { box-shadow: none; }
.act-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.act-who strong { font-weight: 600; color: var(--ink); }
.act-time { color: var(--ink-3); }
.act-code { margin-top: 10px; }
.act-code pre { max-height: 240px; overflow: hidden auto; }
.act-code code { font-family: var(--font-data); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
/* A plan's steps before approval (API e3bd051): each with its kind, risk, target and exact command. */
.act-steps { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.act-steps > li { min-width: 0; }
.act-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.act-step-n { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.act-step-kind { font-weight: 600; color: var(--ink); }
.act-step-on { color: var(--ink-3); }
.act-steps .act-code { margin-top: 5px; }
/* An SSH command (M14-07): « SSH · connector → host:port en tant que compte » under its step head, and the one rule line. */
.act-ssh-to { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.act-ssh-to > .icon, .act-ssh-to > svg { flex: none; align-self: center; color: var(--ink-3); }
.act-ssh-to > span { min-width: 0; overflow-wrap: anywhere; }
.act-ssh-to a { font-weight: 600; }
.act-ssh-to strong { font-weight: 600; color: var(--ink); }
.act-ssh-to .num { font-family: var(--font-data); font-size: 12px; }
.act-ssh-rule { display: flex; align-items: flex-start; gap: 5px; }
.act-ssh-rule > .icon { flex: none; margin-top: 2px; }
/* A native file write (M14-17): the exact path with Création or Modification, then the server's unified diff, plain text, its added
   and removed lines tinted (the status colours), scrolling inside its block; the verification step is one line. */
.act-file-path { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 4px 0 0; font-size: 12.5px; }
.act-file-path .tag { flex: none; height: 19px; padding: 0 6px; font-size: 11px; }
.act-file-path code { min-width: 0; font-family: var(--font-data); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.act-file-new { color: var(--ok); }
.act-file-check { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.act-diff pre { max-height: 320px; overflow: auto; padding-left: 0; padding-right: 0; }
.act-diff code { display: block; width: max-content; min-width: 100%; white-space: pre; overflow-wrap: normal; }
.act-diff .dl { display: block; padding: 0 12px; }
.act-diff .dl.add { background: color-mix(in oklab, var(--ok-mark) 13%, transparent); color: var(--ok); }
.act-diff .dl.del { background: color-mix(in oklab, var(--crit) 11%, transparent); color: var(--crit); }
.act-diff .dl.hunk { color: var(--accent); }
.act-diff .dl.head { color: var(--ink-3); }
/* A knowledge save (M14-21): scope and kind tags, the title, expected → saved version, then the exact text in a bounded block. */
.act-kn-title { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.act-kn-version { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.act-kn-version + .act-code pre { max-height: 320px; overflow: auto; }
/* A connector configuration (M14-27): operation, type with its logo, name and frozen revision; its values as a definition list (an
   update's before → after diff), Pass reference chips, scope chips, and the SSH host key the server observed, in monospace. */
.act-conn-head { flex-wrap: wrap; }
.act-conn-kind { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.act-conn-kind > .icon { color: var(--ink-3); }
.act-conn-head a.act-kn-title { color: var(--accent); }
.act-file-path .tag.act-conn-off { color: var(--crit); }
.act-file-path .tag.act-conn-rev { color: var(--ink-2); font-weight: 400; }
.act-conn-vals { margin-top: 6px; }
.act-conn-vals dd.data { font-family: var(--font-data); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.act-conn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.act-conn-chips .tag { height: 19px; padding: 0 6px; font-size: 11px; }
.act-conn-chips .tag.data { font-family: var(--font-data); }
.act-conn-chips .tag.act-conn-secret { display: inline-flex; align-items: center; gap: 0 4px; max-width: 100%; height: auto; min-height: 19px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.act-conn-secret > * { flex: none; }
.act-conn-secret > .icon { flex: none; color: var(--ink-3); }
.act-conn-secret .data { font-family: var(--font-data); }
.act-conn-secret > .act-conn-secret-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.act-conn-new { color: var(--accent); }
.act-conn-diff { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.act-conn-was { color: var(--crit); text-decoration: line-through; overflow-wrap: anywhere; }
.act-conn-now { color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.act-conn-arrow { color: var(--ink-3); }
.act-conn-add { display: inline-flex; align-items: baseline; gap: 3px; color: var(--ok); }
.act-conn-del { display: inline-flex; align-items: baseline; gap: 3px; color: var(--crit); }
.act-conn-del .cmd-target, .act-conn-del .data { text-decoration: line-through; }
.act-conn-key { display: grid; gap: 3px; margin-top: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.act-conn-key .act-ssh-to { margin: 0; }
.act-conn-key .data { font-family: var(--font-data); font-size: 12px; }
.act-conn-fp { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; }
.act-conn-fp code { min-width: 0; font-family: var(--font-data); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.act-conn-who { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11.5px; color: var(--wait); }
.act-conn-who > .icon { flex: none; }
.act-conn-check { display: flex; align-items: flex-start; gap: 5px; }
.act-conn-check > .icon { flex: none; margin-top: 3px; color: var(--ink-3); }
/* Connaissances (M14-21): the « Mémoire personnelle : bientôt » note above the list. */
.kn-note { margin-bottom: 14px; }
/* A background command (M14-18): « En arrière-plan · jusqu'à HH:MM » in its step head, the target of an input or a stop, and the live
   output's state line (wait is amber text only, The Brick Rule). */
.act-step-head .tag.act-bg { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 6px; font-size: 11px; color: var(--ink-2); }
.act-step-head .tag.act-bg > .icon { color: var(--ink-3); }
.act-ssh-to.act-control-to code { font-family: var(--font-data); font-size: 12px; font-weight: 400; color: var(--ink); }
.bg-live { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.bg-live.running, .bg-live.queued { color: var(--wait); }
.bg-live.failed { color: var(--crit); }
.bg-live > .spin { width: 11px; height: 11px; }
.bg-live-note { display: flex; align-items: flex-start; gap: 5px; margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.bg-live-note > .icon { flex: none; margin-top: 2px; }
.act-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 13.5px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; }
.act-facts dt { font-weight: 600; color: var(--ink-3); }
.act-facts dd { margin: 0; color: var(--ink-2); }
.act-ro { margin-top: 10px; font-size: 12.5px; }
.act-refuse { display: grid; gap: 6px; margin-top: 12px; }
.act-refuse .buttons { margin-top: 2px; }
.act-refuse .fcount { justify-self: end; margin-top: -2px; font-size: 11px; color: var(--ink-3); }
.action-card .buttons .btn .spin { width: 13px; height: 13px; }
.act-note { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.act-run { margin-top: 13.5px; }
.act-run .n .spin { width: 11px; height: 11px; color: var(--accent); }
.act-run .fail { color: var(--crit); }
.act-run .fail .n { border-color: var(--crit); color: var(--crit); background: color-mix(in oklab, var(--crit) 8%, var(--surface)); }
.act-run .unknown { color: var(--wait); }
.act-run .unknown .n { border-color: var(--wait-mark, var(--wait)); color: var(--wait); background: color-mix(in oklab, var(--wait-mark, var(--wait)) 9%, var(--surface)); }
.act-live { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.action-card.failed .act-live { color: var(--crit); }
.action-card.brix-action .cmd-out { margin-top: 8px; }
.act-outcome { margin-top: 8px; }
.act-outcome.proposed { color: var(--wait); }
.act-decision { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.act-decision .icon { flex: none; margin-top: 2px; color: var(--ok); }
.act-decision.refused .icon { color: var(--ink-3); }
.act-decision.auto { color: var(--ink-2); }
.act-until { display: flex; align-items: center; gap: 5px; }
.act-released { display: grid; gap: 0; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.act-released-h { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.act-released > .tl-tool { width: 100%; }
@media (max-width: 600px) {
  .act-facts { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .act-facts dd + dt { margin-top: 6px; }
  .act-run li + li::before { width: 12px; }
}

/* When an approved action runs (plan M14-11): a compact radio set above Approve; the maintenance slot muted, « bientôt » as a pill
   until the API takes the timing. */
.act-when { margin-top: 12px; gap: 7px; }
.act-when legend { margin-bottom: 7px; }
.act-when .check { font-size: 13px; }
.act-when-slot { color: var(--ink-3); }
.act-soon { margin-left: 6px; font-size: 11px; padding: 0 7px; vertical-align: 1px; }
.act-when-at { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-top: 8px; }
.act-when + .buttons, .act-when-at + .buttons { margin-top: 12px; }
.act-when-err { color: var(--crit); margin-top: 6px; }
.act-when-err + .buttons { margin-top: 12px; }
/* Approved for later: when it runs (frozen slot, this device's zone), what is checked again at launch, and the approver's
   « Reporter » / « Annuler » until the first dispatch. */
.act-planned { margin-top: 12px; }
.act-planned-at { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.act-planned-at .icon { color: var(--ink-3); flex: none; }
.act-planned .act-note { margin-top: 6px; }
.act-planned .buttons { margin-top: 10px; }
.act-planned .act-when { margin-top: 10px; }
/* Planned runs: the Tâches tab's section and the organization's list. */
.brix-runs { margin-top: 12px; }
.brix-runs-h { margin: 24px 0 4px; font-size: 15px; }
.brix-runs-intro { margin: 0 0 10px; }
.brix-runs-act { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Conversations: the panel's « Tout voir » beside « Nouvelle », who is on the conversation now (PresenceStack), the history table. */
.presence-stack { display: inline-flex; align-items: center; gap: 7px; flex: none; min-width: 0; }
.presence-stack .presence-label { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.presence-stack .av { position: relative; overflow: hidden; }
.presence-stack .av.typing { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.presence-stack.small .av-group .av + .av { margin-left: -6px; }
.thread-head > .presence-stack { margin-left: auto; }
.thread-head > .presence-stack + .brix-autonomy { margin-left: 0; }
@media (max-width: 960px) { .thread-head > .presence-stack .presence-label { display: none; } }
/* A narrow head keeps room for the title: the stack drops its caption (still its accessible name and tooltip). */
@container (max-width: 760px) { .thread-head > .presence-stack .presence-label { display: none; } }
.convo-history-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.convo-history-title > .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-history-title > .presence-stack { margin-left: auto; }
.convo-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.convo-author > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-history-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.convo-readonly { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); color: var(--ink-2); font-size: 13px; }
.convo-readonly .icon { color: var(--ink-3); flex: none; }
.convo-history-title > .icon { color: var(--ink-3); flex: none; }
.convo-locked td { color: var(--ink-3); }

/* ---------- Brix's work list and sub-investigations (plan M14-19) ---------- */
/* The work list: a hairline checklist card, no actions, distinct from the plan card (accent frame) and the wake-up note (dashed). */
.brix-work { display: grid; gap: 6px; width: min(640px, 100%); padding: 8px 11px 9px 9px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.brix-work.live { position: sticky; top: 0; z-index: 2; border-color: var(--line-strong); }
.brix-work-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brix-work-head strong { font-weight: 700; color: var(--ink); white-space: nowrap; }
.brix-work .t-ic { background: var(--sunken); color: var(--ink-2); }
.brix-work-count { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.brix-work-bar { height: 3px; margin-left: 31px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.brix-work-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.3s ease; }
.brix-work.done .brix-work-bar > span { background: var(--ok-mark); }
.brix-work-note { margin: 0 0 0 31px; font-size: 11.5px; color: var(--ink-3); }
.brix-work-steps { margin: 0 0 0 31px; max-height: min(260px, 38vh); overflow: hidden auto; }
.brix-work-steps li { align-items: flex-start; line-height: 1.4; }
.brix-work-steps li > .icon, .brix-work-steps li > .spin { margin-top: 2px; }
.brix-work-steps .ok > span:not(.sr-only) { color: var(--ink-3); }
.brix-work-steps .run > span:not(.sr-only) { color: var(--ink); font-weight: 600; }
.brix-work-steps .wait .icon { color: var(--ink-4, var(--ink-3)); }
.brix-work-ws { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.brix-work-ws p { margin: 0; }
.brix-work-ws .ws-agent-head > .icon { flex: none; color: var(--ink-3); }
.brix-work-ws .ws-rule { margin-top: 6px; }

/* A sub-investigation: a collapsible card, read only; its report is marked unverified. */
.brix-child { width: min(640px, 100%); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.brix-child.failed { border-color: color-mix(in oklab, var(--crit-mark) 35%, var(--surface)); }
.brix-child-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px 7px 9px; cursor: pointer; list-style: none; border-radius: inherit; }
.brix-child-head::-webkit-details-marker { display: none; }
.brix-child-head:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
.brix-child .t-ic { background: var(--accent-soft); color: var(--accent); }
.brix-child-title { display: grid; min-width: 0; flex: 1; }
.brix-child-title strong { font-weight: 700; color: var(--ink); }
.brix-child-mission { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.brix-child[open] .brix-child-mission { display: none; }
.brix-child-head .pill { flex: none; gap: 5px; }
.brix-child-head .pill .spin { width: 10px; height: 10px; border-width: 1.5px; }
.brix-child-chev { flex: none; color: var(--ink-3); transition: transform 0.15s ease; }
.brix-child[open] .brix-child-chev { transform: rotate(180deg); }
.brix-child-body { display: grid; gap: 4px; padding: 0 11px 10px 40px; }
.brix-child-body > p { margin: 0; }
.brix-child-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.45; }
.brix-child-text.data { max-height: 200px; overflow: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-family: var(--font-data); font-size: 11.5px; }
.brix-child-ctx { margin-top: 2px; }
.brix-child-ctx > summary, .brix-children details > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.brix-child-ctx > :not(summary) { margin: 4px 0 0; }
.brix-child-meta { font-size: 12px; }
.brix-child-wait { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.brix-child-wait .spin { width: 12px; height: 12px; color: var(--accent); }
.brix-child-err { display: flex; align-items: center; gap: 6px; color: var(--crit); }
.brix-child-report-head { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 11.5px; font-weight: 700; color: var(--wait); text-transform: none; }
.brix-child-report { padding: 2px 10px; border: 1px dashed color-mix(in oklab, var(--wait-mark) 45%, var(--line)); border-radius: 7px; background: var(--surface); color: var(--ink); max-height: 420px; overflow: auto; }
.brix-children-mission { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.brix-children .pill .spin { width: 10px; height: 10px; border-width: 1.5px; margin-right: 4px; }
.brix-children .brix-child-report { margin-top: 4px; max-height: 320px; }
.brix-children .brix-child-text.data { margin-top: 4px; }
.brix-sub-group { margin: 0 0 6px; font-weight: 600; }
.ws-rule + .brix-sub-group { margin-top: 16px; }
@media (max-width: 600px) {
  .brix-child-body { padding-left: 11px; }
}
/* Pass › Secrets de service: the reference with its copy button; the secret a link asked for (?ref=) is marked. */
.ps-ref { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ps-ref .data { font-family: var(--font-data); font-size: 12px; overflow-wrap: anywhere; }
.ps-focus strong { color: var(--accent); }
a.tag.act-conn-secret { text-decoration: none; }
a.tag.act-conn-secret:hover { border-color: var(--accent); }
/* Platform › Recherche web. */
.pf-ws { display: grid; gap: 8px; }
.pf-ws .buttons { display: flex; gap: 6px; }
.pf-ws-facts { margin-top: 2px; }

/* Conversations list (ConversationRail, operator 2026-11-11: Jarvis's dock on Breckly's tokens): what Brix is busy with first,
   then pins, then by day; one line per row with Brix's state mark and the time on the right; the row menu replaces the time
   under the pointer. */
.convo-rail { display: flex; flex-direction: column; min-height: 0; }
.convo-rail .cr-head { display: flex; align-items: center; gap: 6px; padding: 12px 10px 8px 17px; }
.convo-rail .cr-head h2 { margin-right: auto; font-size: 14.5px; font-weight: 700; }
.convo-rail .cr-head .icon-btn { width: 28px; height: 28px; color: var(--ink-3); }
.convo-rail .cr-head .icon-btn:hover { color: var(--ink); }
.convo-rail .cr-search { position: relative; display: block; margin: 0 10px 8px; }
.convo-rail .cr-search input { width: 100%; height: 30px; padding-left: 28px; font-size: 12.5px; }
.convo-rail .cr-search .icon { position: absolute; left: 9px; top: 8px; color: var(--ink-3); pointer-events: none; }
.convo-rail .cr-scroll { flex: 1 1 auto; min-height: 0; position: relative; overflow: auto; overscroll-behavior: contain; padding: 0 6px 8px; }
.convo-rail .cr-empty { margin: 0; padding: 10px 11px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.convo-rail .cr-empty .link { display: block; margin-top: 4px; font-weight: 600; color: var(--accent); }
.cr-sec + .cr-sec { margin-top: 8px; }
.cr-sec-h { display: flex; align-items: center; justify-content: space-between; height: 22px; margin: 0; padding: 0 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cr-sec-h .n { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cr-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cr-row { position: relative; display: flex; align-items: center; min-width: 0; border-radius: var(--r-sm); transition: background 0.15s; }
.cr-row:hover, .cr-row:focus-within { background: var(--surface-2); }
.cr-row.current { background: var(--accent-soft); }
.cr-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 7px; border-radius: inherit; color: inherit; text-decoration: none; }
.cr-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cr-mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--sunken); color: var(--ink-3); }
.cr-mark.live { border-color: var(--accent-line); background: var(--accent-soft); }
.cr-mark.wait { border-color: transparent; background: color-mix(in srgb, var(--wait) 15%, transparent); }
.cr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cr-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.35; }
.cr-row.current .cr-t { font-weight: 650; }
.cr-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
.cr-m.live { color: var(--accent); }
.cr-m.wait { color: var(--wait); }
.cr-when { flex: none; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cr-row .kebab { position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; background: var(--surface-2); }
.cr-row.current .kebab { background: var(--accent-soft); }
.cr-row:hover .kebab, .cr-row:focus-within .kebab, .cr-row .kebab[aria-expanded="true"] { opacity: 1; }
.cr-row:hover .cr-when, .cr-row:focus-within .cr-when { visibility: hidden; }
@media (hover: none) {
  .cr-row .kebab { position: static; transform: none; opacity: 1; background: transparent; }
  .cr-row:focus-within .cr-when { visibility: visible; }
}
.convo-rail .cr-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.convo-rail .cr-all .n { padding: 0 6px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.convo-rail .cr-all:hover { background: var(--surface-2); border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }

/* ---------- Connector data (ConnectorDataPage): reads beside a side pane, a row's facts beside the table ---------- */
.ufd-pick { flex: 1 1 auto; min-width: 0; }
.ufd-pick > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ufd-head { display: grid; gap: 8px; min-width: 0; }
.ufd-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.ufd-title h2 { margin: 0; font-size: 14.5px; font-weight: 700; }
.ufd-op { font-size: 11.5px; }
.ufd-note { margin: 0; max-width: 88ch; font-size: 12.5px; line-height: 1.45; }
.ufd-sel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 13.5px; }
.ufd-sel > .fgroup { flex: 0 1 280px; min-width: 180px; margin: 0; }
.ufd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ufd-ro { margin: 0; }
.ufd-rule { display: inline-flex; align-items: center; gap: 5px; }
.ufd-detail-title .tag { flex: none; white-space: nowrap; }
.ufd-split { display: flex; align-items: flex-start; gap: 17px; min-width: 0; }
.ufd-split > .dt, .ufd-split > .ufd-wait { flex: 1.6 1 0; min-width: 0; }
.ufd-wait { padding: 17px; }
.ufd-name { font-weight: 600; }
.ufd-detail {
  flex: 1 1 0; display: flex; flex-direction: column; min-width: 300px; max-width: 480px; overflow: hidden;
  position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(var(--view-h, 100dvh) - var(--top-h) - 32px);
}
.ufd-detail-head { flex: none; display: flex; align-items: flex-start; gap: 8px; padding: 12px 10px 10px 17px; border-bottom: 1px solid var(--line); }
.ufd-detail-title { flex: 1 1 auto; display: grid; gap: 3px; min-width: 0; }
.ufd-detail-title > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ufd-detail-title > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ufd-detail-title .data { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ufd-detail-body { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 10px; padding: 10px 17px 17px; }
.ufd-acts { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ufd-act-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ufd-port .field { width: auto; min-width: 190px; }
.ufd-wait-line { display: flex; align-items: center; gap: 6px; margin: 0; }
.ufd-kv { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.ufd-kv th { width: 44%; padding: 4px 10px 4px 0; text-align: left; vertical-align: top; font-weight: 500; color: var(--ink-3); overflow-wrap: anywhere; }
.ufd-kv td { padding: 4px 0; vertical-align: top; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.ufd-kv tr + tr > th, .ufd-kv tr + tr > td { border-top: 1px solid var(--line); }
.ufd-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13.5px; }
.ufd-confirm pre { max-height: 220px; }
@media (min-width: 861px) and (min-height: 560px) {
  .frame .side-main > .ufd-head { flex: none; }
  .frame .side-main > .ufd-split { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .frame .ufd-split > .dt { display: flex; flex-direction: column; min-height: 0; }
  .frame .ufd-split > .ufd-wait { align-self: start; }
  .frame .ufd-detail { position: static; max-height: none; }
}
/* Below 1100px the facts open as a bottom sheet over the table, under the top bar. */
@media (max-width: 1100px) {
  .ufd .ufd-split { flex-direction: column; align-items: stretch; }
  .ufd .ufd-split > .ufd-detail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 31; min-width: 0; max-width: none; max-height: 78dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-pop);
  }
}
@media (max-width: 560px) { .ufd-row2 { grid-template-columns: minmax(0, 1fr); } }
