/* ==========================================================================
   过顶卫星雷达 · Overhead Satellite Radar
   视觉：浅色科技风（工程网格底纹、HUD 式直角卡片、等宽数据、青蓝强调）
   结构与类名与 app.js / index.html 保持一致，布局逻辑见各段注释
   ========================================================================== */

:root {
  --bg: #f2f6fb;
  --grid-line: rgba(14, 116, 190, .075);
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --surface-3: #edf3f9;
  --border: #dce6f1;
  --border-strong: #bccde0;
  --text: #0c1e33;
  --text-2: #3b5571;
  --muted: #6d83a0;
  --accent: #0a6ed1;
  --accent-2: #06a6c8;
  --accent-soft: #e2f0fd;
  --accent-deep: #095bab;

  --c-station: #e11d48;
  --c-bright: #f59e0b;
  --c-weather: #0891b2;
  --c-nav: #7c3aed;
  --c-science: #059669;
  --c-other: #64748b;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 51, .05);
  --shadow: 0 1px 2px rgba(12, 30, 51, .05), 0 14px 32px -22px rgba(10, 110, 209, .45);
  --shadow-lg: 0 28px 60px -24px rgba(12, 30, 51, .35);

  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --topbar-h: 58px;
  --sheet-peek: min(44vh, 380px);
}
@supports (height: 1dvh) { :root { --sheet-peek: min(44dvh, 380px); } }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 100% -12%, rgba(6, 166, 200, .16), transparent 62%),
    radial-gradient(800px 460px at -6% -4%, rgba(10, 110, 209, .12), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--border);
}
/* 底边扫描光：一道青色亮线从左到右慢速扫过 */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent) no-repeat;
  background-size: 35% 100%;
  animation: scan 5s linear infinite;
}
@keyframes scan { from { background-position: -35% 0; } to { background-position: 135% 0; } }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  cursor: pointer;
}
.brand-mark {
  position: relative;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #0a6ed1, #06a6c8);
  box-shadow: 0 6px 14px -6px rgba(10, 110, 209, .75);
}
.brand-orbit {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px dashed rgba(6, 166, 200, .45);
  animation: orbit 9s linear infinite;
}
.brand-orbit::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px rgba(6, 166, 200, .9);
}
.brand-sub {
  display: block; margin-top: -1px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.topbar-spacer { flex: 1; }

.clock { text-align: right; line-height: 1.25; white-space: nowrap; }
.clock .t {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.clock .d { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.theme-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.theme-btn svg { display: none; flex: none; }
:root[data-theme-pref="light"] .theme-btn .i-sun,
:root[data-theme-pref="dark"] .theme-btn .i-moon,
:root[data-theme-pref="auto"] .theme-btn .i-auto { display: block; animation: themeIcon .45s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes themeIcon { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ wrap */
.wrap { max-width: 1460px; margin: 0 auto; padding: 14px 14px 96px; }

/* ------------------------------------------------------------- statusbar */
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 5px 10px; font-size: 12px; color: var(--text-2); box-shadow: var(--shadow-sm);
  animation: fadeUp .5s both;
}
.chip:nth-child(2) { animation-delay: 60ms; }
.chip:nth-child(3) { animation-delay: 120ms; }
.chip:nth-child(4) { animation-delay: 180ms; }
.chip:nth-child(5) { animation-delay: 240ms; }
.chip .k { color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.chip .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.chip .dot {
  width: 7px; height: 7px; border-radius: 2px; background: var(--c-science); flex: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .14);
}
.chip.warn .dot { background: var(--c-bright); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.chip.err .dot { background: var(--c-station); box-shadow: 0 0 0 3px rgba(225, 29, 72, .16); }
.chip.pulse .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ------------------------------------------------------------------ grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }

@media (min-width: 1060px) {
  .grid { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); }
  .col-side {
    position: sticky;
    top: calc(var(--topbar-h) + 14px);
    max-height: calc(100vh - var(--topbar-h) - 28px);
    overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin;
  }
  .col-side::-webkit-scrollbar { width: 8px; }
  .col-side::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
  .col-side::-webkit-scrollbar-track { background: transparent; }
}

.col-main, .col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* 移动端：拆开两列，卡片按重要性重新排序
   天顶图 → 过顶列表 → 观测点设置 → 地面轨迹 */
@media (max-width: 1059px) {
  .col-main, .col-side { display: contents; }
  .card-sky    { order: 1; }
  .card-list   { order: 2; }
  .card-ctrl   { order: 3; }
  .card-map    { order: 4; }
  .card-detail { order: 5; }
}

/* ------------------------------------------------------------------ card */
/* HUD 式直角卡片：四角青色定位角标 */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 0 solid var(--accent-2); pointer-events: none; z-index: 2;
}
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: var(--radius); }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: var(--radius); }

