/* Mega We care — brand system */
:root {
  --navy: #0d2654;
  --navy-2: #13377a;
  --blue: #0a5e8c;
  --teal: #00a0aa;
  --teal-2: #2bbbb6;
  --teal-soft: #e3f5f5;
  --ink: #0e1b2c;
  --ink-2: #33445a;
  --muted: #65768b;
  --line: #e2e8ef;
  --line-2: #eef2f6;
  --bg: #f3f6f9;
  --card: #ffffff;
  --good: #11906a;
  --good-bg: #e2f5ee;
  --warn: #c27c00;
  --warn-bg: #fdf1d8;
  --bad: #cf3e57;
  --bad-bg: #fbe5e9;
  --grad: linear-gradient(120deg, #0d2654 0%, #0a5e8c 55%, #00a0aa 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 38, 84, .06), 0 6px 20px rgba(13, 38, 84, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
a { color: var(--blue); }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.loading { padding: 80px; text-align: center; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 64px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; }
.brand-sub { white-space: nowrap; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
.tabs a:hover { background: var(--line-2); }
.tabs a.active { background: var(--teal-soft); color: var(--blue); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.period-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
select, input, textarea { font: inherit; color: inherit; }
.period-pick select { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font-weight: 600; color: var(--navy); text-transform: none; letter-spacing: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c9d4df; background: #fafcfd; }
.btn.primary { background: var(--grad); color: #fff; border: 0; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 15px; line-height: 1; }
.icon-btn:hover { background: var(--bad-bg); color: var(--bad); }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.grid { display: grid; gap: 16px; }
.grid > *, .bu-head > *, .hub-hero > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; color: var(--navy); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.neutral { background: var(--line-2); color: var(--ink-2); }
.chip.teal { background: var(--teal-soft); color: var(--blue); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.up { color: var(--good); } .down { color: var(--bad); }

/* Hub */
.hub-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.hero-band { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 28px 30px; position: relative; overflow: hidden; }
.hero-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero-band h1 { font-size: 28px; margin: 6px 0 8px; }
.hero-band .eyebrow { color: #9fe6e6; }
.hero-band p { margin: 0; opacity: .85; max-width: 560px; }
.hero-band .actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-band .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero-band .btn.white { background: #fff; color: var(--navy); border: 0; }
.progress-card { display: flex; align-items: center; gap: 22px; }
.ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 86px; height: 86px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; font-family: var(--display); }
.ring b { font-size: 24px; color: var(--navy); display: block; line-height: 1; }
.ring small { font-size: 11px; color: var(--muted); }
.sec-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.sec-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13, 38, 84, .1); }
.sec-card .top { display: flex; justify-content: space-between; align-items: center; }
.sec-card h3 { font-size: 15.5px; color: var(--navy); }
.sec-card .owner { font-size: 12px; color: var(--muted); }
.sec-card .meta { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.sec-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft); color: var(--blue); display: grid; place-items: center; font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.checks li:last-child { border-bottom: 0; }
.checks .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ck.ok { background: var(--good-bg); color: var(--good); } .ck.warn { background: var(--warn-bg); color: var(--warn); } .ck.na { background: var(--line-2); color: var(--muted); }

/* Entry */
.entry { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 88px; padding: 10px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.side-nav a:hover { background: var(--line-2); }
.side-nav a.active { background: var(--teal-soft); color: var(--blue); }
.side-nav .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.sd.submitted { background: var(--good); } .sd.draft { background: var(--warn); }
.form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 64px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); z-index: 5; border-radius: var(--radius) var(--radius) 0 0; }
.form-head h2 { font-size: 20px; color: var(--navy); }
.form-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 640px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dirty-flag { font-size: 12px; color: var(--warn); font-weight: 600; }
.form-body { padding: 8px 24px 28px; }
.fs { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.fs:last-child { border-bottom: 0; }
.fs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.fs-head h3 { font-size: 15px; color: var(--navy); }
.fs-head .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; font-family: var(--font); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.inp, .field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; width: 100%; }
.inp:focus, .field input:focus, .field textarea:focus, .field select:focus, .tbl-edit input:focus, .tbl-edit select:focus, .tbl-edit textarea:focus { outline: 2px solid rgba(0, 160, 170, .35); border-color: var(--teal); }
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field-hint { font-size: 11.5px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl-edit { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl-edit th { background: #f7f9fb; color: var(--ink-2); font-weight: 600; font-size: 11.5px; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl-edit td { border-bottom: 1px solid var(--line-2); padding: 3px 4px; vertical-align: top; }
.tbl-edit tr:last-child td { border-bottom: 0; }
.tbl-edit input, .tbl-edit select, .tbl-edit textarea { width: 100%; border: 1px solid transparent; background: transparent; padding: 6px 6px; border-radius: 6px; min-width: 60px; }
.tbl-edit textarea { min-height: 34px; resize: vertical; }
.tbl-edit input:hover, .tbl-edit select:hover, .tbl-edit textarea:hover { border-color: var(--line); background: #fff; }
.tbl-edit input.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-edit td.calc { color: var(--ink-2); font-weight: 600; text-align: right; padding: 9px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-edit .rowhead { font-weight: 600; padding: 9px 8px; white-space: nowrap; }
.tbl-tools { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.block-ed { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fbfcfd; }
.block-ed .bh { display: flex; gap: 8px; margin-bottom: 8px; }
.block-ed .bh input { font-weight: 600; }
.pnl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pnl-grid .tbl-edit input { min-width: 110px; }
.pnl-grid h4 { font-size: 13px; color: var(--blue); margin: 0 0 8px; }

/* Modal & toast */
.modal { position: fixed; inset: 0; background: rgba(13, 38, 84, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: 16px; width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal-box header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-box header h3 { font-size: 17px; color: var(--navy); }
.modal-box .mb { padding: 18px 22px; display: grid; gap: 14px; }
.modal-box footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 120; box-shadow: var(--shadow); }
.toast.err { background: var(--bad); }

/* ================= REPORT ================= */
.report { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 13px; }
.toc .toc-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 8px 12px; }
.toc a { display: block; padding: 6px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); font-weight: 500; }
.toc a:hover, .toc a.on { color: var(--blue); border-left-color: var(--teal); background: linear-gradient(90deg, var(--teal-soft), transparent); }
.toc .toc-actions { margin-top: 16px; display: grid; gap: 8px; }
.doc { min-width: 0; }
.cover { background: var(--grad); color: #fff; border-radius: 18px; padding: 34px 38px 30px; position: relative; overflow: hidden; margin-bottom: 24px; }
.cover::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 187, 182, .45), transparent 70%); }
.cover::after { content: ''; position: absolute; width: 260px; height: 260px; right: 120px; bottom: -170px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.cover .logo-pill { background: #fff; border-radius: 12px; padding: 6px 12px; display: inline-flex; }
.cover .logo-pill img { height: 30px; }
.cover h1 { font-size: 34px; margin: 22px 0 6px; font-weight: 800; position: relative; }
.cover .sub { font-size: 15px; opacity: .85; position: relative; }
.cover .meta-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); position: relative; }
.cover .meta-row div { font-size: 12px; opacity: .75; }
.cover .meta-row b { display: block; font-size: 14.5px; opacity: 1; color: #fff; font-weight: 600; }
.rsec { margin-bottom: 26px; scroll-margin-top: 84px; }
.rsec > .rs-head { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 14px; }
.rs-num { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 14px; }
.rs-head h2 { font-size: 22px; color: var(--navy); }
.rs-head .rs-sub { color: var(--muted); font-size: 13px; margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); }
.kpi.bad::before { background: var(--bad); } .kpi.warn::before { background: var(--warn); } .kpi.good::before { background: var(--good); }
.kpi .k-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .k-val { font-family: var(--display); font-size: 27px; font-weight: 800; color: var(--navy); margin: 6px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k-foot { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.msgs li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.msgs li:last-child { border-bottom: 0; }
.msgs b { color: var(--ink); }
.mi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.mi.good { background: var(--good-bg); color: var(--good); } .mi.bad { background: var(--bad-bg); color: var(--bad); } .mi.warn { background: var(--warn-bg); color: var(--warn); } .mi.info { background: var(--teal-soft); color: var(--blue); }
.attn { background: linear-gradient(180deg, #fff, #fff8f9); border-color: #f3d3da; }
.attn h3 { color: var(--bad); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.card h3.ct { font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.card .ct-sub { font-size: 12px; color: var(--muted); margin: -8px 0 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.total td { font-weight: 700; background: #f6f9fb; border-top: 1px solid var(--line); }
.tbl tr.sub td { font-weight: 600; background: #fafcfd; }
.tbl tr.grp td { background: var(--teal-soft); color: var(--blue); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tbl td.name { font-weight: 600; color: var(--ink); }
.tbl .gh { text-align: center; border-bottom: 1px solid var(--line); color: var(--blue); }
.tbl-scroll { overflow-x: auto; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-cell .bar { height: 7px; border-radius: 4px; background: var(--teal); min-width: 2px; }
.bar-cell .bar.neg { background: var(--bad); }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.chart-box.tall { height: 340px; }
.bul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.bul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.bul li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.bul li b { color: var(--ink); }
.brand-card { padding: 18px 20px; border-top: 3px solid var(--teal); }
.brand-card h4 { font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.bu-head { display: grid; grid-template-columns: 1.2fr 2fr; gap: 16px; margin-bottom: 16px; }
.bu-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.bu-kpis > div { background: #fff; padding: 14px 16px; }
.bu-kpis .l { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bu-kpis .v { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 2px; }
.mover { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.mover:last-child { border-bottom: 0; }
.mover .mn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover .mt { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.mover .mt span { display: block; height: 100%; border-radius: 3px; }
.dist { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 8px 0 10px; }
.dist span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 13px; padding: 8px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tile .tv { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--navy); }
.tile .tl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tile .tn { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.pipe > div { padding: 16px; background: #fff; position: relative; border-right: 1px solid var(--line); }
.pipe > div:last-child { border-right: 0; }
.pipe .pv { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--navy); }
.pipe .pl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.empty { color: var(--muted); font-style: italic; font-size: 13px; padding: 8px 0; }
.footnote { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.status-line { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; position: relative; }
.status-line .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.status-line .chip.off { opacity: .55; }

.user-chip span:last-child { white-space: nowrap; }
@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .report, .entry { grid-template-columns: 1fr; }
  .toc, .side-nav { position: static; }
  .toc { display: none; }
  .hub-hero, .bu-head { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .brand-sub, .period-pick > span, #userName { display: none; }
  .user-chip { padding: 3px; }
  .brand img { height: 28px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  main { padding: 18px 16px 60px; }
  .g2, .g3, .g4, .pnl-grid { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .cover { padding: 24px 20px; }
  .cover h1 { font-size: 26px; }
  .form-head { position: static; flex-direction: column; }
}

/* Print / PDF */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11.5px; }
  .no-print, .toc, .topbar { display: none !important; }
  main { padding: 0; max-width: none; }
  .report { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
  .rsec.pb { break-before: page; }
  .cover, .kpi::before, .chip, .mi, .bar, .dist span, .mover .mt span, .hero-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.more > *:not(summary) { display: block !important; }
  details.more summary { display: none; }
  .chart-box { height: 230px; }
}
