/* Halo Parkee — laporan operasional Join Operation (Halo × Zenith).
   Design intent (anti-slop):
   - Shell: dark brand rail (logo lives on black) + light report canvas for scanning money.
   - Not a generic dark SaaS dashboard; light canvas is where the work happens.
   - Brand meaning: yellow = bagian Halo, teal = Zenith / aksen aksi.
   - Type: Segoe UI Variable + Cascadia Mono figures (same family as Halo CPMS).
   - Surfaces: flat, hairline rules, radius 2px — ledger density, not card theater. */
:root {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Report canvas (main) */
  --page: #e8ebf0;
  --surface-1: #ffffff;
  --surface-2: #f4f6f9;
  --border: #d5dbe4;
  --grid: #e6eaef;
  --text-primary: #101820;
  --text-secondary: #3d4654;
  --text-muted: #5a6574;
  --text-faint: #6b7685;

  /* Brand */
  --brand: #0f8f85;
  --brand-ink: #0a6e66;
  --brand-soft: rgba(15, 143, 133, 0.1);
  --brand-yellow: #ffc91f;
  --halo-ink: #7a5a00;
  --accent: #0f8f85;
  --accent-strong: #0a6e66;
  --on-accent: #ffffff;
  --share-halo: #e6b400;
  --share-zen: #0f8f85;

  /* Charts — fixed meaning, colour-blind separated */
  --series-1: #0f8f85;
  --series-2: #d45a28;
  --series-3: #2a6fc4;
  --series-4: #b07a00;
  --hover-band: rgba(16, 24, 32, 0.04);
  --good: #147a38;
  --critical: #b42323;
  --warn: #a15c00;

  --radius: 2px;
  --target: 44px;
  --space: 8px;
  --shadow: none;

  /* Brand rail (sidebar) — dark so logo (teal+yellow on black) reads correctly */
  --rail-bg: #0c1016;
  --rail-border: #1c2430;
  --rail-text: #c5ced8;
  --rail-muted: #7a8696;
  --rail-active: #ffc91f;
  --rail-hover: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-primary);
  font: 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; font-family: var(--font-display); }
p { margin: 0; }
.sub, .card-head p { color: var(--text-secondary); font-size: 13px; margin-top: 2px; line-height: 1.45; }

/* ---------- shell: rail + report ---------- */
.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--rail-bg);
  color: var(--rail-text);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 12px 16px;
  border-right: 0;
  box-shadow: inset -1px 0 0 var(--rail-border);
  /* Signature: yellow brand edge — Halo identity, not decoration */
  border-left: 4px solid var(--brand-yellow);
}
.side-brand { padding: 0 8px; }
.side-brand .logo {
  width: 100%;
  max-width: 168px;
  height: auto;
  display: block;
}
.side-title {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #f0f3f7;
}
.side-title span {
  display: block;
  font-weight: 400;
  color: var(--rail-muted);
  margin-top: 3px;
  font-size: 11.5px;
}

