/* Landfall components: Dispatch Board. Tokens live in tokens.css; nothing here hard codes a colour twice. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.5 var(--font); cursor: default; overflow-x: hidden; min-height: 100vh; font-synthesis: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button, select, summary, label:has(> input[type="checkbox"]), input[type="checkbox"], input[type="file"], input[type="radio"] { cursor: pointer; }
button { font: inherit; color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"],
input[type="date"], input[type="time"], input[type="month"], textarea { cursor: text; }
input[readonly], textarea[readonly] { cursor: default; }
svg { display: block; flex: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; }
.ic.lg { width: 26px; height: 26px; }
.ic.xl { width: 56px; height: 56px; stroke-width: 1.6; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.strong { font-weight: 600; }
.dim { color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.ta-r { text-align: right; }
.small { font-size: var(--fs-sm); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--bg); color: var(--link); padding: 8px 14px; border-radius: var(--r-sm); z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* tones (status words carry meaning only) */
.tone-ok { color: var(--ok-text); }
.tone-bad { color: var(--bad-text); }
.tone-warn { color: var(--warn-text); }
.tone-wait { color: var(--wait-text); }
.tone-muted { color: var(--mute-text); }

/* ---- HOLD banner and header ---------------------------------------------------------------------------- */
.hold { display: flex; align-items: center; gap: 10px; background: var(--hold-bg); color: var(--hold-ink); border-bottom: 2px solid var(--hold-line); padding: 9px var(--gutter); font-weight: 500; font-size: 13px; }
.hold b { font-weight: 600; }
.top { background: var(--top-bg); color: var(--top-ink); position: relative; z-index: 20; }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--top-ink); font-weight: 600; font-size: var(--fs-lg); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; }
.mark-bg { fill: var(--teal); }
.mark-fg { fill: var(--navy); }
.nav { display: flex; gap: 2px; align-self: stretch; flex: 1; flex-wrap: wrap; align-items: stretch; min-width: 0; }
.nav-a, .menu-b:not(.icobtn):not(.userbtn) { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--top-soft); font-weight: 500; font-size: 13.5px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; min-height: 53px; white-space: nowrap; background: none; border-left: 0; border-right: 0; }
.nav-a:hover, .menu-b:hover { color: #fff; text-decoration: none; }
.nav-a[aria-current="page"], .menu-b.is-current { color: #fff; border-bottom-color: var(--teal); }
.top :focus-visible { outline-color: #fff; }
.cnt { font: 600 11px/1 var(--font); padding: 3px 7px; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; }
.cnt.tone-bad { background: var(--bad); color: #fff; }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icobtn, .userbtn { background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: #fff; border-radius: var(--r-sm); height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; padding: 0 8px; min-width: 34px; }
.icobtn:hover, .userbtn:hover { background: rgba(255, 255, 255, .1); }
.who { font-size: 12.5px; color: var(--top-soft); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.bellcount { position: absolute; top: -7px; right: -7px; background: var(--bad); color: #fff; font: 600 10px/17px var(--font); min-width: 17px; height: 17px; border-radius: 9px; text-align: center; padding: 0 4px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font); letter-spacing: .06em; color: #fff; background: rgba(30, 142, 90, .9); padding: 6px 10px; border-radius: var(--r-pill); }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.menu { position: relative; display: flex; align-items: stretch; }
.pop { position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; }
.nav .pop { left: 0; right: auto; top: 100%; }
.menu-list .nav-a { color: var(--ink); min-height: 38px; border: 0; border-radius: var(--r-sm); }
.menu-list .nav-a:hover { background: var(--surface); color: var(--ink); }
.menu-list .nav-a[aria-current="page"] { background: var(--wait-tint); color: var(--wait-text); }
.user-pop p { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.user-pop p b { display: block; }
.user-pop p span { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--r-sm); }
.menu-item:hover { background: var(--surface); }
.alarm-pop { width: 300px; padding: 6px; }
.alarm-pop li { display: grid; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.alarm-pop li:last-child { border-bottom: 0; }
.alarm-pop .muted { padding: 8px; }

/* ---- page layout ---------------------------------------------------------------------------------------- */
#main:focus { outline: none; }
.page { max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--gutter) 64px; }
.narrow { max-width: 680px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1:focus { outline: none; }
h2 { font-size: var(--fs-md); font-weight: 600; }
h3 { font-size: 13.5px; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.lead { font-size: var(--fs-md); }
.crumb { font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.crumb a { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 10px; flex-wrap: wrap; }
.sec-h .n { color: var(--muted); font-size: 13px; }
.sec-h .sp, .sp { flex: 1; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.rail { display: grid; gap: 14px; margin-top: 30px; }
.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 20px; }
.stack { display: grid; gap: 12px; }

/* ---- buttons ---------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: var(--r-sm); padding: 7px 14px; font-weight: 500; font-size: 13px; line-height: 1.3; white-space: nowrap; transition: background var(--t-fast) var(--ease); }
.btn:hover { background: var(--surface); text-decoration: none; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { background: var(--pri-hover); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn.ghost:hover { background: var(--surface); }
.btn:disabled, .btn.pri:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.wide { width: 100%; justify-content: center; padding: 10px 14px; }
.btn .ic { width: 16px; height: 16px; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); text-align: left; font: inherit; }
.linklike:hover { text-decoration: underline; }
.act { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; color: var(--ink); flex: none; }
.act:hover { background: var(--wait-tint); border-color: var(--blue); text-decoration: none; }
.act:disabled { opacity: .45; }
.act .ic { width: 16px; height: 16px; }
.act-gap { width: 30px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.row-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-a { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.form-a.left { justify-content: flex-start; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- form fields --------------------------------------------------------------------------------------------- */
.fld { min-width: 0; }
.fld > label, .fld > .lbl { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.fld .req { color: var(--bad-text); }
.fld input:not([type="checkbox"]):not([type="file"]), .fld select, .fld textarea, .match-f input {
  width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
  font: 400 13.5px var(--font); padding: 6px 10px; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input[readonly] { background: var(--surface); color: var(--muted); }
.fld input:hover:not([readonly]), .fld select:hover, .fld textarea:hover { border-color: var(--muted); }
.fld input[type="file"] { font: inherit; font-size: 13px; max-width: 100%; color: var(--muted); }
.fld input[type="file"]::file-selector-button { font: 500 13px/1 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm, 6px); padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.fld input[type="file"]::file-selector-button:hover { border-color: var(--pri); }
form.card { margin-top: 16px; }
.fld .hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.fld .err { font-size: 12px; color: var(--bad-text); font-weight: 500; margin-top: 3px; }
.fld .err:empty { display: none; }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea, [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 1px var(--bad); }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--blue); margin: 0; flex: none; }
.switch { appearance: none; -webkit-appearance: none; width: 34px !important; height: 20px !important; border-radius: 10px; background: var(--line-strong); position: relative; transition: background var(--t-fast); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--t-fast) var(--ease); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(14px); }
.sw-l, .fld label.sw-l { display: inline-flex; margin-top: 30px; align-items: center; gap: 8px; font-size: 13px; color: var(--ink) !important; }
.filters { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--bg); margin-bottom: 12px; }
.filters.inline { padding: 12px 16px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 12px; }
.frow { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.frow .count { margin-right: auto; }
.fgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.fgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
.w-full { grid-column: 1 / -1; }

/* ---- the incident form ----------------------------------------------------------------------------------------- */
.iform { max-width: 980px; }
.part-f { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px 20px; margin: 0 0 18px; background: var(--bg); min-width: 0; }
.part-f legend { font-weight: 600; font-size: var(--fs-md); padding: 0 8px; margin-left: -8px; }
.part-f > .fgrid2 { padding-top: 12px; }
.err-summary { border: 1px solid var(--bad); border-left-width: 5px; background: var(--bad-tint); color: var(--bad-text); border-radius: var(--r-md); padding: 12px 16px; margin-top: 8px; }
.err-summary ul { margin-top: 6px; display: grid; gap: 2px; list-style: disc; padding-left: 20px; }
.err-summary .linklike { color: var(--bad-text); text-decoration: underline; }
.sig-box { display: grid; gap: 8px; max-width: 560px; }
.sig-pad { width: 100%; aspect-ratio: 900 / 240; background: #FFFFFF; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); touch-action: none; cursor: crosshair; }
.sig-a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sig-type { max-width: 360px; }
.sig-saved { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sig-img { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 90px; width: auto; padding: 4px; }
.thanks { max-width: 620px; margin: 40px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.thanks .form-a { justify-content: center; }

/* ---- chips, review words, tags ------------------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: var(--r-pill); border: 1px solid; font: 500 12.5px/1.35 var(--font); white-space: nowrap; max-width: 100%; }
.chip .ic { width: 15px; height: 15px; stroke-width: 2; }
.chip.tone-ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.chip.tone-bad { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.chip.tone-warn { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.chip.tone-wait { background: var(--wait-tint); border-color: color-mix(in srgb, var(--wait) 40%, transparent); }
.chip.tone-muted { background: var(--mute-tint); border-color: var(--line); border-style: dashed; }
.chip.lg { font-size: var(--fs-md); padding: 6px 14px 6px 10px; gap: 8px; font-weight: 600; }
.chip.lg .ic { width: 20px; height: 20px; }
.rv { font-weight: 600; font-size: 13px; }
.tag, .pill { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 11px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }

/* ---- stepper (the signature) ------------------------------------------------------------------------------------- */
.stepper { display: flex; align-items: flex-start; width: 100%; --n: 16px; }
.stepper.sm { width: 180px; }
.stepper > .st { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.stepper > .st:last-child { flex: 0 0 auto; }
.stepper .node { width: var(--n); height: var(--n); border-radius: 50%; border: 2px solid var(--step-track); background: var(--bg); display: grid; place-items: center; position: relative; z-index: 1; color: #fff; }
.stepper .node .g { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.stepper > .st::after { content: ""; position: absolute; left: var(--n); right: 0; top: calc(var(--n) / 2 - 1px); height: 2px; background: var(--step-track); }
.stepper > .st:last-child::after { display: none; }
.stepper > .st.done .node { background: var(--step-done); border-color: var(--step-done); }
.stepper > .st.done::after { background: var(--step-done); }
.stepper.is-ok > .st.done .node { background: var(--step-ok); border-color: var(--step-ok); }
.stepper.is-ok > .st.done::after { background: var(--step-ok); }
.stepper > .st.cur .node { border-color: var(--step-done); }
.stepper > .st.cur .node::before { content: ""; width: 45%; height: 45%; border-radius: 50%; background: var(--step-done); }
.stepper > .st.fail .node { background: var(--bad); border-color: var(--bad); }
.stepper > .st.held .node { background: var(--warn); border-color: var(--warn); }
.stepper > .st.unc .node { border-color: var(--warn); border-style: dashed; animation: lf-pulse 2s ease-out infinite; }
.stepper > .st.unc .node::before { content: "?"; font: 700 10px/1 var(--font); color: var(--warn-text); }
.stepper > .st.unc::after { background: repeating-linear-gradient(90deg, var(--step-track) 0 4px, transparent 4px 8px); }
.stepper.track-empty .node, .stepper.track-cancelled .node { width: 6px; height: 6px; border: 0; background: var(--step-track); margin: 5px 0; }
.stepper.track-empty > .st::after, .stepper.track-cancelled > .st::after { left: 6px; top: 7px; }
.stepper.track-cancelled > .st::after { background: repeating-linear-gradient(90deg, var(--step-track) 0 3px, transparent 3px 7px); }
@keyframes lf-pulse { 0% { box-shadow: 0 0 0 0 var(--warn); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .stepper > .st.unc .node { animation: none; box-shadow: 0 0 0 3px var(--warn-tint); } }
.stepper .lab { display: none; }
.stepper.lg { --n: 34px; }
.stepper.lg .node { border-width: 3px; }
.stepper.lg > .st::after { height: 4px; top: 15px; }
.stepper.lg > .st.unc .node::before { font-size: 16px; }
.stepper.lg .lab { display: block; margin-top: 10px; padding-right: 10px; }
.stepper.lg .lab b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.stepper.lg .lab span { display: block; font-size: 12.5px; color: var(--muted); }
.stepper.lg > .st.fail .lab b { color: var(--bad-text); }
.stepper.lg > .st.unc .lab b, .stepper.lg > .st.held .lab b { color: var(--warn-text); }
.stepper.lg.is-ok .lab b { color: var(--ok-text); }
.stepper.lg > .st:last-child .lab { padding-right: 0; }
.step-head { position: relative; width: 180px; height: 14px; font-size: 9.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.step-head span { position: absolute; top: 0; white-space: nowrap; }
.step-head span:nth-child(1) { left: 0; }
.step-head span:nth-child(2) { left: 63px; transform: translateX(-50%); }
.step-head span:nth-child(3) { left: 117px; transform: translateX(-50%); }
.step-head span:nth-child(4) { right: 0; }

/* ---- board: pipeline strip, Needs attention banner, alarms --------------------------------------------------------- */
.pipe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.stage { position: relative; padding: 16px 20px 16px 22px; border-right: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 10px; align-content: start; }
.stage:last-child { border-right: 0; background: var(--ok-tint); }
.stage .k { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.stage .nr { font: 500 11px/1 var(--mono); border: 1px solid var(--line); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink); background: var(--bg); }
.stage .name { font-weight: 600; font-size: var(--fs-md); line-height: 1.25; }
.stage .big { grid-row: 2 / 4; grid-column: 2; font-size: var(--fs-num); font-weight: 600; line-height: 1; letter-spacing: -.03em; align-self: center; font-variant-numeric: tabular-nums; }
.stage .how { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.stage.is-ok .k, .stage.is-ok .how, .stage.is-ok .big, .stage.is-ok .name { color: var(--ok-text); }
.stage .chev { position: absolute; right: -9px; top: 50%; margin-top: -10px; z-index: 2; width: 18px; height: 20px; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.stage .chev .ic { width: 14px; height: 14px; }
.side-counts { display: grid; gap: 10px; }
.mini { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mini b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini.tone-warn { border-color: var(--warn); color: var(--warn-text); }
.mini.tone-warn b { color: var(--warn-text); }
.mini.tone-bad { border-color: var(--bad); color: var(--bad-text); }
.mini.tone-bad b { color: var(--bad-text); }
.lane { margin-top: var(--s6); border: 1px solid var(--bad); border-left-width: 6px; border-radius: var(--r-md); background: var(--bad-tint); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 18px; }
.lane .lt { display: flex; align-items: center; gap: 12px; color: var(--bad-text); font-weight: 600; font-size: var(--fs-md); }
.lane .lt .big { font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.lane .parts { display: flex; gap: 22px; flex-wrap: wrap; }
.lane .parts div { font-size: 13px; }
.lane .parts b { font-weight: 600; font-size: var(--fs-lg); margin-right: 6px; font-variant-numeric: tabular-nums; }
.lane-note { font-size: 12.5px; color: var(--bad-text); }
.lane-note a { color: inherit; text-decoration: underline; font-weight: 600; }
.lane.is-clear { border-color: var(--line); border-left-color: var(--ok); background: var(--bg); grid-template-columns: 1fr; }
.lane.is-clear .lt { color: var(--ok-text); font-weight: 500; font-size: 13.5px; }
.card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.card > h2 { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card.pad { padding: 16px 18px; }
.card.pad > h2 { margin: -16px -18px 14px; }
section.card + section.card, .card + .settings-f, .settings-f .card + .card { margin-top: 14px; }
.alarm { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.alarm:last-child { border-bottom: 0; }
.alarm.is-ack { opacity: .8; }
.alarm .a-t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; }
.alarm p { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.alarm .a-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.empty { padding: 18px 16px; font-size: 13px; color: var(--muted); }
.watch li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.watch li:last-child { border-bottom: 0; }
.watch li > span:last-child { color: var(--muted); text-align: right; }
.wd { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---- rows (lists) ------------------------------------------------------------------------------------------------ */
.rows { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.rows.att { border-color: var(--bad); }
.rowhead { display: grid; align-items: end; gap: 14px; padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 500; }
.rowhead:not([class*="-grid"]) { display: flex; align-items: center; }
.rowhead h2 { font-size: 13.5px; color: var(--ink); }
.att .rowhead { background: var(--bad-tint); color: var(--bad-text); }
.row { display: grid; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 56px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface); }
.cell-main { min-width: 0; }
.row .nm { font-weight: 600; font-size: 14px; line-height: 1.3; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.row .meta, .meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta .mono { color: var(--ink); }
.row .why, .why { font-size: 12.5px; color: var(--bad-text); font-weight: 500; overflow-wrap: anywhere; }
.rec-grid { grid-template-columns: minmax(0, 1fr) 180px 220px 140px; }
.row .meta.lines, .meta.lines { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.rep-grid { grid-template-columns: minmax(0, 1fr) 190px 180px 220px 102px; }
.att-grid { grid-template-columns: 22px minmax(0, 1fr) 180px 210px 110px; }
.recv-grid { grid-template-columns: 22px minmax(0, 1fr) 160px 220px; }
.cs-grid { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.4fr); }
.rev-inline { display: none; }
.c-rev { min-width: 0; }
.pick { display: flex; align-items: center; gap: 8px; color: inherit; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface); flex-wrap: wrap; gap: 8px; }
.pg { display: flex; gap: 8px; align-items: center; }
.sticky-a { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); flex-wrap: wrap; }
.confirm-slot:empty { display: none; }
.confirm-slot { flex: 1 1 100%; }

/* ---- confirm bar, notices, states ---------------------------------------------------------------------------------- */
.confirm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--wait); border-left-width: 5px; border-radius: var(--r-md); background: var(--wait-tint); margin: 10px 0; flex-wrap: wrap; }
.confirm.tone-bad { border-color: var(--bad); background: var(--bad-tint); }
.confirm-t { display: grid; gap: 2px; min-width: 0; flex: 1 1 320px; }
.confirm-t b { font-size: 14px; }
.confirm-t span { font-size: 12.5px; color: var(--ink); }
.confirm-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.confirm-status { font-size: 12.5px; color: var(--bad-text); }
.notice { padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); border-left-width: 5px; background: var(--surface); color: var(--ink); font-size: 13px; margin: 10px 0; overflow-wrap: anywhere; }
.notice.tone-ok { border-color: var(--ok); background: var(--ok-tint); }
.notice.tone-bad { border-color: var(--bad); background: var(--bad-tint); }
.notice.tone-warn { border-color: var(--warn); background: var(--warn-tint); }
.notice.tone-muted { border-left-color: var(--line-strong); }
.notice ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.notice .quote { display: block; margin: 6px 0; }
.quote { white-space: pre-wrap; border-left: 3px solid var(--line-strong); padding: 2px 0 2px 10px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.state { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; justify-items: center; }
.state b { color: var(--ink); font-size: 14px; }
.state-loading { display: flex; justify-content: center; align-items: center; gap: 10px; }
.state-error { display: flex; text-align: left; gap: 12px; align-items: flex-start; justify-content: flex-start; border: 1px solid var(--bad); border-radius: var(--r-md); background: var(--bad-tint); color: var(--bad-text); }
.state-error b { color: var(--bad-text); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: lf-spin .8s linear infinite; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-top-color: var(--line-strong); } }
.inline-panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 12px 0; background: var(--surface); display: grid; gap: 10px; }
.action-panel:empty { display: none; }

/* ---- report page ------------------------------------------------------------------------------------------------- */
.rhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.refline { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.refline .mono { color: var(--ink); }
.dest { display: flex; gap: 8px 26px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; }
.dest dt { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dest dd { font-weight: 600; }
.bigstep { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 26px 18px; background: var(--surface); }
.bigstep.tone-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.bigstep.tone-bad { border-color: var(--bad); }
.bigstep .res { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; color: var(--ink); }
.bigstep .res-t { font-size: 13.5px; color: var(--ink); flex: 1 1 300px; }
.jobs { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.job { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.job:last-child { border-bottom: 0; }
.job .jn { display: grid; gap: 4px; justify-items: start; }
.job .jn b { font-size: 14px; }
.job .jn small { color: var(--muted); font-size: 12px; }
.job .confirm { grid-column: 1 / -1; }
.kv { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 500; }
.receipt { margin-top: 8px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.receipt.tone-ok { background: var(--ok-tint); }
.receipt.tone-bad { background: var(--bad-tint); }
.receipt.tone-warn { background: var(--warn-tint); }
.attempts { margin-top: 10px; font-size: 12.5px; }
.attempts summary { color: var(--link); font-weight: 500; }
.tl li { display: grid; grid-template-columns: 112px 18px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; }
.tl .tm { font-size: 12px; color: var(--muted); text-align: right; padding-top: 1px; line-height: 1.4; }
.tl .pt { position: relative; display: flex; justify-content: center; }
.tl .pt::before { content: ""; position: absolute; top: 18px; bottom: -16px; width: 2px; background: var(--line); }
.tl li:last-child .pt::before { display: none; }
.tl .pt i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; margin-top: 4px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px currentColor; }
.tl li.tone-muted .pt i { background: var(--mute); }
.tl b { font-weight: 600; font-size: 13.5px; display: block; line-height: 1.35; color: var(--ink); }
.tl p { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.tl .quote { margin-top: 4px; }
.review .fld { margin-bottom: 12px; }
.parts4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.part { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.part h3 { padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.part dl { padding: 6px 16px 10px; display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); gap: 0 14px; font-size: 13px; }
.part dt { color: var(--muted); padding: 5px 0; font-size: 12.5px; }
.part dd { padding: 5px 0; font-weight: 500; overflow-wrap: anywhere; }
.part dd.long { font-weight: 400; line-height: 1.5; white-space: pre-wrap; }
.part dd.none { color: var(--muted); font-weight: 400; }

/* ---- tables ------------------------------------------------------------------------------------------------------ */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; background: var(--bg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-off td { color: var(--muted); }
.tbl tr.editing td { background: var(--surface); vertical-align: top; }
.tbl tr.editing input { width: 100%; min-height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; padding: 4px 8px; }
.tbl select { min-height: 32px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; padding: 2px 6px; }
.tbl .err { color: var(--bad-text); font-size: 12px; }
.attempts .tbl { margin-top: 6px; border: 1px solid var(--line); }

/* ---- recovery ---------------------------------------------------------------------------------------------------- */
.rec-top { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rec-top > * { margin-top: 0 !important; }
.rec-count { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); display: grid; align-content: center; gap: 4px; }
.rec-count .big { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.mini-list ul { max-height: 180px; overflow-y: auto; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-list li:last-child { border-bottom: 0; }
.prog { margin-top: 14px; }
.pbar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pbar.thin { height: 8px; margin-top: 12px; }
.pbar .seg { height: 100%; transition: width var(--t-med) var(--ease); }
.seg-ok { background: var(--ok); }
.seg-wait { background: var(--wait); }
.seg-waitsoft { background: color-mix(in srgb, var(--wait) 45%, var(--surface-2)); }
.seg-bad { background: var(--bad); }
.seg-badsoft { background: repeating-linear-gradient(45deg, var(--bad) 0 4px, color-mix(in srgb, var(--bad) 55%, var(--surface-2)) 4px 8px); }
.seg-muted { background: var(--mute); }
.seg-empty { background: var(--surface-2); border: 1px solid var(--line-strong); }
.plegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.plegend li { display: flex; align-items: center; gap: 6px; }
.plegend b { color: var(--ink); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rec-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap; align-items: center; }
.rows.cannot { margin-top: 18px; border-color: var(--line-strong); }

/* ---- receipts ---------------------------------------------------------------------------------------------------- */
.rcpt { padding: 14px 16px; display: grid; gap: 10px; }
.rcpt-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kvl { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 13px; }
.kvl dt { font-size: 11.5px; color: var(--muted); }
.kvl dd { font-weight: 500; overflow-wrap: anywhere; }
.excerpt { white-space: pre-wrap; font: 12px/1.5 var(--mono); background: var(--surface); padding: 10px; border-radius: var(--r-sm); max-height: 220px; overflow: auto; margin-top: 6px; }
.match-f { display: grid; grid-template-columns: 220px auto 1fr; gap: 6px 10px; align-items: end; }
.match-f .fld { display: contents; }
.match-f .fld > label { grid-column: 1 / -1; }
.match-f .fld > input { grid-column: 1; }
.match-f .fld > .hint { grid-column: 1 / -1; grid-row: 3; margin: 0; }
.match-f .fld > .err { grid-column: 1 / -1; grid-row: 4; }
.match-f > button { grid-column: 2; grid-row: 2; height: 36px; }
.match-f > [role="status"] { grid-column: 1 / -1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- stat tiles (imports summary) and form header ------------------------------------------------------------------ */
.imp-sum:empty { display: none; }
.imp-sum { margin: 22px 0 6px; }
.imp-sum-h { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; display: grid; gap: 2px; background: var(--bg); min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .big { font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .how { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.stat.tone-ok { border-color: var(--ok); }
.stat.tone-ok .big { color: var(--ok-text); }
.stat.tone-warn { border-color: var(--warn); }
.stat.tone-warn .big { color: var(--warn-text); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.logos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.logos img { width: 150px; height: 50px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm, 6px); background: #fff; }
.form-rail { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 12px 14px; margin: 4px 0 18px; }
.rail-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rail-h h2 { font-size: 13.5px; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pr-b { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.pr-b:hover { border-color: var(--wait); }
.pr-t { display: grid; min-width: 0; }
.pr-t b { font-size: 13.5px; }
.pr-n { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.pr-ic .ic { width: 18px; height: 18px; }
.pr.tone-ok .pr-ic { color: var(--ok); }
.pr.tone-wait .pr-ic { color: var(--wait); }
.pr.tone-muted .pr-ic { color: var(--muted); }
.pr-b .pr-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; border: 0; background: var(--step-track); overflow: hidden; }
.pr-bar .pr-fill { display: block; height: 100%; width: 0; background: var(--wait); transition: width .2s; }
.pr.tone-ok .pr-fill { background: var(--ok); }
@media (prefers-reduced-motion: reduce) { .pr-bar .pr-fill { transition: none; } }
@media (max-width: 900px) { .pr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- settings ---------------------------------------------------------------------------------------------------- */
.mode-card .mode-now { display: flex; gap: 14px; align-items: center; }
.mode-card.is-hold { border-color: var(--hold-line); }
.mode-card.is-hold .mode-now { color: var(--warn-text); }
.mode-card.is-live { border-color: var(--ok); }
.mode-card.is-live .mode-now { color: var(--ok-text); }
.mode-card .mode-now b { font-size: var(--fs-md); }
.settings-f .sticky-a { margin-top: 6px; position: static; background: none; }

/* ---- dialog, idle bar ---------------------------------------------------------------------------------------------- */
.dlg { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; background: var(--bg); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
.dlg::backdrop { background: rgba(9, 22, 40, .55); }
.dlg-body { padding: 20px 22px; display: grid; gap: 12px; }
.dlg-a { display: flex; gap: 10px; justify-content: flex-end; }
.dlg .err:empty { display: none; }
.dlg .err { color: var(--bad-text); font-size: 12.5px; }
.idle-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--warn); border-left-width: 5px; border-radius: var(--r-md); padding: 12px 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-pop); z-index: 40; max-width: calc(100vw - 32px); flex-wrap: wrap; }

/* ---- sign in ------------------------------------------------------------------------------------------------------- */
.login-body { background: var(--top-bg); display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; display: grid; place-items: center; }
.login-card { width: min(400px, 100%); background: var(--bg); border-radius: 14px; padding: 28px 28px 22px; display: grid; gap: 12px; box-shadow: var(--shadow-pop); }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-lg); color: var(--ink); margin-bottom: 6px; }
.login-card form { display: grid; gap: 12px; margin-top: 4px; }
.login-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.login-card .notice { margin: 0; }

/* ---- responsive ------------------------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 24px; }
  .top-in { gap: 10px 18px; padding-top: 6px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -12px; }
  .nav-a, .menu-b:not(.icobtn):not(.userbtn) { min-height: 42px; }
  .tools { margin-left: auto; }
  .who { display: none; }
  .rec-top { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .pipe-wrap { grid-template-columns: minmax(0, 1fr); }
  .side-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-grid { grid-template-columns: minmax(0, 1fr) 180px 214px 102px; }
  .rep-grid > .c-rev { display: none; }
  .rev-inline { display: inline; }
  .fgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(2) { border-right: 0; }
  .stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stage .chev { display: none; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .two, .two.even { grid-template-columns: minmax(0, 1fr); }
  .parts4 { grid-template-columns: minmax(0, 1fr); }
  .rhead { grid-template-columns: minmax(0, 1fr); }
  .head-actions { justify-content: flex-start; }
  .rec-grid { grid-template-columns: minmax(0, 1fr) 180px 210px; }
  .rec-grid > :last-child { display: none; }
  .att-grid { grid-template-columns: 22px minmax(0, 1fr) 180px 200px; }
  .att-grid > :last-child { display: none; }
  .rep-grid { grid-template-columns: minmax(0, 1fr) 180px 200px 70px; }
  .rep-grid .acts .act:nth-child(2) { display: none; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .fgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rec-count { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .fgrid2, .fgrid3, .fgrid4 { grid-template-columns: minmax(0, 1fr); }
  .rep-grid, .rec-grid, .att-grid, .recv-grid { grid-template-columns: minmax(0, 1fr); }
  .rowhead[class*="-grid"] { display: none; }
  .att-grid { grid-template-columns: 22px minmax(0, 1fr); }
  .att-grid > .stepper, .recv-grid > :first-child:empty { display: none; }
  .tl li { grid-template-columns: 80px 18px minmax(0, 1fr); }
  .rec-top { grid-template-columns: minmax(0, 1fr); }
  .cs-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
