/* ==========================================================================
   DX — innerpulse layer (Carbon / Paper)
   Loaded last, after style.css (tokens, base) and atlas.css (layout, components).
   Everything here follows innerpulse-brand: the chrome masthead, the small mark,
   the atmosphere behind page heads, glass panels with an index tick, the brand
   buttons, and the motion. Cyan is the family accent; ember is the mark, focus
   rings, the current tab and the one filled action per view.

   1. The mark            6. Panels & cards        11. Motion
   2. Masthead            7. Controls              12. Phone tab bar
   3. Telemetry strip     8. Menus & dialogs       13. Narrow screens
   4. Side navigation     9. Home                  14. Reduced motion & print
   5. Page head          10. Atmosphere
   ========================================================================== */

:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-1: .18s;                 /* what the pointer caused */
  --dur-2: .4s;                  /* a panel, a gliding figure */
  --mast-h: 62px;
  --ip-mark: #f43a2a;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ember);
}
html[data-theme="light"] { --ip-mark: #cf2a1c; }

::selection { background: color-mix(in srgb, var(--cyan) 30%, transparent); color: var(--txt-bright); }
html { scrollbar-color: var(--scrollbar-thumb) transparent; scrollbar-width: thin; }
body { font-feature-settings: "ss01", "cv05"; letter-spacing: -.003em; }
/* the ground is painted on <html>, so the vignette (z-index -1) can sit between it and the page */
body { background: transparent; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: var(--rad-sm);
  background: var(--panel-elevated); color: var(--txt-bright); border: 1px solid var(--line-strong);
  font: 600 12.5px var(--sans); transition: top var(--dur-1) var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Focus is ember everywhere, drawn as a ring that clears the ground. */
:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 2px; border-radius: var(--rad-sm);
}
a:hover { filter: none; }

/* ---------- 1. The mark ---------------------------------------------------
   Under 32 px the mark is the small mark: six bars, one flat ember, no
   container and no glow (deep ember on Paper). In the masthead the reading is
   taken once on load, bar by bar; after that it beats only while the site is
   fetching (html.ip-busy, set by js/ui.js). */
.ip-chrome-mark { display: block; width: 30px; height: 30px; flex: none; }
.ip-chrome-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ip-chrome-mark rect { fill: var(--ip-mark); transform-box: fill-box; transform-origin: center;
  animation: ip-draw-in .55s cubic-bezier(.22, 1, .36, 1) 1 both; animation-delay: calc(var(--i, 0) * .09s); }
.ip-busy .ip-chrome-mark rect { animation: ip-beat 2.4s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i, 0) * .06s); }
.ip-chrome-mark rect:nth-child(1), .ip-chrome-mark rect:nth-child(6) { --ip-from: 1; }
.ip-chrome-mark rect:nth-child(2) { --ip-from: .146; }
.ip-chrome-mark rect:nth-child(3) { --ip-from: .232; }
.ip-chrome-mark rect:nth-child(4) { --ip-from: .360; }
.ip-chrome-mark rect:nth-child(5) { --ip-from: .214; }
@keyframes ip-draw-in { from { transform: scaleY(var(--ip-from, 1)); } to { transform: scaleY(1); } }
@keyframes ip-beat { 0%, 19%, 100% { fill: var(--ip-mark); } 9.5% { fill: var(--hot); } }
.ip-paused .ip-chrome-mark rect { animation-play-state: paused; }