.side-nav { display: grid; gap: 2px; }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--rail-text);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  min-height: var(--target);
  border-left: 2px solid transparent;
}
.side-nav button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.55;
  flex: none;
}
.side-nav button:hover { background: var(--rail-hover); color: #eef2f6; }
.side-nav button[aria-selected="true"] {
  background: transparent;
  color: #fff;
  font-weight: 650;
  border-left-color: var(--rail-active);
}
.side-nav button[aria-selected="true"] svg { opacity: 1; color: var(--rail-active); }
.side-nav button:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}
.nav-badge {
  margin-left: auto;
  color: #ff8a8a;
  font: 600 11px/1 var(--mono);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 3px 5px;
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 0 8px;
}
.side-foot .sub {
  color: var(--rail-muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}
.side-foot button.primary {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #1a1400;
  font-weight: 700;
}
.side-foot button.primary:hover { filter: brightness(1.05); }
.side-foot button.ghost {
  background: transparent;
  border-color: var(--rail-border);
  color: var(--rail-text);
}
.side-foot button.ghost:hover {
  border-color: var(--rail-muted);
  background: var(--rail-hover);
}

.main { min-width: 0; display: flex; flex-direction: column; background: var(--page); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 2.5vw, 28px) 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.topbar h1 {
  font: 650 22px/1.2 var(--font-display);
  margin-top: 3px;
  color: var(--text-primary);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.filters label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.dates { display: flex; gap: 8px; }

.content {
  padding: 16px clamp(16px, 2.5vw, 28px) 0;
  display: grid;
  gap: 14px;
  max-width: 1680px;
  width: 100%;
}

/* ---------- controls ---------- */
select, input[type="date"], button {
  font: inherit;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  min-height: 34px;
}
select { min-width: 220px; max-width: 100%; }
button { cursor: pointer; }
button:hover { border-color: var(--text-muted); }
.presets {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
}
.presets button {
  border: 0;
  background: transparent;
  border-radius: 1px;
  min-height: 30px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.presets button[aria-pressed="true"] {
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
}
button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 650;
  min-height: var(--target);
}
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; }
button.link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  color: var(--brand-ink);
  font-weight: 600;
  margin-top: 12px;
  text-align: left;
}
button.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  background: #fff8eb;
  color: var(--text-secondary);
}

/* ---------- cards & grids ---------- */
.tabpanel { display: grid; gap: 14px; }
[hidden] { display: none !important; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--accent-strong);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.compare { font-size: 12px; color: var(--text-muted); }
.compare b { font-weight: 600; color: var(--text-secondary); }

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
}
.card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* ---------- hero: casual revenue + JO split ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  gap: 14px;
}
.rev, .stats {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.rev {
  padding: 20px 22px 18px;
  display: grid;
  gap: 18px;
  /* Halo share is the business question — yellow top rule */
  border-top: 3px solid var(--brand-yellow);
}
.label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.big {
  font: 500 38px/1.08 var(--mono);
  letter-spacing: -0.03em;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--text-primary);
}
.delta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.delta .up { color: var(--good); font-weight: 650; }
.delta .down { color: var(--critical); font-weight: 650; }

