@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.woff2) format('woff2'); }

/* Encoding used on every chart and table (management-report convention):
   2026 / actual = berry, 2025 / last year = grey, target = dashed outline, forecast = hatching.
   Rose and blush are the brand chrome (selection, focus, bands), never data. */
:root {
  --page: #faf8f9;
  --card: #ffffff;
  --band: #fbeef3;
  --band2: #f1d9e2;
  --blush: #f7bed0;
  --rose: #d4577f;
  --rosed: #ad3c63;
  --ink: #2a2427;
  --ink2: #625a5e;
  --muted: #968c91;
  --line: #ebe4e8;
  --grid: #f0ebed;
  --axis: #d6ced2;
  --head: #faf6f8;
  --hover: #fcf6f9;
  --ac: #8a2c57;
  --ac-soft: #f3e3ea;
  --py: #a69ca1;
  --pl: #4a4246;
  --good: #0f8466;
  --goodt: #0b6e55;
  --bad: #cf4436;
  --badt: #b5372a;
  --warn: #e0a019;
  --s1: var(--ac);
  --s2: var(--py);
  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hh: 30px;
  --pad: 28px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 14px/1.45 var(--display);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
::selection { background: var(--blush); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: 56px;
  display: flex; align-items: center; gap: 22px; padding: 0 var(--pad);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand img { height: 18px; display: block; }
.brand span { color: var(--ink2); font-weight: 500; font-size: 13px; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.tabs { display: flex; gap: 4px; align-self: stretch; }
.tabs a {
  display: flex; align-items: center; padding: 0 12px; color: var(--ink2); text-decoration: none;
  font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; user-select: none;
  box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .15s;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rose); }
.mini-date { display: none; align-items: center; gap: 2px; margin-left: auto; }
.top.compact .mini-date { display: inline-flex; }
.mini-date button { border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px; height: 32px; padding: 0 8px; }
.mini-date button:hover { background: var(--hover); }
.mini-date b { font-weight: 600; font-size: 14px; padding: 0 4px; white-space: nowrap; }
.mini-date b span { color: var(--ink2); font-weight: 400; margin-left: 5px; }
.fresh {
  margin-left: auto; font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 8px; min-width: 0;
  border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.top.compact .fresh { margin-left: 0; }
.fresh:hover { background: var(--hover); }
.fresh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.fresh .dot.old { background: var(--warn); box-shadow: 0 0 0 3px rgba(224, 160, 25, .18); }
.fresh b { font-weight: 600; color: var(--ink); }
.controls:empty { display: none; }

main { padding: 24px var(--pad) 64px; display: grid; gap: 20px; min-width: 0; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

/* ---------- hero: the day as a headline, a written summary, three periods ---------- */
.hero { background: var(--band); border-bottom: 1px solid var(--band2); margin: -24px calc(var(--pad) * -1) 0; padding: 22px var(--pad) 0; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.daynav { display: flex; align-items: center; gap: 6px; min-width: 0; position: relative; }
.daynav .arw {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--band2); background: rgba(255, 255, 255, .7);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s;
}
.daynav .arw:hover:not(:disabled) { background: #fff; border-color: var(--blush); }
.daynav .arw:disabled { opacity: .35; cursor: default; }
.dh { margin: 0; font: 600 30px/1.2 var(--display); letter-spacing: -.015em; min-width: 0; }
.dbtn {
  font: inherit; letter-spacing: inherit; border: 0; background: transparent; cursor: pointer; color: var(--ink);
  padding: 2px 10px; border-radius: 10px; display: flex; align-items: baseline; gap: 10px; min-width: 0; text-align: left; white-space: nowrap;
}
.dbtn:hover { background: rgba(255, 255, 255, .65); }
.dbtn .wd { font-weight: 400; font-size: 20px; color: var(--ink2); }
.dbtn svg { align-self: center; color: var(--rosed); flex: none; opacity: .8; }
.dpick { position: absolute; left: 44px; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.golast { border: 1px solid var(--band2); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--rosed); cursor: pointer; }
.golast:hover { background: #fff; }
.hero-top .cmp { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.hero .seg { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--band2); }

.lede { font: 400 16.5px/1.65 var(--display); color: var(--ink2); max-width: 78ch; margin: 14px 0 22px; text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lede .d { font-weight: 600; }

.periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--band2); }
.per { padding: 18px 28px 20px 0; min-width: 0; }
.per + .per { padding-left: 28px; border-left: 1px solid var(--band2); }
.per-l { font-size: 13px; color: var(--ink2); font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.per-l span { color: var(--muted); font-weight: 400; }
.per-v { font: 500 36px/1.15 var(--display); letter-spacing: -.02em; margin: 6px 0 4px; white-space: nowrap; font-variant-numeric: lining-nums; }
.per-v small { font-size: 20px; font-weight: 400; color: var(--ink2); margin-left: 4px; }
.per-d { font-size: 13.5px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.per-d .d { font-weight: 600; }
.per-x { font-size: 12.5px; color: var(--ink2); margin-top: 8px; line-height: 1.5; }
.per-x b { color: var(--ink); font-weight: 600; }
.per-x a { color: var(--rosed); cursor: pointer; text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 3px; }

/* bullet: berry fill = actual, hatching = forecast, grey tick = last year, dashed tick = target */
.bul { position: relative; height: 10px; margin-top: 14px; border-radius: 3px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--band2); cursor: help; }
.bul b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ac); border-radius: 3px; }
.bul .fc { position: absolute; top: 0; bottom: 0; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(-45deg, rgba(138, 44, 87, .55) 0 1.5px, transparent 1.5px 4.5px); box-shadow: inset 0 0 0 1px rgba(138, 44, 87, .35); }
.bul u { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--py); box-shadow: 0 0 0 1.5px var(--band); }
.bul u.pl { background: transparent; border-left: 2px dashed var(--pl); box-shadow: none; width: 0; margin-left: -1px; }

.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--band2); }
.strip > div { padding: 12px 16px 14px 0; min-width: 0; }
.strip > div + div { padding-left: 16px; border-left: 1px solid var(--band2); }
.strip h4 { margin: 0; font-size: 12.5px; font-weight: 400; color: var(--ink2); }
.strip h4 span { color: var(--muted); }
.strip p { margin: 2px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.strip p > span:first-child { font: 500 19px/1.3 var(--display); white-space: nowrap; }
.strip p > span:first-child small { font-size: 13px; color: var(--ink2); font-weight: 400; margin-left: 2px; }
.strip .d { font-size: 12.5px; font-weight: 600; }
.strip a { color: var(--rosed); cursor: pointer; font-size: 12.5px; }

/* ---------- panels ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.span8 { grid-column: span 8; } .span7 { grid-column: span 7; } .span5 { grid-column: span 5; } .span4 { grid-column: span 4; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.card-h { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 18px 20px 12px; }
.card-h h2 { margin: 0; font: 600 16px/1.3 var(--display); letter-spacing: -.005em; }
.card-h h2 .num { color: var(--rose); margin-right: 4px; }
.card-h .sub { color: var(--ink2); font-size: 13px; margin: 3px 0 0; }
.card-h .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-b { padding: 0 20px 18px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-top .seg[data-seg="t"] button { padding: 7px 16px; font-size: 14px; }
.card-top-r { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.card-h.sub-h { border-top: 1px solid var(--line); padding-top: 18px; }
.card-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 20px 16px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 -6px; scroll-margin-top: 72px; }
.sec-h h2 { margin: 0; font: 600 20px/1.3 var(--display); letter-spacing: -.01em; }
.sec-h p { margin: 0; color: var(--ink2); font-size: 13px; }

.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.two.eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid2 .wide { grid-column: 1 / -1; }

/* ---------- controls ---------- */
.seg { display: inline-flex; background: #f3eef1; border-radius: 10px; padding: 3px; flex-wrap: nowrap; }
.seg button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; color: var(--ink2);
  cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 500; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 36, 39, .12), 0 0 0 1px rgba(42, 36, 39, .04); }
.seg button small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 7px 13px;
  color: var(--ink); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; font-weight: 500; font-size: 13.5px;
}
.btn:hover { background: var(--hover); border-color: var(--axis); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.pri { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.pri:hover { background: #443b40; }
.btn:disabled { opacity: .45; cursor: default; }
a.btn { text-decoration: none; }
input.inp, select.inp {
  font: inherit; font-family: var(--text); padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--ink); min-height: 34px;
}
input.inp:focus, select.inp:focus, textarea.inp:focus { outline: 2px solid var(--blush); border-color: var(--rose); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px;
  font-size: 13px; cursor: pointer; color: var(--ink2); white-space: nowrap;
}
.chip:hover { border-color: var(--blush); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mut { color: var(--muted); }
.note { color: var(--muted); font-size: 12px; padding: 12px 20px 16px; line-height: 1.55; }
.note p { margin: 0 0 3px; max-width: 120ch; }

/* ---------- legend ---------- */
.lg { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--ink2); }
.lg span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.lg i.box { height: 10px; width: 10px; border-radius: 3px; }
.lg i.dash { height: 0; border-top: 2px dashed var(--pl); border-radius: 0; }
.lg i.hatch { height: 10px; width: 14px; border-radius: 2px; background: repeating-linear-gradient(-45deg, rgba(138, 44, 87, .6) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px rgba(138, 44, 87, .4); }
.lg i.dotl { height: 0; width: 18px; border-top: 2.5px dotted var(--ac); border-radius: 0; }
.lg i.ac { background: var(--ac); } .lg i.py { background: var(--py); }
.card-h .lg { margin-left: auto; }

/* ---------- charts ---------- */
.chart { padding: 0 12px 12px 4px; position: relative; }
.chart svg { display: block; overflow: visible; font-family: var(--text); }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart text.lab { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart text.lab.py { fill: var(--ink2); }
.chart text.lab.fc { fill: var(--ac); }
.chart text.we { fill: var(--rosed); }
.chart text.sel { fill: var(--ink); font-weight: 700; }
.chart text.pl-l { fill: var(--ink2); font-size: 11.5px; }
.chart .gr { stroke: var(--grid); stroke-width: 1; }
.chart .ax { stroke: var(--axis); stroke-width: 1; }
.chart .xh { stroke: var(--ink2); stroke-width: 1; }
.chart .band { fill: var(--rose); opacity: 0; }
.chart .band.on { opacity: .07; }
.chart .band.sel { fill: var(--blush); opacity: .35; }
.chart .hit { cursor: pointer; }
.chart .hit.off { cursor: default; }

/* ---------- leaderboards ---------- */
.lb { padding: 2px 10px 12px; }
.lb-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 66px; grid-template-areas: "rk nm vl dl" ". br br dl";
  column-gap: 10px; row-gap: 5px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink);
}
.lb-row:hover { background: var(--hover); }
.lb-rk { grid-area: rk; font: 500 12px/1 var(--text); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.lb-row:nth-child(-n+3) .lb-rk { color: var(--rosed); font-weight: 700; }
.lb-nm { grid-area: nm; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-nm small { font-weight: 400; color: var(--muted); margin-left: 7px; font-size: 12px; }
.lb-vl { grid-area: vl; font: 600 13.5px/1 var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-dl { grid-area: dl; font: 600 12.5px/1 var(--text); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-br { grid-area: br; position: relative; height: 8px; border-radius: 2px; background: var(--grid); }
.lb-br b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ac); }
.lb-br u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--py); box-shadow: 0 0 0 1.5px var(--card); }
.lb-br u.pl { background: transparent; border-left: 2px dashed var(--pl); box-shadow: none; width: 0; margin-left: -1px; }
.lb-row.grp .lb-nm { font-weight: 600; }
.lb-row.kid { padding-top: 5px; padding-bottom: 5px; }
.lb-row.kid .lb-nm { font-size: 13px; color: var(--ink2); padding-left: 14px; }
.lb-row.kid .lb-vl { font-weight: 500; color: var(--ink2); }
.lb-row.kid .lb-br { height: 5px; margin-left: 14px; }
.lb-row.kid .lb-br b { background: #b77a96; }
.lb-row.np .lb-nm, .lb-row.np .lb-vl { color: var(--ink2); }
.lb-row.np .lb-br b { background: #c9a5b6; }
.lb-sep { font-size: 12px; color: var(--muted); padding: 12px 10px 2px 42px; }
.lb-empty { color: var(--muted); font-size: 13px; padding: 18px 20px 26px; }
.lb-foot { font-size: 12px; color: var(--muted); padding: 0 20px 14px 52px; }

/* ---------- tables ---------- */
.tw { overflow: auto; max-height: calc(100vh - 150px); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.tw.free { max-height: none; }
table.t {
  border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%;
  font: 13px/1.4 var(--text); font-variant-numeric: tabular-nums;
}
.t th, .t td { padding: 0 11px; height: 34px; white-space: nowrap; text-align: right; border-bottom: 1px solid var(--grid); }
.t thead th {
  position: sticky; top: 0; background: var(--head); font-weight: 600; color: var(--ink2);
  height: var(--hh); z-index: 2; font-size: 12px;
}
.t thead tr.h2 th { top: var(--hh); }
.t thead tr.h3 th { top: calc(var(--hh) * 2); border-bottom-color: var(--line); }
.t thead tr.h1 th { color: var(--ink); font-size: 13px; font-family: var(--display); font-weight: 600; }
.t thead tr.h2 th.ly { color: var(--muted); }
.t thead tr.h2 th.cy { color: var(--ac); }
.t thead th small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.t th.nm, .t td.nm {
  position: sticky; left: 0; text-align: left; z-index: 1; min-width: 210px; max-width: 270px;
  overflow: hidden; text-overflow: ellipsis; background: var(--card);
  box-shadow: inset -1px 0 0 var(--line);
}
.t td.nm { font-family: var(--display); font-size: 13px; }
.t thead th.nm { z-index: 3; background: var(--head); vertical-align: bottom; padding-bottom: 8px; font-family: var(--display); }
.t td { background: var(--card); }
.t td.lyc { color: var(--ink2); }
.t .bs { box-shadow: inset 1px 0 0 var(--axis); }
.t .ys { box-shadow: inset 1px 0 0 var(--grid); }
.t tbody tr:hover td { background: var(--hover); }
.t tr.grp td { font-weight: 600; background: #fdfafb; }
.t tr.child td { color: var(--ink2); }
.t tr.child td.nm { padding-left: 36px; }
.t tr.tot td { font-weight: 700; background: var(--band); border-top: 1px solid var(--ink); border-bottom: 0; }
.t tr.tot td.nm { background: var(--band); }
.t tr.sep td {
  background: var(--page); color: var(--muted); text-align: left; font-size: 12px; height: 28px; font-family: var(--display);
}
.t tr.np td { color: var(--ink2); }
.t tr.exp td.nm { cursor: pointer; }
.t td.nm .car { display: inline-block; width: 16px; color: var(--muted); transition: transform .15s; }
.t tr.open td.nm .car { transform: rotate(90deg); }
.t td.nm .meta { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 7px; }
.t td.nm .ind { display: inline-block; width: 16px; }
.t th.srt { cursor: pointer; user-select: none; }
.t th.srt:hover { color: var(--ink); }
.t th .ar { color: var(--rose); margin-left: 3px; }
.t tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--band); } 100% { background: var(--card); } }
.d { white-space: nowrap; }
.d.up { color: var(--goodt); }
.d.dn { color: var(--badt); }
.d.na { color: var(--muted); }
.gp { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; vertical-align: middle; }
.gp i { display: block; height: 4px; width: 56px; background: var(--grid); border-radius: 2px; position: relative; overflow: hidden; }
.gp i b { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--bad); }
.gp.ok i b { background: var(--good); }
.gp.mid i b { background: var(--warn); }
.gp em { font-style: normal; line-height: 1; }
td[data-tip], span[data-tip] { cursor: help; }

/* day-by-day matrix: teal above the reference, red below, white = on par */
.t.mx td, .t.mx th { padding: 0 6px; min-width: 52px; }
.t.mx thead th { height: 42px; line-height: 1.15; text-align: center; }
.t.mx thead th small { display: block; margin: 0; }
.t.mx thead th.we { color: var(--rosed); }
.t.mx td.c { text-align: center; }
.t.mx td.z { color: var(--axis); }
.t.mx td.z0 { color: var(--badt); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12px; color: var(--ink2); padding: 12px 20px 16px; }
.sw { display: inline-block; width: 22px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* inputs inside tables */
.t input.num {
  width: 100px; text-align: right; font: inherit; font-variant-numeric: tabular-nums; padding: 3px 7px;
  border: 1px solid var(--grid); border-radius: 7px; background: var(--card); color: var(--ink);
}
.t input.num:hover { border-color: var(--axis); }
.t input.num:focus { outline: 2px solid var(--rose); outline-offset: -1px; border-color: transparent; }
.t input.num.dirty { background: #fff6dc; border-color: #f0d68a; }
.t input.num::placeholder { color: var(--axis); }
.t.tg td { height: 52px; }
.t.tg td small.ly { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.t.ff input.num { width: 84px; }
.t td.conv.est { font-style: italic; color: var(--ink2); }
.t.up td.nm { max-width: 340px; }
.t.up tr.act td { background: var(--band); }
.t.up td.acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; height: 42px; }

/* ---------- settings ---------- */
.fld { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink2); min-width: 0; }
.fld .inp { width: 100%; }
.fld small { color: var(--muted); }
textarea.inp { font: inherit; font-family: var(--text); padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
input.inp.sm { min-height: 30px; padding: 4px 9px; font-size: 13px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--rose); }
.stat { margin: 0; font-size: 13px; padding: 9px 11px; border-radius: 9px; }
.stat.ok { background: #e3f3ee; color: var(--goodt); }
.stat.bad { background: #fbe9e6; color: #9c2b20; }
.stat.wait { background: #f4eff2; color: var(--ink2); }
.steps { margin: 0; padding: 9px 11px 9px 28px; border-radius: 9px; font-size: 13px; display: grid; gap: 3px; }
.steps.ok { background: #e3f3ee; color: var(--goodt); }
.steps.bad { background: #fbe9e6; color: #9c2b20; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--rose); color: #fff; margin-left: 6px; vertical-align: 1px; }
.dz {
  display: block; border: 1.5px dashed var(--axis); border-radius: 14px; padding: 30px 22px; text-align: center;
  color: var(--ink2); background: var(--head); cursor: pointer; transition: background .15s, border-color .15s;
}
.dz:hover, .dz.over { background: var(--band); border-color: var(--rose); }
.dz b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.dz span { display: block; font-size: 13px; line-height: 1.6; }
.dz.busy { cursor: progress; opacity: .8; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--text); font-variant-numeric: tabular-nums; }
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.warns li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); }
.warns li i { flex: none; font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.warns li.warn i { background: #fff1cf; color: #8a5a00; }
.warns li.info i { background: var(--band); color: var(--rosed); }
.rules { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 13px; display: grid; gap: 6px; }
.rules b { color: var(--ink); font-weight: 600; }

/* ---------- overlays ---------- */
.tip {
  position: fixed; z-index: 100; background: var(--ink); color: #f6eff3; font: 12px/1.55 var(--text);
  padding: 9px 11px; border-radius: 9px; pointer-events: none; max-width: 320px; white-space: pre-line;
  box-shadow: 0 8px 28px rgba(42, 36, 39, .22); font-variant-numeric: tabular-nums;
}
.tip b { color: #fff; }
.tip .r { display: flex; justify-content: space-between; gap: 18px; }
.tip .k { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip .d.up { color: #6fd6b6; } .tip .d.dn { color: #ff9a8f; } .tip .d.na { color: #b9adb3; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 11px; font-size: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px);
}
.toast.err { background: var(--bad); }
.drop {
  position: fixed; inset: 0; z-index: 120; background: rgba(251, 238, 243, .93); display: grid; place-items: center;
  border: 3px dashed var(--rose);
}
.drop div { text-align: center; font-size: 22px; color: var(--ink); font-weight: 600; }
.drop small { display: block; font-size: 14px; color: var(--ink2); margin-top: 4px; font-weight: 400; }
[hidden] { display: none !important; }

/* ---------- login ---------- */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--band); }
.login-card { background: var(--card); border: 1px solid var(--band2); border-radius: 16px; padding: 32px 28px; width: min(360px, 100%); display: grid; gap: 16px; }
.login-card img { height: 20px; }
.login-card h1 { margin: 0; font-size: 18px; color: var(--ink2); font-weight: 500; }
.login-card label { display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.login-card input { font: inherit; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; }
.login-card .btn { justify-content: center; padding: 10px; }
.login-card .err { color: var(--badt); margin: 0; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .span8, .span7, .span5, .span4 { grid-column: 1 / -1; }
  .two, .two.eq { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .strip > div:nth-child(n+4) { border-top: 1px solid var(--band2); }
}
@media (max-width: 900px) {
  .top.compact .fresh .long, .top.compact .brand span { display: none; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .top { gap: 10px; height: auto; min-height: 52px; flex-wrap: wrap; padding-top: 8px; }
  .brand span { display: none; }
  .tabs { order: 5; width: calc(100% + 32px); margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--line); height: 42px; overflow-x: auto; scrollbar-width: none; }
  .top.compact .tabs { display: none; }
  .fresh { font-size: 12px; }
  .fresh .long { display: none; }
  #dlAll span { display: none; }
  .top.compact { padding-bottom: 8px; }
  .top.compact .fresh, .top.compact #dlAll { display: none; }
  .mini-date { margin-left: auto; }
  .mini-date b span { display: none; }
  main { padding: 16px var(--pad) 48px; gap: 16px; }
  .hero { margin-top: -16px; padding-top: 16px; }
  .daynav .arw { width: 32px; height: 32px; }
  .dh { font-size: 23px; }
  .dbtn { flex-direction: column; gap: 0; align-items: flex-start; padding: 2px 6px; }
  .dbtn .wd { font-size: 15px; }
  .dbtn svg { display: none; }
  .golast { order: 3; }
  .hero-top .cmp { margin-left: 0; width: 100%; justify-content: space-between; }
  .lede { font-size: 15px; margin: 12px 0 16px; }
  .periods { grid-template-columns: minmax(0, 1fr); }
  .per, .per + .per { padding: 14px 0 16px; border-left: 0; }
  .per + .per { border-top: 1px solid var(--band2); }
  .per-v { font-size: 30px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div, .strip > div + div { padding: 10px 10px 12px 0; border-left: 0; border-top: 1px solid var(--band2); }
  .strip > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--band2); }
  .card-h { padding: 16px 14px 10px; }
  .card-h .lg { margin-left: 0; }
  .card-b { padding: 0 14px 16px; }
  .card-h .act { margin-left: 0; }
  .card-top { padding: 12px 14px; }
  .card-top-r { margin-left: 0; }
  .card-top .seg[data-seg="t"] { width: 100%; }
  .card-top .seg[data-seg="t"] button { flex: 1; padding: 7px 6px; }
  .lb { padding: 0 2px 10px; }
  .lb-row { grid-template-columns: 18px minmax(0, 1fr) auto 58px; column-gap: 8px; padding: 8px; }
  .t th.nm, .t td.nm { min-width: 136px; max-width: 150px; }
  .grid2 { grid-template-columns: 1fr; }
  .tw { max-height: calc(100vh - 140px); }
  .sec-h { flex-direction: column; gap: 2px; }
}
