:root {
  color-scheme: dark;
  --page: #071117;
  --panel: #0d1a22;
  --surface: #101f28;
  --line: #23353f;
  --text: #e7f1f3;
  --muted: #9bb0ba;
  --dim: #79919d;
  --cyan: #72efd7;
  --mono: "IBM Plex Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--page);
  color: var(--text);
  font-size: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
h1, h2, p, dl, dd { margin: 0; }

.topbar { border-bottom: 1px solid #1b2b34; background: #09151c; }
.topbar-inner, .shell { max-width: 1600px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 44px); }
.topbar-inner { height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 710; letter-spacing: -.045em; }
.brand-symbol { position: relative; display: inline-block; width: 25px; height: 25px; border: 1px solid #38847d; border-radius: 7px; background: #133137; }
.brand-symbol::before { content: ""; position: absolute; inset: 7px 3px; border: 1px solid var(--cyan); border-radius: 100%; transform: rotate(-40deg); }
.brand-symbol::after { content: ""; position: absolute; width: 5px; height: 5px; top: 9px; left: 9px; border-radius: 50%; background: var(--cyan); }
.product { border-left: 1px solid var(--line); padding-left: 18px; color: var(--muted); font-size: 13px; }
.engine { margin-left: auto; color: var(--muted); font: 12px var(--mono); letter-spacing: .015em; }
.topbar a { text-decoration: none; }

.shell { padding-top: 24px; padding-bottom: 24px; }
.loading { padding: 28px 0; color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
h1 { font-size: 29px; font-weight: 680; line-height: 1.2; letter-spacing: -.04em; }
.page-heading p { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--muted); font-size: 12px; }
#scene-name { font-family: var(--mono); font-size: 12px; color: #b5cbd2; }
.divider-dot { display: inline-block; flex: 0 0 3px; height: 3px; border-radius: 50%; background: #5c7480; }
.clock-card { display: grid; gap: 5px; padding: 9px 13px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0b1820; }
.clock-label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; }
.clock-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; margin-right: 2px; box-shadow: 0 0 10px #72efd755; }
.clock-value { color: var(--text); font: 15px var(--mono); font-variant-numeric: tabular-nums; }
.utc-mark { font: 10px var(--mono); color: var(--dim); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.globe-panel { position: relative; min-height: clamp(375px, 49vh, 550px); isolation: isolate; background: #040d14; }
#globe { position: absolute; inset: 0; }
.globe-heading { position: absolute; inset: 0 0 auto; z-index: 1; padding: 15px 16px 30px; align-items: flex-start; background: linear-gradient(#061018ec, #06101800); pointer-events: none; }
.globe-actions { display: flex; gap: 5px; align-items: center; pointer-events: auto; }
.globe-actions button, .transport-button { padding: 5px 9px; border: 1px solid #314952; border-radius: 5px; background: #0b1822df; font-size: 11px; color: var(--muted); }
.globe-actions button[aria-pressed="true"] { color: #c8e2e3; border-color: #41676e; background: #15313be0; }
.globe-actions button:hover, .transport-button:hover { color: white; border-color: #5c9097; }
.globe-status { position: absolute; top: 54px; left: 16px; z-index: 2; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #0b1820ee; color: var(--muted); font-size: 11px; pointer-events: none; }
.map-legend { position: absolute; right: 14px; bottom: 26px; z-index: 1; display: flex; gap: 13px; align-items: center; border: 1px solid #2d4951; border-radius: 5px; padding: 6px 9px; background: #091821db; color: #c4d7dc; font-size: 11px; pointer-events: none; }
.map-legend span, .legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.map-satellite { background: #c0dbff; }
.map-target { background: #57e6cc; }

.task-panel { padding: 16px; }
.verified { padding: 3px 6px; border-radius: 4px; background: #163732; color: #a2edda; font-size: 10px; line-height: 1.3; }
.task-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 13px; }
.task-link, .fact-link { border: 0; padding: 0; background: transparent; color: var(--text); }
.task-link { font: 650 37px/1 var(--mono); letter-spacing: -.065em; }
.task-link:hover, .fact-link:hover { color: var(--cyan); }
.phase { padding: 4px 7px; border: 1px solid #3b515e; border-radius: 5px; background: #182c38; color: #b9ced7; font-size: 11px; white-space: nowrap; }
[data-phase="active"] .phase { border-color: #347167; background: #103b36; color: #83f4da; }
[data-phase="complete"] .phase { border-color: #3c5c76; background: #1b3144; color: #b5d4ed; }
.observation-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border: 1px solid #305154; border-radius: 7px; background: #11282e; }
.observation-summary div { display: grid; gap: 5px; }
.observation-summary div > span, .window-summary div > span { font-size: 11px; color: var(--muted); }
.observation-summary strong { color: #c4f8ed; font: 13px var(--mono); white-space: nowrap; }
.duration { color: var(--cyan); font: 12px var(--mono); white-space: nowrap; }
.observation-summary.observation-progress { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.observation-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.observation-heading strong { font-weight: 650; }
.observation-progress progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #111d20;
  color: var(--cyan);
}
.observation-progress progress::-webkit-progress-bar { background: #111d20; }
.observation-progress progress::-webkit-progress-value { background: var(--cyan); }
.observation-progress progress::-moz-progress-bar { background: var(--cyan); }
.observation-progress .observation-times { display: flex; justify-content: space-between; gap: 6px; }
.observation-times section { display: grid; gap: 3px; }
.observation-times section:last-child { text-align: right; }
.observation-times span { color: var(--muted); font-size: 10px; }
.observation-times time { color: var(--text); font: 11px var(--mono); }
#observation-readout { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
[data-phase="active"] #observation-readout { color: var(--cyan); }
.observation-progress .observation-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.observation-progress .observation-actions .observation-play { color: #d9f7e8; background: #213d34; border-color: #4b7566; }
.observation-actions button { min-height: 30px; }
.map-observation {
  position: absolute;
  left: 14px;
  bottom: 26px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #33494f;
  border-radius: 5px;
  background: #091821eb;
  color: #c4d7dc;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.map-observation::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.map-observation[data-phase="active"] { border-color: #508a77; color: #adf3dd; }
@media (max-width: 520px) {
  .map-observation { bottom: 56px; }
}
.facts { margin-top: 10px; }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #213642; }
.facts dt { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.facts dd, .facts .fact-link { min-width: 0; font-family: var(--mono); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.fact-link[aria-pressed="true"] { color: var(--cyan); }
.window-summary { padding-top: 13px; }
.window-summary div { display: flex; align-items: center; gap: 9px; justify-content: space-between; margin-bottom: 6px; }
.window-summary strong, .window-summary time { color: #c6d8df; font: 12px var(--mono); }
.validation-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #213642; color: var(--muted); font-size: 11px; }
.validation-summary strong { font: 12px var(--mono); color: #b8eddf; }

.timeline-panel { margin-top: 14px; padding: 13px 15px 12px; }
.timeline-heading { margin-bottom: 12px; }
.timeline-options, .legend, .zoom { display: flex; align-items: center; gap: 12px; }
.legend { color: var(--muted); font-size: 11px; }
.legend i { display: inline-block; width: 12px; height: 7px; border-radius: 2px; }
.legend-window { border: 1px dashed #73a4b1; background: #325868; }
.legend-event { background: #73e8d2; }
.zoom { gap: 2px; background: #09161e; border-radius: 5px; padding: 2px; border: 1px solid var(--line); }
.zoom button { border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 11px; padding: 4px 8px; white-space: nowrap; }
.zoom button[aria-pressed="true"] { background: #233d48; color: #ddf1f3; }
.zoom button:hover { color: var(--text); }
.timeline-grid { display: grid; grid-template-columns: 186px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 7px; background: #0a1720; }
.row-label { display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); padding: 7px 10px; }
.row-label span { font-size: 10px; color: var(--muted); }
.row-label strong { font: 11px var(--mono); color: #cee0e4; overflow-wrap: anywhere; }
.chart { min-width: 0; padding: 0 12px 0; }
.ticks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 22px; border-bottom: 1px solid #213744; color: var(--muted); font: 10px var(--mono); }
.ticks span:nth-child(2) { text-align: center; }
.ticks span:nth-child(3) { text-align: right; }
.track { position: relative; height: 37px; cursor: crosshair; background: linear-gradient(to right, transparent calc(50% - .5px), #24404b calc(50% - .5px), #24404b calc(50% + .5px), transparent calc(50% + .5px)); }
.window-block, .event-block, .event-hit, .cursor { position: absolute; left: var(--left); width: var(--width); }
.window-block { top: 10px; height: 18px; border: 1px dashed #6295a3; border-radius: 4px; background: #2850638c; pointer-events: none; }
.event-block { top: 11px; height: 16px; border-radius: 3px; background: #69d9c4; pointer-events: none; }
[data-phase="active"] .event-block { background: #8afce2; box-shadow: 0 0 12px #6afbe779; }
.event-hit { min-width: 24px; height: 25px; top: 6px; transform: translateX(-50%); border: 0; border-radius: 3px; background: transparent; }
.event-hit:focus-visible { outline-offset: 0; }
.cursor { z-index: 1; top: 0; bottom: 0; width: 1px; background: #e6fdff; box-shadow: 0 0 8px #93e0eb99; pointer-events: none; }
.cursor::before { content: ""; position: absolute; top: 0; left: -3px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #e6fdff; }
.transport { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.play { display: inline-flex; align-items: center; gap: 7px; justify-content: center; min-width: 73px; padding: 6px 11px; border: 0; border-radius: 5px; background: var(--cyan); color: #082525; font-size: 12px; font-weight: 750; white-space: nowrap; }
.play:hover { background: #a4ffe9; }
.play i { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid currentColor; }
.play[aria-label="暂停"] i { width: 7px; height: 8px; border: solid currentColor; border-width: 0 2px; }
.transport-button { white-space: nowrap; line-height: 1.35; }
#seek { flex: 1; min-width: 48px; margin: 0 4px; accent-color: var(--cyan); cursor: ew-resize; }
.speed { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.speed select { border: 1px solid var(--line); border-radius: 5px; background: #101f29; padding: 4px; color: var(--text); font-size: 11px; }

.source-footer { margin-top: 10px; display: flex; gap: 7px 15px; flex-wrap: wrap; justify-content: space-between; color: var(--dim); font-size: 11px; }
.source-footer summary { color: var(--muted); cursor: pointer; }
.source-footer dl { width: min(720px, 100%); margin-top: 8px; color: var(--muted); }
.source-footer dl div { display: flex; gap: 8px; margin-top: 4px; }
.source-footer dt { min-width: 56px; }
.source-footer dd { font-family: var(--mono); word-break: break-all; }

@media (max-width: 870px) {
  .main-grid { grid-template-columns: minmax(0, 1fr) 286px; gap: 10px; }
  .task-panel { padding: 14px; }
  .globe-panel { min-height: 382px; }
}

@media (max-width: 700px) {
  .topbar-inner { height: 52px; gap: 10px; }
  .product { padding-left: 10px; font-size: 11px; }
  .engine { font-size: 10px; }
  .shell { padding-top: 16px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
  h1 { font-size: 24px; }
  .main-grid { grid-template-columns: 1fr; }
  .globe-panel { min-height: clamp(325px, 52vh, 410px); }
  .timeline-panel { padding: 10px; margin-top: 10px; }
  .timeline-heading, .timeline-options { flex-wrap: wrap; }
  .timeline-options { gap: 7px; }
  .legend { gap: 7px; }
  .timeline-grid { grid-template-columns: 1fr; }
  .row-label { display: flex; align-items: center; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chart { padding-inline: 8px; }
  .transport { flex-wrap: wrap; }
  #seek { order: 1; flex: 0 0 calc(100% - 8px); margin-block: 5px 1px; }
  .speed { margin-left: auto; }
}
