@import url("/static/fonts/fonts.css");

/* Yellow Bird Coffee look (yellowbirdcoffee.dk): bird yellow, warm cream, near-black ink,
   Bricolage Grotesque headings, Figtree text, pill buttons. */
:root {
  --bg: #faf6ef; --surface: #ffffff; --surface-2: #f4ebdd; --text: #1f1f1f; --muted: #6b665d;
  --line: #ece4d6; --accent: #fed769; --accent-ink: #141414; --accent-soft: #fff4cf; --accent-strong: #fecc40;
  --link: #1f1f1f; --link-line: #fecc40;
  --ok: #2e7d4f; --ok-soft: #e6f2e4; --warn: #a15c00; --warn-soft: #fdeccf; --bad: #b3261e; --bad-soft: #fbe2df;
  --mint: #eef4ed; --sky: #d7e4ed;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(60,40,0,.05);
  --font-body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412; --surface: #1f1d1a; --surface-2: #2a2722; --text: #f1eee8; --muted: #a8a297;
    --line: #36322b; --accent: #fed769; --accent-ink: #141414; --accent-soft: #3b321b; --accent-strong: #fecc40;
    --link: #fed769; --link-line: rgba(254, 215, 105, .45);
    --ok: #6cc28f; --ok-soft: #1e3227; --warn: #f0b35a; --warn-soft: #3a2c17; --bad: #f2877e; --bad-soft: #3d2120;
    --mint: #1e2a20; --sky: #1c2630;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, .brand { font-family: var(--font-heading); letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 0 0 6px; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

.top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 40px; }
.brand span { background: var(--accent); color: var(--accent-ink); padding: 1px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 7px 14px; border-radius: 999px; color: var(--text); font-weight: 500; text-decoration: none; }
.top nav a:hover { background: var(--surface-2); }
.top nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fresh { margin-left: auto; font-size: 13px; color: var(--muted); }

main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.page-head { margin-bottom: 20px; }
.page-head p { margin: 4px 0; max-width: 820px; }

.btn { display: inline-block; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 9px 20px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); text-decoration: none; }
.btn.small { padding: 4px 12px; font-size: 12px; letter-spacing: .03em; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #d9d0c0; border-radius: 6px; padding: 7px 10px; min-width: 0; }
@media (prefers-color-scheme: dark) { input, select, textarea { border-color: var(--line); } }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-strong); outline-offset: -1px; }
form.inline { display: inline; }

