/* RNDMFG order tracker v3 — one stylesheet, light and dark from the same
   tokens. Bigger type and click targets than v2: the people using this
   stand at a packing table, not a desk. */
:root {
  --ground: #EEF2F6; --surface: #FFFFFF; --sunk: #F5F7FA; --ink: #16202E; --muted: #5B6778; --faint: #98A3B2;
  --line: #D9E0E8; --accent: #0E7C70; --accent-ink: #FFFFFF; --accent-soft: #DDF1EE;
  --warn: #9A5B0C; --warn-soft: #FBEFD9; --alert: #B42318; --alert-soft: #FCE8E6;
  --done: #1F7A4F; --done-soft: #E2F2E9; --info: #2B5C9E; --info-soft: #E5EDF8;
  --violet: #6D28D9; --violet-soft: #EDE7F9;
  --shadow: 0 1px 2px rgba(18, 32, 51, .06), 0 8px 28px rgba(18, 32, 51, .08);
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Barlow Semi Condensed", "Arial Narrow", "IBM Plex Sans", sans-serif;
  --side-w: 232px; --list-w: 400px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D141D; --surface: #151F2B; --sunk: #111A24; --ink: #E4EAF1; --muted: #9AA7B8; --faint: #5F6C7D;
    --line: #26323F; --accent: #3CC0B0; --accent-ink: #062521; --accent-soft: #123330;
    --warn: #E9B04F; --warn-soft: #2F2513; --alert: #F2857A; --alert-soft: #361B1B;
    --done: #62C993; --done-soft: #142A1F; --info: #86B3EE; --info-soft: #152438;
    --violet: #C4B5FD; --violet-soft: #241C3A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --ground: #0D141D; --surface: #151F2B; --sunk: #111A24; --ink: #E4EAF1; --muted: #9AA7B8; --faint: #5F6C7D;
  --line: #26323F; --accent: #3CC0B0; --accent-ink: #062521; --accent-soft: #123330;
  --warn: #E9B04F; --warn-soft: #2F2513; --alert: #F2857A; --alert-soft: #361B1B;
  --done: #62C993; --done-soft: #142A1F; --info: #86B3EE; --info-soft: #152438;
  --violet: #C4B5FD; --violet-soft: #241C3A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 11px; font-size: 15px;
  min-height: 38px; color: var(--ink);
}
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); }
input[type=file] { padding: 6px; }
textarea { min-height: 0; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 14px;
  font-size: 14.5px; font-weight: 500; cursor: pointer; min-height: 38px; white-space: nowrap; text-decoration: none; color: inherit;
}
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger, .btn.danger { color: var(--alert); border-color: var(--alert); }
button.small, .btn.small { padding: 4px 10px; min-height: 30px; font-size: 13.5px; }
.quiet { color: var(--accent); background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; font-size: 14px; font-weight: 500; }
.quiet:hover { text-decoration: underline; }
h1 { font: 600 26px/1.15 var(--display); margin: 0; }
h2 { font: 600 19px/1.2 var(--display); margin: 22px 0 10px; }
h3 { font: 600 16px/1.2 var(--display); margin: 16px 0 8px; display: flex; align-items: baseline; gap: 8px; }
h3:first-child { margin-top: 0; }
h3 .ct, h2 .ct { font: 500 13px var(--sans); color: var(--muted); }
p { margin: 0 0 8px; }
.mono, .id { font-family: var(--mono); }
.sub { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.sub.warn { color: var(--warn); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.msg { background: var(--done-soft); color: var(--done); border-radius: 8px; padding: 9px 14px; font-size: 14px; margin: 0 0 14px; }
.msg.bad { background: var(--alert-soft); color: var(--alert); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.id { font-family: var(--mono); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
table.list td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.badge, .tag, .pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.badge.short, .tag, .pill.flag { background: var(--warn-soft); color: var(--warn); }
.badge.full, .pill.ok, .tag.done { background: var(--done-soft); color: var(--done); }
.badge.open, .tag.info { background: var(--info-soft); color: var(--info); }
.badge.cancelled, .tag.g { background: var(--line); color: var(--muted); }
.pill.alert, .tag.a { background: var(--alert-soft); color: var(--alert); }
.tag.violet { background: var(--violet-soft); color: var(--violet); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.chip.done { background: var(--done-soft); color: var(--done); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.info { background: var(--info-soft); color: var(--info); } .chip.alert { background: var(--alert-soft); color: var(--alert); }
.chip.grey { background: var(--line); color: var(--muted); } .chip.violet { background: var(--violet-soft); color: var(--violet); }
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 5px 10px; font-size: 13px; }
.grid-dept { display: grid; grid-template-columns: 90px 1fr; gap: 8px; max-width: 460px; margin-bottom: 8px; }
.grid-thresh { display: grid; grid-template-columns: 1fr 140px 140px; gap: 8px; align-items: center; max-width: 620px; margin-bottom: 8px; }
.grid-thresh .h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fields label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); align-content: start; }
.fields input, .fields select, .fields textarea { width: 100%; background: var(--sunk); }
.fields .full { grid-column: 1 / -1; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.hist li { display: grid; grid-template-columns: 130px 110px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.hist li:first-child { border-top: 0; } .hist .w { color: var(--muted); } .hist .b { font-weight: 600; }
@media (max-width: 700px) { .hist li { grid-template-columns: 1fr; gap: 2px; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pgrid a { text-decoration: none; color: inherit; font-size: 12px; }
.pgrid img { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; display: block; box-shadow: inset 0 0 0 1px var(--line); background: var(--sunk); }
.pgrid .pdf { height: 88px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.filechip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding: 6px 11px; border-radius: 8px; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line); color: inherit; margin: 0 6px 6px 0; }
.filechip .ficon { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }
.filechip .flabel { font-family: var(--mono); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--sunk); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px 12px; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font: 700 18px/1 var(--display); letter-spacing: .06em; padding: 4px 8px 12px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); }
.brand small { font: 500 11.5px var(--sans); color: var(--muted); letter-spacing: 0; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); margin: 0 2px 8px; min-height: 40px; }
.search svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search input { background: none; border: 0; outline: 0; width: 100%; min-height: 0; padding: 6px 0; font-size: 14px; }
.side details { margin: 0; }
.side summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); user-select: none; }
.side summary::-webkit-details-marker { display: none; }
.side summary .tot { font: 600 11.5px/1 var(--mono); color: var(--warn); letter-spacing: 0; text-transform: none; }
.side details[open] summary .tot { display: none; }
.side summary::after { content: "▸"; margin-left: 6px; font-size: 11px; color: var(--faint); }
.side details[open] summary::after { content: "▾"; }
.side a.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 15px;
  color: var(--ink); text-decoration: none; min-height: 40px; }