/* the product wordmark: brushed steel on Carbon, gunmetal on Paper */
.ip-chrome-word { position: relative; display: block; line-height: 0; }
.ip-chrome-word svg { display: block; height: 22px; width: auto; overflow: visible; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.ip-chrome-word path { fill: url(#ip-steel) var(--txt); stroke: rgba(255, 255, 255, .22); stroke-width: .8; paint-order: stroke; }
html[data-theme="light"] .ip-chrome-word svg { filter: none; }
html[data-theme="light"] .ip-chrome-word path { fill: url(#ip-steel-ink) var(--txt); stroke: none; }

/* one sheen pass across the wordmark on hover or keyboard focus */
.ip-chrome-word::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: url(../assets/brand/dx-wordmark-mask.svg) center / 100% 100% no-repeat;
  mask: url(../assets/brand/dx-wordmark-mask.svg) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
html[data-theme="light"] .ip-chrome-word::after { mix-blend-mode: overlay; }
.ip-chrome:hover .ip-chrome-word::after,
.ip-chrome:focus-visible .ip-chrome-word::after { animation: ip-chrome-sheen 1.1s cubic-bezier(.4, 0, .2, 1) 1; }
@keyframes ip-chrome-sheen { from { background-position: 130% 0; opacity: 1; } to { background-position: -30% 0; opacity: 1; } }

/* the quiet signature: the small mark at 14 px, static, beside the word */
.ip-credit-glyph { flex: none; width: 14px; height: 14px; }
.ip-credit-glyph rect { fill: var(--ip-mark); animation: none; }
#sidenav .nav-foot .ip-credit {
  display: flex; width: fit-content; align-items: center; gap: 6px; margin: 8px 0 0; padding: 0; background: none; border: 0; box-shadow: none;
  font: 400 11.5px var(--mono); letter-spacing: .02em; color: var(--dim-subtle); text-decoration: none; transition: color var(--dur-1);
}
#sidenav .nav-foot .ip-credit:hover { color: var(--txt); background: none; }
#sidenav .nav-foot .ip-credit::before { content: none; }
#sitefoot .sf-left { display: flex; align-items: center; gap: 14px; color: var(--dim); text-decoration: none; }
#sitefoot .sf-left innerpulse-mark { display: block; flex: none; }
#sitefoot .sf-credit { display: grid; gap: 2px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
#sitefoot .sf-credit b { font: 700 17px var(--display); letter-spacing: -.03em; text-transform: none; color: var(--txt); }
#sitefoot .sf-left:hover .sf-credit span { color: var(--txt); }
.colophon { display: flex; align-items: center; gap: 20px; padding: 4px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.colophon img { flex: none; border-radius: 0; }
.colophon div { display: grid; gap: 4px; }
.colophon-k { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.colophon b { font: 700 24px var(--display); letter-spacing: -.03em; color: var(--txt); }
.colophon a { font: 400 12.5px var(--mono); color: var(--cyan); width: fit-content; }

/* ---------- 2. Masthead ---------------------------------------------------
   Sticky, full width, opaque: the page ground with a hairline foot. */
#topbar {
  top: 0; height: var(--mast-h); min-height: var(--mast-h); padding: 0 16px; gap: 14px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
#brand { gap: 10px; text-decoration: none; }
#brand .brand-text b {
  font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim-subtle); padding-left: 10px; border-left: 1px solid var(--line-strong);
}

#navToggle, .top-glyph-btn {
  width: 36px; height: 36px; padding: 0; border-radius: var(--rad-sm);
  background: transparent; border: 1px solid transparent; color: var(--dim);
  transition: color var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}
#navToggle { display: inline-flex; border-color: var(--line); }
#navToggle:hover, .top-glyph-btn:hover { background: var(--panel-elevated); border-color: var(--line); color: var(--txt-bright); transform: none; box-shadow: none; }
#navToggle:active, .top-glyph-btn:active { background: var(--surface-3); transition-duration: 0s; }
.topbar-glyphs { gap: 2px; }

.header-search-wrap {
  height: 36px; padding: 0 10px; gap: 8px; border-radius: var(--rad-sm);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color var(--dur-1), box-shadow var(--dur-1), background var(--dur-1);
}
.header-search-wrap:hover { border-color: var(--line-strong); }
.header-search-wrap:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 18%, transparent); background: var(--panel-elevated); }
.header-search-wrap input { background: none; border: 0; border-radius: 0; }
#headerSearchInput { width: 200px; font-size: 13px !important; }
#headerSearchInput:focus { width: 300px; }
#headerSearchInput::placeholder { color: var(--dim-subtle); }
.header-search-wrap kbd { font: 500 11px var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; color: var(--dim-subtle); padding: 1px 6px; }

#qthChip {
  height: 36px; padding: 0 12px; gap: 8px; border-radius: var(--rad-sm);
  border: 1px solid var(--line); background: transparent; font-size: 12.5px;
}
#qthChip:hover { border-color: var(--line-strong); background: var(--panel-elevated); }
#qthChip #qthGrid { color: var(--txt-bright); font-weight: 600; }
#qthChip .qth-icon { color: var(--cyan); }
.qth-icon svg { opacity: 1; }

/* ---------- 3. Telemetry strip --------------------------------------------
   A readout row, one line of figures: mono caption, the figure, its qualifier
   and a sparkline. Half the height of the old strip, on every page. */
