/* RubberTrail: field-document look. Latex-white paper, rubber-leaf green, coagulated-rubber amber,
   hazard tape for the synthetic-data notice. System fonts only (offline, no external requests). */

:root {
  --latex: #e9ece6;
  --sheet: #fbfcf9;
  --ink: #1c231f;
  --ink-2: #4b5650;
  --leaf: #1f4a35;
  --leaf-ink: #f3f6f1;
  --lump: #8a5523;
  --tape: #f2c230;
  --tape-ink: #1a1a14;
  --line: #c6ccc2;
  --ok: #276b42;
  --review: #3a449a;
  --hold: #9c5a00;
  --block: #a3261b;
  --unknown: #6d6a63;
  --verified: #276b42;
  --docs: #5b8f6d;
  --unverified: #c9b98f;
  --focus: #1d6fd6;
  --radius-s: 3px;
  --radius-m: 8px;
  --font-head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --latex: #121714;
    --sheet: #1a201c;
    --ink: #e2e7e0;
    --ink-2: #a8b3ab;
    --leaf: #7dbf95;
    --leaf-ink: #0f1a13;
    --lump: #d49a5e;
    --line: #34403a;
    --ok: #6cc28c;
    --review: #9aa3ff;
    --hold: #e2a443;
    --block: #ff8a7a;
    --unknown: #a7a39a;
    --verified: #4fa871;
    --docs: #3c6c4f;
    --unverified: #8a7d58;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--latex);
  color: var(--ink);
  font: 400 var(--step-0)/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
}
a { color: var(--leaf); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-stretch: condensed; line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: 0.005em; }
h1 { font-size: var(--step-3); font-weight: 700; }
h2 { font-size: var(--step-1); font-weight: 600; }
h3 { font-size: var(--step-0); font-weight: 600; }
p { margin: 0 0 0.75rem; max-width: 72ch; }
.small { font-size: var(--step--1); }
.muted { color: var(--ink-2); }
.mono-ish { font-variant-numeric: tabular-nums slashed-zero; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; }

/* ---------------------------------------------------------------- hazard tape */
.tape {
  background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, var(--tape-ink) 14px 28px);
  padding: 6px 0;
}
.tape p {
  margin: 0 auto;
  max-width: none;
  width: fit-content;
  max-inline-size: calc(100% - 24px);
  background: var(--tape);
  color: var(--tape-ink);
  padding: 4px 12px;
  font-size: var(--step--1);
  line-height: 1.35;
  text-align: center;
}

/* ---------------------------------------------------------------- top bar + nav */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 1rem; background: var(--leaf); color: var(--leaf-ink);
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none;
  font: 700 var(--step-1)/1 var(--font-head); font-stretch: condensed; }
.topbar-right { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.conn-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--step--1); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-on { background: #57d38c; }
.dot-off { background: var(--tape); box-shadow: 0 0 0 2px var(--tape-ink); }
.persona-btn {
  display: grid; text-align: left; min-width: 0; max-width: 52vw;
  border: 1px solid color-mix(in srgb, var(--leaf-ink) 45%, transparent); background: transparent; color: inherit;
  border-radius: var(--radius-m); padding: 0.3rem 0.6rem; font: inherit; cursor: pointer;
}
.persona-btn .persona-name { font-weight: 600; font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona-btn .persona-role { font-size: 0.72rem; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shell { display: block; }
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 0.25rem; overflow-x: auto;
  background: var(--sheet); border-bottom: 1px solid var(--line); padding: 0.35rem 0.75rem; scrollbar-width: thin;
}
.nav a {
  flex: none; padding: 0.45rem 0.7rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink);
  font-size: 0.9375rem; white-space: nowrap;
}
.nav a[aria-current="page"] { background: var(--leaf); color: var(--leaf-ink); }
.badge { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: 1em; background: var(--tape); color: var(--tape-ink);
  font-size: 0.75rem; font-weight: 700; text-align: center; }

main { padding: 1rem 1rem 4rem; max-width: 1180px; margin: 0 auto; min-width: 0; }
main:focus, main:focus-visible { outline: none; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
  .nav { position: sticky; top: 0; height: 100vh; flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: 1rem 0.6rem; }
  main { padding: 1.5rem 2rem 4rem; margin: 0; width: 100%; }
}

/* ---------------------------------------------------------------- surfaces */
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem; margin: 1rem 0; }
.panel > h2 { padding-bottom: 0.4rem; border-bottom: 2px solid var(--lump); display: inline-block; }
.crumbs { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 0.25rem; }
.detail-head { margin-bottom: 0.5rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 1rem; margin: 0.5rem 0; }
.facts dt { color: var(--ink-2); font-size: var(--step--1); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.75rem; }
.kv dd { margin: 0; }
.grid2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 0.75rem 0; }
.empty { color: var(--ink-2); font-style: italic; }
.notice { background: var(--sheet); border-left: 4px solid var(--lump); padding: 0.75rem 1rem; margin: 1rem 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 0.5rem 0 1rem; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.05rem); max-width: 18ch; line-height: 1.05; }
.lede { font-size: var(--step-1); max-width: 56ch; color: var(--ink-2); line-height: 1.45; }
.hero-ship { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem; margin-top: 1rem; }
.hero-ship-head { font-family: var(--font-head); font-stretch: condensed; font-size: var(--step-1); }
.hero-ship .prov-bar { height: 44px; }

