/*
 * Enforce: what is being stopped right now — the Observe instrument's sibling in its own teal.
 *
 * The Now lens is the strip on the substrate (the posture, live), the core view under it on the same
 * dark ground (ingress → the core → egress, the events where they hit the shield), the band of three
 * cards on the tray (stopped · decisions over time · egress and DLP), then the lanes: every rule's
 * decision, the sessions under control; beside them what needs a person and the control topology.
 * Points, Queue, Sessions and Rules are the drill-down panes.
 *
 * The teal is spent on the waves, the glows, the core and the live dot — never on chrome. Amber and
 * red belong to warned and blocked events only, and to nothing decorative. The only motion is data
 * moving: a figure eases to its reading, the wave eases to its shape, a row that just arrived eases
 * in, a dot breathes only while something reported; all of it stands still when motion is paused.
 */

/* ─── the Enforce accent, in both registers ─── */
.space[data-space="enforce"] {
  --enf-fill: #21b3c6; --enf-text: #7ee3ee; --enf-hot: #a7f2fa;
  --enf-soft: rgba(33, 179, 198, .16); --enf-edge: rgba(33, 179, 198, .45); --enf-glow: rgba(126, 227, 238, .5);
  --enf-chart-top: rgba(126, 227, 238, .42); --enf-chart-bottom: rgba(126, 227, 238, 0);
}
:root[data-theme="light"] .space[data-space="enforce"] {
  --enf-fill: #0b8fa0; --enf-text: #087a89; --enf-hot: #0a9fb3;
  --enf-soft: rgba(11, 143, 160, .10); --enf-edge: rgba(11, 143, 160, .40); --enf-glow: rgba(11, 143, 160, .35);
  --enf-chart-top: rgba(11, 143, 160, .28); --enf-chart-bottom: rgba(11, 143, 160, 0);
}

/* ─── layout ─── */
.space[data-space="enforce"] { grid-template-columns: minmax(0, 8fr) minmax(300px, 3.4fr); }
.space[data-space="enforce"] .col.main { grid-template-rows: minmax(0, 1fr); }
.space[data-space="enforce"][data-lens="Now"] .col.main { grid-template-rows: auto minmax(0, 1fr) auto; }
.space[data-space="enforce"] .col.side > .pane[data-pane="enforce-decide"] { flex: 0 1 auto; max-height: 40%; }
.space[data-space="enforce"] .col.side > .pane[data-pane="enforce-held"] { flex: 0 0 auto; max-height: 26%; }
.space[data-space="enforce"] .col.side > .pane[data-pane="enforce-topology"] { flex: 1 1 0; min-height: 180px; }
.space[data-space="enforce"] .enforce-main .pane[data-lens] { display: none; }
.space[data-space="enforce"][data-lens="Now"] .pane[data-lens="Now"],
.space[data-space="enforce"][data-lens="Points"] .pane[data-lens="Points"],
.space[data-space="enforce"][data-lens="Queue"] .pane[data-lens="Queue"],
.space[data-space="enforce"][data-lens="Sessions"] .pane[data-lens="Sessions"],
.space[data-space="enforce"][data-lens="Rules"] .pane[data-lens="Rules"] { display: flex; }
/* the queue lens is the queue: the side's decision cards would say the same thing twice */
.space[data-space="enforce"][data-lens="Queue"] [data-pane="enforce-decide"] { display: none; }
.space[data-space="enforce"][data-lens="Queue"] .col.side { grid-template-rows: auto minmax(0, 1fr); }
.space[data-space="enforce"] [data-pane="enforce-decide"] .pane-b { max-height: 34vh; }
.space[data-space="enforce"] [data-pane="enforce-held"] .pane-b { max-height: 26vh; }
.space[data-space="enforce"] .pane.band-pane { flex: none; }
.space[data-space="enforce"] .pane.band-pane > .pane-b { overflow: visible; flex: none; }