#kpiStrip { background: var(--bg); border-top: 0; border-bottom: 1px solid var(--line); padding: 0 16px; }
.kpi {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "cap cap cap spark" "fig q . spark";
  align-items: baseline; column-gap: 8px; row-gap: 5px; padding: 9px 16px 10px; border-right: 1px solid var(--line2);
  position: relative; border-radius: 0; box-shadow: none;
}
.kpi:first-child { padding-left: 4px; }
.kpi:hover { background: var(--panel); transform: none; }
.kpi label { grid-area: cap; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dim-subtle); }
.kpi .kpi-row { display: contents; }
.kpi b { grid-area: fig; font: 500 16px/1 var(--mono); letter-spacing: -.02em; color: var(--txt-bright); font-variant-numeric: tabular-nums; }
.kpi .kpi-unit { font: 400 11.5px var(--mono); color: var(--dim-subtle); margin-left: 4px; letter-spacing: 0; }
.kpi .trend { grid-area: q; margin: 0; font: 400 11.5px/1 var(--mono); letter-spacing: 0; color: var(--dim-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .spark { grid-area: spark; align-self: center; width: 64px; height: 24px; opacity: 1; }
.kpi.scales { grid-template-areas: "cap" "fig"; grid-template-columns: auto; }
.kpi.scales .scale-badges { grid-area: fig; margin: 0; gap: 4px; }
.kpi.scales .scale { font: 600 11px/1 var(--mono); letter-spacing: .04em; padding: 3px 7px; border-radius: 3px; }
#kpiStrip.more-open .kpi.secondary { display: grid; }
#kpiMore { font: 500 11px var(--mono); letter-spacing: .12em; padding: 0 4px 0 16px; border-left: 0; }
/* a reading that changed since the last refresh: one pass of light under it */
.kpi::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; opacity: 0; }
.kpi.kpi-changed::before { animation: kpi-pass 1.4s var(--ease) 1; }
@keyframes kpi-pass { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 4. Side navigation --------------------------------------------
   Stays in view while the page scrolls; one cyan rule slides to the current
   section instead of each link drawing its own. */
#sidenav { background: var(--bg); border-right: 1px solid var(--line); padding: 18px 10px 14px; gap: 1px; }
@media (min-width: 921px) {
  #sidenav { position: sticky; top: var(--mast-h); align-self: flex-start; height: calc(100vh - var(--mast-h)); height: calc(100dvh - var(--mast-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  #sidenav::-webkit-scrollbar { display: none; }
}
#sidenav a { border-radius: var(--rad-sm); padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--dim); gap: 11px; transition: color var(--dur-1), background var(--dur-1); }
#sidenav a::before, #sidenav a:hover::before, #sidenav a.active::before { content: none; }
#sidenav a:hover { background: var(--panel); color: var(--txt-bright); }
#sidenav a.active { background: var(--panel-elevated); color: var(--txt-bright); font-weight: 600; }
#sidenav a.active svg, #sidenav a.active .nav-ico { color: var(--cyan); opacity: 1; }
#sidenav a svg, #sidenav a .nav-ico { transition: color var(--dur-1), opacity var(--dur-1), transform var(--dur-2) var(--ease); }
#sidenav a:hover svg { transform: translateX(1px); }
#navIndicator { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--cyan); border-radius: 0 2px 2px 0; opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), height .45s var(--ease), opacity var(--dur-1); }
.nav-group { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim-subtle); padding: 0 12px 8px; margin-top: 22px; }
.nav-foot { margin-top: auto; font: 400 11px/1.6 var(--mono); color: var(--dim-subtle); }
.nav-foot b { font: 500 11px var(--mono); letter-spacing: .14em; }

/* ---------- 5. Page head --------------------------------------------------
   A mono eyebrow, the headline in the display sans, the deck beside it and the
   UTC clock at the right, set in front of the dial (section 10). */
#pagehead { position: relative; align-items: flex-end; padding: 34px 28px 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); max-width: none; }
#pagehead .ph-main, #pagehead .ph-meta { position: relative; }
.ph-kicker { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .16em; color: var(--cyan); margin-bottom: 14px; }
.ph-kicker::before { content: ""; width: 16px; height: 2px; background: var(--cyan); flex: none; }
.ph-title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1; letter-spacing: -.035em; color: var(--txt-bright); text-wrap: balance; }
.ph-head { flex-direction: column; align-items: flex-start; gap: 12px; }
.ph-deck { font-size: 15px; line-height: 1.5; color: var(--dim); max-width: 60ch; border-left: 0; padding-left: 0; align-self: auto; }
.ph-meta #clock { font: 400 clamp(20px, 2.1vw, 28px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ph-meta #clockSub { font: 500 11px/1 var(--mono); letter-spacing: .16em; margin-top: 8px; }
#main { padding: 0 28px 48px; max-width: 1600px; }
#sitefoot { max-width: none; padding: 18px 28px 26px; font-size: 12.5px; }
#sitefoot .sf-note { font: 400 11px var(--mono); letter-spacing: .1em; }

/* ---------- 6. Panels & cards ---------------------------------------------
   Glass lit from above: a sheen through the top edge, a 1 px highlight lip and
   a soft drop shadow. A titled panel carries the family accent as an index
   tick, 16 x 2 px, at its top left. */
.panel {
  position: relative; border-radius: var(--rad-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--sheen), transparent 72px), var(--panel);
  box-shadow: inset 0 1px 0 var(--lip), var(--shadow-sm);
  padding: 22px 22px 26px; margin-bottom: 16px;
}
.panel:has(> h2:first-child)::before,
.panel:has(> .row:first-child > h2)::before,
.home-bands::before, .pillar::before {
  content: ""; position: absolute; top: -1px; left: 22px; width: 16px; height: 2px; background: var(--cyan);
}
.panel > .row:first-child, .panel > h2:first-child { border-bottom-color: var(--line2); }
#main.spine .panel h2::before { font: 500 12px var(--mono); letter-spacing: .02em; color: var(--dim-subtle); }
.panel h3 { font-weight: 600; letter-spacing: -.005em; font-size: 14px; }
.panel h4 { letter-spacing: .12em; }
.lede { font-size: 13.5px; }

.stat { background: var(--bg); border: 1px solid var(--line2); border-radius: var(--rad-sm); transition: border-color var(--dur-1), background var(--dur-1); }
.stat:hover { border-color: var(--line-strong); }
.stat > label { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; }
.stat > b { letter-spacing: -.02em; }
.scale-card { background: var(--bg); border-radius: var(--rad-sm); }
.scale-card .sc-name { font-size: 11.5px; }
.map-container, .chart-container, .tablewrap { border-radius: var(--rad-sm); background: var(--bg); }
table.dt th { background: var(--panel-elevated); letter-spacing: .12em; }
tbody tr:hover { background: var(--tint-subtle); }
.band-meter .bm-track, .beacon-next .bn-track { border-radius: 2px; height: 6px; }
.band-meter .bm-fill, .beacon-next .bn-fill { border-radius: 2px; }
.band-meter .bm-fill { transition: width .8s var(--ease), background .3s; }
.beacon-call { color: var(--txt-bright); letter-spacing: -.02em; }

/* loading skeleton */
.panel-loading { display: grid; gap: 12px; }
.sk { display: block; height: 12px; width: 100%; max-width: 620px; border-radius: 3px; background: linear-gradient(90deg, var(--line2) 25%, var(--line) 50%, var(--line2) 75%) 0 0 / 200% 100%; animation: sk-slide 1.4s linear infinite; }
.sk-title { height: 20px; max-width: 240px; margin-bottom: 6px; }
.sk-short { max-width: 380px; }
@keyframes sk-slide { to { background-position: -200% 0; } }

