/* Herbal Cure — warehouse console.

   A despatch register, not a dashboard. The people using this already work from ruled
   registers, batch labels and courier manifests, so the interface borrows that language:
   hairline rules instead of floating cards, a stamped outline for state, a navigation
   rail down the side, and every code set in a mono face big enough to read across a
   bench. Ink blue is the working colour; vermilion means stop, amber means waiting,
   verdigris means done. Those three differ in lightness as well as hue, so a
   colour-blind packer still tells them apart. */

:root {
  /* ground */
  --paper: #F6F5F1;          /* the working surface */
  --sheet: #FFFFFF;          /* a panel laid on it */
  --sheet-2: #FBFAF7;        /* a recessed well */
  --rule: #DEDCD5;           /* hairline between rows */
  --rule-2: #C8CBD1;         /* dotted separators */
  --rule-hard: #141A22;      /* the register's column line */

  /* ink */
  --ink: #141A22;
  --ink-2: #44505F;
  --ink-3: #5A6473;
  --ink-4: #7B8390;

  /* working colour */
  --stamp: #1B3C72;
  --stamp-dark: #142C53;
  --stamp-wash: #E7EDF6;
  --stamp-field: #F2F6FC;
  --rail: #13233D;
  --rail-2: #1B3050;
  --rail-line: #27405F;
  --rail-text: #A9B6CC;
  --rail-dim: #8FA3C0;
  --brass: #D98C2B;          /* the mark, used once */

  /* state */
  --stop: #BE3418;
  --stop-wash: #FDF2EF;
  --wait: #8A5A00;
  --wait-wash: #FBF3E4;
  --done: #1E6B52;
  --done-wash: #F0F7F3;

  /* names the screens use */
  --bark: var(--ink); --sand: var(--sheet-2); --line-strong: #A9AFB8;
  --leaf: var(--stamp); --leaf-soft: var(--stamp-field);
  --ok: var(--done); --ok-soft: var(--done-wash);
  --warn: var(--wait); --warn-soft: var(--wait-wash);
  --bad: var(--stop); --bad-soft: var(--stop-wash);
  --info: var(--stamp); --info-soft: var(--stamp-wash);

  --radius: 3px;
  --radius-sm: 2px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
a { color: var(--stamp); }
a:hover { color: var(--stamp-dark); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 1px; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.grow, .sp { flex: 1; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.r { text-align: right; }
.hr { height: 1px; background: var(--rule); margin: 16px 0; border: 0; }
.leaf-rule { height: 2px; background: var(--rule-hard); }

/* The small uppercase caption that heads a column or a field — the register's own
   labelling, and the reason the interface reads as a document. */
.eyebrow, .field > span, .tbl th, .stat .k, .cap {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* ---------- masthead ---------- */
.top {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 20px; background: var(--rail); color: #fff;
}
.top .brand { display: flex; align-items: center; gap: 10px; }
.top .motif {
  width: 30px; height: 30px; flex: none; border: 2px solid var(--brass); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--mono); color: var(--brass);
}
.top .motif::before { content: "HC"; }
.top .brand b { display: block; font-size: 14.5px; line-height: 1.2; font-weight: 600; }
.top .brand small { display: block; font-size: 10.5px; color: var(--rail-dim); text-transform: uppercase; letter-spacing: .1em; }
.who {
  display: flex; align-items: center; gap: 9px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid var(--rail-line); color: #fff;
  padding: 5px 11px 5px 6px; border-radius: var(--radius-sm); font: inherit; font-size: 13px;
}
.who:hover { background: var(--rail-2); }
.who span:last-child { line-height: 1.15; }
.who small { display: block; font-size: 10.5px; color: var(--rail-dim); }
.who .av {
  width: 27px; height: 27px; border-radius: 50%; background: var(--brass); color: var(--rail);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
}
.live {
  display: flex; align-items: center; gap: 7px; font-size: 12px; color: #C7D4E6;
  padding: 4px 10px; border: 1px solid var(--rail-line); border-radius: var(--radius-sm);
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3FBE85; }
.live.off i { background: var(--brass); }

/* ---------- the navigation rail ----------
   Fifteen sections, none hidden behind a menu: the rail runs the height of the page
   and groups them the way the work actually splits. */
/* The header and the rail stay put; only the page itself scrolls. */
html, body { height: 100%; }
.framed { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.framed > .top { flex: none; }
.shell { display: flex; flex: 1; min-height: 0; }
.rail {
  flex: 0 0 228px; background: var(--rail); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rail-line) transparent;
  padding-bottom: 12px; display: flex; flex-direction: column;
}
.rail-group {
  padding: 11px 15px 3px;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; font-size: 10.5px; color: #8FA3C0;
}
.tab {
  display: flex; align-items: center; gap: 9px; padding: 6px 15px; flex: none;
  color: var(--rail-text); text-decoration: none; font-size: 13.5px;
  border-left: 3px solid transparent;
}
.tab svg { flex: none; opacity: .75; }
.tab:hover { background: var(--rail-2); color: #E7EDF6; }
.tab.on { background: var(--rail-2); color: #fff; font-weight: 600; border-left-color: var(--brass); }
.tab.on svg { opacity: 1; }
.tab .badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--stop); color: #fff; padding: 1px 6px; border-radius: var(--radius-sm);
}

/* ---------- page ---------- */
#view { flex: 1; min-width: 0; overflow: auto; }
.main { padding: 20px 26px 40px; }
.notice { background: var(--wait-wash); border-bottom: 1px solid var(--wait); color: #5E3D00; padding: 9px 26px; font-size: 13px; flex: none; }
.notice button { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--sheet); border-bottom: 1.5px solid var(--rule-hard);
  margin: -20px -26px 18px; padding: 13px 26px;
}
.head .t p { margin: 5px 0 0; color: var(--ink-3); font-size: 13px; max-width: 80ch; }
.head h1 { margin-top: 3px; }

.card {
  background: var(--sheet); border: 1px solid #D5D8DD; border-radius: var(--radius); padding: 16px 18px;
}
.card + .card { margin-top: 14px; }
.grid > .card + .card, .col > .card + .card, .row > .card + .card { margin-top: 0; }
.grid > * { min-width: 0; }
.card .stat { padding: 11px 13px; }
.card .stat .v { font-size: 25px; }
/* a card that is only a table: the table meets its edges */
.card > .tbl-wrap:first-child { margin-top: -10px; }
.card > .tbl-wrap:last-child { margin-bottom: -16px; }
.card > .tbl-wrap:last-child .tbl tbody tr:last-child td { border-bottom: 0; }
.label-scroll { overflow-x: auto; max-width: 100%; }
.card h2 + p, .card h3 + p { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.card.flat { background: var(--sheet-2); }
.card.empty { text-align: center; padding: 34px 20px; color: var(--ink-3); }
.card.empty b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.grid { display: grid; gap: 14px; }
.grid.k2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.k3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.grid.k4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* ---------- the counts that decide the day ---------- */
.stat { background: var(--sheet); border: 1px solid #D5D8DD; border-radius: var(--radius); padding: 15px 17px; }
.stat .v { font: 600 32px/1.05 var(--mono); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.stat .d { font-size: 12px; color: var(--ink-3); }
.stat.good .v { color: var(--done); }
.stat.warn .v { color: var(--wait); }
.stat.bad .v { color: var(--stop); }

/* ---------- controls ----------
   2px corners, a 1.5px rule, 44px minimum: gloved hands and a bench touch screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 13px/1 var(--sans); padding: 0 15px; min-height: 44px; border-radius: var(--radius-sm);
  background: var(--sheet); color: var(--stamp); border: 1.5px solid var(--stamp); cursor: pointer;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--stamp-wash); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pri { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn.pri:hover:not(:disabled) { background: var(--stamp-dark); }
.btn.danger { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn.danger:hover:not(:disabled) { filter: brightness(.92); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover:not(:disabled) { background: var(--stamp-wash); color: var(--stamp); }
.btn.sm { min-height: 34px; font-size: 12.5px; padding: 0 11px; }
.btn.lg { min-height: 48px; font-size: 14.5px; padding: 0 20px; }
.btn.xl { min-height: 60px; font-size: 17px; padding: 0 28px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 44px; }
.btn.sm.icon { width: 34px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--stamp); border-radius: var(--radius-sm); overflow: hidden; background: var(--sheet); }
.seg button {
  border: 0; background: transparent; padding: 0 13px; min-height: 36px; cursor: pointer;
  font: 600 12.5px/1 var(--sans); color: var(--stamp); border-right: 1px solid var(--stamp-wash);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--stamp); color: #fff; }

/* ---------- fields ---------- */
.in {
  width: 100%; min-height: 44px; padding: 0 12px; font: 400 14px var(--sans);
  border: 1.5px solid #A9AFB8; border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink);
}
.in:focus { outline: 2px solid var(--stamp); outline-offset: -1px; border-color: var(--stamp); }
textarea.in { min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.in { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 49%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 51%);
  background-position: calc(100% - 15px) 20px, calc(100% - 10px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.in.big { min-height: 50px; font-size: 16px; }
.in.mono, input.mono, textarea.mono { font-family: var(--mono); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; min-height: 32px; }
.check input { width: 17px; height: 17px; accent-color: var(--stamp); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.search .in { padding-left: 34px; }
.access { border: 1px dashed #A9AFB8; border-radius: var(--radius); padding: 13px; background: var(--sheet-2); }
.access-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- the scan field is the hero ---------- */
.scan {
  display: flex; align-items: center; gap: 13px; width: 100%;
  border: 2px dashed var(--stamp); border-radius: var(--radius); background: var(--stamp-field);
  padding: 13px 15px;
}
.scan .ico { color: var(--stamp); flex: none; display: flex; }
.scan input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 600 24px/1 var(--mono); letter-spacing: .05em; padding: 0;
}
.scan input::placeholder { font: 400 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-4); }
.scan.ok { border-style: solid; border-color: var(--done); background: var(--done-wash); }
.scan.bad { border-style: solid; border-color: var(--stop); background: var(--stop-wash); animation: shake .3s; }
.scan-msg { min-height: 19px; font-size: 13px; font-weight: 600; margin-top: 7px; }
.scan-msg.ok { color: var(--done); }
.scan-msg.bad { color: var(--stop); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- the register ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl td .tag { white-space: normal; }
.tbl th {
  text-align: left; padding: 9px 12px; white-space: nowrap;
  border-bottom: 1.5px solid var(--rule-hard); background: var(--sheet);
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: rgba(27, 60, 114, .025); }
.tbl tbody tr:hover td { background: var(--stamp-wash); }
.tbl tr.pick { cursor: pointer; }
.tbl .r, .tbl th.r { text-align: right; }
.tbl .c, .tbl th.c { text-align: center; }
.tbl .nowrap { white-space: nowrap; }
.nomatch { padding: 20px; }

/* ---------- state is stamped, not tinted ----------
   An outline box, never a filled pill: the mark a clerk puts on a docket. */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  font-size: 10px; padding: 2.5px 7px; border: 1.5px solid currentColor;
  border-radius: var(--radius-sm); color: var(--ink-3); background: transparent; white-space: nowrap;
}
.tag.ok { color: var(--done); }
.tag.warn { color: var(--wait); }
.tag.bad { color: var(--stop); }
.tag.info, .tag.brand { color: var(--stamp); }
.tag.gold { color: var(--brass); }

.bar { height: 9px; background: #E6E4DD; border-radius: 1px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--stamp); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

/* ---------- modal ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(20, 26, 34, .55); z-index: 60;
  display: grid; place-items: start center; padding: 24px 16px; overflow: auto;
}
.modal {
  color: var(--ink); min-width: 0;
  background: var(--sheet); border-radius: var(--radius); width: min(580px, 100%);
  max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  border: 1px solid var(--rule-hard); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .5);
}
.modal.wide { width: min(940px, 100%); }
.modal.narrow { width: min(440px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1.5px solid var(--rule-hard); }
.modal-b { padding: 18px; overflow: auto; }
.modal-f { flex-wrap: wrap; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--rule); background: var(--sheet-2); }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 13.5px; max-width: 390px; border-left: 4px solid var(--brass);
}
.toast.ok { background: #124634; border-left-color: #3FBE85; }
.toast.bad { background: #6B1C0C; border-left-color: #FF8A72; }

.skel { background: linear-gradient(90deg, var(--rule) 25%, #EFEDE6 50%, var(--rule) 75%); background-size: 200% 100%; border-radius: var(--radius-sm); animation: sweep 1.2s infinite; }
@keyframes sweep { to { background-position: -200% 0; } }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-art {
  background: var(--rail); color: #fff; padding: 46px 44px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.login-art .mark {
  width: 54px; height: 54px; border: 3px solid var(--brass); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font: 700 20px/1 var(--mono); color: var(--brass);
}
.login-art .mark::before { content: "HC"; }
.login-art h1 { font-size: 34px; line-height: 1.12; max-width: 14em; }
.login-art p { color: #BBCADE; max-width: 34em; margin: 14px 0 0; font-size: 14px; }
.login-art .leaf-rule { width: 72px; margin-top: 16px; background: var(--brass); }
.login-art .eyebrow { color: var(--brass); }
.login-form { display: grid; place-items: center; padding: 30px; background: var(--sheet); }
.login-form form { width: min(372px, 100%); display: flex; flex-direction: column; gap: 15px; }
@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px; gap: 18px; }
  .login-art h1 { font-size: 25px; }
}

/* ---------- the bench ----------
   A different room, so a different light: the packing station is dark, because it sits
   under warehouse strip lights and is read from an arm's length away. */
body[data-app="pack"] { background: #101A26; color: #EEF2F7; }
.pack .tag { color: #B6C6D9; }
.pack .tag.ok { color: #5FD3A0; } .pack .tag.warn { color: #E8B560; } .pack .tag.bad { color: #FF9C88; } .pack .tag.info, .pack .tag.brand { color: #8FB7EA; }
.pack .btn.danger { background: #B3452C; border-color: #B3452C; color: #fff; }
body[data-app="pack"] .login { color: var(--ink); }
.pack { max-width: 1280px; margin: 0 auto; padding: 20px 22px 44px; }
.pack .card { background: #182636; border-color: #2B3D52; color: #EEF2F7; }
.pack .card.flat { background: #15222F; }
.pack h1, .pack h2, .pack h3 { color: #fff; }
.pack .muted, .pack .field > span, .pack .eyebrow, .pack .stat .k, .pack .stat .d { color: #90A3BA; }
.pack .stat { background: #182636; border-color: #2B3D52; }
.pack .scan { background: #14243A; border-color: #3C7FD6; }
.pack .scan input { color: #fff; font-size: 25px; }
.pack .scan input::placeholder { color: #8396AD; }
.pack .scan .ico { color: #7FB0F0; }
.pack .scan.ok { background: #14281F; border-color: #2E8C6A; }
.pack .scan.bad { background: #2A1512; border-color: #B3452C; }
.pack .scan-msg.ok { color: #3FBE85; }
.pack .scan-msg.bad { color: #FF8A72; }
.pack .in { background: #15222F; border-color: #3C5370; color: #fff; }
.pack .btn { background: transparent; border-color: #3C5370; color: #C7D6E8; }
.pack .btn:hover:not(:disabled) { background: #21344A; }
.pack .btn.pri { background: #1E6B52; border-color: #1E6B52; color: #fff; }
.pack .btn.pri:hover:not(:disabled) { background: #185943; }
.pack .btn.ghost { border-color: transparent; color: #90A3BA; }
.pack .btn:disabled { background: #23303F; border-color: #33475F; color: #6E819A; opacity: 1; }
.pack .tbl th { background: #182636; color: #90A3BA; border-bottom-color: #3C5370; }
.pack .tbl td { border-bottom-color: #2B3D52; }
.pack .tbl tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.pack .tbl tbody tr:hover td { background: #21344A; }
.pack .top { background: #0B131C; }
.pack .empty { color: #90A3BA; }
.pack .empty b { color: #fff; }

/* one line per item to pack: countable at a glance, tickable from across the bench */
.picklist { display: flex; flex-direction: column; gap: 10px; }
.pickrow {
  display: flex; align-items: center; gap: 15px; padding: 14px 16px;
  border: 1.5px solid #2B3D52; border-radius: var(--radius); background: #15222F; flex-wrap: wrap;
}
.pickrow.done { border-color: #2E8C6A; background: #14281F; }
.pickrow .n {
  font: 600 22px/1 var(--mono); font-variant-numeric: tabular-nums;
  min-width: 78px; text-align: center; padding: 10px 8px;
  border-radius: var(--radius-sm); background: #23303F; color: #EEF2F7; flex: none;
}
.pickrow.done .n { background: #2E8C6A; color: #fff; }
.pickrow .what { flex: 1; min-width: 0; }
.pickrow .what b { font-size: 17px; display: block; }
.pickrow .what span { color: #90A3BA; font-size: 12.5px; }
.modal .pickrow .what span { color: var(--ink-3); }
.modal .pickrow .what b { font-size: 15px; }
.pickrow .note { color: #E8B560; font-size: 12.5px; margin-top: 3px; }
.bigmsg {
  font-size: 18px; font-weight: 600; padding: 16px; border-radius: var(--radius);
  text-align: center; border: 1.5px solid currentColor;
}
.bigmsg.ok { background: #14281F; color: #8FE0BA; }
.bigmsg.bad { background: #2A1512; color: #FFBCAC; }
.vidbox { display: flex; flex-direction: column; gap: 10px; }
.vidbox video { width: 100%; max-width: 100%; max-height: 300px; background: #0A1118; border-radius: var(--radius); }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #FF4A3D; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- labels and print ---------- */
.label-preview { max-width: none; background: #fff; border: 1px solid #A9AFB8; border-radius: var(--radius-sm); padding: 10px; display: inline-block; }
.bc { display: block; }
.chart { width: 100%; font-size: 9px; fill: var(--ink-3); }

@media print {
  html, body, .framed { height: auto; overflow: visible; }
  body { background: #fff; }
  .top, .rail, .toasts, .no-print { display: none !important; }
}

/* ---------- narrow: the rail becomes one strip that scrolls sideways ---------- */
@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .rail { flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0; }
  .rail-group { display: none; }
  .tab { border-left: 0; border-bottom: 3px solid transparent; padding: 11px 12px; white-space: nowrap; }
  .tab.on { border-bottom-color: var(--brass); }
  .main { padding: 16px 14px 36px; }
  .head { margin: -16px -14px 14px; padding: 12px 14px; }
  .notice { padding: 9px 14px; }
  .top { padding: 8px 14px; gap: 8px; }
  .who span:last-child { display: none; }
  .who { padding: 4px; }
  .head .search, .head .search .in { width: 100% !important; }
  .pack { padding: 14px 12px 36px; }
  .scan { flex-wrap: wrap; }
  .modal-b { padding: 14px; }
}
/* a short laptop screen still shows all fifteen sections */
@media (max-height: 800px) and (min-width: 821px) { .tab { padding-block: 4px; font-size: 13px; } .rail-group { padding-top: 7px; } }