.share-bar {
  display: flex;
  height: 10px;
  background: var(--grid);
  gap: 2px;
}
.share-bar span { display: block; height: 100%; }
.share-bar .s-halo { background: var(--share-halo); }
.share-bar .s-zen { background: var(--share-zen); }
.share-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 12px;
}
.part { display: grid; grid-template-columns: 3px 1fr; gap: 12px; }
.part > i { border-radius: 0; }
.part.halo > i { background: var(--share-halo); }
.part.zen > i { background: var(--share-zen); }
.part .who {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.part .who b {
  font: 600 11px var(--mono);
  color: var(--text-faint);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.part .amt {
  font: 500 22px/1.2 var(--mono);
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.stats { display: grid; align-content: stretch; }
.stat {
  padding: 12px 18px;
  border-bottom: 1px solid var(--grid);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 12px;
}
.stat:last-child { border-bottom: 0; }
.stat .amt {
  font: 500 18px/1.2 var(--mono);
  letter-spacing: -0.01em;
  text-align: right;
}
.stat .delta { grid-column: 1 / -1; margin-top: 0; }

td, .hbar .val, .fc-stats .value, #fc-mini .value, .ind-kpis .value, .tip .r span:last-child {
  font-family: var(--mono);
}
td:first-child { font-family: var(--font); }

/* ---------- insights ---------- */
.insights header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
  margin-bottom: 0;
}
.insights ul { margin: 0; padding: 0; list-style: none; }
.insights li {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 11px 0 11px 12px;
  border-bottom: 1px solid var(--grid);
  border-left: 2px solid transparent;
}
.insights li:last-child { border-bottom: 0; }
.insights li.risk { border-left-color: var(--critical); background: linear-gradient(90deg, rgba(180, 35, 35, 0.04), transparent 40%); }
.insights li a {
  color: var(--brand-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- forecast mini ---------- */
.fc-mini { display: flex; flex-direction: column; }
#fc-mini { display: grid; gap: 8px; }
#fc-mini > div {
  border: 0;
  border-bottom: 1px solid var(--grid);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
}
#fc-mini > div:last-child { border-bottom: 0; }
#fc-mini .label { font-size: 11px; color: var(--text-muted); }
#fc-mini .value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
#fc-mini .range { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
#fc-mini .halo {
  border-left: 3px solid var(--brand-yellow);
  padding-left: 12px;
  border-bottom: 0;
  background: color-mix(in srgb, var(--brand-yellow) 8%, transparent);
  margin: 4px -6px 0;
  padding: 12px;
}
#fc-mini .up { color: var(--good); font-weight: 650; }
#fc-mini .down { color: var(--critical); font-weight: 650; }

/* ---------- charts ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  display: inline-block;
}
.legend i.line { height: 2px; border-radius: 0; width: 14px; }
.legend i.dash {
  height: 0;
  width: 16px;
  border-top: 2px dashed currentColor;
  background: none !important;
  border-radius: 0;
}
.legend i.band { width: 14px; height: 10px; border-radius: 1px; }
.chart { width: 100%; height: 280px; position: relative; }
.chart.small { height: 200px; }
.chart.tall { height: 340px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px 0;
  text-align: center;
}

.hbars { display: grid; gap: 2px; }
.hbars.mix { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.hbar {
  display: grid;
  grid-template-columns: minmax(100px, 32%) 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  padding: 6px 4px;
}
.hbar:hover { background: var(--hover-band); }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 10px; background: var(--grid); }
.hbar .fill {
  height: 100%;
  border-radius: 0;
  background: var(--series-1);
  min-width: 2px;
  transform-origin: left;
}
.hbar .val { text-align: right; min-width: 80px; font-weight: 650; }
.hbar .val small { color: var(--text-muted); font-weight: 400; margin-left: 6px; }

/* ---------- forecast tab ---------- */
.fc-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr);
  gap: 20px;
  align-items: start;
}
.fc-stats { display: grid; gap: 0; }
.fc-stats > div {
  border: 0;
  border-bottom: 1px solid var(--grid);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
}
.fc-stats > div:first-child { padding-top: 0; }
.fc-stats .label { font-size: 11px; color: var(--text-muted); }
.fc-stats .value {
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.fc-stats .range { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.fc-stats .halo {
  border-top: 0;
  border-left: 3px solid var(--brand-yellow);
  padding-left: 12px;
  background: color-mix(in srgb, var(--brand-yellow) 8%, transparent);
  margin: 4px -4px;
  padding: 14px 12px;
  border-bottom: 0;
}
.fc-stats .up { color: var(--good); font-weight: 650; }
.fc-stats .down { color: var(--critical); font-weight: 650; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--grid);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
th {
  font-weight: 650;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
th[aria-sort] { color: var(--text-primary); }
tbody tr:hover { background: var(--hover-band); }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--border); }
td a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  cursor: pointer;
}
.table-wrap { overflow-x: auto; }
.muted { color: var(--text-muted); }

/* ---------- indicators ---------- */
h4 {
  font-size: 12px;
  margin: 0 0 4px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ind-callout {
  font-size: 13px;
  color: var(--text-secondary);
  background: #fff5f5;
  border: 1px solid #f0d0d0;
  border-left: 3px solid var(--critical);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.ind-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ind-kpis > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface-2);
}
.ind-kpis .label { font-size: 11px; color: var(--text-muted); }
.ind-kpis .value { font-size: 18px; font-weight: 650; margin-top: 4px; }
.ind-kpis .sub { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.ind-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
td.flag { color: var(--critical); font-weight: 700; }
td.flags {
  white-space: normal;
  min-width: 170px;
  text-align: left;
  color: var(--critical);
  font-size: 12px;
}
td.flags.none { color: var(--text-muted); }
.notes {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--grid);
  padding-top: 10px;
}
.notes summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.notes ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  max-width: 72ch;
}

