feat: rebuild the orbital vault as an operational map

This commit is contained in:
2026-11-09 22:01:14 +07:00
parent 2129e80c38
commit fba4a1e628
25 changed files with 1342 additions and 1333 deletions

View File

@@ -2,76 +2,285 @@
@import "tailwindcss";
@theme {
--color-space-950: #04050c;
--color-space-900: #0a0e1f;
--color-space-800: #141a36;
--color-space-700: #1e2647;
--color-star-100: #eef1ff;
--color-star-200: #c9d2f5;
--color-star-300: #94a3d4;
--color-star-400: #6b7ab8;
--color-orbit-amber: #f0c468;
--color-orbit-green: #4ade9a;
--color-orbit-red: #f87171;
--color-wormhole-violet: #a78bfa;
--color-space-950: #090b0e;
--color-space-900: #111418;
--color-space-800: #191d22;
--color-space-700: #2b3138;
--color-star-100: #f0f0ec;
--color-star-200: #d9dad6;
--color-star-300: #b6b9bc;
--color-star-400: #9298a0;
--color-orbit-amber: #e8b57e;
--color-orbit-green: #8bcbb3;
--color-orbit-red: #ffa29c;
--color-wormhole-violet: #b4b9e1;
--font-sans: "DM Sans", system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, monospace;
}
html {
font-family: var(--font-sans);
:root {
color-scheme: dark;
--line: #282c31;
--quiet: #a0a6ad;
--accent: #f1bc90;
--panel: #111418;
}
html,
body,
#root {
height: 100%;
body {
margin: 0;
min-width: 0;
font-family: var(--font-sans);
color: var(--color-star-100);
background: var(--color-space-950);
}
@layer utilities {
.font-mono {
font-family: var(--font-mono);
}
.scrollbar-none {
scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
display: none;
}
button:enabled { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.scrollbar-none { scrollbar-width: none; }
.vault-topbar {
min-height: 70px;
padding: 0 clamp(16px, 3vw, 44px);
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
border-bottom: 1px solid var(--line);
background: #0e1013;
}
.stars-drift {
animation: drift 120s linear infinite;
.vault-brand { display: flex; align-items: center; gap: 11px; }
.vault-brand svg { flex: none; color: var(--accent); }
.vault-brand strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.vault-brand span, .instrument-label, .vault-telemetry dt, .scene-footer, .vault-footer {
font: 500 10px/1.5 var(--font-mono);
letter-spacing: .105em;
text-transform: uppercase;
color: var(--quiet);
}
@keyframes drift {
from {
transform: translateY(0);
}
to {
transform: translateY(-120px);
}
.vault-brand span { display: block; margin-top: 5px; font-size: 9px; }
.vault-nav { display: flex; align-self: stretch; gap: clamp(8px, 2vw, 27px); }
.vault-nav button {
position: relative;
min-height: 44px;
padding: 0 6px;
color: var(--quiet);
font-size: 13px;
white-space: nowrap;
}
.vault-nav button:hover, .vault-nav button[aria-current] { color: var(--color-star-100); }
.vault-nav button[aria-current]::after { position: absolute; inset: auto 5px -1px; height: 2px; content: ""; background: var(--accent); }
.hub-link { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--color-star-300); font: 500 11px var(--font-mono); white-space: nowrap; }
.vault-main { max-width: 1720px; padding: 30px clamp(16px, 3vw, 44px) 10px; margin-inline: auto; }
.vault-overview { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.overview-label span { color: var(--accent); margin-right: 5px; }
.vault-overview h1 { font-weight: 550; letter-spacing: -.055em; font-size: clamp(34px, 4vw, 55px); line-height: 1.02; margin: 7px 0; }
.overview-copy { font-size: 14px; color: var(--quiet); }
.vault-telemetry { display: grid; grid-template-columns: repeat(4, minmax(78px, auto)); border-block: 1px solid var(--line); padding-block: 10px; }
.vault-telemetry > div { padding-inline: clamp(8px, 1.5vw, 20px); }
.vault-telemetry > div + div { border-left: 1px solid var(--line); }
.vault-telemetry dd { font: 500 17px/1.6 var(--font-mono); white-space: nowrap; }
.vault-telemetry .telemetry-alert { color: var(--color-orbit-red); }
.vault-workspace {
--workspace-height: clamp(480px, calc(100dvh - 288px), 760px);
display: grid;
grid-template-columns: minmax(190px, .91fr) minmax(0, 3.1fr) minmax(224px, 1fr);
grid-template-areas: "register map inspector";
gap: 12px;
height: var(--workspace-height);
}
.vignette::after {
content: "";
.vault-console, .vault-scene { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; }
.vault-console { background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.orbit-register { grid-area: register; }
.orbit-inspector { grid-area: inspector; }
.console-heading { padding: 17px 16px 14px; }
.console-heading h2 { margin-top: 5px; font-weight: 600; font-size: 18px; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
.orbit-register .console-heading { border-bottom: 1px solid var(--line); }
.console-empty { padding: 0 16px; color: var(--quiet); font-size: 13px; line-height: 1.6; }
.orbit-register > .console-empty { padding-block: 12px; }
.register-list, .inspector-history ul { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #454952 transparent; }
.register-list { flex: 1; }
.register-list li + li, .inspector-history li + li { border-top: 1px solid #24282c; }
.register-row {
position: relative;
width: 100%;
min-height: 48px;
display: grid;
grid-template-columns: 9px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
padding: 7px 10px;
text-align: left;
}
.register-row:hover, .snapshot-row:hover { background: #1b1e23; }
.register-row[aria-pressed="true"] { background: #222025; box-shadow: inset 2px 0 var(--accent); }
.register-content { min-width: 0; }
.register-content span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.register-content small { display: block; margin-top: 2px; font: 10px/1.3 var(--font-mono); color: var(--quiet); }
.register-state { font: 10px/1.3 var(--font-mono); }
.tone-red { color: var(--color-orbit-red); }
.tone-amber { color: var(--color-orbit-amber); }
.tone-green { color: var(--color-orbit-green); }
.tone-grey { color: var(--quiet); }
.register-signal { flex: none; display: inline-block; width: 7px; height: 7px; background: var(--quiet); border-radius: 50%; }
.signal-red { border-radius: 1px; transform: rotate(45deg); background: var(--color-orbit-red); }
.signal-amber { background: transparent; border: 1px solid var(--color-orbit-amber); }
.signal-green { background: var(--color-orbit-green); }
.console-bottom { margin-top: auto; padding: 9px 10px; border-top: 1px solid var(--line); }
.console-bottom button { width: 100%; justify-content: space-between; }
.console-control {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 44px;
border: 1px solid #393e45;
border-radius: 6px;
padding: 0 11px;
background: #16191d;
color: var(--color-star-100);
font-size: 12px;
font-weight: 550;
text-align: left;
}
.console-control:enabled:hover { border-color: #74777b; background: #20242a; }
.console-control:disabled { color: var(--quiet); }
.console-control svg { color: var(--accent); }
.inspector-state { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; }
.inspector-schedule { padding: 0 16px; color: var(--quiet); font-size: 13px; }
.inspector-capture { padding: 12px 16px 17px; }
.inspector-capture .capture-notice { margin-top: 8px; }
.capture-button { width: 100%; padding-block: 8px; background: #31241d; border-color: #76533d; color: #ffd0a9; }
.capture-button span:last-child { min-width: 0; overflow-wrap: anywhere; }
.capture-button:enabled:hover { background: #483125; border-color: var(--accent); }
.capture-button:disabled { background: #191a1d; }
.inspector-history { display: flex; flex-direction: column; min-height: 0; }
.inspector-history header { display: flex; justify-content: space-between; align-items: center; border-block: 1px solid var(--line); padding: 10px 16px; }
.inspector-history h3 { font-size: 12px; font-weight: 550; }
.inspector-history header span { color: var(--quiet); font: 11px var(--font-mono); }
.inspector-history .console-empty { padding-top: 10px; }
.snapshot-row { width: 100%; min-height: 52px; display: grid; grid-template-columns: 17px minmax(0, 1fr) 12px; align-items: center; gap: 8px; padding: 7px 13px; text-align: left; }
.snapshot-row strong { display: block; font-size: 12px; font-weight: 550; }
.snapshot-row small { display: block; margin-top: 3px; font: 10px/1.3 var(--font-mono); color: var(--quiet); }
.snapshot-glyph { color: #c6d2e6; font-size: 18px; }
.snapshot-arrow { color: var(--quiet); }
.vault-scene {
grid-area: map;
isolation: isolate;
display: grid;
grid-template-rows: auto 1fr auto;
background: #0a0c10;
overflow: hidden;
}
.vault-scene > :not(.space-backdrop) { position: relative; }
.space-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.space-backdrop::after {
position: absolute;
inset: 0;
pointer-events: none;
box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
content: "";
background: radial-gradient(ellipse at 48% 52%, transparent 42%, #080a0dd9 100%);
}
.scene-toolbar, .scene-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; }
.scene-toolbar { z-index: 1; }
.scene-toolbar > div { min-width: 0; }
.scene-toolbar button { flex: none; }
.scene-mode { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 13px; }
.mode-signal { flex: none; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); border-radius: 1px; }
.mode-signal.is-live { background: var(--color-orbit-green); border-radius: 50%; transform: none; }
.scene-focus { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--quiet); }
.scene-footer { border-top: 1px solid #24282c; background: #0a0c10bb; }
.scene-footer > p span { color: var(--accent); }
.scene-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--color-star-300); }
.scene-legend span { display: inline-flex; align-items: center; gap: 6px; }
.scene-legend i { width: 6px; height: 6px; display: inline-block; }
.legend-orbit { background: #dfe4ef; border-radius: 50%; }
.legend-failed { border: 1px solid var(--color-orbit-red); transform: rotate(45deg); }
.legend-snapshot { border: 1px solid #dfe4ef; transform: rotate(45deg); }
.galaxy-frame { width: 100%; max-width: calc((var(--workspace-height) - 120px) * 1.375); aspect-ratio: 11 / 8; align-self: center; justify-self: center; }
.galaxy-frame > svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.orbit-tracks { fill: none; stroke: #949eaa; stroke-width: .75; opacity: .28; }
.orbit-tracks .is-selected { stroke: #eebf92; stroke-dasharray: 3 4; stroke-width: 1.6; }
.orbit-marker { color: #c3c9d0; }
.orbit-marker--red { color: var(--color-orbit-red); }
.orbit-marker--amber { color: var(--color-orbit-amber); }
.orbit-marker--green { color: var(--color-orbit-green); }
.orbit-light, .orbit-halo { fill: currentColor; pointer-events: none; }
.orbit-halo { opacity: .08; }
.orbit-alert, .orbit-selection, .orbit-busy { fill: none; stroke: currentColor; stroke-width: 1.15; pointer-events: none; }
.orbit-selection { stroke: #f8eadc; stroke-width: 1; }
.orbit-busy { stroke-dasharray: 3 3; }
.orbit-layer--far .orbit-marker:not(.orbit-marker--red, .orbit-marker--selected) { opacity: .76; }
.orbit-hit { fill: transparent; cursor: pointer; }
.orbit-marker:hover .orbit-halo { opacity: .3; }
.snapshot-marker line { stroke: #bdc4ce; opacity: .58; stroke-dasharray: 2 3; pointer-events: none; }
.snapshot-light { fill: #dce5f7; stroke: #272c35; stroke-width: 1.1; pointer-events: none; }
.snapshot-marker:hover .snapshot-light { fill: #fff; }
.focus-leader { stroke: var(--accent); opacity: .65; pointer-events: none; }
.capture-arrival path { stroke: #ffce9b; stroke-width: 2.3; stroke-linecap: round; }
.capture-arrival circle { fill: #fff0d9; }
.scene-labels { position: absolute; inset: 0; pointer-events: none; }
.scene-labels span { display: block; position: absolute; height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 22px; color: #dde0e6; background: #111519ed; border: 1px solid #353c46; border-radius: 4px; padding-inline: 7px; }
.scene-labels span.is-selected { color: #ffe5cb; border-color: #8b6349; }
.scene-density { position: absolute; inset: auto 10px 0; color: var(--quiet); font-size: 11px; text-align: center; pointer-events: none; }
.vault-footer { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.capture-notice { margin-block: 4px; font: 500 12px/1.5 var(--font-mono); color: var(--color-star-200); text-transform: none; letter-spacing: 0; }
.capture-notice.tone-red { color: var(--color-orbit-red); }
.vault-dialog {
position: fixed;
inset: 0 0 0 auto;
margin: 0;
width: min(440px, 100%);
height: 100dvh;
max-width: none;
max-height: none;
overflow: auto;
padding: 0;
background: #121519;
color: var(--color-star-100);
border-left: 1px solid #3b4048;
}
.vault-dialog::backdrop { background: #030508b3; }
.dialog-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; padding: 18px 20px; position: sticky; top: 0; z-index: 1; background: #121519; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.035em; margin-top: 3px; }
.dialog-heading h2:focus { outline: none; }
.dialog-heading h2 + p { margin-top: 4px; color: var(--quiet); font-size: 13px; }
.dialog-content { padding: 18px 20px; }
@media (max-width: 1060px) {
.vault-workspace { grid-template-areas: "map map" "register inspector"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; }
.vault-console { min-height: 240px; max-height: 420px; }
}
.scanlines::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.04;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(255, 255, 255, 0.15) 3px
);
@media (max-width: 640px) {
.vault-topbar { grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 11px; }
.vault-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin-top: 7px; gap: 3px; }
.vault-nav button { padding-inline: 5px; font-size: 12px; }
.vault-main { padding: 19px 12px 9px; }
.vault-overview { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.vault-telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(76px, auto); }
.vault-telemetry dd { font-size: 14px; }
.vault-workspace { grid-template-areas: "map" "register" "inspector"; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vault-console { min-height: 0; }
.register-list { max-height: 196px; }
.orbit-inspector { max-height: 480px; padding-bottom: 8px; }
.orbit-inspector > .console-empty { padding-bottom: 8px; }
.galaxy-frame { max-width: none; }
.scene-toolbar, .scene-footer { padding: 9px; }
.scene-footer > p { display: none; }
.scene-footer { justify-content: center; }
.vault-footer > p:last-child { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .01ms !important;
animation-iteration-count: 1 !important;
transition-duration: .01ms !important;
}
}