/* ---------- 7. Controls ---------------------------------------------------
   The brand button: 4 px corners, uppercase sans, a hairline border that turns
   ember on hover. .primary is the one filled action in a view. */
.btn {
  min-height: 34px; padding: 0 14px; gap: 8px; border-radius: var(--rad-sm);
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--txt); background: transparent; border: 1px solid var(--line-strong); box-shadow: none;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.btn:hover { background: var(--panel-elevated); border-color: var(--ember); color: var(--txt-bright); box-shadow: none; text-decoration: none; }
.btn:active { background: var(--surface-3); transform: none; transition-duration: 0s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.ghost { color: var(--dim); background: transparent; border-color: var(--line); }
.btn.ghost:hover { color: var(--txt-bright); background: var(--panel-elevated); border-color: var(--line-strong); }
.btn.primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.btn.primary:active { background: #a81f14; border-color: #a81f14; }
.btn.warn, .btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: transparent; }
.btn.warn:hover, .btn.danger:hover { background: var(--red-glow); border-color: var(--red); }
.btn.sm { min-height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn svg { width: 15px; height: 15px; }

input, select, textarea {
  border-radius: var(--rad-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--txt);
  font-family: var(--mono); transition: border-color var(--dur-1), box-shadow var(--dur-1), background var(--dur-1);
}
input::placeholder, textarea::placeholder { color: var(--dim-subtle); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--txt) 36%, transparent); }
input:focus, select:focus, textarea:focus { background: var(--bg); border-color: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 18%, transparent); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cyan); }
input[type="range"] { accent-color: var(--cyan); border: 0; background: none; box-shadow: none; }

.chip { border-radius: var(--rad-sm); padding: 5px 11px; font: 500 12.5px var(--sans); background: transparent; border: 1px solid var(--line); color: var(--dim);
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.chip:hover { background: var(--panel-elevated); border-color: var(--line-strong); color: var(--txt-bright); }
.chip.active { background: var(--tint-active); border-color: var(--cyan); color: var(--txt-bright); font-weight: 600; }
.pill { border-radius: 3px; font: 500 11px var(--mono); letter-spacing: .08em; }

/* tabs: the current one takes a 2 px ember underline, a small signal */
.tabs { gap: 20px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 11px 0; margin-bottom: -1px; background: none; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); transition: color var(--dur-1), border-color var(--dur-1); }
.tabs button:hover { color: var(--txt-bright); background: none; }
.tabs button.active { color: var(--txt-bright); border-bottom-color: var(--ember); background: none; }

.seg { border-radius: var(--rad-sm); background: var(--bg); border: 1px solid var(--line); }
.seg button { border-radius: 3px; font: 600 12px var(--sans); transition: background var(--dur-1), color var(--dur-1); }
.seg button.active { background: var(--surface-3); box-shadow: inset 0 1px 0 var(--lip); }
.map-ctrl-btn { border-radius: var(--rad-sm); background: var(--panel-glass); border: 1px solid var(--line-strong); color: var(--txt); }
.map-ctrl-btn:hover { border-color: var(--ember); color: var(--txt-bright); }

/* ---------- 8. Menus, dialogs, toast --------------------------------------- */
.glyph-dropdown, .header-search-dropdown {
  background: var(--panel-elevated) !important; border: 1px solid var(--line-strong) !important; border-radius: var(--rad-sm);
  box-shadow: inset 0 1px 0 var(--lip), var(--shadow-lg); backdrop-filter: none; padding: 6px;
  animation: menu-in var(--dur-1) var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.glyph-dropdown-header { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--dim-subtle); padding: 6px 8px 8px; border-bottom-color: var(--line2); }
.theme-opt { gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 500; color: var(--txt) !important; }
.theme-opt:hover { background: var(--surface-3); color: var(--txt-bright) !important; }
.theme-opt.selected { background: var(--tint-hover); border-color: transparent; color: var(--txt-bright) !important; font-weight: 600; }
.theme-opt.selected::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.theme-opt small { font: 400 11px var(--mono); color: var(--dim-subtle); margin-left: 4px; }
.theme-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--dim); }
.theme-opt.selected .theme-ico { color: var(--cyan); }
.account-initials { background: var(--surface-3); color: var(--txt-bright); border: 1px solid var(--line-strong); border-radius: var(--rad-sm); font: 600 11px var(--mono); }

