
:root { color-scheme: light dark; --fg:#1d2327; --muted:#5f6b73; --bg:#f7f6f2; --card:#fff; --line:#dcd9d0; --accent:#2f6b4f; --bad:#a33; }
@media (prefers-color-scheme: dark) { :root { --fg:#e8e6e1; --muted:#a2a9ad; --bg:#17191a; --card:#212426; --line:#34393c; --accent:#6dbb93; --bad:#e07a7a; } }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
header { display:flex; justify-content:space-between; align-items:center; padding:.75rem 1.25rem; border-bottom:1px solid var(--line); background:var(--card); }
header nav { display:flex; gap:1rem; align-items:center; color:var(--muted); }
header form { margin:0; }
nav.pages { display:flex; flex-wrap:wrap; gap:.25rem 1.25rem; padding:.45rem 1.25rem; border-bottom:1px solid var(--line); font-size:.9rem; }
nav.pages a { text-decoration:none; white-space:nowrap; }
nav.pages a:hover { text-decoration:underline; }
.menu h2 { font-size:1rem; margin:1rem 0 .4rem; }
.menu h2:first-child { margin-top:0; }
.menu a.button.secondary { background:transparent; }
.small { font-size:.85rem; }
p.todo { margin:.5rem 0 0; font-size:.9rem; }
.brand { font-weight:700; color:var(--accent); text-decoration:none; font-size:1.15rem; }
main { max-width:44rem; margin:2rem auto; padding:0 1.25rem; }
h1 { font-size:1.5rem; margin:0 0 1rem; }
form.card, .card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:1.25rem; margin-bottom:1rem; }
label { display:block; margin:.75rem 0 .25rem; font-weight:600; }
input, select { width:100%; padding:.55rem .6rem; font:inherit; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--fg); }
button { margin-top:1rem; padding:.55rem 1rem; font:inherit; font-weight:600; border:0; border-radius:6px; background:var(--accent); color:#fff; cursor:pointer; }
button.link { margin:0; padding:0; background:none; color:var(--accent); font-weight:400; }
button.secondary { background:#fff; color:var(--accent); border:1px solid var(--accent); }
button.small { margin:0; padding:.25rem .6rem; font-size:.875rem; }
h2 .beside { margin-left:.75rem; font-size:.95rem; font-weight:400; color:var(--muted, #666); }
form.inline { display:inline-flex; gap:.4rem; align-items:center; flex-wrap:wrap; }
form.inline select { width:auto; }
.notice { padding:.6rem .8rem; border:2px solid #b45309; border-radius:6px; background:#fef3c7; color:#000; }
.pre { white-space:pre-wrap; overflow-wrap:anywhere; }
textarea { width:100%; max-width:42rem; font:inherit; padding:.4rem; }
label.plain { font-weight:400; }
.message { position:relative; }
.message .due { float:right; margin:0 0 .5rem 1rem; padding:.35rem .7rem; border:2px solid #15803d; border-radius:6px; font-size:1.25rem; font-weight:700; color:#15803d; background:#fff; }
.message .due.late { border-color:#b91c1c; color:#fff; background:#b91c1c; }
details.thread { margin:.5rem 0; padding:.4rem .7rem; border-left:3px solid #9ca3af; }
.message .first { font-size:1.05rem; margin-top:0; }
.countbox { display:inline-block; min-width:2.2rem; margin-left:.5rem; padding:.15rem .6rem; border-radius:6px; background:transparent; border:2px solid currentColor; color:inherit; font-size:1.4rem; font-weight:700; text-align:center; vertical-align:middle; }
form.search { display:flex; flex-wrap:wrap; gap:.5rem; align-items:stretch; margin:.5rem 0; }
form.search button.secondary { background:transparent; padding-top:0; padding-bottom:0; }
form.search input[type=search] { flex:1 1 14rem; max-width:26rem; margin:0; }
form.search select { width:auto; margin:0; }
.message .actions button.secondary, .message .actions a.button.secondary { background:transparent; }
.inboxes a { margin-right:1rem; white-space:nowrap; }
a.quiet { margin-left:.75rem; font-size:.9rem; }
a.button { display:inline-block; padding:.55rem 1rem; font-weight:600; border-radius:6px; background:var(--accent); color:#fff; text-decoration:none; }
a.button.secondary { background:#fff; color:var(--accent); border:1px solid var(--accent); }
.actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.actions button { margin-top:0; }
.error { color:var(--bad); font-weight:600; }
.muted { color:var(--muted); }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:.45rem .35rem; border-bottom:1px solid var(--line); vertical-align:top; }
code, .mono { font-family:ui-monospace, Consolas, monospace; overflow-wrap:anywhere; }
label.check { display:flex; align-items:center; gap:.5rem; font-weight:400; margin-top:1rem; }
label.check input { width:auto; }
.small { font-size:.85rem; margin:.25rem 0 0; }
.links { margin-left:1.25rem; font-size:.9rem; }
.store h2 { display:flex; justify-content:space-between; align-items:center; gap:.5rem; }
.dot { display:inline-block; width:.7rem; height:.7rem; border-radius:50%; flex:none; }
.dot.ok { background:#2e9e5b; }
.dot.bad { background:#d64545; }
td.dotcell { width:1.5rem; text-align:right; vertical-align:middle; }
td.thumbcell { width:56px; padding-right:.5rem; }
.thumb { display:block; width:48px; height:48px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:6px; }
.thumb.none { background:var(--bg); }
table.listings td { vertical-align:middle; }
.chat { display:flex; flex-direction:column; gap:.45rem; margin:.6rem 0; }
.bubble { max-width:85%; padding:.5rem .75rem; border-radius:1rem; }
.bubble p { margin:0; }
.bubble p.meta { font-size:.75rem; opacity:.8; margin-bottom:.15rem; }
.bubble.them { align-self:flex-start; background:#e9e9eb; color:#1d2327; border-bottom-left-radius:.3rem; }
.bubble.you { align-self:flex-end; background:#0b57d0; color:#fff; border-bottom-right-radius:.3rem; }
@media (prefers-color-scheme: dark) { .bubble.them { background:#303437; color:#e8e6e1; } .bubble.you { background:#1a4fb0; } }
form.filters { display:grid; grid-template-columns:repeat(auto-fill, minmax(11rem, 1fr)); gap:.5rem .9rem; align-items:end; margin-bottom:1rem; }
form.filters label { display:block; font-size:.9rem; }
form.filters label.wide { grid-column:1 / -1; }
form.filters .actions { grid-column:1 / -1; margin:0; }
table.orders tr.day th { padding-top:1rem; font-size:.95rem; border-bottom:2px solid var(--line); }
table.orders td.pick input, table.orders th.pick-all input { width:auto; transform:scale(1.25); }
table.orders th.pick-all span { display:none; }
tr.variants > td { padding-top:0; }
details summary { cursor:pointer; color:var(--accent); font-size:.9rem; padding:.2rem 0; }
details table { margin:.25rem 0 .5rem; font-size:.9rem; }
details td { border-bottom-style:dashed; }
img.qr { display:block; background:#fff; padding:8px; border-radius:6px; width:200px; height:200px; }
p.inboxes { display:flex; flex-wrap:wrap; gap:.25rem .9rem; }
@media (max-width: 640px) {
  header { padding:.6rem .9rem; }
  header nav > span { display:none; }
  nav.pages { padding:.45rem .9rem; gap:.2rem 1rem; }
  main { margin:1rem auto; padding:0 .6rem; }
  form.card, .card { padding:.9rem; }
  table.stacked thead { display:none; }
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display:block; width:auto; }
  table.stacked tr { border-bottom:1px solid var(--line); padding:.4rem 0; }
  table.stacked td { border:0; padding:.15rem 0; }
  table.stacked.orders thead, table.stacked.orders thead tr { display:block; }
  table.stacked.orders thead th { display:none; }
  table.stacked.orders thead th.pick-all { display:block; border:0; padding:.2rem 0; text-align:right; }
  table.stacked.orders th.pick-all span { display:inline; font-weight:600; }
  table.stacked.orders th.pick-all input { transform:none; width:1.6rem; height:1.6rem; vertical-align:middle; }
  table.stacked tr.day { border-bottom:0; padding:.9rem 0 .1rem; }
  table.stacked tr.day th { display:block; border:0; padding:0; }
  table.stacked tr.order { position:relative; padding-right:2.75rem; }
  table.stacked td.pick { position:absolute; top:.35rem; right:0; padding:0; }
  table.stacked td.pick input { transform:none; width:1.6rem; height:1.6rem; margin:0; }
  table.stacked td:empty:not(.pick) { display:none; }
  table.stacked td[data-label]:not([data-label=""])::before { content:attr(data-label) ": "; font-weight:600; color:var(--muted); font-size:.85rem; }
  .actions { display:flex; flex-wrap:wrap; gap:.4rem; }
}

:root { --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#e87ba4; --s6:#008300; --s7:#6250d6; --s8:#898781; --grid:#e1e0d9; }
@media (prefers-color-scheme: dark) { :root { --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181; --s6:#0ca30c; --s7:#9085e9; --s8:#898781; --grid:#34393c; } }
.s1 { fill:var(--s1); } .s2 { fill:var(--s2); } .s3 { fill:var(--s3); } .s4 { fill:var(--s4); } .s5 { fill:var(--s5); } .s6 { fill:var(--s6); } .s7 { fill:var(--s7); } .s8 { fill:var(--s8); }
.charts { display:grid; grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr)); gap:1rem; }
figure.chart { margin:0 0 1rem; padding:1rem; border:1px solid var(--line); border-radius:8px; }
figure.chart figcaption { font-weight:600; margin-bottom:.5rem; }
.slice { stroke:var(--card); stroke-width:2; }
.donut { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; }
.donut-total { font-size:17px; font-weight:700; fill:var(--fg); }
.donut-sub { font-size:11px; fill:var(--muted); }
.legend { list-style:none; margin:0; padding:0; font-size:.9rem; }
.legend li { margin:.15rem 0; white-space:nowrap; }
.legend svg { vertical-align:-1px; margin-right:.3rem; }
.hero { font-size:1.9rem; font-weight:700; margin:0 0 .25rem; }
.line-chart { width:100%; height:auto; display:block; }
.line-chart .grid { stroke:var(--grid); stroke-width:1; }
.line-chart .axis { font-size:11px; fill:var(--muted); }
.line-chart .series { fill:none; stroke:var(--fg); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.line-chart circle { fill:var(--card); stroke:var(--fg); stroke-width:2; }
.line-chart .hit { fill:transparent; }
.line-chart .pt:hover circle { fill:var(--fg); }
a.button.current { pointer-events:none; }
a.button.secondary { background:var(--card); }

table.bars { width:100%; border-collapse:collapse; }
table.bars th { text-align:left; font-weight:400; font-size:.9rem; padding:.2rem .6rem .2rem 0; width:38%; border:0; }
table.bars td { border:0; padding:.2rem 0; }
table.bars .bar { width:100%; height:14px; display:block; }
table.bars .bar-fill { fill:var(--s1); }
table.bars .bar-value { width:1%; white-space:nowrap; padding-left:.6rem; font-weight:600; font-size:.9rem; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(9rem, 1fr)); gap:.75rem; margin:0 0 1rem; }
.tile { padding:.75rem 1rem; border:1px solid var(--line); border-radius:8px; }
.tile .label { font-size:.85rem; color:var(--muted); }
.tile .value { font-size:1.5rem; font-weight:700; }
main:has(.report-page) { max-width:64rem; }
details.table { margin:0 0 1rem; }
details.table summary { cursor:pointer; font-weight:600; padding:.4rem 0; }