.card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.card-title {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--text);
}
.card-title .ico {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; flex: none;
  color: var(--accent); background: var(--accent-soft);
}
.card-head .spacer { flex: 1; }
.hint { font-size: 11px; color: var(--muted); min-width: 0; }
@media (max-width: 560px) { .card-sky .card-head .hint { display: none; } }
.badge-count {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; min-width: 26px; text-align: center;
}

/* -------------------------------------------------------------- sky plot */
.sky-wrap {
  position: relative; padding: 14px;
  display: flex; justify-content: center;
  background: radial-gradient(circle at 50% 50%, var(--surface) 0%, var(--surface-2) 100%);
  transition: background .8s ease;
}
.sky-wrap.dark { background: radial-gradient(circle at 50% 50%, #0f2a44 0%, #071426 100%); }
#sky {
  display: block; width: 100%; max-width: min(520px, 50vh); height: auto;
  touch-action: manipulation; cursor: crosshair;
}
.sky-tip {
  position: absolute; pointer-events: none; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(12, 30, 51, .93); color: #fff;
  font-size: 11.5px; line-height: 1.35; padding: 7px 10px; border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -130%); opacity: 0; transition: opacity .12s;
  box-shadow: 0 8px 20px -8px rgba(12, 30, 51, .5);
}
.sky-tip.on { opacity: 1; }
.sky-tip b { font-size: 12px; }
.sky-tip .tip-en { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.sky-tip span:last-child { font-family: var(--mono); font-size: 11px; opacity: .9; }

.legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 10px 15px 13px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-2); cursor: pointer; user-select: none; transition: opacity .15s;
}
.legend-item.off { opacity: .34; }
.legend-item .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend-sep { width: 1px; height: 12px; background: var(--border-strong); }
.legend-key { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.legend-key .sw-lit, .legend-key .sw-dark { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.legend-key .sw-lit { background: var(--text-2); }
.legend-key .sw-dark { border: 1.8px solid var(--text-2); background: var(--surface); }

/* ------------------------------------------------------------------- map */
#map { height: 260px; width: 100%; background: #e8f0f8; z-index: 1; }
@media (min-width: 1060px) { #map { height: 300px; } }
.leaflet-container { font-family: var(--sans) !important; }
.leaflet-control-attribution { font-size: 9.5px !important; background: rgba(255, 255, 255, .86) !important; color: var(--muted) !important; }
.leaflet-bar { border: 1px solid var(--border-strong) !important; border-radius: var(--radius-sm) !important; overflow: hidden; box-shadow: var(--shadow-sm) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text-2) !important; border-bottom: 1px solid var(--border) !important; }
.leaflet-bar a:hover { background: var(--accent-soft) !important; color: var(--accent-deep) !important; }

/* -------------------------------------------------------------- controls */
.ctrl-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 15px; }
.field-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field-label .val { font-family: var(--mono); color: var(--accent-deep); letter-spacing: 0; text-transform: none; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 5px; cursor: pointer;
  transition: all .14s;
}
.seg-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.seg-btn .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.seg-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 14px -8px rgba(10, 110, 209, .85);
}
.seg-btn[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) var(--pct, 0%), var(--border) var(--pct, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 4px;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(12, 30, 51, .2);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 3px; background: var(--surface); border: 2px solid var(--accent); }

.txt {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 11px; font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.txt:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 110, 209, .14); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .14s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #0a6ed1, #0892b8); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(10, 110, 209, .9);
}
.btn.primary:hover { filter: brightness(1.06); color: #fff; background: linear-gradient(135deg, #0a6ed1, #0892b8); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn .chev { display: inline-block; transition: transform .25s; font-size: 10px; }
.btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.manual-box { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.2, .8, .3, 1), opacity .25s; }
.manual-box.open { grid-template-rows: 1fr; opacity: 1; }
.manual-inner { overflow: hidden; min-height: 0; }
.manual-box.open .manual-inner { padding-top: 10px; }