dialog {
  background: linear-gradient(180deg, var(--sheen), transparent 72px), var(--panel-elevated); color: var(--txt);
  border: 1px solid var(--line-strong); border-radius: var(--rad-lg); box-shadow: inset 0 1px 0 var(--lip), var(--shadow-lg);
}
dialog[open] { animation: dialog-in .28s var(--ease); }
dialog[open]::backdrop { animation: fade-in .28s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
dialog::backdrop { background: rgba(5, 6, 8, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog h3 { font-size: 21px; letter-spacing: -.025em; }
dialog label { font-size: 12.5px; }
#cmdDialog { border-radius: var(--rad-lg); overflow: hidden; }
.cmd-header { background: var(--panel-elevated); }
.cmd-item.selected { background: var(--tint-hover); box-shadow: inset 2px 0 0 var(--cyan); }

#toast { background: var(--panel-elevated); border: 1px solid var(--line-strong); border-left: 2px solid var(--cyan); border-radius: var(--rad-sm); box-shadow: var(--shadow-lg); font: 500 13px var(--sans); color: var(--txt-bright); }

/* ---------- 9. Home -------------------------------------------------------- */
body.view-home #main { padding-top: 12px; }
.home-hero { position: relative; padding: 28px 0 36px; gap: 40px; }
.hero-kicker { font: 500 11px/1 var(--mono); letter-spacing: .16em; color: var(--cyan); }
.hero-dot { width: 7px; height: 7px; background: var(--ember); animation: hero-live 2.4s ease-in-out infinite; box-shadow: none; }
@keyframes hero-live { 50% { opacity: .35; } }
.hero-title { text-wrap: balance; }
.hero-deck { font-size: 16px; line-height: 1.6; max-width: 54ch; }
.hero-actions .btn { min-height: 42px; padding: 0 20px; font-size: 12.5px; }
.hero-now { border-top-color: var(--line); border-bottom-color: var(--line); margin-top: 34px; }
.now-cell { padding-top: 14px; padding-bottom: 14px; }
.now-cell label { font: 500 11px/1 var(--mono); letter-spacing: .12em; }
.now-cell b { margin-top: 9px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.now-cell span { font: 400 11.5px var(--mono); margin-top: 8px; }
.hero-globe svg { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
html[data-theme="light"] .hero-globe svg { filter: drop-shadow(0 24px 40px rgba(20, 23, 28, .16)); }
.g-ocean-hi { stop-color: color-mix(in srgb, var(--cyan) 9%, var(--panel)); }
.g-ocean-lo { stop-color: var(--bg); }
.g-land { fill: var(--surface-3); stroke: color-mix(in srgb, var(--txt) 26%, var(--panel)); }
.g-target circle, .g-qth-dot { stroke: var(--bg); }
.g-target text { stroke: var(--bg); font: 600 11px var(--mono); }
html[data-theme="light"] .g-night path { fill: #14171c; fill-opacity: .1; }
html[data-theme="light"] .g-land { fill: #f8f6f2; }
.globe-legend { font: 400 11.5px var(--mono); color: var(--dim); }

.home-bands, .pillar, .journey {
  position: relative; background: linear-gradient(180deg, var(--sheen), transparent 72px), var(--panel);
  border: 1px solid var(--line); border-radius: var(--rad-lg); box-shadow: inset 0 1px 0 var(--lip), var(--shadow-sm);
}
.pillar { overflow: visible; }
.pillar::before { background: var(--accent); z-index: 1; }
.pillar-art { border-radius: var(--rad-lg) var(--rad-lg) 0 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%), var(--bg); }
.pillar-num { font: 500 11px var(--mono); }
.pillar-list a { border-radius: var(--rad-sm); transition: background var(--dur-1), transform var(--dur-2) var(--ease); }
.pillar-list a:hover, .pillar-list a:focus-visible { background: var(--panel-elevated); transform: translateX(3px); text-decoration: none; }
.pl-live { font: 500 11px var(--mono); }
.bm-track, .bm-track i { border-radius: 3px; }
.bm-track { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2); }
.band-meter-col[data-state="open"] i { background: var(--green); }
.band-meter-col[data-state="marginal"] i { background: var(--amber); }
html[data-theme="dark"] .band-meter-col[data-state="open"] i { background: linear-gradient(0deg, color-mix(in srgb, var(--green) 62%, var(--bg)), var(--green)); }
html[data-theme="dark"] .band-meter-col[data-state="marginal"] i { background: linear-gradient(0deg, color-mix(in srgb, var(--amber) 62%, var(--bg)), var(--amber)); }
.band-meter-col b { font: 600 12px var(--mono); }
.band-meter-col span { font-size: 11px; }
.region { border-top-color: var(--line2); }
.region em { font: 500 11.5px var(--mono); }
.journey-steps a { border-radius: var(--rad-sm); background: var(--bg); border: 1px solid var(--line); transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-2) var(--ease); }
.journey-steps a:hover { border-color: var(--ember); background: var(--panel-elevated); transform: translateY(-1px); text-decoration: none; }
.js-n { border-radius: 3px; font: 600 11px var(--mono); }

/* ---------- 10. Atmosphere -------------------------------------------------
   From innerpulse-brand (references/atmosphere.md): film grain over the page,
   an ink vignette, and behind each page head a faint graduated dial with slow
   fog in the ground's tones and the family accent. No ember. */
.ip-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: ip-grain 1.6s steps(5) infinite; will-change: transform;
}
@keyframes ip-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-4%, -1%); } 100% { transform: translate(0, 0); } }
.ip-paused .ip-grain { animation-play-state: paused; }
.ip-vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, transparent 46%, rgba(0, 0, 0, .42) 100%); }
html[data-theme="light"] .ip-grain { mix-blend-mode: multiply; opacity: .04; filter: invert(1); }
html[data-theme="light"] .ip-vignette { display: none; }