.side a.nav:hover { background: var(--surface); }
.side a.nav.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.side .count { font: 600 12px/1 var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.side .count.hot { background: var(--warn-soft); color: var(--warn); }
.side .count.alert { background: var(--alert-soft); color: var(--alert); }
.side .foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 2px; }
.side .me { font-size: 13px; color: var(--muted); padding: 8px 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.side .me a { color: var(--muted); }
.sidebtn { display: none; }

.work { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.work > .panes, .work > .detail { flex: 1; min-height: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.top .grow { flex: 1; }
.top .sub { margin-top: 2px; }
.attn { display: flex; gap: 6px; flex-wrap: wrap; }
.attn a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; white-space: nowrap;
  display: inline-flex; gap: 7px; align-items: center; color: inherit; text-decoration: none; min-height: 34px; }
.attn a i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.attn .a i { background: var(--alert); } .attn .w i { background: var(--warn); } .attn .n i { background: var(--info); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg a, .seg button { border: 0; border-radius: 0; background: none; padding: 7px 13px; font-size: 14px; color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.seg a.on, .seg button.on { background: var(--ink); color: var(--surface); }
.daynav { display: flex; gap: 6px; align-items: center; }
.daynav input[type=date] { min-height: 36px; padding: 4px 8px; }

.panes { display: grid; grid-template-columns: var(--list-w) minmax(0, 1fr); min-height: 0; }
.panes.focus { grid-template-columns: minmax(0, 1fr); }
.panes.focus .list { display: none; }
.panes.wide { grid-template-columns: minmax(0, 1fr); }
.list { border-right: 1px solid var(--line); background: var(--sunk); display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.panes.wide .list { border-right: 0; background: var(--surface); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.tools .fchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; cursor: pointer;
  color: var(--muted); text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.tools .fchip.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.tools .fchip select { border: 0; background: none; font-size: 13.5px; color: inherit; padding: 0; min-height: 0; max-width: 170px; }
.tools details.more { width: 100%; }
.tools details.more summary { list-style: none; cursor: pointer; font-size: 13.5px; color: var(--accent); padding: 4px 2px; min-height: 30px; display: inline-flex; align-items: center; }
.tools details.more summary::-webkit-details-marker { display: none; }
.tools details.more .morebody { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.rows { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.rows li { position: relative; border-radius: 9px; }
.rows li > a.rowlink { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px;
  color: inherit; text-decoration: none; min-height: 44px; }
.rows li:hover > a.rowlink { background: var(--surface); }
.rows li.on > a.rowlink { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rows .id { font: 600 13.5px var(--mono); }
.rows .r { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .r.late { color: var(--warn); font-weight: 600; }
.rows .r.bad { color: var(--alert); font-weight: 600; }
.rows .r.good { color: var(--done); font-weight: 600; }
.rows .cust { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: 1 / -1; }
.rows .track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 2px; margin-top: 4px; }
.track i { height: 5px; border-radius: 2px; background: var(--line); }
.track i.d { background: var(--done); opacity: .5; }
.track i.now { background: var(--accent); }
.track i.now.late { background: var(--warn); }
.track i.now.bad { background: var(--alert); }
.rows .empty { padding: 20px 14px; color: var(--muted); font-size: 14px; }
.tag.inrow { margin-left: 6px; font-size: 11px; padding: 1px 7px; vertical-align: 1px; }

.detail { padding: 20px 24px 30px; overflow-y: auto; min-width: 0; position: relative; }
.detail .expand { float: right; margin: 0 0 10px 14px; }
.dhead { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.did { font: 600 26px/1.1 var(--mono); letter-spacing: -.01em; margin: 0 0 2px; }
.dsub { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; margin: 12px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.jump a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.jump a:hover { color: var(--accent); }
.sec { padding: 14px 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1400px) { .two { grid-template-columns: 1fr; } }
.blank { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 15px; max-width: 520px; margin: 0 auto; }
.blank strong { display: block; color: var(--ink); font: 600 20px/1.2 var(--display); margin-bottom: 6px; }

/* journey */
.journey { list-style: none; margin: 0; padding: 0; }
.journey > li { position: relative; padding-left: 32px; }
.journey > li::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.journey > li:first-child::before { top: 14px; } .journey > li:last-child::before { bottom: calc(100% - 14px); }
.dot { position: absolute; left: 2px; top: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--surface); border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.done > .dot { background: var(--done); border-color: var(--done); color: #fff; }
.flag > .dot { background: var(--warn); border-color: var(--warn); color: #fff; }
.bad > .dot { background: var(--alert); border-color: var(--alert); color: #fff; }
.now > .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.skip > .dot { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.skip .gist { color: var(--warn); font-weight: 600; }
.node summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; min-height: 40px; }
.node summary::-webkit-details-marker { display: none; }
.node summary:hover, .node[open] summary { background: var(--sunk); }
.node .step { font-weight: 600; } .node .gist { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .gist .mono { color: var(--ink); font-size: 13px; }
.node .t { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.node .t.late { color: var(--warn); font-weight: 600; } .node .t.bad { color: var(--alert); font-weight: 600; }
.node .body { background: var(--sunk); border-radius: 0 0 8px 8px; padding: 6px 12px 12px; margin-bottom: 4px; font-size: 14px; display: grid; gap: 10px; }
.future .step, .future .gist { color: var(--faint); }
.milestone { padding-left: 32px; margin: 6px 0; }
.milestone span { display: inline-block; font: 600 12.5px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.addmore { padding: 10px 0 0 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini td, .mini th { padding: 6px 8px 6px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mini th { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-top: 0; }
.mini tr:first-child td { border-top: 0; }
.mini td.num { font-variant-numeric: tabular-nums; text-align: right; }

/* board */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 14px; overflow-y: auto; }
.col h4 { font: 600 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; }
.bcard { display: block; background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 6px; font-size: 13.5px; color: inherit; text-decoration: none; }
.bcard:hover { border-color: var(--accent); }
.bcard .id { font: 600 13px var(--mono); display: block; } .bcard .m { color: var(--muted); }
.bcard .late { color: var(--warn); font-weight: 600; } .bcard .bad { color: var(--alert); font-weight: 600; }

/* today */
.strip { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 2.2fr 1.1fr 1.2fr; gap: 0; }
.strip li + li { margin-left: -8px; }
.strip a { display: grid; gap: 2px; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--surface); padding: 12px 16px 12px 26px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.strip li:first-child a { padding-left: 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 9px 0 0 9px; }
.strip li:last-child a { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 9px 9px 0; }
.strip .ph { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.strip .n { font: 600 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.strip .st { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.strip .warnct { color: var(--warn); font-weight: 600; }
.strip a.on { background: var(--accent-soft); }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } .strip li + li { margin-left: 0; } .strip a { clip-path: none !important; border-radius: 9px !important; padding-left: 16px; } }
.needs { list-style: none; margin: 0; padding: 0; }
.needs li { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.needs li:first-child { border-top: 0; }
.needs .sev { align-self: stretch; border-radius: 3px; }
.sev-alert .sev { background: var(--alert); } .sev-warn .sev { background: var(--warn); } .sev-info .sev { background: var(--info); }
.needs .what { font-size: 15px; line-height: 1.4; }
.needs .what b { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.needs .what small { display: block; color: var(--muted); font-size: 13.5px; }
.needs .wait { color: var(--warn); font-weight: 600; }
.needs .sev-alert .wait { color: var(--alert); }
.needs .btn { min-width: 110px; }
.figures { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.figures b { color: var(--ink); font: 600 17px/1 var(--display); margin-right: 3px; }

/* bars (reports) */
.bars { display: grid; gap: 7px; font-size: 13.5px; }
.bars > div { display: grid; grid-template-columns: 150px 1fr 60px; gap: 10px; align-items: center; }
.bars i { display: block; height: 12px; border-radius: 3px; background: var(--accent); opacity: .85; }
.bars i.muted { background: var(--faint); }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; }
.bars a { color: inherit; text-decoration: none; }
.bars .on { font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.d0 { background: #0E7C70; } .d1 { background: #2B5C9E; } .d2 { background: #9A5B0C; } .d3 { background: #6D28D9; } .d4 { background: #B42318; } .d5 { background: #1F7A4F; }
.tbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; }
.tbar .seg { display: block; height: 100%; }

/* labels list */
.linebox { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 560px; }
.linebox textarea { grid-column: 1 / -1; }
.linebox input, .linebox textarea { width: 100%; }

/* print / labels page toolbar reuse */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 30; width: min(320px, 90vw); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .sidebtn { display: inline-flex; }
  .panes { grid-template-columns: 1fr; }
  .panes .detail { border-top: 1px solid var(--line); }
  .list { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .side, .top, .list, .expand { display: none !important; } .shell { display: block; } .panes { display: block; } }
