@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DM-Sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/Space-Grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #061344;
  --panel: #091b4a;
  --panel-raised: #102a86;
  --line: rgba(159, 189, 255, .22);
  --text: #f8faff;
  --muted: #b4c5e6;
  --mint: #ffcf40;
  --blue: #8bbdff;
  --gold: #ffcf40;
  --red: #ff8b83;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(ellipse at 75% 25%, rgba(20, 63, 157, .5), transparent 60%), linear-gradient(125deg, #061133, #0a2268); }
.network-backdrop { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .96; }
.shell { position: relative; z-index: 1; }
body[data-theme="infinity"] .network-backdrop { opacity: .94; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(84,214,178,.24); border-radius: 9px; color: #c8dedc; background: rgba(84,214,178,.07); font-size: 10px; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { transform: translateY(-1px); color: var(--text); border-color: rgba(84,214,178,.55); background: rgba(84,214,178,.13); }
.theme-toggle > span:first-child { color: var(--mint); font-size: 15px; }
.world-lore-strip { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .17em; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: end; gap: 3px; padding: 7px; border: 1px solid rgba(84,214,178,.45); border-radius: 11px; background: rgba(84,214,178,.08); }
.brand-mark span { width: 5px; border-radius: 4px; background: var(--mint); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 15px; opacity: .8; }
.brand-mark span:nth-child(3) { height: 20px; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.service-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.service-status i, .eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #84969a; box-shadow: 0 0 0 4px rgba(132,150,154,.12); }
.service-status.online i { background: var(--mint); box-shadow: 0 0 0 4px rgba(84,214,178,.13); }
.service-status.degraded i { background: var(--gold); box-shadow: 0 0 0 4px rgba(246,188,109,.13); }
.service-status.offline i { background: var(--red); box-shadow: 0 0 0 4px rgba(255,139,131,.13); }
.external-link { color: #b5c7ca; font-size: 11px; border-bottom: 1px solid rgba(181,199,202,.25); padding-bottom: 3px; }
.external-link span { color: var(--mint); margin-left: 4px; }
.dashboard-switch { border: 1px solid rgba(177,207,213,.18); border-radius: 9px; padding: 8px 11px; color: #c8dedc; background: rgba(14,32,40,.72); font-size: 10px; cursor: pointer; white-space: nowrap; }
.dashboard-switch:hover { border-color: var(--mint); color: var(--text); }
.grafana-view { padding: 20px 0 32px; }
.grafana-view[hidden], .dashboard-choice-backdrop[hidden] { display: none; }
.grafana-view iframe { display: block; width: 100%; height: max(3600px, 400vh); min-height: calc(100dvh - 120px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); opacity: .78; }
.grafana-fallback { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }
.grafana-fallback a { color: var(--mint); }
@media (max-width: 700px) {
  .grafana-view iframe { height: max(5200px, 600vh); min-height: calc(100dvh - 100px); opacity: .78; }
}
.dashboard-choice-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(3, 8, 11, .78); backdrop-filter: blur(7px); }
.dashboard-choice-modal { width: min(520px, 100%); padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 28, 34, .98); box-shadow: 0 22px 70px rgba(0,0,0,.4); }
.dashboard-choice-modal h2 { margin-top: 9px; font-size: 24px; }
.dashboard-choice-modal p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dashboard-choice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.dashboard-choice-button { min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel-raised); font-size: 12px; font-weight: 700; cursor: pointer; }
.dashboard-choice-button:hover { border-color: var(--mint); }
.dashboard-choice-button.is-primary { border-color: rgba(84,214,178,.65); color: #071a17; background: var(--mint); }
body.grafana-dashboard-active main, body.grafana-dashboard-active .footer, body.grafana-dashboard-active #errorBanner { display: none; }
body[data-theme="infinity"] .dashboard-switch { border-color: rgba(255,190,133,.42); color: #ffe6ce; background: linear-gradient(105deg,rgba(146,68,54,.4),rgba(55,39,54,.6)); }
body[data-theme="infinity"] .dashboard-switch:hover { border-color: #ffc078; }
body[data-theme="infinity"] .dashboard-choice-modal { border-color: rgba(255,190,150,.38); background: rgba(35,24,30,.98); }
body[data-theme="infinity"] .dashboard-choice-button.is-primary { color: #291819; background: linear-gradient(100deg,#ffd18a,#ff7b5c); }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 54px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #82a6a9; font: 10px "DM Mono", monospace; letter-spacing: .15em; }
.eyebrow-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(84,214,178,.12); }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.065em; font-weight: 700; }
.hero-copy { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.period-picker { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.period-picker button { color: #91a6ac; border: 0; border-radius: 7px; padding: 9px 12px; background: transparent; font-size: 10px; cursor: pointer; transition: background .18s, color .18s; }
.period-picker button:hover { color: var(--text); }
.period-picker button.selected { color: #071c1c; background: var(--mint); font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(18,40,50,.88), rgba(12,30,38,.92)); }
.metric-card { min-height: 137px; padding: 19px 20px; }
.metric-primary { border-color: rgba(84,214,178,.26); background: linear-gradient(145deg, rgba(31,83,76,.36), rgba(12,30,38,.92)); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: #a9bdc0; font-size: 11px; }
.metric-icon { color: var(--mint); font-size: 14px; }
.metric-value { margin-top: 21px; font-size: clamp(24px, 2.3vw, 31px); font-weight: 700; letter-spacing: -.06em; }
.metric-foot { margin-top: 5px; color: var(--muted); font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .9fr); gap: 13px; margin-top: 13px; }
.panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 21px; }
.panel-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.panel-note { color: #6f8990; font: 9px "DM Mono", monospace; white-space: nowrap; }
.chart-wrap { width: 100%; min-height: 220px; }
.chart-wrap svg { width: 100%; height: 240px; overflow: visible; }
.chart-grid { stroke: rgba(177,207,213,.11); stroke-width: 1; }
.chart-axis { fill: #759096; font: 9px "DM Mono", monospace; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 6px 0 0 43px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; color: #9db0b3; font-size: 10px; }
.legend i, .pool-name i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pool-color, var(--mint)); }
.chart-empty { min-height: 220px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.chart-empty span { color: var(--mint); font-size: 27px; }
.chart-empty p { font-size: 11px; }
.origin-list { display: grid; gap: 17px; }
.origin-row-top { display: flex; justify-content: space-between; margin-bottom: 7px; color: #bed0d2; font-size: 11px; }
.origin-row-top strong { color: var(--text); font: 11px "DM Mono", monospace; }
.origin-track { height: 5px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.08); }
.origin-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #54d6b2, #92e3bc); }
.origin-row small { display: block; margin-top: 6px; color: #708a90; font-size: 9px; }
.flow-coverage { display: grid; gap: 7px; margin-top: 17px; }
.flow-coverage div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid rgba(190,218,226,.08); border-radius: 7px; background: rgba(255,255,255,.018); }
.flow-coverage span { color: #a8b9bc; font-size: 9px; }
.flow-coverage strong { color: var(--gold); font: 8px "DM Mono", monospace; text-align: right; }
.flow-coverage strong.flow-observed { color: var(--mint); }
.quiet-note, .table-footnote { color: #718990; font-size: 9px; line-height: 1.6; }
.quiet-note { margin: 20px 0 0; }
.pools-panel, .geography-panel { margin-top: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; }
th { padding: 0 12px 11px; color: #718991; font: 9px "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
td { padding: 13px 12px; border-top: 1px solid rgba(190,218,226,.08); color: #c5d3d5; font-size: 11px; white-space: nowrap; }
td:first-child { min-width: 175px; }
.pool-name { display: flex; align-items: center; gap: 8px; color: #e4eeee; font-weight: 700; }
.pool-last { display: block; margin: 5px 0 0 15px; color: #748d92; font-size: 9px; }
.mono, .country-count { font-family: "DM Mono", monospace; }
.error-count { color: var(--mint); }
.error-count.has-errors { color: var(--gold); }
.empty-cell { padding: 24px 12px; color: #789096; font-size: 11px; text-align: center; }
.table-footnote { margin: 14px 12px 0; }
.country-list { display: grid; gap: 12px; }
.country-row { display: grid; grid-template-columns: 36px minmax(120px,1fr) 82px; gap: 12px; align-items: center; }
.country-code { color: #91a9ad; font: 10px "DM Mono", monospace; }
.country-name { display: grid; gap: 6px; color: #c8d6d8; font-size: 10px; }
.country-region-list { display: grid; gap: 3px; margin: -2px 0 1px; }
.country-region { color: #8fa8ad; font: 8px/1.35 "DM Mono", monospace; }
.country-name i { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.08); }
.country-name b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.country-count { color: #9eb2b6; text-align: right; font-size: 10px; }
.country-speed-list { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.country-speed { display: inline-flex; align-items: center; gap: 4px; color: #81999e; font: 8px "DM Mono", monospace; }
.country-speed i, .map-pool-stat i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--pool-color, var(--mint)); }
.map-tools { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.map-tools select { max-width: 190px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #10252d; font-size: 10px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(220px, .72fr); gap: 17px; }
.map-frame { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(190,218,226,.12); border-radius: 12px; background: #0b1b22; }
#requestMap { width: 100%; height: 430px; background: #0b1b22; }
.map-summary { position: absolute; z-index: 500; left: 13px; bottom: 12px; max-width: calc(100% - 26px); padding: 8px 11px; border: 1px solid rgba(190,218,226,.13); border-radius: 8px; color: #d3e2e2; background: rgba(7,21,27,.88); backdrop-filter: blur(10px); font: 9px "DM Mono", monospace; }
.map-empty { display: grid; height: 100%; min-height: 280px; padding: 30px; place-items: center; color: var(--muted); text-align: center; font-size: 12px; }
.map-sidebar { min-width: 0; padding: 7px 2px 0; }
.map-sidebar-heading { display: flex; justify-content: space-between; margin-bottom: 18px; color: #748e94; font: 9px "DM Mono", monospace; letter-spacing: .09em; }
.map-geo-location { color: #f0e3d8; font-size: 11px; line-height: 1.5; }
.map-geo-location small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.country-list { display: grid; gap: 15px; }
.map-legend { display: grid; gap: 9px; margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); color: #a8bcbe; font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color, var(--mint)); box-shadow: 0 0 10px color-mix(in srgb, var(--legend-color, var(--mint)) 45%, transparent); }
.map-legend small { color: #718990; font-size: 9px; }
.leaflet-container { font: inherit; color: var(--text); }
.leaflet-control-zoom a { color: #dce8e8 !important; background: rgba(11,29,37,.94) !important; border-color: rgba(190,218,226,.16) !important; }
.leaflet-control-zoom a:hover { color: var(--mint) !important; background: #17313b !important; }
.leaflet-control-attribution { color: #9bb0b3 !important; background: rgba(7,21,27,.72) !important; }
.leaflet-control-attribution a { color: #8edfc4 !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: var(--text); background: #10252d; }
.leaflet-popup-content { color: #c7d7d8; font-size: 11px; line-height: 1.7; }
.leaflet-popup-content strong { color: var(--mint); font-size: 12px; }
.leaflet-popup-content small { color: var(--muted); }
.leaflet-tooltip { border: 1px solid rgba(190,218,226,.14); border-radius: 7px; color: var(--text); background: #10252d; box-shadow: 0 8px 25px rgba(0,0,0,.25); font-size: 10px; }
.map-pool-stats { display: grid; gap: 3px; margin: 7px 0; }
.map-pool-stat { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 10px; }
.map-pool-stat b { color: var(--text); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 2px 35px; color: #627b81; font: 9px "DM Mono", monospace; }
.error-banner { position: fixed; right: 24px; bottom: 20px; max-width: 360px; padding: 13px 16px; border: 1px solid rgba(255,139,131,.32); border-radius: 10px; color: #ffd6d3; background: #321d21; font-size: 11px; box-shadow: 0 10px 32px rgba(0,0,0,.25); }

body[data-theme="infinity"] {
  --page: #0a1022;
  --panel: #121b35;
  --panel-raised: #1b2948;
  --line: rgba(177, 208, 255, .16);
  --text: #f7f3e9;
  --muted: #a6b3ca;
  --mint: #ffb64a;
  --blue: #6cdcf5;
  --gold: #c0a1ff;
  --red: #ff7e8a;
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(72, 117, 208, .28), transparent 42%),
    radial-gradient(ellipse at 88% 48%, rgba(255, 166, 64, .12), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(146, 183, 255, .035) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(146, 183, 255, .028) 40px);
}
body[data-theme="infinity"] .topbar { border-color: rgba(177,208,255,.2); }
body[data-theme="infinity"] .brand-mark { border-color: rgba(255,182,74,.58); background: linear-gradient(145deg,rgba(255,182,74,.16),rgba(108,220,245,.08)); box-shadow: 0 0 22px rgba(255,182,74,.1); transform: rotate(-4deg); }
body[data-theme="infinity"] .brand-mark span { background: linear-gradient(180deg,#ffe19a,var(--mint)); }
body[data-theme="infinity"] .brand small { color: #a5b7df; }
body[data-theme="infinity"] .service-status.online i { background: var(--mint); box-shadow: 0 0 0 4px rgba(255,182,74,.14); }
body[data-theme="infinity"] .theme-toggle { border-color: rgba(255,182,74,.48); color: #ffe2af; background: linear-gradient(120deg,rgba(255,182,74,.14),rgba(108,220,245,.08)); box-shadow: 0 0 18px rgba(255,182,74,.08); }
body[data-theme="infinity"] .theme-toggle:hover { border-color: rgba(255,196,105,.8); background: rgba(255,182,74,.2); }
body[data-theme="infinity"] .theme-toggle > span:first-child { color: #ffe19a; text-shadow: 0 0 12px rgba(255,195,99,.7); }
body[data-theme="infinity"] .eyebrow { color: #a8c0ee; }
body[data-theme="infinity"] .eyebrow-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(255,182,74,.16), 0 0 14px rgba(255,182,74,.52); }
body[data-theme="infinity"] .metric-card,
body[data-theme="infinity"] .panel { border-color: rgba(177,208,255,.16); background: linear-gradient(145deg,rgba(25,38,70,.94),rgba(12,20,42,.96)); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 42px rgba(1,5,18,.15); }
body[data-theme="infinity"] .metric-primary { border-color: rgba(255,182,74,.43); background: linear-gradient(145deg,rgba(93,63,42,.48),rgba(18,29,57,.96)); }
body[data-theme="infinity"] .panel-heading { border-bottom: 1px solid rgba(177,208,255,.1); padding-bottom: 13px; }
body[data-theme="infinity"] .period-picker { border-color: rgba(177,208,255,.18); background: rgba(8,14,31,.6); }
body[data-theme="infinity"] .period-picker button { color: #b2c0dc; }
body[data-theme="infinity"] .period-picker button.selected { color: #241708; background: linear-gradient(100deg,#ffc65f,#ff9e3f); box-shadow: 0 0 18px rgba(255,174,72,.22); }
body[data-theme="infinity"] .origin-track span { background: linear-gradient(90deg,#ff9e3f,#ffd271); }
body[data-theme="infinity"] .world-lore-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: -6px 0 18px; padding: 10px 13px; border: 1px solid rgba(108,220,245,.22); border-radius: 9px; color: #c7d7f2; background: linear-gradient(100deg,rgba(30,56,100,.62),rgba(20,30,61,.5) 52%,rgba(104,65,44,.33)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 0 24px rgba(76,135,220,.08); font: 8px "DM Mono",monospace; letter-spacing: .09em; }
body[data-theme="infinity"] .world-lore-strip .lore-kicker { color: #ffd17a; }
body[data-theme="infinity"] .world-lore-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(108,220,245,.85); }
body[data-theme="infinity"] .world-lore-strip span:last-child { color: #92e9f3; }
body[data-theme="infinity"] .map-frame { border-color: rgba(108,220,245,.3); box-shadow: 0 0 28px rgba(42,130,190,.09); }
body[data-theme="infinity"] .map-summary { border-color: rgba(108,220,245,.26); color: #e4f7f6; background: rgba(9,18,40,.9); }
body[data-theme="infinity"] .map-tools select { background: #162343; }
body[data-theme="infinity"] .footer { color: #8396bb; }

@media (prefers-reduced-motion: no-preference) {
  body[data-theme="infinity"] .service-status.online i { animation: dome-pulse 2.5s ease-in-out infinite; }
  @keyframes dome-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,182,74,.1), 0 0 15px rgba(255,182,74,.35); } }
}

@media (max-width: 900px) {
  .hero { align-items: start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-sidebar { display: grid; grid-template-columns: 1fr; }
  .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1320px); }
  .topbar { min-height: 68px; }
  .topbar-right { gap: 12px; }
  .external-link { display: none; }
  .dashboard-switch { padding: 7px 8px; font-size: 9px; }
  .hero { padding-top: 37px; }
  .period-picker { width: 100%; }
  .period-picker button { flex: 1 1 auto; padding: 9px 7px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 124px; padding: 15px; }
  .metric-label { font-size: 9px; }
  .metric-value { margin-top: 19px; font-size: 23px; }
  .panel { padding: 17px 14px; }
  .panel-heading { margin-bottom: 15px; }
  .chart-wrap svg { height: 210px; }
  .legend { padding-left: 20px; gap: 11px; }
  .footer { flex-direction: column; gap: 8px; }
  #requestMap { height: 330px; }
  .map-tools { align-items: end; flex-direction: column; gap: 5px; }
  .map-tools select { max-width: 150px; }
  .country-list { grid-template-columns: 1fr; }
  .topbar-right { gap: 8px; }
  .theme-toggle { gap: 5px; padding: 7px 8px; font-size: 9px; }
  .world-lore-strip { gap: 7px; font-size: 7px; }
}

@media (max-width: 480px) {
  .dashboard-choice-actions { grid-template-columns: 1fr; }
  .dashboard-choice-modal { padding: 22px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand small { font-size: 7px; }
  .service-status span { display: none; }
}

/* Infinity Rising is an independent, cinematic dashboard skin. */
.infinity-section-kicker, .infinity-section-title, .infinity-hero-kicker,
.infinity-hero-title, .infinity-hero-copy, .infinity-hero-coordinates,
.infinity-sky-art, .infinity-hero-status { display: none; }

body[data-theme="infinity"] {
  --page: #171515;
  --panel: #211e1e;
  --panel-raised: #302a28;
  --line: rgba(239, 197, 159, .18);
  --text: #fff7ed;
  --muted: #baa99e;
  --mint: #ed634e;
  --blue: #d89462;
  --gold: #f3b86f;
  background-color: #171515;
  background-image: radial-gradient(ellipse at 52% -2%, rgba(170,96,63,.3), transparent 47%), linear-gradient(180deg,#221a19 0,#171515 54rem,#111113 100%);
}
body[data-theme="infinity"] .shell { width: min(1480px, calc(100% - 56px)); }
body[data-theme="infinity"] .topbar {
  position: relative;
  min-height: 76px;
  margin-top: 15px;
  padding: 0 26px;
  border: 1px solid rgba(255,183,133,.22);
  border-radius: 18px 8px 18px 8px;
  background: linear-gradient(100deg,rgba(20,16,24,.97),rgba(28,21,31,.95));
  box-shadow: 0 15px 40px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.07);
}
body[data-theme="infinity"] .topbar::after {
  position: absolute; right: 0; bottom: -1px; left: 0; height: 2px;
  content: ""; background: linear-gradient(90deg,transparent,#f58b63 21%,#ffd08b 53%,#ff7359 78%,transparent); opacity: .7;
}
body[data-theme="infinity"] .brand-mark { width: 43px; height: 43px; border-radius: 50%; border-color: rgba(255,182,115,.8); background: radial-gradient(circle at 50% 45%,#f8b778 0 11%,transparent 12%),linear-gradient(145deg,#7e382f,#221b29 70%); box-shadow: 0 0 24px rgba(244,129,91,.24); transform: none; }
body[data-theme="infinity"] .brand-mark span { background: linear-gradient(180deg,#ffe5b8,#ff755c); }
body[data-theme="infinity"] .brand strong { color: #fff3e8; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
body[data-theme="infinity"] .brand small { color: #da9880; letter-spacing: .25em; }
body[data-theme="infinity"] .topbar-right { gap: 19px; }
body[data-theme="infinity"] .external-link { border: 1px solid rgba(255,122,94,.6); border-radius: 2px 11px 2px 11px; padding: 9px 13px; color: #ffb09a; background: rgba(238,91,74,.09); letter-spacing: .1em; text-transform: uppercase; }
body[data-theme="infinity"] .external-link span { color: #ffd08b; }
body[data-theme="infinity"] .theme-toggle { min-height: 37px; border-radius: 2px 10px 2px 10px; border-color: rgba(255,190,133,.48); color: #ffe6ce; background: linear-gradient(105deg,rgba(146,68,54,.52),rgba(55,39,54,.65)); box-shadow: inset 0 1px rgba(255,255,255,.09),0 0 20px rgba(245,130,92,.1); letter-spacing: .04em; text-transform: uppercase; }
body[data-theme="infinity"] .service-status { color: #e6bdb0; }
body[data-theme="infinity"] .service-status.online i { background: #ffb05f; box-shadow: 0 0 0 4px rgba(255,176,95,.16),0 0 14px #ff9c5c; }
body[data-theme="infinity"] .hero {
  position: relative;
  min-height: 500px;
  align-items: center;
  margin-top: 15px;
  padding: 62px 47px 94px;
  overflow: hidden;
  border: 1px solid rgba(255,200,157,.29);
  border-radius: 27px 8px 27px 8px;
  background: #5a3035;
  box-shadow: 0 28px 70px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.2);
  isolation: isolate;
}
body[data-theme="infinity"] .hero::before {
  position: absolute; z-index: 1; inset: 0; content: "";
  background: linear-gradient(90deg,rgba(25,18,18,.74) 0%,rgba(27,21,21,.57) 34%,rgba(28,20,20,.18) 63%,rgba(21,17,18,.12) 100%),linear-gradient(0deg,rgba(15,14,14,.4),transparent 46%);
}
body[data-theme="infinity"] .hero-copy-block { position: relative; z-index: 2; width: min(770px,69%); }
body[data-theme="infinity"] .hero .infinity-sky-art { display: block; position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
body[data-theme="infinity"] .infinity-sky-slide { position: absolute; inset: 0; background-position: center 54%; background-repeat: no-repeat; background-size: cover; opacity: 0; transition: opacity 900ms ease-in-out; }
body[data-theme="infinity"] .infinity-sky-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body[data-theme="infinity"] .infinity-sky-slide { transition: none; } }
body[data-theme="infinity"] .hero .eyebrow { color: #ffbf94; }
body[data-theme="infinity"] .hero .standard-hero-title,
body[data-theme="infinity"] .hero .standard-hero-copy { display: none; }
body[data-theme="infinity"] .hero-copy-block > .eyebrow:not(.infinity-hero-kicker) { display: none; }
body[data-theme="infinity"] .hero .infinity-hero-title { display: block; max-width: 770px; margin: 0; color: #fff7ed; font-family: Manrope,ui-sans-serif,system-ui,sans-serif; font-size: clamp(55px,8.2vw,108px); line-height: .84; letter-spacing: -.045em; font-weight: 850; text-shadow: 0 7px 32px rgba(18,10,10,.55); text-transform: uppercase; }
body[data-theme="infinity"] .infinity-hero-title em { color: #ed624e; font-style: normal; }
body[data-theme="infinity"] .hero .infinity-hero-copy { display: block; max-width: 465px; margin: 20px 0 0; color: #f4e1d4; font-size: 15px; line-height: 1.65; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
body[data-theme="infinity"] .infinity-hero-kicker { display: flex; margin-bottom: 17px; color: #f2b376; }
body[data-theme="infinity"] .infinity-hero-coordinates { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 24px; color: #f8dfc8; font: 9px "DM Mono",monospace; letter-spacing: .11em; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
body[data-theme="infinity"] .infinity-hero-coordinates i { width: 5px; height: 5px; border-radius: 50%; background: #ed634e; box-shadow: 0 0 12px #ed634e; }
body[data-theme="infinity"] .infinity-hero-status { display: grid; position: absolute; right: 36px; bottom: 95px; z-index: 2; width: 190px; min-height: 80px; align-content: center; padding: 14px 16px 14px 67px; border: 1px solid rgba(255,205,157,.45); border-radius: 3px 15px 3px 15px; color: #fff4e9; background: linear-gradient(110deg,rgba(25,18,31,.9),rgba(59,34,44,.65)); box-shadow: 0 12px 35px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.11); backdrop-filter: blur(8px); }
body[data-theme="infinity"] .infinity-hero-status .status-orbit { position: absolute; left: 15px; top: 15px; width: 39px; height: 39px; border: 1px solid #ffc379; border-radius: 50%; box-shadow: inset 0 0 14px rgba(255,166,100,.25),0 0 16px rgba(255,144,93,.24); }
body[data-theme="infinity"] .infinity-hero-status .status-orbit::before { position: absolute; inset: 8px; border: 1px solid #80d8e4; border-radius: 50%; content: ""; }
body[data-theme="infinity"] .infinity-hero-status .status-orbit::after { position: absolute; top: -3px; left: 16px; width: 7px; height: 7px; border-radius: 50%; background: #ff9066; content: ""; box-shadow: 0 0 10px #ff9066; }
body[data-theme="infinity"] .infinity-hero-status .status-kicker { color: #f4ad8a; font: 8px "DM Mono",monospace; letter-spacing: .14em; }
body[data-theme="infinity"] .infinity-hero-status strong { margin-top: 3px; font-size: 19px; letter-spacing: .14em; }
body[data-theme="infinity"] .infinity-hero-status small { margin-top: 2px; color: #c8aaa9; font: 7px "DM Mono",monospace; letter-spacing: .08em; }
body[data-theme="infinity"] .hero .period-picker { position: absolute; right: 30px; bottom: 25px; z-index: 3; border-color: rgba(255,214,174,.4); border-radius: 3px 13px 3px 13px; background: rgba(24,18,29,.78); backdrop-filter: blur(12px); }
body[data-theme="infinity"] .period-picker button { color: #f0cbbb; }
body[data-theme="infinity"] .period-picker button.selected { color: #291819; background: linear-gradient(100deg,#ffd18a,#ff7b5c); box-shadow: 0 0 24px rgba(255,137,90,.35); }
body[data-theme="infinity"] .world-lore-strip { display: flex; position: relative; align-items: center; flex-wrap: wrap; gap: 13px; margin: -16px 27px 20px; padding: 14px 19px; border: 1px solid rgba(255,198,145,.33); border-radius: 2px 14px 2px 14px; color: #ffe6d2; background: linear-gradient(90deg,rgba(75,39,42,.95),rgba(43,33,48,.96) 50%,rgba(53,42,56,.92)); box-shadow: 0 15px 37px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.1); font: 9px "DM Mono",monospace; letter-spacing: .12em; }
body[data-theme="infinity"] .world-lore-strip.infinity-art-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) minmax(180px,.8fr); gap: 12px; margin: -16px 27px 20px; padding: 12px; align-items: stretch; }
body[data-theme="infinity"] .infinity-art-card { position: relative; min-width: 0; min-height: 158px; margin: 0; overflow: hidden; border: 1px solid rgba(255,198,145,.25); border-radius: 2px 12px 2px 12px; background: #201b25; }
body[data-theme="infinity"] .infinity-art-card img { display: block; width: 100%; height: 158px; object-fit: cover; transition: transform .45s ease; }
body[data-theme="infinity"] .infinity-art-card:hover img { transform: scale(1.035); }
body[data-theme="infinity"] .infinity-art-card::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(0deg,rgba(21,15,23,.91),transparent); pointer-events: none; }
body[data-theme="infinity"] .infinity-art-card figcaption { position: absolute; right: 13px; bottom: 12px; left: 13px; z-index: 1; display: grid; gap: 4px; color: #fff1e4; }
body[data-theme="infinity"] .infinity-art-card figcaption span { color: #ffbd87; font: 8px "DM Mono",monospace; letter-spacing: .14em; }
body[data-theme="infinity"] .infinity-art-card figcaption strong { font-size: 14px; line-height: 1.2; }
body[data-theme="infinity"] .infinity-art-note { align-self: center; margin: 0; padding: 9px 12px; color: #e8cfc2; font-size: 12px; line-height: 1.65; letter-spacing: 0; }
body[data-theme="infinity"] .infinity-art-note p { margin: 0 0 12px; }
body[data-theme="infinity"] .infinity-art-note a { color: #ffbd87; font: 8px "DM Mono",monospace; letter-spacing: .08em; text-decoration: none; }
body[data-theme="infinity"] .infinity-art-note a:hover { color: #fff1e4; text-decoration: underline; }
body[data-theme="infinity"] .metric-grid { position: relative; z-index: 4; gap: 10px; margin-top: -8px; }
body[data-theme="infinity"] .metric-card,
body[data-theme="infinity"] .panel { border: 1px solid rgba(255,204,165,.2); border-radius: 3px 17px 3px 17px; background: linear-gradient(145deg,rgba(48,36,48,.96),rgba(26,24,36,.97)); box-shadow: 0 16px 45px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.08); }
body[data-theme="infinity"] .metric-card { position: relative; min-height: 143px; overflow: hidden; padding: 20px 22px; }
body[data-theme="infinity"] .metric-card::after { position: absolute; right: -16px; bottom: -35px; width: 92px; height: 92px; border: 1px solid rgba(255,168,119,.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 9px rgba(255,168,119,.035),0 0 0 20px rgba(255,168,119,.025); }
body[data-theme="infinity"] .metric-primary { border-color: rgba(255,154,103,.53); background: linear-gradient(135deg,rgba(133,66,53,.74),rgba(37,31,43,.97)); }
body[data-theme="infinity"] .metric-label { color: #edc7b7; font: 9px "DM Mono",monospace; letter-spacing: .1em; text-transform: uppercase; }
body[data-theme="infinity"] .metric-icon { color: #ffc378; }
body[data-theme="infinity"] .metric-value { color: #fff3e5; font-size: clamp(25px,2.4vw,34px); }
body[data-theme="infinity"] .metric-foot { color: #bc9e9c; font-size: 9px; }
body[data-theme="infinity"] .content-grid { grid-template-columns: minmax(0,1.45fr) minmax(310px,.8fr); gap: 15px; margin-top: 16px; }
body[data-theme="infinity"] .panel { padding: 25px; }
body[data-theme="infinity"] .panel-heading { align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,201,165,.16); }
body[data-theme="infinity"] .panel-heading h2 { color: #fff2e5; font-size: 20px; letter-spacing: -.04em; }
body[data-theme="infinity"] .standard-section-kicker,
body[data-theme="infinity"] .standard-section-title { display: none; }
body[data-theme="infinity"] .infinity-section-kicker,
body[data-theme="infinity"] .infinity-section-title { display: flex; }
body[data-theme="infinity"] .infinity-section-title { display: inline; }
body[data-theme="infinity"] .infinity-section-kicker { margin-bottom: 8px; color: #e8a789; }
body[data-theme="infinity"] .panel-note { color: #deb49f; }
body[data-theme="infinity"] .chart-grid { stroke: rgba(255,216,185,.12); }
body[data-theme="infinity"] .chart-axis { fill: #c8a69b; }
body[data-theme="infinity"] .legend span { color: #e2c5ba; }
body[data-theme="infinity"] .origin-row-top { color: #f0d1c0; }
body[data-theme="infinity"] .origin-row small { color: #b49794; }
body[data-theme="infinity"] .origin-track { background: rgba(255,255,255,.1); }
body[data-theme="infinity"] .origin-track span { background: linear-gradient(90deg,#ff765d,#ffd083); }
body[data-theme="infinity"] .flow-coverage div { border-color: rgba(255,202,166,.15); border-radius: 2px 9px 2px 9px; background: rgba(255,255,255,.035); }
body[data-theme="infinity"] .flow-coverage span { color: #e0c2b6; }
body[data-theme="infinity"] .quiet-note, body[data-theme="infinity"] .table-footnote { color: #b19794; }
body[data-theme="infinity"] .pools-panel { margin-top: 15px; }
body[data-theme="infinity"] .table-scroll { overflow: visible; }
body[data-theme="infinity"] .pools-panel table { display: block; width: 100%; min-width: 0; }
body[data-theme="infinity"] .pools-panel thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body[data-theme="infinity"] .pools-panel tbody { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
body[data-theme="infinity"] .pools-panel tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: relative; overflow: hidden; padding: 14px 16px 13px; border: 1px solid rgba(255,198,157,.29); border-radius: 5px 22px 5px 22px; background: linear-gradient(135deg,rgba(103,61,57,.54),rgba(32,30,42,.96) 62%); box-shadow: inset 0 1px rgba(255,255,255,.07),0 10px 28px rgba(0,0,0,.18); }
body[data-theme="infinity"] .pools-panel tr::before { position: absolute; top: -30px; right: -14px; width: 120px; height: 65px; border: 1px solid rgba(255,192,137,.34); border-radius: 50%; content: ""; transform: rotate(-18deg); box-shadow: 0 0 0 8px rgba(255,190,137,.045); }
body[data-theme="infinity"] .pools-panel td { display: block; min-width: 0; padding: 11px 8px 5px; border-top: 1px solid rgba(255,205,169,.12); color: #fff0e1; font: 13px "DM Mono",monospace; white-space: normal; }
body[data-theme="infinity"] .pools-panel td::before { display: block; margin-bottom: 5px; color: #c7998c; content: attr(data-label); font: 7px "DM Mono",monospace; letter-spacing: .11em; text-transform: uppercase; }
body[data-theme="infinity"] .pools-panel td:first-child { grid-column: 1 / -1; min-height: 56px; padding: 8px 5px 12px; border: 0; }
body[data-theme="infinity"] .pools-panel td:first-child::before { display: none; }
body[data-theme="infinity"] .pools-panel td:first-child .pool-name { color: #fff0dc; font: 700 13px Manrope,ui-sans-serif,sans-serif; }
body[data-theme="infinity"] .pools-panel td:first-child .pool-name i { width: 14px; height: 14px; border: 2px solid #ffcf88; box-shadow: 0 0 13px rgba(255,158,100,.5); }
body[data-theme="infinity"] .pools-panel .pool-last { margin-left: 22px; color: #c79f98; }
body[data-theme="infinity"] .pools-panel .empty-cell { grid-column: 1 / -1; }
body[data-theme="infinity"] .geography-panel { margin-top: 15px; }
body[data-theme="infinity"] .map-frame { border-color: rgba(255,202,162,.34); border-radius: 4px 19px 4px 19px; background: #1a202c; box-shadow: inset 0 0 35px rgba(245,123,85,.08); }
body[data-theme="infinity"] #requestMap { background: linear-gradient(180deg,#6f4145,#292d3a 53%,#19222b); }
body[data-theme="infinity"] .map-tools label { color: #d3b3a7; font: 8px "DM Mono",monospace; letter-spacing: .08em; text-transform: uppercase; }
body[data-theme="infinity"] .map-tools select { border-color: rgba(255,203,165,.26); border-radius: 2px 9px 2px 9px; color: #fff0e3; background: #30232c; }
body[data-theme="infinity"] .map-summary { border-color: rgba(255,190,141,.34); border-radius: 2px 9px 2px 9px; color: #fff0e0; background: rgba(32,22,31,.92); }
body[data-theme="infinity"] .map-sidebar-heading { color: #dfa38b; }
body[data-theme="infinity"] .country-name { color: #f0d6c8; }
body[data-theme="infinity"] .country-name b { background: linear-gradient(90deg,#ff795d,#ffd07e); }
body[data-theme="infinity"] .country-code { color: #ffbd8b; }
body[data-theme="infinity"] .country-region { color: #c6a69e; }
body[data-theme="infinity"] .map-geo-location { color: #fff0e4; }
body[data-theme="infinity"] .map-geo-location small { color: #c2a49c; }
body[data-theme="infinity"] .country-speed { color: #d6b7ae; }
body[data-theme="infinity"] .country-count { color: #f0cfc0; }
body[data-theme="infinity"] .map-legend { color: #eed1c1; }
body[data-theme="infinity"] .map-legend small { color: #b29491; }
body[data-theme="infinity"] .leaflet-control-zoom a { color: #fff0df !important; background: rgba(34,24,34,.95) !important; border-color: rgba(255,200,158,.27) !important; }
body[data-theme="infinity"] .leaflet-control-zoom a:hover { color: #ffae78 !important; background: #4c3033 !important; }
body[data-theme="infinity"] .leaflet-control-attribution { color: #ddc2b8 !important; background: rgba(27,20,29,.85) !important; }
body[data-theme="infinity"] .leaflet-control-attribution a { color: #ffad82 !important; }
body[data-theme="infinity"] .leaflet-popup-content-wrapper,
body[data-theme="infinity"] .leaflet-popup-tip { color: #fff0e4; background: #2b212c; }
body[data-theme="infinity"] .leaflet-popup-content { color: #efd2c4; }
body[data-theme="infinity"] .leaflet-popup-content strong { color: #ffb57e; }
body[data-theme="infinity"] .leaflet-tooltip { border-color: rgba(255,198,157,.35); background: #2d222d; }
body[data-theme="infinity"] .footer { color: #bd9d9a; }

@media (max-width: 900px) {
  body[data-theme="infinity"] .shell { width: min(100% - 32px,1480px); }
  body[data-theme="infinity"] .hero { min-height: 450px; padding: 50px 30px 96px; }
  body[data-theme="infinity"] .hero-copy-block { width: min(700px,76%); }
  body[data-theme="infinity"] .infinity-hero-status { right: 24px; bottom: 92px; width: 166px; }
  body[data-theme="infinity"] .pools-panel tbody { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  body[data-theme="infinity"] .shell { width: calc(100% - 20px); }
  body[data-theme="infinity"] .topbar { min-height: 66px; margin-top: 8px; padding: 0 12px; border-radius: 12px 4px 12px 4px; }
  body[data-theme="infinity"] .brand { gap: 7px; }
  body[data-theme="infinity"] .brand-mark { width: 34px; height: 34px; padding: 6px; }
  body[data-theme="infinity"] .brand strong { font-size: 13px; }
  body[data-theme="infinity"] .brand small { font-size: 7px; letter-spacing: .17em; }
  body[data-theme="infinity"] .topbar-right { gap: 7px; }
  body[data-theme="infinity"] .service-status { gap: 5px; font-size: 9px; }
  body[data-theme="infinity"] .external-link { display: none; }
  body[data-theme="infinity"] .theme-toggle { gap: 4px; padding: 7px 8px; font-size: 8px; }
  body[data-theme="infinity"] .hero { min-height: 520px; align-items: start; margin-top: 8px; padding: 42px 22px 105px; border-radius: 18px 5px 18px 5px; }
  body[data-theme="infinity"] .hero::before { background: linear-gradient(90deg,rgba(26,17,27,.89),rgba(35,20,29,.52) 70%,rgba(35,20,29,.17)),linear-gradient(0deg,rgba(17,15,25,.46),transparent 58%); }
  body[data-theme="infinity"] .hero-copy-block { width: 100%; }
  body[data-theme="infinity"] .hero .infinity-hero-title { max-width: 520px; font-size: clamp(43px,13vw,68px); }
  body[data-theme="infinity"] .hero .infinity-hero-copy { max-width: 310px; margin-top: 14px; font-size: 12px; }
  body[data-theme="infinity"] .infinity-hero-coordinates { max-width: 270px; gap: 7px; font-size: 7px; }
  body[data-theme="infinity"] .infinity-hero-status { right: 14px; bottom: 84px; width: 149px; min-height: 65px; padding: 10px 10px 10px 55px; }
  body[data-theme="infinity"] .infinity-hero-status .status-orbit { top: 12px; left: 11px; width: 34px; height: 34px; }
  body[data-theme="infinity"] .infinity-hero-status strong { font-size: 15px; }
  body[data-theme="infinity"] .hero .period-picker { right: 10px; bottom: 13px; left: 10px; justify-content: center; gap: 1px; padding: 3px; }
  body[data-theme="infinity"] .hero .period-picker button { flex: 1 1 auto; padding: 9px 5px; font-size: 8px; }
  body[data-theme="infinity"] .world-lore-strip.infinity-art-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: -12px 9px 13px; padding: 8px; }
  body[data-theme="infinity"] .infinity-art-card, body[data-theme="infinity"] .infinity-art-card img { min-height: 112px; height: 112px; }
  body[data-theme="infinity"] .infinity-art-card figcaption { right: 8px; bottom: 8px; left: 8px; }
  body[data-theme="infinity"] .infinity-art-card figcaption span { font-size: 7px; }
  body[data-theme="infinity"] .infinity-art-card figcaption strong { font-size: 11px; }
  body[data-theme="infinity"] .infinity-art-note { grid-column: 1 / -1; padding: 3px 5px 5px; font-size: 10px; }
  body[data-theme="infinity"] .metric-grid { gap: 7px; }
  body[data-theme="infinity"] .metric-card { min-height: 115px; padding: 13px 12px; }
  body[data-theme="infinity"] .metric-label { font-size: 7px; }
  body[data-theme="infinity"] .metric-value { margin-top: 15px; font-size: 22px; }
  body[data-theme="infinity"] .metric-foot { font-size: 8px; }
  body[data-theme="infinity"] .panel { padding: 17px 13px; }
  body[data-theme="infinity"] .panel-heading h2 { font-size: 17px; }
  body[data-theme="infinity"] .content-grid { gap: 9px; margin-top: 9px; }
  body[data-theme="infinity"] .pools-panel tbody { grid-template-columns: 1fr; gap: 8px; }
  body[data-theme="infinity"] .pools-panel tr { padding: 10px 12px; }
  body[data-theme="infinity"] .pools-panel td { padding: 8px 5px 4px; font-size: 12px; }
  body[data-theme="infinity"] #requestMap { height: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  body[data-theme="infinity"] .infinity-hero-status .status-orbit { animation: guide-orbit 8s linear infinite; }
  @keyframes guide-orbit { to { transform: rotate(360deg); } }
}

/* Keep the map and country list inside one predictable responsive frame. */
.geography-panel { container-type: inline-size; }
.map-layout { align-items: stretch; grid-template-columns: minmax(0,1.8fr) minmax(250px,.72fr); }
.map-frame { width: 100%; height: clamp(380px,36vw,480px); min-height: 0; }
#requestMap { width: 100%; height: 100%; min-height: 0; }
.map-sidebar { display: flex; flex-direction: column; height: clamp(380px,36vw,480px); min-height: 0; max-height: clamp(380px,36vw,480px); overflow: hidden; }
.map-sidebar-heading { flex: 0 0 auto; }
.country-list { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0,1fr); align-content: start; gap: 12px; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 5px 4px 0; scrollbar-color: rgba(157,174,180,.4) transparent; scrollbar-width: thin; }
.country-row { grid-template-columns: 26px minmax(0,1fr) 52px; gap: 7px; min-width: 0; }
.country-name { min-width: 0; overflow-wrap: anywhere; }
.country-speed-list { min-width: 0; }
.country-speed { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.map-legend { flex: 0 0 auto; margin-top: 12px; }

@media (max-width: 1100px) {
  .map-layout { grid-template-columns: minmax(0,1fr); }
  .map-frame { height: clamp(320px,45vw,460px); }
  #requestMap { height: 100%; }
  .map-sidebar { display: flex; height: auto; max-height: none; overflow: visible; }
  .country-list { flex: 0 0 auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; overflow: visible; padding-right: 0; }
  .map-legend { margin-top: 15px; }
}
@media (max-width: 560px) {
  .map-frame { height: clamp(280px,82vw,360px); }
  #requestMap { height: 100%; }
  .country-list { grid-template-columns: minmax(0,1fr); }
  .country-row { grid-template-columns: 26px minmax(0,1fr) 48px; gap: 7px; }
  .country-speed { font-size: 7px; }
}
@container (max-width: 780px) {
  .map-layout { grid-template-columns: minmax(0,1fr); }
  .map-frame { height: clamp(320px,54cqw,460px); }
  #requestMap { height: 100%; }
  .map-sidebar { display: flex; height: auto; max-height: none; overflow: visible; }
  .country-list { flex: 0 0 auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; overflow: visible; padding-right: 0; }
  .map-legend { margin-top: 15px; }
}
@container (max-width: 560px) {
  .map-frame { height: clamp(280px,82cqw,360px); }
  .country-list { grid-template-columns: minmax(0,1fr); }
  .country-row { grid-template-columns: 26px minmax(0,1fr) 48px; gap: 7px; }
  .country-speed { font-size: 7px; }
}

/* Official Infinity Rising brand palette and logo treatment. */
.infinity-brand-logo { display: none; }
@font-face {
  font-family: Barlow;
  src: url("/assets/fonts/barlow-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/assets/fonts/barlow-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
body[data-theme="infinity"] {
  --page: #121421;
  --panel: #1c2134;
  --panel-raised: #252b43;
  --line: rgba(188, 193, 196, .2);
  --text: #f5f4ef;
  --muted: #bcc1c4;
  --mint: #ff5626;
  --blue: #737b9e;
  --gold: #f57031;
  --red: #ff5626;
  font-family: Barlow, "Arial", sans-serif;
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse at 52% -2%, rgba(115,123,158,.23), transparent 48%),
    radial-gradient(ellipse at 95% 28%, rgba(255,86,38,.09), transparent 34%),
    linear-gradient(180deg,#171a2b 0,#121421 54rem,#0e101a 100%);
}
body[data-theme="infinity"] .network-backdrop { opacity: .94; }
body[data-theme="infinity"] .topbar {
  border-color: rgba(188,193,196,.24);
  background: linear-gradient(105deg,rgba(18,20,33,.98),rgba(28,33,52,.97));
}
body[data-theme="infinity"] .topbar::after { background: linear-gradient(90deg,transparent,#ff5626 23%,#f57031 54%,#ff5626 78%,transparent); opacity: .82; }
body[data-theme="infinity"] .brand { gap: 13px; }
body[data-theme="infinity"] .brand-mark,
body[data-theme="infinity"] .brand > span:nth-of-type(2) { display: none; }
body[data-theme="infinity"] .infinity-brand-logo { display: block; width: 184px; height: 40px; object-fit: contain; }
body[data-theme="infinity"] .brand::after {
  content: "NORDIC FILENODE POOL OPERATIONS";
  margin-left: 1px;
  padding-left: 13px;
  border-left: 1px solid rgba(188,193,196,.35);
  color: #bcc1c4;
  font: 600 9px/1.4 Barlow,Arial,sans-serif;
  letter-spacing: .14em;
}
body[data-theme="infinity"] .service-status,
body[data-theme="infinity"] .brand::after { color: #bcc1c4; }
body[data-theme="infinity"] .service-status.online i { background: #ff5626; box-shadow: 0 0 0 4px rgba(255,86,38,.17),0 0 14px rgba(255,86,38,.65); }
body[data-theme="infinity"] .theme-toggle,
body[data-theme="infinity"] .dashboard-switch {
  border-color: rgba(255,86,38,.55);
  color: #f5f4ef;
  background: linear-gradient(110deg,rgba(255,86,38,.18),rgba(28,33,52,.88));
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
body[data-theme="infinity"] .theme-toggle:hover,
body[data-theme="infinity"] .dashboard-switch:hover { border-color: #ff5626; background: rgba(255,86,38,.22); }
body[data-theme="infinity"] .theme-toggle > span:first-child { color: #ff5626; text-shadow: 0 0 12px rgba(255,86,38,.52); }
body[data-theme="infinity"] .external-link { border-color: rgba(255,86,38,.62); color: #ff9a78; background: rgba(255,86,38,.08); }
body[data-theme="infinity"] .external-link span { color: #f57031; }
body[data-theme="infinity"] .hero { border-color: rgba(188,193,196,.32); background: #1c2134; }
body[data-theme="infinity"] .hero::before {
  background: linear-gradient(90deg,rgba(18,20,33,.86) 0%,rgba(18,20,33,.63) 36%,rgba(18,20,33,.22) 68%,rgba(18,20,33,.13) 100%),
    linear-gradient(0deg,rgba(18,20,33,.55),transparent 48%);
}
body[data-theme="infinity"] .hero .infinity-hero-title {
  font-family: Nasalization,"Arial Black",Barlow,sans-serif;
  color: #f5f4ef;
  letter-spacing: -.025em;
  text-shadow: 0 7px 32px rgba(18,20,33,.62);
}
body[data-theme="infinity"] .panel-heading h2,
body[data-theme="infinity"] .infinity-art-card figcaption strong {
  font-family: "Havelock Titling",Barlow,sans-serif;
  font-weight: 700;
}
body[data-theme="infinity"] .infinity-hero-title em { color: #ff5626; }
body[data-theme="infinity"] .hero .eyebrow,
body[data-theme="infinity"] .infinity-hero-kicker,
body[data-theme="infinity"] .infinity-hero-coordinates { color: #f5f4ef; }
body[data-theme="infinity"] .infinity-hero-kicker { font-family: Barlow,Arial,sans-serif; font-weight: 700; }
body[data-theme="infinity"] .eyebrow-dot,
body[data-theme="infinity"] .infinity-hero-coordinates i { background: #ff5626; box-shadow: 0 0 12px rgba(255,86,38,.58); }
body[data-theme="infinity"] .hero .infinity-hero-copy { color: #f5f4ef; }
body[data-theme="infinity"] .infinity-hero-status {
  border-color: rgba(188,193,196,.42);
  color: #f5f4ef;
  background: linear-gradient(110deg,rgba(18,20,33,.94),rgba(28,33,52,.9));
}
body[data-theme="infinity"] .infinity-hero-status .status-orbit { border-color: #ff5626; box-shadow: inset 0 0 14px rgba(255,86,38,.18),0 0 16px rgba(255,86,38,.22); }
body[data-theme="infinity"] .infinity-hero-status .status-orbit::before { border-color: #737b9e; }
body[data-theme="infinity"] .infinity-hero-status .status-orbit::after { background: #f57031; box-shadow: 0 0 10px #f57031; }
body[data-theme="infinity"] .infinity-hero-status .status-kicker { color: #bcc1c4; }
body[data-theme="infinity"] .infinity-hero-status small { color: #bcc1c4; }
body[data-theme="infinity"] .hero .period-picker { border-color: rgba(188,193,196,.4); background: rgba(18,20,33,.9); }
body[data-theme="infinity"] .period-picker button { color: #bcc1c4; }
body[data-theme="infinity"] .period-picker button.selected { color: #121421; background: linear-gradient(100deg,#ff5626,#f57031); box-shadow: 0 0 22px rgba(255,86,38,.28); }
body[data-theme="infinity"] .world-lore-strip.infinity-art-gallery {
  border-color: rgba(188,193,196,.28);
  color: #f5f4ef;
  background: linear-gradient(100deg,rgba(28,33,52,.98),rgba(18,20,33,.98));
}
body[data-theme="infinity"] .infinity-art-card { border-color: rgba(188,193,196,.3); background: #1c2134; }
body[data-theme="infinity"] .infinity-art-card figcaption span { color: #ff8a5d; }
body[data-theme="infinity"] .infinity-art-note { color: #bcc1c4; }
body[data-theme="infinity"] .infinity-art-note a { color: #ff8a5d; }
body[data-theme="infinity"] .metric-card,
body[data-theme="infinity"] .panel {
  border-color: rgba(188,193,196,.2);
  background: linear-gradient(145deg,rgba(28,33,52,.98),rgba(18,20,33,.99));
  box-shadow: 0 16px 45px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.045);
}
body[data-theme="infinity"] .metric-primary { border-color: rgba(255,86,38,.56); background: linear-gradient(135deg,rgba(255,86,38,.19),rgba(28,33,52,.98) 65%); }
body[data-theme="infinity"] .metric-card::after { border-color: rgba(115,123,158,.24); box-shadow: 0 0 0 9px rgba(115,123,158,.045),0 0 0 20px rgba(115,123,158,.025); }
body[data-theme="infinity"] .metric-label,
body[data-theme="infinity"] .panel-heading h2,
body[data-theme="infinity"] .metric-value { color: #f5f4ef; }
body[data-theme="infinity"] .metric-icon,
body[data-theme="infinity"] .panel-heading .infinity-section-kicker { color: #ff5626; }
body[data-theme="infinity"] .metric-foot,
body[data-theme="infinity"] .panel-note,
body[data-theme="infinity"] .quiet-note,
body[data-theme="infinity"] .table-footnote { color: #bcc1c4; }
body[data-theme="infinity"] .panel-heading { border-color: rgba(188,193,196,.18); }
body[data-theme="infinity"] .chart-grid { stroke: rgba(188,193,196,.18); }
body[data-theme="infinity"] .chart-axis { fill: #bcc1c4; }
body[data-theme="infinity"] .legend span,
body[data-theme="infinity"] .origin-row-top,
body[data-theme="infinity"] .flow-coverage span { color: #d9dce0; }
body[data-theme="infinity"] .origin-row small { color: #bcc1c4; }
body[data-theme="infinity"] .origin-track span,
body[data-theme="infinity"] .country-name b { background: linear-gradient(90deg,#ff5626,#f57031); }
body[data-theme="infinity"] .flow-coverage div { border-color: rgba(188,193,196,.18); background: rgba(18,20,33,.55); }
body[data-theme="infinity"] .flow-coverage strong { color: #ff8a5d; }
body[data-theme="infinity"] .flow-coverage strong.flow-observed { color: #bcc1c4; }
body[data-theme="infinity"] .pools-panel tr { border-color: rgba(188,193,196,.24); background: linear-gradient(135deg,rgba(28,33,52,.98),rgba(18,20,33,.99)); }
body[data-theme="infinity"] .pools-panel tr::before { border-color: rgba(115,123,158,.3); box-shadow: 0 0 0 8px rgba(115,123,158,.05); }
body[data-theme="infinity"] .pools-panel td { border-color: rgba(188,193,196,.14); color: #f5f4ef; }
body[data-theme="infinity"] .pools-panel td::before,
body[data-theme="infinity"] .pools-panel .pool-last { color: #bcc1c4; }
body[data-theme="infinity"] .pools-panel td:first-child .pool-name i { border-color: #ff5626; box-shadow: 0 0 12px rgba(255,86,38,.38); }
body[data-theme="infinity"] .map-frame { border-color: rgba(188,193,196,.3); background: #121421; box-shadow: inset 0 0 35px rgba(115,123,158,.08); }
body[data-theme="infinity"] #requestMap { background: linear-gradient(180deg,#252b43,#1c2134 53%,#121421); }
body[data-theme="infinity"] .map-tools label,
body[data-theme="infinity"] .map-sidebar-heading,
body[data-theme="infinity"] .country-code { color: #bcc1c4; }
body[data-theme="infinity"] .map-tools select { border-color: rgba(188,193,196,.3); color: #f5f4ef; background: #1c2134; }
body[data-theme="infinity"] .map-summary { border-color: rgba(188,193,196,.3); color: #f5f4ef; background: rgba(18,20,33,.94); }
body[data-theme="infinity"] .country-name,
body[data-theme="infinity"] .map-geo-location { color: #f5f4ef; }
body[data-theme="infinity"] .country-region,
body[data-theme="infinity"] .map-geo-location small,
body[data-theme="infinity"] .country-speed,
body[data-theme="infinity"] .country-count,
body[data-theme="infinity"] .map-legend { color: #bcc1c4; }
body[data-theme="infinity"] .leaflet-control-zoom a { color: #f5f4ef !important; background: rgba(28,33,52,.96) !important; border-color: rgba(188,193,196,.25) !important; }
body[data-theme="infinity"] .leaflet-control-zoom a:hover { color: #ff5626 !important; background: #252b43 !important; }
body[data-theme="infinity"] .leaflet-control-attribution { color: #bcc1c4 !important; background: rgba(18,20,33,.9) !important; }
body[data-theme="infinity"] .leaflet-control-attribution a { color: #ff8a5d !important; }
body[data-theme="infinity"] .leaflet-popup-content-wrapper,
body[data-theme="infinity"] .leaflet-popup-tip { color: #f5f4ef; background: #1c2134; }
body[data-theme="infinity"] .leaflet-popup-content { color: #d9dce0; }
body[data-theme="infinity"] .leaflet-popup-content strong { color: #ff5626; }
body[data-theme="infinity"] .leaflet-tooltip { border-color: rgba(188,193,196,.28); background: #1c2134; }
body[data-theme="infinity"] .footer { color: #bcc1c4; }

@media (max-width: 560px) {
  body[data-theme="infinity"] .brand { gap: 8px; }
  body[data-theme="infinity"] .infinity-brand-logo { width: 132px; height: 32px; }
  body[data-theme="infinity"] .brand::after { display: none; }
}

/* Keep map credits quiet while retaining readable attribution on demand. */
.leaflet-control-attribution,
.maplibregl-ctrl-attrib {
  box-sizing: border-box;
  max-width: min(62vw, 360px);
  overflow: hidden;
  padding: 2px 5px !important;
  color: rgba(220, 228, 232, .28) !important;
  background: rgba(10, 13, 22, .42) !important;
  font-size: 7px !important;
  line-height: 1.25 !important;
  text-align: right;
  white-space: normal !important;
  opacity: .34;
  transition: opacity .18s ease, background-color .18s ease;
}
.leaflet-control-attribution a,
.maplibregl-ctrl-attrib a {
  color: rgba(226, 231, 236, .38) !important;
}
.leaflet-control-attribution:hover,
.leaflet-control-attribution:focus-within,
.maplibregl-ctrl-attrib:hover,
.maplibregl-ctrl-attrib:focus-within {
  color: rgba(245, 247, 249, .9) !important;
  background: rgba(10, 13, 22, .86) !important;
  opacity: 1;
}
.leaflet-control-attribution:hover a,
.leaflet-control-attribution:focus-within a,
.maplibregl-ctrl-attrib:hover a,
.maplibregl-ctrl-attrib:focus-within a {
  color: #fff !important;
}

body[data-theme="infinity"] .hero .infinity-hero-title {
  display: flex;
  max-width: 900px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
body[data-theme="infinity"] .infinity-hero-main { display: block; white-space: normal; text-transform: none; }
body[data-theme="infinity"] .infinity-hero-main em { color: #ff5626; font-style: normal; }
body[data-theme="infinity"] .infinity-hero-subtitle {
  display: block;
  color: #f5f4ef;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
}
@media (max-width: 700px) {
  body[data-theme="infinity"] .hero .infinity-hero-title { gap: 6px; font-size: clamp(30px, 7.8vw, 48px); }
  body[data-theme="infinity"] .infinity-hero-subtitle { max-width: 100%; font-size: 14px; letter-spacing: .03em; }
}

/* NORTH standard theme, matched to the NordicPool.org homepage palette. */
body[data-theme="standard"] {
  font-family: "DM Sans", Manrope, ui-sans-serif, system-ui, sans-serif;
  background-color: #061344;
  background-image:
    radial-gradient(ellipse at 75% 25%, rgba(20,63,157,.5), transparent 60%),
    linear-gradient(125deg,#061133,#0a2268);
}
body[data-theme="standard"] h1,
body[data-theme="standard"] h2,
body[data-theme="standard"] h3 { font-family: "Space Grotesk", Manrope, sans-serif; }
body[data-theme="standard"] .topbar {
  min-height: 76px;
  margin-top: 15px;
  padding: 0 24px;
  border: 1px solid rgba(159,189,255,.22);
  border-radius: 7px;
  background: rgba(7,21,62,.91);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(1,7,29,.25);
}
body[data-theme="standard"] .brand { gap: 13px; }
.north-wordmark { display: flex; align-items: center; gap: 9px; }
.north-wordmark img { display: block; width: 31px; height: 31px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(255,207,64,.28)); }
body[data-theme="standard"] .brand strong { color: #f8faff; font: 700 27px/1 "Space Grotesk",sans-serif; letter-spacing: .1em; text-transform: uppercase; }
body[data-theme="standard"] .service-status.online i { box-shadow: 0 0 0 4px rgba(255,207,64,.18); }
body[data-theme="standard"] .eyebrow-dot { box-shadow: 0 0 0 4px rgba(255,207,64,.18); }
body[data-theme="infinity"] .north-wordmark { display: none; }
body[data-theme="standard"] .theme-toggle,
body[data-theme="standard"] .dashboard-switch {
  border-color: rgba(255,207,64,.42);
  border-radius: 4px;
  color: #f8faff;
  background: rgba(7,21,62,.68);
}
body[data-theme="standard"] .theme-toggle:hover,
body[data-theme="standard"] .dashboard-switch:hover { border-color: #ffcf40; background: rgba(16,42,134,.72); }
body[data-theme="standard"] .theme-toggle > span:first-child,
body[data-theme="standard"] .external-link span { color: #ffcf40; }
body[data-theme="standard"] .external-link { padding: 10px 16px; border: 1px solid rgba(255,207,64,.48); border-radius: 4px; color: #ffcf40; background: rgba(255,207,64,.04); }
body[data-theme="standard"] .hero { border-color: rgba(159,189,255,.22); }
body[data-theme="standard"] .hero h1 { color: #f8faff; }
body[data-theme="standard"] .hero .eyebrow { color: #ffcf40; }
body[data-theme="standard"] .metric-card,
body[data-theme="standard"] .panel {
  border-color: rgba(159,189,255,.2);
  border-radius: 7px;
  background: linear-gradient(145deg,rgba(17,45,109,.91),rgba(7,22,61,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.04),0 14px 40px rgba(1,7,29,.2);
}
body[data-theme="standard"] .metric-primary { border-color: rgba(255,207,64,.56); background: linear-gradient(145deg,rgba(255,207,64,.18),rgba(7,22,61,.96)); }
body[data-theme="standard"] .metric-label,
body[data-theme="standard"] .panel-note { color: #b4c5e6; }
body[data-theme="standard"] .metric-value { color: #f8faff; }
body[data-theme="standard"] .metric-icon { color: #ffcf40; }
body[data-theme="standard"] .origin-track span { background: linear-gradient(90deg,#ffcf40,#ffe694); }
body[data-theme="standard"] .flow-coverage div { border-color: rgba(159,189,255,.14); background: rgba(7,21,62,.4); }
body[data-theme="standard"] td { border-color: rgba(159,189,255,.15); color: #c6d6f4; }
body[data-theme="standard"] .panel-heading { border-color: rgba(159,189,255,.2); }
body[data-theme="standard"] .chart-grid { stroke: rgba(159,189,255,.16); }
body[data-theme="standard"] .chart-axis { fill: #9bb2da; }
body[data-theme="standard"] .legend span { color: #c6d6f4; }
body[data-theme="standard"] .map-frame,
body[data-theme="standard"] #requestMap { background: #091b4a; }
body[data-theme="standard"] .map-frame { border-color: rgba(159,189,255,.24); }
body[data-theme="standard"] .map-summary { border-color: rgba(159,189,255,.26); color: #f8faff; background: rgba(6,19,68,.88); }
body[data-theme="standard"] .map-tools select { border-color: rgba(159,189,255,.26); background: #102a86; }
body[data-theme="standard"] .leaflet-control-zoom a { color: #f8faff !important; background: rgba(7,21,62,.96) !important; border-color: rgba(159,189,255,.24) !important; }
body[data-theme="standard"] .leaflet-control-zoom a:hover { color: #ffcf40 !important; background: #102a86 !important; }
body[data-theme="standard"] .leaflet-popup-content-wrapper,
body[data-theme="standard"] .leaflet-popup-tip,
body[data-theme="standard"] .leaflet-tooltip { border-color: rgba(159,189,255,.24); color: #f8faff; background: #102a86; }
body[data-theme="standard"] .country-name b { background: linear-gradient(90deg,#ffcf40,#f8e18b); }
body[data-theme="standard"] .dashboard-choice-modal { border-color: rgba(159,189,255,.28); background: rgba(7,21,62,.98); }
body[data-theme="standard"] .dashboard-choice-button { border-radius: 4px; }
body[data-theme="standard"] .dashboard-choice-button.is-primary { border-color: #ffcf40; color: #061344; background: #ffcf40; }
@media (max-width: 560px) {
  .north-wordmark { gap: 6px; }
  .north-wordmark img { width: 25px; height: 25px; }
  body[data-theme="standard"] .brand strong { font-size: 22px; letter-spacing: .08em; }
}
body[data-theme="infinity"] .north-wordmark { display: flex; gap: 9px; }
body[data-theme="infinity"] .north-wordmark strong {
  color: #f8faff;
  font: 700 27px/1 "Space Grotesk",sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  body[data-theme="infinity"] .north-wordmark { gap: 6px; }
  body[data-theme="infinity"] .north-wordmark img { width: 25px; height: 25px; }
  body[data-theme="infinity"] .north-wordmark strong { font-size: 22px; letter-spacing: .08em; }
}

body[data-theme="standard"] .external-link {
  max-width: 220px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
body[data-theme="standard"] .external-link strong { color: #f8faff; font-weight: 700; }
body[data-theme="infinity"] .external-link strong { color: #fff3e8; font-weight: 700; }
@media (max-width: 850px) {
  .topbar { flex-wrap: wrap; gap: 9px 14px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-right { flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .external-link,
  body[data-theme="standard"] .external-link { display: inline-flex; flex: 1 1 100%; justify-content: center; max-width: none; margin-top: 3px; }
}

/* Keep the traffic chart and attribution panel full-width on tablets and phones. */
@media (max-width: 900px) {
  body[data-theme="standard"] .content-grid,
  body[data-theme="infinity"] .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-grid > .panel,
  .chart-wrap { min-width: 0; width: 100%; }
  .chart-wrap svg { display: block; width: 100%; max-width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .trend-panel .panel-heading { flex-wrap: wrap; }
  .trend-panel .panel-note { max-width: 100%; margin-left: auto; white-space: normal; text-align: right; }
}