.city-list { display: flex; flex-wrap: wrap; gap: 6px; }
.city-list button {
  appearance: none; border: 1px dashed var(--border-strong); background: transparent;
  font-family: inherit; font-size: 11.5px; color: var(--text-2); padding: 4px 9px; border-radius: 4px; cursor: pointer;
}
.city-list button:hover { border-style: solid; border-color: var(--accent); color: var(--accent-deep); }

#cat-seg.busy .seg-btn[aria-pressed="true"] {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0));
  background-size: 240px 100%; animation: shimmer 1s linear infinite;
}

/* --------------------------------------------------------------- 搜索 */
.list-tools { padding: 10px 14px 9px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.search {
  display: flex; align-items: center; gap: 7px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--muted); transition: border-color .15s, box-shadow .15s, background .15s;
}
.search:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(10, 110, 209, .12); color: var(--accent); }
.search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 12.5px; color: var(--text); padding: 8px 0;
}
.search input::-webkit-search-cancel-button { display: none; }
.q-clear {
  appearance: none; border: none; background: var(--surface-3); color: var(--text-2);
  width: 18px; height: 18px; border-radius: 4px; font-size: 10px; cursor: pointer; display: grid; place-items: center; flex: none;
}
.q-clear[hidden] { display: none; }
.quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quick button {
  appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-family: inherit; font-size: 11px; padding: 3px 9px; border-radius: 4px; cursor: pointer; transition: all .15s;
}
.quick button:hover { border-color: var(--accent); color: var(--accent-deep); }
.quick button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 600; }

/* --------------------------------------------------------------- 列表 */
.sat-list { max-height: none; overflow-y: auto; }
@media (min-width: 1060px) { .sat-list { max-height: 46vh; } }

.sat-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; outline: none;
  transition: background .2s;
}
.sat-row:last-child { border-bottom: none; }
.sat-row:hover { background: var(--surface-2); }
.sat-row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.sat-row.sel { background: linear-gradient(90deg, var(--accent-soft), transparent 85%); }
.sat-row.sel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.sat-row.enter { animation: rowIn .45s cubic-bezier(.2, .8, .3, 1) both; }

.sat-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sat-name .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sat-name .cn {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft);
  padding: 0 6px; border-radius: 4px; line-height: 17px;
}
.sat-name .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sat-meta {
  grid-column: 1; display: flex; flex-wrap: wrap; gap: 3px 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sat-meta b { color: var(--text-2); font-weight: 600; }
.sat-meta .lit { font-size: 10.5px; color: var(--muted); }
.sat-meta .lit.on { color: var(--c-bright); }
.trend { font-size: 10px; }
.trend.up { color: var(--c-science); }
.trend.down { color: var(--c-station); }

.el-badge {
  grid-row: 1 / span 3; grid-column: 2; text-align: center; min-width: 58px; padding: 5px 7px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--mono); font-variant-numeric: tabular-nums; transition: background .4s, color .4s;
}
.el-badge .n { display: block; font-size: 16px; font-weight: 700; line-height: 1.05; }
.el-badge .u { font-family: var(--sans); font-size: 9.5px; letter-spacing: .08em; opacity: .8; }
.el-badge.q0 { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--border-strong); }
.el-badge.q1 { background: var(--surface-3); color: var(--text-2); }
.el-badge.q2 { background: #fff4d6; color: #8a5a00; }
.el-badge.q3 { background: #dcf1fb; color: #075985; }
.el-badge.q4 { background: #d6f6ec; color: #046b52; }

.el-bar { grid-column: 1; height: 3px; margin-top: 2px; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
.el-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .9s cubic-bezier(.2, .8, .3, 1); }

.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.empty .big { display: block; margin-bottom: 8px; font-size: 26px; opacity: .5; }
.loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; color: var(--muted); font-size: 12.5px; }
.loader-note { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px 20px 6px; color: var(--muted); font-size: 12.5px; }
.sk-row {
  display: grid; grid-template-columns: 1fr 56px; grid-template-rows: auto auto; gap: 7px 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); animation: fadeIn .4s both; animation-delay: var(--d);
}
.sk { display: block; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--surface-3) 0, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 240px 100%; animation: shimmer 1.2s linear infinite; }
.sk-a { width: 60%; height: 12px; }
.sk-b { width: 85%; grid-row: 2; }
.sk-c { grid-row: 1 / span 2; grid-column: 2; height: 36px; border-radius: 6px; }
.spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spin.sm { width: 11px; height: 11px; border-width: 2px; display: inline-block; vertical-align: -1px; margin-right: 5px; }

