/* PickCheck · zie DESIGN.md voor de huisstijl */
:root {
  color-scheme: light dark;
  --bg: #f3f4f6;
  --surface: #fbfbfc;
  --surface-2: #eceef1;
  --line: #dfe2e6;
  --line-strong: #c3c8cf;
  --ink: #16191d;
  --ink-2: #565d67;
  --accent: #2d55c8;
  --accent-weak: #e7edfb;
  --on-accent: #fbfbfc;
  --ok: #127a4b; --ok-bg: #e2f3ea;
  --bad: #be2a35; --bad-bg: #fbe6e8;
  --warn: #985800; --warn-bg: #fbf1df;
  --flash-ok: #14824f; --flash-bad: #be2a35; --flash-warn: #a96300;
  --shadow: 0 8px 24px rgb(22 25 29 / .10);
  --r: 12px; --r-sm: 8px; --r-lg: 20px;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #16191e;
    --surface-2: #1e2228;
    --line: #2a2f37;
    --line-strong: #3a4049;
    --ink: #eceef1;
    --ink-2: #a2a9b3;
    --accent: #8aa5f2;
    --accent-weak: #1c2440;
    --on-accent: #0e1013;
    --ok: #55c48f; --ok-bg: #14261d;
    --bad: #f0727b; --bad-bg: #2c1619;
    --warn: #e2a54a; --warn-bg: #2a2115;
    --shadow: 0 8px 24px rgb(0 0 0 / .40);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 16px/1.45 var(--sans);
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 100dvh;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: block; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  min-height: 56px;
  padding: env(safe-area-inset-top) 12px 0;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; padding-left: 4px; }
.brand-mark { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.brand-mark .ic { width: 16px; height: 16px; }
.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -4px; border-radius: var(--r); text-decoration: none; }
.back:hover { background: var(--surface-2); }
.top-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title .num { font-weight: 700; }
.top-title small { color: var(--ink-2); font-weight: 500; margin-left: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.status .ic { width: 16px; height: 16px; }
.status-live { color: var(--ok); background: var(--ok-bg); }
.status-sync { color: var(--accent); background: var(--accent-weak); }
.status-offline { color: var(--warn); background: var(--warn-bg); }
@media (max-width: 420px) { .status .label-long { display: none; } }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.page-title { font-size: 28px; line-height: 1.15; margin: 4px 0 6px; }
.page-sub { margin: 0 0 20px; color: var(--ink-2); max-width: 52ch; }
.sec { margin: 28px 0 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background-color .12s, border-color .12s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.06); }
.btn-danger { color: var(--bad); border-color: currentColor; }
.btn-light { background: #fbfbfc; color: #16191d; border-color: #fbfbfc; margin-top: 24px; min-width: 180px; }
.btn.wide { width: 100%; margin-top: 16px; }
.stack { display: grid; gap: 10px; max-width: 340px; margin: 24px auto 0; }

/* ---------- home ---------- */
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 24px; }
.today div { background: var(--surface); padding: 14px 16px; }
.today b { display: block; font: 700 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.today span { font-size: 13px; color: var(--ink-2); }
.today .accent b { color: var(--accent); }

.primary-action {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; margin-bottom: 12px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r); text-decoration: none;
  transition: transform .12s var(--ease);
}
.primary-action:active { transform: scale(.985); }
.primary-action .pa-ic { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 16%, transparent); }
.primary-action .pa-ic .ic { width: 28px; height: 28px; }
.primary-action b { display: block; font-size: 19px; }
.primary-action small { opacity: .85; font-size: 14px; }
.primary-action .go { margin-left: auto; }

.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; text-decoration: none; }
.menu a:hover { background: var(--surface-2); }
.menu li:first-child a { border-radius: var(--r) var(--r) 0 0; }
.menu li:last-child a { border-radius: 0 0 var(--r) var(--r); }
.menu .m-ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.menu b { display: block; font-weight: 600; }
.menu small { color: var(--ink-2); font-size: 14px; }
.menu .chev { margin-left: auto; color: var(--ink-2); }

