/* PackPraman — design tokens and components.
   Look: a packing table, refined. Deep emerald frame, crisp white cards with soft depth,
   warm gold for accents and holds, and one signature detail: the packing-tape stripe. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', 'Nirmala UI', 'Noto Sans Devanagari', sans-serif;
  --display: 'Barlow Semi Condensed', 'Barlow', 'Segoe UI', system-ui, 'Nirmala UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Roboto Mono', monospace;
  /* text and surfaces */
  --ink: #0f1b17; --ink-2: #42514b; --ink-3: #68776f;
  --bg: #f1f4f2; --surface: #ffffff; --surface-2: #f5f8f6; --line: #e1e7e3; --line-2: #c9d3cd;
  /* brand */
  --mat: #0b3b31; --mat-2: #0f6e57; --mat-ink: #e3f1ec; --mat-line: rgba(255, 255, 255, .04); --mat-tint: #e2f2eb;
  --side-a: #0d4739; --side-b: #072a22; --gold: #f2c067; --glow: rgba(15, 138, 106, .075);
  /* meaning */
  --kraft: #9a5f0b; --kraft-tint: #fdf3df; --rec: #cc3324; --rec-tint: #fdecea; --ok: #0d7a57; --ok-tint: #e2f5ec; --info: #1a64a8; --info-tint: #e6f0fb;
  --series-1: #0f8a6a; --series-2: #e8871e; --grid: #e6ebe8; --link: #0b6b53;
  /* shape and depth */
  --radius: 14px; --radius-sm: 10px; --top-h: 60px;
  --focus: 0 0 0 3px rgba(15, 138, 106, .28);
  --shadow-xs: 0 1px 2px rgba(15, 35, 28, .06);
  --shadow-sm: 0 1px 2px rgba(15, 35, 28, .05), 0 3px 8px -3px rgba(15, 35, 28, .07);
  --shadow: 0 2px 4px rgba(15, 35, 28, .04), 0 14px 30px -12px rgba(15, 35, 28, .16);
  --shadow-lg: 0 8px 18px -8px rgba(8, 24, 18, .14), 0 32px 72px -18px rgba(8, 24, 18, .34);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink: #e8f0ec; --ink-2: #a9b8b1; --ink-3: #84938c;
  --bg: #0a1210; --surface: #111a17; --surface-2: #17221e; --line: #212e28; --line-2: #33453d;
  --mat: #0a2019; --mat-2: #1c9575; --mat-ink: #dcebe5; --mat-tint: #15332a;
  --side-a: #0c2e25; --side-b: #06140f; --glow: rgba(31, 168, 131, .09);
  --kraft: #e3a94a; --kraft-tint: #2f260f; --rec: #f0604f; --rec-tint: #391915; --ok: #3cbd90; --ok-tint: #112e27; --info: #6aaee8; --info-tint: #13293d;
  --series-1: #1fa883; --series-2: #d67a22; --grid: #1f2c27; --link: #62d2b0;
  --focus: 0 0 0 3px rgba(31, 168, 131, .38);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 3px 8px -3px rgba(0, 0, 0, .4);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 8px 18px -8px rgba(0, 0, 0, .5), 0 32px 72px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: 0; line-height: 1.15; }
