/* Dashboards page. nG theme: navy chrome (top bar, rail, panel header) around a light map, light panels, the orange of
 * the logo for what is active. NG Display for the wordmark, titles and the big numbers; Nunito Sans for everything else. */

@font-face { font-family: "NG Display"; src: url("/static/vendor/ng/NGDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NG Mono"; src: url("/static/vendor/ng/NGMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("/static/vendor/ng/nunito-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("/static/vendor/ng/nunito-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url("/static/vendor/ng/nunito-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url("/static/vendor/ng/nunito-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("/static/vendor/ng/nunito-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("/static/vendor/ng/nunito-sans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #327ea4; --blue-tri: #4187aa; --navy: #123d70; --orange: #f1a148; --on-orange: #3a2400;
  --page: #f4f6f8; --input: #f2f7fa; --line: #c9d8e2; --hair: #e6edf2; --muted: #6b7c8c; --text: #1f2a33;
  --dark: #111c22; --chrome: #0f2236; --chrome-ink: #a9bfce;
  --good: #1f8a5b; --bad: #c9412b;
  --card: 0 2px 10px rgba(18, 61, 112, .1); --float: 0 10px 34px rgba(15, 34, 54, .26); --glow: 0 0 6px rgba(241, 161, 73, .5);
  --bar-h: 52px; --rail-w: 60px; --dock-w: 384px; --ease: cubic-bezier(.3, .7, .2, 1);
  --op: transparent;
  --display: "NG Display", "Nunito Sans", system-ui, sans-serif;
  --tri: url("/static/vendor/ng/ng-triangles.svg");
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; overflow: hidden; background: var(--chrome); color: var(--text);
  font: 14px/1.45 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-family: "NG Mono", ui-monospace, Menlo, Consolas, monospace; }
.up { color: var(--good); }
.down { color: var(--bad); }

/* ---------- opening screen: the nG triangles, once ---------- */

.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; padding-left: 12vw; background: var(--dark);
  transition: opacity .55s ease, visibility .55s; }
.boot::after { content: ""; position: absolute; top: 0; right: 0; width: 18vw; height: 58vh; background: var(--tri) no-repeat right top / contain; opacity: .9; }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-word { font: 400 clamp(64px, 9vw, 136px)/1 var(--display); color: var(--blue); }
.boot-note { margin-top: 20px; color: #8fa6b6; font-size: 17px; }
.boot.failed .boot-note { color: #ffd9a8; max-width: 46ch; }
.word-i { background: linear-gradient(to bottom, var(--orange) 0 34%, var(--blue) 34%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */

.bar { position: relative; z-index: 30; flex: none; height: var(--bar-h); display: flex; align-items: center; gap: 24px; padding: 0 18px 0 22px;
  background: var(--chrome); color: #dbe6ee; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent 22%, var(--op) 42%, var(--op) 58%, transparent 78%); }
.word { font: 400 28px/1 var(--display); color: var(--blue); text-decoration: none; padding-bottom: 3px; }
.tabs { display: flex; height: 100%; gap: 2px; }
.tab { display: flex; align-items: center; padding: 0 12px; color: #9fb4c3; font-weight: 600; text-decoration: none; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }
.bar-link { margin-left: auto; color: #9fb4c3; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.bar-link:hover { color: #fff; box-shadow: var(--glow); }

.viewas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.viewas-btn { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 290px; padding: 0 12px 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: #fff; transition: box-shadow .15s, border-color .2s; }
.viewas-btn:hover { box-shadow: var(--glow); border-color: var(--orange); }
.viewas-label { color: var(--chrome-ink); font-size: 13px; }
.viewas-chip { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #9fb4c3; }
.viewas.has-op .viewas-chip { border-color: #fff; }
.viewas.has-op .viewas-btn { border-color: var(--op); background: color-mix(in srgb, var(--op) 16%, rgba(255, 255, 255, .06)); }
.viewas-name { flex: 1; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-weight: 700; font-size: 15.5px; }
.viewas-caret { width: 12px; height: 12px; color: var(--chrome-ink); }
.viewas-pop { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); width: 456px; padding: 12px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: var(--float); }
.viewas-input { width: 100%; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--input); outline: 0; }
.viewas-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50, 126, 164, .18); }
.viewas-cols { display: grid; grid-template-columns: 1fr 96px 96px; gap: 10px; padding: 10px 12px 4px 34px; font-size: 12px; color: var(--muted); }
.viewas-cols span + span { text-align: right; }
.viewas-list { max-height: min(548px, 66vh); overflow-y: auto; scrollbar-width: thin; }
.va-row { display: grid; grid-template-columns: 14px 1fr 96px 96px; align-items: center; gap: 10px; width: 100%; padding: 7px 12px 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; }
.va-row.active, .va-row:hover { background: var(--input); }
.va-row[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--orange); }
.va-row .chip { width: 12px; height: 12px; border-radius: 50%; }
.va-row .ic { width: 16px; height: 16px; margin-left: -2px; color: var(--muted); }
.va-all .va-name { grid-column: 2 / -1; }
.va-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.va-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.va-n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.pop-msg { margin: 0; padding: 14px 12px; color: var(--muted); }

/* ---------- stage: map, dock, controls, rail ---------- */

.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #dfe6ea; --dock: 0px; --rail: var(--rail-w); }
.stage.dock-open { --dock: var(--dock-w); }
.stage.rail-off { --rail: 0px; }
.map { position: absolute; inset: 0 var(--rail) 0 0; }
.map .maplibregl-ctrl-attrib { font: 11px/1.4 "Nunito Sans", sans-serif; }

.dock { position: absolute; z-index: 12; inset: 0 auto 0 0; width: var(--dock-w); transform: translateX(-100%); transition: transform .26s var(--ease); }
.stage.dock-open .dock { transform: none; }
.stage:not(.dock-open) .dock-inner { box-shadow: none; }
.dock-inner { height: 100%; display: flex; flex-direction: column; background: var(--page); box-shadow: 2px 0 18px rgba(15, 34, 54, .22); }
.dock-handle { position: absolute; left: 100%; top: 108px; width: 22px; height: 54px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0 10px 10px 0;
  background: #fff; color: var(--navy); box-shadow: 4px 1px 8px rgba(15, 34, 54, .18); }
.dock-handle:hover { box-shadow: var(--glow); }
.dock-handle .ic { width: 16px; height: 16px; }
.stage.dock-none .dock-handle { display: none; }

.dock-head { position: relative; flex: none; min-height: 96px; padding: 11px 98px 14px 20px; overflow: hidden;
  color: #fff; background: var(--chrome) var(--tri) no-repeat right -4px top / 96px auto; }
.crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 7px -6px; font-size: 12.5px; line-height: 1.2; color: var(--chrome-ink); white-space: nowrap; }
.crumbs button { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: #fff; font-weight: 700; }
.crumbs button .ic { width: 14px; height: 14px; margin-left: -3px; }
.crumbs button:hover { background: rgba(255, 255, 255, .14); }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; }
.dock-row { display: flex; align-items: flex-start; gap: 10px; }
.svc { display: inline-flex; margin-top: 11px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .13); }
.svc button { padding: 5px 11px; border: 0; border-radius: 999px; background: none; color: #d5e2ea; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.svc button:hover { color: #fff; }
.svc button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.svc.lead { margin-top: 1px; }
.svc.lead button { padding: 7px 12px; font-size: 13px; }
.dock-titles { flex: 1; min-width: 0; }
.dock-titles h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font: 400 24px/1.12 var(--display); }
.dock-titles h1 .chip { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; }
.dock-titles p em { display: inline-block; margin-right: 7px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-style: normal; font-weight: 700; font-size: 12px; }
.dock-titles p { margin: 7px 0 0; font-size: 13px; line-height: 1.35; color: var(--chrome-ink); }
.dock-back, .dock-act, .icon-btn { flex: none; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(15, 34, 54, .5); color: #fff; }
.dock-back { margin-top: -3px; }
.dock-back:hover, .dock-act:hover, .icon-btn:hover { box-shadow: var(--glow); border-color: var(--orange); }
.dock-back .ic, .dock-act .ic, .icon-btn .ic { width: 17px; height: 17px; }

.dock-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 16px 22px; scrollbar-width: thin; scrollbar-color: #c3d0da transparent; }
.sec { margin-top: 12px; padding: 14px 16px 15px; border-radius: 14px; background: #fff; box-shadow: var(--card); }
.sec.bare { padding: 0; background: none; box-shadow: none; }
.sec h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--navy); }
.lead { margin: 11px 2px 0; font-size: 13.5px; color: #3c4b57; }
.hint { margin: 9px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hint.pad { margin: 14px 4px 0; }
.map-hint { margin: 12px 4px 0; }
.note { margin: 10px 0 0; padding: 8px 11px; font-size: 13px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; background: #fff6e8; }
.link { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 4px; border: 0; background: none; color: var(--blue); font-weight: 700; }
.link:hover { color: var(--navy); }
.link.quiet { margin-top: 8px; padding: 2px 4px; font-size: 12.5px; font-weight: 600; text-align: left; }
.n { text-decoration: none; cursor: default; }
.link .ic { width: 15px; height: 15px; }
.btn { border: 0; border-radius: 999px; padding: 9px 18px; background: var(--blue); color: #fff; font-weight: 700; }
.btn:hover { box-shadow: var(--glow); }
.btn.small { padding: 6px 14px; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; transition: box-shadow .15s; }
.chip-btn:hover { border-color: var(--orange); box-shadow: var(--glow); }
.chip-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }

.lead-card { position: relative; overflow: hidden; padding: 14px 16px 14px 21px; border-radius: 14px; background: #fff; box-shadow: var(--card); }
.lead-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--blue); }
.lead-card.op::before { background: var(--op); }
.lead-card span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.lead-card b { display: block; margin: 3px 0 4px; font: 400 36px/1.05 var(--display); color: var(--navy); }
.lead-card small { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis.three .kpi { padding-left: 10px; padding-right: 8px; }
.kpis.three .kpi b { font-size: 20px; }
.kpi { min-width: 0; padding: 10px 12px 11px; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(18, 61, 112, .09); }
.kpi span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; margin: 1px 0; font: 400 22px/1.15 var(--display); color: var(--navy); white-space: nowrap; }
.kpi small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.kpi.up b { color: var(--good); }
.kpi.down b { color: var(--bad); }

.bars { display: grid; gap: 1px; margin: 0 -6px; }
.bar-row { display: grid; grid-template-columns: 116px 1fr auto auto; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; }
button.bar-row:hover { background: var(--input); }
.bar-row.sel { font-weight: 700; background: color-mix(in srgb, var(--op) 13%, #fff); box-shadow: inset 3px 0 0 var(--op); }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 5px; background: #edf2f6; overflow: hidden; }
.bar-track i { display: block; height: 100%; min-width: 2px; border-radius: 5px; }
.bar-val { min-width: 42px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-val.wide { min-width: 66px; }
.bars.uf .bar-row { grid-template-columns: 30px 1fr auto auto; }
.bars.uf .bar-name { font-weight: 700; }
.delta { min-width: 46px; text-align: right; font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
small .delta { min-width: 0; margin-left: 6px; font-size: 13px; font-weight: 700; }

.chart { margin: 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.chart-key span { margin-right: 10px; color: var(--muted); white-space: nowrap; }
.chart-key i { display: inline-block; width: 11px; height: 3px; margin-right: 5px; border-radius: 2px; vertical-align: middle; }
.chart-read { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-read b { font-weight: 600; color: var(--muted); }
.chart-read span { margin-left: 9px; font-weight: 700; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.chart .grid { stroke: var(--hair); }
.chart .tick { stroke: var(--line); }
.chart .ax { font: 11px "Nunito Sans", sans-serif; fill: var(--muted); }
.chart .ay { text-anchor: end; }
.chart .ax-x { text-anchor: middle; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .14; }
.chart .cursor line { stroke: var(--navy); stroke-dasharray: 2 3; }
.chart .cursor circle { stroke: #fff; stroke-width: 1.5; }

.mix { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.mix-key { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: 13px; }
.mix-key li { display: flex; align-items: center; gap: 7px; }
.mix-key i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.mix-key b { margin-left: auto; font-variant-numeric: tabular-nums; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 4px 4px 5px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); }
.tbl td { padding: 6px 4px; border-top: 1px solid #edf2f6; vertical-align: top; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl small { color: var(--muted); white-space: nowrap; }
.tbl.compact td { padding: 5px 4px; }
.tbl.click tbody tr { cursor: pointer; }
.tbl.click tbody tr:hover { background: var(--input); }
.tbl.kv th { width: 37%; padding: 6px 8px 6px 0; border-top: 1px solid #edf2f6; vertical-align: top; font-size: 12.5px; }
.tbl.kv tr:first-child th, .tbl.kv tr:first-child td { border-top: 0; }
.tbl td.full { color: var(--good); font-weight: 700; }
.tbl td.none { color: var(--muted); }
.tbl .delta { min-width: 0; }
.crown { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }
.crown.off { background: none; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; }
.dot.good { background: var(--good); }
.dot.warn { background: var(--orange); }
.dot.info { background: var(--blue); }
.fact { display: flex; align-items: baseline; margin: 0 0 8px; font-size: 13.5px; }
.sub { margin: 12px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--navy); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #e3eaf0; }
.seg button { border: 0; border-radius: 999px; padding: 5px 14px; background: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(18, 61, 112, .22); }
.seg.wide { display: flex; margin-bottom: 10px; }
.seg.wide button { flex: 1; padding: 7px 10px; }
.patch p { margin: 0; font-size: 13px; }
.patch .seg { margin-top: 10px; }
.ramp { display: flex; height: 8px; margin: 0 0 9px; border-radius: 4px; overflow: hidden; }
.ramp i { flex: 1; }

.bars.road .bar-row { grid-template-columns: 128px 1fr auto auto; }
.bars.road .delta { min-width: 68px; }
.city-hint { display: flex; align-items: center; gap: 10px; margin: 12px 2px 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.city-hint span { flex: 1; }
.city-hint button { flex: none; padding: 4px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.city-hint button:hover { border-color: var(--orange); box-shadow: var(--glow); }
.group { margin: 22px 4px -2px; font: 400 15px/1.2 var(--display); color: var(--navy); }
.sec h3 small { margin-left: 5px; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sec h3.next { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf2f6; }
.gap { margin-top: 12px; }
.hint.flat { margin: 0; }
.hint .dot { margin-right: 5px; }
.nw { margin-right: 8px; white-space: nowrap; }
.dot.bad { background: var(--bad); }
.kpi.op { box-shadow: inset 3px 0 0 var(--op), 0 1px 4px rgba(18, 61, 112, .09); }
.kpi.op span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-head, .bars.rep .bar-row { grid-template-columns: 84px 1fr 40px 44px 36px; }
.bar-head { display: grid; gap: 8px; margin-top: 12px; padding: 0 0 2px; font-size: 11px; color: var(--muted); }
.bar-head span { text-align: right; white-space: nowrap; }
.bars.rep em { font-style: normal; font-size: 12px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars.rep .bar-val { min-width: 0; }
.bars.subj .bar-row { grid-template-columns: 1fr 84px auto; }
.bars.sat .bar-row { grid-template-columns: 112px 1fr auto; }
.bars.sat .avg { color: var(--muted); font-style: italic; }
.plain { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.plain li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 2px; border-top: 1px solid #edf2f6; }
.plain.tight { margin: 0; }
.plain.tight li { padding: 2px 0; border: 0; }
.ws { padding: 9px 0 10px; border-top: 1px solid #edf2f6; font-size: 13px; line-height: 1.45; }
.ws:first-of-type { padding-top: 0; border-top: 0; }
.ws h4 { margin: 0 0 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ws small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.qual { width: calc(100% + 6px); margin: 0 -3px; border-collapse: separate; border-spacing: 3px; font-size: 12.5px; }
.qual th { padding: 4px 4px 4px 3px; text-align: left; font-size: 12px; font-weight: 600; line-height: 1.25; }
.qual thead th { padding: 2px 0 5px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy); }
.qual thead th.mine { box-shadow: inset 0 -3px 0 var(--op); }
.qual th small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.qual td { width: 47px; padding: 7px 2px; border-radius: 6px; background: #f2f5f8; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qual td.good { background: #dcf1e6; color: #166443; }
.qual td.warn { background: #fdebd0; color: #8a4b00; }
.qual td.bad { background: #f9dcd6; color: #9c2b17; }
.qual td.best { box-shadow: inset 0 0 0 1.5px var(--blue); }
.qual td.weak { opacity: .5; font-weight: 400; }
.seals { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.seal-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.seal-item.sel { font-weight: 700; }
.seal { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: #b8c2cc; color: #fff; font-size: 12.5px; font-weight: 700; }
.seal.s-A { background: #2e8b57; }
.seal.s-B { background: #6fb07f; }
.seal.s-C { background: #d9a400; }
.seal.s-D { background: #e36b1e; }
.seal.s-E { background: #c9302c; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); }
.commit { list-style: none; max-height: 330px; margin: 8px 0 0; padding: 0; overflow-y: auto; scrollbar-width: thin; }
.commit li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid #edf2f6; font-size: 12.5px; line-height: 1.35; }
.commit b { display: block; font-size: 13px; }
.commit span { display: block; }
.commit small { display: block; font-size: 11.5px; color: var(--muted); }
.commit-r { flex: none; text-align: right; }
.st { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e3eaf0; color: var(--navy); font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.st.open { background: #fdebd0; color: #8a4b00; }
.st.done { background: #dcf1e6; color: #166443; }
.st.late { background: #f9dcd6; color: #9c2b17; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.places { min-width: 0; }
.places h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.place { display: flex; justify-content: space-between; gap: 6px; width: 100%; padding: 4px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 12.5px; }
.place:hover { background: var(--input); }
.place span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place small { color: var(--muted); }
.place b { font-variant-numeric: tabular-nums; }

.src { margin: 16px 4px 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.src h4, .src summary { margin: 0 0 2px; font-size: 12px; font-weight: 700; }
.src summary { cursor: pointer; }
.src ul { list-style: none; margin: 0; padding: 0; }
.src li + li { margin-top: 2px; }
.src li span { white-space: nowrap; }

.state { margin-top: 12px; padding: 20px 20px 22px; border-radius: 14px; background: #fff; box-shadow: var(--card); }
.state h3 { margin: 0 0 6px; font: 400 21px/1.2 var(--display); color: var(--navy); }
.state p { margin: 0; color: #3c4b57; }
.state .btn { margin-top: 14px; }
.state.error { border-left: 4px solid var(--orange); }
.state.brand { min-height: 190px; padding: 26px 112px 24px 20px; background: #fff var(--tri) no-repeat right top / 96px auto; }

.skel { display: grid; gap: 11px; padding: 18px 4px; }
.skel i { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #e3eaf0 0%, #f1f5f8 50%, #e3eaf0 100%) 0 0 / 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

.steps { list-style: none; counter-reset: step; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; counter-increment: step; padding-left: 38px; opacity: .55; }
.steps li.now, .steps li.done { opacity: 1; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #e3eaf0; color: var(--navy); font-weight: 700; }
.steps li.now::before { background: var(--orange); color: var(--on-orange); }
.steps li.done::before { background: var(--blue); color: #fff; }
.steps b { display: block; }
.steps small { color: var(--muted); font-variant-numeric: tabular-nums; }
.route-card { display: flex; gap: 12px; padding: 6px 0 8px; }
.route-card > i { flex: none; width: 5px; border-radius: 3px; }
.route-card span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.route-card b { display: block; font: 400 26px/1.1 var(--display); color: var(--navy); }
.route-card small { color: var(--muted); }
.facts { list-style: none; margin: 6px 0 0; padding: 10px 0 0; display: grid; gap: 7px; border-top: 1px solid #edf2f6; font-size: 13px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li > i { width: 14px; height: 4px; border-radius: 2px; }
.facts b { margin-left: auto; }
.facts .good b { color: var(--good); }
.facts .warn b { color: var(--bad); }

/* ---------- controls over the map ---------- */

.mapctl { position: absolute; z-index: 11; top: 14px; left: calc(var(--dock) + 16px); display: flex; align-items: flex-start; gap: 10px; transition: left .26s var(--ease); }
.stage.dock-open .mapctl { left: calc(var(--dock) + 34px); }
.search { position: relative; display: flex; align-items: center; width: 40px; height: 40px; border-radius: 20px; background: #fff; box-shadow: 0 2px 10px rgba(18, 61, 112, .24); transition: width .22s var(--ease); }
.search.open { width: 520px; }
.search-btn { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--navy); }
.search-btn:hover { box-shadow: var(--glow); }
.home-btn { flex: none; width: 32px; height: 32px; margin-top: 4px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(18, 61, 112, .24); }
.home-btn:hover { box-shadow: var(--glow); }
.home-btn .ic { width: 18px; height: 18px; }
.search-input { flex: 1; min-width: 0; width: 0; padding: 0; border: 0; outline: 0; background: none; font-size: 14.5px; opacity: 0; pointer-events: none; }
.search.open .search-input { padding-right: 18px; opacity: 1; pointer-events: auto; }
.search-results { position: absolute; top: 46px; left: 0; width: 520px; max-height: 62vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--float); }
.sr-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; }
.sr-row.active, .sr-row:hover { background: var(--input); }
.sr-row .ic { width: 18px; height: 18px; color: var(--blue); }
.sr-text { min-width: 0; }
.sr-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.sr-kind { padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); }

.basectl { position: relative; display: flex; height: 32px; margin-top: 4px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(18, 61, 112, .24); }
.base-btn { width: 34px; height: 32px; padding: 0 0 0 2px; display: grid; place-items: center; border: 0; border-radius: 16px 0 0 16px; background: none; color: var(--navy); }
.base-btn .ic { width: 18px; height: 18px; }
.base-btn.on { background: var(--orange); color: var(--on-orange); }
.base-btn:hover, .base-caret:hover { box-shadow: var(--glow); }
.base-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.base-caret { width: 24px; height: 32px; padding: 0 3px 0 0; display: grid; place-items: center; border: 0; border-left: 1px solid var(--hair); border-radius: 0 16px 16px 0; background: none; color: var(--muted); }
.base-caret .ic { width: 13px; height: 13px; }
.base-menu { position: absolute; top: 38px; left: 0; width: 320px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--float); }
.base-menu button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; }
.base-menu button:hover { background: var(--input); }
.base-menu button[aria-checked="true"] { background: var(--input); box-shadow: inset 3px 0 0 var(--orange); }
.base-menu b { display: block; }
.base-menu small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.zoom { height: 26px; margin-top: 7px; padding: 0 10px; display: flex; align-items: center; border-radius: 8px; background: rgba(15, 34, 54, .84); color: #e8f1f6;
  font: 13px/1 "NG Mono", ui-monospace, Menlo, Consolas, monospace; }

.legend { position: absolute; z-index: 10; left: calc(var(--dock) + 16px); bottom: 16px; width: 240px; max-height: min(60%, 540px); overflow-y: auto; padding: 3px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 12px rgba(18, 61, 112, .22); scrollbar-width: thin; transition: left .26s var(--ease); }
.legend section { padding: 10px 0 11px; }
.legend section + section { border-top: 1px solid var(--hair); }
.legend h4 { margin: 0; font-size: 13.5px; line-height: 1.25; color: var(--navy); }
.legend p { margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); }
.legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; line-height: 1.25; }
.sw { flex: none; width: 17px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(15, 34, 54, .12); }
.sw.dot { width: 11px; height: 11px; margin: 0 3px; border-radius: 50%; }
.sw.line { height: 4px; border-radius: 2px; box-shadow: none; }
.sw.hatch { background: repeating-linear-gradient(135deg, #e07f1f 0 2px, #fff 2px 5px); }
.bar-head.emp, .bars.emp .bar-row { grid-template-columns: 96px 1fr 44px 40px; }
.bar-head.sect, .bars.sect .bar-row { grid-template-columns: 164px 1fr 44px 40px; }
.bar-head.emp { margin-top: 10px; padding: 0 6px 2px; }
.bar-head.emp span:first-child { text-align: left; }
.bars.emp .bar-row { padding: 3px 6px; }
.bar-head.emp em, .bars.emp em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars.emp em { font-size: 12px; }
.bars.emp span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips.cut { margin-bottom: 10px; }
.btn.report { margin-top: 10px; }
.spd { margin-top: 6px; }
.spd-head, .spd-row { display: grid; grid-template-columns: 1fr 46px 40px 44px; align-items: end; gap: 8px; padding: 6px 6px 7px; font-size: 13px; border-radius: 8px; }
.spd-head { padding-bottom: 2px; font-size: 11.5px; color: var(--muted); }
.spd-row span { display: block; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spd-row span small { margin-left: 7px; font-size: 11px; font-weight: 400; color: var(--muted); }
.spd-row em { line-height: 12px; }
.spd-row > div { min-width: 0; }
p.plain .link, .fact .link { display: inline; margin: 0; padding: 0; }
p.plain { font-size: 13px; line-height: 1.45; }
.spd-row.sel { font-weight: 700; background: color-mix(in srgb, var(--op) 13%, #fff); box-shadow: inset 3px 0 0 var(--op); }
.spd em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.spd-row em:not(:first-of-type) { font-size: 12px; color: var(--muted); }
.spd-track { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, transparent calc(33.33% - .5px), #c9d4dc 0, #c9d4dc calc(33.33% + .5px), transparent 0, transparent calc(66.66% - .5px), #c9d4dc 0, #c9d4dc calc(66.66% + .5px), transparent 0) #edf2f6; }
.spd-track i { position: absolute; top: 3px; height: 6px; border-radius: 3px; background: #8fbdd4; }
.spd-track b { position: absolute; top: -1px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--navy); }
.spd-axis { display: grid; grid-template-columns: 1fr 146px; gap: 8px; padding: 0 6px; font-size: 11px; color: var(--muted); }
.spd-axis div { display: flex; justify-content: space-between; }
.spd-axis i { font-style: normal; }
.trend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.trend span, .trend small { display: block; font-size: 12px; color: var(--muted); }
.trend b { display: block; margin: 2px 0; font: 400 20px/1.1 var(--display); color: var(--navy); }
.trend-chart { text-align: right; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--navy); }
.ix { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ix span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; color: var(--navy); }
.lyr { list-style: none; margin: 4px 0 0; padding: 0; }
.lyr li + li { border-top: 1px solid var(--line); }
.lyr-row { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 9px 2px; border: 0; background: none; text-align: left; }
.lyr-row:disabled { opacity: .55; }
.lyr-row .sw { flex: none; position: relative; width: 34px; height: 20px; margin-top: 1px; border-radius: 10px; background: #c9d4dc; transition: background .15s; }
.lyr-row .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(18, 61, 112, .35); transition: transform .15s var(--ease); }
.lyr-row[aria-checked="true"] .sw { background: var(--blue); }
.lyr-row[aria-checked="true"] .sw::after { transform: translateX(14px); }
.lyr-row:hover:not(:disabled) .sw { box-shadow: var(--glow); }
.lyr-row b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--navy); }
.lyr-row b .ic { flex: none; width: 16px; height: 16px; color: var(--blue); }
.lyr-row b em { padding: 1px 7px; border-radius: 999px; background: #fdf0de; color: #8a5a12; font-style: normal; font-size: 11px; font-weight: 700; }
.lyr-row small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.lyr details { margin: -3px 0 9px 45px; font-size: 12.5px; color: var(--muted); }
.lyr summary { cursor: pointer; }
.lyr summary:hover { color: var(--navy); }
.rail-btn[data-n] { position: relative; }
.rail-btn[data-n]::after { content: attr(data-n); position: absolute; top: -2px; right: -2px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px; background: var(--orange); color: #0f2236; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.lg-places { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.lg-places button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; }
.lg-places button:hover { border-color: var(--orange); box-shadow: var(--glow); }

.hover { position: absolute; z-index: 13; left: 0; top: 0; max-width: 320px; padding: 8px 12px 9px; border-radius: 8px; pointer-events: none;
  background: rgba(15, 34, 54, .95); color: #fff; font-size: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.hover b { font-size: 14.5px; }
.hover span { margin-left: 7px; font-size: 12px; font-weight: 700; color: var(--chrome-ink); }
.hover p { margin: 3px 0 0; color: #dbe6ee; }
.hover strong { color: #fff; }
.hover p.t { font-size: 12.5px; color: #f6c98f; }

.toast { position: absolute; z-index: 20; left: calc(50% + var(--dock) / 2 - var(--rail) / 2); bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: min(640px, 60%); padding: 9px 10px 9px 18px; border-radius: 22px; background: var(--chrome); color: #fff; font-size: 13.5px; box-shadow: var(--float); }
.toast span { padding: 2px 8px 2px 0; }
.toast button { flex: none; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--orange); color: var(--on-orange); font-weight: 700; white-space: nowrap; }

/* Google's terms: its name and the credit stay visible over the image. */
.imagery { position: absolute; z-index: 9; left: calc(50% + var(--dock) / 2 - var(--rail) / 2); bottom: 8px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 10px;
  pointer-events: none; color: #fff; font-size: 11.5px; white-space: nowrap; text-shadow: 0 0 3px rgba(0, 0, 0, .95), 0 1px 2px rgba(0, 0, 0, .85); }
.imagery-logo { font: 500 20px/1 "Product Sans", "Google Sans", Arial, sans-serif; letter-spacing: -.02em; }

.pin { width: 28px; height: 33px; }
.pin::before { content: ""; position: absolute; left: 2px; top: 0; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--navy); transform: rotate(-45deg); box-shadow: -2px 2px 6px rgba(0, 0, 0, .35); }
.pin::after { content: ""; position: absolute; left: 10px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mk { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .38); }
.mk.origin { background: var(--navy); }
.mk.dest { background: var(--orange); color: var(--on-orange); }
.mk.here { width: 18px; height: 18px; background: var(--orange); box-shadow: 0 0 0 6px rgba(241, 161, 72, .32), 0 2px 6px rgba(0, 0, 0, .38); }
.pop .maplibregl-popup-content { padding: 12px 14px 13px; border-radius: 14px; font: 13.5px/1.4 "Nunito Sans", sans-serif; color: var(--text); box-shadow: var(--float); }
.pop .maplibregl-popup-close-button { top: 4px; right: 6px; font-size: 18px; color: var(--muted); }
.pop b { display: block; padding-right: 18px; font-size: 14.5px; }
.pop small { color: var(--muted); }
.pop-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pop-form label { font-weight: 700; }
.pop-form input { width: 88px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--input); outline: 0; }
.pop-form input:focus { border-color: var(--blue); }
.pop-note { margin: 8px 0 0; font-size: 12.5px; color: var(--navy); }
.pop-tbl { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.pop-tbl th { padding: 3px 10px 3px 0; text-align: left; vertical-align: top; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pop-tbl td { padding: 3px 0; }

/* ---------- rail ---------- */

.rail { position: absolute; z-index: 14; inset: 0 0 0 auto; width: var(--rail-w); display: flex; flex-direction: column; padding: 6px 0 10px; overflow-y: auto; scrollbar-width: none;
  background: var(--chrome); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07); transition: transform .22s var(--ease); }
.rail::-webkit-scrollbar { display: none; }
.stage.rail-off .rail { transform: translateX(100%); }
.rail-group { position: relative; flex: none; padding: 7px 0; }
.rail-group + .rail-group { border-top: 1px solid rgba(255, 255, 255, .1); }
.rail-title { position: absolute; left: 4px; top: 0; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; white-space: nowrap; font: 400 10.5px/1 var(--display); letter-spacing: .06em; color: #7f99ab; user-select: none; }
.rail-btns { display: grid; justify-items: center; gap: 3px; padding-left: 13px; }
.rail-btn { width: 38px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--chrome-ink);
  transition: box-shadow .15s, color .15s, background .15s; }
.rail-btn .ic { width: 21px; height: 21px; }
.rail-btn:hover { color: #fff; border-color: rgba(241, 161, 73, .75); box-shadow: var(--glow); }
.rail-btn.k-tool[aria-pressed="true"] { background: var(--blue); color: #fff; }
.rail-btn.k-layer[aria-pressed="true"], .rail-btn.k-toggle[aria-pressed="true"] { color: var(--orange); border-color: rgba(241, 161, 72, .6); background: rgba(241, 161, 72, .15); }
.rail-btn[aria-disabled="true"] { opacity: .3; cursor: not-allowed; border-color: transparent; box-shadow: none; }
.rail-handle { position: absolute; z-index: 13; right: 0; top: 50%; width: 18px; height: 56px; padding: 0; transform: translateY(-50%); display: none; place-items: center;
  border: 0; border-radius: 10px 0 0 10px; background: var(--chrome); color: #fff; }
.rail-handle .ic { width: 14px; height: 14px; }
.stage.rail-off .rail-handle { display: grid; }
.railtip { position: fixed; z-index: 50; transform: translateY(-50%); max-width: 330px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: var(--chrome); color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

/* ---------- "Sobre os dados" ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(15, 34, 54, .58); }
.modal-card { width: min(880px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--page); box-shadow: 0 30px 80px rgba(0, 0, 0, .42); }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 22px; color: #fff; background: var(--chrome) var(--tri) no-repeat right 76px top / 86px auto; }
.modal-head h2 { margin: 0; font: 400 26px/1 var(--display); }
.modal-body { overflow-y: auto; padding: 4px 24px 26px; }
.modal-body section { margin-top: 20px; }
.modal-body h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--navy); }
.modal-body p { max-width: 76ch; margin: 0 0 8px; }
.modal-body .tbl { background: #fff; border-radius: 8px; box-shadow: var(--card); }
.modal-body .tbl th, .modal-body .tbl td { padding: 7px 12px; }
.defs { display: grid; grid-template-columns: 170px 1fr; gap: 7px 18px; margin: 0; }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; max-width: 70ch; }

@media (max-height: 860px) {
  .rail-title { font-size: 9.5px; letter-spacing: .02em; }
  .rail-btn { width: 34px; height: 29px; border-radius: 8px; }
  .rail-btn .ic { width: 18px; height: 18px; }
  .rail-btns { gap: 2px; }
  .rail-group { padding: 5px 0; }
  .rail { padding: 2px 0 4px; }
}
@media (max-width: 1240px) {
  .viewas { position: static; transform: none; margin-left: auto; }
  .viewas-pop { left: auto; right: 60px; transform: none; }
  .viewas-btn { min-width: 250px; }
  .bar-link { margin-left: 0; }
  .search.open, .search-results { width: min(520px, calc(100vw - var(--dock) - 260px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
