/* M26 portal - the application stylesheet.
   Copied from docs/design/mockups/portal.css (TRANSLATION V0.2 section 8): the tokens the
   owner reviewed, then the ~15 components, with the mockup-only .note-band rule dropped.
   Light office theme, brand-neutral chrome; the two brand hues appear ONLY on the CP brand
   badges. Ruling Q-U7: the tokens are ready for a dark switch, which is not this lane. */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #1A1F26;
  --muted: #5F6B78;
  --line: #D8DEE6;
  --line-strong: #B9C2CD;
  --accent: #2563EB;
  --accent-ink: #FFFFFF;
  --accent-soft: #E8F0FE;
  --ok: #15803D;
  --ok-soft: #E6F4EA;
  --warn: #B45309;
  --warn-soft: #FEF3E2;
  --danger: #B91C1C;
  --danger-soft: #FDE8E8;
  --brand-ekobenny: #4DA3FF;
  --brand-bulprolaab: #5B66F2;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --gap: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 16px rgba(20, 30, 40, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; font-weight: 650; }
h2 { font-size: 17px; margin: 0 0 8px; font-weight: 650; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 650; }
p { margin: 0 0 8px; }
code, .code { font-family: var(--mono); font-size: .95em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
/* The sign-in page's version line (V0.6): present, and out of the way. */
.version { margin-top: 24px; opacity: .6; }
.right { text-align: right; }
.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---- shell ------------------------------------------------------------ */
.topbar { display: flex; align-items: center; gap: 18px; height: 48px; padding: 0 20px;
  background: #101418; color: #E6EBF1; }
.topbar .product { font-weight: 700; letter-spacing: .02em; }
.topbar .product span { color: #8FB3FF; }
.topbar .tenant { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid #2B333C; border-radius: 6px; font-size: 13px; background: #171C22; }
.topbar .spacer { flex: 1; }
.topbar .user { font-size: 13px; color: #B7C1CC; }
.crumbs { padding: 10px 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; }
.crumbs .here { color: var(--ink); font-weight: 600; }
.page { padding: 0 20px 40px; max-width: 1240px; }
.page-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; }
.page-head .grow { flex: 1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
/* the CUSTOMER workspace's CP tab strip (ruled Q-U1): one tab per collection point,
   above the point's own section tabs */
.cptabs { display: flex; gap: 6px; align-items: flex-end; margin: 4px 0 0; flex-wrap: wrap; }
.cptabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line);
  border-bottom: 0; border-radius: 8px 8px 0 0; background: #EDF0F4; color: var(--muted); font-size: 14px; }
.cptabs a code { font-weight: 700; color: var(--ink); }
.cptabs a.on { background: var(--surface); color: var(--ink); border-color: var(--line-strong); position: relative; top: 1px; }
.cptabs a.add { background: transparent; border: 1px dashed var(--line-strong); color: var(--accent); }
.cptabs a:hover { text-decoration: none; }
.tabs .grow { flex: 1; }
.zone { font-size: 13px; color: var(--muted); }
.zone code { background: #EEF1F4; padding: 1px 6px; border-radius: 4px; }

/* ---- cards, stats, empty ---------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px; }
/* overflow-x auto: a list wider than its card SCROLLS inside it instead of losing its last
   column - the roster's SOURCE chips were clipped once KIND joined the columns (the owner's
   eye, 2026-09-11). The vertical clip stays for the rounded corners. */
.card.tight { padding: 0; overflow: hidden; overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 22px; font-weight: 650; margin-top: 2px; }
.stat .s { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty p { margin-bottom: 14px; }

/* ---- table -------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: #FAFBFC; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.search { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 6px 10px; background: var(--surface); min-width: 260px; color: var(--muted); }
.search input { border: 0; outline: 0; font: inherit; width: 100%; }
.filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.filter select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 10px 10px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
table.list td { padding: 9px 10px; border-bottom: 1px solid #EDF0F3; vertical-align: middle; }
table.list tr:nth-child(even) td { background: #FAFBFC; }
table.list tr.row:hover td { background: var(--accent-soft); cursor: pointer; }
table.list tr.off td { color: var(--muted); }
table.list td.check { width: 30px; }
.tfoot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.tfoot .grow { flex: 1; }
.pager a { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; margin-left: 4px; }

/* ---- badges + states --------------------------------------------------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.badge.ekobenny { background: #E3F0FF; color: #1858A8; border: 1px solid var(--brand-ekobenny); }
.badge.bulprolaab { background: #E9EAFD; color: #3B44B8; border: 1px solid var(--brand-bulprolaab); }
.badge.src { background: #EEF1F4; color: var(--muted); font-weight: 500; letter-spacing: 0; }
/* The roster row's kind (bootstrap FLAG 2): a vendor reads quiet, a transporter stands out. */
.badge.kind { background: #EEF1F4; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.badge.kind.transporter { background: #FFF3E0; color: #9A5B00; border: 1px solid #E8B36A; font-weight: 600; }
.transporter-range input[disabled] { opacity: .5; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.active { color: var(--ok); }
.state.pending { color: var(--accent); }
.state.superseded, .state.replaced, .state.expired, .state.none { color: var(--muted); }
.state.withdrawn { color: var(--danger); }
.fp { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.fp.none { color: var(--muted); font-weight: 400; }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--line-strong); }

/* ---- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font: inherit; font-size: 14px;
  font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { background: #F3F5F8; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #1D4ED8; }
.btn.danger { color: var(--danger); border-color: #E7B3B3; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; align-items: center; }
.bulk { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 13px; }

/* ---- forms -------------------------------------------------------------- */
.form { max-width: 820px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.group > h2 { margin-bottom: 4px; }
.group > .lead { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.field { display: grid; grid-template-columns: 220px 1fr; gap: 6px 18px; align-items: start; padding: 9px 0; }
.field label { padding-top: 7px; font-weight: 600; font-size: 14px; }
.field .ctl { display: flex; flex-direction: column; gap: 4px; }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=password], .field select, .field textarea {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); width: 100%; max-width: 420px; }
.field input.short { max-width: 110px; }
.field input.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.field .help { font-size: 13px; color: var(--muted); }
.field .counter { font-size: 12px; color: var(--muted); text-align: right; max-width: 420px; }
.field .error { font-size: 13px; color: var(--danger); font-weight: 600; }
.field .ok { font-size: 13px; color: var(--ok); }
.field input.bad, .field select.bad { border-color: var(--danger); background: #FFF7F7; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); cursor: pointer; min-width: 240px; }
.radio-card.on { border-color: var(--accent); background: var(--accent-soft); }
.radio-card .t { font-weight: 600; }
.radio-card .d { font-size: 13px; color: var(--muted); }
.form-foot { display: flex; gap: 10px; align-items: center; padding: 6px 0 0; }
.ascii { text-decoration: underline wavy var(--danger); }
.hint-fix { font-size: 13px; color: var(--danger); }
.hint-fix a { font-weight: 600; }

/* ---- drawer ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
/* The drawer column exists only while the drawer holds something: with nothing selected the
   roster takes the whole page instead of two thirds of it (the owner's eye, 2026-09-11 - the
   KIND column pushed the squeezed roster past its card). Mockup 03 shows the OPEN state.
   Written as the open-state rule because :has() may not nest inside :has(). */
.split:has(turbo-frame#vendor_drawer > .drawer) { grid-template-columns: 1fr 380px; }
.drawer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 12px; }
.drawer .head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer .head .grow { flex: 1; }
.drawer .body { padding: 12px 16px; }
.drawer .field { grid-template-columns: 120px 1fr; padding: 6px 0; }
.drawer .field label { font-size: 13px; }
.drawer .foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.drawer .foot .grow { flex: 1; }

/* ---- flash, report ------------------------------------------------------ */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.flash.danger { background: var(--danger-soft); color: var(--danger); }
.report { list-style: none; margin: 0; padding: 0; }
.report li { padding: 7px 10px; border-bottom: 1px solid #EDF0F3; font-size: 14px; display: flex; gap: 10px; }
.report li:last-child { border-bottom: 0; }
.report .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; height: fit-content; margin-top: 2px; }
.report .tag.note { background: #EEF1F4; color: var(--muted); }
.report .tag.warn { background: var(--warn-soft); color: var(--warn); }
.report .tag.refused { background: var(--danger-soft); color: var(--danger); }
.report .tag.add { background: var(--ok-soft); color: var(--ok); }
.report .tag.upd { background: var(--accent-soft); color: var(--accent); }
.steps { display: flex; gap: 20px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.steps .step { display: flex; gap: 8px; align-items: center; }
.steps .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .on .n { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps .done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 8px; padding: 26px; text-align: center; color: var(--muted); background: #FAFBFC; }

/* ---- the chart builder -------------------------------------------------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method { border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; background: var(--surface); cursor: pointer; }
.method.on { border-color: var(--accent); background: var(--accent-soft); }
.method .n { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.method .t { font-weight: 650; }
.method .d { font-size: 13px; color: var(--muted); }
.bands { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.band { display: grid; grid-template-columns: 170px 150px 1fr; gap: 8px 14px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #EDF0F3; font-size: 14px; }
.band:last-child { border-bottom: 0; }
.band.fat { background: #F3F6FA; font-weight: 600; }
.band .starts { color: var(--muted); font-size: 13px; }
.band input { font: inherit; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; width: 84px; text-align: right; }
.band .params { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.band .params label { color: var(--muted); }
.band .params b { color: var(--danger); }
.coverage { padding: 8px 12px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }
.coverage.ok { background: var(--ok-soft); color: var(--ok); }
table.grid { border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
table.grid th { background: #EEF1F4; padding: 4px 6px; font-weight: 600; color: var(--muted); position: sticky; }
table.grid td { padding: 3px 6px; text-align: right; border: 1px solid #fff; min-width: 46px; }
table.grid td.h0 { background: #EAF2FB; } table.grid td.h1 { background: #D6E5F7; } table.grid td.h2 { background: #BFD6F1; }
table.grid td.h3 { background: #A5C5EA; } table.grid td.h4 { background: #8AB2E2; } table.grid td.h5 { background: #6E9ED8; color: #fff; }
table.grid td.h6 { background: #5389CC; color: #fff; } table.grid td.h7 { background: #3B73BE; color: #fff; }
table.grid td.ovr { background: var(--warn-soft); color: var(--warn); font-weight: 700; outline: 2px solid var(--warn); outline-offset: -2px; }
table.grid td.ovr s { color: var(--muted); font-weight: 400; margin-right: 3px; }
.grid-wrap { overflow: auto; max-height: 360px; border: 1px solid var(--line); border-radius: 8px; }
.legend { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---- summary card (print) ------------------------------------------------ */
.card-print { border: 1px solid var(--line-strong); padding: 18px 22px; background: #fff; max-width: 640px; }
.card-print .fpbig { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .12em; margin: 6px 0; }
@media print { .topbar, .crumbs, .tabs, .toolbar, .btn, .actions { display: none !important; } body { background: #fff; } }


/* ---- additions the live pages need (the mockups are single files) --------- */
/* The vendor roster's drawer lives in a Turbo Frame that is EMPTY until a row is
   opened; an empty frame must not reserve its 380px column. */
.split:has(> turbo-frame:empty) { grid-template-columns: 1fr; }
.split > turbo-frame:empty { display: none; }
/* The bulk bar is hidden until the Stimulus `bulk` controller counts a selection. */
.bulk[hidden] { display: none; }
/* Forms post through real <form> elements; the mockups' .btn is an <a>. */
button.btn { font-family: inherit; }
.field textarea { min-height: 160px; font-family: var(--mono); font-size: 13px; max-width: 100%; }
.field input[type=file] { font: inherit; }
/* One line under a field when the server asks for the rank confirm (ruling Q-U8). */
.confirm-line { background: var(--warn-soft); color: var(--warn); border-radius: 6px;
  padding: 8px 10px; font-size: 13px; }
.errors { margin: 0 0 12px; }
.errors li { list-style: none; }

/* ---- V0.3: the chart builder's own additions ------------------------------
   What a single-file mockup could not express: 05b's inline styles, the row
   menu as a <details>, and the live states of the preview. No token changes. */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; max-width: 900px; }
.six .field { grid-template-columns: 1fr; padding: 4px 0; }
.six .field label { padding: 0; font-size: 13px; }
.six .field input { max-width: 160px; }
.six .field .help { font-size: 12px; }
.cliff { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 8px 12px;
  font-size: 13px; margin-top: 10px; max-width: 620px; }
.cliff:empty { display: none; }
.dialog { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  box-shadow: var(--shadow); padding: 16px 18px; max-width: 460px; margin-bottom: 16px; }
.dialog h3 { margin-bottom: 8px; }
.dialog .field { grid-template-columns: 90px 1fr; padding: 6px 0; }
/* The row menu: a <details>, no controller (D13). It must escape its card, so
   the card that holds the table sets overflow: visible. */
.rowmenu { position: relative; display: inline-block; }
.rowmenu > summary { list-style: none; cursor: pointer; padding: 0 6px; }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu .menu { position: absolute; right: 0; margin-top: 4px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow);
  min-width: 190px; z-index: 5; text-align: left; }
.rowmenu .menu a, .rowmenu .menu span.disabled, .rowmenu .menu button {
  display: block; width: 100%; text-align: left; padding: 9px 14px; color: var(--ink);
  background: none; border: 0; font: inherit; cursor: pointer; }
.rowmenu .menu a:hover, .rowmenu .menu button:hover { background: var(--accent-soft); text-decoration: none; }
.rowmenu .menu button.danger { color: var(--danger); }
.rowmenu .menu span.disabled { color: var(--muted); cursor: default; }
.rowmenu .menu .sep { border-top: 1px solid var(--line); margin: 4px 0; }
/* A refusal after a good picture: the grid keeps its last good state, dimmed. */
.grid-wrap.stale { opacity: .5; }
.grid-wrap .waiting { padding: 26px; text-align: center; color: var(--muted); font-family: var(--sans); }
table.grid td .cell-edit { width: 60px; text-align: right; font: inherit; font-family: var(--mono);
  font-size: 12px; padding: 1px 3px; border: 1px solid var(--accent); border-radius: 4px; }
ul.overrides { list-style: none; margin: 4px 0; padding: 0; font-size: 12px; }
ul.overrides li { padding: 2px 0; }
.legend .dropped { color: var(--warn); }
/* The method cards ARE the control; the radio inside each one is not shown. */
.methods input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.methods label.method { display: block; margin: 0; }
.band [hidden], .bands [hidden] { display: none; }

/* ---- V0.4: the coverage block (mockup 06b) --------------------------------
   A fourth flash tone for a verdict that is neither good news nor a warning:
   complete now, with something to remember later. */
.flash.note { background: #EEF1F4; color: var(--muted); }
.flash .head { font-weight: 650; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.flash li { margin: 3px 0; }
.flash li.later { color: var(--muted); }
.flash li.note { color: var(--muted); font-size: 13px; }
.flash .foot { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.flash.warn .foot, .flash.ok .foot { opacity: .85; }
/* The customers list's marker. */
.gaps { color: var(--warn); font-weight: 600; font-size: 12px; margin-left: 4px; }

/* ---- V0.4: the validation panel (mockup 06c) ------------------------------
   The import report's list idiom, with an ACTION at the line's end and a
   verdict per block. */
.report li .act { margin-left: auto; white-space: nowrap; }
.report li .act .btn { vertical-align: middle; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--danger); }
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.toolbar h2 { margin: 0; }
.toolbar .win { font-size: 13px; color: var(--muted); }

/* ---- V0.4: the milk-types check rows (mockup 06) -------------------------- */
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checks label input { margin-top: 4px; }
.checks .d { font-size: 13px; color: var(--muted); font-weight: 400; }
.checks label.fixed { color: var(--muted); }
.checks label.fixed b { color: var(--ink); font-weight: 500; }

/* ---- V0.5: the generations (mockups 07, 07b, 07c, 07d) ---------------------
   What the single-file mockups carried in their own <style> blocks, plus the
   three the TRANSLATION's 9.3 names. No token changes. */

/* The tab: the kind's headline in the toolbar, the fingerprint cell, the rows. */
.toolbar .head { font-size: 13px; color: var(--muted); }
.toolbar .head b { color: var(--ink); }
table.list td.fpcell a { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
table.list tr.off td .fp { color: var(--muted); }
table.list td.mono { font-family: var(--mono); font-size: 13px; }
/* A definition carried by a generation, and one that has moved since. */
.badge.changed { background: var(--warn-soft); color: var(--warn); font-weight: 600; letter-spacing: 0; }

/* The publish page: what will be frozen, its fingerprint, and the one decision. */
.chooser { padding: 10px 12px; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 220px 1fr; gap: 6px 18px; font-size: 14px; }
.chooser .lab { font-weight: 600; padding-top: 6px; }
.chooser .opts { display: flex; flex-direction: column; gap: 6px; }
.chooser .opts label { display: inline-flex; align-items: center; gap: 8px; }
.chooser input[type=text] { border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 8px;
  font: inherit; width: 110px; }
.chooser .help { color: var(--muted); font-size: 13px; }
.chooser .error { font-size: 13px; color: var(--danger); font-weight: 600; }
.callout { padding: 8px 12px; font-size: 14px; border-top: 1px solid var(--line);
  background: var(--warn-soft); color: var(--warn); }
.callout.info { background: var(--accent-soft); color: var(--accent); }
.freeze { display: grid; grid-template-columns: 1fr 260px; gap: 0; border-top: 1px solid var(--line); }
.freeze .files { padding: 10px 12px; font-size: 14px; }
.freeze .files table { border-collapse: collapse; }
.freeze .files td { padding: 3px 10px 3px 0; font-family: var(--mono); font-size: 13px; }
.freeze .files td.sz { color: var(--muted); text-align: right; }
.freeze .fpbox { border-left: 1px solid var(--line); padding: 12px 14px; }
.freeze .fpbox .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.freeze .fpbox .s { font-size: 13px; color: var(--muted); }
.decide { display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  border-top: 1px solid var(--line); background: #FAFBFC; }
.decide label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.decide .grow { flex: 1; }
.decide input.note { border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px;
  font: inherit; width: 280px; }
/* The head's fingerprint, on the publish page and the generation page. */
.fp.big { font-size: 28px; }

/* The generation page: the download card, the drive's report, the diff. */
.history { font-size: 13px; color: var(--muted); margin-top: 8px; }
.report .tag.done { background: var(--ok-soft); color: var(--ok); }
.report .tag.stopped { background: var(--warn-soft); color: var(--warn); }
.report .tag.failed { background: var(--danger-soft); color: var(--danger); }
.verified { padding: 10px 12px; background: var(--ok-soft); color: var(--ok); font-weight: 650;
  border-radius: 6px; margin-top: 8px; }
.refusal { padding: 10px 12px; background: var(--danger-soft); color: var(--danger); border-radius: 6px;
  margin-top: 8px; font-size: 14px; }
.refusal label { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  color: var(--ink); font-weight: 600; }
.verified[hidden], .refusal[hidden] { display: none; }
.diff details summary { cursor: pointer; color: var(--accent); }

/* The printable summary card (mockup 07d). */
.card-print .brandline { display: flex; align-items: center; gap: 10px; font-size: 12px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-print .brandline .grow { flex: 1; }
.card-print h1 { font-size: 20px; margin: 6px 0 2px; }
.card-print .sub { margin-bottom: 12px; }
.card-print dl { display: grid; grid-template-columns: 1fr; gap: 4px 12px; margin: 0 0 12px; }
.card-print dt { color: var(--muted); margin: 0; }
.card-print dd { margin: 0; }
.card-print .ascii { font-family: var(--mono); font-size: 13px; white-space: pre;
  text-decoration: none; margin: 0 0 12px; overflow-x: auto; }
.card-print .verdict { display: block; padding: 8px 10px; border-radius: 6px; margin: 0 0 14px; }
.card-print .verdict::before { content: none; }
.card-print .verdict.ok { background: var(--ok-soft); color: var(--ok); }
.card-print .verdict.warn { background: var(--warn-soft); color: var(--warn); }
.card-print .fpblock { border-top: 2px solid var(--ink); padding-top: 12px; text-align: center; }
.card-print .fpblock .k { font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; }
.card-print .fpblock .s { font-size: 13px; }
.card-print .foot { margin-top: 14px; font-size: 11px; font-family: var(--mono); word-break: break-all; }
.printbar { display: flex; gap: 8px; align-items: center; }
@media print { .printbar { display: none !important; } .cardpage { margin: 0; max-width: none; }
  .card-print { border: 0; } }
