:root {
  color-scheme: dark;
  --ink: #eefaff;
  --muted: #8195a5;
  --faint: #526774;
  --cyan: #70e8ff;
  --mint: #84f0c0;
  --violet: #b596ff;
  --amber: #ffc66d;
  --danger: #ff6f64;
  --line: rgba(143, 203, 220, 0.16);
  --panel: rgba(4, 9, 15, 0.965);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; background: #000; }

body {
  overflow: hidden;
  color: var(--ink);
  background: #000;
  font-family: var(--sans);
  font-size: 16px;
}

button, input, select { font: inherit; }
button, input[type="range"] { cursor: pointer; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.app {
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  grid-template-rows: 74px minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 50% 40%, rgba(25, 58, 79, 0.18), transparent 38%),
    #000;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  height: 74px;
  padding: 0 22px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 5, 9, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(112, 232, 255, 0.44);
  border-radius: 50%;
  place-items: center;
}
.brand-mark::before, .brand-mark::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 198, 109, 0.58);
  border-radius: 50%;
}
.brand-mark::before { width: 46px; height: 16px; transform: rotate(-22deg); }
.brand-mark::after { width: 14px; height: 46px; transform: rotate(38deg); }
.brand-mark i { width: 8px; height: 8px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #ff7968, 0 0 16px #ff533f; }
.brand p { margin: 0; font-size: 0.96rem; font-weight: 780; letter-spacing: 0.16em; line-height: 1; }
.brand div > span, .mission-title span, .link-status, .panel-heading, .section-kicker, .field-label > span, .slider-field > span b, .section-rule, .stage-label, .stage-tools, .legend, .camera-hint, .field-disclaimer, .event-feed > span {
  font-family: var(--mono);
  letter-spacing: 0.09em;
}
.brand div > span { display: block; margin-top: 6px; color: #708496; font-size: 0.68rem; }

.mission-title { display: grid; justify-items: center; gap: 4px; }
.mission-title span { color: #617789; font-size: 0.67rem; }
.mission-title strong { color: #dffaff; font-family: var(--mono); font-size: 0.88rem; font-weight: 620; letter-spacing: 0.13em; }

.link-status { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: #718695; font-size: 0.67rem; }
.link-status strong { color: #a6eff9; font-weight: 650; }
.link-status i { width: 1px; height: 13px; margin: 0 3px; background: rgba(255, 255, 255, 0.18); }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: #60717b; box-shadow: 0 0 0 3px rgba(96, 113, 123, 0.12); }
.status-light.live { background: #72f0b1; box-shadow: 0 0 12px rgba(114, 240, 177, 0.8); }
.status-light.paused { background: var(--amber); box-shadow: 0 0 11px rgba(255, 198, 109, 0.7); }

.lab-grid {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 310px minmax(320px, 1fr) 366px;
}

.panel {
  position: relative;
  z-index: 4;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 24px;
  background: var(--panel);
  scrollbar-color: rgba(112, 232, 255, 0.28) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.18); }
.panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(112, 232, 255, 0.28); background-clip: padding-box; }
.panel::-webkit-scrollbar-thumb:hover { background: rgba(112, 232, 255, 0.48); background-clip: padding-box; }
.controls-panel { border-right: 1px solid var(--line); }
.telemetry-panel { border-left: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; color: #677c8b; font-size: 0.72rem; font-weight: 680; }
.panel-heading b { display: grid; width: 25px; height: 25px; color: #94eaf4; border: 1px solid rgba(112, 232, 255, 0.24); border-radius: 6px; place-items: center; font-size: 0.65rem; }

.section-kicker { display: flex; justify-content: space-between; margin-bottom: 9px; color: #6b8291; font-size: 0.66rem; }
.section-kicker b { color: #9debf5; font-weight: 600; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.catalogue-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 53px;
  padding: 8px 9px;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  color: #8ba0ac;
  border: 1px solid rgba(124, 190, 207, 0.15);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(15, 31, 41, 0.78), rgba(5, 11, 17, 0.82));
  text-align: left;
}
.catalogue-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; content: ""; background: var(--target-colour); opacity: 0.18; }
.catalogue-card strong { overflow: hidden; color: #dceff3; font-family: var(--mono); font-size: 0.68rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.catalogue-card span { color: #637a87; font-family: var(--mono); font-size: 0.58rem; }
.catalogue-card.catalogue-scenario { grid-column: 1 / -1; }
.catalogue-card .catalogue-mass-status { color: #ffbe9d; font-size: 0.75rem; line-height: 1.4; }
.catalogue-card:hover { color: #eafcff; border-color: rgba(112, 232, 255, 0.34); }
.catalogue-card.active { border-color: color-mix(in srgb, var(--target-colour) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--target-colour) 13%, #0b1820), rgba(5, 11, 17, 0.86)); box-shadow: inset 0 0 22px color-mix(in srgb, var(--target-colour) 7%, transparent); }
.catalogue-card.active::before { opacity: 1; box-shadow: 0 0 14px var(--target-colour); }

.target-facts { display: grid; margin-top: 8px; padding: 9px 10px; grid-template-columns: 1fr 1fr; gap: 7px; border: 1px solid rgba(120, 184, 202, 0.11); border-radius: 7px; background: rgba(11, 25, 33, 0.42); }
.target-facts div { min-width: 0; }
.target-facts span { display: block; color: #5c7381; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em; }
.target-facts strong { display: block; margin-top: 4px; overflow: hidden; color: #b9e8ef; font-family: var(--mono); font-size: 0.64rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.target-facts p { grid-column: 1 / -1; margin: 0; color: #718691; font-size: 0.7rem; line-height: 1.4; }

.field-label { display: grid; gap: 8px; margin: 13px 0 15px; }
.field-label > span { color: #698090; font-size: 0.69rem; font-weight: 680; }
.field-label input {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  color: #dbf7fc;
  border: 1px solid rgba(124, 190, 207, 0.2);
  border-radius: 7px;
  outline: 0;
  background: #08131a;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.field-label input:hover { border-color: rgba(112, 232, 255, 0.38); }

.slider-field { display: block; margin: 13px 0 15px; }
.slider-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slider-field > span b { color: #687f8e; font-size: 0.67rem; font-weight: 680; }
.slider-field output { color: #d1f7fc; font-family: var(--mono); font-size: 0.72rem; }
.slider-field input { width: 100%; height: 4px; margin: 11px 0 1px; accent-color: var(--cyan); }
.slider-field input:disabled { cursor: not-allowed; filter: saturate(0); opacity: 0.38; }
.compact-slider { margin-top: 18px; }

.segmented { display: grid; padding: 4px; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid rgba(132, 188, 204, 0.14); border-radius: 8px; background: rgba(3, 10, 15, 0.78); }
.segmented button { min-height: 33px; padding: 0 7px; color: #708691; border: 1px solid transparent; border-radius: 5px; background: transparent; font-family: var(--mono); font-size: 0.61rem; font-weight: 650; letter-spacing: 0.04em; }
.segmented button:hover, .segmented button.active { color: #c8f9ff; border-color: rgba(112, 232, 255, 0.28); background: linear-gradient(120deg, rgba(30, 69, 81, 0.58), rgba(25, 36, 62, 0.46)); }
.object-toggle { grid-template-columns: 0.8fr 1.2fr; }
.object-toggle button:last-child.active { color: #f2feff; border-color: rgba(205, 250, 255, 0.52); background: linear-gradient(120deg, rgba(105, 203, 220, 0.28), rgba(40, 67, 101, 0.54)); box-shadow: inset 0 0 18px rgba(190, 248, 255, 0.07); }
.object-mode-note { min-height: 46px; margin-top: 8px; padding: 9px 10px; border-left: 2px solid rgba(112, 232, 255, 0.28); background: rgba(10, 29, 37, 0.32); }

.derived-strip { display: grid; margin: 16px 0 20px; grid-template-columns: 1fr 1fr; border: 1px solid rgba(119, 183, 202, 0.14); border-radius: 8px; background: rgba(20, 50, 61, 0.2); }
.derived-strip div { min-width: 0; padding: 10px; }
.derived-strip div + div { border-left: 1px solid rgba(119, 183, 202, 0.14); }
.derived-strip span { display: block; color: #607687; font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.07em; }
.derived-strip strong { display: block; margin-top: 6px; overflow: hidden; color: #bceff7; font-family: var(--mono); font-size: 0.65rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }

.section-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 13px; padding-top: 14px; color: #617785; border-top: 1px solid rgba(132, 189, 207, 0.15); font-size: 0.66rem; }
.section-rule b { color: var(--amber); font-weight: 620; }
.control-note { margin: -3px 0 0; color: #667b89; font-size: 0.72rem; line-height: 1.45; }

.custom-card, .model-card, .sources-card { margin-top: 14px; border: 1px solid rgba(112, 232, 255, 0.14); border-radius: 8px; background: rgba(21, 47, 57, 0.14); }
.custom-card summary, .model-card summary, .sources-card summary { padding: 10px 11px; color: #83dce7; cursor: pointer; font-family: var(--mono); font-size: 0.65rem; font-weight: 650; letter-spacing: 0.08em; }
.custom-card[open] { padding-bottom: 1px; }
.custom-card > label { margin-right: 11px; margin-left: 11px; }
.model-card > div, .model-card > p, .sources-card > p, .sources-card > ul { margin-right: 11px; margin-left: 11px; }
.equation { overflow-x: auto; padding: 9px; color: #ffd28d; border: 1px solid rgba(255, 198, 109, 0.14); border-radius: 6px; background: rgba(0, 0, 0, 0.32); font-family: "Times New Roman", serif; font-size: 0.72rem; white-space: nowrap; }
.equation-secondary { margin-top: 6px; color: #a9edf7; }
.model-card p, .sources-card p, .sources-card li { color: #7f929e; font-size: 0.7rem; line-height: 1.5; }
.model-card p, .sources-card p { margin-top: 9px; margin-bottom: 11px; }
.sources-card ul { margin-top: 0; margin-bottom: 12px; padding-left: 18px; }
.sources-card a { color: #91dce7; text-decoration-color: rgba(145, 220, 231, 0.32); text-underline-offset: 2px; }

.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #000; isolation: isolate; }
.stage::before { position: absolute; inset: 0; z-index: 0; content: ""; background: radial-gradient(circle at 50% 50%, #07131c, #010307 52%, #000 78%); }
.stage::after { position: absolute; inset: 0; z-index: 2; pointer-events: none; content: ""; background: linear-gradient(90deg, rgba(0,0,0,0.33), transparent 15%, transparent 85%, rgba(0,0,0,0.33)), linear-gradient(180deg, rgba(0,0,0,0.28), transparent 19%, transparent 78%, rgba(0,0,0,0.58)); }
.stage.white-hole-mode::before { background: radial-gradient(circle at 50% 50%, rgba(28, 91, 110, 0.2), #020912 31%, #000 76%); }
#space-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#space-canvas.dragging { cursor: grabbing; }
.stage-label { position: absolute; z-index: 3; top: 17px; display: grid; gap: 4px; color: #506674; font-size: 0.59rem; pointer-events: none; }
.stage-label strong { color: #98b1be; font-size: 0.67rem; font-weight: 580; }
.top-left { left: 18px; }
.stage-tools { position: absolute; z-index: 4; top: 14px; right: 15px; display: flex; gap: 5px; }
.stage-tools button { min-height: 30px; padding: 0 8px; color: #6f8590; border: 1px solid rgba(130, 190, 206, 0.15); border-radius: 6px; background: rgba(3, 10, 15, 0.76); font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.05em; backdrop-filter: blur(10px); }
.stage-tools button:hover, .stage-tools button.active { color: #bef7ff; border-color: rgba(112, 232, 255, 0.31); background: rgba(24, 57, 68, 0.66); }
.stage-tools #focus-button.active { color: #fff; border-color: rgba(205, 250, 255, 0.55); box-shadow: 0 0 15px rgba(112, 232, 255, 0.12); }
.camera-hint { position: absolute; z-index: 3; top: 52px; right: 18px; color: #415762; font-size: 0.54rem; pointer-events: none; }
.zoom-readout { position: absolute; z-index: 4; top: 52px; left: 18px; padding: 4px 6px; color: #71909c; border: 1px solid rgba(132, 188, 204, 0.12); border-radius: 5px; background: rgba(3, 10, 15, 0.68); font: 0.56rem var(--mono); letter-spacing: 0.06em; pointer-events: none; }
.mission-clocks {
  position: absolute;
  z-index: 4;
  top: 57px;
  left: 50%;
  display: grid;
  width: min(430px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 11px;
  grid-template-columns: 1fr 0.75fr 1fr;
  align-items: center;
  border: 1px solid rgba(121, 209, 230, 0.21);
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(4, 14, 21, 0.88), rgba(11, 13, 27, 0.86));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 0 25px rgba(112, 232, 255, 0.025);
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(13px);
}
.mission-clocks > div { min-width: 0; text-align: center; }
.mission-clocks > div:first-child { text-align: left; }
.mission-clocks > div:last-child { text-align: right; }
.mission-clocks span { display: block; overflow: hidden; color: #728995; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.05em; text-overflow: ellipsis; white-space: nowrap; }
.mission-clocks strong { display: block; margin-top: 4px; overflow: hidden; color: #d9f8fc; font-family: var(--mono); font-size: 0.83rem; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.mission-clocks > div:first-child strong { color: var(--amber); }
.mission-clocks > div:last-child strong { color: var(--cyan); }
.mission-clocks .clock-separation { padding: 0 8px; border-right: 1px solid rgba(133, 194, 209, 0.12); border-left: 1px solid rgba(133, 194, 209, 0.12); }
.mission-clocks .clock-separation strong { color: #b9a2f8; font-size: 0.72rem; }
.legend { position: absolute; z-index: 3; bottom: 55px; left: 50%; display: flex; align-items: center; gap: 13px; padding: 8px 10px; color: #718591; border: 1px solid rgba(136, 190, 206, 0.13); border-radius: 7px; background: rgba(2, 7, 11, 0.76); font-size: 0.57rem; transform: translateX(-50%); white-space: nowrap; backdrop-filter: blur(10px); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; }
.horizon-key { background: var(--danger); box-shadow: 0 0 7px rgba(255, 111, 100, 0.55); }
.white-hole-mode .horizon-key { background: #dcfbff; box-shadow: 0 0 9px rgba(163, 243, 255, 0.9); }
.legend b { font-weight: 500; }
.ergo-key { border-top: 1px dashed var(--violet); }
.isco-key { background: linear-gradient(90deg, var(--cyan) 0 45%, transparent 45% 55%, var(--amber) 55%); }
.drag-key { background: var(--violet); box-shadow: 0 0 7px rgba(181, 150, 255, 0.5); }
.field-disclaimer { position: absolute; z-index: 3; right: 15px; bottom: 13px; color: rgba(101, 128, 140, 0.64); font-size: 0.49rem; pointer-events: none; }
.stage-warning { position: absolute; z-index: 3; bottom: 31px; left: 50%; color: #758b98; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.stage-warning.alert { color: #ff978b; }

.rider-overlay { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.rider-overlay[hidden], .horizon-callout[hidden] { display: none !important; }
.rider-camera-bar {
  position: absolute;
  top: 128px;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(128, 200, 218, 0.16);
  border-radius: 8px;
  background: rgba(2, 8, 13, 0.76);
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: blur(10px);
}
.rider-camera-bar button {
  min-height: 29px;
  padding: 0 8px;
  color: #718894;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.rider-camera-bar button:first-child, .rider-camera-bar button:last-child { min-width: 29px; padding: 0; font-size: 1.05rem; }
.rider-camera-bar button:hover, .rider-camera-bar button.active { color: #d4fbff; border-color: rgba(112, 232, 255, 0.28); background: rgba(25, 58, 72, 0.68); }
.rider-reticle { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; border: 1px solid rgba(131, 226, 240, 0.25); border-radius: 50%; transform: translate(-50%, -50%); }
.rider-reticle::before, .rider-reticle::after { position: absolute; content: ""; background: rgba(134, 232, 247, 0.38); }
.rider-reticle::before { top: 50%; left: -8px; width: 58px; height: 1px; }
.rider-reticle::after { top: -8px; left: 50%; width: 1px; height: 58px; }
.rider-reticle i { position: absolute; inset: 15px; border: 1px solid rgba(255, 198, 109, 0.42); border-radius: 50%; }
.rider-reticle span { position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #dffaff; box-shadow: 0 0 9px var(--cyan); transform: translate(-50%, -50%); }
.rider-hud {
  position: absolute;
  top: 176px;
  width: 196px;
  padding: 10px;
  border: 1px solid rgba(120, 193, 212, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(3, 12, 18, 0.8), rgba(8, 10, 22, 0.68));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(9px);
}
.rider-hud-left { left: 15px; }
.rider-hud-right { right: 15px; }
.rider-hud header { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(126, 195, 212, 0.13); }
.rider-hud header span, .rider-hud dt, .signal-console span { color: #617986; font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.05em; }
.rider-hud header strong { overflow: hidden; color: var(--cyan); font-family: var(--mono); font-size: 0.67rem; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.rider-hud dl { display: grid; margin: 8px 0 0; gap: 8px; }
.rider-hud dl div { min-width: 0; }
.rider-hud dt { margin: 0; }
.rider-hud dd { margin: 3px 0 0; overflow: hidden; color: #d7edf1; font-family: var(--mono); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.rider-hud dd.danger { color: #ff887b; text-shadow: 0 0 10px rgba(255, 90, 73, 0.35); }
.signal-console {
  position: absolute;
  bottom: 58px;
  left: 50%;
  width: min(510px, calc(100% - 450px));
  min-width: 310px;
  padding: 9px 11px 8px;
  border: 1px solid rgba(123, 195, 213, 0.16);
  border-radius: 8px;
  background: rgba(2, 9, 15, 0.78);
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
}
.signal-console-head { display: grid; grid-template-columns: 0.8fr 1fr 1.25fr; gap: 9px; }
.signal-console-head > div { min-width: 0; }
.signal-console-head strong { display: block; margin-top: 3px; overflow: hidden; color: #bcecf3; font-family: var(--mono); font-size: 0.68rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.signal-history { display: flex; height: 22px; margin-top: 8px; align-items: flex-end; gap: 2px; border-bottom: 1px solid rgba(111, 177, 193, 0.18); }
.signal-history i { min-width: 2px; flex: 1; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(83, 138, 157, 0.18)); box-shadow: 0 0 5px rgba(112, 232, 255, 0.16); }
.signal-history i.lost { min-height: 1px !important; background: rgba(255, 100, 84, 0.45); }
.horizon-callout { position: absolute; top: 50%; left: 50%; display: grid; width: min(450px, calc(100% - 40px)); padding: 14px 18px; gap: 5px; border: 1px solid rgba(255, 102, 85, 0.46); border-radius: 9px; background: rgba(29, 5, 7, 0.76); box-shadow: 0 0 45px rgba(255, 65, 48, 0.17); text-align: center; transform: translate(-50%, -50%); backdrop-filter: blur(8px); }
.horizon-callout span { color: #ff9b8f; font-family: var(--mono); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; }
.horizon-callout strong { color: #ffd3cc; font-family: var(--mono); font-size: 0.68rem; font-weight: 560; line-height: 1.45; }
.white-hole-mode .horizon-callout { border-color: rgba(190, 248, 255, 0.58); background: rgba(5, 27, 36, 0.82); box-shadow: 0 0 55px rgba(130, 238, 255, 0.2); }
.white-hole-mode .horizon-callout span { color: #e3fcff; }
.white-hole-mode .horizon-callout strong { color: #bcecf4; }
.photon-engine-panel {
  position: absolute;
  top: 174px;
  left: 50%;
  width: min(470px, calc(100% - 450px));
  min-width: 260px;
  padding: 9px 11px;
  border: 1px solid rgba(181, 150, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(130deg, rgba(6, 9, 19, 0.8), rgba(16, 9, 29, 0.7));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 0 24px rgba(181, 150, 255, 0.025);
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
}
.photon-engine-panel header, .photon-render-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photon-engine-panel header span, .photon-render-stats span, .photon-inspector span { color: #637783; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; }
.photon-engine-panel header strong { color: #d7c9ff; font-family: var(--mono); font-size: 0.62rem; font-weight: 660; letter-spacing: 0.05em; }
.photon-progress-track { height: 2px; margin: 7px 0; overflow: hidden; background: rgba(159, 128, 225, 0.12); }
.photon-progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #6ddcf1, #b596ff, #ffc66d); box-shadow: 0 0 10px rgba(181, 150, 255, 0.48); transition: width 120ms linear; }
.photon-render-stats strong { overflow: hidden; color: #91a8b3; font-family: var(--mono); font-size: 0.59rem; font-weight: 530; text-overflow: ellipsis; white-space: nowrap; }
.photon-inspector { display: grid; margin-top: 8px; padding-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; border-top: 1px solid rgba(136, 181, 198, 0.12); }
.photon-inspector div { min-width: 0; }
.photon-inspector span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photon-inspector strong { display: block; margin-top: 3px; overflow: hidden; color: #d4e8ed; font-family: var(--mono); font-size: 0.62rem; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.photon-inspector div:nth-child(2) strong { color: #ffc982; }
.photon-inspector div:nth-child(3) strong { color: #bfaaff; }
.stage.rider-mode::after { background: radial-gradient(circle at center, transparent 46%, rgba(0, 0, 0, 0.36) 100%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 22%, transparent 75%, rgba(0,0,0,.52)); }
.stage.rider-mode .legend { display: none; }
.stage.rider-mode #field-button { cursor: not-allowed; opacity: 0.3; pointer-events: none; }
.stage.rider-mode #focus-button { display: none; }
.stage.rider-mode .camera-hint { color: #5b707a; }
.stage.rider-mode .stage-warning { bottom: 15px; }
.stage.rider-mode .field-disclaimer { right: auto; bottom: 15px; left: 15px; }
.storyboard-player { position: absolute; z-index: 9; right: 18px; bottom: 56px; display: grid; width: min(420px, calc(100% - 36px)); padding: 14px 15px; gap: 6px; border: 1px solid rgba(255, 198, 109, 0.34); border-radius: 9px; background: linear-gradient(120deg, rgba(35, 22, 7, 0.91), rgba(20, 10, 31, 0.92)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); }
.storyboard-player[hidden] { display: none; }
.storyboard-player span { color: #ba965b; font: 0.75rem var(--mono); letter-spacing: 0.08em; }
.storyboard-player strong { color: #fff0c9; font-size: 1rem; font-weight: 620; }
.storyboard-player p { margin: 0; color: #b9abbc; font-size: 0.8rem; line-height: 1.45; }
.storyboard-player button { justify-self: start; min-height: 31px; margin-top: 3px; padding: 0 9px; color: #f5d89a; border: 1px solid rgba(255, 198, 109, 0.25); border-radius: 6px; background: rgba(65, 39, 10, 0.58); font: 650 0.75rem var(--mono); }

.selected-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.selected-title > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.selected-title > div > span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 13px currentColor; }
.selected-title h1 { margin: 0; overflow: hidden; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 610; letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.selected-title > strong { padding: 5px 7px; color: #a8eff8; border: 1px solid rgba(112, 232, 255, 0.18); border-radius: 5px; background: rgba(112, 232, 255, 0.07); font-family: var(--mono); font-size: 0.59rem; font-weight: 650; letter-spacing: 0.05em; }
.selected-title > strong.danger { color: #ff9e94; border-color: rgba(255, 111, 100, 0.28); background: rgba(255, 111, 100, 0.08); }
.probe-purpose { min-height: 36px; margin: 9px 0 13px; color: #879aa5; font-size: 0.75rem; line-height: 1.45; }

.primary-reading { padding: 12px 0 13px; border-top: 1px solid rgba(137, 194, 211, 0.14); border-bottom: 1px solid rgba(137, 194, 211, 0.14); }
.primary-reading > span, .telemetry-grid dt { display: block; color: #607786; font-family: var(--mono); font-size: 0.6rem; font-weight: 670; letter-spacing: 0.08em; }
.primary-reading strong { display: block; margin-top: 5px; color: #f1fcff; font-family: var(--mono); font-size: 1.28rem; font-weight: 540; }
.primary-reading small { color: #8ba2ad; font-size: 0.7rem; }
.primary-reading em { display: block; margin-top: 5px; color: var(--cyan); font-family: var(--mono); font-size: 0.66rem; font-style: normal; }

.telemetry-grid { display: grid; margin: 14px 0 0; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.telemetry-grid div { min-width: 0; }
.telemetry-grid dd { margin: 5px 0 0; overflow: hidden; color: #d7e8ed; font-family: var(--mono); font-size: 0.69rem; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }
.array-rule { margin-bottom: 10px; }

.probe-list { display: grid; gap: 4px; }
.probe-row {
  display: grid;
  width: 100%;
  min-height: 35px;
  padding: 0 8px;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #8497a3;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}
.probe-row:hover { color: #e6f9fc; background: rgba(22, 45, 55, 0.48); }
.probe-row.active { color: #f2fcff; border-color: rgba(112, 232, 255, 0.18); background: linear-gradient(90deg, rgba(24, 62, 74, 0.5), rgba(8, 17, 23, 0.48)); box-shadow: inset 2px 0 var(--probe-colour); }
.probe-row > i { width: 7px; height: 7px; border-radius: 50%; background: var(--probe-colour); box-shadow: 0 0 10px var(--probe-colour); }
.probe-row > span { font-family: var(--mono); font-size: 0.67rem; }
.probe-row > em { color: #647b88; font-family: var(--mono); font-size: 0.62rem; font-style: normal; }
.probe-row.lost { opacity: 0.58; }

.command-deck {
  position: relative;
  z-index: 8;
  display: grid;
  min-width: 0;
  padding: 12px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 35px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 11, 0.97);
  box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.5);
}
.run-controls, .observer-control, .recorder, .speed-control { display: flex; align-items: center; gap: 6px; }
.run-controls { grid-column: 1 / -1; min-width: 0; flex-wrap: wrap; }
.observer-control { justify-self: start; }
.command-deck { max-height: 42dvh; overflow: auto; }
.deploy-button, .ride-button, .director-button, .square-button, .speed-control button, .observer-control button, .recorder button, .replay-control button {
  min-height: 35px;
  color: #8fa5b0;
  border: 1px solid rgba(132, 188, 204, 0.18);
  border-radius: 7px;
  background: rgba(10, 21, 28, 0.78);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 660;
  letter-spacing: 0.05em;
}
.deploy-button { min-height: 42px; padding: 0 14px; color: #001116; border: 0; background: linear-gradient(120deg, #70e8ff, #9df4d0); box-shadow: 0 0 24px rgba(112, 232, 255, 0.16); }
.deploy-button span { margin-right: 5px; }
.deploy-button.live { color: #ffe9cf; border: 1px solid rgba(255, 198, 109, 0.35); background: rgba(90, 53, 27, 0.48); box-shadow: none; }
.ride-button { min-height: 42px; padding: 0 12px; color: #dbcfff; border-color: rgba(181, 150, 255, 0.34); background: linear-gradient(120deg, rgba(58, 39, 92, 0.72), rgba(19, 50, 67, 0.72)); }
.ride-button:hover, .ride-button.active { color: #fff; border-color: rgba(181, 150, 255, 0.66); box-shadow: 0 0 18px rgba(166, 125, 255, 0.15); }
.director-button { min-height: 42px; padding: 0 12px; color: #ffe0a4; border-color: rgba(255, 198, 109, 0.32); background: linear-gradient(120deg, rgba(78, 50, 17, 0.7), rgba(52, 31, 72, 0.72)); }
.director-button:hover { color: #fff4d5; border-color: rgba(255, 198, 109, 0.62); box-shadow: 0 0 18px rgba(255, 198, 109, 0.12); }
.square-button { display: grid; width: 38px; padding: 0; place-items: center; }
button:disabled { cursor: not-allowed; opacity: 0.38; }
.speed-control, .observer-control { padding: 5px; border: 1px solid rgba(132, 188, 204, 0.13); border-radius: 8px; background: rgba(3, 10, 15, 0.72); }
.speed-control > span, .observer-control > span { margin: 0 4px; color: #5f7481; font-family: var(--mono); font-size: 0.61rem; letter-spacing: 0.08em; }
.speed-control button { min-width: 35px; padding: 0 7px; }
.observer-control button { padding: 0 9px; }
.speed-control button:hover, .observer-control button:hover, .recorder button:hover, .square-button:hover, .speed-control .active, .observer-control .active { color: #c7f9ff; border-color: rgba(112, 232, 255, 0.35); background: rgba(27, 67, 77, 0.56); }

.recorder { min-width: 0; justify-content: flex-end; }
.event-feed { display: grid; min-width: 0; max-width: 430px; margin-right: 5px; gap: 4px; }
.event-feed > span { color: #5e7380; font-size: 0.59rem; }
.event-feed strong { overflow: hidden; color: #9db0b9; font-size: 0.69rem; font-weight: 510; text-overflow: ellipsis; white-space: nowrap; }
.recorder button { flex: 0 0 auto; padding: 0 10px; }
.replay-control { display: grid; min-width: 0; grid-column: 1 / -1; grid-template-columns: auto minmax(120px, 1fr) auto auto; align-items: center; gap: 10px; }
.replay-control > span { color: #5f7582; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.07em; }
.replay-control input { width: 100%; height: 4px; accent-color: var(--violet); }
.replay-control output { min-width: 145px; color: #aebfc7; font-family: var(--mono); font-size: 0.68rem; text-align: right; }
.replay-control button { min-height: 28px; padding: 0 9px; font-size: 0.62rem; }
.replay-control button:not(:disabled):hover { color: #e4dcff; border-color: rgba(181, 150, 255, 0.4); background: rgba(57, 40, 86, 0.52); }

.mission-director {
  position: fixed;
  inset: 22px;
  z-index: 30;
  width: min(1420px, calc(100vw - 44px));
  max-width: none;
  height: calc(100dvh - 44px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #d8edf2;
  border: 1px solid rgba(141, 211, 229, 0.24);
  border-radius: 14px;
  background: #03080d;
  box-shadow: 0 30px 130px rgba(0, 0, 0, 0.85), inset 0 0 80px rgba(112, 232, 255, 0.018);
}
.mission-director::backdrop { background: rgba(0, 2, 5, 0.82); backdrop-filter: blur(8px); }
.director-window { display: grid; height: 100%; grid-template-rows: auto auto minmax(0, 1fr); }
.director-header { display: flex; min-width: 0; padding: 20px 24px 18px; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(124, 183, 200, 0.14); background: radial-gradient(circle at 20% 0, rgba(72, 132, 151, 0.12), transparent 45%), linear-gradient(105deg, rgba(5, 20, 29, 0.95), rgba(13, 7, 25, 0.94)); }
.director-header > div:first-child { min-width: 0; }
.director-header span, .director-card-heading span { color: #67808d; font-family: var(--mono); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.09em; }
.director-header h2 { margin: 5px 0 0; color: #f1fcff; font-size: clamp(1.75rem, 3.5vw, 3.2rem); font-weight: 560; letter-spacing: -0.05em; line-height: 0.95; }
.director-header p { margin: 8px 0 0; color: #8da3ad; font-size: 0.92rem; }
.director-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.director-header-actions > span { color: #8b74ce; font-size: 0.75rem; }
.director-header button, .director-actions button, .director-file-button, .storyboard-cut button, .saved-mission button {
  min-height: 38px;
  padding: 0 12px;
  color: #a9bdc5;
  border: 1px solid rgba(130, 191, 209, 0.18);
  border-radius: 7px;
  background: rgba(9, 22, 30, 0.82);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.director-header button:hover, .director-actions button:hover, .director-file-button:hover, .storyboard-cut button:hover, .saved-mission button:hover { color: #e9fbff; border-color: rgba(112, 232, 255, 0.38); background: rgba(22, 55, 66, 0.72); }
.director-header .director-close { display: grid; width: 40px; padding: 0; color: #d8cfff; border-color: rgba(181, 150, 255, 0.28); font-size: 1.4rem; place-items: center; }
.director-tabs { display: flex; min-width: 0; padding: 0 24px; overflow-x: auto; border-bottom: 1px solid rgba(124, 183, 200, 0.13); background: rgba(2, 7, 11, 0.98); scrollbar-width: thin; }
.director-tabs button { min-height: 48px; padding: 0 18px; flex: 0 0 auto; color: #687d88; border: 0; border-bottom: 2px solid transparent; background: transparent; font-family: var(--mono); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.07em; }
.director-tabs button:hover { color: #bdd9e0; }
.director-tabs button.active { color: #e4faff; border-bottom-color: var(--cyan); background: linear-gradient(180deg, rgba(112, 232, 255, 0.055), transparent); }
.director-body { min-height: 0; padding: 18px 24px 26px; overflow: auto; overscroll-behavior: contain; }
.director-panel { min-height: 100%; }
.director-panel[hidden] { display: none; }
.director-columns { display: grid; gap: 16px; }
.mission-columns { grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr); }
.comparison-columns { grid-template-columns: minmax(350px, 0.74fr) minmax(0, 1.26fr); }
.storyboard-columns { grid-template-columns: minmax(330px, 0.68fr) minmax(0, 1.32fr); }
.director-card { min-width: 0; padding: 18px; border: 1px solid rgba(127, 187, 204, 0.14); border-radius: 10px; background: linear-gradient(145deg, rgba(7, 18, 25, 0.94), rgba(5, 10, 17, 0.96)); box-shadow: inset 0 1px rgba(255,255,255,.015); }
.director-card-heading { display: flex; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 14px; }
.director-card-heading strong { color: #a995e4; font-family: var(--mono); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-align: right; }
.director-card label, .comparison-configs legend, .analysis-duration > span { display: grid; color: #6d838e; font-family: var(--mono); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; gap: 7px; }
.director-card input, .director-card textarea, .director-card select {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  color: #e1f2f5;
  border: 1px solid rgba(124, 181, 198, 0.18);
  border-radius: 7px;
  outline: 0;
  background: rgba(1, 7, 11, 0.82);
  font: 0.86rem/1.4 var(--sans);
}
.director-card textarea { min-height: 110px; resize: vertical; }
.director-card input:focus, .director-card textarea:focus, .director-card select:focus { border-color: rgba(112, 232, 255, 0.55); box-shadow: 0 0 0 3px rgba(112, 232, 255, 0.07); }
.mission-brief-card > label + label, .marker-control-card > label + label { margin-top: 15px; }
.director-model-strip { display: grid; margin-top: 16px; overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(123, 186, 202, 0.12); border-radius: 8px; background: rgba(1, 7, 11, 0.52); }
.director-model-strip div { min-width: 0; padding: 11px; border-right: 1px solid rgba(123, 186, 202, 0.1); }
.director-model-strip div:last-child { border: 0; }
.director-model-strip span { display: block; color: #617783; font: 0.75rem var(--mono); letter-spacing: 0.06em; }
.director-model-strip strong { display: block; margin-top: 5px; overflow: hidden; color: #c8e5ea; font: 600 0.78rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.director-actions { display: flex; margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.director-actions .primary { color: #021116; border: 0; background: linear-gradient(120deg, #71e8ff, #9df4d0); }
.director-actions .primary:hover { color: #000b0f; background: linear-gradient(120deg, #a5f2ff, #c1ffe5); }
.director-file-button { display: inline-grid; cursor: pointer; place-items: center; }
.director-file-button input { display: none; }
.director-footnote, .director-intro, .analysis-status { margin: 12px 0 0; color: #718791; font-size: 0.78rem; line-height: 1.5; }
.saved-mission-list, .storyboard-list { display: grid; max-height: 55dvh; overflow: auto; gap: 8px; }
.director-empty { display: grid; min-height: 120px; padding: 20px; color: #647983; border: 1px dashed rgba(126, 185, 200, 0.18); border-radius: 8px; font-size: 0.84rem; text-align: center; place-items: center; }
.saved-mission { display: grid; padding: 12px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border: 1px solid rgba(126, 185, 200, 0.12); border-radius: 8px; background: rgba(3, 11, 16, 0.74); }
.saved-mission h3, .storyboard-cut h3 { margin: 0; overflow: hidden; color: #d9eef2; font-size: 0.88rem; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.saved-mission p, .storyboard-cut p { margin: 5px 0 0; color: #718791; font-size: 0.76rem; line-height: 1.4; }
.saved-mission-actions { display: flex; align-items: center; gap: 5px; }
.saved-mission button, .storyboard-cut button { min-height: 31px; padding: 0 8px; font-size: 0.75rem; }
.saved-mission button.danger, .storyboard-cut button.danger { color: #ff9b91; border-color: rgba(255, 103, 88, 0.2); }
.fleet-card { padding-bottom: 8px; }
.fleet-editor { min-width: 0; padding-bottom: 8px; overflow: auto; }
.fleet-row { display: grid; min-width: 920px; padding: 9px 8px; grid-template-columns: minmax(150px, 1.2fr) 82px 92px 92px 88px minmax(220px, 1.8fr); align-items: end; gap: 8px; border-bottom: 1px solid rgba(126, 185, 200, 0.09); }
.fleet-row:first-child { border-top: 1px solid rgba(126, 185, 200, 0.09); }
.fleet-row label { font-size: 0.75rem; }
.fleet-row input { min-height: 36px; padding: 7px 8px; font-family: var(--mono); font-size: 0.76rem; }
.fleet-identity { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 8px; }
.fleet-identity i { width: 8px; height: 8px; border-radius: 50%; background: var(--fleet-colour); box-shadow: 0 0 9px var(--fleet-colour); }
.sticky-actions { position: sticky; bottom: -8px; padding: 10px 0; background: linear-gradient(180deg, transparent, #050b10 25%); }
.comparison-configs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comparison-configs fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid rgba(130, 189, 205, 0.14); border-radius: 8px; }
.comparison-configs legend { padding: 0 6px; color: #b6a0f2; }
.comparison-configs label + label { margin-top: 10px; }
.analysis-duration { position: relative; margin-top: 15px; grid-template-columns: 1fr auto; align-items: center; }
.analysis-duration output { color: #b9f2fa; font: 0.78rem var(--mono); }
.analysis-duration input { min-height: 18px; padding: 0; grid-column: 1 / -1; accent-color: var(--cyan); }
.analysis-progress { height: 3px; margin-top: 16px; overflow: hidden; background: rgba(112, 232, 255, 0.08); }
.analysis-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber)); transition: width 120ms linear; }
.analysis-status { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.comparison-results { display: grid; gap: 10px; }
.comparison-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.comparison-side { padding: 12px; border: 1px solid rgba(126, 185, 200, 0.12); border-radius: 8px; background: rgba(2, 8, 13, 0.68); }
.comparison-side.run-b { border-color: rgba(181, 150, 255, 0.2); }
.comparison-side > span { color: #647b87; font: 0.75rem var(--mono); letter-spacing: 0.07em; }
.comparison-side h3 { margin: 5px 0 12px; color: #e4f6f9; font: 600 0.94rem var(--mono); }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-metrics div { min-width: 0; }
.result-metrics span { display: block; color: #5f7580; font: 0.75rem var(--mono); }
.result-metrics strong { display: block; margin-top: 3px; overflow: hidden; color: #bfd9df; font: 600 0.78rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.comparison-delta { padding: 11px; color: #95aab3; border-left: 2px solid var(--amber); background: rgba(44, 29, 9, 0.28); font-size: 0.8rem; line-height: 1.5; }
.sweep-card { margin-top: 16px; }
.sweep-results { display: grid; gap: 7px; }
.sweep-row { display: grid; grid-template-columns: 66px minmax(120px, 1fr) 105px 92px; align-items: center; gap: 10px; }
.sweep-row > span, .sweep-row > strong { font: 0.75rem var(--mono); }
.sweep-row > span { color: #8d79cf; }
.sweep-row > strong { color: #bdd5dc; text-align: right; }
.sweep-track { height: 7px; overflow: hidden; border-radius: 8px; background: rgba(126, 185, 200, 0.08); }
.sweep-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72e8ff, #b596ff); box-shadow: 0 0 9px rgba(112, 232, 255, 0.2); }
.sweep-row.horizon .sweep-track i { background: linear-gradient(90deg, #ffb46e, #ff625c); }
.sweep-row.horizon > strong { color: #ff9a8f; }
.marker-context { margin-top: 14px; padding: 11px; color: #9fb4bc; border-left: 2px solid var(--violet); background: rgba(35, 24, 56, 0.34); font: 0.75rem var(--mono); line-height: 1.5; }
.storyboard-cut { display: grid; padding: 11px; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(126, 185, 200, 0.12); border-radius: 8px; background: rgba(3, 11, 16, 0.74); }
.storyboard-cut > span { color: #b9a1f4; font: 0.75rem var(--mono); text-align: center; }
.storyboard-cut > div { min-width: 0; }
.storyboard-cut.active { border-color: rgba(255, 198, 109, 0.36); box-shadow: inset 3px 0 #ffc66d; }
.storyboard-actions { position: sticky; bottom: -18px; padding: 12px 0 2px; background: linear-gradient(180deg, transparent, #050b10 30%); }

@media (max-width: 1240px) {
  .lab-grid { grid-template-columns: 274px minmax(300px, 1fr) 320px; }
  .panel { padding-right: 14px; padding-left: 14px; }
  .link-status > span:last-child, .brand div > span { display: none; }
  .command-deck { gap: 9px; padding-right: 10px; padding-left: 10px; }
  .observer-control > span, .speed-control > span { display: none; }
  .event-feed { max-width: 240px; }
  .run-controls { flex-wrap: wrap; }
  .ride-button { order: 5; min-height: 34px; }
  .director-button { order: 6; min-height: 34px; }
  .mission-clocks { width: 390px; }
}

@media (max-width: 930px) {
  body { overflow: auto; }
  .app { display: block; height: auto; min-height: 100dvh; overflow: visible; }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; }
  .mission-title { display: none; }
  .lab-grid { display: grid; min-height: auto; overflow: visible; grid-template-columns: 1fr 1fr; }
  .stage { grid-row: 1; grid-column: 1 / -1; min-height: 58dvh; }
  .controls-panel { grid-row: 2; grid-column: 1; max-height: none; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .telemetry-panel { grid-row: 2; grid-column: 2; max-height: none; border-top: 1px solid var(--line); border-left: 0; }
  .command-deck { position: relative; grid-template-columns: 1fr auto; min-height: 150px; max-height: none; overflow: visible; }
  .run-controls { flex-wrap: wrap; }
  .observer-control { justify-self: end; }
  .recorder { grid-column: 1 / -1; justify-content: stretch; }
  .event-feed { max-width: none; flex: 1; }
  .replay-control { grid-column: 1 / -1; }
  .signal-console { width: min(460px, calc(100% - 32px)); min-width: 0; }
  .rider-hud { width: 175px; }
  .photon-engine-panel { width: min(440px, calc(100% - 390px)); }
  .mission-director { inset: 12px; width: calc(100vw - 24px); height: calc(100dvh - 24px); }
  .director-header { padding: 17px 18px; }
  .director-tabs { padding: 0 18px; }
  .director-body { padding: 15px 18px 22px; }
  .mission-columns, .comparison-columns, .storyboard-columns { grid-template-columns: 1fr; }
  .saved-mission-list, .storyboard-list { max-height: none; }
}

@media (max-width: 660px) {
  .topbar { height: 64px; padding: 0 12px; }
  .brand p { font-size: 0.8rem; letter-spacing: 0.1em; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark::before { width: 40px; height: 14px; }
  .brand-mark::after { width: 13px; height: 40px; }
  .link-status { font-size: 0.6rem; }
  .link-status i, .link-status > span:last-child { display: none; }
  .lab-grid { display: flex; flex-direction: column; }
  .stage { min-height: 58dvh; order: 0; }
  .stage.rider-mode { min-height: 700px; }
  .controls-panel { order: 1; border-right: 0; }
  .telemetry-panel { order: 2; border-left: 0; }
  .legend { bottom: 57px; gap: 8px; font-size: 0.51rem; }
  .legend span:nth-child(3) { display: none; }
  .field-disclaimer { display: none; }
  .stage-tools { top: 51px; left: 15px; right: auto; width: calc(100% - 30px); flex-wrap: wrap; }
  .stage-tools button { flex: 1 1 auto; padding: 0 5px; }
  .zoom-readout { top: 91px; left: 15px; }
  .camera-hint { display: none; }
  .mission-clocks { top: 125px; width: calc(100% - 24px); }
  .rider-camera-bar { top: 200px; }
  .rider-camera-bar button { padding: 0 5px; font-size: 0.59rem; }
  .rider-hud { top: 248px; width: calc(50% - 20px); }
  .rider-hud-left { left: 12px; }
  .rider-hud-right { right: 12px; }
  .photon-engine-panel { top: 419px; width: calc(100% - 24px); min-width: 0; }
  .signal-console { bottom: 62px; }
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .probe-list { grid-template-columns: 1fr 1fr; }
  .command-deck { position: relative; display: flex; padding: 12px; flex-direction: column; align-items: stretch; }
  .run-controls, .observer-control, .recorder { justify-content: center; }
  .observer-control { align-self: center; }
  .event-feed { display: none; }
  .recorder button { flex: 1; }
  .director-header { display: grid; align-items: start; }
  .director-header-actions { justify-content: space-between; }
  .director-header-actions > span { display: none; }
  .director-header-actions #director-book-button { flex: 1; }
  .director-tabs button { min-height: 44px; padding: 0 12px; font-size: 0.75rem; }
  .director-body { padding: 12px; }
  .director-card { padding: 14px; }
  .director-model-strip { grid-template-columns: 1fr 1fr; }
  .director-model-strip div:nth-child(2) { border-right: 0; }
  .director-model-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(123, 186, 202, 0.1); }
  .comparison-summary, .comparison-configs { grid-template-columns: 1fr; }
  .sweep-row { grid-template-columns: 56px minmax(80px, 1fr) 82px; }
  .sweep-row > strong:last-child { display: none; }
  .storyboard-cut { grid-template-columns: 52px minmax(0, 1fr); }
  .storyboard-cut > button { grid-column: 1 / -1; }
  .replay-control { display: grid; width: 100%; grid-template-columns: auto 1fr; }
  .replay-control input { grid-column: 1 / -1; }
  .replay-control output { min-width: 0; text-align: left; }
  .replay-control button { justify-self: end; }
}

@media (max-width: 430px) {
  .link-status strong { display: none; }
  .stage { min-height: 500px; }
  .stage.rider-mode { min-height: 760px; }
  .legend span:nth-child(2) { display: none; }
  .derived-strip, .telemetry-grid { grid-template-columns: 1fr; }
  .derived-strip div + div { border-top: 1px solid rgba(119, 183, 202, 0.14); border-left: 0; }
  .probe-list { grid-template-columns: 1fr; }
  .deploy-button { flex: 1 1 100%; }
  .ride-button { flex: 1 1 100%; }
  .director-button { flex: 1 1 100%; }
  .mission-clocks { padding: 7px; }
  .mission-clocks span { font-size: 0.55rem; }
  .mission-clocks strong { font-size: 0.7rem; }
  .mission-clocks .clock-separation { padding: 0 4px; }
  .rider-camera-bar { width: calc(100% - 24px); justify-content: center; }
  .rider-camera-bar button { min-width: 0; flex: 1; padding: 0 2px; font-size: 0.52rem; }
  .rider-camera-bar button:first-child, .rider-camera-bar button:last-child { flex: 0 0 26px; min-width: 26px; }
  .rider-hud { top: 252px; width: calc(50% - 15px); padding: 8px; }
  .rider-hud header { display: grid; }
  .rider-hud dd { font-size: 0.62rem; }
  .photon-engine-panel { top: 454px; }
  .photon-inspector { grid-template-columns: 1fr 1fr; }
  .signal-console-head { grid-template-columns: 1fr 1fr; }
  .signal-console-head > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Phase 7: the radial ruler uses the observatory's existing dark instrument palette. */
.relay-entry { display: grid; width: 100%; margin: 0 0 20px; padding: 13px 12px; gap: 5px; text-align: left; border: 1px solid #40788a; border-radius: 8px; color: #d7f9ff; background: linear-gradient(120deg, #102d3a, #0e1528); }
.relay-entry > span { color: #92b7c5; font: 0.75rem var(--mono); }
.relay-entry strong { font: 650 0.875rem/1.45 var(--mono); }
.relay-entry small { color: #a4bec8; font-size: 0.8rem; }
.relay-entry:hover { border-color: var(--cyan); background: #14313f; }
.time-advance-card { margin: 0 0 18px; padding: 12px; border: 1px solid #304b5a; border-radius: 8px; background: #08121c; }
.time-advance-card summary { color: #bfe2ef; font: .8rem/1.5 var(--mono); cursor: pointer; }
.time-advance-card p { color: #97afbd; font-size: .875rem; line-height: 1.5; }
.time-advance-card label { display: grid; gap: 6px; margin-top: 12px; color: #9cb6c4; font: .8rem var(--mono); }
.time-advance-card input, .time-advance-card select { width: 100%; min-height: 36px; padding: 6px; border: 1px solid #39515f; border-radius: 5px; background: #0c1b25; color: #e3f6ff; font-size: .95rem; }
.time-advance-card > div { display: flex; margin-top: 12px; gap: 6px; }
.time-advance-card button { min-height: 36px; padding: 8px; background: #193541; color: #bceafa; border: 1px solid #456878; border-radius: 5px; font: .8rem var(--mono); }
.time-rate-control { max-width: 252px; min-width: 175px; }
.time-rate-control label { display: grid; gap: 3px; min-width: 0; color: #a9c4d2; font: .75rem var(--mono); }
.time-rate-control select { min-width: 0; width: 100%; padding: 5px; color: #e4f9ff; background: #10212d; border: 1px solid #395768; border-radius: 4px; font-size: .875rem; }
.time-rate-control output { color: #8fb6c8; font: .75rem/1.4 var(--mono); overflow-wrap: anywhere; }
.hawking-compact { margin: 16px 0; padding: 14px; border: 1px solid #4a3f65; border-radius: 8px; background: linear-gradient(125deg, #181326, #0b1620); }
.hawking-compact > div { display: flex; justify-content: space-between; gap: 8px; color: #d1b6ff; font: .875rem var(--mono); }
.hawking-compact small { color: #a7b8c4; font-size: .8125rem; line-height: 1.5; }
.hawking-compact > strong { display: block; margin: 12px 0 8px; color: #e4d4ff; font: 1.15rem var(--mono); overflow-wrap: anywhere; }
.hawking-compact p { margin: 6px 0; color: #ffc66d; font: .875rem/1.5 var(--mono); }
.hawking-compact button { width: 100%; margin-top: 12px; padding: 10px 6px; border: 1px solid #71628e; border-radius: 5px; color: #e2d4fa; background: #262038; font: .875rem var(--mono); }
#rider-hawking { white-space: normal; overflow-wrap: anywhere; color: #d5baff; line-height: 1.4; }
.hawking-lab { font-size: 1rem; }
.hawking-lab[hidden] { display: none; }
.hawking-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; }
.hawking-heading span { color: #b3a2cf; font: .8125rem var(--mono); }
.hawking-heading h3 { margin: 8px 0; color: #e9ddff; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; }
.hawking-heading p { margin: 8px 0; color: #b5c7d2; }
.hawking-heading > strong { flex: 0 0 auto; color: #d2b5ff; font: .875rem/1.7 var(--mono); text-align: right; }
.hawking-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 16px; }
.hawking-settings { display: grid; align-content: start; gap: 14px; }
.hawking-lab label { display: grid; gap: 7px; color: #c0c7d7; font-size: .875rem; line-height: 1.5; letter-spacing: 0; }
.hawking-lab input, .hawking-lab select { min-width: 0; min-height: 38px; font-size: 1rem; }
.hawking-settings .hawking-checkbox { display: flex; align-items: flex-start; }
.hawking-checkbox input { width: 18px; height: 18px; min-height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: #c0a2ff; }
.hawking-settings button, .hawking-fleet-card button { min-height: 38px; padding: 8px 12px; border: 1px solid #5e5377; border-radius: 5px; color: #ded0f5; background: #1b1828; font-size: .875rem; }
.hawking-settings button.primary { color: #1a102a; background: #c3a2ff; font-weight: 700; }
.hawking-help, .hawking-science { color: #a7bdca; line-height: 1.6; }
.hawking-help { margin: 0; font-size: .875rem; }
#hawking-feedback { margin: 0; color: #d3b9ff; font-size: .875rem; line-height: 1.5; }
.hawking-display { min-width: 0; }
.hawking-display-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.hawking-display-heading strong { font-size: 1.2rem; color: #eddefd; }
.hawking-display-heading span { color: #ffc66d; font: .875rem/1.5 var(--mono); text-align: right; }
.hawking-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: #352c46; border: 1px solid #352c46; border-radius: 7px; overflow: hidden; }
.hawking-metrics div { min-width: 0; padding: 14px; background: #0a1420; }
.hawking-metrics dt { color: #afb5c9; font: .875rem/1.5 var(--mono); }
.hawking-metrics dd { margin: 10px 0 0; color: #eadcff; font: 1rem/1.5 var(--mono); overflow-wrap: anywhere; }
.hawking-verdict { margin: 0 0 12px; padding: 14px; border-left: 3px solid #b291ee; background: #191626; color: #d5c9e5; font-size: 1rem; line-height: 1.6; }
.hawking-spectrum-wrap { overflow: auto; border: 1px solid #263a4b; border-radius: 6px; background: #050c14; }
.hawking-spectrum-wrap svg { display: block; width: 100%; min-width: 490px; }
.hawking-spectrum-key { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0; font-size: .875rem; }
.hawking-spectrum-key span:first-child { color: #c3a2ff; }
.hawking-spectrum-key span:last-child { color: #ffc66d; }
.hawking-fleet-card { margin-top: 16px; }
.hawking-table-wrap { width: 100%; overflow: auto; }
.hawking-table { width: 100%; margin-top: 14px; border-collapse: collapse; font: .875rem/1.5 var(--mono); }
.hawking-table th, .hawking-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #243645; }
.hawking-table th { color: #b8a4d4; font-weight: 500; }
.hawking-table td { color: #c8dae4; }
.hawking-table tr[data-selected="true"] { background: #221b34; }
.hawking-table button { white-space: nowrap; }
.hawking-science { margin-top: 20px; padding: 18px; border: 1px solid #514261; border-radius: 8px; background: #100f1b; }
.hawking-science summary { color: #d9c0fd; cursor: pointer; font-size: .875rem; }
.hawking-science a { color: #a7ddf2; }
@media (max-width: 1100px) {
  .hawking-layout { grid-template-columns: 235px minmax(0, 1fr); }
  .hawking-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .hawking-layout { grid-template-columns: 1fr; }
  .hawking-settings { grid-template-columns: 1fr 1fr; }
  .hawking-settings .hawking-checkbox, .hawking-settings p { grid-column: 1 / -1; }
  .hawking-heading { display: block; }
  .hawking-heading > strong { display: block; margin-top: 12px; text-align: left; }
}
@media (max-width: 550px) {
  .hawking-settings { grid-template-columns: 1fr; }
  .hawking-display-heading { display: block; }
  .hawking-display-heading span { display: block; text-align: left; margin-top: 8px; }
  .hawking-metrics div { padding: 10px; }
}
.relay-lab { font-size: 1rem; }
.relay-lab[hidden] { display: none; }
.relay-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.relay-heading span { color: #92afbb; font: 0.75rem var(--mono); letter-spacing: .08em; }
.relay-heading h3 { margin: 6px 0; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 550; letter-spacing: -.04em; }
.relay-heading p { color: #b1c4cc; margin: 8px 0 0; line-height: 1.5; }
.relay-heading > strong { flex: 0 0 auto; color: #ffc66d; font: 0.8rem/1.8 var(--mono); text-align: right; }
.relay-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.relay-lab label { font-size: .875rem; line-height: 1.45; letter-spacing: .025em; color: #9fb7c2; }
.relay-settings { display: grid; align-content: start; gap: 14px; }
.relay-lab input, .relay-lab select { font-size: .95rem; }
.relay-input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.relay-lab button { min-height: 40px; padding: 9px 12px; border: 1px solid #365669; border-radius: 7px; color: #d2e7ee; background: #10202b; font: 600 .875rem/1.35 var(--mono); }
.relay-lab button:hover { background: #1d3948; border-color: var(--cyan); }
.relay-lab button.primary { background: #8fe9e3; color: #021619; border: 1px solid #8fe9e3; }
.relay-lab button.primary:hover { background: #b5fff9; }
.relay-help { margin: 0; color: #91aab6; font-size: .875rem; line-height: 1.55; }
.relay-feedback { margin: 0; color: #acc8d2; font-size: .875rem; line-height: 1.5; }
.relay-feedback.error { color: #ffac9f; }
.relay-display { min-width: 0; }
.relay-display-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; font: .875rem var(--mono); }
.relay-display-heading strong { overflow-wrap: anywhere; color: #e8faff; }
.relay-display-heading span { flex: 0 0 auto; color: #8fe9e3; }
.relay-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid #1d3a4a; border-radius: 8px; overflow: hidden; background: #1d3a4a; }
.relay-metrics > div { min-width: 0; padding: 12px; background: #07121a; }
.relay-metrics span { color: #8ca8b6; font: .75rem/1.4 var(--mono); }
.relay-metrics strong { display: block; margin-top: 6px; color: #daf5ff; font: 550 clamp(1rem, 1.5vw, 1.5rem) var(--mono); overflow-wrap: anywhere; }
.relay-map-wrap { margin-top: 16px; overflow-x: auto; }
#relay-map { display: block; width: 100%; min-width: 680px; background: #030a10; border-radius: 8px; }
#relay-map text { font-family: var(--mono); }
.relay-map-key { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0 16px; font: .75rem/1.5 var(--mono); color: #8eaab8; }
.relay-map-key span:first-child { color: #70e8ff; }
.relay-map-key span:nth-child(2) { color: #ffc66d; }
.relay-playback { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.relay-playback label { margin-left: auto; font-size: .75rem; }
.relay-playback select { min-height: 40px; padding: 7px; }
.relay-scrubber { display: grid; gap: 8px; margin: 18px 0 10px; }
.relay-scrubber > span { display: flex; justify-content: space-between; font-size: .8rem; }
.relay-lab input[type="range"] { width: 100%; min-height: 24px; margin: 0; padding: 0; accent-color: var(--cyan); box-shadow: none; }
.relay-arrival { margin: 16px 0 12px; padding: 12px 14px; border-left: 2px solid var(--cyan); background: #0c202b; color: #d1e6ee; line-height: 1.5; min-height: 72px; }
.relay-clock-card, .relay-log-card { margin-top: 16px; }
.relay-clock-card .director-card-heading, .relay-log-card .director-card-heading { flex-wrap: wrap; }
.relay-clock-card .director-card-heading span, .relay-log-card .director-card-heading span { font-size: .875rem; }
.relay-table-wrap { overflow: auto; margin-top: 14px; }
.relay-log-wrap { max-height: 350px; }
.relay-table { width: 100%; border-collapse: collapse; font: .875rem/1.5 var(--mono); }
.relay-table th { position: sticky; top: 0; z-index: 1; background: #10212d; color: #adc7d3; text-align: left; font-size: .8rem; font-weight: 600; }
.relay-table th, .relay-table td { padding: 11px 12px; border-bottom: 1px solid #1b3442; white-space: nowrap; }
.relay-table td { color: #c9dfe8; }
.relay-table tr[data-active="true"] td { color: #a0f2ff; background: #0b2935; }
.relay-table tr[data-offline="true"] td { color: #ffb1a0; }
.relay-science { margin: 18px 0 0; padding: 17px; background: #12140f; border: 1px solid #3d3824; border-radius: 8px; }
.relay-science summary { color: #e7cb8a; cursor: pointer; font: .875rem var(--mono); }
.relay-science p { color: #bdc6c6; font-size: 1rem; line-height: 1.65; }
.relay-science a { color: #9bdaed; }
@media (max-width: 1100px) { .relay-layout { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 850px) { .relay-layout { grid-template-columns: 1fr; } .relay-settings { grid-template-columns: 1fr 1fr; } .relay-settings .relay-input-pair, .relay-settings .relay-feedback { grid-column: 1 / -1; } }
@media (max-width: 600px) { .relay-heading { display: block; } .relay-heading > strong { display: block; margin-top: 12px; text-align: left; } .relay-settings { grid-template-columns: 1fr; } .relay-playback label { margin-left: 0; } }

/* Phase 9: recovery status and physical time controls. */
.time-rate-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: min(100%, 450px); max-width: none; width: min(100%, 560px); flex: 1 1 480px; }
.time-rate-control label { display: grid; gap: 5px; font-size: .75rem; }
.time-rate-control select { width: 100%; min-width: 0; font-size: .875rem; padding: 7px; }
.time-rate-control output { grid-column: 1 / -1; font-size: .8rem; line-height: 1.4; white-space: normal; }
.backup-entry { display: grid; width: 100%; text-align: left; gap: 6px; margin-bottom: 12px; padding: 12px; border: 1px solid #36616b; background: #0b1b24; border-radius: 8px; }
.backup-entry strong { color: #a2edf5; font-size: .875rem; }
.backup-entry span { color: #b3c6cf; font-size: .8rem; line-height: 1.4; }
.backup-entry[data-error="true"] { border-color: #e5976c; }
.backup-dialog { width: min(820px, calc(100vw - 24px)); max-height: 88dvh; overflow-y: auto; padding: 24px; color: #dfebf0; background: #07121c; border: 1px solid #386071; border-radius: 12px; font: 1rem/1.55 system-ui, sans-serif; }
.backup-dialog::backdrop { background: #000b; }
.backup-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.backup-heading h2 { margin: 0; }
.backup-dialog button, .backup-import { padding: 10px 12px; font-size: .875rem; border: 1px solid #35576c; background: #102838; border-radius: 6px; color: #dcf8ff; cursor: pointer; }
.backup-dialog button:disabled { opacity: .45; cursor: default; }
.backup-dialog a { color: #82eaff; }
.backup-status { display: grid; gap: 10px; }
.backup-status div { padding: 12px; border: 1px solid #263e50; border-radius: 6px; }
.backup-status dt { font-size: .875rem; color: #9db9c9; }
.backup-status dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-import input { display: block; max-width: 230px; margin-top: 5px; }
.backup-help { color: #a0b7c4; font-size: .875rem; }
.backup-runs { display: grid; gap: 12px; margin: 14px 0; }
.backup-run { border: 1px solid #284b61; padding: 14px; border-radius: 6px; }
.backup-run p { margin: 4px 0 10px; color: #b7ccd8; font-size: .875rem; }
.backup-run div { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media(max-width: 650px) { .time-rate-control { min-width: 0; width: 100%; } .backup-dialog { padding: 16px; } }
