:root {
  --bg: #070b18;
  --bg2: #0d1430;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #8f99b3;
  --faint: #59627c;
  --open: #2fd384;
  --soon: #ffb224;
  --closed: #ff4d61;
  --arr: #5aa9ff;
  --dep: #b48cff;
  --live: #3ee6d0;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --state: var(--muted);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2f9; --bg2: #e2e8f5; --surface: rgba(255,255,255,0.78); --surface-2: rgba(15,25,60,0.06);
    --border: rgba(15, 25, 60, 0.09); --text: #0e1630; --muted: #5a6585; --faint: #98a1b9;
    --open: #12a862; --soon: #d98b00; --closed: #e5293f; --arr: #1f7ae8; --dep: #7c4ddb; --live: #0aa892;
    --shadow: 0 10px 30px rgba(20, 30, 70, 0.08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef2f9; --bg2: #e2e8f5; --surface: rgba(255,255,255,0.78); --surface-2: rgba(15,25,60,0.06);
  --border: rgba(15, 25, 60, 0.09); --text: #0e1630; --muted: #5a6585; --faint: #98a1b9;
  --open: #12a862; --soon: #d98b00; --closed: #e5293f; --arr: #1f7ae8; --dep: #7c4ddb; --live: #0aa892;
  --shadow: 0 10px 30px rgba(20, 30, 70, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 15% -10%, var(--bg2), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: "cv11", "ss01";
}
.num, .clock, .hero-count, .c-time b, .tl-axis .tl-tick { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
h1, h2 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.hint { color: var(--muted); font-size: 12px; }
button { font: inherit; color: inherit; }

/* ---------- top bar */
.top {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand h1 { font-size: 16px; font-weight: 750; white-space: nowrap; }
.brand .sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.bm-runway { fill: var(--surface-2); stroke: var(--border); }
.bm-dash { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.bm-road { fill: var(--state); transition: fill .6s ease; }
.top-right { display: flex; align-items: center; gap: 10px; }
.clock { font-weight: 700; font-size: 15px; }
.feed { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.feed i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.feed.ok i { background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: ping 2.4s infinite; }
.feed.err i { background: var(--closed); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 80%,100% { box-shadow: 0 0 0 7px transparent; } }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ---------- layout */
.layout {
  max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding-top: 22px; }
  .timeline-card, .week, .foot { grid-column: 1 / -1; }
}
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; } .card:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; align-content: center; overflow: hidden; padding: 22px;
  --state: var(--muted);
}
.hero[data-state="open"] { --state: var(--open); }
.hero[data-state="soon"] { --state: var(--soon); }
.hero[data-state="closed"] { --state: var(--closed); }
body:has(.hero[data-state="open"]) { --state: var(--open); }
body:has(.hero[data-state="soon"]) { --state: var(--soon); }
body:has(.hero[data-state="closed"]) { --state: var(--closed); }
.hero-glow {
  position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: var(--state); opacity: .16; filter: blur(70px); pointer-events: none; transition: background .8s ease;
}
.ring-wrap { position: relative; width: 132px; height: 132px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg {
  stroke: var(--state); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1s linear, stroke .8s ease; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--state) 50%, transparent));
}
.ring-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.barrier { width: 58px; height: 58px; }
.barrier .post { fill: var(--muted); }
.barrier .arm { transform-origin: 9px 30.5px; transition: transform .9s cubic-bezier(.5,1.6,.4,1); fill: var(--text); }
.barrier .stripe { fill: var(--closed); }
.barrier .lamp { fill: var(--state); transition: fill .6s; }
.hero[data-state="open"] .arm, .hero[data-state="soon"] .arm { transform: rotate(-72deg); }
.hero[data-state="closed"] .lamp, .hero[data-state="soon"] .lamp { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--state); transition: color .6s; }
.hero-count { font-size: clamp(44px, 11vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0 4px; }
.hero-count small { font-size: .38em; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.hero-sub { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.hero-sub b { color: var(--text); font-weight: 650; }
.hero-flights { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-flights:empty { display: none; }
@media (max-width: 420px) {
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-flights { justify-content: center; }
}

/* ---------- flight chips */
.fchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; white-space: nowrap;
}
.fchip .k { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--arr); flex: none; }
.fchip.departure .k { background: var(--dep); }
.fchip b { font-weight: 650; }
.fchip .pl { color: var(--muted); }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.badge.live { color: var(--live); background: color-mix(in srgb, var(--live) 14%, transparent); }
.badge.expected { color: var(--arr); background: color-mix(in srgb, var(--arr) 14%, transparent); }
.badge.unsched { color: var(--soon); background: color-mix(in srgb, var(--soon) 16%, transparent); }

/* ---------- plan */
.verdict { --pr: var(--muted); margin: 6px 0 14px; }
.verdict.ok { --pr: var(--open); } .verdict.bad { --pr: var(--closed); } .verdict.tight { --pr: var(--soon); }
.verdict .vw { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--pr); transition: color .3s; }
.verdict .vw i { width: 12px; height: 12px; border-radius: 50%; background: var(--pr); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pr) 18%, transparent); flex: none; }
.verdict .vw span { color: var(--text); font-weight: 650; font-size: 20px; }
.verdict .vl { font-size: 15px; font-weight: 550; margin-top: 4px; }
.verdict .vm { font-size: 13px; color: var(--muted); margin-top: 3px; }
.scrub { position: relative; padding: 34px 0 22px; }
.sbar {
  position: relative; height: 14px; border-radius: 99px; overflow: hidden;
  background: color-mix(in srgb, var(--open) 26%, transparent);
}
.sbar i { position: absolute; top: 0; bottom: 0; }
.sbar .cz { background: var(--closed); border-radius: 3px; }
.sbar .cz.hold { background: repeating-linear-gradient(135deg, var(--closed) 0 5px, color-mix(in srgb, var(--closed) 60%, transparent) 5px 10px); }
.sbar .tz { background: color-mix(in srgb, var(--soon) 70%, transparent); }
.scrub input[type=range] {
  position: absolute; left: -11px; right: -11px; width: calc(100% + 22px); top: 26px; height: 30px; margin: 0;
  background: none; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y;
}
.scrub input[type=range]::-webkit-slider-runnable-track { height: 30px; background: none; }
.scrub input[type=range]::-moz-range-track { height: 30px; background: none; }
.scrub input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 30px; border-radius: 8px; background: var(--text);
  border: 3px solid var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.scrub input[type=range]::-moz-range-thumb { width: 16px; height: 24px; border-radius: 8px; background: var(--text); border: 3px solid var(--bg); }