.ip-atmos { isolation: isolate; }
.ip-atmos-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .55) 45%, #000 78%), linear-gradient(0deg, transparent 0%, #000 55%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .55) 45%, #000 78%), linear-gradient(0deg, transparent 0%, #000 55%);
  mask-composite: intersect;
}
.ip-fog { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.ip-fog.f1 { width: 60%; height: 150%; left: -10%; bottom: -90%; background: rgba(120, 132, 156, .15); animation: ip-fog-a 40s ease-in-out infinite alternate; }
.ip-fog.f3 { width: 38%; height: 130%; right: 4%; top: -40%; background: color-mix(in srgb, var(--cyan) 9%, transparent); animation: ip-fog-a 54s ease-in-out infinite alternate-reverse; }
html[data-theme="light"] .ip-fog.f1 { background: rgba(110, 100, 86, .12); }
@keyframes ip-fog-a { to { transform: translate(14%, -6%) scale(1.18); } }
.ip-atmos-dial { position: absolute; right: -90px; top: 50%; width: min(46vw, 560px); aspect-ratio: 1; transform: translateY(-50%); color: var(--txt); opacity: .11; }
html[data-theme="light"] .ip-atmos-dial { opacity: .1; }
.ip-atmos-dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ip-dial text { fill: currentColor; stroke: none; font: 500 11px var(--mono); letter-spacing: .08em; }
.ip-dial .d-major { stroke-width: 1.4; }
.ip-dial .d-outer, .ip-dial .d-inner { transform-box: view-box; transform-origin: 50% 50%; }
.ip-dial .d-outer { animation: ip-turn 300s linear infinite; }
.ip-dial .d-inner { animation: ip-turn 420s linear infinite reverse; }
.ip-dial .d-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ip-draw 2.8s cubic-bezier(.2, .8, .2, 1) .2s forwards; }
@keyframes ip-turn { to { transform: rotate(360deg); } }
@keyframes ip-draw { to { stroke-dashoffset: 0; } }
.ip-paused .ip-dial .d-outer, .ip-paused .ip-dial .d-inner, .ip-paused .ip-fog { animation-play-state: paused; }

/* ---------- 11. Motion -----------------------------------------------------
   One grammar: things rise 10 px into place on the brand's ease, in reading
   order. Entrances run once per route change (js/ui.js adds .is-entering);
   blocks further down the landing page rise as they scroll into view. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
#pagehead.ph-in .ph-kicker { animation: rise-in .5s var(--ease) both; }
#pagehead.ph-in .ph-title { animation: rise-in .6s var(--ease) .04s both; }
#pagehead.ph-in .ph-deck { animation: rise-in .6s var(--ease) .1s both; }
#pagehead.ph-in .ph-kicker::before { animation: tick-in .6s var(--ease) .1s both; transform-origin: left; }
@keyframes tick-in { from { transform: scaleX(0); } }

#main.is-entering > *, #main.is-entering > .rail > *, #main.is-entering > .rail > .rail-col > * { animation: rise-in .55s var(--ease) both; }
#main.is-entering > :nth-child(2) { animation-delay: .06s; }
#main.is-entering > :nth-child(3) { animation-delay: .12s; }
#main.is-entering > :nth-child(4) { animation-delay: .18s; }
#main.is-entering > :nth-child(n+5) { animation-delay: .24s; }
#main.is-entering > .rail > :nth-child(2) { animation-delay: .1s; }
#main.is-entering > .rail > .rail-col > :nth-child(2) { animation-delay: .18s; }
#main.is-entering > .rail > .rail-col > :nth-child(n+3) { animation-delay: .26s; }
/* the landing hero builds itself: eyebrow, headline, deck, actions, readings, then the globe */
#main.is-entering .home-hero > * { animation: none; }
#main.is-entering .hero-copy > * { animation: rise-in .65s var(--ease) both; }
#main.is-entering .hero-copy > :nth-child(2) { animation-delay: .06s; }
#main.is-entering .hero-copy > :nth-child(3) { animation-delay: .14s; }
#main.is-entering .hero-copy > :nth-child(4) { animation-delay: .22s; }
#main.is-entering .hero-copy > :nth-child(5) { animation-delay: .3s; }
#main.is-entering .hero-globe { animation: globe-in 1.1s var(--ease) .1s both; }
@keyframes globe-in { from { opacity: 0; transform: scale(.94); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--reveal-i, 0) * 80ms); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- 12. Phone tab bar ---------------------------------------------- */
#tabbar { display: none; }
@media (max-width: 920px) {
  #tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  #tabbar a, #tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 2px;
    background: none; border: 0; color: var(--dim-subtle); font: 500 11px/1 var(--sans); text-decoration: none; cursor: pointer; transition: color var(--dur-1);
  }
  #tabbar svg { width: 20px; height: 20px; }
  #tabbar a.active { color: var(--txt-bright); }
  #tabbar a.active svg { color: var(--cyan); }
  #tabbar a::before { content: ""; position: absolute; top: -1px; left: 50%; width: 16px; height: 2px; margin-left: -8px; background: var(--cyan); transform: scaleX(0); transition: transform var(--dur-2) var(--ease); }
  #tabbar a.active::before { transform: scaleX(1); }
  #content { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- 13. Narrow screens --------------------------------------------- */
