:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #0e1117;
  --panel-2: #12161e;
  --line: #252b36;
  --line-soft: #1b2029;
  --text: #f4f5f7;
  --muted: #8b93a2;
  --faint: #606978;
  --accent: #7aa2f7;
  --time-label-width: 78px;
  --time-status-width: 100px;
  --time-gap: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--bg); color: var(--text); }
button, select, input { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: 56px 1fr 72px; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, .94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
body.is-empty-night .clock,
body.is-empty-night .layer-controls,
body.is-lightweight-loading .clock,
body.is-lightweight-loading .layer-controls { visibility: hidden; }

.night-loading {
  display: none;
  position: fixed;
  z-index: 19;
  inset: 56px 0 0;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 13, .82);
  backdrop-filter: blur(7px);
}
body.is-lightweight-loading .night-loading { display: grid; }
.night-loading-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  padding: 17px 18px 15px;
  border: 1px solid #344154;
  border-radius: 11px;
  background: rgba(14, 18, 25, .98);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .48), 0 0 0 1px rgba(126, 164, 220, .04) inset;
}
.night-loading-spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #2b3544;
  border-top-color: #88b8ff;
  border-right-color: #5e82b7;
  border-radius: 50%;
  animation: loading-spin .75s linear infinite;
}
.night-loading-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.night-loading-copy > span { color: #718099; font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.night-loading-copy strong { overflow: hidden; color: #edf2f8; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.night-loading-copy small { overflow: hidden; color: #8591a3; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.night-loading-card time { align-self: start; color: #9bb4d8; font-size: .61rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.night-loading-track { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 99px; background: #202733; }
.night-loading-track i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5079b5, #91bcfa);
  box-shadow: 0 0 12px rgba(118, 168, 236, .42);
  transition: width .22s ease;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }

.date-control { position: relative; display: flex; align-items: center; justify-self: start; }
#prev-night, #next-night, .night-picker-trigger, .night-picker select, .layer-controls button, .play-button {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}
#prev-night, #next-night { width: 30px; height: 32px; cursor: pointer; }
#prev-night { border-radius: 7px 0 0 7px; border-right: 0; }
#next-night { border-radius: 0 7px 7px 0; border-left: 0; }
#prev-night:disabled, #next-night:disabled { opacity: .32; cursor: default; }
.night-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 32px;
  min-width: 126px;
  padding: 0 10px 0 13px;
  border-radius: 0;
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
  background: var(--panel);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.night-picker-trigger:hover, .night-picker-trigger[aria-expanded="true"] { border-color: #46628c; background: #151d2b; }
.night-picker-trigger svg { width: 14px; height: 14px; fill: none; stroke: #7e8ca1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.night-picker {
  position: absolute;
  z-index: 50;
  top: calc(100% + 9px);
  left: 0;
  width: min(356px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #303846;
  border-radius: 12px;
  background: rgba(14, 17, 23, .985);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255,255,255,.018) inset;
  backdrop-filter: blur(22px);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}
.night-picker::before { content: ""; position: absolute; top: -5px; left: 73px; width: 9px; height: 9px; border-top: 1px solid #303846; border-left: 1px solid #303846; background: #0e1117; transform: rotate(45deg); }
.night-picker-topline { display: grid; grid-template-columns: 1fr 1fr 28px; align-items: end; gap: 8px; }
.night-picker-topline label { min-width: 0; }
.night-picker-topline label > span { display: block; margin: 0 0 5px 2px; color: #687486; font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.night-picker select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  color: #e8ebf0;
  background: #121720;
  font-size: .72rem;
  font-weight: 650;
  cursor: pointer;
}
.calendar-close { width: 28px; height: 34px; padding: 0; border: 0; color: #778397; background: transparent; font-size: 1.15rem; cursor: pointer; }
.calendar-close:hover { color: #eef1f5; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 12px 2px 10px; color: #778294; font-size: .57rem; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-aurora-none { border: 1px solid #303846; background: #090c10; }
.legend-aurora-some { border: 1px solid #28543a; background: #0b2d1c; }
.legend-aurora-many { border: 1px solid #9cb54a; background: #78952d; box-shadow: 0 0 6px rgba(151,180,65,.28); }
.legend-conjunction { background: #83aee9; box-shadow: 0 0 7px rgba(131,174,233,.65); }
.satellite-filter {
  margin: 0 0 10px;
  border: 1px solid #252d39;
  border-radius: 8px;
  background: #0b0f15;
}
.satellite-filter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 33px;
  padding: 0 10px;
  color: #aeb7c5;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
}
.satellite-filter > summary::-webkit-details-marker { display: none; }
.satellite-filter > summary::before {
  content: "›";
  margin-right: 7px;
  color: #657185;
  font-size: .82rem;
  transition: transform .15s ease;
}
.satellite-filter[open] > summary::before { transform: rotate(90deg); }
.satellite-filter > summary > span { margin-right: auto; }
.satellite-filter > summary strong {
  color: #8ea8cc;
  font-size: .56rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.satellite-filter-body { padding: 0 8px 8px; border-top: 1px solid #202733; }
.satellite-filter-actions { display: flex; justify-content: flex-end; gap: 4px; padding: 7px 0 6px; }
.satellite-filter-actions button {
  padding: 3px 7px;
  border: 1px solid #2d3746;
  border-radius: 5px;
  color: #8f9bad;
  background: #111720;
  font-size: .54rem;
  cursor: pointer;
}
.satellite-filter-actions button:hover { color: #e2e7ee; border-color: #46566c; }
.satellite-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  max-height: 180px;
  overflow-y: auto;
}
.satellite-filter-option {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  color: #788496;
  font-size: .57rem;
  cursor: pointer;
}
.satellite-filter-option:hover { color: #cdd4de; background: #121923; }
.satellite-filter-option:has(input:checked) { color: #d6dce5; }
.satellite-filter-option input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #759cd4;
}
.satellite-filter-option i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: var(--satellite-color);
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
}
.satellite-filter-dots { display: inline-flex; flex: 0 0 auto; gap: 2px; }
.satellite-filter-option > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aurora-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #202733; }
.aurora-filter > span { color: #788496; font-size: .57rem; font-weight: 650; }
.aurora-filter-options { display: inline-flex; overflow: hidden; border: 1px solid #2d3746; border-radius: 6px; }
.aurora-filter-options button { min-width: 46px; padding: 4px 7px; border: 0; border-right: 1px solid #2d3746; color: #788496; background: #0d1219; font-size: .54rem; cursor: pointer; }
.aurora-filter-options button:last-child { border-right: 0; }
.aurora-filter-options button:hover { color: #dbe2ec; background: #151c27; }
.aurora-filter-options button[aria-pressed="true"] { color: #eff6e0; background: #26361b; box-shadow: 0 0 0 1px rgba(139,167,69,.24) inset; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { margin-bottom: 3px; color: #566071; font-size: .53rem; font-weight: 680; text-align: center; text-transform: uppercase; }
.calendar-weekdays span { padding: 5px 0; }
.calendar-days { gap: 3px; }
.calendar-day {
  position: relative;
  min-width: 0;
  height: 39px;
  padding: 6px 4px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #48515f;
  background: transparent;
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
}
button.calendar-day { cursor: pointer; }
.calendar-day.is-observed { color: #c9d0da; border-color: #252e3a; background: #0a0d11; }
.calendar-day.is-observed:hover { color: #fff; border-color: #48566b; background: #141a22; }
.calendar-day.is-observed.has-aurora-some { color: #dce9df; border-color: #28513a; background: #0b2d1c; }
.calendar-day.is-observed.has-aurora-some:hover { border-color: #4f8464; background: #123d28; }
.calendar-day.is-observed.has-aurora-many { color: #f4f8e8; border-color: #93aa43; background: #78952d; text-shadow: 0 1px 1px rgba(0,0,0,.55); }
.calendar-day.is-observed.has-aurora-many:hover { border-color: #c3d36e; background: #89a738; }
.calendar-day.has-conjunction { border-color: #5b7ca8; }
.calendar-day.has-partial-geometry { border-style: dashed; }
.calendar-day.is-selected { color: #fff; border-color: #84aef0; box-shadow: 0 0 0 1px rgba(132,174,240,.22) inset, 0 0 13px rgba(83,125,185,.13); }
.calendar-day.is-prepared::before { content: ""; position: absolute; top: 4px; right: 4px; width: 3px; height: 3px; border-radius: 50%; background: #d9e6f8; }
.calendar-day-dots { position: absolute; right: 4px; bottom: 4px; left: 4px; display: flex; justify-content: center; gap: 2px; height: 4px; }
.calendar-day-dots i { width: 4px; height: 4px; border-radius: 50%; box-shadow: 0 0 4px currentColor; background: currentColor; }
.calendar-day-more { margin-left: 1px; color: #8c98aa; font-size: .42rem; line-height: 4px; }
.calendar-summary { min-height: 35px; margin-top: 10px; padding: 9px 10px; border: 1px solid #222a35; border-radius: 7px; color: #828d9e; background: #0b0f15; font-size: .58rem; line-height: 1.45; }
.calendar-summary b { color: #d2d8e1; font-weight: 650; }
.calendar-summary .summary-satellites { color: #aebdd2; }
.pass-empty { padding: 18px 12px; color: #667286; font-size: .62rem; line-height: 1.45; text-align: center; }

.clock { display: flex; align-items: baseline; justify-content: center; gap: 7px; font-variant-numeric: tabular-nums; }
.clock span { font-size: 1rem; font-weight: 620; letter-spacing: .025em; white-space: nowrap; }
.clock #current-date { color: var(--muted); font-size: .76rem; font-weight: 500; }
.clock small { color: var(--faint); font-size: .61rem; font-weight: 700; letter-spacing: .12em; }

.layer-controls { display: flex; align-items: center; justify-self: end; gap: 5px; }
.layer-controls button { border-radius: 6px; padding: 6px 9px; font-size: .67rem; cursor: pointer; }
.layer-controls button:hover { border-color: #3b4351; color: var(--text); }
.layer-controls button[aria-pressed="true"] { color: #dbe7ff; border-color: #46628c; background: #182234; }
.layer-controls button[aria-disabled="true"] { opacity: .38; border-style: dashed; }

main { width: min(1680px, 100%); margin: 0 auto; padding: 14px 16px 16px; }

.night-empty-state {
  min-height: calc(100vh - 158px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.empty-eyebrow { color: #708096; font-size: .59rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.night-empty-state h1 { margin: 9px 0 3px; color: #ecf0f5; font-size: 1.35rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.night-empty-state p { margin: 0 0 18px; color: #747f90; font-size: .72rem; }
.empty-night-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 640px; margin-top: 6px; }
.empty-night-chips::before { content: attr(data-label); flex-basis: 100%; margin-bottom: 1px; color: #5f6a7a; font-size: .53rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.empty-night-chips span { padding: 5px 8px; border: 1px solid #28313e; border-radius: 999px; color: #aeb8c6; background: #10151d; font-size: .61rem; }
.empty-night-chips span[data-satellite]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--satellite-color); box-shadow: 0 0 5px var(--satellite-color); }
.night-empty-state > button { margin-top: 20px; padding: 7px 11px; border: 1px solid #344359; border-radius: 7px; color: #c9d8ed; background: #152033; font-size: .66rem; cursor: pointer; }
.night-empty-state > button:hover { border-color: #53719b; background: #1a2940; }

.workspace-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 188px;
  gap: 12px;
  align-items: stretch;
}

.conjunction-panel {
  min-height: 500px;
  height: min(62vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.site-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--line-soft);
}
.site-identity span { min-width: 0; }
.site-identity strong {
  display: block;
  overflow: hidden;
  color: #dce1e9;
  font-size: .68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-identity small {
  display: block;
  margin-top: 2px;
  color: #657082;
  font-size: .53rem;
}
.site-identity button {
  flex: none;
  padding: 4px 7px;
  border: 1px solid #303846;
  border-radius: 5px;
  color: #9ba8ba;
  background: transparent;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.site-identity button:hover { border-color: #506887; color: #e2eaf5; background: #172131; }

.ror-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(82vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #354154;
  border-radius: 12px;
  color: #c9d0da;
  background: #0e1219;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}
.ror-dialog::backdrop { background: rgba(4, 6, 9, .76); backdrop-filter: blur(6px); }
.ror-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px 14px;
  border-bottom: 1px solid #242c38;
  background: #111721;
}
.ror-dialog-header span { color: #708096; font-size: .55rem; font-weight: 650; letter-spacing: .04em; }
.ror-dialog-header h1 { margin: 4px 0 0; color: #f0f3f7; font-size: 1.04rem; font-weight: 650; }
.ror-dialog-header button {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #303947;
  border-radius: 6px;
  color: #8e9aab;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.ror-dialog-header button:hover { border-color: #566980; color: #fff; background: #1a2230; }
.ror-dialog-body { max-height: calc(min(82vh, 820px) - 73px); padding: 18px 20px 24px; overflow-y: auto; }
.ror-dialog-body h2 { margin: 23px 0 8px; color: #e4e8ee; font-size: .78rem; font-weight: 670; letter-spacing: .02em; }
.ror-dialog-body h2:first-of-type { margin-top: 20px; }
.ror-dialog-body p,
.ror-dialog-body li { color: #aeb7c5; font-size: .69rem; line-height: 1.65; }
.ror-dialog-body p { margin: 0 0 11px; }
.ror-dialog-body ul { margin: 8px 0 14px; padding-left: 19px; }
.ror-dialog-body li { margin: 5px 0; }
.ror-dialog-body strong { color: #dce3ec; font-weight: 650; }
.ror-dialog-body a { color: #91b9ee; text-decoration: none; }
.ror-dialog-body a:hover { text-decoration: underline; }

.pass-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 680;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.night-list { padding: 7px; border-bottom: 1px solid var(--line-soft); }
.night-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.night-result:hover { background: #151a22; color: var(--text); }
.night-result.is-active { background: #182131; color: var(--text); }
.night-result span { min-width: 0; }
.night-result b { display: block; font-size: .72rem; font-weight: 650; }
.night-result small { display: block; margin-top: 3px; color: var(--faint); font-size: .58rem; white-space: nowrap; }
.night-result strong { color: #a9b8d1; font-size: .7rem; text-align: center; }

.pass-heading { padding: 12px 12px 6px; color: var(--faint); font-size: .56rem; }
.pass-list { min-height: 0; padding: 0 7px; overflow-y: auto; }
.pass-row {
  width: 100%;
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr) 8px;
  gap: 8px;
  align-items: center;
  padding: 9px 7px;
  border: 0;
  border-bottom: 1px solid #1d222c;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.pass-row:hover,
.pass-row.is-active { background: #151a22; color: var(--text); }
.pass-row time { color: #d8dce3; font-size: .69rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pass-row b { display: block; overflow: hidden; font-size: .67rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pass-row small { display: block; margin-top: 2px; overflow: hidden; color: var(--faint); font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.pass-color { width: 6px; height: 6px; border-radius: 50%; }
.arase-color { background: #b79be4; }
.viirs-color { background: #78addd; }
.swarm-color { background: #aab5c8; }

.index-footnote {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: .56rem;
}
.index-footnote strong { color: #9da6b5; font-weight: 600; text-align: right; }

.map-panel {
  position: relative;
  min-height: 500px;
  height: min(62vh, 720px);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #0b0f15;
}

#map { width: 100%; height: 100%; display: block; }
.ocean { fill: #0b0f15; }
.graticule { fill: none; stroke: #29303b; stroke-width: 1; stroke-dasharray: 2 7; }
.coordinate-label { fill: #4d5665; font-size: 10px; font-variant-numeric: tabular-nums; }
.country { fill: #151a22; }
.country[data-country="Russia"] { fill: #141922; }
.country-border { fill: none; stroke: #7b8799; stroke-width: 1.05; vector-effect: non-scaling-stroke; pointer-events: none; }

.aacgm-grid-line {
  fill: none;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.aacgm-mlat { stroke: #a2b2ca; stroke-width: .75; opacity: .5; }
.aacgm-mlt { stroke: #8195b3; stroke-width: .7; stroke-dasharray: 4 5; opacity: .44; }
.aacgm-grid-line.is-major { stroke-width: 1.05; opacity: .72; }
.aacgm-grid-label {
  fill: #aab8cc;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .02em;
  paint-order: stroke;
  pointer-events: none;
  stroke: #0b0f15;
  stroke-linejoin: round;
  stroke-width: 3px;
}
.aacgm-mlt-label { fill: #93a6c2; }

.camera-image {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.camera-image.is-visible { opacity: 1; }

.camera-fov { cursor: pointer; transition: opacity .18s ease, fill-opacity .18s ease, stroke-width .18s ease; }
.camera-fov:hover { fill-opacity: 0; stroke-width: 2.4; }
.camera-fov.is-unavailable { opacity: 0; pointer-events: none; }
.station-mark { cursor: pointer; }
.station-mark .halo { opacity: .18; filter: url(#soft-shadow); }
.station-mark .dot { fill: #f7f8fa; stroke: #0b0f15; stroke-width: 2; }
.station-mark text { fill: #f0f2f5; font-size: 12px; font-weight: 630; paint-order: stroke; stroke: #0b0f15; stroke-width: 4px; stroke-linejoin: round; }
.station-mark.is-unavailable { opacity: 0; pointer-events: none; }

.orbit-track { fill: none; stroke-width: 1.15; stroke-dasharray: 5 7; opacity: .72; vector-effect: non-scaling-stroke; }
.footprint-track { stroke-width: 1.8; stroke-dasharray: none; opacity: .9; }
.orbit-instance.is-inactive,
.dnb-swath.is-inactive { display: none; }
.orbit-marker { stroke: #0b0f15; stroke-width: 2; }
.orbit-label { fill: #c9ced8; font-size: 10px; paint-order: stroke; stroke: #0b0f15; stroke-width: 4px; }
.dnb-swath { fill: url(#dnb-hatch); stroke: #6ea8d9; stroke-width: .6; opacity: .68; }
.dnb-center { fill: none; stroke: #6ea8d9; stroke-width: 1.3; stroke-dasharray: 7 8; opacity: .8; }

.camera-coordinates {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 226px;
  border: 1px solid rgba(57, 65, 79, .82);
  border-radius: 7px;
  background: rgba(10, 13, 18, .88);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.image-source-heading { padding: 7px 9px; border-bottom: 1px solid #222834; color: #727d8f; font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.coordinate-row { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) 26px; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid #222834; background: transparent; color: var(--muted); text-align: left; padding: 8px 9px; cursor: pointer; }
.coordinate-row:last-child { border-bottom: 0; }
.coordinate-row:hover, .coordinate-row.is-front { background: #171c25; color: var(--text); }
.coordinate-row.is-front { box-shadow: inset 2px 0 #d7deea; }
.coordinate-row.is-disabled { opacity: .42; }
.coordinate-row:disabled { cursor: default; opacity: .55; }
.coordinate-row i { width: 7px; height: 7px; border-radius: 50%; margin-top: 3px; }
.coordinate-row b { display: flex; justify-content: space-between; gap: 7px; font-size: .67rem; font-weight: 620; }
.coordinate-row span { display: block; margin-top: 2px; color: var(--faint); font-size: .58rem; font-variant-numeric: tabular-nums; }
.coordinate-row .coordinate-copy { min-width: 0; margin: 0; }
.coordinate-row b > span { overflow: hidden; margin: 0; color: inherit; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.coordinate-row .probability { color: #cbd4e2; font-size: .57rem; font-weight: 650; white-space: nowrap; }
.coordinate-row .toggle-state { color: #8895a8; font-size: .52rem; font-style: normal; font-weight: 750; text-align: right; }

.station-readout {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 430px));
  padding: 8px 11px;
  border: 1px solid #303846;
  border-radius: 7px;
  background: rgba(10, 13, 18, .9);
  color: #b8bec9;
  font-size: .64rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.station-readout.is-visible { opacity: 1; }
body.is-lightweight-night .station-readout { left: 12px; transform: none; max-width: calc(100% - 232px); text-align: left; }

.keogram-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 10px 12px 8px; }
.section-line { display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: .62rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 0 0 8px calc(var(--time-label-width) + var(--time-gap) + 1px); }
.keogram-list { display: grid; gap: 5px; }
.keogram-row { display: grid; grid-template-columns: var(--time-label-width) minmax(0, 1fr) var(--time-status-width); gap: var(--time-gap); align-items: center; min-width: 0; }
.keogram-name { color: #cbd0d9; font-size: .67rem; font-weight: 630; }
.keogram-track { position: relative; min-width: 0; height: 54px; overflow: hidden; border: 1px solid #252b35; border-radius: 4px; background: #07090c; }
.keogram-track img { width: 100%; height: 100%; display: block; object-fit: fill; opacity: .92; }
.lightweight-keogram-row .keogram-track { height: 34px; background-color: #0b0e14; background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px); background-size: calc(100% / 15) 100%; }
.lightweight-activity-segment { position: absolute; top: 6px; bottom: 6px; min-width: 2px; border: 1px solid color-mix(in srgb, var(--activity-color) 70%, #fff); border-radius: 2px; background: var(--activity-color); opacity: .68; }
.keogram-playhead { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.keogram-row.is-unavailable .keogram-track img { opacity: .34; filter: saturate(.5); }
.keogram-state { color: var(--faint); text-align: right; font-size: .58rem; font-variant-numeric: tabular-nums; }
.keogram-state.is-live { color: #bfc8d6; }

.alis-row {
  display: grid;
  grid-template-columns: var(--time-label-width) minmax(0, 1fr) var(--time-status-width);
  gap: var(--time-gap);
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.alis-name b { display: block; color: #cbd0d9; font-size: .67rem; font-weight: 650; }
.alis-name small { display: block; margin-top: 2px; color: var(--faint); font-size: .55rem; }
.alis-spectrum { display: flex !important; flex-direction: column; gap: 1px; line-height: 1.15; }
.alis-spectrum span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.alis-spectrum span::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; box-shadow: 0 0 5px currentColor; background: currentColor; }
.alis-spectrum .alis-4278 { color: #5578ff; }
.alis-spectrum .alis-5577 { color: #58d86f; }
.alis-track {
  position: relative;
  height: 32px;
  overflow: hidden;
  border: 1px solid #252b35;
  border-radius: 4px;
  background-color: #080a0e;
  background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: calc(100% / 14.5) 100%;
}
.alis-hour {
  position: absolute;
  top: 4px;
  bottom: 4px;
  min-width: 2px;
  border: 1px solid rgba(175, 189, 210, .2);
  border-radius: 2px;
  background: #7b8ea9;
  opacity: .82;
}
.alis-hour.is-active { border-color: rgba(255,255,255,.75); opacity: 1; box-shadow: 0 0 12px rgba(140,160,192,.24); }
.alis-playhead { position: absolute; z-index: 3; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.92); pointer-events: none; }
.alis-state { color: var(--faint); text-align: right; font-size: .58rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.alis-state.is-live { color: #c4cbd6; }
.eiscat-row { display: grid; grid-template-columns: var(--time-label-width) minmax(0, 1fr) var(--time-status-width); gap: 4px var(--time-gap); align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.eiscat-name { grid-row: span 2; align-self: center; }
.eiscat-name b { display: block; color: #cbd0d9; font-size: .67rem; font-weight: 650; }
.eiscat-name small { display: block; color: var(--faint); font-size: .52rem; margin-top: 3px; }
.eiscat-track { position: relative; height: 35px; overflow: hidden; border: 1px solid #252b35; border-radius: 4px; background: #080a0e; }
.eiscat-uhf { --radar-color: #68b7bc; }
.eiscat-vhf { --radar-color: #c598d9; }
.eiscat-segment { position: absolute; top: 3px; bottom: 3px; padding: 0; border: 0; border-radius: 1px; background: color-mix(in srgb, var(--radar-color) 45%, #080a0e); cursor: pointer; }
.eiscat-label { position: absolute; top: 5px; bottom: 4px; z-index: 2; padding: 0 5px; color: #e1e9ef; overflow: hidden; white-space: nowrap; pointer-events: none; line-height: 1.35; }
.eiscat-label b { display: block; font-size: .59rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.eiscat-label small { display: block; font-size: .54rem; overflow: hidden; text-overflow: ellipsis; }
.eiscat-segment:hover, .eiscat-segment.is-active { background: color-mix(in srgb, var(--radar-color) 65%, #080a0e); border-color: #e4ebf3; }
.eiscat-segment:focus-visible { outline: 2px solid #fff; outline-offset: -2px; z-index: 4; }
.eiscat-empty { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 7px; color: var(--faint); font-size: .55rem; }
.eiscat-state { color: var(--faint); text-align: right; font-size: .56rem; line-height: 1.3; }
.eiscat-state b { margin-right: 5px; font-weight: 600; }
.eiscat-state.is-live { color: #c4cbd6; }
.eiscat-state span { white-space: nowrap; }
.eiscat-detail { display: none; }
.keogram-time-axis { display: flex; justify-content: space-between; margin: 7px calc(var(--time-status-width) + var(--time-gap)) 0 calc(var(--time-label-width) + var(--time-gap)); color: #596271; font-size: .58rem; font-variant-numeric: tabular-nums; }

.timeline {
  display: grid;
  grid-template-columns: var(--time-label-width) minmax(0, 1fr) var(--time-status-width);
  align-items: center;
  gap: var(--time-gap);
  padding: 0 max(29px, calc((100% - 1622px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 15, .97);
  position: sticky;
  bottom: 0;
  z-index: 20;
}
.play-button { width: 36px; height: 36px; border-radius: 50%; padding-left: 3px; cursor: pointer; color: #cbd0d9; }
.play-button:hover, .play-button[aria-pressed="true"] { color: #fff; border-color: #536174; background: #171c25; }
.slider-wrap { position: relative; align-self: start; height: 32px; margin-top: 3px; }
.availability-bars { position: absolute; inset: 3px 0 auto; height: 5px; border-radius: 99px; background: #171c24; overflow: hidden; }
.availability-segment { position: absolute; top: 0; bottom: 0; border-radius: 99px; opacity: .76; }
.conjunction-markers { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.conjunction-marker {
  --marker-color: #aab5c8;
  position: absolute;
  top: 0;
  width: 14px;
  height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
}
.conjunction-marker::before { content: ""; position: absolute; left: 6px; top: calc(6px + var(--marker-lane, 0) * 5px); bottom: 0; width: 1px; background: var(--marker-color); opacity: .8; }
.conjunction-marker::after { content: ""; position: absolute; left: 4px; top: calc(2px + var(--marker-lane, 0) * 5px); width: 6px; height: 6px; border: 1px solid #0a0c10; background: var(--marker-fill, var(--marker-color)); box-shadow: 0 0 5px color-mix(in srgb, var(--marker-color) 65%, transparent); transform: rotate(45deg); }
.conjunction-marker:hover::after,
.conjunction-marker.is-active::after,
.conjunction-marker:focus-visible::after { border-color: #f4f5f7; box-shadow: 0 0 0 2px rgba(244,245,247,.18), 0 0 8px var(--marker-color); }
.conjunction-marker:focus-visible { outline: none; }
.preload-progress {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #527fbe, #91bcfa 55%, #527fbe);
  background-size: 180% 100%;
  box-shadow: 0 0 9px rgba(111, 164, 235, .5);
  opacity: .92;
  pointer-events: none;
  transition: width .12s linear, opacity .3s ease;
  animation: cache-flow 1.2s linear infinite;
}
.preload-progress.is-complete { opacity: .22; animation: none; box-shadow: none; }
@keyframes cache-flow { to { background-position: -180% 0; } }
#time-slider { position: absolute; z-index: 3; inset: 8px 0 auto; width: 100%; height: 20px; margin: 0; appearance: none; background: transparent; cursor: ew-resize; }
#time-slider::-webkit-slider-runnable-track { height: 2px; background: #414958; }
#time-slider::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #f2f4f7; border: 3px solid #6f7d92; box-shadow: 0 0 0 4px rgba(116,130,151,.14); }
#time-slider::-moz-range-track { height: 2px; background: #414958; }
#time-slider::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #f2f4f7; border: 3px solid #6f7d92; box-shadow: 0 0 0 4px rgba(116,130,151,.14); }
.camera-status {
  position: absolute;
  right: max(29px, calc((100% - 1622px) / 2));
  bottom: 5px;
  width: 250px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-right: 15px;
  color: var(--muted);
  text-align: right;
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
}
.camera-status::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-radius: 50%;
  background: #607086;
  box-shadow: 0 0 0 3px rgba(96,112,134,.09);
}
.camera-status.is-loading::after { background: #83b6fa; box-shadow: 0 0 0 3px rgba(91,145,218,.15), 0 0 10px rgba(108,167,244,.72); animation: cache-pulse 1s ease-in-out infinite; }
.camera-status.is-complete::after { background: #72bc91; box-shadow: 0 0 0 3px rgba(89,160,119,.12); }
.camera-status.has-failure::after { background: #e09a66; }
.camera-status > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#camera-status-main { color: #cbd3df; font-weight: 620; }
#camera-status-cache { color: #78869b; font-size: .56rem; }
.camera-status.is-loading #camera-status-cache { color: #9ebee9; }
@keyframes cache-pulse { 50% { opacity: .45; transform: scale(.72); } }
.map-layer.is-hidden { display: none; }

.allsky-panel {
  min-height: 500px;
  height: min(62vh, 720px);
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.allsky-heading { display: flex; align-items: center; padding: 0 9px; border-bottom: 1px solid var(--line-soft); color: #727d8f; font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.allsky-list { min-height: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); }
.allsky-card { min-height: 0; display: grid; grid-template-rows: 20px minmax(0, 1fr); padding: 2px 4px 4px; border-bottom: 1px solid var(--line-soft); }
.allsky-card:last-child { border-bottom: 0; }
.allsky-card.is-unavailable { opacity: .38; }
.allsky-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #cbd0d9; font-size: .61rem; font-variant-numeric: tabular-nums; }
.allsky-meta b { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.allsky-meta span { flex: none; color: #768194; font-size: .53rem; }
.allsky-image-wrap { position: relative; min-height: 0; overflow: hidden; border: 1px solid #252b35; border-radius: 4px; background: #05070a; }
.allsky-image { width: 100%; height: 100%; display: block; object-fit: contain; }
.lightweight-frame-placeholder { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #252b35; border-radius: 4px; background: #0b0e14; color: #8892a2; font-size: .68rem; }
.lightweight-frame-placeholder small { color: #657082; font-size: .56rem; }
.station-mark.is-observation-inactive { opacity: .48; }
.allsky-satellites { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.allsky-satellite-dot { stroke: #07090d; stroke-width: 4; paint-order: stroke; }
.allsky-satellite-label { fill: #f2f4f7; font-size: 19px; font-weight: 700; paint-order: stroke; stroke: #07090d; stroke-width: 5px; stroke-linejoin: round; }

@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: 214px minmax(0, 1fr); }
  .allsky-panel { grid-column: 1 / -1; min-height: 0; height: auto; }
  .allsky-list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
  .allsky-card { min-height: 180px; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .allsky-card:last-child { border-right: 0; }
}

@media (max-width: 900px) {
  :root { --time-label-width: 64px; --time-gap: 7px; }
  .app-shell { grid-template-rows: auto 1fr 68px; }
  .toolbar { grid-template-columns: 1fr auto; min-height: 56px; padding: 8px 12px; }
  .clock { justify-self: end; }
  .layer-controls { grid-column: 1 / -1; justify-self: stretch; overflow-x: auto; padding-bottom: 2px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .conjunction-panel { min-height: 0; height: auto; }
  .night-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .pass-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-bottom: 8px; }
  .pass-row { border: 1px solid var(--line-soft); border-radius: 5px; }
  .index-footnote { display: none; }
  .map-panel { height: 56vh; min-height: 440px; }
  .allsky-panel { min-height: 0; height: auto; }
  .allsky-list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
  .allsky-card { min-height: 180px; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .allsky-card:last-child { border-right: 0; }
  .camera-coordinates { width: 168px; }
  .station-readout { max-width: calc(100% - 220px); left: 12px; transform: none; text-align: left; }
  .keogram-row { grid-template-columns: var(--time-label-width) minmax(0, 1fr); gap: var(--time-gap); }
  .alis-row { grid-template-columns: var(--time-label-width) minmax(0, 1fr); gap: var(--time-gap); }
  .keogram-state { display: none; }
  .alis-state { display: none; }
  .eiscat-row { grid-template-columns: var(--time-label-width) minmax(0, 1fr); }
  .eiscat-name { grid-row: span 4; }
  .eiscat-state { grid-column: 2; text-align: left; font-size: .52rem; }
  .eiscat-detail { display: block; color: #b5c3d3; white-space: normal; margin-top: 2px; }
  .section-line { padding-left: calc(var(--time-label-width) + var(--time-gap)); }
  .keogram-time-axis { margin-left: calc(var(--time-label-width) + var(--time-gap)); margin-right: 0; }
  .timeline { grid-template-columns: var(--time-label-width) minmax(0, 1fr); gap: var(--time-gap); padding-inline: 21px; }
  .camera-status { right: 21px; }
  .camera-status { padding-right: 13px; font-size: .58rem; }
  #camera-status-cache { font-size: .52rem; }
}

@media (max-width: 560px) {
  :root { --time-label-width: 54px; --time-gap: 5px; }
  .toolbar { gap: 10px; }
  .clock { width: 92px; flex-wrap: wrap; justify-content: flex-end; gap: 2px 5px; }
  .clock span { font-size: .8rem; }
  .clock #current-date { flex-basis: 100%; font-size: .7rem; text-align: right; }
  .clock small { font-size: .55rem; }
  main { padding: 8px; }
  .map-panel { min-height: 390px; }
  .night-list { grid-template-columns: 1fr; }
  .night-result:not(.is-active) { display: none; }
  .pass-list { grid-template-columns: 1fr; }
  .camera-coordinates { display: none; }
  .station-readout { display: none; }
  .allsky-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allsky-card { min-height: 190px; border-bottom: 1px solid var(--line-soft); }
  .ror-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 24px); }
  .ror-dialog-body { max-height: calc(100vh - 97px); padding-inline: 16px; }
  .keogram-panel { padding-inline: 8px; }
  .keogram-row { grid-template-columns: var(--time-label-width) minmax(0, 1fr); gap: var(--time-gap); }
  .alis-row { grid-template-columns: var(--time-label-width) minmax(0, 1fr); gap: var(--time-gap); }
  .keogram-track { height: 42px; }
  .section-line { padding-left: calc(var(--time-label-width) + var(--time-gap)); }
  .section-line span:last-child { display: none; }
  .keogram-time-axis { margin-left: calc(var(--time-label-width) + var(--time-gap)); }
  .timeline { grid-template-columns: var(--time-label-width) minmax(0, 1fr); padding-inline: 17px; gap: var(--time-gap); }
  .camera-status { display: none; }
}

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

.calendar-day.is-planning { border: 1px dashed #64748b; color: #cbd5e1; cursor: pointer; }