.scrub input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--arr); outline-offset: 2px; }
.sbubble {
  --pr: var(--muted); position: absolute; top: 0; padding: 3px 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--pr); white-space: nowrap; pointer-events: none;
  font-variant-numeric: tabular-nums; transition: background .3s;
}
.sbubble.ok { --pr: var(--open); } .sbubble.bad { --pr: var(--closed); } .sbubble.tight { --pr: var(--soon); }
.sticks { position: relative; height: 14px; margin-top: 8px; }
.sticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.chip {
  flex: 1 0 auto; border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all .2s ease; font-variant-numeric: tabular-nums; color: var(--text);
}
.chip:hover { background: var(--surface-2); }
.chip[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: transparent; }

/* ---------- segmented control */
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 12px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* ---------- timeline */
.timeline { position: relative; height: 150px; margin: 6px 0 0; overflow: hidden; border-radius: 14px; touch-action: pan-y; }
.tl-lane {
  position: absolute; left: 0; right: 0; top: 48px; height: 36px; border-radius: 12px;
  background: color-mix(in srgb, var(--open) 13%, transparent); border: 1px solid color-mix(in srgb, var(--open) 22%, transparent);
}
.tl-past { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, transparent 4px 9px); border-radius: 12px 0 0 12px; transition: width 1s linear; }
.tl-block {
  position: absolute; top: -1px; bottom: -1px; border-radius: 10px; min-width: 6px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--closed) 92%, #fff), var(--closed));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--closed) 40%, transparent);
  transition: left 1s linear, width 1s linear, opacity .4s, filter .2s;
}
.tl-block:hover { filter: brightness(1.1); }
.tl-block.past { opacity: .35; box-shadow: none; }
.tl-block.est { background: repeating-linear-gradient(135deg, var(--closed) 0 7px, color-mix(in srgb, var(--closed) 75%, transparent) 7px 12px); }
.tl-block.live { outline: 2px solid var(--live); outline-offset: 1px; }
.tl-mv { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transition: left 1s linear; }
.tl-mv .pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--arr); box-shadow: 0 0 0 3px var(--bg); }
.tl-mv.departure .pin { background: var(--dep); }
.tl-mv .lbl { font-size: 10.5px; font-weight: 650; white-space: nowrap; color: var(--text); }
.tl-mv.past { opacity: .4; }
.tl-mv.edge .lbl { visibility: hidden; }
.link.more { display: block; margin: 4px auto 0; }
.tl-mv.alt { top: 88px; flex-direction: column-reverse; }
.tl-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.tl-axis .tl-tick { position: absolute; bottom: 2px; transform: translateX(-50%); font-size: 11px; color: var(--muted); transition: left 1s linear; }
.tl-axis .tl-tick::before { content: ""; position: absolute; left: 50%; bottom: 18px; width: 1px; height: 6px; background: var(--faint); }
.tl-now { position: absolute; top: 44px; bottom: 24px; z-index: 2; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; box-shadow: 0 0 10px var(--text); }
.tl-now span { position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); font-size: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 25%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.closed { background: var(--closed); } .lg.arr { background: var(--arr); border-radius: 50%; } .lg.dep { background: var(--dep); border-radius: 50%; }
.lg.live { border: 2px solid var(--live); }
.popover {
  position: absolute; z-index: 5; min-width: 220px; max-width: 300px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px;
  animation: rise .2s ease both;
}
.popover h4 { margin: 0 0 6px; font-size: 14px; }
.popover .row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }

