/* P+ Reputation Intelligence — dashboard styles.
   Tool colours: white surfaces, navy text/navigation, gold accents (P+). Chart colours are validated
   (dataviz validator: CVD ΔE ≥ 13 adjacent, light and dark) and stepped separately for dark mode. */
:root {
  color-scheme: light;
  --navy: #010080; --gold: #F9A602; --gold-ink: #8A5A00;
  --canvas: #F5F6FB; --surface: #FFFFFF; --surface-2: #F8F9FD; --line: #E3E6F1; --line-strong: #CDD2E6;
  --text: #11163F; --text-2: #4C5380; --muted: #737AA3;
  --nav-bg: #FFFFFF; --nav-active: #EEF0FB; --brand-ink: #010080;
  --shadow: 0 1px 2px rgba(17,22,63,.05), 0 6px 20px rgba(17,22,63,.05);
  --radius: 14px;
  /* charts */
  --series: #2A33B8;                 /* single-series bars (navy-blue, legible on white) */
  --series-track: #ECEEF8;
  --grid: #E8EAF3; --axis: #A9AECB;
  --e0: #eda100; --e1: #e87ba4; --e2: #2a78d6; --e3: #1baf7a; --e4: #6250d6; --e5: #eb6834;  /* entity slots: client = e0 */
  --online: #2a78d6; --print: #1baf7a;
  --pos: #12924A; --neu: #8A90AD; --neg: #D33A3A;
  --l0: #0B6B33; --l1: #12924A; --l2: #4CB97A; --l3: #93D6AE; --l4: #A7ACC4; --l5: #F1A3A3; --l6: #E36767; --l7: #C93535; --l8: #941F1F;
  --high: #12924A; --med: #C98500; --low: #D33A3A;
}
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) {
  color-scheme: dark;
  --canvas: #0A0E2A; --surface: #121845; --surface-2: #0F143A; --line: #232B66; --line-strong: #323C82;
  --text: #F2F3FB; --text-2: #C3C7E6; --muted: #959BC6; --nav-bg: #0E1338; --nav-active: #1B2262; --brand-ink: #F2F3FB;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --series: #8C9BFF; --series-track: #1E2563; --grid: #222A63; --axis: #5A62A0;
  --e0: #c98500; --e1: #d55181; --e2: #3987e5; --e3: #199e70; --e4: #9085e9; --e5: #d95926;
  --online: #3987e5; --print: #199e70;
  --pos: #3CC77A; --neu: #9AA0BD; --neg: #F06464;
  --l0: #6EE7A2; --l1: #3CC77A; --l2: #2A9E5E; --l3: #1F7347; --l4: #5B6290; --l5: #8C3A3A; --l6: #B94848; --l7: #E05858; --l8: #FF8A8A;
  --high: #3CC77A; --med: #F2B233; --low: #F06464;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0A0E2A; --surface: #121845; --surface-2: #0F143A; --line: #232B66; --line-strong: #323C82;
  --text: #F2F3FB; --text-2: #C3C7E6; --muted: #959BC6; --nav-bg: #0E1338; --nav-active: #1B2262; --brand-ink: #F2F3FB;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --series: #8C9BFF; --series-track: #1E2563; --grid: #222A63; --axis: #5A62A0;
  --e0: #c98500; --e1: #d55181; --e2: #3987e5; --e3: #199e70; --e4: #9085e9; --e5: #d95926;
  --online: #3987e5; --print: #199e70;
  --pos: #3CC77A; --neu: #9AA0BD; --neg: #F06464;
  --l0: #6EE7A2; --l1: #3CC77A; --l2: #2A9E5E; --l3: #1F7347; --l4: #5B6290; --l5: #8C3A3A; --l6: #B94848; --l7: #E05858; --l8: #FF8A8A;
  --high: #3CC77A; --med: #F2B233; --low: #F06464;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--nav-bg) 272px, var(--canvas) 272px); }

/* ---------- sidebar */
.side { background: var(--nav-bg); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 28px; }
.side .logo { display: block; width: 150px; margin: 2px 8px 18px; }
.side .logo.dark { display: none; }
:root[data-theme="dark"] .side .logo.light { display: none; } :root[data-theme="dark"] .side .logo.dark { display: block; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .side .logo.light { display: none; } :root:where(:not([data-theme="light"])) .side .logo.dark { display: block; } }
.client-pick { margin: 0 6px 16px; }
.client-pick label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.client-pick select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.client-pick .cfg { font-size: 12px; color: var(--muted); margin-top: 6px; }
.nav-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; }
.nav a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13.5px; border-left: 3px solid transparent; }
.nav a .n { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--nav-active); border-left-color: var(--gold); font-weight: 600; }
.nav a.on .n { color: var(--gold-ink); }
:root[data-theme="dark"] .nav a.on .n { color: var(--gold); }
.suite-nav { margin: 4px 0 8px; }
.suite-nav > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13.5px; text-align: left; }
.suite-nav > button:hover { background: var(--surface-2); }
.suite-nav > button .chev { transition: transform .2s; color: var(--muted); }
.suite-nav.open > button .chev { transform: rotate(90deg); }
.suite-nav .sub { display: none; padding-left: 10px; }
.suite-nav.open .sub { display: block; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 28px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); } .crumbs b { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.chip.lock::before { content: "●"; color: var(--pos); margin-right: 6px; font-size: 10px; }
.btn { border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn:not(.ghost):not(.danger):not(.ok) { background: var(--gold); color: #11163F; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .btn:not(.ghost):not(.danger):not(.ok) { background: var(--gold); color: #11163F; } }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.gold { background: var(--gold); color: #11163F; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }

/* ---------- page */
main { padding: 26px 28px 60px; max-width: 1400px; }
.ph { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.ph .num { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: #11163F; display: grid; place-items: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.ph h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.ph .sub { color: var(--text-2); margin-top: 3px; font-size: 13.5px; }
.ph .tabs { margin-left: auto; }
.grid { display: grid; gap: 14px; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c12 { grid-template-columns: 1.15fr .85fr; } .c21 { grid-template-columns: 2fr 1fr; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.mt { margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; position: relative; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-h h3 { margin: 0; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.card-h .hint { font-size: 12px; color: var(--muted); margin-top: 3px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tbl-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; font-size: 11.5px; padding: 3px 8px; cursor: pointer; color: var(--text-2); flex: none; }
.card .view-table { display: none; } .card.show-table .view-table { display: block; } .card.show-table .view-chart { display: none; }
p.read { margin: 0; line-height: 1.6; color: var(--text); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.hl::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.kpi .ico { position: absolute; right: 12px; top: 12px; width: 8px; height: 8px; border-radius: 50%; }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ins-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.ins-tile b { display: block; font-size: 14.5px; margin-bottom: 3px; } .ins-tile span { font-size: 12.5px; color: var(--text-2); }

/* horizontal bars (HTML) */
.hb { display: grid; gap: 7px; }
.hb-row { display: grid; grid-template-columns: minmax(80px, var(--lw, 170px)) 1fr 54px; gap: 10px; align-items: center; font-size: 13px; }
.hb-row .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hb-row.own .lab { font-weight: 700; }
.hb-row .trk { height: 12px; background: var(--series-track); border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-row .trk i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series); min-width: 2px; transition: width .4s ease; }
.hb-row b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* stacked 100% rows */
.st { display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: minmax(90px, 170px) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.st-row .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row.own .lab { font-weight: 700; }
.st-bar { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; }
.st-bar i { display: block; height: 100%; min-width: 0; }
.st-bar em { font-style: normal; font-size: 11.5px; color: var(--muted); padding-left: 8px; line-height: 18px; }
.st-bar i span { font-size: 10.5px; color: #fff; padding-left: 5px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; display: block; }

/* svg charts */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { pointer-events: none; fill: var(--text-2); font-size: 12px; font-family: inherit; }
svg.chart .grid line { stroke: var(--grid); }
svg.chart .axis { stroke: var(--axis); }
svg.chart .val { fill: var(--text); font-weight: 600; font-size: 11px; }
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut-wrap .legend { flex-direction: column; margin: 0; gap: 8px; }
.donut-wrap .legend > span { display: flex; justify-content: space-between; width: 100%; gap: 12px; } .donut-wrap .legend > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .donut-wrap .legend b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 8px; border-bottom: 1px solid var(--line-strong); }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.own td { background: color-mix(in srgb, var(--gold) 9%, transparent); font-weight: 600; }
table.t tr.own td:first-child { box-shadow: inset 3px 0 var(--gold); }
table.t tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.pill.good, .pill.high, .pill.strong { color: var(--high); } .pill.med, .pill.stable, .pill.medium { color: var(--med); } .pill.low, .pill.bad, .pill.invisible, .pill.atrisk, .pill.high-risk { color: var(--low); }
.pill.neutral, .pill.lowvisibility, .pill.na { color: var(--muted); }

/* lists, stories, swot */
ul.bul { margin: 0; padding-left: 18px; } ul.bul li { margin: 6px 0; line-height: 1.5; }
.story { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--neu); }
.story.pos { border-top-color: var(--pos); } .story.neg { border-top-color: var(--neg); }
.story h4 { margin: 0; font-size: 14px; line-height: 1.35; }
.story p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.story .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.story .meta span { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.story.nil h4 { color: var(--muted); font-weight: 600; }
.row-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 20px 0 10px; }
.row-h::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--neu)); }
.swot .card-h h3 { display: flex; align-items: center; gap: 10px; color: var(--text); }
.swot .card-h h3 em { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 14px; }
.emo { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.emo:last-child { border-bottom: 0; }
.emo b { font-size: 13px; padding: 5px 10px; border-radius: 8px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); }
.emo span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.callout { border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); font-size: 13px; }
.callout.warn { background: color-mix(in srgb, var(--neg) 9%, var(--surface)); border-color: color-mix(in srgb, var(--neg) 35%, var(--line)); }
.na-card { display: grid; place-items: center; text-align: center; min-height: 120px; color: var(--muted); }
.na-card b { color: var(--text); display: block; margin-bottom: 4px; }

/* competitive */
.suite-hero { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.suite-hero .who { background: linear-gradient(135deg, var(--navy), #1A2BB0); color: #fff; border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.suite-hero .who::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(249,166,2,.35), transparent 70%); }
.suite-hero .who small { opacity: .75; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.suite-hero .who h2 { margin: 4px 0 6px; font-size: 19px; }
.suite-hero .who .sel { display: inline-block; background: var(--gold); color: #11163F; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tabs a.on { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .tabs a.on { background: var(--gold); color: #11163F; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .tabs a.on { background: var(--gold); color: #11163F; } }
.board { display: grid; gap: 0; }
.board-row { display: grid; grid-template-columns: 28px minmax(140px, 1.4fr) 2fr 70px 70px 74px 64px; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.board-row.h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 0; }
.board-row.own { background: color-mix(in srgb, var(--gold) 10%, transparent); border-radius: 10px; border-bottom-color: transparent; }
.board-row .rk { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.board-row .nm { display: flex; align-items: center; gap: 8px; min-width: 0; } .board-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row.own .nm span { font-weight: 700; }
.board-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.board-row .trk { height: 10px; border-radius: 0 4px 4px 0; background: var(--series-track); overflow: hidden; } .board-row .trk i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.mini h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.mini .hb-row { --lw: 110px; grid-template-columns: minmax(70px, 110px) 1fr 34px; font-size: 12px; }
.heat { display: grid; gap: 3px; font-size: 12px; }
.heat .hr { display: grid; grid-template-columns: minmax(110px, 160px) repeat(9, minmax(34px, 1fr)); gap: 3px; align-items: center; }
.heat .hr.h div { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.15; }
.heat .cell { height: 34px; border-radius: 6px; display: grid; place-items: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); background: var(--surface-2); }
.heat .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pr { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.pr h4 { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.pr h4 small { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.pr ol { margin: 12px 0; padding-left: 18px; } .pr li { margin: 6px 0; font-size: 13px; line-height: 1.45; } .pr li small { color: var(--muted); display: block; }
.pr .note { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }

/* trust */
.mti { display: grid; gap: 16px; }
.mti .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.mti .row b.idx { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.mti .row .bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--series-track); overflow: hidden; } .mti .row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--series), var(--gold)); }
.mti .row small { grid-column: 1 / -1; color: var(--text-2); font-size: 12px; }
.dims { display: grid; gap: 10px; }
.dim { display: grid; grid-template-columns: 1fr 64px; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dim:last-child { border-bottom: 0; } .dim b { font-size: 13px; } .dim span.f { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); }

/* spokespersons, regions */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; }
.person .av { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
:root[data-theme="dark"] .person .av { background: var(--gold); color: #11163F; }
.person b { display: block; } .person small { color: var(--muted); display: block; font-size: 12px; }
.person p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--text-2); }
.person .ex { font-size: 12px; font-weight: 700; color: var(--gold-ink); } :root[data-theme="dark"] .person .ex { color: var(--gold); }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.region { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.region b { font-size: 15px; } .region .v { font-size: 20px; font-weight: 750; margin: 6px 0 2px; font-variant-numeric: tabular-nums; } .region small { color: var(--muted); }

/* reference + branding */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.glossary div { padding: 10px 0; border-bottom: 1px solid var(--line); } .glossary b { display: block; margin-bottom: 3px; } .glossary span { color: var(--text-2); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps .s { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); position: relative; }
.steps .s em { font-style: normal; font-weight: 800; color: var(--gold-ink); font-size: 12px; } :root[data-theme="dark"] .steps .s em { color: var(--gold); }
.steps .s b { display: block; margin: 4px 0 6px; } .steps .s p { margin: 0; font-size: 12.5px; color: var(--text-2); }
label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input.f { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }
.drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; min-height: 72px; } .drop img { max-height: 48px; max-width: 140px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; } .seg button { border: 0; background: var(--surface); padding: 8px 12px; cursor: pointer; } .seg button.on { background: var(--navy); color: #fff; }
input[type=color] { width: 56px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px; background: var(--surface); }
.check .ok { color: var(--pos); } .check .bad { color: var(--neg); } .check { font-size: 12.5px; margin-top: 10px; }
.cover { border-radius: 12px; padding: 18px; color: #fff; position: relative; min-height: 230px; overflow: hidden; background: #0A1E30; }
.cover .pc { display: inline-block; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 12px; background: #00B0F0; color: #0A1E30; }
.cover h4 { margin: 16px 0 4px; font-size: 18px; } .cover .m { font-size: 22px; font-weight: 700; color: #00B0F0; }
.cover .lg { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; } .cover .lg img { max-width: 44px; max-height: 44px; }
.cover .ag { position: absolute; left: 18px; bottom: 14px; max-height: 34px; max-width: 120px; }
.cover .row { display: flex; gap: 6px; margin-top: 12px; } .cover .row span { width: 28px; height: 18px; border-radius: 3px; }

/* tooltip */
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 300px; opacity: 0; transition: opacity .12s; }
#tip.on { opacity: 1; } #tip b { display: block; margin-bottom: 2px; }
[data-tip] { cursor: default; }
svg [data-tip]:hover, .hb-row:hover .trk i, .st-bar i:hover { filter: brightness(1.08) saturate(1.1); }

@media (max-width: 1100px) { .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .suite-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .suite-hero .who { grid-column: 1 / -1; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; background: var(--canvas); } .side { position: static; height: auto; }
  .c2, .c3, .c4, .c12, .c21, .glossary { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  main { padding: 18px 16px 40px; } .top { padding: 10px 16px; }
  .board-row { grid-template-columns: 24px 1fr 60px 60px; } .board-row .trk, .board-row .hide-s { display: none; }
  .heat .hr { grid-template-columns: 90px repeat(9, minmax(26px, 1fr)); } .donut-wrap { grid-template-columns: 1fr; }
  .ph { flex-wrap: wrap; } .ph .tabs { margin-left: 0; }
}

.about { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--surface); border-radius: 12px; padding: 10px 14px; margin: -4px 0 16px; font-size: 13px; color: var(--text-2); }
.about b { display: block; color: var(--text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { text-decoration: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pager .pg { color: var(--muted); font-size: 12.5px; }
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 360px; background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 13px; box-shadow: 0 12px 32px rgba(0,0,0,.2); transform: translateY(20px); opacity: 0; transition: .2s; pointer-events: none; }
#toast.on { transform: none; opacity: 1; } #toast b { display: block; margin-bottom: 3px; }
@media (max-width: 820px) { .pager a { max-width: 100%; flex: 1 1 100%; text-align: center; } .pager .pg { order: -1; width: 100%; text-align: center; } }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.rc-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rc-h h3 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text); }
.rc-p { color: var(--gold-ink); font-weight: 700; font-size: 13px; margin-top: 2px; } :root[data-theme="dark"] .rc-p { color: var(--gold); }
.rc-d { color: var(--text-2); font-size: 13px; margin: 10px 0; }
.rc-m { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.rc-f { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-c { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.rc-n { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.rc-l { margin: 8px 0 0; padding-left: 22px; font-size: 12.5px; color: var(--text-2); columns: 2; column-gap: 18px; } .rc-l li { break-inside: avoid; margin: 2px 0; }

/* ======================================================================== web application shell */
.side .grp { margin-top: 6px; }
.side .grp > button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 8px 10px 6px; cursor: pointer;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side .grp > button .chev { transition: transform .15s; } .side .grp.open > button .chev { transform: rotate(90deg); }
.side .grp > .items { display: none; } .side .grp.open > .items { display: block; }
.nav a .ic { width: 18px; height: 18px; color: var(--muted); } .nav a.on .ic { color: var(--gold-ink); }
:root[data-theme="dark"] .nav a.on .ic { color: var(--gold); }
.nav a .badge { justify-self: end; background: var(--gold); color: #11163F; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 7px; }
.nav a { grid-template-columns: 22px 1fr auto; }
.nav .sub2 { margin-left: 18px; border-left: 1px dashed var(--line-strong); padding-left: 6px; }
.nav .sub2 a { font-size: 13px; padding: 5px 8px; }
.envtag { margin: 0 8px 14px; font-size: 11.5px; color: var(--muted); }
.envtag b { color: var(--text); }
.top .left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.top select, .top input[type=date] { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 6px 9px; font-size: 13px; max-width: 260px; }
.search { position: relative; } .search input { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 7px 10px 7px 30px; width: 220px; }
.search svg { position: absolute; left: 9px; top: 9px; color: var(--muted); }
.search .res { position: absolute; top: 40px; left: 0; width: 420px; max-height: 420px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; padding: 8px; display: none; }
.search .res.on { display: block; } .search .res h5 { margin: 8px 6px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.search .res a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; } .search .res a:hover { background: var(--surface-2); }
.usr { position: relative; } .usr > button { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; }
.usr .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; }
.usr .menu { position: absolute; right: 0; top: 42px; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30; display: none; }
.usr .menu.on { display: block; } .usr .menu a, .usr .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 13.5px; }
.usr .menu a:hover, .usr .menu button:hover { background: var(--surface-2); } .usr .menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12.5px; color: var(--muted); } .usr .menu .who b { display: block; color: var(--text); font-size: 13.5px; }
main { padding: 22px 28px 60px; min-width: 0; }
.scope { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.scope .tag { font-weight: 700; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.scope .tag.locked { background: color-mix(in srgb, var(--pos) 14%, var(--surface)); color: var(--pos); }
.scope .tag.work { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); color: var(--gold-ink); }
.scope .tag.hist { background: color-mix(in srgb, var(--e2) 15%, var(--surface)); color: var(--e2); }
.scope .tag.filt { background: color-mix(in srgb, var(--neg) 12%, var(--surface)); color: var(--neg); }
.scope .notes { flex-basis: 100%; color: var(--text-2); font-size: 12.5px; } .scope .notes div::before { content: "• "; color: var(--gold-ink); }
/* forms */
.form { display: grid; gap: 12px; } .form.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; } .fld label .req { color: var(--neg); margin-left: 2px; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; }
.fld textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.fld input:focus, .fld select:focus, .fld textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.fld .help { font-size: 11.5px; color: var(--muted); margin-top: 3px; } .fld.err input, .fld.err select { border-color: var(--neg); } .fld .msg { font-size: 11.5px; color: var(--neg); margin-top: 3px; }
.fld.warn input, .fld.warn select { border-color: var(--med); } .fld .wmsg { font-size: 11.5px; color: var(--med); margin-top: 3px; }
.fld .ro { border: 1px dashed var(--line-strong); border-radius: 9px; padding: 8px 10px; background: var(--surface-2); color: var(--text-2); min-height: 37px; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .fs > h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .actions.end { justify-content: flex-end; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; } .btn.danger { background: var(--neg); } .btn.ok { background: var(--pos); }
.t td .actions { flex-wrap: nowrap; } .t tbody tr.click { cursor: pointer; } .t tbody tr.click:hover { background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl-wrap .t { margin: 0; } .tbl-wrap .t th { position: sticky; top: 0; background: var(--surface-2); }
.st-pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.st-pill.draft { color: var(--text-2); } .st-pill.validation_required, .st-pill.failed, .st-pill.error, .st-pill.rejected { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, var(--line)); }
.st-pill.validated, .st-pill.in_review, .st-pill.rendering, .st-pill.queued, .st-pill.warning, .st-pill.new { color: var(--med); border-color: color-mix(in srgb, var(--med) 40%, var(--line)); }
.st-pill.approved, .st-pill.locked, .st-pill.published, .st-pill.ready, .st-pill.ok, .st-pill.valid { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, var(--line)); }
.st-pill.archived, .st-pill.superseded, .st-pill.duplicate { color: var(--muted); }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabbar button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; color: var(--text-2); font-weight: 600; }
.tabbar button.on { border-bottom-color: var(--gold); color: var(--text); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,14,42,.45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(980px, 100%); max-height: 92vh; overflow: auto; padding: 20px 22px; }
.modal h2 { margin: 0 0 4px; font-size: 18px; } .modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.modal .x { float: right; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.empty { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); background: var(--surface); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.loading { color: var(--muted); padding: 30px; text-align: center; } .loading::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { border: 1px solid color-mix(in srgb, var(--neg) 40%, var(--line)); background: color-mix(in srgb, var(--neg) 8%, var(--surface)); color: var(--text); border-radius: 12px; padding: 12px 14px; }
.err-box ul { margin: 6px 0 0 18px; padding: 0; font-size: 12.5px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; } .stat .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; } .stat .l { font-size: 12px; color: var(--muted); }
.stmt { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; background: var(--surface); }
.stmt.measured, .stmt.calculated { border-left-color: var(--pos); } .stmt.interpretation { border-left-color: var(--e2); } .stmt.hypothesis { border-left-color: var(--med); } .stmt.missing { border-left-color: var(--neg); } .stmt.source_claim { border-left-color: var(--e4); }
.stmt small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; } .chipset .chip button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 0 0 6px; }
.story { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.diff { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 4px 12px; font-size: 12.5px; } .diff .h { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 11px; } .diff .chg { color: var(--gold-ink); font-weight: 600; }
/* sign-in */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .brand { background: radial-gradient(120% 90% at 0% 0%, #1B23A8 0%, #010080 45%, #070B3A 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .brand img { width: 190px; } .auth .brand h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; max-width: 520px; } .auth .brand p { color: #C9CDF5; max-width: 480px; }
.auth .brand .rule { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 18px 0; }
.auth .panel { display: grid; place-items: center; padding: 32px; background: var(--surface); }
.auth form { width: min(380px, 100%); display: grid; gap: 14px; } .auth form h2 { margin: 0; font-size: 22px; } .auth form p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .brand { padding: 28px; min-height: 220px; } .form.c3, .form.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .app { grid-template-columns: 1fr; background: var(--canvas); } .side { position: fixed; z-index: 40; width: 280px; left: -290px; transition: left .2s; box-shadow: var(--shadow); } .side.open { left: 0; }
  .menu-btn { display: inline-flex !important; } main { padding: 16px; } .top { padding: 10px 16px; } .search input { width: 150px; } .form.c2, .form.c3, .form.c4 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
.menu-btn { display: none; }
@media print { .side, .top, .pager, .about { display: none !important; } .app { display: block; } }
#toast.bad { border-left: 4px solid var(--neg); } #toast.ok { border-left: 4px solid var(--pos); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:root[data-theme="dark"] .scope .tag.work { color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .scope .tag.work { color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); } }
/* product name, footer, breadcrumbs */
.side .prod { margin: -10px 8px 14px; font-size: 12px; color: var(--muted); line-height: 1.3; } .side .prod b { display: block; color: var(--text); font-size: 13.5px; }
.brandlink { display: block; }
.mainwrap { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; } .mainwrap main { flex: 1; }
.foot { border-top: 1px solid var(--line); padding: 14px 28px 18px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); }
.foot b { color: var(--text-2); } .foot div:first-child { max-width: 760px; } .foot-l { display: flex; gap: 14px; align-items: center; } .foot a { color: var(--text-2); }
.foot-l span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; font-weight: 700; color: var(--text-2); }
.crumbs { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { text-decoration: underline; } .crumbs span { margin: 0 4px; } .crumbs b { color: var(--text-2); font-weight: 600; }
/* dashboard additions */
.delta { font-size: 11.5px; margin-top: 2px; } .delta.up { color: var(--pos); } .delta.down { color: var(--neg); } .delta.na { color: var(--muted); }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .chiprow .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chiprow button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.chiprow button.on { background: var(--navy); color: #fff; border-color: var(--navy); } :root[data-theme="dark"] .chiprow button.on { background: var(--gold); color: #11163F; border-color: var(--gold); }
.chiprow button:disabled { opacity: .45; cursor: not-allowed; }
.kpi-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } .kpi-ins div { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.kpi-ins b { display: block; font-size: 15px; } .kpi-ins span { font-size: 12.5px; color: var(--text-2); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .tools .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.stepper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .stepper span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.stepper span.on { border-color: var(--gold); color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); } .stepper span.done { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, var(--line)); } .stepper i { width: 18px; height: 1px; background: var(--line-strong); }
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } .flow div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; background: var(--surface); position: relative; }
.flow div b { display: block; margin-top: 6px; } .flow div small { color: var(--muted); } .flow svg { width: 22px; height: 22px; color: var(--gold-ink); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.journey { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: var(--surface); }
.journey em { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #11163F; font-style: normal; font-weight: 800; display: grid; place-items: center; flex: none; }
.journey div { flex: 1; } .journey p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.typecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; } .typecard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.typecard:hover, .typecard.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent); } .typecard b { display: block; font-size: 15px; margin-bottom: 4px; } .typecard span { font-size: 12.5px; color: var(--text-2); } .typecard small { display: inline-block; margin-top: 8px; color: var(--muted); }
.dzone { border: 1px solid color-mix(in srgb, var(--neg) 45%, var(--line)); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.dzone b { color: var(--neg); }
.authlogo { display: flex; gap: 14px; align-items: center; } .authlogo img { width: 150px !important; } .authlogo b { display: block; font-size: 16px; } .authlogo span { color: #C9CDF5; font-size: 13px; }
.auth .panel { position: relative; } .auth .powered { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 12px; margin: 0; }
.auth form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.auth .panel { background: var(--canvas); }
.top select { max-width: 230px; } #brandSel { max-width: 170px; } .search input { width: 200px; }
@media (min-width: 1200px) { .top { flex-wrap: nowrap; } }

/* ---- simplified layout (Oct 2026) ---- */
a.btn, .btn, a.btn:hover, .btn:hover, .chip a, .typecard, .tools a { text-decoration: none !important; }
a.btn { display: inline-flex; align-items: center; gap: 6px; }
.nav .grp.flat { margin-bottom: 6px; }
.nav .nhead { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 8px 4px; }
.nav .grp .items .nhead:first-child { margin-top: 2px; }
.nav a .badge { font-size: 10px; font-weight: 700; color: var(--pos); background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; }
.demobar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 28px; background: var(--gold); color: #11163F; font-size: 13px; }
.demobar b { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; } .demobar .btn { margin-left: auto; color: #11163F; border-color: rgba(17,22,63,.4); }
.foot { padding: 12px 28px; font-size: 12px; align-items: center; }
.foot .foot-l { gap: 14px; } .foot .foot-l a { text-decoration: none; }
.about { padding: 8px 12px; font-size: 12.5px; margin: -6px 0 14px; } .about b { display: none; }
/* home dashboard */
.home-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-k .k { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.home-k .k .l { font-size: 12.5px; color: var(--muted); font-weight: 600; } .home-k .k .v { font-size: 30px; font-weight: 780; margin: 4px 0 2px; letter-spacing: -.01em; }
.home-k .k .delta { font-size: 12px; }
.home-g { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.chiprow.ch { margin: 2px 0 14px; }
.chiprow.ch button small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chiprow.ch .sep { width: 1px; align-self: stretch; background: var(--line-strong); margin: 0 4px; }
.todo { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.todo a { flex: 1 1 180px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 13.5px; }
.todo a b { font-size: 20px; } .todo a:hover { border-color: var(--line-strong); } .todo a.hot b { color: var(--gold); }
.web-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.mlist { display: grid; gap: 8px; } .mlist div { font-size: 13px; display: flex; justify-content: space-between; gap: 10px; } .mlist div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .home-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-g { grid-template-columns: 1fr; } }
.mlist div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.mlist div > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mlist div > small { white-space: nowrap; }
.card .hint a, .web-note a { text-decoration: none; font-weight: 600; }
.mlist a { color: var(--text); text-decoration: none; } .mlist a:hover { color: var(--navy); text-decoration: underline; }

/* ---- zoom: chart elements open a deeper view, like zooming into a map ---- */
#main [data-drill] { cursor: zoom-in; }
#main .hb-row[data-drill]:hover, .zl .hb-row[data-drill]:hover { background: color-mix(in srgb, var(--series) 7%, transparent); border-radius: 8px; }
svg [data-drill] { transition: filter .15s ease, opacity .15s ease; } svg [data-drill]:hover { filter: brightness(1.12) drop-shadow(0 0 3px color-mix(in srgb, var(--series) 45%, transparent)); }
circle[data-drill] { transition: r .15s ease; } circle[data-drill]:hover { r: 7; }
.legend span[data-drill]:hover { text-decoration: underline; text-underline-offset: 3px; }
.board-row[data-drill] { cursor: zoom-in; }
.tip-intel { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; display: grid; gap: 4px; min-width: 230px; animation: tipIn .2s ease; }
.tip-intel .ti-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.15); } .tip-intel .ti-bar i { display: block; height: 6px; }
.tip-intel .ti-st { opacity: .9; } .tip-intel .ti-hint { opacity: .65; font-size: 11px; letter-spacing: .02em; }
@keyframes tipIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.zl-bg { position: fixed; inset: 0; background: rgba(8, 10, 40, .38); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 80; }
.zl-bg.on { opacity: 1; pointer-events: auto; }
.zl { position: fixed; z-index: 81; display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(5, 8, 40, .35);
  opacity: 0; transform: scale(.06); pointer-events: none; transition: transform .48s cubic-bezier(.2, .9, .2, 1), opacity .3s ease; overflow: hidden; }
.zl.on { opacity: 1; transform: none; pointer-events: auto; }
.zl-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.zl-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; min-width: 0; } .zl-crumbs span { color: var(--muted); }
.zl-crumbs button { border: 0; background: none; color: var(--text-2); cursor: zoom-out; padding: 2px 4px; border-radius: 6px; font: inherit; } .zl-crumbs button:hover { background: var(--surface-2); }
.zl-crumbs b { font-size: 15px; }
.zl-ctl { margin-left: auto; display: flex; gap: 6px; } .zl-ctl button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.zl-ctl button:hover { background: var(--surface-2); }
.zl-stage { position: relative; flex: 1; overflow: auto; overscroll-behavior: contain; }
.zl-body { padding: 18px 20px 22px; transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .35s ease, filter .35s ease; }
.zl-body.from-near { transform: scale(.72); opacity: 0; filter: blur(3px); } .zl-body.from-far { transform: scale(1.3); opacity: 0; filter: blur(3px); }
.zl-body.to-far { position: absolute; inset: 0; transform: scale(1.4); opacity: 0; filter: blur(4px); pointer-events: none; }
.zl-body.to-near { position: absolute; inset: 0; transform: scale(.7); opacity: 0; filter: blur(4px); pointer-events: none; }
.zl-read { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.zl-read p { margin: 0; font-size: 14px; line-height: 1.55; } .zl-ic { color: var(--gold); font-size: 20px; line-height: 1.2; }
.zl-k { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.zl-k div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .zl-k span { display: block; font-size: 11.5px; color: var(--muted); } .zl-k b { font-size: 22px; }
.zl-stories { display: grid; gap: 8px; } .zs { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zs .dot { margin-top: 6px; } .zs b { font-weight: 600; font-size: 13.5px; } .zs small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.zl-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .zl-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .zl, .zl-body, .zl-bg { transition: none !important; } }
.tip-intel b { display: inline !important; font-weight: 700; }
.tip-intel > div { display: block; }
/* social following */
.soc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; } .soc-head h3 { margin: 0; } .soc-head span { font-size: 12.5px; color: var(--muted); }
.kpi.soc .v.na { color: var(--muted); } .kpi.soc .soc-h { font-size: 11.5px; margin-left: 6px; text-decoration: none; color: var(--muted); }
.kpi.soc b.up { color: var(--pos); } .kpi.soc b.down { color: var(--neg); } .kpi.soc .soc-t { font-size: 11.5px; color: var(--muted); margin-top: 6px; } .kpi.soc .soc-t .warn { color: var(--med); }
.srow { display: grid; grid-template-columns: 110px 1fr 130px 34px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } @media (max-width: 640px) { .srow { grid-template-columns: 1fr 34px; } .srow label { grid-column: 1 / -1; } .srow .st { grid-column: 1 / -1; } }
.srow input { border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; background: var(--surface); color: var(--text); min-width: 0; } .srow .st { font-size: 12px; color: var(--muted); }
/* media threat intelligence */
.tk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tki { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.tki span { font-size: 12.5px; color: var(--muted); font-weight: 600; } .tki b { font-size: 30px; font-weight: 780; } .tki.hi b { color: var(--neg); } .tki.md b { color: var(--med); }
.tki.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); } .tki:hover { border-color: var(--line-strong); }
.th { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.th.l-high { border-left-color: var(--neg); } .th.l-medium { border-left-color: var(--med); } .th.l-low { border-left-color: var(--gold); }
.th-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .th-t { min-width: 0; flex: 1; } .th-t > b { font-size: 14.5px; }
.th-m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.th .lv { font-weight: 700; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; } .lv.high { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
.lv.medium { background: color-mix(in srgb, var(--med) 18%, transparent); color: var(--med); } .lv.low { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--text-2); }
.th .nw { font-weight: 700; font-size: 11px; color: var(--navy); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; } :root[data-theme="dark"] .th .nw { color: var(--gold); }
.th .cp { font-size: 11px; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0 7px; }
.th-r { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .th-r span { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--text-2); }
.th p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); } .th-e { margin-top: 8px; font-size: 12.5px; color: var(--neg); } .th-done { font-size: 12.5px; color: var(--muted); }
ol.steps { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
/* clear reading order: label first, then the number */
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi:not(.soc) { display: flex; flex-direction: column; padding: 16px 18px; }
.kpi:not(.soc) > .l { order: -1; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.kpi:not(.soc) > .l ~ .l { order: 0; margin: 4px 0 0; font-weight: 500; color: var(--muted); }
.kpi .v { font-size: 28px; line-height: 1.1; }
/* doughnuts stack their legend under the chart when the card is narrow */
.card { container-type: inline-size; }
@container (max-width: 430px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .donut-wrap svg { max-width: 170px; } .donut-wrap .legend { width: 100%; } }
.donut-wrap .legend b { white-space: nowrap; }
.about { font-size: 12.5px; padding: 7px 12px; }
.scope .sv { color: var(--muted); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }

/* period views: type tabs, step through periods, double calendar with smart presets */
.pbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pbar .seg button { font-weight: 600; font-size: 13px; color: var(--text-2); } .pbar .seg button.on { color: #fff; }
.pstep { display: inline-flex; align-items: center; gap: 6px; } .pstep b { min-width: 130px; text-align: center; font-size: 14px; } .pstep .btn { font-size: 16px; line-height: 1; padding: 5px 10px; }
.prange { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-left: auto; }
.prange label, .pun { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.prange input[type=date] { border: 1px solid var(--line-strong); border-radius: 9px; padding: 6px 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.prange .chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.prange .chips button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.prange .chips button.on, .prange .chips button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pdata { font-size: 12px; color: var(--muted); margin: 6px 2px 14px; }
@media (max-width: 760px) { .prange { margin-left: 0; } .pstep b { min-width: 0; } }
.cat-hint { font-size: 12.5px; line-height: 1.35; padding-top: 8px; } .cat-hint .ok { color: var(--pos); font-weight: 600; } .cat-hint .bad { color: var(--neg); font-weight: 600; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quotes blockquote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.quotes blockquote small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; }
.setchips .chip-b { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.setchips .chip-b.on, .setchips .chip-b:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.card, .grid > *, .view-chart { min-width: 0; } .card > .view-chart > .t, .card .tbl-wrap { max-width: 100%; }
.view-chart, .view-table { overflow-x: auto; }

/* dark mode: active segments and chips use the gold accent so they stay legible */
:root[data-theme="dark"] :is(.seg button.on, .prange .chips button.on, .setchips .chip-b.on) { background: var(--gold); border-color: var(--gold); color: #11163F; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) :is(.seg button.on, .prange .chips button.on, .setchips .chip-b.on) { background: var(--gold); border-color: var(--gold); color: #11163F; } }
.pwopts { display: grid; gap: 8px; } .pwopts label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.pwopts label:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.pwopts small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; } .pwopts input { margin-top: 3px; }
.pwopts input[type=radio] { width: auto; flex: none; margin: 3px 0 0; } .pwopts label span { text-align: left; flex: 1; }
.pwopts input[type=radio] { width: auto; flex: none; margin: 3px 0 0; } .pwopts label span { text-align: left; flex: 1; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; } .checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; } .checks input[type=checkbox] { width: auto; flex: none; margin: 0; }

/* ---------------------------------------------------------------- motion: dashboards come alive as they come into view */
.mv { transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.mv:not(.mv-in) { opacity: 0; transform: translateY(16px); }
.mv-in .hb-row .trk i, .mv-in .board-row .trk i, .mv-in.board-row .trk i { animation: mvGrowX .95s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); transform-origin: left center; }
.mv-in .st-row .st-bar { animation: mvGrowX 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); transform-origin: left center; }
.mv-in .mv-col { animation: mvGrowY .85s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); transform-box: fill-box; transform-origin: 50% 100%; }
.mv-in .mv-sbar { animation: mvGrowX .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.mv-in .mv-line { stroke-dasharray: 1; animation: mvDraw 1.3s ease-in-out both; animation-delay: calc(var(--i, 0) * 150ms + 150ms); }
.mv-in .mv-pt { animation: mvPop .45s ease-out both; animation-delay: 1.1s; transform-box: fill-box; transform-origin: center; }
.mv-in svg.chart .val { animation: mvFade .5s ease both; animation-delay: .9s; }
.mv-in .mv-donut { animation: mvSweep 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: .1s; transform-box: fill-box; transform-origin: center; }
.mv-in .mv-radar { animation: mvGrow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: .15s; }
.mv-in .pr, .mv-in .person, .mv-in .story { animation: mvRise .6s ease both; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
@keyframes mvGrowX { from { transform: scaleX(0); } }
@keyframes mvGrowY { from { transform: scaleY(0); } }
@keyframes mvGrow { from { transform: scale(0); opacity: 0; } }
@keyframes mvDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mvPop { from { transform: scale(0); opacity: 0; } }
@keyframes mvFade { from { opacity: 0; } }
@keyframes mvSweep { from { transform: rotate(-120deg) scale(.82); opacity: 0; } }
@keyframes mvRise { from { transform: translateY(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mv, .mv:not(.mv-in) { opacity: 1; transform: none; transition: none; } .mv-in * { animation: none !important; } }
@media print { .mv, .mv:not(.mv-in) { opacity: 1; transform: none; } .mv-in * { animation: none !important; } }

/* ---------------------------------------------------------------- sign-in (P+ navy brand panel, gold action) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--canvas); }
.auth .brand { position: relative; overflow: hidden; background: radial-gradient(110% 80% at 0% 0%, #1B23A8 0%, #010080 46%, #060A36 100%); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth .brand .pitch { max-width: 540px; position: relative; z-index: 1; }
.auth .brand h1 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.auth .brand h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 18px; }
.auth .brand p { color: #C9CDF5; margin: 0 0 26px; font-size: 15px; line-height: 1.55; }
.auth .caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth .caps li { display: flex; gap: 14px; align-items: flex-start; }
.auth .caps svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); stroke: #F9A602; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth .caps b { display: block; font-size: 14.5px; } .auth .caps span { color: #C9CDF5; font-size: 13px; line-height: 1.4; }
.auth .brand-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; } .auth .brand-foot small { color: #AEB3EA; font-size: 12px; }
.auth .amec { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.authlogo { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; } .authlogo img { width: 150px !important; } .authlogo b { display: block; font-size: 16px; } .authlogo span { color: #C9CDF5; font-size: 13px; }
.auth .panel { position: relative; display: grid; place-items: center; padding: 40px 28px 64px; background: var(--canvas); }
.auth .auth-theme { position: absolute; top: 18px; right: 18px; } .auth .auth-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth form { width: min(400px, 100%); display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 18px 50px -24px rgba(1, 0, 128, .35); }
.auth form .head { display: grid; gap: 6px; margin-bottom: 4px; } .auth form h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; } .auth form .head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.auth form .btn { width: 100%; padding: 12px 14px; font-size: 15px; border-radius: 11px; }
.auth form input[type=email], .auth form input[type=password], .auth form input[type=text] { height: 44px; font-size: 15px; }
.auth .pw { position: relative; } .auth .pw input { width: 100%; padding-right: 46px; }
.auth .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.auth .pw-eye:hover, .auth .pw-eye:focus-visible { color: var(--text); background: var(--surface-2); } .auth .pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.auth .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -2px; font-size: 13px; }
.auth .chk { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); cursor: pointer; font-weight: 500; } .auth .chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }
.auth a { text-decoration: none; color: var(--link, #1B23A8); font-weight: 600; } .auth a:hover { text-decoration: none; opacity: .85; }
:root[data-theme="dark"] .auth a { color: #F9A602; } @media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .auth a { color: #F9A602; } }
.auth .back { text-align: center; font-size: 13px; } .auth .note { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.auth .caps-warn { font-size: 12.5px; font-weight: 600; color: var(--med, #B26A00); margin-top: -6px; }
.auth .powered { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 12px; margin: 0; } .auth .powered a { font-weight: 500; color: var(--muted); }
.auth #am:empty { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth .brand { padding: 22px 20px; gap: 14px; min-height: 0; }   .auth .brand .pitch p, .auth .caps, .auth .brand-foot { display: none; } .auth .brand h1 { font-size: 20px; margin: 0; } .auth .brand h1::after { margin-top: 12px; height: 3px; width: 48px; }
  .authlogo img { width: 112px !important; } .authlogo b { font-size: 14.5px; }
  .auth .panel { padding: 62px 16px 56px; place-items: start center; } .auth form { padding: 24px 20px; } .auth .auth-theme { top: 12px; right: 12px; }
}
/* sign-in: daily thought */
.auth .quote { margin: 0; position: relative; z-index: 1; max-width: 520px; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--gold); animation: qIn .7s ease both; }
.auth .quote figcaption { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F9A602; margin-bottom: 8px; }
.auth .quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.5; color: #fff; font-weight: 500; }
.auth .quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: #C9CDF5; }
.auth .brand-foot { color: #AEB3EA; font-size: 12px; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .auth .quote { animation: none; } }
@media (max-width: 900px) { .auth .quote { padding: 12px 14px; } .auth .quote blockquote { font-size: 14px; } .auth .quote figcaption { margin-bottom: 4px; } }
.auth .since { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(249,166,2,.14); border: 1px solid rgba(249,166,2,.45); color: #F9A602; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .auth .since { margin-bottom: 8px; font-size: 11px; padding: 3px 10px; } }
/* sign-in: thought for today, simple and quiet */
.auth .quote { padding: 2px 0 2px 20px; background: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; max-width: 460px; }
.auth .quote figcaption { font-size: 11px; letter-spacing: .14em; margin-bottom: 10px; }
.auth .quote blockquote { font-size: 19px; line-height: 1.5; font-weight: 400; font-style: italic; letter-spacing: .005em; }
.auth .quote cite { margin-top: 12px; font-size: 13px; color: #C9CDF5; font-weight: 600; font-style: normal; letter-spacing: .02em; }
@media (max-width: 900px) { .auth .quote { padding-left: 14px; } .auth .quote blockquote { font-size: 15px; } }
/* client workspace: published reports by month, brand switch */
.rmonth { margin: 22px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; }
.rcard .rc-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .rcard .rc-t span { color: var(--text-2); font-size: 13px; font-weight: 600; } .rcard small { color: var(--muted); }
.brands { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .brands .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.brands button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.brands button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .brands button.on { background: var(--gold); border-color: var(--gold); color: #11163F; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .brands button.on { background: var(--gold); border-color: var(--gold); color: #11163F; } }

/* ---------------------------------------------------------------- Data Lake: editorial data and print advert data kept apart */
.stat .h { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat.hot .v { color: var(--neg); }
.lake-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 6px; }
.lake-switch a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; border-top-width: 4px; }
.lake-switch a:first-child { border-top-color: var(--series); } .lake-switch a:last-child { border-top-color: var(--gold); }
.lake-switch a b { font-size: 15px; } .lake-switch a small { color: var(--muted); font-size: 12px; }
.lake-switch a.on { background: var(--nav-active); border-color: var(--series); border-top-color: var(--series); }
.lake-switch a.on:last-child { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.lake-sub { color: var(--text-2); font-size: 13px; margin: 6px 0 12px; }
.lake-door { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--series); background: var(--surface); font-size: 13px; color: var(--text-2); }
.lake-door.advert { border-left-color: var(--gold); }
.lake-tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--series); color: #fff; white-space: nowrap; }
.lake-door.advert .lake-tag { background: var(--gold); color: #11163F; }
:root[data-theme="dark"] .lake-tag { color: #0A0E2A; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .lake-tag { color: #0A0E2A; } }
.lk-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.lk-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; min-width: 150px; flex: 1 1 150px; }
.lk-f[hidden] { display: none; }
.lk-f select, .lk-f input { border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 9px; background: var(--surface); color: var(--text); font: inherit; font-weight: 500; font-size: 13px; }
.lk-act { display: flex; gap: 8px; margin-left: auto; }
.lk-sep { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-sep div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .lk-sep b { display: block; font-size: 22px; } .lk-sep span { font-size: 12px; color: var(--muted); }
.lk-sep p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 640px) { .lake-switch { grid-template-columns: 1fr; } .lk-act { margin-left: 0; } }
.auth .quote cite span { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: #A9AEDD; letter-spacing: 0; }
/* switch (export: include single entries) */
.sw { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-t { flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; margin-top: 1px; }
.sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw input:checked + .sw-t { background: var(--navy); } .sw input:checked + .sw-t::after { transform: translateX(18px); }
.sw input:focus-visible + .sw-t { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
:root[data-theme="dark"] .sw input:checked + .sw-t { background: var(--gold); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .sw input:checked + .sw-t { background: var(--gold); } }