@media (max-width: 1180px) {
  .home-hero { gap: 24px; }
}
@media (max-width: 920px) {
  #sidenav { top: var(--mast-h); bottom: calc(56px + env(safe-area-inset-bottom)); background: var(--bg); width: min(300px, 84vw); box-shadow: var(--shadow-lg); border-right: 1px solid var(--line-strong); overflow-y: auto; transition: transform .32s var(--ease); z-index: 120; }
  #sidenav a { padding: 10px 12px; font-size: 14px; }
  .nav-backdrop { background: rgba(5, 6, 8, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  #navToggle { display: inline-flex; }
  #pagehead { padding: 24px 16px 18px; margin-bottom: 16px; }
  .ph-meta { display: none; }
  .ip-atmos-dial { width: 360px; right: -150px; }
  #main { padding: 0 16px 36px; }
  #sitefoot { padding: 16px; }
  #kpiStrip { padding: 0 16px; scrollbar-width: none; }
  #kpiStrip::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 auto; min-width: 150px; padding: 9px 14px 10px; }
  .kpi:first-child { padding-left: 0; }
  .kpi .spark { width: 48px; }
  #kpiMore { padding-right: 0; }
}
@media (max-width: 640px) {
  #topbar { padding: 0 12px; gap: 10px; }
  #navToggle { display: none; }               /* the tab bar's More opens the menu */
  .ip-chrome-word svg { height: 19px; }
  .header-search-wrap { height: 36px; }
  #qthChip { padding: 0 10px; }
  .panel { padding: 16px 16px 20px; border-radius: var(--rad-lg); }
  .panel:has(> h2:first-child)::before, .panel:has(> .row:first-child > h2)::before, .home-bands::before, .pillar::before { left: 16px; }
  .home-hero { padding: 16px 0 24px; }
  .hero-title { font-size: clamp(36px, 11vw, 46px); }
  .hero-deck { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .ph-title { font-size: clamp(28px, 8.4vw, 36px); }
  .tabs { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
}

@media (max-width: 640px) {
  /* long button labels wrap instead of pushing the page sideways */
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 400px) {
  #topbar { padding: 0 10px; gap: 6px; }
  #brand { gap: 7px; }
  .ip-chrome-mark { width: 26px; height: 26px; }
  .top-glyph-btn { width: 32px; height: 32px; }
  .topbar-glyphs { gap: 0; }
  .top-actions { gap: 6px; }
  #qthChip { padding: 0 8px; gap: 6px; }
}

/* ---------- 14. Reduced motion & print ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ip-chrome-mark rect, .ip-busy .ip-chrome-mark rect, .ip-grain, .ip-fog, .ip-dial .d-outer, .ip-dial .d-inner, .hero-dot, .sk,
  .ip-chrome:hover .ip-chrome-word::after, .ip-chrome:focus-visible .ip-chrome-word::after,
  dialog[open], dialog[open]::backdrop, .glyph-dropdown, .header-search-dropdown, .kpi.kpi-changed::before,
  #pagehead.ph-in .ph-kicker, #pagehead.ph-in .ph-title, #pagehead.ph-in .ph-deck, #pagehead.ph-in .ph-kicker::before,
  #main.is-entering *, #main.is-entering > * { animation: none !important; }
  .ip-dial .d-draw { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #navIndicator, #sidenav, #sidenav a svg, .pillar-list a, .journey-steps a, .band-meter .bm-fill, #tabbar a::before { transition: none !important; }
  .pillar-list a:hover, .journey-steps a:hover, #sidenav a:hover svg { transform: none; }
}
@media print {
  .ip-grain, .ip-vignette, .ip-atmos-bg, #tabbar, #sidenav, #topbar, #kpiStrip { display: none !important; }
}
dialog .grid2 { margin-bottom: 12px; }

/* ---------- 15. Drawing sheets (Antenna Design, RF Calculators) ------------ */
.bp-view { --bp-ground: var(--bg); --bp-ink: var(--cyan); --bp-flow: #e8fbff; }
html[data-theme="light"] .bp-view { --bp-ground: #fbf9f5; --bp-flow: #ffffff; }
.bp-view > .row:has(> .bp-col) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 28px; align-items: start; }
.bp-view .bp-col { max-width: none !important; width: auto !important; display: grid; gap: 16px; position: sticky; top: 78px; }
.bp-view > .row > div:first-child { min-width: 0 !important; }
.bp-view h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }

.bp-sheet { margin: 0; border: 1px solid var(--line2); border-radius: var(--rad-lg); background: var(--bp-ground); overflow: hidden; box-shadow: inset 0 1px 0 var(--sheen); }
.bp-sheet + .bp-sheet { margin-top: 16px; }
.bp-col .bp-sheet + .bp-sheet { margin-top: 0; }
.bp-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line2); background: var(--panel); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bp-fig { color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.bp-fig::before { content: ""; width: 16px; height: 2px; background: var(--cyan); }
.bp-title { color: var(--txt); }
.bp-note { margin-left: auto; color: var(--dim-subtle); text-align: right; letter-spacing: .1em; }
.bp-foot { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--line2); font: 400 11px/1.45 var(--mono); color: var(--dim); background: var(--panel); }
.bp-foot:empty { display: none; }
.bp-sheet svg { display: block; width: 100%; height: auto; }
.bp-sheet svg text { font-family: var(--mono); }

.bp-ground { fill: var(--bp-ground); }
.bp-grid-minor { fill: none; stroke: var(--line2); stroke-width: .5; opacity: .7; }
.bp-grid-major { fill: none; stroke: var(--line); stroke-width: .6; opacity: .8; }
.bp-sheet svg text[fill="var(--green)"] { fill: var(--txt); }
.bp-reg { fill: none; stroke: var(--dim-subtle); stroke-width: 1; }
.bp-tick { fill: none; stroke: var(--amber); stroke-width: 1; }
.bp-wire { stroke-linecap: round; stroke-linejoin: round; }
.bp-flow { fill: none; stroke: var(--bp-flow); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 2 16; opacity: .85; animation: bp-flow 1.5s linear infinite; pointer-events: none; }
@keyframes bp-flow { to { stroke-dashoffset: -36; } }
.bp-enter .bp-wire, .bp-enter .bp-trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bp-draw .9s var(--ease, ease-out) .08s forwards; }
.bp-enter .bp-flow { opacity: 0; animation: bp-flow 1.5s linear infinite, bp-fade .4s ease .9s forwards; }
.bp-enter .bp-area, .bp-enter .bp-point, .bp-enter .bp-point-ring, .bp-enter .bp-swr { opacity: 0; animation: bp-fade .5s ease .55s forwards; }
.bp-enter .bp-sheet { animation: rise-in .5s var(--ease, ease-out) both; }
.bp-enter .bp-sheet + .bp-sheet { animation-delay: .08s; }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: var(--o, 1); } }