.demo-note { margin-top: 20px; font-size: 13px; color: var(--ink-2); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 68px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: border-color .12s, transform .12s var(--ease);
}
.row:hover { border-color: var(--line-strong); }
.row:active { transform: scale(.99); }
.row b { display: block; font: 700 15px var(--mono); }
.row small { color: var(--ink-2); font-size: 14px; }
.row-r { display: flex; align-items: center; gap: 10px; text-align: right; }
.row-r .meta { display: grid; gap: 4px; justify-items: end; }
.row .chev { color: var(--ink-2); }
.row.is-dim { background: transparent; }
.progress { width: 72px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.s-busy { background: var(--accent-weak); color: var(--accent); }
.s-done { background: var(--ok-bg); color: var(--ok); }
.s-warn { background: var(--warn-bg); color: var(--warn); }

.empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-2); }
.empty .ic { width: 32px; height: 32px; margin: 0 auto 8px; }
.empty b { display: block; color: var(--ink); margin-bottom: 2px; }
.empty a { color: var(--accent); font-weight: 600; }

/* ---------- pick ---------- */
.pickwrap { padding-top: 16px; padding-bottom: 24px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 8px; border-top: 3px solid var(--line); display: flex; align-items: center; gap: 4px; }
.steps li .ic { width: 14px; height: 14px; }
.steps li.cur { border-color: var(--accent); color: var(--ink); }
.steps li.done { border-color: var(--ok); color: var(--ok); }

