:root {
  color-scheme: dark;
  --bg: #07121e;
  --panel: #0e2030;
  --panel-soft: #102637;
  --line: rgba(168, 215, 226, .14);
  --text: #effaf8;
  --muted: #9bb6be;
  --mint: #53e7b2;
  --orange: #ff9c6b;
  --unknown: #344c5c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: radial-gradient(ellipse at 79% -4%, rgba(20, 125, 114, .25), transparent 39%), linear-gradient(160deg, #0a1a29, var(--bg) 58%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(148, 194, 198, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 194, 198, .16) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(#000, transparent 75%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.page { position: relative; max-width: 1380px; margin: 0 auto; padding: 0 30px 38px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 82px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.35rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.brand strong { color: var(--mint); }
.back-link { font-size: .88rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 285px; padding: 42px 0 38px; }
.hero-copy { max-width: 800px; }
.eyebrow, .section-kicker { margin: 0; color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(83, 231, 178, .13); }
.hero h1 { margin: 16px 0 14px; max-width: 740px; font-size: clamp(2.7rem, 5.9vw, 5.5rem); font-weight: 760; letter-spacing: -.065em; line-height: 1.03; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-copy > p:last-child { max-width: 630px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.62; }
.hero-aside { position: relative; display: grid; place-content: center; flex: none; width: 176px; height: 176px; border: 1px solid rgba(83, 231, 178, .24); border-radius: 50%; text-align: center; background: radial-gradient(circle, rgba(83, 231, 178, .16), transparent 70%); box-shadow: 0 0 0 18px rgba(83, 231, 178, .035), 0 0 0 39px rgba(83, 231, 178, .018); }
.hero-aside span { font-size: 4.8rem; font-weight: 750; letter-spacing: -.09em; line-height: 1; }
.hero-aside small { margin-top: 4px; color: var(--mint); font-size: .69rem; font-weight: 800; letter-spacing: .27em; }
.hero-aside i { position: absolute; top: 18px; right: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 17px var(--mint); }
.filters-panel, .panel, .metric { border: 1px solid var(--line); background: linear-gradient(155deg, rgba(22, 47, 63, .91), rgba(9, 27, 41, .94)); box-shadow: 0 16px 44px rgba(0, 0, 0, .12); }
.filters-panel, .panel { border-radius: 23px; padding: 25px 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: .8rem; text-align: right; }
.range-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.range-button { min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #0a1a28; font-size: .82rem; font-weight: 700; }
.range-button:hover { border-color: rgba(83, 231, 178, .45); color: var(--text); }
.range-button.is-active { border-color: var(--mint); color: #06231e; background: var(--mint); }
.filter-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 12px; }
.filter-grid label, .ranking-controls label { display: grid; gap: 8px; min-width: 0; color: var(--muted); font-size: .77rem; font-weight: 700; }
.filter-grid input, .filter-grid select, .ranking-controls input, .ranking-controls select { width: 100%; min-width: 0; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #091c2b; outline: none; }
.filter-grid input:focus, .filter-grid select:focus, .ranking-controls input:focus, .ranking-controls select:focus { border-color: var(--mint); }
input::placeholder { color: #75959d; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.68); cursor: pointer; }
.apply-button { display: flex; justify-content: space-between; align-items: center; gap: 22px; height: 45px; padding: 0 18px; border: 0; border-radius: 10px; color: #08251f; background: var(--mint); font-size: .83rem; font-weight: 850; white-space: nowrap; }
.apply-button:hover { background: #7bf2c7; }
.apply-button span { font-size: 1.2rem; }
.status { min-height: 20px; margin: 17px 0 0; color: var(--muted); font-size: .78rem; }
.status.is-error { color: #ffad9e; }
.summary { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 13px; margin: 17px 0; }
.metric { display: flex; flex-direction: column; min-height: 175px; padding: 22px; border-radius: 19px; }
.metric-featured { border-color: rgba(83, 231, 178, .4); background: linear-gradient(125deg, #154c49, #0e302f); }
.metric > span { color: #b5d2d4; font-size: .82rem; font-weight: 700; }
.metric > strong, .metric > div strong { display: inline-block; margin-top: 17px; font-size: clamp(2.2rem, 3vw, 3.5rem); font-weight: 760; letter-spacing: -.07em; line-height: 1; }
.metric-featured strong { color: var(--mint); }
.metric > div small { margin-left: 7px; color: var(--muted); font-size: .85rem; }
.metric p { margin: auto 0 0; padding-top: 15px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.panel { margin-top: 17px; }
.distribution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.distribution-band { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(4, 18, 29, .45); }
.distribution-band > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.distribution-band span { color: var(--muted); font-size: .82rem; }
.distribution-band strong { font-size: 1.55rem; letter-spacing: -.04em; }
.distribution-track { height: 7px; margin-top: 17px; border-radius: 99px; background: #263f4c; overflow: hidden; }
.distribution-track i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.ranking-controls { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(200px, 265px); gap: 12px; margin: 4px 0 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 17px; margin-bottom: 15px; color: var(--muted); font-size: .76rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; }
.swatch.service { background: var(--mint); }.swatch.affected { background: var(--orange); }.swatch.unknown { background: var(--unknown); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { color: var(--muted); background: rgba(4, 20, 31, .7); }
th { padding: 13px 12px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 12px; border-top: 1px solid var(--line); vertical-align: middle; font-size: .82rem; }
tbody tr:hover { background: rgba(83, 231, 178, .04); }
th:first-child, td:first-child { padding-left: 16px; width: 55px; }
th:nth-child(2) { min-width: 175px; width: 23%; }
th:nth-child(3) { min-width: 140px; width: 16%; }
th:nth-child(4) { min-width: 250px; }
th:nth-child(5) { width: 95px; }
.rank { color: #6f939a; font-weight: 750; }
.circuit-id { display: block; font-size: 1rem; }
.municipality, td small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.service-hours > strong { color: var(--mint); font-size: 1.36rem; letter-spacing: -.05em; }
.service-hours > strong span { font-size: .75rem; letter-spacing: 0; }
.state-bar { display: flex; width: 100%; height: 11px; border-radius: 999px; overflow: hidden; background: var(--unknown); }
.state-bar i { display: block; height: 100%; }
.state-bar .service { background: var(--mint); }.state-bar .affected { background: var(--orange); }
.bar-caption { white-space: nowrap; }
.coverage-cell { color: #c6d8d9; font-weight: 750; white-space: nowrap; }
.empty { padding: 30px 16px; color: var(--muted); text-align: center; }
.method { padding-top: 21px; padding-bottom: 21px; }
.method summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 750; list-style: none; }
.method summary::-webkit-details-marker { display: none; }
.method summary span { color: var(--mint); }
.method[open] summary span { transform: rotate(45deg); }
.method > div { max-width: 900px; padding-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.method p { margin-bottom: 0; }
footer { padding: 26px 4px 0; color: #76959c; font-size: .76rem; }
@media (max-width: 1040px) { .filter-grid { grid-template-columns: repeat(3, 1fr); }.apply-button { grid-column: 1 / -1; justify-content: center; }.summary { grid-template-columns: repeat(2, 1fr); }.distribution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .page { padding: 0 16px 28px; }.site-header { height: 67px; }.hero { min-height: auto; padding: 36px 0 30px; }.hero-aside { display: none; }.hero h1 { font-size: clamp(2.45rem, 10vw, 3.8rem); }.filters-panel, .panel { padding: 20px 17px; border-radius: 18px; }.filter-grid { grid-template-columns: 1fr; }.apply-button { grid-column: auto; }.summary { gap: 9px; }.metric { min-height: 156px; padding: 17px; }.metric > strong, .metric > div strong { font-size: 2.4rem; }.section-heading { align-items: start; }.section-heading > span { max-width: 120px; }.ranking-controls { grid-template-columns: 1fr; }.bar-caption { white-space: normal; } }
@media (max-width: 400px) { .summary { grid-template-columns: 1fr 1fr; }.metric { min-height: 155px; padding: 14px; }.metric > strong, .metric > div strong { font-size: 2rem; }.metric > div small { margin-left: 3px; font-size: .71rem; }.distribution-grid { gap: 8px; }.distribution-band { padding: 12px; } }
