/* Chhattisgarh CM Smart Control Tower — light, editorial consulting style.
   Layout rule: one idea per screen. Top nav (7 destinations) + sub-menu; long pages become tabs;
   long lists are capped with a "Show all" control. */
:root {
  --navy: #051c2c;
  --blue: #2251ff;
  --cyan: #00a9f4;
  --ink: #1a1f26;
  --ink-2: #4a5360;
  --muted: #7b8490;
  --line: #e3e6ea;
  --soft: #f5f7f9;
  --bg: #ffffff;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --info: #2251ff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Nirmala UI", "Noto Sans Devanagari", sans-serif;
  --page: 2200px;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 34px; letter-spacing: -0.01em; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell: top nav + sub-menu */
.top { position: sticky; top: 0; z-index: 1100; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; gap: 20px; padding: 0 clamp(20px, 3vw, 56px); height: 60px; }
.brand { display: flex; flex-direction: column; justify-content: center; color: var(--navy); white-space: nowrap; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand b { font: 400 19px var(--serif); }
.brand span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.primary { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.primary::-webkit-scrollbar { display: none; }
.primary a { display: flex; align-items: center; padding: 0 11px; color: var(--ink-2); font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.primary a:hover { color: var(--navy); text-decoration: none; background: var(--soft); }
.primary a.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--blue); }
.langs { display: flex; align-self: center; border: 1px solid var(--line); }
.langs a { padding: 4px 10px; font-size: 13px; color: var(--ink-2); border-right: 1px solid var(--line); }
.langs a:last-child { border-right: 0; }
.langs a.on { background: var(--navy); color: #fff; }
.langs a:hover { text-decoration: none; }
.subnav { background: var(--soft); border-bottom: 1px solid var(--line); }
.subnav .wrap { max-width: var(--page); margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 10px 14px; font-size: 14px; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); text-decoration: none; }
.subnav a.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }
main { max-width: var(--page); margin: 0 auto; padding: 32px clamp(20px, 3vw, 56px) 110px; min-width: 0; }
.foot { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- page header */
.eyebrow { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.eyebrow a { color: inherit; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 10px 0 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }

/* ---------- tabs (built by app.js from each .section heading) */
.tabs { position: sticky; top: 60px; z-index: 900; background: #fff; display: flex; gap: 2px; margin: 34px 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 13px 16px 11px; font: 15px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--navy); background: var(--soft); }
.tabs button.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--blue); }
.section { margin-top: 44px; }
.section > h2 { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section > h2 a, .section > h2 small { font: 13.5px var(--sans); }
.tabbed .section { margin-top: 0; }
/* hidden panels keep their width so maps and charts inside still measure correctly */
.tabbed .section.off { height: 0; overflow: hidden; visibility: hidden; margin: 0; }

/* ---------- grid */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- cards & tiles */
.card { background: #fff; border: 1px solid var(--line); padding: 24px; min-width: 0; }
.card > h3 { margin-bottom: 14px; }
.card.link { color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.card.link:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(5, 28, 44, .08); text-decoration: none; }
.tile { border-top: 3px solid var(--blue); padding: 14px 0 0; display: block; color: inherit; }
a.tile:hover { text-decoration: none; border-top-color: var(--cyan); }
.tile .k { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.tile .v { font: 400 38px/1.1 var(--serif); color: var(--navy); margin: 8px 0 4px; }
.tile .s { font-size: 13.5px; color: var(--muted); }
.soft { background: var(--soft); border-color: var(--soft); }
.callout { border-left: 3px solid var(--blue); background: var(--soft); padding: 16px 20px; font-size: 14.5px; color: var(--ink-2); }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; border-radius: 20px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--muted)); }
.pill.good { --tone: var(--good); } .pill.warning { --tone: var(--warning); } .pill.serious { --tone: var(--serious); }
.pill.critical { --tone: var(--critical); } .pill.info { --tone: var(--info); } .pill.plain::before { display: none; }
.tag { display: inline-block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 1px 7px; margin-right: 4px; }
.tag.blue { color: var(--blue); border-color: var(--blue); }

/* ---------- meter */
.meter { height: 6px; background: #e9edf1; position: relative; border-radius: 3px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 3px; }
.meter-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.meter-row b { font-weight: 600; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font: 600 11.5px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--navy); white-space: nowrap; }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--blue); }
th[data-sort]::after { content: " ↕"; opacity: .45; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: var(--soft); }
.scroll { overflow-x: auto; }

