/* NutriMeter 3 — a diet chart, not a dashboard. Paper + hairlines, colour only where it means something. */
:root {
  --bg: #FFFFFF;
  --fill: #F3F4F2;
  --ink: #191C1A;
  --ink-2: #474D49;
  --muted: #7B817D;
  --line: #E7E9E5;
  --brand: #5B2A6E;
  --brand-ink: #FFFFFF;
  --brand-tint: #F3ECF5;
  --ideal: #2F7D4F;
  --border: #C98F0A;
  --out: #C2412D;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131614; --fill: #1D211F; --ink: #ECEFEC; --ink-2: #C4CAC6; --muted: #8D948F; --line: #2A2F2C;
    --brand: #C9A2D8; --brand-ink: #1A0F1F; --brand-tint: #2A2130;
    --ideal: #63BE88; --border: #E2B13E; --out: #EE7B66; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131614; --fill: #1D211F; --ink: #ECEFEC; --ink-2: #C4CAC6; --muted: #8D948F; --line: #2A2F2C;
  --brand: #C9A2D8; --brand-ink: #1A0F1F; --brand-tint: #2A2130;
  --ideal: #63BE88; --border: #E2B13E; --out: #EE7B66; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny { font-size: 13px; }

/* ---------- page ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 16px 20px 112px; }
@media (max-width: 700px) { .meal .row:last-of-type { margin-bottom: 0; } .page { padding-bottom: 150px; } }
.page.narrow { max-width: 440px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.head h1 { font-size: 30px; line-height: 1.1; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.head .sub { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.block { margin-top: 28px; }
.block > h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.boot { display: grid; place-items: center; height: 70vh; }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); animation: blink .9s infinite alternate; }
@keyframes blink { from { opacity: .2; } to { opacity: 1; } }
.empty { color: var(--muted); padding: 12px 0; }
.err { color: var(--out); padding: 10px 0; font-weight: 600; }
.note { color: var(--ink-2); font-size: 15px; padding: 10px 0 10px 14px; border-left: 3px solid var(--border); margin: 12px 0; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 10px;
  border: 0; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.brand { background: var(--brand); color: var(--brand-ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; }
.text-btn { background: none; border: 0; padding: 8px 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.text-btn.quiet { color: var(--muted); font-weight: 400; }
.text-btn.danger { color: var(--out); }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 10px; }
.icon svg { width: 22px; height: 22px; }
label.f { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; }
.in { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); outline: none; }
.in:focus { border-color: var(--ink); }
textarea.in { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt-list { border-top: 1px solid var(--line); }
.opt-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-row .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 2px; }
.opt-row[aria-pressed="true"] .dot { border: 6px solid var(--ink); }
.opt-row span.d { display: block; color: var(--muted); font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---------- auth ---------- */
.mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; margin: 40px 0 32px; }
.mark i { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: block; }
.auth h1 { font-size: 34px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -.015em; }
.auth .lead { color: var(--ink-2); margin: 0 0 18px; font-size: 18px; }

/* ---------- onboarding ---------- */
.stepline { color: var(--muted); font-size: 15px; margin: 6px 0 2px; }
.actions { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.drop { display: block; border: 1.5px dashed var(--muted); border-radius: 12px; padding: 30px 18px; text-align: center; cursor: pointer; }
.drop b { display: block; font-size: 18px; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-tint); }
.bar { height: 4px; background: var(--fill); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s; }