.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.badge { background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.low { border-color: var(--warn); }
.card.negative { border-color: var(--bad); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .title { font-family: var(--font-heading); font-weight: 700; color: var(--text); font-size: 17px; text-decoration: none; }
.card .title:hover { text-decoration: underline; text-decoration-color: var(--link-line); }
.level { margin: 10px 0 12px; }
.level .big { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.unit { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--warn); margin: 10px 0 0; }
.actions { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.actions summary { cursor: pointer; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.move { margin-top: 12px; }
.move .lbl { display: block; font-weight: 600; margin-bottom: 4px; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.row > input { flex: 1 1 90px; }
.row > input.when { flex: 1 1 100%; }

.split { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; flex: 0 1 380px; box-shadow: var(--shadow); min-width: 0; }
.panel.grow { flex: 1 1 520px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.stack label .small { font-weight: 400; }
.stack .row label { flex: 1; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 6px 8px; }
.table td { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.sub td { color: var(--muted); font-size: 13.5px; padding-top: 3px; padding-bottom: 3px; }
.table tr.sub td:first-child { padding-left: 24px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type=search] { flex: 1 1 260px; }
.filters label { display: flex; align-items: center; gap: 6px; }
.check { font-size: 14px; }
.quick a { margin-right: 10px; font-size: 14px; }

.products { display: flex; flex-direction: column; gap: 10px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.product-head { margin-bottom: 6px; }
.rule-row { display: grid; grid-template-columns: minmax(180px, 300px) 1fr 130px auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.rule-row.variant .who { padding-left: 14px; }
.who { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; }
.who .small { font-weight: 400; }
.can-sell { font-size: 14px; font-variant-numeric: tabular-nums; }
.notice { background: var(--ok-soft); color: var(--ok); padding: 8px 12px; border-radius: 8px; display: inline-block; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.receive { max-width: 900px; flex: none; }
.receive .amt { width: 100px; text-align: right; }
.receive .mat { min-width: 220px; }
.receive label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.grow-field { flex: 1 1 260px; }
.rules { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.chip.neg { background: var(--bad-soft); }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 12px; }
.chip button:hover { color: var(--bad); }
.rule-form { display: flex; gap: 6px; }
.rule-form input { width: 64px; }
.rule-form .unit-in { width: 80px; }
.rule-form .material-in { width: 170px; }

details.cat { border-top: 1px solid var(--line); padding: 8px 0; }
details.cat summary { cursor: pointer; padding: 4px 0; }
ul.plain { padding-left: 18px; }
ul.bars { list-style: none; padding: 0; margin: 0; font-size: 13px; }
ul.bars li { display: grid; grid-template-columns: 82px 1fr 60px; gap: 8px; align-items: center; padding: 2px 0; }
.bar { background: var(--surface-2); border-radius: 4px; height: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.v { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  main, .top { padding: 12px 16px; }
  .fresh { margin-left: 0; width: 100%; }
  .rule-row { grid-template-columns: 1fr; }
  .rule-form { flex-wrap: wrap; }
  .rule-form input, .rule-form .unit-in { width: auto; flex: 1 1 60px; }
  .rule-form .material-in { flex: 1 1 100%; order: -1; width: auto; }
}
h2.group { margin: 24px 0 10px; font-size: 18px; }
h2.group:first-of-type { margin-top: 0; }
#bulk-own { display: flex; gap: 6px; }
#bulk-own[hidden] { display: none; }
[hidden] { display: none !important; }

/* Stock status overview */
.overview { flex: none; margin-bottom: 20px; }
.statusbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 4px 0 10px; }
.statusbar .seg { display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; min-width: 24px; }
.seg.ok, .bar i.ok, .meter i.ok, .dot.ok { background: var(--ok); }
.seg.warn, .bar i.warn, .meter i.warn, .dot.warn { background: var(--warn); }
.seg.bad, .bar i.bad, .meter i.bad, .dot.bad { background: var(--bad); }
.seg.none, .bar i.none, .meter i.none, .dot.none { background: var(--muted); }
@media (prefers-color-scheme: dark) { .statusbar .seg { color: var(--bg); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend-item { border: 1px solid transparent; background: none; color: var(--text); font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.legend-item:hover, .legend-item.on { border-color: var(--line); background: var(--surface-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; }
.chart-title { margin: 18px 0 8px; font-size: 14px; }
.runway { list-style: none; padding: 0; margin: 0; font-size: 13px; max-height: 320px; overflow-y: auto; }
.runway li { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 52px; gap: 10px; align-items: center; padding: 2px 0; }
.runway a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runway .bar { height: 12px; }
.meter { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; }
.meter b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .5; }
.card.status-warn { border-color: var(--warn); }
.card.status-bad { border-color: var(--bad); }

/* Order list */
.order { flex: none; margin-bottom: 18px; }
.order .amt { width: 70px; text-align: right; }
.order tr.zero td { opacity: .5; }
.order tfoot td { border-bottom: 0; }
.order-actions { margin-top: 12px; justify-content: flex-end; }
.uncounted { margin-top: 10px; font-size: 13.5px; }
.uncounted summary { cursor: pointer; color: var(--muted); }
.days { width: 70px; }
@media (max-width: 720px) {
  .order .table, .order .table tbody, .order .table tr, .order .table td { display: block; }
  .order .table thead { display: none; }
  .order .table tr.oline { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .order .table tr.oline td { border: 0; padding: 2px 4px; text-align: left; }
  .order .table tr.oline td:first-child { grid-column: 1 / -1; }
  .order tfoot tr { display: flex; justify-content: space-between; }
  .runway li { grid-template-columns: 110px 1fr 44px; }
  .order .table td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); }
  .top nav { flex-wrap: wrap; }
}
.panel:has(> .table), .receive { overflow-x: auto; }
.hints { list-style: none; margin: 0; padding: 0; }
.hints li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.hints li:first-child { border-top: 0; }
.usage-editor { flex: none; margin-bottom: 20px; overflow-x: auto; }
@media (max-width: 720px) { .hide-sm { display: none; } }
.usage-editor .amt { width: 90px; text-align: right; }
tr.off td { opacity: .55; }
.notice.info { background: var(--accent-soft); color: var(--text); }
.notice.warn-notice { background: var(--warn-soft); color: var(--text); }
.disabled-list { margin-top: 28px; }
.disabled-list summary { cursor: pointer; font-weight: 600; }
.auto-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 16px; }
#bulk-own .check { font-size: 13px; }

/* Materials list: no sideways scrolling */
.materials-table td:first-child { min-width: 0; overflow-wrap: anywhere; }
.materials-table td:first-child .badge { margin-left: 4px; }
details.menu { display: inline-block; position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 130px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 4px; display: flex; flex-direction: column; text-align: left; }
.menu-list a, .menu-list button { display: block; width: 100%; padding: 6px 10px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; border-radius: 6px; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); text-decoration: none; }
.menu-list .danger-text { color: var(--bad); }
@media (max-width: 1100px) { .hide-md { display: none; } }
.panel:has(> .materials-table) { overflow: visible; }
.logout { margin: 0; }
.login-page main { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 100%; max-width: 360px; flex: none; }
.login h1 { font-size: 22px; margin-bottom: 16px; }
.login h1 span { background: var(--accent); color: var(--accent-ink); padding: 0 10px; border-radius: 999px; font-size: 16px; vertical-align: middle; }
.login .logo { display: block; width: 56px; height: 65px; margin-bottom: 14px; }
.notice.bad-notice { background: var(--bad-soft); color: var(--bad); }
a.fresh { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
a.fresh:hover { color: var(--text); text-decoration: none; }
a.fresh strong { color: var(--text); font-weight: 600; }
.new-count { background: var(--ok-soft); color: var(--ok); font-weight: 600; padding: 1px 7px; border-radius: 999px; font-size: 12px; }
.new-count.zero { background: var(--surface-2); color: var(--muted); }
.table tr.sel td { background: var(--accent-soft); }
.err { color: var(--bad); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mt { margin-top: 22px; }

/* Brand details */
.level .big { font-family: var(--font-heading); font-weight: 800; }
h2.group { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 20px; }
.panel { padding: 20px; }
.overview { background: var(--surface); }
.page-head h1 + .muted, .page-head > .muted { font-size: 15px; }
.top { border-bottom: 1px solid var(--line); }
.top nav a, .brand, .logout .btn { white-space: nowrap; }
.statusbar { border-radius: 999px; }
.bar, .meter { border-radius: 999px; }
.bar i, .meter i { border-radius: 999px; }
ul.bars .bar i { background: var(--accent-strong); }
.badge { border-radius: 999px; }
.chip { background: var(--accent-soft); }
.notice { border-radius: var(--radius-sm); }
.login-page { background: var(--accent); }
@media (prefers-color-scheme: dark) { .login-page { background: var(--bg); } }
.login { border-radius: 20px; padding: 28px; box-shadow: 0 10px 40px rgba(60, 40, 0, .15); }
.login .btn { width: 100%; padding: 12px; }
a.fresh, a.fresh * { text-decoration: none; }
a.fresh:hover strong { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; }
@media (max-width: 720px) {
  .top { position: static; gap: 10px 16px; }
  .top nav { gap: 2px; }
  .top nav a { padding: 6px 11px; }
  a.fresh { width: auto; flex: 1 1 auto; margin-left: 0; }
  h1 { font-size: 28px; }
}

/* Trends charts: validated pair (amber / blue) and an amber 5-step ramp, light and dark */
.viz { --series-1: #b07800; --series-2: #2f6fb0; --grid: #ece4d6;
  --lv1: #dcae2a; --lv2: #c08f08; --lv3: #9c7000; --lv4: #765300; --lv5: #4f3700; --lv-ink: #fff; }
@media (prefers-color-scheme: dark) {
  .viz { --series-1: #c08a00; --series-2: #4f8fd6; --grid: #36322b;
    --lv1: #665016; --lv2: #86680f; --lv3: #a68108; --lv4: #c69a00; --lv5: #e6b300; --lv-ink: #141414; }
}
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--text); }
.segmented button.on { background: var(--accent); color: var(--accent-ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { flex: none; display: flex; flex-direction: column; gap: 3px; }
.kpi-value { font-family: var(--font-heading); font-weight: 800; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.chart-panel { flex: none; margin-bottom: 18px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .direct { fill: var(--text); font-size: 12px; font-weight: 700; font-family: var(--font-body); }
.chart .bar { fill: var(--series-1); }
.chart .avg-line, .chart .this-line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .this-line { stroke: var(--series-1); }
.chart .last-line { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.chart .band { fill: transparent; }
.chart .cross, .chart .this-dot, .chart .last-dot { opacity: 0; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .this-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart .last-dot { fill: var(--series-2); stroke: var(--surface); stroke-width: 2; }
.chart .hit:hover .cross, .chart .hit:hover .this-dot, .chart .hit:hover .last-dot { opacity: 1; }
.chart .hit:hover .bar { fill: var(--text); }
.chart .hit:hover .band { fill: var(--surface-2); opacity: .6; }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -4px 0 8px; color: var(--muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.bar-key, .this-key { background: var(--series-1); }
.line-key { height: 2px; background: var(--text); }
.this-key { height: 3px; }
.last-key { height: 0; border-top: 2px dashed var(--series-2); border-radius: 0; }
.legend-row .key.lv1, .legend-row .key.lv2, .legend-row .key.lv3, .legend-row .key.lv4, .legend-row .key.lv5 { width: 18px; height: 12px; margin: 0 -4px; border-radius: 2px; }
.lv1, .heat td.lv1 { background: var(--lv1); } .lv2, .heat td.lv2 { background: var(--lv2); } .lv3, .heat td.lv3 { background: var(--lv3); color: var(--lv-ink); }
.lv4, .heat td.lv4 { background: var(--lv4); color: var(--lv-ink); } .lv5, .heat td.lv5 { background: var(--lv5); color: var(--lv-ink); }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: 11.5px; font-variant-numeric: tabular-nums; width: 100%; }
.heat th { color: var(--muted); font-weight: 600; padding: 2px 4px; text-align: center; }
.heat tbody th { text-align: left; }
.heat td { text-align: center; height: 26px; min-width: 26px; border-radius: 4px; background: var(--surface-2); color: var(--accent-ink); }
.heat td.lv0 { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { .heat td.lv1, .heat td.lv2 { color: var(--text); } .heat td.lv3 { color: var(--accent-ink); } }
.movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin: 18px 0; }
.movers .panel { flex: none; }
.spark polyline { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--muted); }
@media (max-width: 720px) { .chart .axis { font-size: 16px; } .kpi-value { font-size: 26px; } }

/* Compact header so nav, import status and log out fit on one line */
.top { gap: 14px; padding: 10px 20px; }
.top nav { gap: 2px; flex-wrap: wrap; }
.top nav a { padding: 6px 11px; }
.brand span { display: none; }
@media (max-width: 1100px) { .brand span { display: inline; } }
.add-email { margin-top: 10px; }
.add-email input { flex: 1 1 200px; }
.inline-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
pre.code { background: var(--surface-2); padding: 10px 12px; border-radius: 8px; font-size: 13px; overflow-x: auto; }
.head-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