.foot {
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 10px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ---------- tooltip ---------- */
.tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: var(--text-primary);
  color: #f4f6f9;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 12px;
  min-width: 170px;
  box-shadow: 0 4px 16px rgba(16, 24, 32, 0.18);
}
.tip b { display: block; margin-bottom: 4px; font-size: 12px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip .r span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b8c0ca;
}
.tip i {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  display: inline-block;
}
.tip .tot {
  border-top: 1px solid #3a4554;
  margin-top: 4px;
  padding-top: 4px;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .fc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    border-left: 0;
    border-top: 3px solid var(--brand-yellow);
    padding: 12px 16px;
  }
  .side-brand { display: flex; align-items: center; gap: 12px; }
  .side-brand .logo { max-width: 130px; }
  .side-title { margin-top: 0; }
  .side-nav {
    display: flex;
    overflow-x: auto;
    width: 100%;
    order: 3;
  }
  .side-nav button {
    width: auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .side-nav button[aria-selected="true"] {
    border-left: 0;
    border-bottom-color: var(--rail-active);
  }
  .side-foot {
    margin: 0 0 0 auto;
    display: flex;
    flex-wrap: wrap;
  }
  .side-foot .sub { display: none; }
  .grid2, .grid3, .ind-charts, .hbars.mix { grid-template-columns: 1fr; }
  .topbar { position: static; }
}
@media (max-width: 560px) {
  .share-parts { grid-template-columns: 1fr; }
  .big { font-size: 30px; }
  select { min-width: 0; width: 100%; }
  .f-loc { width: 100%; }
}

/* ---------- print / PDF ---------- */
@page { size: A4 landscape; margin: 10mm; }
@media print {
  :root {
    --page: #fff;
    --rail-bg: #fff;
    --shadow: none;
  }
  .app { display: block; }
  .sidebar, .filters, #dl-csv, .tip, button.link, .presets { display: none !important; }
  .topbar {
    position: static;
    border: 0;
    padding: 0 0 8px;
    background: none;
  }
  .content { padding: 0; max-width: none; }
  .hero {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) !important;
    gap: 10px;
  }
  .share-bar span,
  .part > i,
  .hbar .fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    gap: 10px;
  }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .fc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) !important;
  }
  .ind-charts { grid-template-columns: 1fr 1fr !important; }
  .big { font-size: 28px !important; }
  .part .amt { font-size: 18px !important; }
  .card, .rev, .stats { break-inside: avoid; }
  .card { padding: 12px 14px; }
  .chart { height: 220px; }
  body { font-size: 12px; }
  .rev { border-top-color: #e6b400; }
}

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 380px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 12px; }
.login-box .logo { height: 40px; width: auto; justify-self: start; }
.login-box h1 { font-size: 18px; margin-top: 6px; }
.login-box form { display: grid; gap: 12px; margin-top: 6px; }
.login-box label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-muted); }
.login-box input { font: inherit; font-size: 14px; min-height: var(--target); padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); background: var(--surface-1); }
.login-box .err { color: var(--critical); font-size: 13px; border-left: 2px solid var(--critical); padding-left: 10px; }

/* ---------- combined dashboard additions ---------- */
.side-user { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.side-user a { color: var(--brand-ink); }
.share-bar .s-ez { background: #9aa5b1; }
.part.ez > i { background: #9aa5b1; }
.src { font: 600 10.5px/1 var(--font); color: var(--text-faint); border: 1px solid var(--border); padding: 2px 4px; border-radius: 2px; margin-left: 6px; vertical-align: 1px; }
.search { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 12px; }
.search label { display: grid; gap: 3px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.search input[type="search"] { font: inherit; font-size: 13px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 220px; background: var(--surface-1); color: var(--text-primary); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.tag { font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 2px; color: var(--text-secondary); }