h1 { font-size: 29px; } h2 { font-size: 17px; font-weight: 600; } h3 { font-size: 15.5px; font-weight: 600; }
p { margin: 0 0 .7em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, canvas { max-width: 100%; display: block; }
::selection { background: rgba(15, 138, 106, .22); }
:focus-visible { outline: none; box-shadow: var(--focus); }
a:focus-visible { border-radius: 4px; }
.muted { color: var(--ink-3); } .mono { font-family: var(--mono); font-size: 12.5px; } .num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; } .nowrap { white-space: nowrap; } .right { text-align: right; } .hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .spacer { flex: 1; } .stack { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.split > div { min-width: 0; }
.ico { flex: none; vertical-align: -3px; }
.loading { padding: 64px 0; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 12px; }
.loading::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--mat-2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* The signature element: packing tape. */
.tape { height: 8px; background: repeating-linear-gradient(135deg, #e0a53c 0 14px, #14211c 14px 28px); }
.tape.rec { background: repeating-linear-gradient(135deg, #cf3327 0 14px, #fff 14px 28px); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { color: var(--mat-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .06); scrollbar-color: rgba(255, 255, 255, .22) transparent;
  background-color: var(--side-b);
  background-image: radial-gradient(120% 55% at 0% 0%, rgba(46, 170, 132, .30), transparent 62%), radial-gradient(90% 45% at 100% 100%, rgba(242, 192, 103, .10), transparent 62%),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px), linear-gradient(180deg, var(--side-a), var(--side-b));
  background-size: auto, auto, 28px 28px, 28px 28px, auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; color: #fff; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .005em; }
.brand svg { flex: none; border-radius: 8px; box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .35); } .brand em { font-style: normal; color: var(--gold); }
.side nav { padding: 4px 12px 12px; flex: 1; }
.side .group { font: 600 11px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: rgba(227, 241, 236, .46); padding: 15px 12px 7px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin-bottom: 1px; border-radius: 10px; color: rgba(227, 241, 236, .84); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.side nav a .ico { opacity: .78; transition: opacity .15s, color .15s; }
.side nav a:hover { background: rgba(255, 255, 255, .075); color: #fff; } .side nav a:hover .ico { opacity: 1; }
.side nav a.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 6px 16px -8px rgba(0, 0, 0, .5); }
.side nav a.on::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side nav a.on .ico { color: var(--gold); opacity: 1; }
.side nav a:focus-visible { box-shadow: 0 0 0 2px rgba(242, 192, 103, .8); }
.side nav a .count { margin-left: auto; font: 600 12px var(--font); background: var(--gold); color: #17201c; border-radius: 9px; padding: 1px 7px; }
.ws { margin: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; font-size: 13px; line-height: 1.4; }
.ws b { display: block; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; } .ws span { color: rgba(227, 241, 236, .74); }
.side .ver { padding: 0 24px 14px; font-size: 12px; color: rgba(227, 241, 236, .42); }
.main { min-width: 0; background: radial-gradient(1100px 380px at 72% -60px, var(--glow), transparent 70%) no-repeat; }
.top { display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.top .search { flex: 0 1 420px; display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--ink-3); cursor: text; transition: border-color .15s, box-shadow .15s, background .15s; }
.top .search:hover { border-color: var(--line-2); background: var(--surface); box-shadow: var(--shadow-xs); }
.top .search kbd { margin-left: auto; font: 600 11px var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface); color: var(--ink-3); white-space: nowrap; }
.top .who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 0; background: none; cursor: pointer; border-radius: 999px; text-align: left; transition: background .15s; }
.top .who:hover { background: var(--surface-2); } .top .who b { display: block; font-weight: 600; line-height: 1.2; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; } .top .who small { display: block; color: var(--ink-3); line-height: 1.25; font-size: 12px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #17896a, #0b4a3b); color: #fff; display: grid; place-items: center; font: 700 15px var(--display); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.bell-count { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; background: #d63c2e; color: #fff; border-radius: 9px; font: 700 10.5px/1 var(--font); box-shadow: 0 0 0 2px var(--surface); }
.btn.menu-btn { display: none; }
.frame-banners { padding: 16px 28px 0; max-width: 1480px; margin: 0 auto; } .frame-banners .banner:last-child { margin-bottom: 0; }
.page { padding: 26px 28px 72px; max-width: 1480px; margin: 0 auto; }
.page > * { animation: rise .32s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-2); margin: 5px 0 0; max-width: 78ch; } .page-head .actions, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; } .crumb a { color: inherit; text-decoration: none; } .crumb a:hover { color: var(--link); text-decoration: underline; }
.pop { position: absolute; right: 20px; top: calc(100% + 6px); z-index: 40; min-width: 264px; max-width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 540px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .18s var(--ease) both; transform-origin: top right; }
.pop a, .pop button.item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 9px; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; font-weight: 500; }
.pop a .ico, .pop button.item .ico { color: var(--ink-3); }
.pop a:hover, .pop button.item:hover { background: var(--surface-2); } .pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.pop a.note { display: block; padding: 10px 11px; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 400; } .pop a.note:first-child { border-radius: 9px 9px 0 0; } .pop a.note:last-child { border: 0; border-radius: 0 0 9px 9px; }
.note b { font-weight: 600; } .note.unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 7px; vertical-align: 1px; }
.note p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; } .note small { color: var(--ink-3); }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.25; box-shadow: var(--shadow-xs);
  transition: transform .12s var(--ease), box-shadow .15s, background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { box-shadow: var(--focus); }
