/* Brand Performance — design tokens */
:root {
  --bg: #F2F4F1;
  --surface: #FFFFFF;
  --surface-2: #F7F8F5;
  --ink: #15211E;
  --muted: #5D6A66;
  --faint: #8A9692;
  --line: #DEE4E0;
  --line-strong: #C9D1CC;
  --side: #10241F;
  --side-2: #183530;
  --side-ink: #D7E4DE;
  --side-muted: #8FA59D;
  --saffron: #E9A23B;
  --action: #15211E;
  --action-ink: #FFFFFF;
  --good: #1B7F52;
  --good-bg: #E3F3EA;
  --bad: #C2432C;
  --bad-bg: #FBE8E3;
  --flat-bg: #ECEFEC;
  --fb: #2F6FE4;
  --yt: #E0412F;
  --tt: #10A29C;
  --ig: #C2367A;
  --radius: 12px;
  --font: "Onest", "Kantumruy Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1513; --surface: #15201D; --surface-2: #1A2724; --ink: #E4ECE8; --muted: #9BADA6; --faint: #6F817A;
    --line: #26352F; --line-strong: #33463F; --side: #0A110F; --side-2: #14211D;
    --action: #E9A23B; --action-ink: #10241F;
    --good: #4CC48A; --good-bg: #173327; --bad: #FF7F67; --bad-bg: #3A1F19; --flat-bg: #22302B;
    --fb: #6A9BFF; --yt: #FF6E5C; --tt: #3FD3CC; --ig: #F26BAE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1513; --surface: #15201D; --surface-2: #1A2724; --ink: #E4ECE8; --muted: #9BADA6; --faint: #6F817A;
  --line: #26352F; --line-strong: #33463F; --side: #0A110F; --side-2: #14211D;
  --action: #E9A23B; --action-ink: #10241F;
  --good: #4CC48A; --good-bg: #173327; --bad: #FF7F67; --bad-bg: #3A1F19; --flat-bg: #22302B;
  --fb: #6A9BFF; --yt: #FF6E5C; --tt: #3FD3CC; --ig: #F26BAE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.side-top { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 4px 6px 14px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--saffron); color: #10241F; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.logo strong { display: block; font-size: 16px; letter-spacing: .04em; }
.logo small { display: block; color: var(--side-muted); font-size: 12px; }
.side-toggle { display: none; background: var(--side-2); border: 0; color: var(--side-ink); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; overflow-y: auto; }
.nav-label { color: var(--side-muted); font-size: 12px; margin: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--side-ink); font-weight: 500; position: relative; }
.nav-link svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; flex: none; }
.nav-link:hover { background: var(--side-2); }
.nav-link.active { background: var(--side-2); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--saffron); }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin: 0 4px; flex: none; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--side-2); }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.who small { display: block; color: var(--side-muted); font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--side-2); display: grid; place-items: center; font-weight: 600; flex: none; }
.foot-actions { display: flex; gap: 2px; }
.foot-actions form { margin: 0; }
.icon-btn { background: none; border: 0; color: var(--side-muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--side-2); color: var(--side-ink); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; max-width: 1360px; width: 100%; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 20; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .logo { padding-bottom: 4px; }
  .side-toggle { display: block; }
  .side-nav, .side-foot { display: none; }
  .side.open .side-nav { display: flex; max-height: 70vh; padding-bottom: 8px; }
  .side.open .side-foot { display: flex; padding-bottom: 6px; }
  .nav-link.active::before { display: none; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--side); }
}

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.month-nav { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.month-nav a { text-decoration: none; padding: 7px 11px; color: var(--muted); }
.month-nav a:hover { color: var(--ink); }
.month-nav a[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.month-nav strong { padding: 7px 4px; min-width: 128px; text-align: center; font-weight: 600; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; font-weight: 400; color: var(--ink); font-size: 15px; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 35%, transparent); }
.hint { font-weight: 400; font-size: 12.5px; color: var(--faint); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }

/* ---------- Flash ---------- */
.flash { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.flash.success { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-bg); }
.flash.error { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-bg); }
.flash-x { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---------- Cards & panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px clamp(14px, 2vw, 22px); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; font-weight: 650; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state h2 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty-state .btn { margin-top: 12px; }

/* Brand summary (overview) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; transition: border-color .15s; }
.brand-card:hover { border-color: var(--line-strong); }
.brand-card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; border-top: 4px solid var(--c); }
.brand-card-head h2 { font-size: 20px; font-weight: 700; }
.plat-row { display: flex; gap: 6px; }
.plat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.pi { width: 16px; height: 16px; flex: none; }
.pi-fb { color: var(--fb); } .pi-yt { color: var(--yt); } .pi-tt { color: var(--ink); } .pi-ig { color: var(--ig); }
.metric-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mq { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mq:nth-child(odd) { border-right: 1px solid var(--line); }
.mq:nth-last-child(-n+2) { border-bottom: 0; }
.mq .lbl { font-size: 12.5px; color: var(--muted); }
.mq .val { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* KPI band (brand page) */
.kpi-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.kpi { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .lbl { font-size: 13px; color: var(--muted); }
.kpi .val { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0 6px; white-space: nowrap; }
.kpi .cmp { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
@media (max-width: 640px) { .asset-strip { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .asset-card { scroll-snap-align: start; } }
@media (max-width: 760px) { .kpi-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }

.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.up { color: var(--good); background: var(--good-bg); }
.chip.down { color: var(--bad); background: var(--bad-bg); }
.chip.flat { color: var(--muted); background: var(--flat-bg); }
.partial { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 5px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }

/* Asset strip */
.asset-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.asset-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.asset-card .top { display: flex; align-items: center; gap: 10px; }
.asset-card .pbadge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.asset-card .pbadge .pi { width: 19px; height: 19px; }
.asset-card h3 { font-size: 15px; font-weight: 650; }
.asset-card .sub { font-size: 12.5px; color: var(--muted); }
.asset-card .facts { display: flex; justify-content: space-between; align-items: baseline; }
.asset-card .facts strong { font-size: 22px; letter-spacing: -0.02em; }
.tag { white-space: nowrap; display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--flat-bg); color: var(--muted); font-weight: 600; }
.tag.money { background: color-mix(in srgb, var(--saffron) 22%, transparent); color: color-mix(in srgb, var(--saffron) 55%, var(--ink)); }

/* Tabs */
.tabs { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tabs [aria-selected="true"], .tabs .active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tab-panel[hidden] { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.n, table.data th.n { text-align: right; white-space: nowrap; }
table.data tr.group td { background: var(--surface-2); font-weight: 650; font-size: 13px; }
table.data tr.total td { font-weight: 700; border-top: 1px solid var(--line-strong); }
table.data td.cur { font-weight: 650; }
table.data .name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
table.data a.name { text-decoration: none; }
table.data a.name:hover span { text-decoration: underline; }

/* Two-week comparison cards — the sheet's "scroll right" idea, made swipeable */
.cmp-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.cmp-card { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 14px; min-width: 0; }
.cmp-card.latest { background: var(--surface); border-color: var(--line-strong); }
.cmp-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-weight: 650; margin-bottom: 10px; }
.cmp-title .vs { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .06em; }
.cmp-title .newest { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 70px; gap: 6px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cmp-row.head { border-top: 0; font-size: 11.5px; color: var(--faint); font-weight: 600; padding-top: 0; }
.cmp-row > :nth-child(n+2) { text-align: right; }
.cmp-row .m { color: var(--muted); }
.cmp-row .b { font-weight: 650; }
.cmp-row .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; margin-top: -2px; }
.cmp-row .bar i { position: absolute; top: 0; bottom: 0; left: 50%; border-radius: 2px; }
.cmp-row .bar i.up { background: var(--good); }
.cmp-row .bar i.down { background: var(--bad); transform: translateX(-100%); }
.cmp-diff { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -3px; }

.chart-box { position: relative; height: 280px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

/* Entry form */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.entry-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.entry-item label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.entry-item .prev { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 20px; }
.entry-item .input { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.period-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.history td.cell a { text-decoration: none; display: block; }
.history td.has { color: var(--ink); }
.history td.none { color: var(--faint); }
.history td.here { background: color-mix(in srgb, var(--saffron) 16%, transparent); }

/* Import */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 32px 18px; text-align: center; background: var(--surface-2); cursor: pointer; display: block; }
.drop.over { border-color: var(--saffron); background: color-mix(in srgb, var(--saffron) 8%, var(--surface-2)); }
.drop strong { font-size: 17px; display: block; margin-bottom: 4px; }
.drop .file-name { margin-top: 10px; font-weight: 600; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.format { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.format h3 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.format p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
code { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 120px; }
.stat strong { display: block; font-size: 22px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.st-new { color: var(--good); font-weight: 600; } .st-changed { color: var(--saffron); font-weight: 600; } .st-same, .st-skip { color: var(--faint); }

/* Reports */
.report-body { max-width: 74ch; font-size: 15.5px; line-height: 1.65; }
.report-body h3 { font-size: 17px; margin: 22px 0 6px; }
.report-body h3:first-child { margin-top: 0; }
.report-body p { margin: 0 0 10px; }
.report-body ul { margin: 0 0 10px; padding-left: 20px; }
.report-body li { margin: 4px 0; }
.report-list a { text-decoration: none; }
.writing { display: none; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.writing.on { display: flex; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--saffron); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--side); }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: 16px; padding: 28px; display: grid; gap: 16px; }
.auth-card .logo { color: var(--ink); padding: 0; }
.auth-card .logo small { color: var(--muted); }
.auth-card h1 { font-size: 22px; }
.errors { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.errors p { margin: 0; }

/* Settings */
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
details.edit > summary, details.row-edit > summary { list-style: none; cursor: pointer; }
details.row-edit > summary::-webkit-details-marker { display: none; }
details.row-edit { border-top: 1px solid var(--line); }
details.row-edit > summary.list-row { border-top: 0; }
details.row-edit[open] > summary .btn { background: var(--surface-2); }
details.row-edit .edit-box { margin: 0 0 8px; }
.remove-line { display: flex; justify-content: flex-end; margin: 0 0 14px; }
details.edit > summary::-webkit-details-marker { display: none; }
.edit-box { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); display: grid; gap: 12px; }
input[type="color"].input { padding: 3px; height: 40px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .side, .head-actions, .flash, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel, .kpi-band, .brand-card { break-inside: avoid; }
}

/* Sponsor report form */
.step-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; margin-bottom: 10px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--saffron); color: #10241F; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.plat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.plat-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); display: grid; gap: 8px; align-content: start; }
.plat-all { padding-bottom: 6px; border-bottom: 1px solid var(--line); }

.logo-mark.has-img { background: none; padding: 0; overflow: hidden; }
.logo-mark.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.access-pick { display: grid; gap: 8px; }
.access-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-left: 26px; }
.access-edit { position: relative; }
.access-edit[open] > .access-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(420px, 80vw); background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.access-edit > summary { list-style: none; cursor: pointer; }
.access-edit > summary::-webkit-details-marker { display: none; }