/* ---------------------------------------------------------- 详情面板 */
.detail { display: none; }
.detail.on { display: block; }
@media (min-width: 1060px) {
  .detail.on { animation: cardIn .45s cubic-bezier(.2, .8, .3, 1) both; }
}
.detail-body { padding: 14px 15px 16px; animation: fadeUp .4s cubic-bezier(.2, .8, .3, 1) both; }
.detail-grab { cursor: default; }
.detail-close, .detail-expand {
  appearance: none; display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-3); color: var(--text-2); font-size: 15px; line-height: 1;
}
.detail-close { margin-left: auto; }
.detail-close:hover, .detail-expand:hover { background: var(--border); }
.detail-expand { display: none; }

.d-hero { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.d-hero-ico {
  position: relative; flex: none; width: 46px; height: 46px; margin: 4px 2px 0; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: 0 8px 18px -10px var(--c);
}
.d-hero-ico .orbit-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: orbit 6s linear infinite; }
.d-hero-ico .orbit-dot { position: absolute; inset: -6px; animation: orbit 3.2s linear infinite; }
.d-hero-ico .orbit-dot::after { content: ""; position: absolute; top: -2.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--c); }
.d-hero-txt { min-width: 0; }
.d-hero .nm { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.d-hero .en { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.d-hero .ids { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}
.tag[hidden] { display: none; }
.tag.cat {
  background: color-mix(in srgb, var(--c, var(--accent)) 13%, var(--surface));
  color: color-mix(in srgb, var(--c, var(--accent)) 80%, var(--text));
  border-color: color-mix(in srgb, var(--c, var(--accent)) 30%, var(--surface));
}

.vis-line { margin-bottom: 12px; }
.vis-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; border: 1px solid transparent;
  font-size: 11.5px; font-weight: 700; transition: background .4s, color .4s;
}
.vis-pill.yes { background: #d6f6ec; color: #046b52; border-color: #9de6cc; animation: glowPulse 2s ease-in-out infinite; }
.vis-pill.mid { background: #fff4d6; color: #8a5a00; border-color: #f5dc8f; }
.vis-pill.no { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }

.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 -15px 13px; padding: 0 11px; }
.tab {
  appearance: none; border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 10px 9px; transition: color .2s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--accent-deep); }
.tab-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), width .35s cubic-bezier(.2, .8, .3, 1);
}
.pane { display: none; }
.pane.on { display: block; }
.pane.pane-in { animation: fadeUp .32s cubic-bezier(.2, .8, .3, 1) both; }

.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
.kv {
  position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px;
}
.kv::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent-2); }
.kv .k { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kv .v { margin-top: 2px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 700; color: var(--text); }
.kv .v small { margin-left: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); }