.bp-plotarea { fill: none; stroke: var(--line); stroke-width: 1; }
.bp-axis, .bp-spoke { stroke: var(--line2); stroke-width: .6; fill: none; }
.bp-ring { fill: none; stroke: var(--line); stroke-width: .7; }
.bp-ring-out { stroke: var(--dim-subtle); stroke-width: 1; }
.bp-lbl { font-size: 9.5px; fill: var(--dim); }
.bp-faint { fill: var(--dim-subtle); }
.bp-unit { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; fill: var(--dim); }
.bp-trace { fill: none; stroke: var(--bp-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bp-area { fill: var(--bp-ink); fill-opacity: .1; stroke: none; --o: 1; }
.bp-mark { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; }
.bp-mark.is-warn { stroke: var(--amber); }
.bp-marklbl { fill: var(--txt); font-size: 10px; }
.bp-marklbl.is-warn { fill: var(--amber); }
.bp-ant { stroke: var(--txt); stroke-width: 2; stroke-linecap: round; fill: none; }
.bp-ant-dot { fill: var(--txt); }
.bp-groundline { stroke: var(--dim); stroke-width: 1.5; }
.bp-swr { fill: none; stroke: var(--green); stroke-width: 1.4; stroke-dasharray: 4 3; }
.bp-swr.is-warn { stroke: var(--amber); }
.bp-swr.is-crit { stroke: var(--red); }
.bp-vector { stroke: var(--bp-ink); stroke-width: 1.2; }
.bp-point { fill: var(--bp-ink); stroke: var(--bp-ground); stroke-width: 2; }
.bp-point-ring { fill: none; stroke: var(--bp-ink); stroke-width: 1; opacity: .5; --o: .5; }

/* readouts */
.bp-view .statcards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.bp-view .statcards > .stat { position: relative; padding: 14px 14px 13px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--rad-sm); }
.bp-view .statcards > .stat > label { font-size: 10.5px; margin-bottom: 8px; color: var(--dim); }
.bp-view .statcards > .stat > b { display: block; font: 500 17px/1.3 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bp-view .statcards > .stat > b small { display: block; margin-top: 3px; font: 400 12px/1.35 var(--mono); color: var(--dim); letter-spacing: 0; }
.bp-view .statcards > .stat:first-child { grid-column: span 2; background: var(--panel-elevated); border-color: var(--line); }
.bp-view .statcards > .stat:first-child::before { content: ""; position: absolute; left: 14px; top: -1px; width: 16px; height: 2px; background: var(--cyan); }
.bp-view .statcards > .stat:first-child > b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.bp-view .statcards > .stat:first-child > b small { font-size: 13px; margin-top: 5px; }
.bp-enter .statcards > .stat { animation: rise-in .45s var(--ease, ease-out) both; animation-delay: calc(var(--n, 0) * 35ms); }
.bp-view .statcards > .stat:nth-child(2) { --n: 1; } .bp-view .statcards > .stat:nth-child(3) { --n: 2; } .bp-view .statcards > .stat:nth-child(4) { --n: 3; }
.bp-view .statcards > .stat:nth-child(5) { --n: 4; } .bp-view .statcards > .stat:nth-child(6) { --n: 5; } .bp-view .statcards > .stat:nth-child(n+7) { --n: 6; }

@media (max-width: 1180px) {
  .bp-view > .row:has(> .bp-col) { grid-template-columns: minmax(0, 1fr); }
  .bp-view .bp-col { position: static; }
}
@media (max-width: 520px) {
  .bp-view .statcards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-view .statcards > .stat:first-child > b { font-size: 22px; }
  .bp-view .statcards > .stat > b { font-size: 15px; }
  .bp-head { letter-spacing: .1em; }
  .bp-note { display: none; }
}
html.ip-paused .bp-flow { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .bp-flow { animation: none; opacity: 0; }
  .bp-enter .bp-wire, .bp-enter .bp-trace { animation: none; stroke-dasharray: none; }
  .bp-enter .bp-area, .bp-enter .bp-point, .bp-enter .bp-point-ring, .bp-enter .bp-swr, .bp-enter .bp-flow { animation: none; opacity: var(--o, 1); }
  .bp-enter .bp-flow { opacity: 0; }
  .bp-enter .bp-sheet, .bp-enter .statcards > .stat { animation: none; }
}
@media print { .bp-flow { display: none; } }
.bp-view .input-group { min-width: 0; }
.bp-view .input-group select, .bp-view .input-group input { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .bp-view .row.g8 > .input-group { flex: 1 1 100% !important; } }
