:root {
  --bg: #0b1220;
  --panel: rgba(13, 20, 36, 0.88);
  --panel-solid: #101a2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6edf7;
  --muted: #8b96a8;
  --accent: #3987e5;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --crit: #d03b3b;
  --rail: #9085e9;
  --gateway: #199e70;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: #7cb5ff; }

/* ---------- 3D canvas + labels ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.lbl {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.02em; color: var(--muted);
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8);
  will-change: transform;
}
.lbl.port { color: var(--text); font-weight: 600; font-size: 12px; }
.lbl.port::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 8px var(--accent);
}
.lbl.port.gateway::before { background: var(--gateway); box-shadow: 0 0 8px var(--gateway); }
.lbl.port.hub2::before { background: #6da7ec; }
.lbl.city { color: #aeb8c8; }
.lbl.region { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(139, 150, 168, 0.5); font-weight: 600; }
.lbl.hormuz { color: #ff7b7b; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; }
.lbl.hormuz.open { color: #34d399; }
.lbl.hero { color: var(--warn); font-weight: 700; font-family: var(--mono); font-size: 11px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(11, 18, 32, 0.75) 70%, transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 300px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), var(--gateway), var(--accent));
  box-shadow: 0 0 18px rgba(57, 135, 229, 0.6);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 4px; background: var(--bg); }
.brand-name { font-weight: 700; letter-spacing: 0.22em; font-size: 13px; }
.brand-sub { font-size: 11px; color: var(--muted); }

.modes, .views { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; backdrop-filter: blur(10px); }
.modes button, .views button {
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  padding: 6px 12px; color: var(--muted); font-weight: 500; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
}
.modes button small { font-size: 10px; font-weight: 400; opacity: 0.8; }
.modes button:hover, .views button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.modes button.active { color: var(--text); background: rgba(57, 135, 229, 0.18); border-color: rgba(57, 135, 229, 0.5); }
.modes button[data-mode="before"].active { background: rgba(139,150,168,0.18); border-color: rgba(139,150,168,0.5); }
.modes button[data-mode="today"].active { background: rgba(208, 59, 59, 0.18); border-color: rgba(208, 59, 59, 0.55); }
.modes button[data-mode="solution"].active { background: rgba(12, 163, 12, 0.16); border-color: rgba(12, 163, 12, 0.55); }
.views button { flex-direction: row; }
.views button.primary { background: var(--warn); color: #140f00; font-weight: 600; }
.views button.primary:hover { background: #ffc43d; color: #140f00; }
.views button.primary.running { background: var(--crit); color: #fff; }

/* ---------- KPI panel ---------- */
.kpis {
  position: fixed; right: 16px; top: 86px; width: 340px; z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 12px;
  max-height: calc(100vh - 86px - 64px); overflow: auto;
}
.kpi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.kpi-head span:first-child { font-weight: 600; }
.live { font-size: 10px; color: var(--muted); }
.live b { color: var(--crit); }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-height: 70px; }
.kpi-label { font-size: 10.5px; color: var(--muted); line-height: 1.25; min-height: 24px; }
.kpi-value { font-family: var(--mono); font-size: 21px; font-weight: 500; margin-top: 1px; letter-spacing: -0.01em; }
.kpi-value .unit { font-size: 12px; color: var(--muted); margin-left: 3px; font-family: var(--sans); }
.kpi-note { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.kpi.bad .kpi-value { color: #ff8a8a; }
.kpi.good .kpi-value { color: #4ade80; }
.kpi.neutral .kpi-value { color: var(--text); }
.kpi.wide { grid-column: 1 / -1; }

.controls { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.controls.disabled { opacity: 0.4; pointer-events: none; }
.controls label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.controls output { float: right; font-family: var(--mono); color: var(--text); }
.controls input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--good); }
.controls .toggle { display: flex; align-items: center; gap: 8px; color: var(--text); }
.controls .toggle input { accent-color: var(--good); }
.controls-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.legend { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 11px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* ---------- journey (follow one container) ---------- */
.journey {
  position: fixed; left: 16px; top: 86px; width: 360px; z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 12px;
  max-height: calc(100vh - 86px - 64px); overflow: auto;
}
.journey[hidden] { display: none; }
.journey-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.journey-head b { font-size: 13px; }
.journey-clock { font-family: var(--mono); font-size: 12px; color: var(--warn); }
.journey-sub { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 6px 0 6px 22px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); margin-left: 6px; }
.steps li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #2a3448; border: 1px solid var(--line-strong); }
.steps li.done { color: #c3cbd8; }
.steps li.done::before { background: var(--muted); }
.steps li.active { color: var(--text); font-weight: 500; }
.steps li.active::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.steps li .t { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.journey-summary { margin-top: 10px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 12px; }
.journey-summary.today { border-color: rgba(208,59,59,0.5); }
.journey-summary.solution { border-color: rgba(12,163,12,0.5); }
.journey-actions { display: flex; gap: 6px; margin-top: 8px; }
.journey-actions button { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 8px; font-size: 12px; }
.journey-actions button.primary { background: var(--good); border-color: transparent; color: #fff; }

/* ---------- bottom drawer ---------- */
.drawer {
  position: fixed; left: 16px; right: 16px; bottom: 0; z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0; backdrop-filter: blur(12px); box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.drawer.collapsed { transform: translateY(calc(100% - 44px)); }
.tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; align-items: center; }
.tabs button { background: transparent; border: none; border-radius: 7px; padding: 7px 12px; color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.tabs button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tabs button.active { color: var(--text); background: rgba(255,255,255,0.08); }
.tabs .spacer { flex: 1; }
.tabs .toggle-drawer { color: var(--muted); font-size: 12px; }
.panels { height: 340px; overflow: auto; padding: 14px 18px; }
.panel { display: none; }
.panel.active { display: block; }
.panel h3 { margin: 0 0 4px; font-size: 15px; }
.panel h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.panel p { margin: 0 0 8px; color: #c3cbd8; max-width: 90ch; }
.panel .lead { color: var(--text); font-size: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card h5 { margin: 0 0 6px; font-size: 13px; }
.card p { font-size: 12.5px; }
.num { font-family: var(--mono); font-size: 24px; color: var(--text); }
.num small { font-size: 12px; color: var(--muted); font-family: var(--sans); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.pill.green { background: rgba(12,163,12,0.18); color: #4ade80; }
.pill.yellow { background: rgba(250,178,25,0.18); color: #fcd34d; }
.pill.red { background: rgba(208,59,59,0.2); color: #ff8a8a; }
.pill.blue { background: rgba(57,135,229,0.2); color: #93c5fd; }
.pill.grey { background: rgba(139,150,168,0.2); color: #c3cbd8; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
td.mono, th.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.good { color: #4ade80; } td.bad { color: #ff8a8a; }
tr.hold td { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; font-size: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.facts div span:first-child { color: var(--muted); }
.facts div span:last-child { font-family: var(--mono); font-size: 11.5px; text-align: right; }

/* slot grid */
.slotgrid { display: grid; grid-template-columns: 90px repeat(24, 1fr); gap: 2px; font-size: 10px; align-items: center; }
.slotgrid .rowname { color: var(--muted); font-size: 11px; }
.slotgrid .hour { text-align: center; color: var(--muted); }
.slotgrid .cell { height: 16px; border-radius: 3px; background: rgba(255,255,255,0.06); }
.slotgrid .cell.booked { background: rgba(57,135,229,0.55); }
.slotgrid .cell.full { background: rgba(12,163,12,0.7); }
.slotgrid .cell.over { background: rgba(208,59,59,0.75); }
.slotgrid .cell.rail { background: rgba(144,133,233,0.7); }

/* chart */
.chart-wrap { position: relative; }
.chart-wrap canvas { width: 100%; height: 190px; display: block; }
.tooltip { position: absolute; pointer-events: none; background: #0b1220; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 8px; font-size: 11px; font-family: var(--mono); display: none; white-space: nowrap; z-index: 2; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin: 6px 0; }
.legend-row span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--bg); }
.stack div { display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-family: var(--mono); color: #0b1220; font-weight: 600; min-width: 0; overflow: hidden; }
.quotes { position: relative; height: 54px; margin-top: 8px; }
.quotes .axis { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line-strong); }
.quotes .q { position: absolute; top: 22px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); transform: translateX(-50%); }
.quotes .q span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-family: var(--mono); color: var(--muted); }
.quotes .median { position: absolute; top: 14px; width: 2px; height: 32px; background: var(--good); transform: translateX(-50%); }
.quotes .median span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #4ade80; font-family: var(--mono); }

/* integration map */
.integ { position: relative; height: 240px; }
.integ svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.integ .node { position: absolute; transform: translate(-50%, -50%); background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: 11px; text-align: center; min-width: 120px; }
.integ .node small { display: block; color: var(--muted); font-size: 10px; }
.integ .node.core { background: rgba(57,135,229,0.2); border-color: var(--accent); font-weight: 600; min-width: 160px; padding: 10px 12px; }

.hint {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 4;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: var(--muted);
  transition: opacity 0.5s; pointer-events: none;
}
.hint.hide { opacity: 0; }
kbd { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }

.foot { font-size: 11px; color: var(--muted); margin-top: 10px; }
.foot a { color: #7cb5ff; }

@media (max-width: 1100px) {
  .kpis { width: 300px; }
  .journey { width: 320px; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .topbar { position: sticky; }
  .kpis, .journey { position: static; width: auto; margin: 8px 16px; max-height: none; }
  .drawer { position: static; margin: 8px 16px 0; border-radius: var(--radius); }
  .drawer.collapsed { transform: none; }
  #scene { position: relative; height: 60vh; }
  #labels { position: absolute; height: 60vh; }
}

/* ---------- pitch mode (guided story) ---------- */
.views button.pitch { background: rgba(57,135,229,0.22); border-color: rgba(57,135,229,0.6); color: #e6edf7; font-weight: 600; }
.views button.pitch.running { background: var(--accent); color: #fff; }
.story {
  position: fixed; left: 16px; top: 86px; width: 420px; z-index: 6;
  background: var(--panel); border: 1px solid rgba(57,135,229,0.5); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 14px;
  max-height: calc(100vh - 86px - 64px); overflow: auto;
}
.story[hidden] { display: none; }
.story-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.story-step { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.story-head b { font-size: 14px; line-height: 1.3; flex: 1; }
.story-close { background: transparent; border: none; color: var(--muted); font-size: 14px; padding: 2px 6px; }
.story-body { font-size: 12.5px; color: #c3cbd8; }
.story-body p { margin: 0 0 8px; }
.story-body ul.plain { margin: 0 0 8px; }
.story-body .big { font-family: var(--mono); font-size: 20px; color: var(--text); margin: 4px 0; }
.story-body .big small { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.story-body .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 6px 0 10px; }
.story-body .grid2 div { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.story-body .grid2 .lab { font-size: 10.5px; color: var(--muted); }
.story-body .bad { color: #ff8a8a; } .story-body .good { color: #4ade80; }
.story-nav { display: flex; gap: 6px; margin-top: 10px; }
.story-nav button { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); border-radius: 7px; padding: 7px 8px; font-size: 12.5px; }
.story-nav button.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
ul.plain { margin: 0; padding-left: 18px; font-size: 12.5px; color: #c3cbd8; }
ul.plain li { margin-bottom: 4px; }

/* ---------- savings simulation tab ---------- */
.sim-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim-chart-title { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.sim-charts .chart-wrap canvas { height: 150px; }
.sim-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; }
.sim-controls button { background: rgba(57,135,229,0.2); border: 1px solid rgba(57,135,229,0.5); border-radius: 7px; padding: 5px 10px; font-size: 12px; }
.sim-controls .mono { font-family: var(--mono); color: var(--muted); }
#simAssumptions input { width: 86px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text); font-family: var(--mono); font-size: 12px; padding: 3px 6px; }
#simAssumptions td.basis { color: var(--muted); font-size: 11.5px; }
#simResults td.hl { color: #4ade80; font-weight: 600; }
body.pitch-on .journey { left: 452px; width: 330px; }
@media (max-width: 860px) { .story { position: static; width: auto; margin: 8px 16px; max-height: none; } .sim-charts { grid-template-columns: 1fr; } }

/* ---------- Simulate & explain (narrated walkthrough) ---------- */
.views button.simulate { background: var(--good); color: #fff; font-weight: 700; padding: 6px 14px; }
.views button.simulate:hover { background: #12b812; color: #fff; }
.views button.simulate.running { background: var(--crit); }
.views button.primary.small { font-weight: 500; }
.explain {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); z-index: 7;
  background: rgba(13, 20, 36, 0.94); border: 1px solid rgba(12,163,12,0.55); border-radius: 14px;
  backdrop-filter: blur(14px); box-shadow: 0 16px 50px rgba(0,0,0,0.55); padding: 14px 18px 12px;
}
.explain[hidden] { display: none; }
.ex-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ex-step { font-family: var(--mono); font-size: 11px; color: #4ade80; white-space: nowrap; }
.ex-title { font-size: 15px; line-height: 1.25; }
.ex-spacer { flex: 1; }
.ex-icon { background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); border-radius: 7px; padding: 4px 8px; font-size: 13px; }
.ex-icon.off { opacity: 0.5; }
.ex-chip { background: rgba(57,135,229,0.18); border: 1px solid rgba(57,135,229,0.5); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.ex-text { margin: 4px 0 8px; font-size: 17px; line-height: 1.5; color: var(--text); }
.ex-text b { color: #4ade80; }
.ex-text .bad { color: #ff8a8a; }
.ex-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.ex-fill { height: 100%; width: 0; background: var(--good); transition: width 0.25s linear; }
.ex-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ex-nav button { background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 14px; font-size: 13px; }
.ex-nav button.primary { background: var(--good); border-color: transparent; color: #fff; font-weight: 600; margin-left: auto; }
.ex-hint { font-size: 11px; color: var(--muted); }
.ex-flow { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.ex-flow[hidden] { display: none; }
.ex-flow span { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.ex-flow span.on { background: rgba(12,163,12,0.2); border-color: var(--good); color: #e6edf7; }
.ex-flow span.done { color: #c3cbd8; border-color: rgba(12,163,12,0.4); }
.lbl.callout {
  font-size: 13px; font-weight: 600; color: var(--text); background: rgba(13,20,36,0.92); border: 1px solid rgba(250,178,25,0.7);
  border-radius: 9px; padding: 6px 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); text-shadow: none; white-space: normal; max-width: 260px; line-height: 1.3;
}
.lbl.callout small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.lbl.callout.red { border-color: rgba(208,59,59,0.8); } .lbl.callout.green { border-color: rgba(12,163,12,0.8); } .lbl.callout.blue { border-color: rgba(57,135,229,0.8); }
.glossary {
  position: fixed; left: 16px; top: 86px; width: 360px; z-index: 8; max-height: calc(100vh - 86px - 64px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 12px 14px;
}
.glossary[hidden] { display: none; }
.gl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.glossary dl { margin: 0; font-size: 12.5px; }
.glossary dt { font-weight: 600; margin-top: 8px; color: #4ade80; }
.glossary dd { margin: 2px 0 0; color: #c3cbd8; }
body.explain-on .kpis { opacity: 0.55; } body.explain-on .kpis:hover { opacity: 1; }
body.explain-on .hint { display: none; }
@media (max-width: 860px) { .explain { position: static; transform: none; width: auto; margin: 8px 16px; } .glossary { position: static; width: auto; margin: 8px 16px; max-height: none; } }