/* ─── the strip: the instrument's glass, lit teal ─── */
.enforce-strip { --accent: var(--enf-text); --accent-soft: rgba(33, 179, 198, .18); --accent-edge: rgba(126, 227, 238, .5); --good: #7ee3ee; --good-glow: rgba(126, 227, 238, .85); }
.enforce-strip::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(62% 150% at 60% 52%, rgba(33, 179, 198, .26), rgba(33, 179, 198, .06) 55%, transparent 74%); }
.enforce-strip .cap i.on { background: var(--enf-text); box-shadow: 0 0 10px var(--good-glow); }
.enforce-strip .count .fseg[hidden] { display: none; }

/* ─── the core view: a card under the lanes, the container the living renderer fills; the still until then; Expand fills the screen ─── */
[data-pane="enforce-core-pane"] { flex: none; }
[data-pane="enforce-core-pane"] > .pane-b { overflow: hidden; }
.enforce-core { --ink: #EEF2F8; --ink-2: #C3CCDB; --quiet: #94A0B4; position: relative; height: clamp(172px, 12.5vw, 216px); flex: none; overflow: hidden; color: var(--ink);
  background: #070B13 radial-gradient(70% 120% at 50% 56%, #0B1A24 0%, #08111A 46%, #070B13 76%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.enforce-core-full { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #070B13; color: #EEF2F8; }
.enforce-core-full-h { --ink: #EEF2F8; --ink-2: #C3CCDB; --quiet: #94A0B4; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.enforce-core-full-h h2 { margin: 0; font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.enforce-core-full-h .sub { font-size: 12px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.enforce-core-full-h .r { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.enforce-core-full-h .hint { font-size: 12px; color: var(--quiet); }
.enforce-core-full-h .kbd { display: inline-block; padding: 1px 5px; border-radius: 4px; font: 500 12px/16px var(--mono); color: var(--ink-2); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.enforce-core-full-h .tb { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #EEF2F8; }
.enforce-core-full-h .tb:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.enforce-core-full-b { min-height: 0; }
.enforce-core-full .enforce-core { height: 100%; box-shadow: none; }
.enforce-core-full .enforce-core-cap { display: none; }
.enforce-core > svg.enforce-core-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the renderer has mounted: the still steps aside, the words stay on top */
.enforce-core[data-nexus] > svg.enforce-core-still { display: none; }
/* the living renderer needs room for its labels; its own core label says what the caption said */
.enforce-core[data-nexus]:not([data-full]) { height: clamp(300px, 24vw, 360px); }
.enforce-core[data-nexus] > .enforce-core-cap { display: none; }
:root[data-theme="light"] .enforce-core:not([data-full]) { margin: 6px 8px 8px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.enforce-core > :not(.nexus) { position: relative; z-index: 3; }
.enforce-core > svg.enforce-core-still { z-index: 1; }
.enforce-core-cap { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; white-space: nowrap; max-width: 56%; }
.enforce-core-cap .lane { font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.enforce-core-cap .sub { font: 400 12px/15px var(--sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* the still's vocabulary: fixed colours on the fixed dark ground, the same in both registers */
.enforce-core-still text { font-family: var(--sans); }
.enforce-core-still .lane { font-size: 12px; font-weight: 600; letter-spacing: .06em; fill: #94A0B4; }
.enforce-core-still .lbl { font-size: 12.5px; font-weight: 500; fill: #EEF2F8; }
.enforce-core-still .sub { font-size: 12px; fill: #94A0B4; }
.enforce-core-still .sub.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.enforce-core-still .sub.live { fill: #7EE3EE; }
.enforce-core-still .sub.warn { fill: #FFDCA6; }
.enforce-core-still .sub.stop { fill: #FFB8AE; }
.enforce-core-still .count { font-size: 12px; font-weight: 500; }
.enforce-core-still .tagbg { fill: #070B13; fill-opacity: .82; }
.enforce-core-still .glowpath { fill: none; stroke: #21B3C6; stroke-opacity: .14; stroke-linecap: round; }
.enforce-core-still .path { fill: none; stroke: #7EE3EE; stroke-opacity: .5; stroke-linecap: round; }
.enforce-core-still .path.live { stroke-opacity: .9; }
.enforce-core-still .path.out { stroke-opacity: .72; }
.enforce-core-still .dot { fill: #7EE3EE; fill-opacity: .8; }
.enforce-core-still .dot.out { fill-opacity: .9; }
.enforce-core-still .dot.live { fill: #EAFBFF; fill-opacity: 1; filter: drop-shadow(0 0 5px #7EE3EE); transform-box: fill-box; transform-origin: center; animation: bp 1.7s var(--ease) infinite; }
.app[data-motion="paused"] .enforce-core-still .dot.live { animation: none; }
.enforce-core-still .ring { fill: none; stroke: #7EE3EE; }
.enforce-core-still .ring.outer { stroke-opacity: .26; stroke-dasharray: 2 5; }
.enforce-core-still .ring.inner { stroke-opacity: .2; stroke-dasharray: 1 4; }
.enforce-core-still .shield { fill: none; stroke: #7EE3EE; stroke-opacity: .7; stroke-width: 1.3; }
.enforce-core-still .shield.live { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgba(126, 227, 238, .65)); }
.enforce-core-still .hot { fill: #EAFBFF; }
.enforce-core-still .spark.blocked line { stroke: #FF6256; stroke-width: 1.4; stroke-linecap: round; }
.enforce-core-still .spark.blocked circle { fill: #FF6256; filter: drop-shadow(0 0 4px rgba(255, 98, 86, .8)); }
.enforce-core-still .spark.blocked .count { fill: #FFB8AE; }
.enforce-core-still .spark.warned circle { fill: none; stroke: #FFBA52; stroke-width: 1.5; }
.enforce-core-still .spark.warned .count { fill: #FFDCA6; }
.enforce-core-still .gatering { fill: none; stroke: #6B7789; stroke-width: 1.2; stroke-dasharray: 3 4; }
.enforce-core-still .gatering.on { stroke: #7EE3EE; stroke-dasharray: none; }
.enforce-core-still .mk { color: #EEF2F8; }
.enforce-core-still .mk.rack rect { fill: none; stroke: #C3CCDB; stroke-width: 1.4; }
.enforce-core-still .mk.none { fill: none; stroke: #6B7789; stroke-width: 1.4; }
.enforce-core-still .door { cursor: pointer; outline: none; }
.enforce-core-still .door:hover .lbl, .enforce-core-still .door:focus-visible .lbl { fill: #FFFFFF; }
.enforce-core-still .door:hover .dot { fill-opacity: 1; }
.enforce-core-still .core.door:hover .shield { stroke-opacity: 1; }
.enforce-core-still .door:focus-visible .dot, .enforce-core-still .core.door:focus-visible .shield { stroke: #FFFFFF; stroke-width: 1.5; }

/* ─── the band: three cards on the tray ─── */
.enforce-band { grid-template-columns: minmax(236px, 2.3fr) minmax(0, 4.6fr) minmax(300px, 3.6fr); }
.enforce-band > .col { row-gap: 0; }
.enforce-band .enf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.enforce-band .big > span:first-child { display: inline-block; min-width: 1ch; }
.enforce-band .card.stopped[data-tone="stop"] .big { color: var(--stop); }
.enforce-band .tline em:empty { display: none; }
/* the top rules: a row each, its blocked and warned figures, a hairline bar that is its share of the decisions */
.enforce-rules-head { grid-template-columns: 1fr auto; margin-top: 8px; }
.enforce-rules-head[hidden] { display: none; }
.enforce-rules { display: flex; flex-direction: column; }
.enforce-rules .rrow { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 3px; gap: 1px 8px; padding: 5px 0 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 4px; }
.enforce-rules .rrow:last-child { border-bottom: 0; }
.enforce-rules .rrow:hover { background: var(--raised); box-shadow: 0 0 0 4px var(--raised); }
.enforce-rules .rt { min-width: 0; font: 500 12.5px/15px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enforce-rules .rl { display: flex; gap: 8px; align-items: baseline; min-width: 0; white-space: nowrap; overflow: hidden; }
.enforce-rules .rl .rid { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.enforce-rules .rid { font: 400 12px/14px var(--mono); letter-spacing: 0; color: var(--quiet); }
.enforce-rules .rv { font: 400 12px/14px var(--mono); letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.enforce-rules .rv.stop { color: var(--stop); font-weight: 500; }
.enforce-rules .rv.warn { color: var(--warn); }
.enforce-rules .rbar { display: flex; gap: 1px; height: 3px; border-radius: 2px; overflow: hidden; }
.enforce-rules .rbar i { display: block; height: 100%; transition: width .9s var(--ease); }
.enforce-rules .rbar .b { background: var(--stop); }
.enforce-rules .rbar .w { background: var(--warn); }
.enforce-rules .void { padding: 12px 0; }
/* the wave in the Enforce accent: the light under the line, the line, the hatch for the step still filling */
.enforce-band .flowwrap .area { fill: url(#enf-fg); }
.enforce-band .flowwrap .line { stroke: var(--enf-text); filter: drop-shadow(0 0 4px var(--enf-chart-top)); }
.app[data-motion="paused"] .enforce-band .flowwrap .line { filter: none; }
.enforce-band .flowwrap .cap-step { fill: url(#enf-hatchcap); }
.enforce-band .flowwrap { min-height: 96px; }
/* the moments on the same axis: what is held (since it was asked), what was blocked, what was warned */
.enf-marks { position: absolute; left: 6px; right: 6px; top: 8px; height: 10px; z-index: 2; }
.enf-mark { position: absolute; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; pointer-events: auto; }
.enf-mark[data-k="blocked"] { background: var(--stop); box-shadow: 0 0 6px color-mix(in srgb, var(--stop) 70%, transparent); }
.enf-mark[data-k="warned"] { box-shadow: inset 0 0 0 1.5px var(--warn); }
.enf-mark[data-k="would"] { box-shadow: inset 0 0 0 1.5px var(--warn); opacity: .6; }
.enf-mark[data-k="held"] { width: 6px; height: 6px; margin-left: -3px; border-radius: 1px; background: var(--enf-text); transform: rotate(45deg); box-shadow: 0 0 6px var(--enf-glow); }
.enforce-legend .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.enforce-legend .sw.allowed { background: linear-gradient(180deg, var(--enf-text), var(--enf-fill)); }
.enforce-legend .sw.held { width: 6px; height: 6px; border-radius: 1px; background: var(--enf-text); transform: rotate(45deg); }
.enforce-legend .sw.blocked { background: var(--stop); }
.enforce-legend .sw.warned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); }
.enforce-legend .sw.would { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); opacity: .6; }
/* egress: the providers by their marks, allowed against warned and blocked; the gate; the egress point */
.enforce-egress .mhead { grid-template-columns: minmax(0, 1fr) 48px 76px; }
.enforce-egress .mrow { grid-template-columns: 84px minmax(24px, 1fr) 48px 76px; }
.enforce-egress .mhead { margin-top: 6px; }
.enforce-egress .mbar i { background: linear-gradient(90deg, var(--enf-fill), var(--enf-text)); }
.enforce-egress .mc { white-space: nowrap; }
.enforce-egress .mc.stop { color: var(--stop); font-weight: 500; }
.enforce-egress .mc.warn { color: var(--warn); }
.enforce-egress .void { padding: 10px 0; }
.enforce-gate { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.enforce-gate .grow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 20px; border-radius: 4px; font-size: 12px; }
.enforce-gate .grow[data-obj] { cursor: pointer; }
.enforce-gate .grow[data-obj]:hover { background: var(--raised); box-shadow: 0 0 0 4px var(--raised); }
.enforce-gate .grow .st { font-size: 12px; }
.enforce-gate .grow .gs { color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enforce-band .cap.dlpcap { margin-top: auto; padding-top: 8px; }
.enforce-dlp { margin-top: 2px; }
.enforce-dlp .void { padding: 8px 0 0; }
.enforce-dlp .void.hatch { display: grid; gap: 1px; padding: 7px 10px; border-radius: 6px; line-height: 1.4; background: repeating-linear-gradient(-45deg, var(--hatch) 0 4px, transparent 4px 10px); box-shadow: inset 0 0 0 1px var(--line); }
.enforce-dlp .void.hatch b, .enforce-dlp .void.hatch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enforce-dlp .void b { font-weight: 500; color: var(--ink-2); }
.enforce-dlp .mrow.dlp { grid-template-columns: 96px minmax(24px, 1fr) 40px 52px; cursor: default; }
.enforce-dlp .mrow.dlp .gs { font-size: 12px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; }
.enforce-dlp .mv.stop { color: var(--stop); font-weight: 500; }
.enforce-dlp .mc.warn { color: var(--warn); }
.enforce-dlp .mv.quiet, .enforce-dlp .mc.quiet { color: var(--faint); }

/* ─── the little indicators of life: the frame's vocabulary (bp on a live dot, arrive, wash, pop) ─── */
.enforce-cards .dec[data-arrived] { animation: arrive 320ms var(--ease) both, wash 1600ms var(--ease) both; }
.space[data-space="enforce"] .t tr[data-arrived] > td, .space[data-space="registrations"] .t tr[data-arrived] > td { animation: wash 1600ms var(--ease) both; }
.fnode .n[data-changed] { animation: pop 600ms var(--ease); transform-origin: right center; }

/* ─── needs a decision: cards that lift under the pointer, the verbs on the card; a tone only for a real one ─── */
.enforce-cards { padding: 8px; display: grid; gap: 8px; align-content: start; }
.enforce-cards .dec { border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--panel); padding: 10px 12px; transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease); }
.enforce-cards .dec[data-tone="stop"] { box-shadow: inset 2px 0 0 var(--stop); }
.enforce-cards .dec:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--panel); }
.enforce-cards .dec:not([data-tone]):hover { box-shadow: var(--e2); }
.enforce-cards .dec[data-tone="stop"]:hover { box-shadow: inset 2px 0 0 var(--stop), var(--e2); }
.enforce-cards .dec .w span .mono { font-size: 12px; }
.enforce-cards .dec .w span i[data-tone="stop"] { color: var(--stop); }
.enforce-cards .dec .w span i[data-tone="warn"] { color: var(--warn); }
.enforce-cards .dec .w span i[data-tone="good"] { color: var(--good); }
.enforce-cards .dec .st { font-size: 12px; }
/* a held session is a card that breathes while its wrapper reported within two minutes */
.enforce-cards.sessions .dec .w b { display: flex; align-items: center; gap: 8px; }
.enforce-cards.sessions .dec .w b .hash { font-weight: 400; }
.enforce-cards .dec[data-live="now"] .st::before { animation: bp 1.7s var(--ease) infinite; box-shadow: 0 0 8px var(--good-glow); }
.app[data-motion="paused"] .enforce-cards .dec[data-live="now"] .st::before { animation: none; }
[data-pane="enforce-held"] .tfoot { position: static; }

/* ─── the lanes: every rule, every held session — a live thing each ─── */
.space[data-space="enforce"] .t.lanes td.lst { width: 1%; }
.space[data-space="enforce"] .t.lanes td.lst .st { font-weight: 500; font-size: 12px; }
#enforce-by-rule th.rulehead { width: 44%; }
#enforce-by-rule td.rule { max-width: 0; overflow: hidden; text-overflow: ellipsis; }
#enforce-by-rule td.tone { font-weight: 500; }

/* ─── the control topology ─── */
[data-pane="enforce-topology"] .subhead:first-child { border-top: 0; padding-top: 10px; }
[data-pane="enforce-topology"] .pt { grid-template-columns: 132px 1fr; }

/* ─── the drill-down panes ─── */
.enforce-main .pane-h .r .tb { height: 26px; }
.enforce-filter { display: inline-flex; gap: 5px; }
.enforce-main .t td.two .sub.blk { max-width: 340px; }
#enforce-levels td:nth-child(2) { min-width: 260px; }
.enforce-main .t td .mode { vertical-align: middle; }
.enforce-empty { display: grid; justify-items: start; gap: 8px; padding: 28px 24px; min-height: 160px; align-content: center; }
.enforce-empty > svg { width: 24px; height: 24px; color: var(--quiet); }
.enforce-empty b { font-weight: 500; }
.enforce-empty span { max-width: 460px; color: var(--quiet); font-size: 12px; line-height: 1.5; }

/* ─── the graduated response as the flow the configured rules make: nodes on a faint canvas, edges drawn from where the nodes stand ─── */
.flow { position: relative; padding: 18px 16px 16px; background: var(--inst); box-shadow: var(--inset); background-image: linear-gradient(var(--chart-grid) 1px, transparent 1px), linear-gradient(90deg, var(--chart-grid) 1px, transparent 1px); background-size: 24px 24px; }
.flow > svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow .edge { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.flow .edge.lit { stroke: var(--enf-text); stroke-width: 1.6; filter: drop-shadow(0 0 4px var(--enf-chart-top)); }
.app[data-motion="paused"] .flow .edge.lit { filter: none; }
.flow .lanes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 0 48px; align-items: center; }
.flow .lane { display: grid; gap: 10px; align-content: center; min-width: 0; }
.flow .lane .lab { color: var(--quiet); margin-bottom: 2px; }
.fnode { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--panel); box-shadow: var(--e1); min-width: 0; transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease); }
.fnode:hover { transform: translateY(-1px); box-shadow: var(--e2); border-color: var(--line-strong); }
.fnode .k { grid-column: 1; font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.fnode b { grid-column: 1; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnode .n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 300 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); font-feature-settings: "tnum" 1; }
.fnode .n.quiet { color: var(--faint); font-size: 18px; }
.fnode[data-tone] .n { color: var(--tone); }
.fnode small { grid-column: 1 / -1; color: var(--quiet); font-size: 12px; line-height: 1.4; }
.fnode[data-lit] { border-color: var(--enf-edge); box-shadow: 0 0 0 1px var(--enf-edge), var(--e2); }

/* ─── the forms: every write is a proposal ─── */
.enforce-help { display: block; margin: 0; color: var(--quiet); font-size: 12px; line-height: 1.55; }
.enforce-form .field small { margin-top: 0; }
.enforce-form-error { margin: 12px 18px 0; color: var(--stop); font-size: 12px; line-height: 1.5; }
.enforce-form-error:empty { display: none; }
.enforce-action-detail { margin: 10px 18px 0; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.enforce-form-value { overflow-wrap: anywhere; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); font-size: 12px; }
.enforce-form .enforce-read-fields, .enforce-form .enforce-unavailable-fields { margin: 12px 18px 0; }
.enforce-form [hidden] { display: none; }
.enforce-form-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.enforce-form > .enforce-form-check { margin: 14px 18px; }
.enforce-form-check input { width: 15px; height: 15px; flex: none; margin: 2px 0 0; accent-color: var(--cobalt); }
.enforce-resource-editor { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.enforce-resource-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.enforce-resource-head b { font-size: 12px; font-weight: 500; }
.enforce-resource-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.enforce-resource-row .field { margin-top: 10px; }
.enforce-prerequisites { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); padding: 0 12px; }
.enforce-prerequisites summary { padding: 12px 0; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.enforce-prerequisites .enforce-form-check { overflow-wrap: anywhere; }
.enforce-form > footer { position: sticky; bottom: 0; box-shadow: 0 -4px 10px var(--well); z-index: 1; }
.enforce-capabilities { display: flex; flex-wrap: wrap; gap: 7px; }
.enforce-action-list > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.enforce-action-list p { margin: 5px 0 0; font-size: 12px; color: var(--quiet); line-height: 1.5; overflow-wrap: anywhere; }

/* ─── narrower ─── */
@media (max-width: 1599px) {
  .enforce-band .cap .by { display: none; }
}
@media (max-width: 1099px) {
  .space[data-space="enforce"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .enforce-band { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 8px; }
  .enforce-core, .enforce-core[data-nexus]:not([data-full]) { height: 440px; }
  .enforce-core-full { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .enforce-core-cap { left: 12px; transform: none; align-items: flex-start; text-align: left; max-width: calc(100% - 24px); }
  .enforce-core-cap .sub { white-space: normal; }
  .space[data-space="enforce"] [data-pane="enforce-decide"] .pane-b, .space[data-space="enforce"] [data-pane="enforce-held"] .pane-b { max-height: none; }
  .flow { padding: 14px 12px; }
  .flow > svg.edges { display: none; }
  .flow .lanes { grid-template-columns: minmax(0, 1fr); gap: 14px 0; }
  .flow .lane { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .flow .lane .lab { grid-column: 1 / -1; }
  .enforce-form .field input, .enforce-form .field select { font-size: 16px; height: 38px; }
}
