/* Sales Manpower — design system. Light, corporate, map-first. */
:root {
  --navy: #192882; --navy-2: #2A3A9C; --ink: #14203F; --text: #26324F; --muted: #5E6B85; --faint: #8A95AB;
  --line: #E3E8F1; --line-2: #EEF1F7; --bg: #F5F7FB; --card: #FFFFFF;
  --green: #96BE0F; --green-ink: #4F6B00; --green-soft: #F1F7DD;
  --neg: #C0262D; --neg-soft: #FDECEC; --pos: #23803A; --pos-soft: #E6F4EA; --zero-soft: #EEF1F6;
  --c-cksa: #B9A5DF; --c-wksa: #69BCE8; --c-eksa: #F5D76E; --c-sksa: #9BCB65;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 63, .06), 0 8px 24px -12px rgba(20, 32, 63, .18);
  --shadow-lg: 0 2px 6px rgba(20, 32, 63, .06), 0 18px 40px -18px rgba(20, 32, 63, .28);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --topbar: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(25, 40, 130, .35); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand-mark i { display: block; width: 6px; height: 6px; border-radius: 2px; }
.brand-mark .g { display: grid; grid-template-columns: 6px 6px; gap: 3px; }
.brand-title { font-weight: 700; letter-spacing: -.01em; font-size: 16px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.updated { font-size: 12px; color: var(--muted); white-space: nowrap; }
.updated b { color: var(--ink); font-weight: 600; }

.chip-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip-btn:hover { border-color: #C9D2E3; background: #FAFBFE; }
.chip-btn .k { color: var(--muted); font-weight: 500; }
.chip-btn svg { flex: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: #FAFBFE; border-color: #C9D2E3; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.btn:hover { border-color: #C9D2E3; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.primary:disabled { background: #AEB5D6; border-color: #AEB5D6; cursor: not-allowed; }
.btn.danger { color: var(--neg); border-color: #F2C9CB; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: transparent; }

/* ---------- popover / menus ---------- */
.popover { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; min-width: 260px; }
.menu { padding: 6px; min-width: 220px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-weight: 500; }
.menu button:hover { background: var(--bg); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .who { padding: 8px 12px 10px; font-size: 12px; color: var(--muted); }
.menu .who b { display: block; color: var(--ink); font-size: 13px; word-break: break-all; }
.period h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.period .row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--text); }
.pill:hover { border-color: #C9D2E3; }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill:disabled { opacity: .4; cursor: default; }
.period .latest { width: 100%; justify-content: center; margin-bottom: 14px; }

/* ---------- home / map ---------- */
.home { position: relative; height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); overflow: hidden; }
.map-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px 440px 84px 24px; }
.map-svg { width: 100%; height: 100%; max-height: 100%; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.map-svg .ctx { fill: #EEF1F6; stroke: #fff; stroke-width: .8; }
.map-svg .region { cursor: pointer; transition: opacity .18s ease; outline: none; }
.map-svg .region:focus-visible path { stroke: var(--navy); stroke-width: 2.5; }
.map-svg .region path { stroke-linejoin: round; }
.map-svg.has-focus .region:not(.focus) { opacity: .42; }
.map-svg .region.focus path { stroke: var(--ink); stroke-width: 0; }
.map-svg .borders { fill: none; stroke: #fff; stroke-width: 2.2; pointer-events: none; }
.map-svg .outline { fill: none; stroke: #7E8BA8; stroke-width: 1.1; pointer-events: none; }
.map-svg .city-dot { fill: var(--ink); stroke: #fff; stroke-width: .9; pointer-events: none; }
.map-svg .city-label { fill: #2B3756; font-weight: 500; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: var(--lsw, 1); stroke-linejoin: round; }
.map-svg .region-label { font-weight: 800; letter-spacing: .08em; fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: var(--rsw, 1.5); }
.map-svg .focus-ring { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.map-note { position: absolute; left: 24px; top: 14px; font-size: 11px; color: var(--faint); max-width: 420px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ksa-card { position: absolute; top: 20px; right: 20px; width: 400px; padding: 16px 18px 12px; cursor: pointer; transition: box-shadow .15s, transform .15s; border-top: 3px solid var(--green); }
.ksa-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.card-foot .go { color: var(--navy); font-weight: 600; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line-2); }
table.grid th:first-child, table.grid td:first-child { text-align: left; padding-left: 0; }
table.grid th:last-child, table.grid td:last-child { padding-right: 0; }
table.grid thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
table.grid tbody th { font-weight: 500; color: var(--text); }
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }
table.grid tfoot td, table.grid tfoot th { border-top: 1.5px solid var(--line); font-weight: 700; color: var(--ink); border-bottom: 0; }
table.grid td.na { color: var(--faint); }
.v { display: inline-block; min-width: 46px; padding: 1px 8px; border-radius: 999px; font-weight: 700; text-align: right; }
.v.neg { color: var(--neg); background: var(--neg-soft); }
.v.pos { color: var(--pos); background: var(--pos-soft); }
.v.zero { color: var(--text); background: var(--zero-soft); }
.missing { color: var(--faint); font-style: italic; font-size: 12px; }

.region-card { position: absolute; right: 20px; top: var(--rc-top, 330px); width: 400px; padding: 14px 16px 12px; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.region-card.show { opacity: 1; transform: none; }
.region-card.touch { pointer-events: auto; }
.region-card .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.region-card h3 { margin: 0; font-size: 16px; color: var(--ink); }
.region-card .hint { font-size: 12px; color: var(--muted); }

.dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.dock .chip-btn { border-color: transparent; }
.dock .chip-btn:hover { background: var(--bg); }
.dock svg { color: var(--navy); }

/* ---------- page (details / compare / insights / changes / admin) ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 22px 24px 64px; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.page-head .meta { font-size: 13px; color: var(--muted); }
.page-head .spacer { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy); text-decoration: none; }
.back:hover { border-color: #C9D2E3; }
.region-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.seg { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.seg button { height: 32px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; }
.section { margin-top: 18px; padding: 18px 20px; }
.section > h2 { margin: 0 0 4px; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.section > .desc { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols-2 > .section { margin-top: 18px; }
.pos-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pos-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.pos-card h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; }
.pos-card h3 span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.pos-card .big { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.pos-card .big-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.banner.warn { background: #FFF7E1; color: #6B4E00; border: 1px solid #F3E0A6; }
.banner.info { background: #EEF2FB; color: #24346F; border: 1px solid #D7DFF3; }
.banner.err { background: var(--neg-soft); color: #7A1419; border: 1px solid #F2C9CB; }
.banner.ok { background: var(--pos-soft); color: #18592A; border: 1px solid #C3E3CB; }
.banner svg { flex: none; margin-top: 1px; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #FBFCFE; }
.empty b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 2px; }
.expected { border-style: dashed; border-color: #CDD5E6; background: #FCFDFF; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--line-2); color: var(--muted); }
.tag.green { background: var(--green-soft); color: var(--green-ink); }
.tag.navy { background: #E8EBF8; color: var(--navy); }
.tag.red { background: var(--neg-soft); color: var(--neg); }
.tag.amber { background: #FFF3D6; color: #7A5600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* compare */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hl { padding: 14px 16px; }
.hl .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.hl .val { font-size: 22px; font-weight: 750; color: var(--ink); margin: 6px 0 2px; letter-spacing: -.01em; }
.hl .who { font-size: 13px; color: var(--text); }
.bar { position: relative; height: 6px; background: var(--line-2); border-radius: 3px; margin-top: 4px; min-width: 70px; }
.bar i { position: absolute; top: 0; height: 6px; border-radius: 3px; }
.bar .mid { position: absolute; left: 50%; top: -2px; width: 1px; height: 10px; background: #B9C2D4; }
.cmp th.grp { text-align: center; color: var(--navy); border-bottom: 2px solid #E8EBF8; }
.cmp td.sep, .cmp th.sep { border-left: 1px solid var(--line); }
.region-cards { display: none; }

/* insights / changes */
.insight { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.insight:last-child { border-bottom: 0; }
.insight .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--faint); }
.insight .dot.worse { background: var(--neg); } .insight .dot.better { background: var(--pos); } .insight .dot.note { background: #E3B341; } .insight .dot.neutral { background: var(--navy); }
.insight p { margin: 0; font-size: 15px; color: var(--ink); }
.insight .tag { margin-bottom: 4px; }
.story { font-size: 12px; font-weight: 600; }
.story.better { color: var(--pos); } .story.worse { color: var(--neg); } .story.neutral { color: var(--muted); }
.arrow { color: var(--muted); }
details.scope { border-top: 1px solid var(--line); }
details.scope > summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
details.scope > summary::-webkit-details-marker { display: none; }
details.scope > summary .chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
details.scope[open] > summary .chev { transform: rotate(90deg); }

/* admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; height: 42px; padding: 0 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--navy); }
.drop { border: 2px dashed #C9D2E3; border-radius: var(--radius); padding: 36px 20px; text-align: center; background: #FBFCFE; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--navy); background: #F4F6FC; }
.drop b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.issue-list { margin: 0; padding: 0; list-style: none; }
.issue-list li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 10px; }
.issue-list li:last-child { border-bottom: 0; }
.issue-list .where { flex: none; min-width: 170px; color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.steps span { padding: 4px 10px; border-radius: 999px; background: var(--line-2); font-weight: 600; }
.steps span.on { background: var(--navy); color: #fff; }
.steps span.done { background: var(--green-soft); color: var(--green-ink); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #D5DCE8; background: #fff; width: 100%; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25, 40, 130, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); }
.status { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.published { background: var(--pos-soft); color: var(--pos); } .status.draft { background: #FFF3D6; color: #7A5600; }
.status.superseded, .status.withdrawn { background: var(--line-2); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kpi .n { font-size: 20px; font-weight: 700; color: var(--ink); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 85% -10%, #E9EDFA 0%, transparent 60%), radial-gradient(900px 400px at -10% 110%, #EEF6DA 0%, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; padding: 30px 28px 24px; }
.login-card h1 { margin: 14px 0 4px; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.login-card p.lead { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.login-foot { margin-top: 16px; font-size: 11px; color: var(--faint); text-align: center; }

/* overlays */
.modal-back { position: fixed; inset: 0; background: rgba(20, 32, 63, .35); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.modal { width: 100%; max-width: 460px; padding: 22px; }
.modal h3 { margin: 0 0 8px; color: var(--ink); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: rise .2s ease; }
.toast.err { background: var(--neg); }
.demo-ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #FFF7E1; color: #6B4E00; font-size: 12px; text-align: center; padding: 4px 8px; border-top: 1px solid #F3E0A6; }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); gap: 10px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* presentation / fullscreen */
body.presenting .topbar .hide-present { display: none !important; }
body.demo { padding-bottom: 26px; }
body.demo .home { height: calc(100dvh - var(--topbar) - 26px); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .map-wrap { padding: 20px 400px 84px 16px; }
  .ksa-card { width: 370px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --topbar: 58px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-sub, .updated, .topbar .label-wide { display: none; }
  .home { height: auto; overflow: visible; display: flex; flex-direction: column; }
  .map-wrap { position: relative; inset: auto; padding: 10px 8px 4px; height: min(78vw, 62vh); }
  .map-note { position: static; padding: 0 16px 8px; max-width: none; }
  .ksa-card { position: relative; top: auto; right: auto; width: auto; margin: 6px 12px 12px; }
  .ksa-card:hover { transform: none; }
  .dock { position: static; transform: none; margin: 0 12px 16px; border-radius: 16px; justify-content: space-between; }
  .dock .chip-btn { flex: 1; justify-content: center; padding: 0 6px; font-size: 12px; height: 44px; flex-direction: column; gap: 2px; }
  .map-wrap { order: 1; } .region-card { order: 2; } .ksa-card { order: 3; } .dock { order: 4; } .map-note { order: 5; }
  .region-card { position: relative; left: auto; right: auto; bottom: auto; top: auto; width: auto; margin: 6px 12px 0; transform: none; padding: 12px 14px; border-top: 3px solid var(--rc-color, var(--line)); }
  .region-card:not(.show) { display: none; }
  .region-card .btn { margin-top: 8px; height: 42px; }
  .home table.grid th, .home table.grid td { padding-top: 5px; padding-bottom: 5px; }
  .home table.grid thead th { font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
  .ksa-card { padding: 12px 14px 10px; }
  .region-card .btn { width: 100%; margin-top: 10px; height: 44px; }
  .page { padding: 14px 12px 64px; }
  .page-head h1 { font-size: 20px; }
  .cols-2 { grid-template-columns: 1fr; gap: 0; }
  .pos-cards { grid-template-columns: 1fr; }
  .section { padding: 14px; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hl .val { font-size: 18px; }
  .cmp-table { display: none; }
  .region-cards { display: grid; gap: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .issue-list li { flex-direction: column; gap: 2px; }
  .issue-list .where { min-width: 0; }
  .popover { left: 8px !important; right: 8px !important; min-width: 0; }
  .seg button { min-width: 0; padding: 0 10px; }
}
@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  #fullBtn { display: none; }
  .chip-btn { padding: 0 10px; }
  table.grid th, table.grid td { padding: 7px 5px; }
  .v { min-width: 40px; padding: 1px 6px; }
}
@media print { .topbar, .dock, .demo-ribbon { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