/* ---------- "show all" capping */
table.capped tbody tr:nth-child(n+9), ul.capped > li:nth-child(n+6), ol.capped > li:nth-child(n+7), .grid.capped > :nth-child(n+10) { display: none; }
.more { display: block; margin: 14px auto 0; background: #fff; border: 1px solid var(--line); color: var(--blue); padding: 8px 20px; font: 14px var(--sans); cursor: pointer; border-radius: 20px; }
.more:hover { border-color: var(--blue); background: #eef2ff; }

/* ---------- forms */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=search], input[type=tel], select, textarea { width: 100%; border: 1px solid #c9cfd6; padding: 10px 12px; background: #fff; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: 10px 20px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.btn:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--soft); color: var(--blue); border-color: var(--blue); }
.btn.sm { padding: 6px 13px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); padding: 6px 14px; font-size: 14px; color: var(--ink); background: #fff; cursor: pointer; border-radius: 20px; }
.chip:hover, .chip.on { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip.on { background: #eef2ff; font-weight: 600; }
.flash { border-left: 3px solid var(--good); background: #f1faf1; padding: 14px 18px; margin-bottom: 20px; }
.flash.error { border-color: var(--critical); background: #fdf3f3; }

/* ---------- lists */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-weight: 600; font-size: 15px; }
.feed .m { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.feed.cap { max-height: 520px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 400 16px var(--serif); flex: none; }
.person { display: flex; gap: 14px; align-items: flex-start; }

/* ---------- map: the state is tall, so the map is tall */
.map { height: clamp(680px, 88vh, 980px); border: 1px solid var(--line); background: #fff; position: relative; z-index: 0; }
.map.sm { height: 560px; }
.mapbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mapbar select { width: auto; min-width: 300px; }
.mapbar label { margin: 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; font: 13px var(--sans); }
.legend b { font-weight: 600; }
.legend .rg { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.legend .sw { display: inline-flex; width: 170px; }
.legend .sw i { flex: 1; height: 12px; }
.dlabel { pointer-events: none; }
.dlabel span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 600 12px var(--sans); color: var(--navy);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff; }
.mk { display: grid; place-items: center; width: 24px; height: 24px; font: 700 12px var(--sans); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.mk.round { border-radius: 50%; }
.mk.diamond { transform: rotate(45deg); } .mk.diamond span { transform: rotate(-45deg); }
.leaflet-popup-content-wrapper { border-radius: 0; }
.leaflet-popup-content { font: 14px/1.5 var(--sans); margin: 14px 16px; }
.leaflet-popup-content h4 { font: 400 18px var(--serif); margin: 0 0 4px; color: var(--navy); }
.leaflet-tooltip { font: 13.5px var(--sans); padding: 6px 10px; }
.leaflet-container { font-family: var(--sans); background: #fff; }
.basemap { filter: grayscale(1) contrast(.9) brightness(1.08); opacity: .45; }

/* ---------- map motion */
path.leaflet-interactive { transition: fill .5s ease, fill-opacity .2s ease, stroke .15s ease, stroke-width .15s ease; cursor: pointer; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
path.reveal { animation: reveal .55s ease both; }
.mapinfo { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); padding: 10px 14px; min-width: 190px; display: grid; gap: 1px; font: 13px var(--sans);
  box-shadow: 0 4px 16px rgba(5, 28, 44, .10); transition: opacity .2s; }
.mapinfo b { font: 400 17px var(--serif); color: var(--navy); }
.mapinfo .big { font: 400 26px/1.1 var(--serif); color: var(--navy); }
.mapinfo .big small { font: 13px var(--sans); color: var(--ink-2); }
.mapreset { width: 34px; height: 34px; background: #fff; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--navy); }
.mapreset:hover { background: var(--soft); color: var(--blue); }
@keyframes pulse-serious { 0% { box-shadow: 0 0 0 0 rgba(236, 131, 90, .65); } 100% { box-shadow: 0 0 0 14px rgba(236, 131, 90, 0); } }
@keyframes pulse-critical { 0% { box-shadow: 0 0 0 0 rgba(208, 59, 59, .7); } 100% { box-shadow: 0 0 0 16px rgba(208, 59, 59, 0); } }
.mk.pulse.serious { animation: pulse-serious 1.8s ease-out infinite; }
.mk.pulse.critical { animation: pulse-critical 1.3s ease-out infinite; }
.leaflet-marker-icon { transition: transform .15s ease; }
.leaflet-marker-icon:hover .mk { transform: scale(1.18); }
.mk { transition: transform .15s ease; }
.leaflet-popup { animation: reveal .25s ease both; }
/* page motion: panels and cards ease in */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabbed .section:not(.off) { animation: rise .3s ease both; }
.tile, .card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.tile:hover, .card.link:hover { transform: translateY(-2px); }
.meter i { transition: width .8s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- actions */
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
td.acts { margin: 0; white-space: nowrap; }
.decide { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 30px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.decide b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--soft); color: var(--ink-2); font-weight: 600; }
.decide.hot { border-color: var(--critical); color: var(--ink); }
.decide.hot b { background: var(--critical); color: #fff; }
.decide:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
dialog#actDlg { border: 0; padding: 0; width: min(640px, 94vw); box-shadow: 0 24px 80px rgba(5, 28, 44, .35); }
dialog#actDlg::backdrop { background: rgba(5, 28, 44, .45); }
dialog#actDlg form { padding: 28px 30px; }
dialog#actDlg[open] { animation: rise .2s ease both; }
.actTitle { font: 400 22px var(--serif) !important; color: var(--navy); border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 6px 0 10px !important; }
#toast { position: fixed; left: 28px; bottom: 28px; z-index: 1300; background: var(--navy); color: #fff; padding: 14px 20px; font-size: 14.5px; max-width: min(520px, 90vw);
  box-shadow: 0 10px 30px rgba(5, 28, 44, .3); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
#toast.on { opacity: 1; transform: none; pointer-events: auto; }
#toast a { color: #9db7ff; }
.todo { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.todo > li { counter-increment: p; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.todo > li::before { content: counter(p); font: 400 28px var(--serif); color: var(--navy); border-left: 4px solid var(--tone, var(--line)); padding-left: 10px; }
.todo .t { font-weight: 600; font-size: 16.5px; }
.todo .m { font-size: 14px; color: var(--muted); margin-top: 2px; }
.todo .acts { margin: 0; justify-content: flex-end; }
@media (max-width: 760px) { .todo > li { grid-template-columns: 36px minmax(0, 1fr); } .todo .acts { grid-column: 2; justify-content: flex-start; } .decide { display: none; } }

/* ---------- charts */
.chart { position: relative; height: 300px; }
.chart.tall { height: 640px; }
.chart.short { height: 210px; }

/* ---------- agent */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 1200; box-shadow: 0 8px 24px rgba(5, 28, 44, .25); padding: 13px 22px; border-radius: 30px; }
.drawer { position: fixed; right: 0; top: 60px; bottom: 0; width: min(480px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(5, 28, 44, .12); z-index: 1150; display: none; flex-direction: column; }
.drawer.open { display: flex; }
.drawer header { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer .body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 22px; }
.answer { font-size: 15px; }
.answer h1, .answer h2, .answer h3 { font: 600 15.5px var(--sans); margin: 16px 0 6px; color: var(--navy); }
.answer ul, .answer ol { padding-left: 20px; margin: 6px 0 10px; }
.answer table { font-size: 13.5px; margin: 8px 0; }
.trace { margin: 12px 0; border-left: 2px solid var(--line); padding-left: 12px; font-size: 13px; color: var(--ink-2); }
.trace div { padding: 2px 0; }
.trace code { background: var(--soft); padding: 1px 5px; font-size: 12px; }
.q { background: var(--soft); padding: 12px 16px; margin: 14px 0 10px; font-size: 14.5px; border-left: 3px solid var(--navy); }
.thinking { color: var(--muted); font-style: italic; }
.thinking::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.steps li { border-top: 3px solid var(--line); padding: 10px 12px 0 0; font-size: 13.5px; color: var(--muted); }
.steps li.done { border-top-color: var(--blue); color: var(--ink); font-weight: 600; }
.quote { font: 400 18px/1.5 var(--serif); color: var(--navy); }
.reply { border-left: 3px solid var(--blue); padding: 10px 16px; margin-top: 12px; background: var(--soft); font-size: 14.5px; }

@media (max-width: 1100px) {
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-main { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 16px; padding: 0 16px; }
  .brand span { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .top { height: auto; flex-wrap: wrap; padding: 8px 16px 0; gap: 6px 12px; }
  .brand { flex: 1; }
  .primary { order: 3; flex-basis: 100%; }
  .primary a { padding: 10px 12px; }
  .subnav .wrap, main { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 24px; }
  .tabs { top: 0; position: static; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 26px; }
  .map, .map.sm { height: 520px; }
  .dlabel span { font-size: 10px; }
  .steps { grid-auto-flow: row; }
  .drawer { top: 0; }
}

/* ---------- CM View: action list beside the day's summary */
.cmtop { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: clamp(28px, 3vw, 64px); align-items: start; }
.cmtop .exec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; position: sticky; top: 76px; }
@media (min-width: 1700px) { .cmtop .exec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .cmtop { grid-template-columns: minmax(0, 1fr); } .cmtop .exec { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cmtop .exec { grid-template-columns: minmax(0, 1fr); } }

.section > h2[hidden] { display: none; }

/* ---------- dashboard */
.band { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 34px 0 14px; padding-top: 14px; border-top: 2px solid var(--navy); }
.band:first-of-type { margin-top: 8px; }
.real, .sample { display: inline-block; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.real { color: #0a6b0a; background: #e8f6e8; }
.sample { color: #7a4b00; background: repeating-linear-gradient(135deg, #fff4d6, #fff4d6 6px, #ffe9b0 6px, #ffe9b0 12px); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--line); border-top: 4px solid var(--good); padding: 16px 18px 14px; background: #fff; }
.kpi.bad { border-top-color: var(--critical); }
.kpi .k { font-size: 13px; color: var(--ink-2); min-height: 38px; }
.kpi .v { font: 400 44px/1 var(--serif); color: var(--navy); margin: 4px 0 12px; }
.kpi .v small { font: 16px var(--sans); color: var(--ink-2); margin-left: 2px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 5px; }
.cmp span { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; }
.cmp i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.cmp.in i { background: #aab2bb; }
.cmp em { font: 12px var(--sans); color: var(--ink-2); font-style: normal; white-space: nowrap; }
.chg { margin-top: 12px; font-size: 13px; font-weight: 600; }
.chg.good { color: #0a6b0a; } .chg.poor { color: #b02a2a; }
.dash3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(300px, 1fr); gap: 20px; margin-top: 20px; }
.dash2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.opsrow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); gap: 20px; }
.hint { font-size: 13.5px; color: var(--muted); margin: -8px 0 10px; }
.srcline { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.needs { list-style: none; margin: 0; padding: 0; }
.needs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0 11px 12px; border-left: 4px solid var(--tone, var(--line)); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.needs li:last-child { border-bottom: 0; }
.needs b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.needs small { display: block; color: var(--muted); margin-top: 2px; }
.needs .pill { font-size: 11.5px; }
.count { float: right; font: 13px var(--sans); color: var(--blue); }
span.count { color: var(--ink-2); }
.scorebar { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
.scorebar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .6s ease; }
.lagrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lagrow small { color: var(--muted); }
.t-good { --tone: var(--good); } .t-critical { --tone: var(--critical); } .t-warning { --tone: var(--warning); } .t-info { --tone: var(--info); } .t-serious { --tone: var(--serious); }
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .kpis, .dash2, .dash3, .opsrow { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- drill-down */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin: -8px 0 18px; color: var(--ink-2); }
.crumbs a { color: var(--blue); } .crumbs span { color: var(--muted); } .crumbs b { color: var(--navy); font-weight: 600; }
.crumbs em { margin-left: 10px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--soft); padding: 2px 9px; border-radius: 20px; font-style: normal; }
.go { cursor: pointer; }
tr.go:hover td, li.go:hover { background: #eef2ff; }
li.go { transition: background .12s ease; }
a.kpi, a.tile.go { color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.kpi:hover, a.tile.go:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(5, 28, 44, .12); }
a.kpi::after { content: "Drill in ›"; display: block; margin-top: 10px; font-size: 12.5px; color: var(--blue); opacity: 0; transition: opacity .15s; }
a.kpi:hover::after { opacity: 1; }
canvas { outline: none; }
/* ---------- assignment board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; align-items: start; }
.board .col { background: var(--soft); border-top: 4px solid var(--tone); padding: 14px; min-height: 140px; }
.board h3 { font: 600 14px var(--sans); display: flex; justify-content: space-between; margin-bottom: 12px; }
.board h3 span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 9px; font-weight: 600; }
.acard { display: block; background: #fff; border: 1px solid var(--line); padding: 13px 14px; margin-bottom: 10px; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.acard:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5, 28, 44, .1); }
.acard b { display: block; font-size: 14.5px; line-height: 1.35; }
.acard .who { display: block; font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.acard .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .board { grid-template-columns: minmax(0, 1fr); } }

/* ---------- full CM landing page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.jump a { border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; font-size: 13.5px; color: var(--ink); background: #fff; }
.jump a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.band, .exec4 { scroll-margin-top: 130px; }
.exec4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.exec4 > div { border-top: 4px solid var(--tone); background: var(--soft); padding: 14px 16px 10px; }
.exec4 h3 { font: 600 15px var(--sans); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.exec4 h3::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--tone); flex: none; }
.exec4 ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.exec4 li { padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.exec4 li a { color: var(--ink); } .exec4 li a:hover { color: var(--blue); }
ol.needs.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
ol.needs.two li:nth-last-child(-n+2) { border-bottom: 0; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; clear: both; padding-top: 6px; }
.quad a { border-top: 3px solid var(--tone, var(--blue)); padding-top: 8px; color: inherit; }
.quad a:hover { text-decoration: none; } .quad a:hover b { color: var(--blue); }
.quad b { display: block; font: 400 32px/1.1 var(--serif); color: var(--navy); }
.quad small { color: var(--muted); }
.strip24 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.strip24 a { border: 1px solid var(--line); background: #fff; padding: 12px 14px; color: inherit; display: block; transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.strip24 a:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5, 28, 44, .1); }
.strip24 small { display: block; font-size: 12.5px; } .strip24 small:first-child { font-weight: 600; color: var(--ink-2); }
.strip24 b { display: block; font: 400 22px var(--serif); color: var(--navy); margin: 4px 0 6px; }
.strip24 .bar { display: block; height: 5px; background: #eef1f4; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.strip24 .bar i { display: block; height: 100%; background: var(--blue); }
.strip24 .bar.good i { background: var(--good); } .strip24 .bar.warn i { background: var(--warning); } .strip24 .bar.bad i { background: var(--critical); }
@media (max-width: 1400px) { .strip24 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .exec4, .strip24 { grid-template-columns: repeat(2, minmax(0, 1fr)); } ol.needs.two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- political pulse */
.polbar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; margin: 4px 0 12px; gap: 2px; }
.polbar i, .polbar a { display: block; height: 100%; min-width: 2px; }
.polbar.tall { height: 46px; }
.polbar.tall a { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; transition: filter .12s; }
.polbar.tall a:hover { filter: brightness(1.15); text-decoration: none; }
.pollegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; }
.prob { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 13px; text-align: center; }

/* ---------- campaign & personas */
.persona { align-self: center; border: 1px solid var(--line); background: #fff; padding: 6px 8px; font: 13px var(--sans); color: var(--ink); max-width: 190px; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.inline { display: inline; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.checks span { font-size: 12.5px; padding: 2px 9px; border-radius: 12px; border: 1px solid var(--line); }
.checks span.ok { background: #eaf7ea; border-color: #bfe3bf; color: #0b6b0b; }
.checks span.no { background: #fdeeee; border-color: #f2c4c4; color: #a61b1b; }
.verdict { display: inline-block; padding: 3px 12px; border-radius: 14px; font-weight: 600; font-size: 13px; color: #fff; }
.verdict.clear { background: var(--good); } .verdict.advisory { background: var(--info); } .verdict.review { background: var(--warning); color: #1a1f26; } .verdict.block { background: var(--critical); }
.msgbody { white-space: pre-wrap; font-size: 16px; line-height: 1.55; background: var(--soft); padding: 14px 16px; border-left: 4px solid var(--line); }
.partyline { font-size: 12.5px; color: var(--ink-2); background: #fff8e6; border: 1px solid #f1dfae; padding: 6px 12px; border-radius: 4px; display: inline-block; margin: 0 0 14px; }

/* ---------- operating-system brief pieces */
.lvl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.lvl a, .lvl button { border: 1px solid var(--line); background: #fff; padding: 7px 18px; font: 14px var(--sans); color: var(--ink); cursor: pointer; border-radius: 4px; }
.lvl a.on, .lvl button.on { background: var(--navy); color: #fff; border-color: var(--navy); } .lvl a:hover { text-decoration: none; }
.lvl select { padding: 7px 10px; border: 1px solid var(--blue); border-radius: 4px; font: 14px var(--sans); min-width: 220px; }
.kpis.head6 { margin-bottom: 14px; } .kpis.head6 .k { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kpis.head6 .k span { font-size: 10px; padding: 1px 7px; }
.chain8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; }
.chain8 a { background: var(--soft); border-top: 3px solid var(--blue); padding: 8px 10px; color: inherit; position: relative; }
.chain8 a:hover { background: #eef2ff; text-decoration: none; }
.chain8 b { display: block; font-size: 13px; line-height: 1.25; } .chain8 small { color: var(--muted); font-size: 12px; }
.quick6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.quick6 a { border: 1px solid var(--line); background: #fff; padding: 14px; color: inherit; display: flex; gap: 12px; align-items: center; transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.quick6 a:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5, 28, 44, .1); }
.quick6 span { flex: none; min-width: 42px; height: 42px; border-radius: 21px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; padding: 0 8px; }
.quick6 b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.secprog td, .secprog th { padding: 7px 8px; font-size: 13.5px; }
.meter i.good { background: var(--good); } .meter i.warn { background: var(--warning); } .meter i.bad { background: var(--critical); }
table.lines td { font-size: 13.5px; vertical-align: top; } table.lines td:first-child { white-space: nowrap; }
@media (max-width: 1400px) { .chain8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .quick6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .chain8, .quick6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- State Emblem, official look, whole-state grid */
:root { --gold: #b08d3c; --gold-soft: #f6efdc; --saffron: #ff9933; --india-green: #138808; }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #ffffff 33.3% 66.6%, var(--india-green) 66.6%); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.brand .emblem { grid-row: 1 / span 2; height: 40px; width: auto; }
.cmhero { position: relative; margin: -6px 0 22px; padding: 26px 32px; background: linear-gradient(120deg, #051c2c 0%, #0b2e4a 60%, #12395a 100%); color: #fff;
  border-bottom: 3px solid var(--gold); box-shadow: 0 14px 34px rgba(5, 28, 44, .18); display: flex; align-items: center; gap: 26px; overflow: hidden; }
.cmhero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(176, 141, 60, .35); box-shadow: 0 0 0 30px rgba(176, 141, 60, .06), 0 0 0 60px rgba(176, 141, 60, .04); pointer-events: none; }
.cmhero .seal { flex: none; width: 104px; height: 104px; border-radius: 50%; background: #fbf8f0; border: 3px solid var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(176, 141, 60, .25); }
.cmhero .seal img { height: 80px; width: auto; }
.cmhero .eyebrow { color: #e6c97a; letter-spacing: .16em; }
.cmhero h1 { color: #fff; font-size: 40px; margin: 4px 0 2px; }
.cmhero .motto { font: 500 14px var(--sans); color: #d9e2ea; letter-spacing: .03em; }
.cmhero .motto b { color: #e6c97a; font-weight: 600; }
.cmhero .acts { margin-left: auto; position: relative; z-index: 1; }
.cmhero .btn { background: var(--gold); border-color: var(--gold); color: #051c2c; font-weight: 600; }
.cmhero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cmhero .btn:hover { filter: brightness(1.08); }
.cmpage .band { border-top: 2px solid var(--navy); position: relative; }
.cmpage .band::before { content: ""; position: absolute; left: 0; top: -2px; width: 90px; height: 2px; background: var(--gold); }
.cmpage .band h2 { font-family: var(--serif); letter-spacing: .01em; }
.cmpage .kpi, .cmpage .card, .cmpage .all12 a { box-shadow: 0 1px 0 rgba(5, 28, 44, .04), 0 6px 18px rgba(5, 28, 44, .05); }
.cmpage .lvl a.on, .cmpage .lvl button.on { background: var(--navy); border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.cmpage .quick6 span { background: linear-gradient(135deg, #051c2c, #12395a); box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 3px var(--gold); }
.cmpage .chain8 a { border-top-color: var(--gold); }
.all12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.all12 a { border: 1px solid var(--line); border-top: 4px solid var(--tone, var(--blue)); background: #fff; padding: 14px 16px; color: inherit; display: block; transition: transform .12s, box-shadow .12s; }
.all12 a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 28, 44, .12); }
.all12 h3 { font: 600 15px var(--sans); margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.all12 h3 span { font-size: 10px; }
.all12 dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.all12 dt { color: var(--ink-2); } .all12 dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 1300px) { .all12 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .all12 { grid-template-columns: minmax(0, 1fr); } .cmhero { flex-wrap: wrap; padding: 20px 16px; } .cmhero .seal { width: 76px; height: 76px; } .cmhero .seal img { height: 58px; } .cmhero h1 { font-size: 28px; } }

/* ---------- national flag, State Emblem and Chhattisgarh emblem */
.brand { grid-template-columns: auto 1fr; }
.brand .marks { grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; padding-right: 4px; border-right: 1px solid var(--line); margin-right: 2px; }
.brand .marks .emblem { height: 40px; width: auto; grid-row: auto; }
.brand .marks .flag { height: 22px; width: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.brand .marks .cgseal { height: 38px; width: 38px; }
.cmhero .seals { display: flex; gap: 14px; flex: none; }
.cmhero .seal.cg img { height: 88px; width: 88px; }
.cmhero .motto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmhero .flagi { height: 18px; width: auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
@media (max-width: 1100px) { .brand .marks .flag, .brand .marks .cgseal { display: none; } }
@media (max-width: 800px) { .cmhero .seal.cg { display: none; } }

/* ---------- header fit: national marks only when there is room */
@media (max-width: 1750px) { .brand .marks .flag, .brand .marks .cgseal { display: none; } .brand .marks { border-right: 0; padding-right: 0; } }
.kpis.head6 .v { font-size: clamp(22px, 1.7vw, 30px) !important; white-space: nowrap; }
@media (max-width: 1650px) { .top { gap: 12px; } .primary { gap: 0; } .primary a { padding: 0 8px; font-size: 14.5px; } .persona { max-width: 150px; } .decide { white-space: nowrap; } }
@media (max-width: 1350px) { .brand b { font-size: 17px; } .persona { max-width: 120px; } }

/* ---------- maps: clean ground, focus panel beside */
.map, .leaflet-container { background: #f4f6f9; }
.leaflet-pane path.stateline { filter: drop-shadow(0 6px 10px rgba(5, 28, 44, .22)); }
.maptog { background: #fff; border: 1px solid var(--line); padding: 5px 12px; font: 600 12px var(--sans); color: var(--ink-2); cursor: pointer; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.maptog.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.dlabel span { text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7) !important; }
.mapstage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 18px rgba(5,28,44,.05); }
.mapstage .map { border: 0; height: 760px !important; }
.mapstage .legend { border: 0; border-top: 1px solid var(--line); }
.mapstage .mapcol { min-width: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.mapstage .mapbar { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.fpanel { height: 820px; overflow-y: auto; padding: 22px 24px; position: relative; scrollbar-width: thin; }
.fpanel .fp-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.fpanel h3 { font: 400 28px/1.15 var(--serif); color: var(--navy); margin: 2px 0 4px; }
.fpanel .fp-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.fp-ring { flex: none; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--gold, #b08d3c) calc(var(--p) * 1%), #e9edf1 0); }
.fp-ring b { font: 400 26px/1 var(--serif); color: var(--navy); } .fp-ring small { font-size: 11px; color: var(--muted); }
.fp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.fp-kpis > div { border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 9px 11px; background: #fff; }
.fp-kpis > div.good { border-top-color: var(--good); } .fp-kpis > div.bad { border-top-color: var(--critical); } .fp-kpis > div.warn { border-top-color: var(--warning); }
.fp-kpis small { display: block; font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.fp-kpis b { display: block; font: 400 22px/1.2 var(--serif); color: var(--navy); margin: 4px 0 2px; }
.fp-kpis b.txt { font-size: 16px; line-height: 1.25; }
.fp-kpis span { font-size: 12px; color: var(--muted); }
.fp-acts { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.fpanel section { margin-top: 18px; }
.fpanel section h4 { font: 600 14px var(--sans); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.fpanel section h4 span { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold, #b08d3c); }
.fp-empty h3 { margin-top: 0; }
.fp-skel i { display: block; height: 18px; margin: 14px 0; background: linear-gradient(90deg, #eef1f4, #f8f9fb, #eef1f4); background-size: 200% 100%; animation: skel 1.1s linear infinite; }
.fp-skel i:first-child { height: 34px; width: 60%; }
@keyframes skel { to { background-position: -200% 0; } }
@media (max-width: 1100px) { .mapstage { grid-template-columns: minmax(0, 1fr); } .mapstage .mapcol { border-right: 0; border-bottom: 1px solid var(--line); } .fpanel { height: auto; max-height: none; } .mapstage .map { height: 600px !important; } }

/* ---------- the ten-second story: modern, calm, readable from across the room */
.cmpage { --r: 14px; }
.cmpage .card, .cmpage .kpi, .cmpage .tile, .cmpage .all12 a, .cmpage .mapstage, .cmpage .exec4 > div { border-radius: var(--r); }
.cmpage .mapstage { overflow: hidden; }
.cmhero { border-radius: 18px; }
.story { margin: 4px 0 10px; }
.st-head { font: 400 clamp(20px, 1.6vw, 27px)/1.45 var(--serif); color: var(--navy); margin: 6px 0 20px; max-width: 1300px; }
.st-head span { display: inline-block; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #b08d3c; padding: 4px 10px; border-radius: 20px; margin-right: 12px; vertical-align: 4px; }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st-card { position: relative; display: block; padding: 20px 22px 18px; border-radius: 16px; background: #fff; color: inherit; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(5,28,44,.04), 0 10px 30px rgba(5,28,44,.07); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.st-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--blue); }
.st-card.good::before { background: var(--good); } .st-card.warn::before { background: var(--warning); } .st-card.bad::before { background: var(--critical); }
.st-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(5,28,44,.12); }
.st-card small { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.st-card b { display: block; font: 400 clamp(38px, 3.2vw, 54px)/1.05 var(--serif); color: var(--navy); margin: 8px 0 8px; }
.st-card > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.4; display: block; }
.st-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: #eef1f4; margin: 0 0 10px; gap: 2px; }
.st-bar.thin { height: 5px; margin: 8px 0 6px; }
.st-bar i.good { background: var(--good); } .st-bar i.info { background: var(--blue); } .st-bar i.bad { background: var(--critical); }
.st-h { font: 400 26px var(--serif); color: var(--navy); margin: 34px 0 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.st-h small { font: 400 14px var(--sans); color: var(--muted); }
.st-live { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.st-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(5,28,44,.05); overflow: hidden; }
.st-panel header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfcfd, #f5f7fa); }
.st-panel h3 { font: 600 15px var(--sans); margin: 0; display: flex; align-items: center; gap: 8px; }
.st-panel header form { margin: 0; }
.lnk { background: none; border: 0; color: var(--blue); font: 600 13px var(--sans); cursor: pointer; padding: 0; }
.chips2 { font-size: 13px; color: var(--ink-2); } .chips2 b { color: var(--navy); } .red { color: var(--critical) !important; }
.dot.live { width: 9px; height: 9px; border-radius: 50%; background: #e3342f; box-shadow: 0 0 0 0 rgba(227,52,47,.6); animation: livepulse 1.6s infinite; display: inline-block; margin: 0; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(227,52,47,0); } 100% { box-shadow: 0 0 0 0 rgba(227,52,47,0); } }
.st-panel ul { list-style: none; margin: 0; padding: 4px 18px; flex: 1; }
.st-panel li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f4; align-items: start; }
.st-panel li:last-child { border-bottom: 0; }
.st-panel li a { color: var(--ink); font-size: 14px; line-height: 1.35; font-weight: 500; }
.st-panel li a:hover { color: var(--blue); }
.st-panel li small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tone { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: #b7c0ca; }
.tone.negative { background: var(--critical); } .tone.positive { background: var(--good); } .tone.neutral { background: #8c9bab; }
.st-panel footer { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.st-bars { padding: 8px 18px; flex: 1; }
.st-bars .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px auto auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; }
.st-bars .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.st-bars .trk { height: 9px; background: #eef1f4; border-radius: 6px; overflow: hidden; }
.st-bars .trk i { display: block; height: 100%; border-radius: 6px; background: var(--good); }
.st-bars .warn .trk i { background: var(--warning); } .st-bars .bad .trk i { background: var(--critical); }
.st-bars .bad { background: #fff5f5; margin: 0 -8px; padding: 5px 8px; border-radius: 8px; }
.st-bars small { color: var(--muted); white-space: nowrap; } .st-bars .bad small { color: var(--critical); font-weight: 600; }
.st-bars .btn.sm { padding: 3px 10px; font-size: 12px; }
.st-win { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-w { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(5,28,44,.05); }
.st-w .rank { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--serif); color: #fff; background: linear-gradient(135deg, #051c2c, #12395a); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b08d3c; }
.st-w b { font-size: 15.5px; color: var(--navy); } .st-w p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.st-w .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.st-w em { font: 400 24px var(--serif); color: var(--navy); font-style: normal; white-space: nowrap; }
.st-prom { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.st-pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(5,28,44,.04); }
.st-pillar header { display: flex; justify-content: space-between; font-size: 14px; } .st-pillar header span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-pillar ul { list-style: none; margin: 4px 0 0; padding: 0; }
.st-pillar li { display: grid; grid-template-columns: 86px minmax(0, 1fr) 40px; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid #eef1f4; }
.st-pillar li b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.35; } .st-pillar li small { font-size: 12px; color: var(--muted); }
.st-pillar li em { font-style: normal; font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.chip3 { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 10px; text-align: center; }
.st-pillar li.good .chip3 { background: #e6f6e6; color: #0b6b0b; } .st-pillar li.info .chip3 { background: #e8efff; color: #1d47c9; } .st-pillar li.critical .chip3 { background: #fdeaea; color: #a61b1b; }
.st-divider { display: flex; align-items: center; gap: 14px; margin: 46px 0 14px; }
.st-divider span { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.st-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #b08d3c, transparent); order: 3; }
.st-divider small { color: var(--muted); order: 2; }
@media (max-width: 1350px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-live { grid-template-columns: 1fr 1fr; } .st-live > :last-child { grid-column: 1 / -1; } .st-win { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .st-cards, .st-live, .st-win { grid-template-columns: minmax(0, 1fr); } .st-bars .row { grid-template-columns: 110px minmax(0, 1fr) 40px; } .st-bars .row small, .st-bars .row .btn { display: none; } }
.st-prom { align-items: start; }
.chain8[hidden] { display: none !important; }

/* ---------- live ticker */
.ticker { display: flex; align-items: center; gap: 0; margin: -6px 0 22px; background: #051c2c; color: #e9eef3; border-radius: 12px; overflow: hidden; height: 42px; box-shadow: 0 6px 16px rgba(5,28,44,.15); }
.tk-tag { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; background: #b08d3c; color: #051c2c; font: 800 12px var(--sans); letter-spacing: .14em; }
.tk-view { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tk-track { display: inline-flex; white-space: nowrap; animation: tk 140s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; font-size: 13.5px; color: #e9eef3; border-right: 1px solid rgba(255,255,255,.12); }
a.tk-item:hover { color: #fff; text-decoration: underline; }
.tk-item b { color: #e6c97a; font-weight: 600; }
.tk-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8c9bab; flex: none; }
.tk-item.neg::before { background: #ff6b6b; } .tk-item.pos::before { background: #4cd964; } .tk-item.kpi::before { background: #e6c97a; }
.tk-sep { display: inline-flex; align-items: center; padding: 0 14px; font: 800 11px var(--sans); letter-spacing: .14em; color: #051c2c; background: #e6c97a; margin: 0 6px; border-radius: 4px; height: 22px; }
.tk-at { flex: none; padding: 0 14px; font-size: 12px; color: #9fb1c2; }
@media (prefers-reduced-motion: reduce) { .tk-track { animation-duration: 400s; } }
/* ---------- heatmaps */
.heatgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.heat { padding: 10px 14px 14px; overflow-x: auto; }
.heat table { border-collapse: separate; border-spacing: 3px; width: 100%; }
.heat th { font: 600 12px var(--sans); color: var(--ink-2); text-align: left; white-space: nowrap; padding: 4px 6px; }
.heat thead th { height: 92px; vertical-align: bottom; } .heat thead th span { display: inline-block; transform: rotate(-40deg); transform-origin: left bottom; white-space: nowrap; margin-left: 12px; }
.heat td { min-width: 38px; height: 32px; text-align: center; font: 600 12px var(--sans); color: var(--navy); border-radius: 5px; }
.heat td.nwa { background: #f2f4f7; }
@media (max-width: 1100px) { .heatgrid { grid-template-columns: minmax(0, 1fr); } }
/* heatmap: isolate from the global table styles */
.heat table { table-layout: fixed; border-spacing: 3px; }
.heat th, .heat td { border: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.heat tbody th { width: 150px; font: 600 12.5px var(--sans) !important; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; padding: 0 6px !important; }
.heat thead th { height: 74px; padding: 0 !important; position: relative; }
.heat thead th:first-child { width: 150px; }
.heat thead th span { position: absolute; left: 50%; bottom: 6px; transform: rotate(-35deg); transform-origin: left bottom; font: 600 11.5px var(--sans); color: var(--ink-2); margin: 0; }
.heat td { padding: 0 !important; height: 30px; }

/* ---------- CM tabs */
.cmtabs { position: sticky; top: 60px; z-index: 950; display: flex; align-items: center; gap: 4px; margin: 0 0 22px; padding: 6px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(5,28,44,.08); flex-wrap: wrap; }
.cmtabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 16px; border-radius: 10px; font: 600 14.5px var(--sans); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.cmtabs button:hover { background: var(--soft); color: var(--navy); }
.cmtabs button.on { background: linear-gradient(135deg, #051c2c, #12395a); color: #fff; box-shadow: inset 0 -2px 0 #b08d3c; }
.cmtabs-lvl { margin-left: auto; } .cmtabs-lvl .lvl { margin: 0; } .cmtabs-lvl .lvl a, .cmtabs-lvl .lvl button { padding: 6px 12px; font-size: 13px; }
.panes { position: relative; }
.pane { animation: none; }
.pane:not(.on) { position: absolute; left: -400vw; top: 0; width: 100%; visibility: hidden; pointer-events: none; }
.pane.on { animation: paneIn .35s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pane > .band:first-child, .pane > h2.st-h:first-child { margin-top: 4px; }
/* ---------- live briefing */
.briefing { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(5,28,44,.08); padding: 18px 22px 8px; margin-bottom: 20px; position: relative; overflow: hidden; }
.briefing::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #ff9933, #b08d3c, #138808); }
.briefing header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.briefing header h2 { font: 400 24px var(--serif); color: var(--navy); margin: 0; display: flex; align-items: center; gap: 10px; }
.br-live { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.br-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.br-lead { background: linear-gradient(135deg, #051c2c, #0f3150); color: #fff; border-radius: 14px; padding: 18px 20px; }
.br-lead h2 { font: 400 clamp(20px, 1.6vw, 26px)/1.3 var(--serif); color: #fff; margin: 8px 0 6px; }
.br-lead p { color: #cfdbe6; margin: 0; font-size: 14.5px; line-height: 1.5; }
.br-tag { font: 800 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; background: #b08d3c; color: #051c2c; padding: 3px 10px; border-radius: 12px; }
.br-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.br-pulse > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: linear-gradient(180deg, #fff, #f8fafc); }
.br-pulse small { display: block; font-size: 11.5px; color: var(--ink-2); }
.br-pulse b { display: block; font: 400 26px/1.15 var(--serif); color: var(--navy); }
.br-pulse span { font: 600 12px var(--sans); } .br-pulse span.bad { color: var(--critical); } .br-pulse span.good { color: var(--good); }
.br-list { list-style: none; margin: 14px 0 6px; padding: 0; counter-reset: br; }
.br-list li { counter-increment: br; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid #eef1f4; }
.br-list li::before { content: counter(br); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sans); color: #fff; background: var(--tone, var(--blue)); }
.br-list b { color: var(--navy); font-size: 15.5px; } .br-list p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.br-list .br-do { color: var(--navy); font-weight: 600; }
.br-act { display: flex; gap: 6px; align-items: center; } .br-act form { margin: 0; }
/* ---------- icons on story cards, traffic-light legend, top/bottom five */
.ic { flex: none; vertical-align: middle; }
.st-ic { position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2251ff, #12395a); box-shadow: 0 8px 18px rgba(34,81,255,.25); }
.st-card.good .st-ic { background: linear-gradient(135deg, #1baf5d, #0b7a3e); box-shadow: 0 8px 18px rgba(27,175,93,.25); }
.st-card.warn .st-ic { background: linear-gradient(135deg, #f6b73c, #d98a06); box-shadow: 0 8px 18px rgba(246,183,60,.3); }
.st-card.bad .st-ic { background: linear-gradient(135deg, #ef5a4c, #b72a1f); box-shadow: 0 8px 18px rgba(239,90,76,.3); }
.tl-legend { background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; display: grid; gap: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.tl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.tb5 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.tb5 h4 { font: 600 13.5px var(--sans); margin: 0 0 6px; display: flex; align-items: center; gap: 7px; } .tb5 h4 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tb5 ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.tb5 li { counter-increment: t; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef1f4; font-size: 14px; }
.tb5 li::before { content: counter(t); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--sans); color: #fff; background: #2fae63; }
.tb5 > div:last-child li::before { background: #e5574b; }
/* ---------- motion */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.st-bar i, .st-bars .trk i, .meter i, .scorebar i, .polbar a, .polbar i, .strip24 .bar i { transition: width 1s cubic-bezier(.2,.7,.2,1); }
table tbody tr { transition: background .15s; }
.st-card .st-ic { transition: transform .25s; } .st-card:hover .st-ic { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .pane.on { animation: none; } }
@media (max-width: 1100px) { .br-top { grid-template-columns: minmax(0, 1fr); } .cmtabs { top: 56px; } .cmtabs-lvl { display: none; } .tb5 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- less text: one-line notes that open on hover */
.cmpage .srcline, .cmpage .card > p.hint, .cmpage .band .hint, .cmpage .st-h small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; cursor: help; }
.cmpage .srcline:hover, .cmpage .card > p.hint:hover { white-space: normal; }
.cmpage .srcline { font-size: 11.5px; opacity: .8; }
.cmpage .band .hint { display: none; }
.br-list li { padding: 9px 4px; } .br-list p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-topact { display: flex; gap: 8px; margin: 2px 0 12px; } .br-topact form { margin: 0; }
.st-card > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- command centre */
.cmd { margin-bottom: 20px; }
.cmd header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.cmd header h2 { font: 400 24px var(--serif); color: var(--navy); margin: 0; display: flex; gap: 10px; align-items: center; }
.cmd-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cmd-b { position: relative; text-align: left; border: 0; border-radius: 16px; padding: 16px 16px 14px; cursor: pointer; color: #fff; overflow: hidden;
  background: var(--g); box-shadow: 0 10px 26px var(--sh); transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s; display: flex; flex-direction: column; gap: 4px; min-height: 132px; }
.cmd-b::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .4s; }
.cmd-b:hover { transform: translateY(-4px); box-shadow: 0 18px 36px var(--sh); } .cmd-b:hover::after { transform: scale(1.6); }
.cmd-b:active { transform: translateY(-1px) scale(.98); }
.cmd-b b { font: 600 16px var(--sans); line-height: 1.25; margin-top: auto; } .cmd-b small { font-size: 12.5px; opacity: .85; }
.cmd-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 8px; }
.cmd-b:hover .cmd-ic { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.cmd-badge { position: absolute; top: 12px; right: 12px; z-index: 1; background: #fff; color: #c0392b; font: 700 12px var(--sans); font-style: normal; padding: 3px 9px; border-radius: 12px; animation: livepulse 1.8s infinite; }
.c1 { --g: linear-gradient(135deg, #1d4ed8, #0b2a6f); --sh: rgba(29,78,216,.3); } .c2 { --g: linear-gradient(135deg, #0f9d6b, #075e41); --sh: rgba(15,157,107,.3); }
.c3 { --g: linear-gradient(135deg, #e0752b, #a94a0f); --sh: rgba(224,117,43,.3); } .c4 { --g: linear-gradient(135deg, #c2338b, #7c1557); --sh: rgba(194,51,139,.3); }
.c5 { --g: linear-gradient(135deg, #6d4bd8, #3a2389); --sh: rgba(109,75,216,.3); } .c6 { --g: linear-gradient(135deg, #b08d3c, #051c2c); --sh: rgba(176,141,60,.35); }
.cmd-dlg { border: 0; padding: 0; border-radius: 18px; width: min(720px, 94vw); box-shadow: 0 30px 80px rgba(5,28,44,.35); }
.cmd-dlg::backdrop { background: rgba(5,28,44,.45); backdrop-filter: blur(3px); }
.cmd-dlg[open] { animation: dlgIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.cmd-sheet header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; } .cmd-sheet h3 { font: 400 24px var(--serif); color: var(--navy); margin: 0; }
.cmd-sheet input { margin: 0 20px 10px; width: calc(100% - 40px); padding: 12px 14px; font-size: 15px; border-radius: 10px; }
.cmd-list { max-height: 60vh; overflow-y: auto; padding: 0 20px 18px; }
.cmd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eef1f4; animation: rowIn .3s ease both; border-radius: 8px; }
.cmd-row:hover { background: #f5f8ff; } .cmd-row b { display: block; color: var(--navy); } .cmd-row small { color: var(--muted); font-size: 12.5px; } .cmd-row span { display: flex; gap: 6px; flex: none; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }
@media (max-width: 1300px) { .cmd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cmd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---------- heatmaps: fit without scrolling, vivid */
.heat { overflow: hidden !important; padding: 12px 16px 16px; }
.heat table { table-layout: fixed; width: 100%; border-spacing: 4px; }
.heat thead th { height: auto !important; position: static !important; vertical-align: bottom; padding: 0 2px 6px !important; }
.heat thead th span { position: static !important; transform: none !important; display: block; white-space: normal !important; font: 600 11px/1.2 var(--sans) !important; color: var(--ink-2); text-align: center; word-break: break-word; }
.heat thead th:first-child, .heat tbody th { width: 128px !important; }
.heat td { height: 36px !important; border-radius: 8px !important; font: 700 13px var(--sans) !important; transition: transform .15s ease, box-shadow .15s ease; cursor: default; animation: cellIn .5s ease both; }
.heat td:hover { transform: scale(1.12); box-shadow: 0 6px 14px rgba(5,28,44,.25); position: relative; z-index: 2; }
.heat td.nwa { background: repeating-linear-gradient(135deg, #f3f5f8 0 6px, #eceff3 6px 12px) !important; }
@keyframes cellIn { from { opacity: 0; transform: scale(.6); } }

.cmd-b small { color: rgba(255,255,255,.88) !important; }
.br-lead .br-topact { margin: 14px 0 0; } .br-lead .btn { background: #b08d3c; border-color: #b08d3c; color: #051c2c; } .br-lead .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- voice */
.vmic { position: fixed; right: 26px; bottom: 92px; z-index: 1300; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 30% 30%, #2f6bff, #0b2a6f); box-shadow: 0 10px 26px rgba(11,42,111,.4), 0 0 0 4px #fff, 0 0 0 6px #b08d3c; transition: transform .15s; display: grid; place-items: center; }
.vmic:hover { transform: scale(1.07); }
.vmic.on { background: radial-gradient(circle at 30% 30%, #ff5a4e, #a3160c); animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #ff5a4e, 0 0 0 6px rgba(255,90,78,.5); } 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #ff5a4e, 0 0 0 26px rgba(255,90,78,0); } }
.vbar { position: fixed; left: 50%; bottom: 24px; z-index: 1350; width: min(760px, calc(100vw - 32px)); transform: translate(-50%, 30px); opacity: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .25s; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  background: rgba(5,28,44,.96); color: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(5,28,44,.45); border: 1px solid rgba(176,141,60,.5); backdrop-filter: blur(6px); }
.vbar.show { transform: translate(-50%, 0); opacity: 1; }
.vb-wave { height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.vb-wave i { width: 5px; height: 10px; border-radius: 3px; background: #e6c97a; }
.vbar[data-mode="listen"] .vb-wave i, .vbar.talking .vb-wave i { animation: wave .9s ease-in-out infinite; }
.vb-wave i:nth-child(2) { animation-delay: .1s !important; } .vb-wave i:nth-child(3) { animation-delay: .2s !important; } .vb-wave i:nth-child(4) { animation-delay: .3s !important; } .vb-wave i:nth-child(5) { animation-delay: .4s !important; }
.vbar[data-mode="think"] .vb-wave i { animation: think 1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 40px; } }
@keyframes think { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.vb-state { display: block; font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e6c97a; }
.vbar[data-mode="err"] .vb-state { color: #ff8a80; }
.vb-text { font: 400 20px/1.35 var(--serif); margin: 4px 0; min-height: 26px; }
.vb-ans { font-size: 14.5px; line-height: 1.55; color: #dbe6ef; max-height: 34vh; overflow-y: auto; } .vb-ans p { margin: 0 0 6px; } .vb-ans a { color: #9fc3ff; }
.vb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vb-chips button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; }
.vb-chips button:hover { background: rgba(255,255,255,.2); }
.vb-btns { display: flex; flex-direction: column; gap: 6px; } .vb-btns button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
@media (max-width: 700px) { .vmic { right: 16px; bottom: 84px; width: 52px; height: 52px; } .vbar { grid-template-columns: minmax(0, 1fr) auto; } .vb-wave { display: none; } }

/* hidden tabs keep their width (maps, charts) but no height, so the page only scrolls as far as the open tab */
.pane:not(.on) { height: 0 !important; overflow: hidden !important; }

/* ---------- AI synopsis */
.syn { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin: 0 0 16px; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, #fbf7ec, #fff 55%); border: 1px solid #ecdfbd; }
.syn h3 { font: 400 clamp(20px, 1.6vw, 25px)/1.3 var(--serif); color: var(--navy); margin: 10px 0 8px; min-height: 30px; }
.syn p { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; }
.syn-l { position: relative; } .syn-lang { position: absolute; right: 0; top: 0; }
.syn h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a6a1f; margin: 0 0 8px; }
.syn ol { list-style: none; margin: 0; padding: 0; counter-reset: so; }
.syn li { counter-increment: so; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid #efe5cc; }
.syn li::before { content: counter(so); width: 24px; height: 24px; border-radius: 50%; background: #b08d3c; color: #fff; display: grid; place-items: center; font: 700 12px var(--sans); }
.syn li b { display: block; color: var(--navy); font-size: 14px; } .syn li span { display: block; font-size: 14px; } .syn li small { color: var(--muted); font-size: 12px; }
.syn-btns { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .syn-btns small { color: var(--muted); font-size: 12px; margin-left: auto; }
.vb-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vb-lang button { border: 0; background: transparent; padding: 3px 10px; font: 600 12px var(--sans); cursor: pointer; color: var(--ink-2); }
.vb-lang button.on { background: var(--navy); color: #fff; }
.vbar .vb-lang { border-color: rgba(255,255,255,.25); margin-bottom: 6px; } .vbar .vb-lang button { color: #cfdbe6; } .vbar .vb-lang button.on { background: #b08d3c; color: #051c2c; }
@media (max-width: 1100px) { .syn { grid-template-columns: minmax(0, 1fr); } }

/* ---------- geo-political strategy */
.geo { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.geo-map { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(5,28,44,.05); position: sticky; top: 140px; }
.geo-map .map { height: 560px; border: 0; }
.geo-key { display: grid; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.geo-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.geo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.geo-c { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(5,28,44,.05); transition: transform .2s, box-shadow .2s; }
.geo-c.on, .geo-c:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(5,28,44,.12); }
.geo-c.on { outline: 3px solid var(--c); }
.geo-c header { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.geo-c header b { font: 400 22px var(--serif); color: var(--navy); display: block; } .geo-c header small { color: var(--muted); font-size: 12px; }
.geo-tag { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--c); padding: 4px 9px; border-radius: 10px; text-align: center; max-width: 140px; }
.geo-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.geo-nums em { display: block; font: 400 22px var(--serif); color: var(--navy); font-style: normal; } .geo-nums small { font-size: 11px; color: var(--ink-2); }
.geo-nums .grn { color: var(--good); }
.geo-seatbar { height: 6px; background: #eef1f4; border-radius: 4px; overflow: hidden; } .geo-seatbar i { display: block; height: 100%; background: var(--c); transition: width 1s; }
.geo-play { font-size: 13.5px; color: var(--navy); font-weight: 600; margin: 10px 0 6px; }
.geo-c ul { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--ink-2); } .geo-c li { margin: 3px 0; }
.geo-c footer { display: flex; gap: 8px; }
/* ---------- vote & constituency framework */
.segbar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; gap: 3px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(5,28,44,.08); }
.segbar a { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; min-width: 60px; transition: filter .15s, flex .3s; }
.segbar a:hover { filter: brightness(1.12); text-decoration: none; } .segbar b { font: 400 20px var(--serif); line-height: 1; } .segbar small { font-size: 11px; opacity: .9; }
.segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.seg { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; border-top: 5px solid var(--c); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 22px rgba(5,28,44,.05); }
.seg header { display: flex; justify-content: space-between; align-items: baseline; } .seg header b { font: 600 16px var(--sans); color: var(--navy); } .seg header em { font: 400 30px var(--serif); color: var(--c); font-style: normal; }
.seg p { font-size: 13px; margin: 0; color: var(--ink-2); line-height: 1.45; }
.seg-tech { display: flex; flex-wrap: wrap; gap: 4px; } .seg-tech span { font: 600 10.5px var(--sans); padding: 2px 8px; border-radius: 10px; background: #eef2ff; color: #1d47c9; }
.seg-seats { display: flex; flex-wrap: wrap; gap: 4px; } .seg-seats a { font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.seg-seats a:hover { border-color: var(--c); color: var(--c); text-decoration: none; }
.seg footer { margin-top: auto; }
/* ---------- delivery operating system */
.os { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(5,28,44,.05); }
.os-s { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 14px; color: inherit; border-right: 1px solid var(--line); transition: background .15s; }
.os-s:last-child { border-right: 0; } .os-s:hover { background: #f6f8ff; text-decoration: none; }
.os-s:not(:last-child)::after { content: "›"; position: absolute; right: -9px; top: 38px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--muted); }
.os-n { font: 700 11px var(--sans); color: var(--muted); } .os-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2251ff, #12395a); margin: 2px 0 6px; }
.os-s.os-real .os-ic { background: linear-gradient(135deg, #1baf5d, #0b7a3e); } .os-s.os-gap .os-ic { background: linear-gradient(135deg, #ef5a4c, #b72a1f); } .os-s.os-sample .os-ic { background: linear-gradient(135deg, #f6b73c, #d98a06); }
.os-s b { font-size: 13.5px; color: var(--navy); line-height: 1.25; } .os-s small { font-size: 11.5px; color: var(--muted); }
.os-s em { font: 400 26px var(--serif); color: var(--navy); font-style: normal; margin-top: 6px; } .os-k { font-size: 12px; color: var(--ink-2); } .os-sub { font-size: 11.5px; color: var(--muted); }
.os-st { margin-top: 6px; font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .06em; align-self: flex-start; padding: 2px 8px; border-radius: 10px; background: #eef1f4; color: var(--ink-2); }
.os-s.os-live .os-st { background: #e6f6e6; color: #0b6b0b; } .os-s.os-gap .os-st { background: #fdeaea; color: #a61b1b; } .os-s.os-real .os-st { background: #e6f6e6; color: #0b6b0b; } .os-s.os-sample .os-st { background: #fff4d6; color: #8a5b00; }
@media (max-width: 1400px) { .segs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .os { grid-template-columns: repeat(4, minmax(0, 1fr)); } .os-s:nth-child(4)::after { display: none; } }
@media (max-width: 1100px) { .geo { grid-template-columns: minmax(0, 1fr); } .geo-map { position: static; } }
@media (max-width: 700px) { .segs, .os { grid-template-columns: minmax(0, 1fr); } .os-s::after { display: none; } }

/* ---------- news to action */
.nact { margin: 0 0 16px; } .nact header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .nact h3 { font: 600 16px var(--sans); color: var(--navy); margin: 0; display: flex; gap: 8px; align-items: center; }
.nact header small { color: var(--muted); margin-left: auto; font-size: 12px; }
.nact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.nwa { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; border-left: 5px solid #8c9bab; display: flex; flex-direction: column; gap: 6px; animation: rowIn .35s ease both; }
.nwa.opportunity { border-left-color: var(--good); } .nwa.risk { border-left-color: var(--critical); }
.nwa-k { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #8c9bab; } .nwa.opportunity .nwa-k { color: var(--good); } .nwa.risk .nwa-k { color: var(--critical); }
.nwa > b { font: 400 18px/1.3 var(--serif); color: var(--navy); } .nwa p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.nwa-o { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding-top: 6px; border-top: 1px dashed #e6eaef; } .nwa-o small { color: var(--muted); }
.nwa-src { font-size: 11.5px; color: var(--muted); margin-top: auto; } .nwa-src a { color: var(--blue); }

/* pulse figures are links into a three-level drill */
.br-pulse a.pl { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: linear-gradient(180deg, #fff, #f8fafc); color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.br-pulse a.pl:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 8px 18px rgba(5,28,44,.1); }
.pl-go { position: absolute; right: 10px; top: 8px; font-style: normal; color: var(--blue); opacity: 0; transition: opacity .15s; } .br-pulse a.pl:hover .pl-go { opacity: 1; }
.pbars a { display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px 70px; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; color: inherit; font-size: 14px; }
.pbars a:hover { background: #f2f6ff; text-decoration: none; } .pbars .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbars .trk { height: 10px; background: #eef1f4; border-radius: 6px; overflow: hidden; } .pbars .trk i { display: block; height: 100%; background: var(--blue); border-radius: 6px; transition: width .8s; }
.pbars small { color: var(--muted); font-size: 12px; }

/* ---------- compact heatmaps on Today */
.heatgrid.compact { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.heatgrid.compact .st-panel { display: flex; flex-direction: column; }
.heatgrid.compact .heat { padding: 8px 14px 10px; }
.heatgrid.compact .heat table { border-spacing: 3px; }
.heatgrid.compact .heat thead th { padding: 0 1px 4px !important; }
.heatgrid.compact .heat thead th span { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px !important; }
.heatgrid.compact .heat thead th:first-child, .heatgrid.compact .heat tbody th { width: 118px !important; }
.heatgrid.compact .heat tbody th { white-space: nowrap; font-size: 12px !important; }
.heatgrid.compact .heat td { height: 26px !important; font-size: 12px !important; border-radius: 6px !important; }
.heat-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 16px 12px; font-size: 12px; color: var(--ink-2); margin-top: auto; }
.hk-scale { display: inline-flex; border-radius: 6px; overflow: hidden; } .hk-scale i { width: 22px; height: 12px; display: block; }
.hk-mid { margin: 0 auto 0 0; } .hk-na { display: inline-flex; align-items: center; gap: 6px; }
.hk-na i { width: 14px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, #f3f5f8 0 4px, #e3e7ec 4px 8px); display: inline-block; }
@media (max-width: 1100px) { .heatgrid.compact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pulse cards with trends */
.br-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl2 { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fafc); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pl2:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 10px 22px rgba(5,28,44,.1); }
.pl2-main { padding: 9px 12px 6px; color: inherit; display: block; } .pl2-main:hover { text-decoration: none; }
.pl2 small { display: block; font-size: 11.5px; color: var(--ink-2); }
.pl2-row { display: flex; align-items: baseline; gap: 8px; } .pl2-row b { font: 400 26px/1.15 var(--serif); color: var(--navy); }
.pl2-d { font: 700 11.5px var(--sans); padding: 1px 6px; border-radius: 8px; } .pl2-d.bad { color: #b42318; background: #fdeaea; } .pl2-d.good { color: #0b6b0b; background: #e6f6e6; } .pl2-d.flat { color: var(--ink-2); background: #eef1f4; }
.spk { display: block; width: 100%; height: 30px; margin: 3px 0 2px; }
.pl2-so { display: block; font-size: 11.5px; color: var(--ink-2); }
.pl2-where { display: block; font: 600 11.5px var(--sans); color: var(--blue); padding: 6px 12px; border-top: 1px dashed #e3e8ee; background: #f6f9ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl2-where:hover { background: #eaf1ff; text-decoration: none; }

/* ---------- voice of citizens on Today */
.cv-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; gap: 12px; margin-bottom: 14px; }
.cv-strip > a, .cv-mood { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: linear-gradient(135deg, #fdf3f8, #fff); color: inherit; display: flex; flex-direction: column; gap: 2px; transition: transform .15s, box-shadow .15s; }
.cv-strip > a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194,51,139,.15); }
.cv-strip em { font: 400 32px/1 var(--serif); color: #8c1d5f; font-style: normal; } .cv-strip span { font-weight: 600; color: var(--navy); font-size: 14px; } .cv-strip small { font-size: 12px; color: var(--muted); }
.cv-mood { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; }
.cv-mood span { font-size: 12.5px; padding: 3px 10px; border-radius: 12px; background: #eef1f4; text-transform: capitalize; } .cv-mood small { width: 100%; }
.cv-mood .m-positive { background: #e6f6e6; color: #0b6b0b; } .cv-mood .m-negative { background: #fdeaea; color: #a61b1b; } .cv-mood .m-distressed { background: #a61b1b; color: #fff; }
.cv-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.cv-side { display: grid; gap: 16px; }
.cv-mkb ul { list-style: none; margin: 0; padding: 4px 18px; } .cv-mkb li { padding: 14px 0; border-bottom: 1px solid #eef1f4; display: block; } .cv-mkb li:last-child { border-bottom: 0; }
.mk-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mk-h b { color: var(--navy); } .mk-h span { font-size: 12.5px; color: var(--muted); }
.mk-s { margin-left: auto; font: 700 10.5px var(--sans); font-style: normal; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; background: #eef1f4; color: var(--ink-2); }
.mk-s.positive { background: #e6f6e6; color: #0b6b0b; } .mk-s.negative { background: #fdeaea; color: #a61b1b; } .mk-s.distressed { background: #a61b1b; color: #fff; }
.mk-msg { margin: 6px 0 8px; font: 400 16px/1.55 var(--serif); color: var(--ink); background: #fbf7f9; border-left: 3px solid #c2338b; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.mk-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 8px; } .mk-reply textarea { font-size: 14px; }
.mk-btns { display: flex; gap: 6px; } .ap-btns { display: flex; gap: 6px; margin-top: 6px; }
@media (max-width: 1200px) { .cv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-grid { grid-template-columns: minmax(0, 1fr); } }

.vb-type { display: flex; gap: 6px; margin: 6px 0 4px; } .vb-type input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.vb-type input::placeholder { color: #9fb1c2; } .vb-type button { background: #b08d3c; border: 0; color: #051c2c; border-radius: 10px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.vbar[data-mode="err"] .vb-state { text-transform: none; letter-spacing: 0; font: 600 13px var(--sans); }

.mk-reply[hidden] { display: none !important; }

.rolebar { background: #fff4d6; border-bottom: 1px solid #f1dfae; color: #6b4b00; font-size: 13.5px; padding: 8px clamp(20px, 3vw, 56px); }
.rolebar a { font-weight: 700; margin-left: 8px; }
.denied { max-width: 760px; margin: 40px auto; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(5,28,44,.08); }
.denied h1 { font-size: 30px; }

.vb-eng { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; margin: 0 8px 6px 0; }
.vb-eng button { border: 0; background: transparent; color: #cfdbe6; padding: 3px 10px; font: 600 12px var(--sans); cursor: pointer; }
.vb-eng button.on { background: #2f6bff; color: #fff; }
.vb-wave i { transition: height .08s linear; }

/* ======================================================================= phones and small tablets */
.scroll, .capped-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  main { padding-left: 14px !important; padding-right: 14px !important; }
  /* header: brand + controls on one line, menus scroll sideways */
  .top { height: auto; flex-wrap: wrap; gap: 6px 10px; padding: 8px 14px; }
  .brand b { font-size: 16px; } .brand span { display: none; }
  .primary { order: 3; flex-basis: 100%; overflow-x: auto; } .primary a { padding: 8px 10px; font-size: 14px; }
  .persona { max-width: 132px; font-size: 12px; } .langs a { padding: 4px 8px; font-size: 12px; } .decide { font-size: 12px; padding: 4px 8px; }
  .subnav .wrap { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  /* hero */
  .cmhero { padding: 16px; gap: 12px; border-radius: 14px; margin-bottom: 14px; }
  .cmhero .seals { display: none; } .cmhero h1 { font-size: 26px; } .cmhero .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .cmhero .motto { font-size: 12px; } .cmhero .acts { margin: 6px 0 0; width: 100%; } .cmhero .acts .btn { flex: 1; text-align: center; padding: 10px 8px; font-size: 13px; }
  .ticker { height: 36px; border-radius: 10px; } .tk-at { display: none; } .tk-item { font-size: 12.5px; }
  /* tabs: one row that scrolls sideways, stuck under the header */
  .cmtabs { top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
  .cmtabs::-webkit-scrollbar { display: none; }
  .cmtabs button { flex: none; padding: 9px 12px; font-size: 13.5px; }
  /* floating controls: small, side by side, out of the reading line */
  .vmic { width: 52px; height: 52px; right: 14px; bottom: 16px; }
  .fab { right: 76px !important; bottom: 20px !important; padding: 10px 14px !important; font-size: 13px !important; }
  .vbar { bottom: 80px; padding: 12px; border-radius: 16px; }
  /* section headings */
  .st-h { font-size: 21px; margin: 24px 0 10px; } .st-h small { font-size: 12px; }
  .cmd header, .briefing header { gap: 6px; } .cmd header h2, .briefing header h2 { font-size: 20px; }
  .br-live { margin-left: 0; width: 100%; flex-wrap: wrap; }
  /* command centre: 2 per row, shorter */
  .cmd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cmd-b { min-height: 108px; padding: 12px; } .cmd-ic { width: 40px; height: 40px; margin-bottom: 4px; } .cmd-b b { font-size: 14px; } .cmd-b small { font-size: 11.5px; }
  /* briefing */
  .briefing { padding: 14px 12px 6px; border-radius: 14px; }
  .syn { padding: 14px; gap: 12px; } .syn-lang { position: static; margin-bottom: 6px; } .syn h3 { font-size: 19px; } .syn p { font-size: 14px; }
  .syn li { grid-template-columns: 24px minmax(0, 1fr); } .syn li > .btn, .syn li > .pill { grid-column: 2; justify-self: start; }
  .br-lead { padding: 14px; } .br-lead h2 { font-size: 19px; }
  .br-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pl2-row b { font-size: 22px; }
  .br-list li { grid-template-columns: 28px minmax(0, 1fr); } .br-list .br-act { grid-column: 2; }
  .br-list p { white-space: normal; }
  .nact-grid { grid-template-columns: minmax(0, 1fr); }
  /* headline cards and trackers */
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .st-card { padding: 14px 14px 12px; } .st-card b { font-size: 32px; } .st-ic { width: 36px; height: 36px; right: 12px; top: 12px; border-radius: 10px; } .st-ic svg { width: 20px; height: 20px; }
  .st-card > span:last-child { white-space: normal; font-size: 12.5px; }
  .st-live, .st-win, .heatgrid, .heatgrid.compact, .dash2, .dash3, .opsrow, .geo, .cv-grid, .segs, .tb5 { grid-template-columns: minmax(0, 1fr) !important; }
  .st-bars .row { grid-template-columns: 110px minmax(0, 1fr) 38px !important; } .st-bars .row small, .st-bars .row .btn { display: none; }
  .st-w { grid-template-columns: 32px minmax(0, 1fr); } .st-w .side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  /* citizens */
  .cv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-mood { grid-column: 1 / -1; }
  .mk-reply { grid-template-columns: minmax(0, 1fr); }
  /* strategy, framework, operating system */
  .geo-map { position: static; } .geo-map .map { height: 420px; }
  .geo-cards { grid-template-columns: minmax(0, 1fr); } .geo-nums em { font-size: 19px; }
  .segbar { height: 46px; } .segbar small { display: none; }
  .os { grid-template-columns: repeat(2, minmax(0, 1fr)); } .os-s::after { display: none !important; } .os-s { border-bottom: 1px solid var(--line); }
  /* heatmap: scroll sideways inside its card instead of squashing */
  .heat { overflow-x: auto !important; } .heat table { min-width: 560px; }
  /* maps + focus panel stack */
  .mapstage { grid-template-columns: minmax(0, 1fr) !important; } .mapstage .map { height: 440px !important; } .fpanel { height: auto; max-height: none; padding: 16px; }
  .fp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tables on the other tabs: scroll inside the card */
  .card, .st-panel { min-width: 0; } table { font-size: 13px; }
  .secprog, table.lines, table.sortable { display: block; overflow-x: auto; white-space: nowrap; }
  .kpis, .kpis.head6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .st-prom { grid-template-columns: minmax(0, 1fr); } .st-pillar li { grid-template-columns: 74px minmax(0, 1fr) 34px; }
  .strip24 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .all12 { grid-template-columns: minmax(0, 1fr); } .quick6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvl select { min-width: 0; width: 100%; } .cmtabs-lvl { display: none; }
  .pbars a { grid-template-columns: 110px minmax(0, 1fr) 34px; } .pbars small { display: none; }
  .denied { margin: 16px 0; padding: 20px; } .denied h1 { font-size: 22px; }
}
@media (max-width: 380px) { .cmd-grid, .br-pulse, .st-cards { grid-template-columns: minmax(0, 1fr) !important; } }

.vb-mic { display: block; max-width: 100%; margin: 0 0 6px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.vb-mic option { color: #051c2c; }

/* ---------- responsive grid variants (replace former inline column styles) */
.dash3.even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mapsplit { grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr); }
.st-bars .row.r4 { grid-template-columns: 140px minmax(0, 1fr) 40px auto; }
@media (max-width: 1400px) { .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash3.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .mapsplit { grid-template-columns: minmax(0, 1fr); } .g5, .st-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .kpis.k5, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash3.even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .st-bars .row.r4 { grid-template-columns: 110px minmax(0, 1fr) 40px; } }
@media (max-width: 760px) {
  /* the wrapped header is tall on phones; let it scroll away so page tabs can stick to the top */
  .top { position: static; } html { scroll-padding-top: 64px; }
  .st-cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .scroll > table { min-width: 100%; }
  .mapbar select { width: 100%; }
  dialog#actDlg { width: calc(100vw - 20px); } dialog#actDlg form { padding: 20px 16px; }
  dialog .grid.g2, dialog .grid.g3 { grid-template-columns: minmax(0, 1fr) !important; }
  dialog .row { flex-wrap: wrap; gap: 8px; }
}