.next-card {
  position: relative; overflow: hidden; margin-bottom: 12px; padding: 11px 13px; border-radius: 8px;
  background: linear-gradient(135deg, #e6f2fd, #e3f8f6); border: 1px solid #bcdcf5;
}
.next-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  border: 1px dashed rgba(10, 110, 209, .3); animation: orbit 14s linear infinite;
}
.next-card .nc-k { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent-deep); }
.next-card .nc-k.live { color: var(--c-science); }
.next-card .nc-k .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-science); animation: pulse 1.2s infinite; }
.next-card .nc-t { margin-top: 3px; font-size: 14px; font-weight: 700; }
.next-card .cd { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.next-card .nc-s { margin-top: 4px; font-size: 11.5px; line-height: 1.55; color: var(--text-2); }
.ok { color: var(--c-science); }
.live-t { color: var(--c-bright); }
.warn-t { color: #b77400; font-weight: 600; }

.intro-peek { font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.link { appearance: none; border: none; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--accent); }
.link:hover { text-decoration: underline; }

.intro p { margin: 0 0 10px; font-size: 13px; line-height: 1.85; color: var(--text); text-align: justify; animation: fadeUp .4s both; animation-delay: var(--d); }
.info-table { margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ir { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 7px 11px; font-size: 12px; border-bottom: 1px solid var(--border); }
[data-satcat] > .ir:last-child { border-bottom: none; }
.ir .k { color: var(--muted); }
.ir .v { font-weight: 600; color: var(--text); }
.ir .v.muted { font-weight: 500; color: var(--muted); }
.info-table .pass-note { border: none; border-radius: 0; }
.fade-in { animation: fadeIn .5s both; }

.facts { margin-bottom: 12px; padding: 10px 13px; border-radius: 8px; background: #fff9e8; border: 1px solid #f5dc8f; }
.facts-t { margin-bottom: 4px; font-size: 11.5px; font-weight: 800; color: #9a6200; }
.facts ul { margin: 0; padding-left: 17px; }
.facts li { font-size: 12px; line-height: 1.7; color: #6b4a00; }
.tip { padding: 10px 13px; border-radius: 8px; background: #ecfbf6; border: 1px solid #a8e6d0; font-size: 12px; line-height: 1.7; color: #04624a; }
.tip b { display: block; margin-bottom: 2px; font-size: 11.5px; }

.orbit-figs { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.orbit-svg { flex: 1; min-width: 0; height: auto; max-height: 160px; }
.inc-svg { flex: none; width: 92px; }
.orbit-svg .ol, .inc-svg .ol { font-family: var(--sans); font-size: 9px; fill: var(--muted); }
.orbit-type { margin-bottom: 10px; }

.pass-title {
  display: flex; align-items: center; gap: 7px; margin: 14px 0 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.pass-row {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 12px;
  animation: fadeUp .35s both; animation-delay: var(--d);
}
.pass-row:nth-child(odd) { background: var(--surface-2); }
.pass-row.visible { background: #ecfbf6; border-color: #9de6cc; }
.pass-row .tm { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; }
.pass-row .tm small { font-family: var(--sans); font-size: 9.5px; font-weight: 600; color: var(--muted); }
.pass-row .dur { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.pass-row .mx { font-family: var(--mono); font-weight: 700; color: var(--accent-deep); }
.pbar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
.pbar i { display: block; height: 100%; border-radius: 2px; transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: barGrow .7s cubic-bezier(.2, .8, .3, 1) both; animation-delay: inherit; }
.pass-row.visible .pbar i { background: var(--c-science); }
.pass-note {
  padding: 9px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11.5px; line-height: 1.6; color: var(--muted);
}
.pass-note b { color: var(--text-2); }
.ok, .live-t { font-weight: 700; }

/* ---------------------------------------------------------- 地图标记 */
.obs-mk .c { position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(12, 30, 51, .35); }
.obs-mk .r { position: absolute; inset: 0; border-radius: 50%; background: rgba(10, 110, 209, .3); animation: ripple 2.4s ease-out infinite; }
.obs-mk .r2 { animation-delay: 1.2s; }
.sat-mk { --c: #e11d48; }
.sat-mk .p { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--c) 40%, transparent); animation: ripple 1.8s ease-out infinite; }
.sat-mk .core {
  position: absolute; inset: 5px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(12, 30, 51, .35);
  transition: transform .3s linear;
}
.leaflet-marker-icon.sat-mk { transition: transform .22s linear; }
.leaflet-zoom-anim .leaflet-marker-icon.sat-mk { transition: none; }
.trk-future { stroke-dasharray: 9 4; animation: flow 1.4s linear infinite; }

/* ------------------------------------------------------ 脚注 */
.footnote { margin-top: 16px; padding: 0 4px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.footnote a { color: var(--accent); text-decoration: none; }
.footnote a:hover { text-decoration: underline; }

/* ------------------------------------------------------ 滚动条 */
.sat-list::-webkit-scrollbar, .detail::-webkit-scrollbar { width: 8px; }
.sat-list::-webkit-scrollbar-thumb, .detail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* ------------------------------------------------------ 返回雷达图 */
.to-sky {
  position: fixed; right: 16px; bottom: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 75;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #0a6ed1, #0892b8); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(10, 110, 209, .9), 0 2px 6px rgba(12, 30, 51, .18);
  opacity: 0; transform: translateY(16px) scale(.88); pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .3, 1.35), bottom .32s cubic-bezier(.2, .8, .3, 1);
}
.to-sky.show { opacity: 1; transform: none; pointer-events: auto; }
.to-sky:hover { filter: brightness(1.08); }
.to-sky:active { transform: scale(.95); }
.to-sky:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.to-sky-ico {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  border: 1.6px solid rgba(255, 255, 255, .9);
  background: radial-gradient(circle, #fff 0 1.6px, transparent 2px);
}
.to-sky-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0 70%, rgba(255, 255, 255, .75) 100%);
  animation: orbit 2.4s linear infinite;
}
/* 回到雷达图后，外框青色光晕闪两下 */
@keyframes skyFlash {
  0%, 100% { outline-color: transparent; }
  25%, 75% { outline-color: rgba(6, 166, 200, .95); }
}
.card-sky { outline: 2px solid transparent; outline-offset: -2px; }
.card-sky.flash { animation: skyFlash 1.2s ease-in-out 1; }
.brand { cursor: pointer; }

/* ==========================================================================
   移动端
   ========================================================================== */
@media (max-width: 1059px) {
  .wrap { padding: 12px 11px 110px; }
  .brand-sub { display: none; }
  .clock .d { display: none; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro p { font-size: 13.5px; }
  .to-sky { right: 12px; }

  /* 详情：底部抽屉，默认半屏，可展开为大半屏 */
  .card-detail::before, .card-detail::after { display: none; }
  .detail.on {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: var(--sheet-peek); max-height: none; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 16px 16px 0 0; border-top: 1px solid var(--border-strong); border-bottom: none;
    box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom);
    animation: sheetUp .26s cubic-bezier(.2, .8, .3, 1);
    transition: height .32s cubic-bezier(.2, .8, .3, 1), transform .25s cubic-bezier(.2, .8, .3, 1);
  }
  .detail.on.full { height: 86vh; }
  @supports (height: 1dvh) {
    .detail.on { height: var(--sheet-peek); }
    .detail.on.full { height: 86dvh; }
  }
  .detail.on::before {
    content: ""; display: block; position: relative; top: auto; left: auto; z-index: auto;
    width: 40px; height: 4px; margin: 8px auto 0; border: none; border-radius: 2px;
    background: var(--border-strong);
  }
  .detail.on .card-head { padding-top: 6px; }
  .detail.on:not(.full) .detail-body { padding-top: 11px; }
  .detail.on:not(.full) .d-hero { margin-bottom: 9px; }
  .detail.on:not(.full) .d-hero-ico { width: 38px; height: 38px; border-radius: 9px; }
  .detail.on:not(.full) .d-hero .nm { font-size: 15px; }
  .detail.on:not(.full) .d-hero .ids,
  .detail.on:not(.full) .d-tags { display: none; }
  .detail.on:not(.full) .vis-line { margin-bottom: 9px; }
  .detail-grab { cursor: pointer; touch-action: none; }
  .detail-expand { display: grid; }
  .detail.on.full .detail-expand svg { transform: rotate(180deg); }
  .detail-expand svg { transition: transform .3s cubic-bezier(.2, .8, .3, 1); }

  /* 半屏时雷达图缩小，保证停留在上方可见 */
  .card-sky { scroll-margin-top: calc(var(--topbar-h) + 6px); }
  #sky { transition: max-width .32s cubic-bezier(.2, .8, .3, 1); }
  body.sheet-open #sky { max-width: min(520px, calc(100vh - var(--sheet-peek) - var(--topbar-h) - 96px)); }
  @supports (height: 1dvh) {
    body.sheet-open #sky { max-width: min(520px, calc(100dvh - var(--sheet-peek) - var(--topbar-h) - 96px)); }
  }
  body.sheet-open .wrap { padding-bottom: calc(var(--sheet-peek) + 24px); }
  body.sheet-open .to-sky { bottom: calc(var(--sheet-peek) + 12px); }
  body.sheet-full .to-sky { opacity: 0; transform: translateY(16px) scale(.88); pointer-events: none; }
  .tabs { position: sticky; top: 0; z-index: 2; background: var(--surface); }
}

.sheet-mask {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(12, 30, 51, .3); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
@media (min-width: 1060px) { .sheet-mask { display: none; } }

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -240px 0; } to { background-position: 240px 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ripple { from { transform: scale(.5); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -26; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(4, 107, 82, .25); } 50% { box-shadow: 0 0 0 6px rgba(4, 107, 82, 0); } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); color: var(--accent); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.grid > .col-main > .card:not(.detail),
.grid > .col-side > .card {
  animation: cardIn .6s cubic-bezier(.2, .8, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
.bump { display: inline-block; animation: bump .5s ease; }
.shake { animation: shake .32s ease; }
body.is-paused .clock .t { animation: blink 1.2s steps(2) infinite; }

/* 顶栏扫描光与品牌环绕、卡片入场之外的动态全部尊重「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .brand-orbit, .d-hero-ico .orbit-ring, .d-hero-ico .orbit-dot, .next-card::after,
  .obs-mk .r, .sat-mk .p, .trk-future, .to-sky-ico::after, .topbar::after { animation: none !important; }
}

/* 切换主题时的圆形扩散（View Transitions）与颜色过渡 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

/* ==========================================================================
   深色（用户手动切换时才启用；默认是浅色科技风）
   ========================================================================== */
html.dark {
  color-scheme: dark;
  --bg: #0b1523;
  --grid-line: rgba(56, 189, 248, .08);
  --surface: #101d2f;
  --surface-2: #132338;
  --surface-3: #172a43;
  --border: #22354f;
  --border-strong: #2f4864;
  --text: #e6eef8;
  --text-2: #a9bbd0;
  --muted: #7388a2;
  --accent: #3b9cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(59, 156, 255, .16);
  --accent-deep: #8cc4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
html.dark body {
  background-image:
    radial-gradient(900px 480px at 100% -12%, rgba(34, 211, 238, .08), transparent 62%),
    radial-gradient(800px 460px at -6% -4%, rgba(59, 156, 255, .09), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}
html.dark .card-head { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
html.dark .sat-row:hover { background: rgba(148, 163, 184, .06); }
html.dark .sat-row.sel { background: linear-gradient(90deg, var(--accent-soft), transparent 85%); }
html.dark .el-badge.q2 { background: rgba(245, 158, 11, .16); color: #fcd34d; }
html.dark .el-badge.q3 { background: rgba(6, 182, 212, .16); color: #67e8f9; }
html.dark .el-badge.q4 { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
html.dark .vis-pill.yes, html.dark .pass-row.visible, html.dark .tip { background: rgba(16, 185, 129, .1); color: #6ee7b7; border-color: rgba(16, 185, 129, .35); }
html.dark .vis-pill.mid { background: rgba(245, 158, 11, .14); color: #fcd34d; border-color: rgba(245, 158, 11, .35); }
html.dark .facts { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
html.dark .facts-t, html.dark .warn-t { color: #fbbf24; }
html.dark .facts li { color: #fde68a; }
html.dark .next-card { background: linear-gradient(135deg, rgba(59, 156, 255, .14), rgba(34, 211, 238, .1)); border-color: rgba(59, 156, 255, .28); }
html.dark .sk { background: linear-gradient(90deg, var(--surface-3) 0, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 240px 100%; }
html.dark #map, html.dark .leaflet-container { background: #0b1523; }
html.dark .leaflet-control-attribution { background: rgba(11, 21, 35, .8) !important; }
html.dark .leaflet-tooltip { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
html.dark .leaflet-tooltip-top::before { border-top-color: var(--surface); }
html.dark .leaflet-tooltip-bottom::before { border-bottom-color: var(--surface); }
html.dark .leaflet-tooltip-left::before { border-left-color: var(--surface); }
html.dark .leaflet-tooltip-right::before { border-right-color: var(--surface); }
html.dark .obs-mk .c, html.dark .sat-mk .core { border-color: #0b1523; }
html.dark .sky-tip { background: rgba(16, 29, 47, .96); border: 1px solid var(--border-strong); }
html.dark .d-hero-ico { box-shadow: 0 8px 18px -10px var(--c); }
html.dark .to-sky { box-shadow: 0 10px 24px -10px rgba(59, 156, 255, .8); }
html.dark .sheet-mask { background: rgba(0, 0, 0, .5); }
html.dark #map.map-dim .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9); }
