/* Calm slate theme: colour is kept for meaning (green = up / good, red = down / bad) */
:root {
  --bg: #f5f6f8; --card: #ffffff; --ink: #1d2733; --mut: #667085; --line: #e4e7ec; --line2: #f0f2f5;
  --acc: #2c4a6b; --acc-d: #1f3650; --acc-l: #eaf0f6; --acc-m: #c9d6e4;
  --up: #15803d; --dn: #b42318; --up-l: #e9f6ee; --dn-l: #fcecea;
  --wf: #f2f6fb; --tot: #f3f4f6; --sub: #f9fafb; --sel: #f6f8fb;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Office / Windows faces a business reader already knows: Aptos or Calibri for text, Bahnschrift (DIN) for headings and numbers */
:root { --f-text: "Aptos", "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --f-head: "Bahnschrift", "DIN Alternate", "Barlow", "Segoe UI Semibold", "Arial Narrow", sans-serif; }
body { font: 14.5px/1.45 var(--f-text); color: var(--ink); background: var(--bg);
  display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .18s; }
body.side-closed { grid-template-columns: 60px minmax(0, 1fr); }
body.login-body { display: flex; }
a { color: var(--acc); }
button { font: inherit; }

/* side panel */
.side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.brand { padding: 14px 12px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
/* hide / show side panel: always visible at the top-left */
.collapse { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--acc-m); background: var(--acc-l); color: var(--acc-d); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.collapse:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.collapse svg { transition: transform .18s; }
.side-closed .collapse svg { transform: rotate(180deg); }
.brand-txt { min-width: 0; }
.brand-t { font: 700 15px/1.25 var(--f-head); }
.brand-r { font: 700 18px/1.2 var(--f-head); color: var(--acc-d); margin-top: 3px; }
.brand-r:empty { display: none; }
.beta { display: inline-block; font: 600 10px/1.4 var(--f-text); text-transform: uppercase; letter-spacing: .04em; background: #fff4d6; color: #8a5a00;
  border: 1px solid #f0d58a; border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.betabar { display: flex; gap: 8px; align-items: baseline; background: #fffaf0; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: #5c4400; }
.betabar .beta { margin-left: 0; }
.brand-s { font-size: 12px; color: var(--mut); margin-top: 2px; }
.brand-d { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; background: var(--acc-l); color: var(--acc-d); border-radius: 6px; padding: 2px 8px; }
.brand-d:empty { display: none; }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.nav a:hover { background: var(--line2); }
.nav a.on { background: var(--acc-l); color: var(--acc-d); box-shadow: inset 3px 0 0 var(--acc); }
.nav .ic { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--line2); color: var(--mut); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.nav a.on .ic { background: var(--acc); color: #fff; }
.nav .tx { min-width: 0; }
.nav .l { font-weight: 600; display: block; }
.nav .s { font-size: 12px; color: var(--mut); display: block; }
.side-foot { margin-top: auto; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.box { border-radius: 10px; padding: 4px 2px; }
.box-t { font-weight: 600; font-size: 13px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--mut); }
.box-t::-webkit-details-marker { display: none; }
.box-t::after { content: "▸"; font-size: 11px; transition: transform .15s; }
.box[open] .box-t::after { transform: rotate(90deg); }
.box-s { font-size: 12px; color: var(--mut); margin: 6px 0; }
.sbtn { display: block; width: 100%; text-align: center; padding: 6px 10px; margin-top: 6px; border-radius: 7px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13px; }
.sbtn:hover { background: var(--line2); }
.sbtn.on { border-color: var(--acc); color: var(--acc); }
.sbtn:disabled { opacity: .6; cursor: wait; }
.signout { display: block; color: var(--mut); font-size: 13px; text-align: center; margin-top: 8px; }
.side-closed .brand { flex-direction: column; align-items: center; }
.side-closed .brand-txt, .side-closed .nav .tx, .side-closed .side-foot { display: none; }
.side-closed .nav a { justify-content: center; padding: 8px 4px; }

/* top */
.main { min-width: 0; padding: 0 24px 40px; }
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--mut); }
.search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-l); }
.search input { border: 0; outline: 0; flex: 1; padding: 10px 0; font: inherit; font-size: 14px; color: var(--ink); background: transparent; min-width: 0; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .12); max-height: 420px; overflow-y: auto; padding: 4px; z-index: 30; }
.results.small { min-width: 260px; max-height: 300px; }
.res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.res.on, .res:hover { background: var(--acc-l); }
.res .t { font-size: 11px; font-weight: 600; color: var(--acc-d); background: var(--line2); border-radius: 5px; padding: 1px 6px; min-width: 96px; text-align: center; white-space: nowrap; }
.res .l { font-weight: 600; }
.res .s { color: var(--mut); font-size: 12px; margin-left: auto; text-align: right; }
.res-none { padding: 10px; color: var(--mut); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.fgrp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flbl { font-size: 12px; color: var(--mut); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.pills button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.pills button:hover { background: var(--line2); }
.pills button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.pills.big button { padding: 6px 14px; font-weight: 600; }

.head { padding: 16px 0 4px; }
.head h1 { margin: 0; font: 600 24px/1.2 var(--f-head); letter-spacing: -.005em; }
.question { margin: 2px 0 0; color: var(--mut); font-size: 15px; }
.ends { margin: 4px 0 0; color: var(--mut); font-size: 12px; }
.view { display: flex; flex-direction: column; gap: 16px; transition: opacity .15s; margin-top: 10px; }
.view.busy { opacity: .45; pointer-events: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 150px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; flex-wrap: wrap; }
.card-h h2 { margin: 0; font: 600 16.5px/1.3 var(--f-head); display: flex; align-items: center; gap: 6px; }
.card-h .sub { color: var(--mut); font-size: 12px; margin-top: 2px; }
.card-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.xl { font-size: 12px; white-space: nowrap; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--mut); }
.xl:hover { color: var(--acc); border-color: var(--acc); }
.card-b { padding: 0 16px 14px; }
.say { margin: 0 16px 10px; padding: 8px 12px; background: var(--sub); border-left: 3px solid var(--acc-m); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.note { color: var(--mut); font-size: 12px; margin: 10px 0 0; }
.msg { padding: 4px 0 6px; color: var(--mut); }
.flash td, .card.flash { animation: flash 2.6s ease-out; }
@keyframes flash { 0%, 45% { background: #fff6d6; } 100% { } }

/* (i) formula tips */
.ii { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #b8c2cf; color: #7a8696;
  font: italic 600 10px/1 Georgia, serif; cursor: help; margin-left: 4px; vertical-align: 1px; flex: none; background: #fff; }
.ii:hover, .ii:focus { border-color: var(--acc); color: var(--acc); outline: 0; }

/* in-section choices */
.ctls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.card-h .ctls { margin: 0; }
.ctl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); font-weight: 600; }
.ctl select, .ctl input { font: inherit; font-size: 13px; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; background: #fff; }
.ctl select:focus, .ctl input:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-l); }
.picker .pk { position: relative; }
.picker input { width: 220px; }

/* key numbers */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 4px 16px 14px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; position: relative; background: #fff; text-align: left; }
.kpi.hi { border-color: var(--acc-m); box-shadow: inset 0 3px 0 var(--acc); }
.kpi .k { color: var(--mut); font-size: 13px; display: flex; align-items: center; }
.kpi .v { font: 600 26px/1.2 var(--f-head); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .u { color: var(--mut); font-size: 12px; }
.kpi .c { margin-top: 6px; font-size: 13px; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { border-color: var(--acc); }
.pop { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; width: min(560px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16); padding: 10px; cursor: default; }
.pop .pills { margin-bottom: 8px; display: inline-flex; }
.pop table.t td, .pop table.t th { padding: 5px 6px; }

/* tables */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { font-size: 11.5px; font-weight: 600; color: var(--mut); text-align: right; vertical-align: bottom; padding: 7px 8px; border-bottom: 1px solid var(--line);
  white-space: normal; min-width: 70px; max-width: 150px; line-height: 1.3; background: #fff; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--ink); background: var(--sub); }
/* the last word, (i), sort arrow and remove button always stay together on one line */
.t th .thw { white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.t th .ii { width: 13px; height: 13px; font-size: 9px; margin-left: 2px; vertical-align: 0; }
.t th .arr { display: inline-block; margin-left: 1px; font-size: 9px; color: #c3cad4; width: 9px; text-align: center; }
.t th .cx { border: 0; background: none; color: #b0b8c3; font-size: 13px; line-height: 1; padding: 0 1px; margin-left: 1px; cursor: pointer; visibility: hidden; }
.t th:hover .cx, .t th .cx:focus { visibility: visible; }
.t th .cx:hover { color: var(--dn); }
.t th.mv { cursor: grab; }
.t th.dragover { box-shadow: inset 3px 0 0 var(--acc); background: var(--acc-l); }
.colbar { font-size: 12px; color: var(--mut); padding: 0 0 6px; }
.linkbtn { border: 0; background: none; color: var(--acc); padding: 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.t th.sorted { color: var(--acc-d); }
.t th.sorted .arr { color: var(--acc); }
.t th.l, .t td.l { text-align: left; }
.t th.grp { text-align: center; border-bottom: 1px solid var(--line); color: var(--ink); max-width: none; cursor: default; font-size: 12px; }
.t td { padding: 6px 8px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; }
.t td.l { white-space: normal; min-width: 110px; max-width: 280px; overflow-wrap: anywhere; }
.t td.wide { min-width: 240px; max-width: 420px; }
.t .gs { border-left: 1px solid var(--line); }
.t tr.lvl1 td:first-child { padding-left: 24px; }
.t tr.sub td { background: var(--sub); font-weight: 600; }
.t tr.total td { background: var(--tot); font-weight: 700; border-top: 1px solid #d5dae1; }
.t tr.wf td { font-weight: 600; }
.t tr.wf td:first-child { box-shadow: inset 3px 0 0 var(--acc); background: var(--wf); }
.t tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--acc-m); }
.t tr.muted td { color: var(--mut); }
.up { color: var(--up); }
.dn { color: var(--dn); }
.na { color: #b0b8c3; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--line2); color: var(--mut); white-space: nowrap; }
.tag.good { background: var(--up-l); color: var(--up); }
.tag.bad { background: var(--dn-l); color: var(--dn); }
.tip { position: fixed; z-index: 60; background: #1d2733; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; max-width: 330px; pointer-events: none; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .25); }
.tip .tsub { opacity: .75; }
.tip table { border-collapse: collapse; margin-top: 4px; width: 100%; }
.tip td { padding: 1px 4px; font-variant-numeric: tabular-nums; }
.tip td.r { text-align: right; }
.tip tr.wf td { color: #9cc3ef; font-weight: 700; }
.toast { background: #fff8e1; border: 1px solid #f0d58a; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.err { background: var(--dn-l); border: 1px solid #f3b8b1; border-radius: 8px; padding: 12px; color: var(--dn); }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--acc); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.fchip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 12px; cursor: pointer; font-size: 13px; color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.chiprow input { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; min-width: 220px; }
.chiprow .cnt { color: var(--mut); font-size: 12px; }

/* India map */
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
.mapwrap { max-width: 540px; margin: 0 auto; }
svg.map { width: 100%; height: auto; display: block; }
svg.map .st:not(.none):hover { stroke: #1d2733; stroke-width: 1.4; }
.mapmode { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 8px; }
.legend { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--mut); margin-top: 6px; flex-wrap: wrap; }
.ramp { display: inline-block; width: 150px; height: 9px; border-radius: 3px; }
.maplist { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; max-height: 540px; overflow-y: auto; font-size: 13px; }
.ml-h { font-weight: 600; font-size: 12px; color: var(--mut); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ml-r { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line2); }
.ml-r b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mapduo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mpanel { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.mp-h { display: flex; flex-direction: column; gap: 8px; }
.mp-h h3 { margin: 0; font: 600 15px/1.3 var(--f-head); }
.mp-t { font-size: 13px; color: var(--ink); font-weight: 600; margin: 10px 0 4px; display: flex; align-items: center; }
.mpanel svg.map { max-width: 440px; margin: 0 auto; }
.mp-l { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.pills.sm button { padding: 3px 9px; font-size: 12.5px; }
.pills.sm { align-self: flex-start; }
.fchip.wfchip { border-color: var(--acc); font-weight: 600; }
.fchip:disabled { opacity: .45; cursor: not-allowed; }
svg .slbl.wfl { font-weight: 700; fill: var(--acc-d); }

/* sales drivers: vertical waterfalls */
.wfgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.wfc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.wfc h3 { margin: 0; font-size: 14px; }
.wfc .tot { font-size: 13px; margin-top: 2px; color: var(--mut); }
.wfc .tot b { font-size: 15px; }
svg.wf { width: 100%; height: auto; display: block; margin-top: 6px; }
svg .ax { font-size: 10.5px; fill: #7a8696; }
svg .axt { font-size: 12px; fill: #475467; font-weight: 600; }
svg .lbl { font-size: 11.5px; font-weight: 700; fill: #1d2733; }
svg .xl2 { font-size: 10.5px; fill: #475467; }
.steps { margin-top: 6px; font-size: 12.5px; }
.steps .sr { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line2); align-items: center; }
.steps .sr .nm { display: flex; align-items: center; }
.steps .sr .dv { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 64px; }
.steps .sr .dx { color: var(--mut); font-variant-numeric: tabular-nums; text-align: right; min-width: 92px; font-size: 12px; }

/* scatter */
svg.sc { width: 100%; height: auto; display: block; }
svg .slbl { font-size: 10.5px; fill: #475467; }
.stat { font-size: 13px; padding: 6px 10px; background: var(--sub); border-radius: 8px; margin-bottom: 8px; }

/* insights */
.ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.inc { border: 1px solid var(--line); border-left: 4px solid var(--acc-m); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.inc.good { border-left-color: var(--up); }
.inc.bad { border-left-color: var(--dn); }
.inc h3 { margin: 0; font-size: 15px; }
.inc ul { margin: 0; padding-left: 18px; color: #344054; font-size: 13px; }
.inc li { margin: 2px 0; }
.inc .act { font-size: 13px; background: var(--sub); border-radius: 8px; padding: 7px 10px; }
.inc .act b { color: var(--acc-d); }
.inc .st { font-size: 11.5px; color: var(--mut); font-family: Consolas, monospace; }
.inc .open { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--acc); background: none; border: 0; padding: 0; cursor: pointer; }
.inc .open:hover { text-decoration: underline; }

/* admin */
.admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--mut); }
.btn { background: var(--acc); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--acc-d); }
.btn.ghost { background: #fff; color: var(--acc-d); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--acc-l); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.drop { border: 2px dashed var(--acc-m); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; margin: 10px 0; }
.drop.over { border-color: var(--acc); background: var(--acc-l); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { border-radius: 8px; padding: 8px 12px; background: var(--line2); font-size: 13px; }
.status.failed { background: var(--dn-l); } .status.done { background: var(--up-l); } .status.running { background: #fff8e1; }
.log { max-height: 260px; overflow: auto; background: var(--sub); border: 1px solid var(--line); padding: 8px; font-size: 11px; white-space: pre-wrap; }
.pwgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pwf { display: flex; flex-direction: column; gap: 8px; }
.pwf h3 { margin: 0; font-size: 14px; }
.pwf label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--mut); }
.pwf input, .login input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.err-s { color: var(--dn); font-size: 13px; } .ok-s { color: var(--up); font-size: 13px; }
.muted { color: var(--mut); }
.narrow { max-width: 440px; }

/* sign-in page */
.login-body { align-items: center; justify-content: center; min-height: 100vh; }
.login { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 14px; padding: 28px; width: 360px; display: flex; flex-direction: column; gap: 8px; }
.login h1 { font-size: 19px; margin: 6px 0 0; }
.login .err { background: none; border: 0; padding: 0; min-height: 1em; margin: 0; }

@media (max-width: 1000px) {
  .mapgrid, .mapduo { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body, body.side-closed { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .side-closed .nav, .side-closed .side-foot { display: none; }
  .side-closed .brand { flex-direction: row; }
  .side-closed .brand-txt { display: block; }
  .main { padding: 0 14px 30px; }
  .picker input { width: 170px; }
  .top { position: static; }
}
.kpi .caret { font-size: 12px; color: var(--mut, #64748b); font-weight: 400; }
.card-tt { min-width: 0; }

/* ---- readability: larger small text everywhere ---- */
.nav .s, .box-s, .flbl, .colbar, .chiprow .cnt, .legend, .ml-h, .kpi .u { font-size: 13px; }
.ends, .card-h .sub { font-size: 13.5px; }
.note { font-size: 13.5px; color: #4b5565; line-height: 1.5; }
.say { font-size: 15px; line-height: 1.5; }
.kpi .k, .kpi .c { font-size: 14px; }
.mp-l, .ml-r { font-size: 13.5px; }
.t th { font-size: 12.5px; }
.t td { font-size: 14px; }
.question { font-size: 16px; }
svg .ax { font-size: 12px; }
svg .axt { font-size: 13px; }
svg .slbl { font-size: 12px; }
.hint { margin: 0 0 10px; font-size: 14px; color: var(--acc-d); background: var(--acc-l); border-radius: 8px; padding: 6px 12px; display: inline-block; }
.pernote { margin: 8px 0 0; font-size: 13.5px; color: var(--ink); }
.pernote:empty { display: none; }
#resetBtn { align-self: flex-end; }
/* company comparison: compact chart */
svg.bub { max-width: 760px; }

/* ---- tooltip: light card, dark text ---- */
.tip { background: #ffffff; color: #1d2733; border: 1px solid #cfd6df; font-size: 13.5px; max-width: 360px; box-shadow: 0 10px 28px rgba(16, 24, 40, .18); }
.tip .tsub { opacity: 1; color: #5b6676; }
.tip tr.wf td { color: var(--acc-d); }
.tip .up { color: var(--up); } .tip .dn { color: var(--dn); }
