/* RNDMFG Dead stock — one stylesheet, light and dark from the same tokens
   (copied from Against Order / tracker v3 so the apps look like one family). */
: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; } }

/* ---------------------------------------------------------------- against order */
.side .nav .count.plain { background: var(--line); color: var(--muted); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.stepper form { display: inline; margin: 0; }
.stepper .step { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 13.5px; padding: 5px 12px; min-height: 32px;
  background: var(--sunk); color: var(--muted); border: 1px solid transparent; }
.stepper .step i { font-style: normal; font-size: 11px; font-family: var(--mono); opacity: .8; }
.stepper .step.done { background: var(--done-soft); color: var(--done); }
.stepper .step.now { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.stepper button.step:hover { border-color: var(--accent); color: var(--accent); }
.stepper button.step.done:hover { color: var(--done); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 8px 0; }
.imgs figure { margin: 0; position: relative; }
.imgs img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; display: block; box-shadow: inset 0 0 0 1px var(--line); background: var(--sunk); }
.imgs figcaption { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; justify-content: space-between; gap: 6px; }
.imgs figcaption form { display: inline; }
.imgs .add { border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; min-height: 100px; color: var(--accent); font-size: 13.5px; cursor: pointer; text-align: center; padding: 8px; }
.imgs .add:hover { border-color: var(--accent); }
.imgs .pdf { height: 100px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.qtybig { font: 600 30px/1 var(--display); }
.price-big { font: 600 32px/1 var(--display); letter-spacing: -.01em; }
.price-big small { font: 500 14px var(--sans); color: var(--muted); }
.datebox { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.datebox .db { background: var(--sunk); border-radius: 8px; padding: 10px 12px; }
.datebox .db .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.datebox .db .v { font: 600 18px/1.2 var(--display); margin: 2px 0; }
.datebox .db .rev { font-size: 12px; color: var(--warn); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { padding: 7px 0 7px 12px; border-left: 2px solid var(--line); margin-left: 4px; font-size: 14px; }
.tl li.system, .tl li.telegram { border-left-color: var(--faint); }
.tl li.customer { border-left-color: var(--violet); }
.tl .what { font-weight: 600; }
.tl small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.tl li.empty { color: var(--muted); border-left-style: dashed; }
.lastupd { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.lastupd b { color: var(--ink); }
.inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1250px) { .calc { grid-template-columns: 1fr; } }
.outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.out { background: var(--sunk); border-radius: 8px; padding: 8px 12px; }
.out .lbl { font-size: 12px; color: var(--muted); }
.out .n { font: 600 19px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.out.final { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.out.final .n { font-size: 30px; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.mode.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); }
.mode input[type=radio] { margin: 0; }
.mode .pct { font: 600 15px var(--display); color: var(--ink); }
.check { border-radius: 8px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.check.ok { background: var(--done-soft); color: var(--done); }
.check.bad { background: var(--alert-soft); color: var(--alert); }
.check.none { background: var(--warn-soft); color: var(--warn); }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { flex: 1; font-family: var(--mono); font-size: 13px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------- customer portal */
.portal { max-width: 600px; margin: 0 auto; padding: 14px 16px 40px; }
.portal .phead { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.portal .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 15px var(--display); flex: none; }
.portal .phead .who { flex: 1; min-width: 0; } .portal .phead .who b { display: block; font-size: 17px; }
.portal .phead .who span { color: var(--muted); font-size: 13.5px; }
.portal .brandline { font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.pcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.pcard:hover { border-color: var(--accent); }
.pcard img, .pcard .noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.pcard .t { font-weight: 600; font-size: 16px; } .pcard .m { color: var(--muted); font-size: 13.5px; margin: 2px 0 6px; }
.pcard .chip { font-size: 12.5px; padding: 3px 10px; }
.pcard .eta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pkv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.pkv div { background: var(--sunk); border-radius: 8px; padding: 8px 10px; } .pkv .lbl { font-size: 12px; color: var(--muted); } .pkv .v { font-weight: 600; font-size: 16px; }
.pnow { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 12px 0; }
.psteps { list-style: none; margin: 0; padding: 0; }
.psteps li { position: relative; padding: 6px 0 6px 28px; font-size: 14.5px; color: var(--faint); }
.psteps li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.psteps li::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: -8px; width: 2px; background: var(--line); }
.psteps li:last-child::after { display: none; }
.psteps li.done { color: var(--muted); } .psteps li.done::before { background: var(--done); border-color: var(--done); }
.psteps li.now { color: var(--accent); font-weight: 700; } .psteps li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.psteps li small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12.5px; }
.pimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.pimgs img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: var(--sunk); }

/* ---------------------------------------------------------------- screen 1 tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 12px 0 14px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; margin-bottom: -1px; min-height: 42px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--ink); background: var(--sunk); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a .ct { font: 600 11.5px/1 var(--mono); background: var(--line); color: var(--muted); padding: 3px 7px; border-radius: 999px; }
.tabs a.on .ct { background: var(--accent-soft); color: var(--accent); }
.tabs-ready .tabpane { display: none; }
.tabs-ready .tabpane.on { display: block; }
.tabs-ready .two.tabpane.on { display: grid; }

/* ---------------------------------------------------------------- next-step guide */
.guide { margin-top: 12px; border-left: 4px solid var(--accent); }
.guide .needs li { padding: 9px 6px; }
.guide .needs li.mine .what { color: var(--ink); }
.guide .needs li:not(.mine) .what { color: var(--muted); }
.guide .needs .what { font-size: 14.5px; }
.guide .needs .what .tag { margin-right: 4px; vertical-align: 1px; }
.guide .needs .what small { margin-top: 2px; }
.flow { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 5px; color: var(--muted); }
.flow b { color: var(--ink); }

/* ---------------------------------------------------------------- polish: actions, images, file pickers */
.detail .expand { float: none; margin: 0; }
.dhead .actions { align-items: center; }
.imgs { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.imgs figure { position: relative; }
.imgs img, .imgs .pdf { height: 108px; border-radius: 10px; }
.imgs figcaption { display: grid; gap: 1px; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.imgs figcaption b { color: var(--ink); font-weight: 600; }
.imgs form { display: contents; }
.imgs .del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%;
  border: 0; background: rgba(22, 32, 46, .62); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.imgs figure:hover .del, .imgs .del:focus-visible { opacity: 1; }
.imgs .del:hover { background: var(--alert); }
@media (hover: none) { .imgs .del { opacity: .85; } }
.imgs form.add { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 108px; padding: 10px 8px;
  border: 1.5px dashed var(--line); border-radius: 10px; background: var(--sunk); text-align: center; }
.imgs form.add:hover { border-color: var(--accent); }
.imgs .pick { display: grid; justify-items: center; gap: 2px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.imgs .pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.imgs .pick .plus { font: 600 26px/1 var(--display); }
.imgs .pick small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.imgs .kind { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.imgs .kind select { min-height: 28px; padding: 2px 6px; font-size: 12.5px; background: var(--surface); }
.filebtn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filebtn .btn { pointer-events: none; }
.filebtn:hover .btn { border-color: var(--accent); }
.filebtn .fname { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* add-image tile: same footprint as a thumbnail; the kind chooser sits where the caption is */
.imgs form.add { display: grid; grid-template-rows: 108px auto; gap: 5px; align-content: start; justify-items: stretch;
  min-height: 0; padding: 0; border: 0; background: none; text-align: left; }
.imgs form.add:hover { border-color: transparent; }
.imgs .pick { display: grid; place-content: center; justify-items: center; gap: 1px; height: 108px; padding: 6px;
  border: 1.5px dashed var(--line); border-radius: 10px; background: var(--sunk); cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 14px; text-align: center; line-height: 1.25; }
.imgs .pick:hover, .imgs .pick:focus-within { border-color: var(--accent); }
.imgs .pick .plus { font: 600 24px/1 var(--display); }
.imgs .pick small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.imgs .kind { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.imgs .kind select { flex: 1; min-width: 0; min-height: 26px; padding: 1px 4px; font-size: 12px; border-radius: 6px; }
.imgs .kind select:focus-visible { outline-offset: 0; }

/* ---------------------------------------------------------------- collapsible cards (Order tab) */
.card.fold { padding: 0; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 48px; border-radius: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--sunk); }
.fold[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.fold > summary .ttl { font: 600 16px/1.2 var(--display); flex: none; }
.fold > summary .gist { flex: 1; min-width: 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold > summary .gist b { color: var(--ink); }
.fold > summary::after { content: "▸"; color: var(--faint); font-size: 13px; flex: none; }
.fold[open] > summary::after { content: "▾"; }
.foldbody { padding: 12px 16px 14px; }
.inlinefold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 30px; }
.inlinefold > summary::-webkit-details-marker { display: none; }
.inlinefold > summary::after { content: " ▸"; font-size: 11px; margin-left: 4px; }
.inlinefold[open] > summary::after { content: " ▾"; }
.qtybig { font-size: 26px; }

/* ---------------------------------------------------------------- price desk, compact */
.calc { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 14px; align-items: start; }
@media (max-width: 1250px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); } }
@media (max-width: 1000px) { .calc { grid-template-columns: 1fr; } }
.calc .sticky { position: sticky; top: 0; }
.calc .card { margin-bottom: 0; }
.calc h3 { margin: 12px 0 6px; }
.calc h3:first-child { margin-top: 0; }
.fields.tight { gap: 8px 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fields.tight input { min-height: 36px; padding: 6px 10px; }
.modes { gap: 8px; }
.mode { padding: 8px; gap: 6px; }
.mode .mh { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.mode .mi { display: grid; grid-template-columns: 1fr 64px; gap: 4px; }
.mode .mi input { min-height: 32px; padding: 4px 6px; font-size: 13px; width: 100%; }
.mode .mo { font: 600 13px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.result .out.final .n { font-size: 30px; }
.result .out.final .lbl { font-size: 12px; }
.outs.two-col { grid-template-columns: 1fr 1fr; gap: 6px; }
.outs.two-col .out { padding: 6px 10px; }
.outs.two-col .out .lbl { font-size: 11.5px; }
.outs.two-col .out .n { font-size: 16px; }

/* price desk: both columns share the row height so the two cards end together */
.calc { align-items: stretch; }
.calc > .card { height: auto; }
.calc .sticky { position: static; align-self: stretch; }
.calc .sticky .card.result { position: sticky; top: 0; }

/* price desk: four inputs on the first line; result card fills the row so both cards end together */
.fields.tight.four { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.calc .sticky { display: flex; }
.calc .sticky .card.result { position: static; flex: 1; display: flex; flex-direction: column; }
.result .versions { margin-top: auto; padding-top: 10px; }

/* first line of the price desk: four fields across; two-and-two only when the card itself is narrow */
.calc > .card { container-type: inline-size; }
.fields.tight.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields.tight.four input { min-width: 0; }
@container (max-width: 520px) { .fields.tight.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* price desk: narrower inputs (55/45), and the earlier-calculations table scrolls inside its card instead of pushing it off the page */
.calc { grid-template-columns: minmax(0, 11fr) minmax(320px, 9fr); }
@media (max-width: 1250px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); } }
@media (max-width: 1000px) { .calc { grid-template-columns: 1fr; } }
.calc > *, .calc .sticky, .calc .sticky .card.result { min-width: 0; }
.result .versions .tablescroll { max-width: 100%; overflow-x: auto; }
.result .mini { font-size: 12.5px; }
.result .mini td, .result .mini th { padding: 5px 8px 5px 0; }
.result .mini .nw { white-space: nowrap; }

/* ---------------------------------------------------------------- dialogs */
dialog.modal { border: 0; border-radius: 12px; padding: 0; width: min(1100px, 94vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(8, 16, 26, .5); }
.modal .mhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal .mbody { padding: 12px 18px 18px; max-height: 72vh; overflow: auto; }
.modal .mini { font-size: 13px; }
.modal .mini td, .modal .mini th { padding: 7px 10px 7px 0; }
.modal .mini tr.cur td { background: var(--accent-soft); }
.modal .mini tr.cur td:first-child { border-radius: 6px 0 0 6px; }
.modal .mini tr.cur td:last-child { border-radius: 0 6px 6px 0; }
.result .versions { margin-top: auto; padding-top: 10px; align-self: flex-start; }

/* inputs in a row line up at the bottom even when a label wraps */
.fields.tight label { align-content: end; }

/* ---------------------------------------------------------------- dead stock additions */
.rows.picks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: stretch; }
.rows.picks li .sel { display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.rows.picks li .sel input { margin: 0; }
.rows.picks li > a.rowlink { grid-column: 2; }
.rows .r.bad { color: var(--alert); font-weight: 600; }
.rows .r.late { color: var(--alert); }
.selbar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; }
.selbar span { flex: 1; }
.pick { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.pick li { padding: 7px 12px; font-size: 13.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick li:hover { background: var(--accent-soft); color: var(--accent); }
.fields label { position: relative; }
.sameday { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 13.5px; }
.step > h3 { display: flex; align-items: center; gap: 8px; }
.step > h3 i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 12px var(--sans); font-style: normal; }
.segopt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 14px; color: var(--muted); cursor: pointer; }
.segopt:has(input:checked) { background: var(--ink); color: var(--surface); }
.segopt input { display: none; }
.due { margin: 8px 0 4px; padding: 8px 10px; font-size: 13px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; }
.due a { color: inherit; }
.audio { display: grid; gap: 2px; margin-bottom: 8px; }
.audio audio { width: 100%; max-width: 480px; }
.hint.warn { color: var(--warn); }
table.ladder tr.oldest td { background: var(--done-soft); }
table.ladder tr.dead td:first-child { color: var(--alert); }
table.list tr.short td { background: var(--alert-soft); }
.strip { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.strip .warnct { font: 600 12px var(--sans); color: var(--alert); margin-left: 6px; }
.detail h2 { font: 600 20px/1.2 var(--display); }
.morebody span.fchip { cursor: default; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip li + li { margin-left: 0; } }
[hidden] { display: none !important; }
.two > *, .cards3 > * { min-width: 0; }
table.dense td, table.dense th { padding: 5px 8px; font-size: 13px; }
table.dense th { font-size: 11px; }