/* ---------- closures list */
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cday { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; margin: 10px 2px 0; }
.cday:first-child { margin-top: 0; }
.citem {
  display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); transition: transform .25s, background .25s, opacity .3s;
}
.citem:hover { background: var(--surface-2); }
.citem.now { border-color: color-mix(in srgb, var(--closed) 60%, transparent); background: color-mix(in srgb, var(--closed) 12%, transparent); }
.citem.past { opacity: .5; }
.c-time b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.c-time span { font-size: 12.5px; color: var(--muted); }
.c-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13px; }
.c-top .dur { font-weight: 650; }
.c-top .rel { color: var(--muted); }
.c-bar { height: 5px; border-radius: 4px; background: var(--surface-2); margin: 7px 0 9px; overflow: hidden; }
.c-bar i { display: block; height: 100%; border-radius: 4px; background: var(--closed); }
.c-flights { display: flex; flex-wrap: wrap; gap: 6px; }
.c-flights .fchip { font-size: 12px; padding: 4px 8px 4px 5px; }
.c-flights .fchip .k { width: 17px; height: 17px; font-size: 10px; }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--border); border-radius: 16px; }
.link { border: 0; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- map */
.map { height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg2); z-index: 0; }
.leaflet-container { font-family: inherit; background: var(--bg2); }
.leaflet-control-attribution { font-size: 9px; background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-tooltip.ac-tip { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 11.5px; font-weight: 600; box-shadow: var(--shadow); padding: 4px 7px; }
.leaflet-tooltip.ac-tip::before { display: none; }
.plane { width: 26px; height: 26px; transition: transform 1s linear; }
.plane svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.leaflet-marker-icon.ac { transition: transform 8s linear; }
.no-glide .leaflet-marker-icon.ac, .no-glide .plane { transition: none !important; }
.alist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.aitem { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.aitem .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.aitem .dot.inbound { background: var(--arr); } .aitem .dot.outbound { background: var(--dep); }
.aitem .dot.ground_gib { background: var(--soon); } .aitem .dot.rolling { background: var(--closed); }
.aitem b { font-weight: 650; } .aitem .m { color: var(--muted); font-size: 12px; }
.aitem .r { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.aitem .r small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }

/* ---------- week */
.week-grid { display: grid; gap: 8px; }
.wrow { display: grid; grid-template-columns: 82px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.wrow .wd b { display: block; font-weight: 650; } .wrow .wd span { color: var(--muted); font-size: 11.5px; }
.wbar {
  position: relative; height: 26px; border-radius: 8px; background-color: color-mix(in srgb, var(--open) 12%, transparent);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: calc(100% / var(--hours, 15)) 100%;
}
.wc {
  position: absolute; top: 2px; bottom: 2px; min-width: 4px; padding: 0; border: 0; border-radius: 5px; cursor: pointer;
  background: var(--closed); opacity: .92; transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
  -webkit-touch-callout: none; user-select: none; touch-action: manipulation;
}
.wc::before { content: ""; position: absolute; inset: -4px -6px; } /* bigger hit area for fingers */
.wc.past { opacity: .35; }
.wc:hover, .wc.on, .wc:focus-visible { transform: scaleY(1.25); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--closed); opacity: 1; z-index: 2; outline: none; }
.wbar .wnow { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; z-index: 3; pointer-events: none; }
.wrow .wt { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.wrow .wt b { color: var(--text); display: block; font-size: 13px; }
.waxis { display: grid; grid-template-columns: 82px 1fr 64px; gap: 12px; margin-bottom: 2px; }
.wticks { position: relative; height: 16px; }
.wticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wticks span:not(.e2) { display: none; }
@media (max-width: 760px) { .wticks span.e2 { display: none; } .wticks span.e3 { display: block; } }
.wtip {
  position: fixed; z-index: 1500; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0,0,0,.35); font-size: 13px; pointer-events: auto;
  animation: rise .15s ease both;
}
.wtip h4 { margin: 2px 0 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.wtip h4 span { font-size: 12.5px; font-weight: 600; color: var(--closed); margin-left: 6px; }
.wtip .tt-day { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.wtip .row { margin-top: 6px; }

/* ---------- footer */
.foot { color: var(--muted); font-size: 12.5px; line-height: 1.6; text-align: center; padding: 6px 12px 0; }
.foot p { max-width: 720px; margin: 0 auto; }

/* ---------- settings sheet */
.sheet {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--border); border-radius: 24px;
  background: var(--bg); color: var(--text); padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.sheet::backdrop { background: rgba(3, 6, 16, .55); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise .25s ease both; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 18px; }
.fields { display: grid; gap: 2px; margin: 12px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.fields label { display: grid; grid-template-columns: 1fr 64px 30px; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); font-size: 14px; }
.fields label em { font-style: normal; color: var(--muted); font-size: 12px; }
.fields input[type=number], .fields select {
  width: 100%; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 6px 8px; text-align: right;
}
.fields select { grid-column: 2 / 4; text-align: left; }
.switch input { position: absolute; opacity: 0; }
.switch i { grid-column: 2 / 4; justify-self: end; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: background .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .25s cubic-bezier(.4,1.6,.5,1); }
.switch input:checked + i { background: var(--open); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--arr); outline-offset: 2px; }
.sheet-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.btn { border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 650; cursor: pointer; background: var(--text); color: var(--bg); }
.btn.ghost { background: var(--surface-2); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .feed span { display: none; }
  .brand .sub { display: none; }
  .top { padding-left: 14px; padding-right: 14px; }
  .layout { padding-left: 12px; padding-right: 12px; gap: 12px; }
  .card { padding: 16px; border-radius: 20px; }
  .citem { grid-template-columns: 62px 1fr; gap: 10px; padding: 12px; }
  .c-time b { font-size: 17px; }
  .wrow, .waxis { grid-template-columns: 54px 1fr 52px; gap: 8px; }
  .map { height: 260px; }
}

@media (min-width: 980px) {
  .sky { display: flex; flex-direction: column; }
  .sky .map { flex: 1 1 auto; min-height: 340px; }
}
.hero-later { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }
.hero-later:empty { display: none; }
.hero-later b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-later .lt { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; }
@media (max-width: 420px) { .hero-later { justify-content: center; } }

.hero-sub .warn { display: block; margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--text);
  background: color-mix(in srgb, var(--soon) 16%, transparent); border: 1px solid color-mix(in srgb, var(--soon) 35%, transparent); }

/* ---------- barrier reports */
.report { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.report-q { font-size: 12.5px; color: var(--muted); }
.report-btns { display: flex; gap: 8px; }
.report-status { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: flex-end; font-size: 12px; color: var(--faint); }
.report-status .link { font-size: 12px; padding: 4px 0; }
.rbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px; font-weight: 650;
  transition: transform .15s ease, background .2s;
}
.rbtn:active { transform: scale(.96); }
.rbtn i { width: 9px; height: 9px; border-radius: 50%; }
.rbtn.down i { background: var(--closed); } .rbtn.up i { background: var(--open); }
.rbtn.down:hover { background: color-mix(in srgb, var(--closed) 18%, transparent); }
.rbtn.up:hover { background: color-mix(in srgb, var(--open) 18%, transparent); }
@media (max-width: 420px) { .report-status { justify-content: center; } .report { justify-content: center; text-align: center; } .report-btns { width: 100%; } .rbtn { flex: 1; justify-content: center; padding: 12px; } }

.hero.waiting .ring-fg { stroke-dasharray: 60 266.73; stroke-dashoffset: 0 !important; transform-origin: 60px 60px; animation: spin 1.6s linear infinite; transition: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero.waiting .hero-label { font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000;
  display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow);
  animation: rise .25s ease both; transition: opacity .3s;
}
.toast.out { opacity: 0; }
.toast[hidden] { display: none; }
.toast .link { color: var(--bg); font-weight: 700; }

.learned { margin: 12px 0; }
.learned h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.learned .muted { margin: 0; font-size: 13px; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.lrow em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 12px; }
.learned .btn { margin-top: 10px; width: 100%; }
.lswitch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 2px 10px; font-size: 14px; border-bottom: 1px solid var(--border); }
.lswitch i { grid-column: auto; }
.fchip .fnote { color: var(--warn, var(--muted)); font-size: .85em; }

/* ---------- accounts */
.acct {
  height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct:hover { background: var(--surface-2); }
.acct.in::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--open); margin-right: 6px; vertical-align: 1px; }
.acct.admin::before { background: var(--live); }
.report-signin { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: right; }
.report-signin .link { font-size: 12.5px; }
.fields label.stack { grid-template-columns: 1fr; gap: 6px; }
.fields label.stack input, .users input, .users select {
  width: 100%; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px;
}
.login-err { color: var(--closed); font-size: 13px; margin: 0 0 8px; }
.login .sheet-actions { justify-content: flex-end; }
.users { margin-top: 18px; }
.users h3 { font-size: 14px; margin: 0 0 8px; }
.urow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.urow em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 6px; }
.uadd { display: grid; grid-template-columns: 1fr 1fr 90px auto; gap: 6px; margin-top: 10px; }
@media (max-width: 520px) { .uadd { grid-template-columns: 1fr 1fr; } }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .top { gap: 8px; }
  .top-right { gap: 6px; }
  .brand { gap: 8px; }
  .brand h1 { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 28px; height: 28px; }
  .feed span, .brand .sub { display: none; }
  .clock { font-size: 13px; }
  .acct { max-width: 96px; padding: 0 10px; font-size: 12.5px; }
}
@media (max-width: 380px) { .clock { display: none; } }
.gsignin { margin: 14px 0 4px; display: grid; justify-items: center; gap: 14px; }
#googleBtn { min-height: 44px; }
.or { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.uact { display: flex; gap: 12px; }
.urow > span:first-child { display: grid; gap: 2px; }
.urow .rep { font-size: 11.5px; color: var(--muted); }
.urow .rep.trusted { color: var(--open); } .urow .rep.muted, .urow .rep.blocked { color: var(--closed); }