/* ---------- day strip ---------- */
.strip { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.dd { flex: 0 0 auto; width: 48px; padding: 8px 0 7px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: center; color: var(--muted); scroll-snap-align: center; }
.dd b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.dd span { font-size: 13px; }
.dd i { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; background: transparent; }
.dd.eaten i { background: var(--ideal); }
.dd.today span { color: var(--brand); font-weight: 700; }
.dd[aria-current="date"] { background: var(--ink); }
.dd[aria-current="date"] b, .dd[aria-current="date"] span { color: var(--bg); }

/* ---------- day summary ---------- */
.sum { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 2px; flex-wrap: wrap; }
.sum .big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.sum .of { color: var(--muted); }
.sum-note { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 6px; padding: 0; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.fm .n { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.fm .n b { color: var(--ink); font-weight: 600; }
.track { position: relative; height: 6px; background: var(--fill); border-radius: 6px; margin-top: 5px; overflow: hidden; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ideal); }
.track i.plan { background: var(--ink); opacity: .14; }
.focus .track i:not(.plan) { background: var(--brand); }
.track i.mid { background: var(--border); }
.track i.low, .track i.over { background: var(--out); }
.track i.near { background: var(--border); }

/* ---------- the chart (meals) ---------- */
.meal { margin-top: 26px; }
.meal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.meal-h h2 { margin: 0; font-size: 19px; font-weight: 700; }
.meal-h span { color: var(--muted); font-size: 14px; }
.meal.passed .meal-h { border-bottom-color: var(--line); }
.meal.passed .meal-h h2 { color: var(--ink-2); }
.row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 4px 10px; min-height: 54px; border-bottom: 1px solid var(--line); }
.tick { width: 34px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.tick i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; }
.tick i svg { width: 14px; height: 14px; opacity: 0; color: var(--brand-ink); }
.row.done .tick i { background: var(--brand); border-color: var(--brand); transform: scale(1.05); }
.row.done .tick i svg { opacity: 1; }
.row .what { background: none; border: 0; padding: 10px 0; text-align: left; cursor: pointer; min-width: 0; }
.row .what b { font-weight: 600; display: block; }
.row .what span { color: var(--muted); font-size: 15px; }
.row.done .what b { color: var(--ink-2); }
.row .qtyb { background: none; border: 0; cursor: pointer; padding: 10px 0 10px 8px; color: var(--ink); text-align: right; font-size: 16px; white-space: nowrap; }
.row .qtyb small { display: block; color: var(--muted); font-size: 13px; }
.add { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 12px 0 0 2px; color: var(--muted); cursor: pointer; font-size: 15px; }
.add svg { width: 18px; height: 18px; margin: 0 8px 0 4px; }
.add:hover { color: var(--brand); }
.day-tools { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }

/* water */
.water { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.water .drops { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.water .drops i { width: 10px; height: 18px; border-radius: 5px 5px 6px 6px; background: var(--fill); }
.water .drops i.f { background: #4C8DB8; }
.water .ctl { display: flex; align-items: center; gap: 6px; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; }

/* ---------- lists (generic) ---------- */
.list { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
button.li { cursor: pointer; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { display: block; font-weight: 600; }
.li .grow span { color: var(--muted); font-size: 15px; }
.li .end { text-align: right; white-space: nowrap; }

/* nutrient table */
.nt { width: 100%; border-collapse: collapse; }
.nt td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nt td.v { text-align: right; white-space: nowrap; color: var(--ink-2); font-size: 15px; width: 120px; }
.nt td.b { width: 34%; padding-left: 14px; }
.nt tr.pri td:first-child { font-weight: 600; }
.nt .grp td { border-bottom: 0; padding-top: 18px; color: var(--muted); font-size: 14px; }
.pri-mark { color: var(--brand); font-size: 12px; margin-left: 6px; font-weight: 600; }

/* ---------- sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(12, 14, 13, .42); z-index: 40; animation: fade .15s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg); border-radius: 18px 18px 0 0; max-height: 90vh; overflow: auto;
  padding: 6px 20px calc(22px + env(safe-area-inset-bottom)); max-width: 600px; margin: 0 auto; animation: up .2s ease; }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line); margin: 6px auto 12px; }
.sheet h2 { font-size: 24px; margin: 0 0 4px; line-height: 1.15; }
.sheet h3 { font-size: 16px; margin: 22px 0 6px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.stepper { display: flex; align-items: center; gap: 16px; margin: 16px 0 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 24px; cursor: pointer; }
.stepper .val { flex: 1; text-align: center; }
.stepper .val b { display: block; font-size: 22px; font-weight: 700; }
.stepper .val span { color: var(--muted); font-size: 15px; }
.tabs-in { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 10px 0 12px; overflow-x: auto; }
.tabs-in button { background: none; border: 0; padding: 10px 0; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-in button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.parsed { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.parsed span.p { color: var(--muted); font-size: 15px; }
.mini-step { display: flex; align-items: center; gap: 4px; }
.mini-step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.miss { color: var(--out); font-size: 15px; grid-column: 1 / -1; }

/* ---------- health ---------- */
.score { display: flex; align-items: center; gap: 22px; margin: 6px 0 4px; }
.donut { width: 112px; height: 112px; position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .c b { font-size: 32px; line-height: 1; display: block; }
.donut .c span { font-size: 12px; color: var(--muted); }
.legend { display: grid; gap: 5px; font-size: 16px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend b { margin-left: auto; }
.zi { background: var(--ideal); } .zb { background: var(--border); } .zo { background: var(--out); }
.zone { font-size: 14px; font-weight: 600; }
.zone.ideal { color: var(--ideal); } .zone.blow, .zone.bhigh { color: var(--border); } .zone.low, .zone.high { color: var(--out); } .zone.info { color: var(--muted); }
.mk { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0 6px; cursor: pointer; }
.mk-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mk-h b { font-weight: 600; }
.mk-h .v { white-space: nowrap; }
.mk-h .v strong { font-size: 18px; }
.mk-h .v span { color: var(--muted); font-size: 14px; }
.lm { position: relative; margin: 10px 0 16px; }
.lm .band { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 2px; }
.lm .band i { display: block; height: 100%; }
.lm .band i.low, .lm .band i.high { background: var(--out); }
.lm .band i.blow, .lm .band i.bhigh { background: var(--border); }
.lm .band i.ideal { background: var(--ideal); }
.lm .pin { position: absolute; top: -6px; width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 2px var(--bg); }
.lm .prev { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); opacity: .3; }
.lm .ticks { position: relative; height: 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.lm .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
details.cat { border-bottom: 1px solid var(--line); }
details.cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
details.cat > summary b { flex: 1; font-weight: 600; }
details.cat > summary span { color: var(--muted); font-size: 15px; }
details.cat[open] > summary { border-bottom: 1px solid var(--line); }
details.cat .mk:last-child { border-bottom: 0; }
details.more > summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 10px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.tgt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tgt .amt { text-align: right; white-space: nowrap; font-weight: 600; }
.tgt .amt small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.tgt p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.tgt .was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; }

/* ---------- shopping ---------- */
.aisle { margin-top: 22px; }
.aisle h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 2px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.shop-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.shop-row .grow { flex: 1; }
.shop-row .amt { color: var(--ink-2); white-space: nowrap; }
.shop-row.got .grow, .shop-row.got .amt { color: var(--muted); text-decoration: line-through; }

/* ---------- nav ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav .in-nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 9px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.nav a svg { width: 23px; height: 23px; }
.nav a[aria-current="page"] { color: var(--ink); }
.log-btn { position: fixed; z-index: 21; bottom: calc(70px + env(safe-area-inset-bottom)); right: max(20px, calc(50vw - 370px)); width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(91, 42, 110, .3); }
.log-btn svg { width: 26px; height: 26px; }

#toast { position: fixed; left: 50%; bottom: calc(140px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 88vw; display: flex; gap: 14px; align-items: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: none; border: 0; color: var(--brand-tint); font-weight: 700; cursor: pointer; padding: 0; }

@media (max-width: 370px) { .focus { grid-template-columns: 1fr 1fr; } .sum .big { font-size: 34px; } }

/* ---------- admin portal ---------- */
.page.wide { max-width: 1040px; }
.tabs-in a { padding: 10px 0; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-in a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.admin-tabs { margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats + .stats { border-top: 0; }
.stat { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }
a.stat:hover b { color: var(--brand); }
.alert { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.alert span { color: var(--brand); font-weight: 600; }
.weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; }
.wk { text-align: center; }
.wk .bars { height: 110px; display: flex; gap: 3px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.wk .bars i { width: 14px; border-radius: 3px 3px 0 0; min-height: 2px; }
.wk .bars i.a, .key.a { background: var(--brand); }
.wk .bars i.s, .key.s { background: var(--border); }
.wk span { font-size: 12px; color: var(--muted); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.pill.active { color: var(--ideal); }
.pill.pending { color: #8A6100; background: #FBF0D3; }
.pill.suspended { color: var(--out); }
.pill.admin { color: var(--brand); background: var(--brand-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.pending { color: var(--border); background: var(--fill); } }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .in { min-height: 40px; }
.toolbar .grow { flex: 1; min-width: 160px; }
.ut { width: 100%; border-collapse: collapse; }
.ut th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
.ut td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.ut tbody tr { cursor: pointer; }
.ut tbody tr:hover td { background: var(--fill); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.code { background: var(--fill); padding: 10px 12px; border-radius: 8px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-t { color: var(--out) !important; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; gap: 10px; }
  .hide-s { display: none; }
  .weeks .wk .bars i { width: 8px; }
}