.pickcard { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.loc {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
}
.loc-l { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.loc-l .ic { width: 22px; height: 22px; }
.loc .num { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.loc.focus { background: var(--accent-weak); box-shadow: inset 4px 0 0 var(--accent); }
.loc.focus .num, .loc.focus .loc-l { color: var(--accent); }
.loc.ok { background: var(--ok-bg); }
.loc.ok .num, .loc.ok .loc-l { color: var(--ok); }

.prod { padding: 16px 16px 4px; }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qty { font: 700 20px var(--mono); font-variant-numeric: tabular-nums; }
.qty small { font: 500 14px var(--sans); color: var(--ink-2); margin-left: 2px; }
.prod h2 { margin: 8px 0 2px; font-size: 22px; line-height: 1.2; }
.pname { margin: 0; color: var(--ink-2); font-size: 14px; }
.code { margin: 6px 0 0; font: 500 13px var(--mono); color: var(--ink-2); }
.lookalike { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.35; }
.lookalike .ic { margin-top: 1px; }

.instr { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 16px; }
.instr-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 14px var(--mono); }
.instr b { font-family: var(--mono); }
.counter { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 18px 0 6px; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.counter b { font-size: 64px; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.counter span { font-size: 26px; }
.counter.on b { color: var(--ok); }
.big-help { display: grid; gap: 10px; padding: 8px 16px 0; }
.tip { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); text-align: center; }
.rem { display: flex; gap: 8px; padding: 14px 16px 0; }
.rem input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  font: 700 22px var(--mono); font-variant-numeric: tabular-nums;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.rem input:focus-visible { outline-offset: 0; }
.sheet .rem { padding: 14px 0 0; }
.sheet .rem input { font-size: 17px; }
.hint { display: block; padding: 8px 16px 0; color: var(--ink-2); font-size: 13px; }
.pickcard > :last-child { margin-bottom: 18px; }

/* Camera: klein venster onderin. Het beeld zelf wordt niet vervormd (dat breekt het scannen),
   alleen de boven- en onderkant worden afgeknipt; het scanvak zit in het midden. */
.cam-box { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; height: 30vh; max-width: 720px; margin: 0 auto; overflow: hidden; background: #0e1013; border-top: 3px solid var(--accent); align-items: center; box-shadow: var(--shadow); }
body.cam-on .cam-box { display: flex; }
body.cam-on .pickwrap { padding-bottom: calc(30vh + 12px); }
#cam { width: 100%; flex: none; }
#cam video { width: 100% !important; display: block; }
body.cam-on .steps, body.cam-on .pname, body.cam-on .route { display: none; }
body.cam-on .pickwrap { padding-top: 10px; }
body.cam-on .loc { padding: 8px 14px; }
body.cam-on .loc .num { font-size: 32px; }
body.cam-on .prod { padding-top: 10px; }
body.cam-on .prod h2 { font-size: 19px; margin-top: 4px; }
body.cam-on .instr { padding: 10px; font-size: 15px; margin-top: 10px; }
body.cam-on .counter { padding-top: 8px; }
body.cam-on .counter b { font-size: 44px; }

.toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 64px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 13px; cursor: pointer;
  transition: transform .12s var(--ease), border-color .12s;
}
.tbtn .ic { width: 22px; height: 22px; }
.tbtn:hover { border-color: var(--line-strong); }
.tbtn:active { transform: scale(.97); }
.tbtn[aria-pressed="true"] { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }

.route { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.route summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.route summary::-webkit-details-marker { display: none; }
.route summary .ic { color: var(--ink-2); }
.route summary small { margin-left: auto; color: var(--ink-2); font-weight: 500; }
.route ol { list-style: none; padding: 0 16px 10px; margin: 0; }
.route li { display: grid; grid-template-columns: 22px 78px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.route li .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); justify-self: center; }
.route li .num { font-weight: 700; }
.route li span:last-child { color: var(--ink-2); font-family: var(--mono); }
.route li.done { color: var(--ink-2); }
.route li.done .dot { background: var(--ok); border-color: var(--ok); }
.route li.cur { font-weight: 600; }
.route li.cur .dot { background: var(--accent); border-color: var(--accent); }

.done-wrap { padding-top: 48px; }
.done-badge { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done-badge .ic { width: 44px; height: 44px; }
.done-wrap h2 { font-size: 28px; margin: 0 0 6px; }
.done-wrap p { color: var(--ink-2); max-width: 36ch; margin: 0 auto; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgb(14 16 19 / .5); }
.sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 720px; margin: 0 auto;
  max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow);
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
  animation: up .2s var(--ease);
}
.sheet-card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head h3 { margin: 4px 0 2px; font-size: 19px; flex: 1; }
.sheet-close { width: 44px; height: 44px; margin: -6px -8px 0 0; display: grid; place-items: center; border-radius: var(--r); border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.sheet-close:hover { background: var(--surface-2); }
.sheet p { margin: 0; font-size: 14px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.simgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sim {
  display: grid; gap: 4px; text-align: left; padding: 12px; min-height: 64px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .12s var(--ease);
}
.sim:active { transform: scale(.98); }
.sim .sim-t { display: flex; gap: 6px; align-items: center; }
.sim .ic { width: 16px; height: 16px; }
.sim small { font: 500 11px var(--mono); color: var(--ink-2); word-break: break-all; }
.sim.ok .sim-t { color: var(--ok); }
.sim.bad .sim-t { color: var(--bad); }

/* ---------- flash ---------- */
.flash { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 24px; color: #fbfbfc; text-align: center; }
.flash.show { display: grid; animation: pop .16s var(--ease); }
.flash.ok { background: color-mix(in srgb, var(--flash-ok) 95%, transparent); pointer-events: none; }
.flash.bad { background: var(--flash-bad); }
.flash.warn { background: var(--flash-warn); }
.flash-icon .ic { width: 80px; height: 80px; margin: 0 auto; }
.flash-title { font-size: 30px; font-weight: 700; margin-top: 10px; letter-spacing: -.02em; }
.flash-msg { font-size: 18px; margin-top: 10px; line-height: 1.4; max-width: 30ch; }
.flash-msg b { font-family: var(--mono); }
@keyframes pop { from { opacity: 0; transform: scale(1.02); } }

/* ---------- controleur ---------- */
.summary { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); margin-bottom: 14px; font-size: 16px; line-height: 1.45; }
.summary .ic { width: 24px; height: 24px; margin-top: 1px; }
.summary.ok { background: var(--ok-bg); }
.summary.ok .ic { color: var(--ok); }
.summary.warn { background: var(--warn-bg); }
.summary.warn .ic { color: var(--warn); }
.summary.neutral { background: var(--surface-2); }
.clines { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.clines li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.clines li + li { border-top: 1px solid var(--line); }
.clines li.risk { background: var(--warn-bg); box-shadow: inset 4px 0 0 var(--warn); }
.clines li.risk:first-child { border-radius: var(--r) var(--r) 0 0; }
.clines li.risk:last-child { border-radius: 0 0 var(--r) var(--r); }
.clines li.pending { opacity: .55; }
.cl-l { display: grid; gap: 2px; min-width: 0; }
.cl-l .num { font-weight: 700; }
.cl-l small { color: var(--ink-2); font: 500 12px var(--mono); }
.cl-r { text-align: right; display: grid; gap: 4px; justify-items: end; align-content: start; }
.cl-r .num { font-weight: 700; font-size: 18px; }
.cl-r small { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.cl-r small .ic { width: 14px; height: 14px; }
.cl-r .s { color: var(--ok); }
.cl-r .r { color: var(--warn); font-weight: 600; }
.cl-r .e { color: var(--bad); }
.checked-note { display: flex; justify-content: center; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; margin-top: 16px; }

/* ---------- dashboard ---------- */
.dash { max-width: 1120px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head .page-sub { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--surface); padding: 16px; }
.kpi span { display: block; font-size: 14px; color: var(--ink-2); }
.kpi b { display: block; font: 700 32px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin-top: 6px; }
.kpi b i { font-style: normal; font-size: 18px; color: var(--ink-2); }
.kpi small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.kpi.lead { grid-column: 1 / -1; }
.kpi.lead b { font-size: 56px; color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 12px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 136px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; }
.bar div { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bad); border-radius: 5px; transform-origin: left; animation: grow .5s var(--ease); }
.bar.warn i { background: var(--warn); }
.bar b { text-align: right; font: 700 15px var(--mono); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.feed { list-style: none; padding: 0; margin: 0; max-height: 480px; overflow: auto; overscroll-behavior: contain; }
.feed li { display: grid; grid-template-columns: 20px 64px 1fr; gap: 10px; align-items: start; padding: 10px 0; font-size: 14px; line-height: 1.4; }
.feed li + li { border-top: 1px solid var(--line); }
.feed li:first-child { animation: newrow .6s var(--ease); }
.feed .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-2); }
.feed li.bad .ic { color: var(--bad); }
.feed li.warn .ic { color: var(--warn); }
.feed li.good .ic { color: var(--ok); }
.feed time { font: 500 12px var(--mono); color: var(--ink-2); padding-top: 2px; }
@keyframes newrow { from { opacity: 0; transform: translateY(-4px); } }
.foot { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
@media (min-width: 900px) {
  .kpis { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .kpi.lead { grid-column: auto; }
  .dash-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 12px; align-items: start; }
}

/* ---------- settings ---------- */
.set-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; }
.set-group h3 { margin: 0; padding: 14px 16px 4px; font-size: 15px; }
.set-group > p { margin: 0; padding: 0 16px 12px; font-size: 14px; color: var(--ink-2); }
.tog { display: flex; gap: 14px; align-items: center; padding: 14px 16px; min-height: 56px; font-size: 15px; cursor: pointer; }
.tog + .tog, .tog + .field { border-top: 1px solid var(--line); }
.tog span { flex: 1; }
.tog small { display: block; color: var(--ink-2); font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fbfbfc; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .18s var(--ease); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; }
.field input { width: 96px; height: 44px; padding: 0 12px; text-align: right; font: 700 16px var(--mono); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r); }
.set-actions { padding: 4px 16px 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 0 16px 14px; font-size: 14px; color: var(--ink-2); }

@media (max-width: 380px) {
  .today { grid-template-columns: 1fr 1fr; }
  .today div:last-child { grid-column: 1 / -1; }
  .loc .num { font-size: 34px; }
  .bar { grid-template-columns: 104px 1fr 28px; }
  .simgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