.btn.primary { background: linear-gradient(180deg, #15805f, #0f6a53); border-color: #0d5f4a; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(11, 60, 48, .3), 0 6px 14px -6px rgba(15, 106, 83, .55); }
.btn.primary:hover { background: linear-gradient(180deg, #178a68, #0d5f4a); border-color: #0b5241; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 4px rgba(11, 60, 48, .3), 0 10px 20px -8px rgba(15, 106, 83, .65); }
.btn.danger, .btn.rec { background: linear-gradient(180deg, #d63c2e, #c22f21); border-color: #b3291c; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(110, 20, 10, .3), 0 6px 14px -6px rgba(207, 51, 39, .6); }
.btn.danger:hover, .btn.rec:hover { background: linear-gradient(180deg, #dc4335, #b82b1e); border-color: #a22417; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 4px rgba(110, 20, 10, .3), 0 10px 20px -8px rgba(207, 51, 39, .7); }
.btn.primary:focus-visible, .btn.danger:focus-visible, .btn.rec:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(15, 138, 106, .6); }
.btn.danger:focus-visible, .btn.rec:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(207, 51, 39, .55); }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; } .btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.icon-only { padding: 7px; min-width: 36px; } .btn.sm.icon-only { padding: 4px; min-width: 30px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.rec:disabled, .btn.danger:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-3); opacity: 1; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-color: var(--ink-3) transparent var(--ink-3) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.primary.busy::after, .btn.danger.busy::after, .btn.rec.busy::after { border-color: #fff transparent #fff transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.55; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-tint); border-color: transparent; } .tag.bad { color: var(--rec); background: var(--rec-tint); border-color: transparent; }
.tag.warn, .tag.hold { color: var(--kraft); background: var(--kraft-tint); border-color: transparent; } .tag.info { color: var(--info); background: var(--info-tint); border-color: transparent; }
.tag.solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.score { display: inline-grid; place-items: center; min-width: 38px; padding: 1px 8px; border-radius: 8px; font: 700 14.5px/1.5 var(--display); font-variant-numeric: tabular-nums; background: var(--surface-2); }
.score.strong { color: var(--ok); background: var(--ok-tint); } .score.good { color: var(--info); background: var(--info-tint); } .score.fair { color: var(--kraft); background: var(--kraft-tint); } .score.weak { color: var(--rec); background: var(--rec-tint); }

/* ---------- panels, stats ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 54px; }
.panel-body { padding: 18px; }
.panel.flush > .panel-body { padding: 0; overflow: hidden; overflow: clip; border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.panel.flush > .panel-body:first-child { border-radius: calc(var(--radius) - 1px); }
.panel + .panel, .stats + .panel, .panel + .stats, .split + .panel, .panel + .split, .stats + .split, .banner + .stats { margin-top: 18px; }
/* Cards laid side by side in a grid line up along the top; only stacked cards get the gap above. */
.grid2 > .panel, .grid3 > .panel, .floor > .panel, .compare > .panel, .plans > .panel { margin-top: 0; }
.grid2 + .panel, .grid3 + .panel, .panel + .grid2, .panel + .grid3, .grid2 + .grid2, p + .panel { margin-top: 18px; }
.panel + p.muted { margin: 12px 2px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; }
/* Keep rows of cards balanced: six cards sit 6 or 3 to a row, five sit 5 or 3, four sit 4 or 2 (never one left alone). */
@media (min-width: 1400px) { .stats:has(> .stat:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 821px) and (max-width: 1399px) { .stats:has(> .stat:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .stats:has(> .stat:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 821px) and (max-width: 1239px) { .stats:has(> .stat:nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .stats:has(> .stat:nth-child(4):last-child), .stats:has(> .stat:nth-child(7):last-child), .stats:has(> .stat:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 821px) and (max-width: 1039px) { .stats:has(> .stat:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { position: relative; min-width: 0; padding: 16px 18px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-label { color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 1.3; } .stat.has-ico .stat-label { padding-right: 44px; min-height: 34px; }
.stat-value { font: 700 31px/1.1 var(--display); font-variant-numeric: tabular-nums; margin-top: 6px; overflow-wrap: anywhere; } .stat-hint { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.stat-ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mat-tint); color: var(--mat-2); }
.stat.bad .stat-value { color: var(--rec); } .stat.ok .stat-value { color: var(--ok); } .stat.warn .stat-value { color: var(--kraft); }
.stat.bad .stat-ico { background: var(--rec-tint); color: var(--rec); } .stat.ok .stat-ico { background: var(--ok-tint); color: var(--ok); } .stat.warn .stat-ico { background: var(--kraft-tint); color: var(--kraft); }
.panel .stats { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; } .panel .stat { box-shadow: none; background: var(--surface-2); padding: 13px 14px; } .panel .stat-value { font-size: 25px; }
.banner { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 16px; }
.banner > .ico { margin-top: 2px; color: var(--ink-3); }
.banner.warn { background: var(--kraft-tint); border-color: rgba(168, 106, 18, .22); } .banner.warn > .ico { color: var(--kraft); }
.banner.bad { background: var(--rec-tint); border-color: rgba(207, 51, 39, .22); } .banner.bad > .ico { color: var(--rec); }
.banner.info { background: var(--info-tint); border-color: rgba(28, 104, 173, .2); } .banner.info > .ico { color: var(--info); }
.banner.ok { background: var(--ok-tint); border-color: rgba(15, 125, 90, .2); } .banner.ok > .ico { color: var(--ok); }
.banner .actions { margin-left: auto; } .banner p { margin: 0; }
a.banner { text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .15s; } a.banner:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.alerts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; } .alerts > .banner { flex: 1 1 260px; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 9px 18px; margin: 0; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.empty { text-align: center; padding: 52px 20px; color: var(--ink-2); } .empty h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; } .empty p { max-width: 52ch; margin: 0 auto 16px; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--mat-tint); color: var(--mat-2); }
.empty > svg.ico { display: block; margin: 0 auto 12px; color: var(--ink-3); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; } .checklist li { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.checklist .box { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; flex: none; color: #fff; }
.checklist li.done .box { background: var(--ok); border-color: var(--ok); } .checklist li.done a { color: var(--ink-3); text-decoration: line-through; }
.meter { height: 7px; background: var(--grid); border-radius: 999px; overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--series-1), #2bb893); } .meter.hot i { background: linear-gradient(90deg, #c22f21, #e2584a); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.plan.current { border-color: var(--series-1); box-shadow: 0 0 0 1px var(--series-1), 0 12px 28px -14px rgba(15, 138, 106, .5); background: linear-gradient(180deg, var(--mat-tint), var(--surface) 110px); }
.plan.picked { border-color: #e0a53c; box-shadow: 0 0 0 1px #e0a53c, 0 12px 28px -14px rgba(224, 165, 60, .55); background: linear-gradient(180deg, var(--kraft-tint), var(--surface) 110px); }
.plan h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .plan .tagline { color: var(--ink-3); min-height: 42px; margin: 4px 0 10px; }
.plan .price { font: 700 28px/1.1 var(--display); } .plan ul { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; align-content: start; flex: 1; }
.plan li { position: relative; padding-left: 22px; } .plan li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 600 11.5px/1.3 var(--font); letter-spacing: .055em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; border-radius: 4px; } .tbl th button:hover { color: var(--ink); } .tbl th button:focus-visible { box-shadow: var(--focus); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th.right, .tbl td.right { text-align: right; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:last-child td { border-bottom: 0; } .tbl tbody tr.link { cursor: pointer; } .tbl tbody tr.link:hover { background: var(--surface-2); }
.tbl td.id { font: 600 15px var(--display); letter-spacing: .01em; white-space: nowrap; } .tbl td small { display: block; color: var(--ink-3); font: 400 12.5px/1.4 var(--font); letter-spacing: 0; }
.tbl .chk { width: 38px; padding-right: 0; } .tbl .tcol { width: 82px; padding-right: 0; } .tbl input[type=checkbox], .check input { width: 17px; height: 17px; accent-color: #12805c; cursor: pointer; }
.tbl-busy { opacity: .55; pointer-events: none; transition: opacity .2s .1s; }
.thumb { width: 68px; min-width: 68px; max-width: none; height: 38px; border-radius: 7px; object-fit: cover; background: #14211c; display: block; box-shadow: 0 0 0 1px var(--line); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters .field { margin: 0; min-width: 132px; } .filters .field.grow { flex: 1 1 230px; } .filters label { font-size: 12.5px; }
.filters .more-filters { display: none; } .more-filters b { background: var(--mat-2); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11.5px; line-height: 1.5; }
.views { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 4px 2px 11px; background: var(--surface); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; } .chip:hover { border-color: var(--ink-3); }
.chip.on { border-color: var(--series-1); background: var(--mat-tint); color: var(--mat-2); } .flip { transform: rotate(180deg); }
.chip button { all: unset; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-3); } .chip button:hover { background: var(--rec-tint); color: var(--rec); }
.bulk { display: flex; gap: 8px; align-items: center; padding: 9px 18px; background: var(--mat-tint); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: var(--top-h); z-index: 6; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; flex-wrap: wrap; }
.pager select { min-height: 30px; padding-top: 3px; padding-bottom: 3px; font-size: 13px; border-radius: 8px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 5px; align-content: start; margin-bottom: 14px; min-width: 0; } .field label { font-weight: 600; font-size: 13px; color: var(--ink-2); } .field small, .check small { color: var(--ink-3); font-size: 12.5px; display: block; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); min-height: 38px; transition: border-color .15s, box-shadow .15s; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover, input[type=date]:hover, input[type=search]:hover, input[type=tel]:hover, input[type=url]:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
select { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer; background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375827c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
textarea { resize: vertical; line-height: 1.5; padding-top: 9px; padding-bottom: 9px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--series-1); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
input[type=file] { max-width: 100%; } input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--surface-2); border-color: var(--ink-3); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .85; } .req { color: var(--rec); font-style: normal; }
.pw { position: relative; } .pw input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } .form-grid .full { grid-column: 1 / -1; } .form-grid.one { grid-template-columns: minmax(0, 1fr); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; } .check b { font-weight: 600; } .check input { margin-top: 2px; flex: none; }
.form-error { color: var(--rec); font-weight: 600; margin: 8px 0 0; min-height: 0; } .form-error:empty { display: none; } .intro { color: var(--ink-2); }
.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-radius: 9px 9px 0 0; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--ink); background: var(--surface-2); } .tabs button.on { color: var(--mat-2); box-shadow: inset 0 -2px 0 var(--mat-2); }
.tabs button:focus-visible { box-shadow: inset 0 0 0 2px rgba(15, 138, 106, .45); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 5px 13px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-radius: 8px; transition: background .15s, color .15s; }
.seg button:hover:not(.on):not(:disabled) { color: var(--ink); } .seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); } .seg button:disabled { cursor: not-allowed; opacity: .6; }

/* ---------- overlays ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 20, 16, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); display: grid; place-items: start center; padding: 7vh 16px 16px; z-index: 100; overflow-y: auto; animation: fade .18s ease both; }
.modal { background: var(--surface); border-radius: 18px; width: min(560px, 100%); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .24s var(--ease) both; } .modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .modal-head h2 { font-size: 19px; }
.modal-head .x { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ink-3); display: grid; place-items: center; } .modal-head .x:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding: 18px 20px; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 17px 17px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(460px, calc(100% - 24px)); }
.toast { display: flex; gap: 10px; align-items: center; background: #14211c; color: #fff; padding: 11px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); font-weight: 500; transition: opacity .2s, transform .2s; animation: pop .26s var(--ease) both; }
.toast .ico { color: #6fe0b8; } .toast.error { background: #a3261c; } .toast.warn { background: #7a4d0c; } .toast.error .ico, .toast.warn .ico { color: #fff; } .toast.out { opacity: 0; transform: translateY(6px); }
.palette input { font-size: 17px; padding: 11px 14px; min-height: 48px; } .palette .res { max-height: 50vh; overflow: auto; margin-top: 10px; display: grid; gap: 2px; }
.palette .res a { display: flex; gap: 11px; align-items: center; padding: 9px 11px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; } .palette .res a .ico { color: var(--ink-3); }
.palette .res a.sel, .palette .res a:hover { background: var(--mat-tint); } .palette .res a.sel .ico { color: var(--mat-2); } .palette .res small { margin-left: auto; color: var(--ink-3); font-weight: 400; white-space: nowrap; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; }
.auth-side { position: relative; overflow: hidden; color: var(--mat-ink); padding: 44px 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background-color: var(--side-b);
  background-image: radial-gradient(110% 60% at 0% 0%, rgba(46, 170, 132, .38), transparent 62%), radial-gradient(80% 50% at 100% 100%, rgba(242, 192, 103, .14), transparent 60%),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px), linear-gradient(160deg, var(--side-a), var(--side-b));
  background-size: auto, auto, 28px 28px, 28px 28px, auto; }
.auth-side .brand { padding: 0; font-size: 24px; }
.auth-side h1 { font-size: 44px; line-height: 1.08; color: #fff; max-width: 15ch; }
.auth-side ul { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 13px; font-size: 15.5px; } .auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side .tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 192, 103, .16); color: var(--gold); }
.auth-foot { display: flex; gap: 9px; align-items: center; font-size: 13px; color: rgba(227, 241, 236, .62); }
.auth-side .tape { position: absolute; left: 0; right: 0; bottom: 0; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(900px 420px at 50% 0%, var(--glow), transparent 70%) no-repeat, var(--bg); }
.auth-box { width: min(432px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px 30px; box-shadow: var(--shadow); animation: rise .4s var(--ease) both; }
.auth-box h2 { font-size: 28px; font-weight: 700; margin-bottom: 4px; } .auth-box > p.muted { margin-bottom: 20px; }
.auth-box input { min-height: 44px; } .auth-box .btn.primary { width: 100%; min-height: 46px; margin-top: 8px; font-size: 15px; }
.auth-box .alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---------- recording station ---------- */
.stn { display: grid; gap: 16px; }
.stn.kiosk { min-height: 100vh; align-content: start; padding: 16px 22px 28px; color: #e4f1ec; color-scheme: dark; background-color: #072019;
  background-image: radial-gradient(90% 55% at 8% 0%, rgba(46, 170, 132, .26), transparent 62%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(180deg, #0b3329, #06201a);
  background-size: auto, 28px 28px, 28px 28px, auto; }
.stn.kiosk { --link: #8fe0c4; --ink: #e8f1ed; --ink-2: #adbcb5; --ink-3: #8c9b94; --surface: #103a30; --surface-2: #164538; --line: #215446; --line-2: #2f6757; --mat-tint: #1a5241; --mat-2: #5fd0ae; --bg: #0a2a22; --grid: #1c4a3d;
  --kraft-tint: #3a2f12; --rec-tint: #46201b; --ok-tint: #154235; --info-tint: #16324a; --kraft: #f2c067; --ok: #4fd0a2; --rec: #ff6a5c; --info: #7db9ee;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -8px rgba(0, 0, 0, .5); --focus: 0 0 0 3px rgba(95, 208, 174, .4); }
.stn.kiosk .btn.primary { border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 22px -8px rgba(31, 168, 131, .7); }
.stn.kiosk .seg button.on { background: #fff; color: #0b2a22; box-shadow: none; }
.stn-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .stn-top h1 { font-size: 25px; } .stn-top .who { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.stn-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 16px; align-items: start; }
.cam { position: relative; background: #05110e; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.cam canvas, .cam video { width: 100%; height: 100%; object-fit: contain; } .cam .off { color: #b9c9c2; text-align: center; padding: 20px; display: grid; gap: 12px; justify-items: center; } .cam .off b { font: 600 19px var(--display); color: #e4f1ec; }
.cam .off > .ico { width: 64px; height: 64px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .07); color: #dcebe5; }
.cam.recording { border: 0; padding: 9px; background: repeating-linear-gradient(135deg, #cf3327 0 14px, #fff 14px 28px); } .cam.recording canvas { border-radius: 9px; background: #05110e; }
@media (prefers-reduced-motion: no-preference) { .cam.recording { background-size: 39.6px 39.6px; animation: tape 1.2s linear infinite; } @keyframes tape { to { background-position: 39.6px 0; } } }
.cam-badge { position: absolute; left: 50%; transform: translateX(-50%); top: 11%; display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .72); color: #fff; padding: 5px 12px; border-radius: 999px; font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.cam-badge i { width: 11px; height: 11px; border-radius: 50%; background: #ff5a4a; animation: fade .8s ease-in-out infinite alternate; }
.cam-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; } .cam-bar .field { margin: 0; min-width: 124px; }
.scan { font: 700 26px var(--display) !important; padding: 12px 16px !important; letter-spacing: .02em; min-height: 62px !important; border-width: 2px !important; border-radius: 14px !important; }
.scan::placeholder { font-weight: 600; }
.stn .panel-head h2 { font-size: 18px; } .ordno { font: 700 30px/1.1 var(--display); overflow-wrap: anywhere; }
.big { padding: 15px 18px; min-height: 60px; font: 700 21px var(--display); width: 100%; border-radius: 14px; letter-spacing: .01em; }
.big.stop, .big.stop:hover { background: #14211c; border-color: #14211c; color: #fff; }
.stn.kiosk .big.stop, .stn.kiosk .big.stop:hover { background: #fff; color: #14211c; border-color: #fff; }
.markers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.markers button { display: grid; gap: 3px; justify-items: center; padding: 11px 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s, transform .12s var(--ease); }
.markers button:active:not(:disabled) { transform: scale(.97); }
.markers button kbd { font: 500 11px var(--font); color: var(--ink-3); } .markers button.done { border-color: var(--ok); background: var(--ok-tint); color: var(--ok); } .markers button:disabled { opacity: .45; cursor: not-allowed; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .items li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: 11px; transition: border-color .2s, background .2s; }
.items li.ok { border-color: var(--ok); background: var(--ok-tint); } .items li .q { font: 700 18px var(--display); min-width: 46px; text-align: center; } .items li small { color: var(--ink-3); display: block; }
.queue { list-style: none; margin: 0; padding: 0; } .queue li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); } .queue li:last-child { border: 0; }
.queue .bar { height: 5px; background: var(--grid); border-radius: 999px; margin-top: 5px; overflow: hidden; } .queue .bar i { display: block; height: 100%; border-radius: 999px; background: var(--series-1); transition: width .3s; }
.pinpad { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; justify-content: center; }
.pinpad button { height: 66px; display: grid; place-items: center; font: 700 27px var(--display); border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s, transform .1s var(--ease); }
.pinpad button:active { transform: scale(.95); background: var(--surface-2); }
.pindots { display: flex; gap: 14px; justify-content: center; margin: 16px 0; } .pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); transition: background .12s, border-color .12s, transform .12s; } .pindots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.12); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.people button { padding: 18px 10px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); cursor: pointer; font: 600 18px var(--display); color: var(--ink); transition: border-color .15s, transform .12s var(--ease), background .15s; }
.people button:hover, .pinpad button:hover, .markers button:hover:not(:disabled) { border-color: var(--series-1); } .people button:hover { transform: translateY(-2px); background: var(--surface-2); }

/* ---------- recording detail ---------- */
.player { background: #05110e; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); } .player video { width: 100%; max-height: 68vh; background: #05110e; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .timeline li:last-child { border: 0; }
.timeline button.t { all: unset; cursor: pointer; justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--mat-tint); font: 600 13.5px var(--display); color: var(--mat-2); font-variant-numeric: tabular-nums; transition: background .15s; }
.timeline button.t:hover { background: var(--series-1); color: #fff; } .timeline button.t:focus-visible { box-shadow: var(--focus); }
.timeline img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.checks { list-style: none; margin: 0; padding: 0; } .checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 6px 0; align-items: start; } .checks li small { display: block; color: var(--ink-3); } .checks .pass { color: var(--ok); } .checks .part { color: var(--kraft); } .checks .fail { color: var(--rec); }
.seal { display: inline-flex; align-items: center; gap: 7px; border: 2px solid currentColor; border-radius: 8px; padding: 4px 12px; font: 700 15px var(--display); color: var(--ok); background: var(--ok-tint); transform: rotate(-1.5deg); } .seal.bad { color: var(--rec); background: var(--rec-tint); }
.player + .panel, .player + .banner { margin-top: 18px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ---------- charts ---------- */
.chart { position: relative; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; } .chart text { font: 12px var(--font); fill: var(--ink-3); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; } .chart .hit { fill: transparent; cursor: default; } .chart .mark { transition: opacity .12s; } .chart svg:hover .mark.dim { opacity: .45; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart-tip { position: absolute; pointer-events: none; background: #14211c; color: #fff; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; z-index: 5; transform: translate(-50%, -100%); margin-top: -8px; box-shadow: var(--shadow); }
.chart-tip b { font: 700 14px var(--display); } .chart-tip i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; } .hbar .track { height: 12px; } .hbar .track i { display: block; height: 100%; background: var(--series-1); border-radius: 0 5px 5px 0; min-width: 2px; }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; } .heat i { height: 26px; border-radius: 4px; background: var(--series-1); }
.heat-x { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; color: var(--ink-3); margin-top: 4px; } .heat-x span { display: flex; justify-content: center; white-space: nowrap; }

/* ---------- floor ---------- */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.floor .panel { overflow: hidden; } .floor .panel-body { padding: 0; } .floor .shot { aspect-ratio: 16 / 9; background: #0c1b17; display: grid; place-items: center; color: #8a9992; font-size: 13px; } .floor .shot img { width: 100%; height: 100%; object-fit: cover; }
.floor .panel-body > .info { padding: 12px 16px 14px; display: grid; gap: 3px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); margin-right: 7px; } .dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); } .dot.rec { background: var(--rec); box-shadow: 0 0 0 3px var(--rec-tint); }

/* ---------- public proof page ---------- */
.proof { max-width: 880px; margin: 0 auto; padding: 0 16px 60px; } .proof-head { display: flex; align-items: center; gap: 14px; padding: 20px 0; flex-wrap: wrap; } .proof-head img { max-height: 44px; max-width: 180px; }
.proof-head h1 { font-size: 24px; } .proof .player { margin-bottom: 18px; } .proof > h1 { font-size: 30px; }
.fb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fb button { padding: 14px; min-height: 54px; font: 600 17px var(--display); }

/* ---------- print (evidence report, invoice) ---------- */
.sheet { background: #fff; color: #17201c; max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 34px 38px; --ink: #17201c; --ink-2: #4a5852; --ink-3: #75827c; --line: #d6ded9; --line-2: #b5c1bb; --surface-2: #f5f8f6; --surface: #fff; --ok: #0f7d5a; --rec: #cf3327; --kraft: #a86a12; }
.sheet > .tape:first-child { margin: -34px -38px 22px; border-radius: 3px 3px 0 0; }
.sheet h1 { font-size: 28px; } .sheet h2 { margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 2px solid #17201c; } .sheet table { width: 100%; border-collapse: collapse; } .sheet td, .sheet th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sheet th { font-weight: 600; color: var(--ink-2); } .sheet .snaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sheet .snaps figure { margin: 0; } .sheet .snaps figcaption { font-size: 12px; color: var(--ink-2); }
@media print {
  .side, .top, .no-print, .toasts, .frame-banners { display: none !important; } .shell { display: block; } .page { padding: 0; max-width: none; } .page > * { animation: none; } body, .main { background: #fff; }
  .sheet { border: 0; padding: 0; max-width: none; box-shadow: none; } .sheet > .tape:first-child { margin: 0 0 22px; border-radius: 0; } .panel { break-inside: avoid; box-shadow: none; } .tape { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One column: camera first, then the scan box and buttons, then the camera settings. */
  .stn-main { display: flex; flex-direction: column; align-items: stretch; } .stn-cam { display: contents; } .stn-main .cam { order: 1; } .stn-main > .stack { order: 2; } .stn-main .cam-bar { order: 3; margin-top: 0; } .stn-main .keys-hint { order: 4; }
}
@media (pointer: coarse) { .keys-hint { display: none; } }
@media (max-width: 820px) {
  :root { --top-h: 56px; }
  .shell { grid-template-columns: minmax(0, 1fr); } .side { position: fixed; z-index: 60; width: 264px; transform: translateX(-100%); transition: transform .22s var(--ease); } .shell.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 20, 16, .5); }
  .btn.menu-btn { display: inline-flex; } .page { padding: 18px 14px 64px; } .frame-banners { padding: 12px 14px 0; } .top { padding: 0 12px; gap: 6px; } .top .who span { display: none; } .top .who { padding: 4px; } .top .search kbd, .top .search span { display: none; } .top .search { flex: none; padding: 9px; }
  .pop { right: 12px; }
  .grid2, .grid3, .compare, .form-grid { grid-template-columns: minmax(0, 1fr); } .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { padding: 26px 22px 34px; gap: 18px; } .auth-side h1 { font-size: 30px; } .auth-side ul, .auth-foot { display: none; }
  .auth-main { padding: 22px 14px 40px; place-items: start center; } .auth-box { padding: 26px 20px 24px; }
  h1 { font-size: 24px; } .markers { grid-template-columns: repeat(2, 1fr); } .stat-value { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 13px 14px; } .stat-ico { top: 11px; right: 11px; width: 30px; height: 30px; }
  .panel-body { padding: 14px; } .panel-head { padding: 12px 14px; } .tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
  /* Filters: search stays in view, the rest opens on demand so the list is not pushed off the screen. */
  .filters { padding: 12px 14px; gap: 10px; } .filters .more-filters { display: inline-flex; }
  .filters:not(.open) .field:not(.grow):not(.filter-actions) { display: none; }
  .filters .field { flex: 1 1 140px; } .filters .field.grow, .filters .field.filter-actions { flex: 1 1 100%; } .filter-actions > label { display: none; }
  .views, .pager, .bulk { padding-left: 14px; padding-right: 14px; }
  .modal-back { padding: 16px 10px; } .modal-body { padding: 16px; } .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .stn.kiosk { padding: 12px 12px 24px; } .pinpad { grid-template-columns: repeat(3, 72px); }
  .sheet { padding: 22px 16px; } .sheet > .tape:first-child { margin: -22px -16px 18px; } .sheet .snaps { grid-template-columns: repeat(2, 1fr); }
  /* With the camera off the box grows to fit its message and button instead of clipping them. */
  .cam:has(> .off) { aspect-ratio: auto; min-height: 56vw; } .cam .off { padding: 18px 14px; gap: 9px; } .cam .off > .ico { width: 52px; height: 52px; padding: 11px; border-radius: 16px; }
}
@media (max-width: 420px) { .fb { grid-template-columns: minmax(0, 1fr); } .modal-foot { flex-wrap: wrap; } .modal-foot .btn { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
