/* Low-fidelity wireframes S01–S18. Every selector is .wfx- prefixed; colours come only from styles.css tokens. */

/* ---------- Module shell (header, variant switcher, annotations) ---------- */
.wfx-wf { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 100%; }
.wfx-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wfx-idline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wfx-idbadge { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; }
.wfx-name { font-size: 19px; }
.wfx-purpose { color: var(--ink-2); max-width: 75ch; }
.wfx-layoutline, .wfx-wfs { font-size: 12.5px; color: var(--ink-2); max-width: 90ch; overflow-wrap: anywhere; }
.wfx-layoutline b, .wfx-wfs b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.wfx-wfs a { margin-right: 6px; font-weight: 600; }
.wfx-dot { color: var(--muted); margin: 0 8px 0 2px; }
.wfx-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.wfx-vbtn { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.wfx-vbtn:hover { border-color: var(--ink-2); color: var(--ink); }
.wfx-vbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.wfx-scroll { overflow-x: auto; max-width: 100%; padding: 4px 2px 10px; border-radius: var(--r); }
.wfx-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.wfx-notes li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; min-width: 0; }
.wfx-notes li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.wfx-err { padding: 16px; border: 1px dashed var(--crit); color: var(--crit); background: var(--crit-bg); border-radius: var(--r); }

/* Numbered marker (frame + annotations) */
.wfx-m { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--panel); font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1; margin-right: 4px; vertical-align: 1px; }
.wfx-notes .wfx-m { margin-top: 1px; }