/* ---------------------------------------------------------------- scenarios */
.scenarios { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.scenario { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.scenario-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; }
.scenario-id { font: 700 var(--step-2)/1 var(--font-head); color: var(--lump); }
.scenario-text p { margin-bottom: 0.25rem; }
.scenario-result { margin-top: 0.5rem; }
.reset { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* ---------------------------------------------------------------- chips */
.chip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: var(--radius-s); font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid currentColor; margin-right: 0.25rem; white-space: nowrap; }
.chip-ok { color: var(--ok); }
.chip-review { color: var(--review); }
.chip-hold { color: var(--hold); }
.chip-block { color: var(--block); }
.chip-neutral { color: var(--ink-2); }
.chip-unknown { color: var(--unknown); border-style: dashed; }
.sev { display: inline-block; padding: 0 0.45rem; border-radius: var(--radius-s); font-size: 0.78rem; font-weight: 700; color: #fff; }
.sev-critical { background: var(--block); }
.sev-high { background: #b4441c; }
.sev-medium { background: #8a6a12; }
.sev-low { background: #5a6b62; }
@media (prefers-color-scheme: dark) { .sev { color: #10140f; } .sev-high { background: #f0a37f; } .sev-medium { background: #e3c36a; } .sev-low { background: #a9b8ae; } }
.overdue { color: var(--block); font-weight: 700; font-size: var(--step--1); }

/* ---------------------------------------------------------------- buttons + forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 40px;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-m); border: 1.5px solid var(--leaf); background: transparent; color: var(--leaf);
  font: 600 0.9375rem/1.2 var(--font-body); cursor: pointer; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--leaf) 10%, transparent); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--leaf); color: var(--leaf-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--leaf) 85%, black); }
.btn-danger { border-color: var(--block); color: var(--block); }
.btn-small { min-height: 32px; padding: 0.2rem 0.6rem; font-size: var(--step--1); }
.linkish { background: none; border: 0; padding: 0; color: var(--leaf); text-decoration: underline; cursor: pointer; font: inherit; }
.form { display: grid; gap: 0.75rem; max-width: 640px; }
.form.grid2 { max-width: none; }
.field { display: grid; gap: 0.25rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; }
.hint { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
input[type="text"], input[type="search"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 0.5rem 0.6rem; min-height: 42px; width: 100%; max-width: 100%;
}
textarea { min-height: 80px; resize: vertical; }
select[multiple] { min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.75rem; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0 0.3rem; }
.switch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9375rem; }
.switch input { width: 20px; height: 20px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(90px, 120px); grid-template-areas: "cb code w" "cb meta w";
  gap: 0 0.6rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px dotted var(--line); }
.pick input[type="checkbox"] { grid-area: cb; width: 20px; height: 20px; }
.pick-code { grid-area: code; font-weight: 600; }
.pick .muted { grid-area: meta; }
.pick .w-kg { grid-area: w; }
.inputs { max-height: 360px; overflow-y: auto; }
.out-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.balance { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 0.75rem; background: var(--latex); }
.verdict { font-weight: 700; margin: 0.25rem 0; }
.v-ok { color: var(--ok); } .v-review { color: var(--review); } .v-hold { color: var(--hold); } .v-block { color: var(--block); }
.inline-form { border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 0.75rem; max-width: none; }
.capture-form { max-width: 520px; }
.conn { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.receipts { list-style: none; margin: 0; padding: 0; }
.receipt { display: grid; gap: 0.35rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.receipt p, .receipt ul { margin: 0.15rem 0 0; }
@media (min-width: 720px) { .receipt { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; align-items: start; } }
.row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

.errorbox { border: 2px solid var(--block); border-radius: var(--radius-m); padding: 0.75rem; background: color-mix(in srgb, var(--block) 6%, var(--sheet)); margin: 0.5rem 0; }
.errorbox-title { font-weight: 700; color: var(--block); }
.errorbox ul { margin: 0.25rem 0 0.5rem 1rem; padding: 0; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink-2); font-size: var(--step--1); background: color-mix(in srgb, var(--latex) 60%, var(--sheet)); }
td ul { margin: 0.2rem 0 0 1rem; padding: 0; }

/* ---------------------------------------------------------------- provenance bar */
.prov { margin: 0.5rem 0; }
.prov-bar { display: flex; height: 30px; border: 2px solid var(--ink); border-radius: var(--radius-s); overflow: hidden; background: var(--sheet); }
.prov-compact .prov-bar { height: 12px; border-width: 1px; }
.seg { display: block; height: 100%; }
.seg-verified, .swatch.seg-verified { background: var(--verified); }
.seg-docs, .swatch.seg-docs { background: var(--docs); }
.seg-unverified, .swatch.seg-unverified { background: var(--unverified); }
.seg-unknown, .swatch.seg-unknown {
  background: repeating-linear-gradient(-45deg, var(--sheet) 0 5px, var(--unknown) 5px 8px);
}
.seg + .seg { border-left: 2px solid var(--sheet); }
.legend { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: var(--step--1); }
.legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.swatch { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--ink); }

/* ---------------------------------------------------------------- decision */
.decision { border: 2px solid var(--line); border-left-width: 8px; border-radius: var(--radius-m); padding: 0.75rem 1rem; background: var(--sheet); margin: 1rem 0; }
.decision-head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.35rem; }
.decision-label { font: 600 var(--step-1)/1 var(--font-head); font-stretch: condensed; }
.d-accept { border-left-color: var(--ok); }
.d-review_required { border-left-color: var(--review); }
.d-hold { border-left-color: var(--hold); }
.d-block { border-left-color: var(--block); }
.conditions { margin: 0.25rem 0 0.5rem; padding-left: 1.1rem; }
.conditions li { margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- lineage graph */
.graph-frame { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: var(--radius-m); background:
  radial-gradient(circle, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--latex); }
.graph-frame svg { display: block; }
.g-edge { fill: none; stroke: var(--lump); stroke-opacity: 0.55; stroke-linecap: round; }
.g-edge.k-allocation { stroke: var(--leaf); stroke-opacity: 0.7; }
.g-edge.unknown { stroke: var(--unknown); stroke-dasharray: 6 5; stroke-opacity: 0.85; }
.g-node rect { fill: var(--sheet); stroke: var(--ink-2); stroke-width: 1.5; }
.g-node .g-title { font: 600 12.5px var(--font-body); fill: var(--ink); }
.g-node .g-sub { font: 400 11px var(--font-body); fill: var(--ink-2); }
.g-plot rect { stroke-width: 1.5; }
.g-plot.v-field_verified rect { stroke: var(--verified); stroke-width: 2.5; }
.g-plot.v-document_reviewed rect { stroke: var(--docs); stroke-width: 2.5; }
.g-plot.v-unverified rect { stroke: var(--unverified); stroke-width: 2.5; }
.g-unknown rect { stroke: var(--unknown); stroke-dasharray: 5 4; stroke-width: 2; }
.g-unknown .hatch-fill { fill: url(#hatch); stroke: none; opacity: 0.55; }
.hatch-bg { fill: transparent; }
.hatch-line { stroke: var(--unknown); stroke-width: 2; }
.g-lot.t-aggregate rect { stroke: var(--lump); stroke-width: 2; }
.g-lot.t-processed rect { stroke: var(--lump); stroke-width: 3; }
.g-lot.s-hold rect { stroke: var(--hold); stroke-dasharray: 3 3; }
.g-lot.in-transit rect { stroke: var(--hold); stroke-dasharray: 8 4; }
.g-shipment rect { fill: var(--leaf); stroke: var(--leaf); }
.g-shipment .g-title, .g-shipment .g-sub { fill: var(--leaf-ink); }
.g-node.clickable { cursor: pointer; }
.g-node.clickable:hover rect, .g-node.clickable:focus rect { stroke: var(--focus); stroke-width: 3; }
.g-node.is-focus rect { stroke: var(--focus); stroke-width: 3.5; }
.g-node:focus { outline: none; }

/* ---------------------------------------------------------------- map */
.map-layout { display: grid; gap: 1rem; }
@media (min-width: 900px) { .map-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--sheet); overflow: hidden; }
.map { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 72vh; }
.map-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.zone { fill: color-mix(in srgb, var(--hold) 14%, transparent); stroke: var(--hold); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.zone-hatch { fill: url(#zonehatch); pointer-events: none; }
.zone-line { stroke: var(--hold); stroke-width: 40; opacity: 0.45; }
.zone-label { font: 600 300px var(--font-body); fill: var(--hold); }
.plot { stroke-width: 4; vector-effect: non-scaling-stroke; cursor: pointer; fill-opacity: 0.85; }
.plot.v-field_verified { fill: var(--verified); stroke: var(--verified); }
.plot.v-document_reviewed { fill: var(--docs); stroke: var(--docs); }
.plot.v-unverified { fill: var(--unverified); stroke: var(--lump); }
.plot.in-zone { stroke: var(--block); stroke-width: 5; }
.plot.selected { stroke: var(--focus); stroke-width: 7; }
.plot.dim { opacity: 0.25; }
.plot:focus { outline: none; stroke: var(--focus); stroke-width: 7; }
.map-swatch.v-field_verified { background: var(--verified); }
.map-swatch.v-document_reviewed { background: var(--docs); }
.map-swatch.v-unverified { background: var(--unverified); }
.map-swatch.in-zone { background: transparent; border: 2px solid var(--block); }
.seg-buttons { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.plot-detail h3 { font-size: var(--step-1); }

/* ---------------------------------------------------------------- review queue */
.queue { display: grid; gap: 0.6rem; }
.finding { background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--radius-m); padding: 0.6rem 0.9rem; }
.finding > summary { cursor: pointer; list-style-position: outside; padding: 0.2rem 0; }
.finding[open] > summary { margin-bottom: 0.5rem; }
.summary-meta { display: inline-block; }
.sev-border-critical { border-left-color: var(--block); }
.sev-border-high { border-left-color: #b4441c; }
.sev-border-medium { border-left-color: #8a6a12; }
.sev-border-low { border-left-color: #5a6b62; }
.decide { border-top: 1px dashed var(--line); padding-top: 0.75rem; margin-top: 0.5rem; }

/* ---------------------------------------------------------------- dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.6rem; margin: 1rem 0; }
.tile { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--lump); border-radius: var(--radius-m); padding: 0.75rem; }
.tile-value { font: 700 var(--step-2)/1.1 var(--font-head); font-stretch: condensed; margin: 0 0 0.2rem; }
.tile-label { font-weight: 600; margin: 0 0 0.2rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.bars li { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) 3ch; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.bar { background: var(--latex); height: 14px; border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--lump); }
.bar-value { text-align: right; }
.links { padding-left: 1.1rem; }

/* ---------------------------------------------------------------- dialog + toasts */
dialog { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--sheet); color: var(--ink); padding: 1rem;
  width: min(560px, calc(100vw - 24px)); max-height: 86vh; }
dialog::backdrop { background: rgba(10, 16, 12, 0.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.persona-list { display: grid; gap: 0.4rem; }
.persona-option { display: grid; text-align: left; gap: 0.1rem; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: var(--radius-m);
  background: var(--sheet); color: var(--ink); font: inherit; cursor: pointer; }
.persona-option:hover { border-color: var(--leaf); }
.persona-option.is-current { border-color: var(--leaf); border-width: 3px; }
.persona-option .persona-name { font-weight: 700; }
.persona-option .persona-desc { font-size: 0.9rem; }
.persona-option .persona-org { font-size: var(--step--1); color: var(--ink-2); }
.toasts { position: fixed; right: 12px; bottom: 12px; left: 12px; display: grid; gap: 0.4rem; justify-items: end; z-index: 30; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; background: var(--ink); color: var(--sheet); padding: 0.6rem 0.9rem; border-radius: var(--radius-m);
  border-left: 6px solid var(--leaf); font-size: 0.9375rem; }
.toast-ok { border-left-color: #57d38c; }
.toast-error { border-left-color: #ff7b6b; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Enthernet branding + campaign series footer */
.topbar-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.ent-logo { display: inline-flex; align-items: center; background: #15191c; border-radius: 6px; padding: 3px 8px; line-height: 0; flex: none; }
.ent-logo img { height: 32px; width: auto; display: block; }
.ent-logo:focus-visible { outline: 2px solid var(--tape); outline-offset: 2px; }
.site-foot { border-top: 1px solid var(--line); padding: 1rem 1rem 2rem; color: var(--ink-2); font-size: var(--step--1); max-width: 1180px; }
.site-foot p { margin: 0 0 0.5rem; }
.bb-series { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: baseline; }
.bb-series a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.bb-series a:hover { color: var(--ink); }
.bb-series [aria-current] { color: var(--ink); font-weight: 700; }
@media (min-width: 960px) { .site-foot { margin-left: 210px; padding: 1rem 2rem 2rem; } }
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 0.4rem; }
  .ent-logo img { height: 24px; }
  .topbar-right { margin-left: auto; }
}