/* ---------- Frame ---------- */
.wfx-frame { width: 1100px; flex: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-size: 11.5px; line-height: 1.4; color: var(--ink); box-shadow: var(--shadow); }
.wfx-frame b { font-weight: 700; }
.wfx-frame .b { font-size: 10.5px; padding: 0 6px; white-space: normal; max-width: 100%; }
.wfx-frame .b .g { font-size: 10px; }
.wfx-frame a { font-size: 10.5px; }
.wfx-mobile { width: 380px; display: flex; flex-direction: column; min-height: 640px; border-radius: 22px; border-width: 6px; border-color: var(--line-2); }
.wfx-top { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
.wfx-brand { font-family: var(--display); font-size: 13.5px; }
.wfx-psel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 8px; background: var(--panel); font-weight: 600; white-space: nowrap; }
.wfx-search { display: inline-flex; align-items: center; gap: 6px; min-width: 220px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 8px; background: var(--panel); color: var(--muted); }
.wfx-search.wfx-sm { min-width: 0; flex: 1; }
.wfx-user { font-weight: 600; color: var(--ink-2); }
.wfx-sp { flex: 1; }
.wfx-body { display: flex; min-height: 470px; }
.wfx-rail { flex: none; width: 104px; border-right: 1px solid var(--line); background: var(--sunk); padding: 8px 0; display: flex; flex-direction: column; }
.wfx-rail span { padding: 3px 10px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.wfx-rail span.wfx-on { color: var(--ink); font-weight: 700; background: var(--panel); border-left: 3px solid var(--ink); padding-left: 7px; }
.wfx-rail em { font-style: normal; font-size: 9.5px; font-family: var(--mono); background: var(--line-2); border-radius: 999px; padding: 0 5px; color: var(--ink); }
.wfx-rail-c { width: 40px; }
.wfx-rail-c span { justify-content: center; padding: 3px 0; }
.wfx-rail-c span.wfx-on { padding-left: 0; }
.wfx-rail-c i { font-style: normal; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; }
.wfx-main { flex: 1; min-width: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.wfx-pad { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.wfx-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wfx-ph > span:last-child, .wfx-ph > :not(div) { flex-shrink: 0; }
.wfx-pt { font-family: var(--display); font-size: 15px; }
.wfx-ps { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; color: var(--ink-2); }

/* Mobile frame */
.wfx-mtop { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.wfx-mh { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.wfx-mb { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.wfx-mf { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--sunk); flex-wrap: wrap; }
.wfx-mf .wfx-act, .wfx-mf .wfx-btn { flex: 1; justify-content: center; }
.wfx-count { font-family: var(--mono); font-weight: 700; background: var(--ink); color: var(--panel); border-radius: 999px; padding: 0 6px; font-size: 10.5px; }
.wfx-c { text-align: center; }

/* ---------- Primitives ---------- */
.wfx-box { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); min-width: 0; display: flex; flex-direction: column; }
.wfx-bh { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-bottom: 1px solid var(--line); background: var(--sunk); border-radius: 7px 7px 0 0; }
.wfx-bt { font-weight: 700; font-size: 11px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wfx-bb { padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wfx-box .wfx-box { background: var(--panel); }
.wfx-primary { border-color: var(--line-2); }
.wfx-grid { display: grid; gap: 9px; align-items: start; min-width: 0; }
.wfx-grid > * { min-width: 0; }
.wfx-fill { flex: 1; align-items: stretch; }
.wfx-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wfx-row { display: grid; gap: 8px; align-items: center; padding: 5px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.wfx-row > span { min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.wfx-row:last-child { border-bottom: 0; }
.wfx-th { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding-top: 2px; }
.wfx-selrow { background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }
.wfx-total { border-top: 1px solid var(--line-2); }
.wfx-more { color: var(--muted); padding: 6px 2px 0; font-size: 11px; }
.wfx-bar { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.wfx-bars { display: flex; flex-direction: column; gap: 4px; padding: 3px 0; width: 100%; }
.wfx-muted { color: var(--muted); }
.wfx-sm-t { font-size: 10.5px; }
.wfx-strong { font-weight: 600; }
.wfx-hr { height: 1px; background: var(--line); margin: 3px 0; }
.wfx-vr { width: 1px; align-self: stretch; background: var(--line-2); }
.wfx-r1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.wfx-r2 { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; min-width: 0; }

/* Actions: primary = dashed outline (low-fi), secondary = plain outline, disabled shows reason */
.wfx-btns { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.wfx-act { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed var(--ink); color: var(--ink); border-radius: 5px; padding: 1px 9px; font-weight: 700; white-space: nowrap; }
.wfx-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel); border-radius: 5px; padding: 1px 8px; font-weight: 600; white-space: nowrap; }
.wfx-btn.wfx-sm { padding: 0 6px; font-size: 10.5px; }
.wfx-dis { opacity: .6; border-style: dotted; text-decoration: line-through; text-decoration-color: var(--muted); }
.wfx-why { font-size: 10.5px; color: var(--warn); font-weight: 600; }
.wfx-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; white-space: nowrap; }
.wfx-seg span { padding: 1px 8px; color: var(--muted); border-right: 1px solid var(--line-2); }
.wfx-seg span:last-child { border-right: 0; }
.wfx-seg .wfx-on { background: var(--sunk); color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.wfx-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.wfx-tab { padding: 4px 10px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--panel); }
.wfx-tab em, .wfx-cnav em, .wfx-colh em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 3px; }
.wfx-tab.wfx-on { color: var(--ink); border-bottom-color: var(--ink); }
.wfx-chk { color: var(--muted); white-space: nowrap; }
.wfx-chk.wfx-on { color: var(--ink); }

/* Identity / source / property */
.wfx-src { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; font-size: 10.5px; color: var(--ink-2); background: var(--sunk); max-width: 100%; overflow-wrap: anywhere; }
.wfx-prop { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.wfx-id-s { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); background: var(--sunk); border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.wfx-tag { display: inline-flex; border: 1px dashed var(--line-2); border-radius: 4px; padding: 0 5px; font-size: 10.5px; color: var(--ink-2); margin: 1px 3px 1px 0; }

/* Autonomy indicator */
.wfx-auto { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; font-size: 9.5px; white-space: nowrap; }
.wfx-auto span { padding: 0 5px; color: var(--muted); border-right: 1px solid var(--line); }
.wfx-auto span:last-child { border-right: 0; }
.wfx-auto .wfx-auto-l { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--sunk); }
.wfx-auto .wfx-past { color: var(--ink-2); }
.wfx-auto .wfx-on { background: var(--ink); color: var(--panel); font-weight: 700; }

/* Steps (Draft → Provider accepted → Delivered etc.) */
.wfx-steps { list-style: none; margin: 2px 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.wfx-steps li { flex: 1; min-width: 90px; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.wfx-steps li.wfx-done { border-top-color: var(--ink-2); color: var(--ink-2); }
.wfx-steps li.wfx-cur { border-top-color: var(--ink); color: var(--ink); font-weight: 700; border-style: dashed solid solid; }

/* Evidence lines */
.wfx-ev { display: flex; gap: 6px; align-items: flex-start; padding: 2px 0; }
.wfx-ev > span:first-child { font-family: var(--mono); font-weight: 700; width: 12px; flex: none; text-align: center; }
.wfx-ev > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.wfx-ev-y > span:first-child { color: var(--ok); }
.wfx-ev-n > span:first-child { color: var(--crit); }
.wfx-ev-u > span:first-child { color: var(--unk); }
.wfx-ev-w > span:first-child { color: var(--wait); }

/* Notes and banners */
.wfx-note { border-left: 3px solid var(--line-2); background: var(--sunk); padding: 4px 8px; border-radius: 0 5px 5px 0; color: var(--ink-2); }
.wfx-note.wfx-warn { border-left-color: var(--warn); background: var(--warn-bg); color: var(--ink); }
.wfx-note.wfx-crit { border-left-color: var(--crit); background: var(--crit-bg); color: var(--ink); }
.wfx-banner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk); }
.wfx-warnb { background: var(--warn-bg); border-color: var(--warn); }
.wfx-critb { background: var(--crit-bg); border-color: var(--crit); }
.wfx-human { background: var(--warn-bg); border: 1px dashed var(--warn); }
.wfx-diag { color: var(--ink-2); font-size: 10.5px; border: 1px dotted var(--line-2); border-radius: 4px; padding: 2px 6px; margin-top: 3px; }

/* Empty / denied / loading / redaction */
.wfx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 36px 20px; color: var(--ink-2); }
.wfx-empty p { max-width: 52ch; }
.wfx-empty-i { width: 34px; height: 34px; border-radius: 999px; border: 2px dashed var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wfx-denied { border: 1.5px dashed var(--crit); border-radius: 7px; padding: 9px 11px; background: var(--crit-bg); display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.wfx-denied-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.wfx-denied-h > span:first-child { color: var(--crit); font-weight: 700; }
.wfx-redact { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 5px; color: var(--ink-2); background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, var(--panel) 6px 12px); border: 1px dashed var(--line-2); }
.wfx-skels { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.wfx-skel { height: 9px; border-radius: 4px; background: linear-gradient(90deg, var(--line) 0%, var(--sunk) 50%, var(--line) 100%); background-size: 200% 100%; animation: wfx-shimmer 1.4s linear infinite; }
@keyframes wfx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .wfx-skel { animation: none; } }
.wfx-lastknown { color: var(--muted); font-size: 10.5px; opacity: .8; border-top: 1px dashed var(--line); padding-top: 4px; }

/* Key-value */
.wfx-kv { display: grid; grid-template-columns: minmax(70px, max-content) 1fr; gap: 3px 10px; margin: 0; }
.wfx-kv dt { color: var(--muted); }
.wfx-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }

/* Timeline */
.wfx-tl { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.wfx-tl li { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px; align-items: start; position: relative; }
.wfx-tl li::before { content: ''; position: absolute; left: -15px; top: 4px; width: 8px; height: 8px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line-2); }
.wfx-tt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.wfx-tx { min-width: 0; overflow-wrap: anywhere; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

/* Drawer (side panel inside frame) */
.wfx-drawer { border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel); display: flex; flex-direction: column; min-width: 0; box-shadow: -4px 0 0 var(--sunk); }
.wfx-dh { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wfx-x { color: var(--muted); font-size: 14px; line-height: 1; }
.wfx-db { padding: 8px 9px; display: flex; flex-direction: column; gap: 7px; }

/* Cards and boards */
.wfx-card { border: 1px solid var(--line); border-radius: 6px; padding: 6px 7px; background: var(--panel); min-width: 0; }
.wfx-card.wfx-sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wfx-board { display: grid; gap: 6px; align-items: start; min-width: 0; }
.wfx-col { background: var(--sunk); border-radius: 6px; padding: 5px; display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 220px; }
.wfx-colh { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 2px 0; }
.wfx-pri { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.wfx-pri-crit { background: var(--crit); }
.wfx-pri-warn { background: var(--warn); }
.wfx-card.wfx-pri-crit { border-left: 4px solid var(--crit); }
.wfx-card.wfx-pri-warn { border-left: 4px solid var(--warn); }
.wfx-radio { padding: 1px 0; }
.wfx-check { display: flex; flex-direction: column; gap: 3px; }

/* S02 */
.wfx-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk); }
.wfx-strip-p { color: var(--ink-2); white-space: nowrap; }
.wfx-journey { color: var(--muted); font-size: 10.5px; }
.wfx-stat { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; min-width: 0; }
.wfx-stat-l { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.wfx-stat-v { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wfx-stat-s { font-size: 10.5px; color: var(--muted); display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }

/* S01 blueprint */
.wfx-bp-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wfx-bp { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.wfx-bp-row { display: grid; border-bottom: 1px solid var(--line); min-height: 40px; }
.wfx-bp-row:last-child { border-bottom: 0; }
.wfx-bp-row > span { border-right: 1px dashed var(--line); padding: 4px; min-width: 0; }
.wfx-bp-row > span:last-child { border-right: 0; }
.wfx-bp-stages { background: var(--sunk); }
.wfx-bp-st { display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; }
.wfx-bp-lane { font-weight: 700; font-size: 10.5px; background: var(--sunk); display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.wfx-bp-c { font-size: 10px; line-height: 1.25; display: block; margin: 3px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); overflow-wrap: anywhere; }
.wfx-bp-c i { font-style: normal; font-family: var(--mono); font-weight: 700; margin-right: 3px; }
.wfx-bp-row > .wfx-bp-c { padding: 3px 4px; }
.wfx-bp-row > .wfx-bpc-e { border: 0; background: none; margin: 0; }
.wfx-bpc-g { border: 1.5px solid var(--ink); font-weight: 600; }
.wfx-bpc-h { border: 1px dashed var(--ink-2); }
.wfx-bpc-e:not(:empty) { border-color: var(--ink-2); }
.wfx-bpc-x { border: 1px dotted var(--muted); color: var(--ink-2); background: var(--sunk); }
.wfx-bpc-a { background: var(--panel); }
.wfx-bp-c.wfx-dim { opacity: .35; }
.wfx-bp-c.wfx-hi { background: var(--warn-bg); border-color: var(--warn); }
.wfx-bp-off { min-height: 24px; background: var(--sunk); }
.wfx-bp-off > span { padding: 3px 6px; }
.wfx-bp-mg { padding: 6px 9px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--sunk); }
.wfx-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: 10.5px; align-items: center; }
.wfx-legend i { font-style: normal; font-family: var(--mono); font-weight: 700; }

/* S03 workbench */
.wfx-cnav { display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--line); padding-right: 6px; }
.wfx-cnav > span { padding: 2px 6px; border-radius: 4px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.wfx-cnav > span.wfx-on { background: var(--sunk); color: var(--ink); font-weight: 700; }
.wfx-cnav-h { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 8px 6px 2px; }
.wfx-clist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.wfx-clist-h { display: flex; gap: 5px; align-items: center; padding: 5px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.wfx-crow { padding: 6px 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.wfx-crow:last-child { border-bottom: 0; }
.wfx-crow.wfx-sel { background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }
.wfx-unread { color: var(--wait); font-size: 10px; }
.wfx-nr { font-size: 10px; font-weight: 700; color: var(--ink); border: 1px solid var(--ink-2); border-radius: 3px; padding: 0 4px; white-space: nowrap; }
.wfx-pane { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.wfx-thh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 9px; border-bottom: 1px solid var(--line); }
.wfx-replyas { padding: 3px 9px; font-size: 10.5px; color: var(--ink-2); background: var(--sunk); border-bottom: 1px solid var(--line); }
.wfx-thread { padding: 8px 9px; display: flex; flex-direction: column; gap: 7px; }
.wfx-msg { max-width: 80%; border: 1px solid var(--line); border-radius: 8px 8px 8px 2px; padding: 5px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--sunk); }
.wfx-msg.wfx-me { align-self: flex-end; border-radius: 8px 8px 2px 8px; background: var(--panel); }
.wfx-msg > span { font-size: 10px; }
.wfx-draft { border: 1.5px dashed var(--ink-2); border-radius: 7px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.wfx-human-d { border-color: var(--warn); }
.wfx-cites { font-size: 10.5px; color: var(--muted); }
.wfx-msgprev { border: 1px dashed var(--line-2); border-radius: 6px; padding: 6px 8px; background: var(--sunk); font-style: italic; color: var(--ink-2); margin-top: 4px; }

/* S05 */
.wfx-profile { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wfx-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); }

/* S06 */
.wfx-quote { border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; }
.wfx-quote .wfx-row { padding: 3px 0; font-variant-numeric: tabular-nums; }
.wfx-quote .wfx-row > span:last-child { justify-content: flex-end; }
.wfx-stale .wfx-row > span:last-child { text-decoration: line-through; text-decoration-color: var(--crit); color: var(--muted); }

/* S10 matrix */
.wfx-mx { display: block; font-size: 10px; line-height: 1.7; }
.wfx-mxsel { outline: 2px solid var(--ink); outline-offset: -1px; border-radius: 4px; padding: 2px; }

/* S11 canvas */
.wfx-canvas { border: 1px solid var(--line); border-radius: 7px; padding: 9px; display: flex; flex-direction: column; gap: 9px; background-image: radial-gradient(var(--line) 1px, var(--panel) 1px); background-size: 14px 14px; min-width: 0; }
.wfx-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wfx-flowbig { border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: var(--sunk); }
.wfx-flowbig .wfx-node { flex: 1; min-width: 120px; }
.wfx-node { border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); padding: 4px 6px; display: flex; flex-direction: column; gap: 2px; max-width: 170px; min-width: 0; }
.wfx-flowbig .wfx-node { max-width: none; }
.wfx-nk { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.wfx-ns { font-size: 10px; color: var(--muted); }
.wfx-n-gate { border: 1.5px solid var(--ink); }
.wfx-n-decision { border-style: dashed; transform: none; }
.wfx-n-wait { border-color: var(--wait); background: var(--wait-bg); }
.wfx-n-exception { border-color: var(--crit); background: var(--crit-bg); }
.wfx-n-trigger { border-left: 4px solid var(--ink); }
.wfx-arr { color: var(--muted); font-weight: 700; }
.wfx-branch { padding-top: 6px; border-top: 1px dashed var(--line-2); }
.wfx-chg { box-shadow: 0 0 0 2px var(--warn); }
.wfx-add { box-shadow: 0 0 0 2px var(--ok); }
.wfx-ver { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.wfx-ver.wfx-sel { background: var(--sunk); box-shadow: inset 3px 0 0 var(--ink); }

/* S14 grants */
.wfx-g { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; border: 1px solid var(--line-2); }
.wfx-g-r { background: var(--sunk); }
.wfx-g-w { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.wfx-g-d { background: var(--crit-bg); color: var(--crit); border-color: var(--crit); }
.wfx-g-n { color: var(--muted); border-style: dotted; }

/* S18 */
.wfx-score { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
