Shiki42's picture
Publish immutable put-cabinet parallel static viewer
32ee7e3 verified
Raw
History Blame Contribute Delete
10.7 kB
:root {
color-scheme: dark;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #071019;
color: #e8f0f8;
font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background:
radial-gradient(circle at 18% 0%, rgba(42, 109, 152, 0.18), transparent 32rem),
radial-gradient(circle at 90% 10%, rgba(31, 78, 105, 0.14), transparent 28rem),
#071019;
}
button, select, input { font: inherit; }
button, select {
border: 1px solid #2b4052;
border-radius: 8px;
background: #101e2a;
color: #e8f0f8;
}
button {
padding: 8px 12px;
cursor: pointer;
}
button:hover { background: #172a39; }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, select:focus-visible, input:focus-visible {
outline: 2px solid #66c6ff;
outline-offset: 2px;
}
.app-shell {
width: min(1780px, 100%);
margin: 0 auto;
padding: 20px;
}
.topbar {
display: flex;
align-items: end;
justify-content: space-between;
gap: 20px;
margin-bottom: 16px;
}
h1 {
margin: 4px 0 0;
font-size: clamp(22px, 2.2vw, 34px);
font-weight: 500;
letter-spacing: -0.02em;
}
.eyebrow {
margin: 0;
color: #7facc8;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
letter-spacing: 0.16em;
}
.selectors {
display: flex;
align-items: end;
gap: 10px;
flex-wrap: wrap;
}
label {
display: grid;
gap: 5px;
color: #90a7b8;
font-size: 12px;
}
select { min-width: 128px; padding: 7px 9px; }
#dataset-select { min-width: 250px; }
.workspace {
display: grid;
grid-template-columns: minmax(560px, 1.15fr) minmax(480px, 0.85fr);
gap: 12px;
}
.panel {
overflow: hidden;
border: 1px solid #1e3444;
border-radius: 12px;
background: rgba(10, 22, 31, 0.88);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.panel-title {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 38px;
padding: 0 12px;
border-bottom: 1px solid #1e3444;
color: #adc0ce;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
letter-spacing: 0.05em;
}
.router-status { display: inline-flex; align-items: center; gap: 12px; }
#phase-label { padding: 3px 7px; border-radius: 999px; color: #071019; font-size: 9px; letter-spacing: 0.12em; }
#phase-label[data-phase="async"] { background: #38e891; }
#phase-label[data-phase="sync"] { background: #9b87f5; }
#phase-label[data-phase="none"] { background: #6f8798; }
.model-panel {
display: grid;
grid-template-rows: auto minmax(540px, 72vh) auto;
}
#scene {
min-height: 440px;
cursor: grab;
background: linear-gradient(180deg, #0c1822, #09131c);
}
#scene:active { cursor: grabbing; }
#scene canvas { display: block; width: 100%; height: 100%; }
.arm-legend {
display: flex;
gap: 18px;
align-items: center;
min-height: 38px;
padding: 0 12px;
color: #a9bcc9;
font-size: 12px;
}
.arm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arm-legend i { width: 9px; height: 9px; border-radius: 50%; }
.left-arm { background: #4d9fe8; }
.right-arm { background: #ed883f; }
.base-body { background: #a7b4bd; }
.async-gate { background: #38e891; }
.sync-gate { background: #9b87f5; }
.arm-legend .hint { margin-left: auto; color: #657f92; }
.video-panel {
display: grid;
grid-template-rows: auto minmax(480px, 1fr) auto;
}
.video-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
gap: 2px;
min-height: 0;
background: #1e3444;
}
.camera-view {
position: relative;
min-width: 0;
min-height: 0;
margin: 0;
background: #02070a;
}
.camera-view.head-camera { grid-column: 1 / -1; }
.camera-view figcaption {
position: absolute;
z-index: 1;
top: 8px;
left: 9px;
padding: 4px 6px;
border-radius: 4px;
background: rgba(2, 7, 10, 0.72);
color: #c1d3df;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 9px;
letter-spacing: 0.08em;
pointer-events: none;
}
.camera-view video {
display: block;
width: 100%;
height: 100%;
min-height: 0;
object-fit: contain;
background: #02070a;
}
.sync-state {
color: #63d4a3;
font-size: 9px;
letter-spacing: 0.14em;
}
.attributes {
min-height: 38px;
padding: 10px 12px;
color: #7890a1;
font-size: 10px;
overflow-wrap: anywhere;
}
.annotation-panel {
margin-top: 12px;
}
.annotation-body {
display: grid;
grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
gap: 18px;
padding: 14px;
}
.annotation-context,
.annotation-timeline-area {
min-width: 0;
}
.annotation-role-row {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin-bottom: 10px;
}
.annotation-chip {
padding: 4px 8px;
border: 1px solid #2a4558;
border-radius: 999px;
background: #0b1a25;
color: #9db4c4;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 9px;
letter-spacing: 0.08em;
}
#annotation-split[data-split="train"] {
border-color: #2d755b;
color: #63d4a3;
}
#annotation-split[data-split="heldout"] {
border-color: #8c7040;
color: #ffd166;
}
.annotation-current-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.annotation-target-card,
.annotation-arm-card {
min-width: 0;
padding: 11px 12px;
border: 1px solid #243d4e;
border-radius: 9px;
background: #091721;
}
.annotation-target-card {
grid-column: 1 / -1;
min-height: 88px;
border-top: 2px solid #63d4a3;
background: #0b1c20;
}
.left-semantic-card {
box-shadow: inset 3px 0 #4d9fe8;
}
.right-semantic-card {
box-shadow: inset 3px 0 #ed883f;
}
.annotation-card-kicker {
margin: 0 0 6px;
color: #68869a;
font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
letter-spacing: 0.13em;
}
.annotation-semantic-key {
margin: 0 0 7px;
font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace;
letter-spacing: 0.04em;
}
.annotation-source-index {
margin: -2px 0 7px;
color: #7e9aac;
font-size: 9px;
}
.activity-relation {
margin: 8px 0 0;
color: #8fd8bd;
font-size: 10px;
letter-spacing: 0.06em;
}
.annotation-target-text,
.annotation-arm-card p:last-child {
margin: 0;
color: #e4edf4;
font-size: 14px;
line-height: 1.45;
overflow-wrap: anywhere;
}
.annotation-target-text {
color: #f0f7f3;
font-size: 15px;
}
.annotation-arm-card p:last-child {
color: #b8cbd8;
font-size: 12px;
}
.annotation-provenance {
margin: 10px 1px 0;
color: #607d91;
font-size: 9px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.annotation-timeline {
--annotation-progress: 0%;
display: grid;
gap: 8px;
padding: 5px 0 9px;
}
.annotation-lane {
display: grid;
grid-template-columns: 112px minmax(0, 1fr);
gap: 8px;
align-items: center;
}
.annotation-lane-label {
color: #7896aa;
font-size: 9px;
letter-spacing: 0.06em;
}
.annotation-track {
position: relative;
height: 34px;
overflow: hidden;
border: 1px solid #284153;
border-radius: 6px;
background: #06111a;
}
.annotation-track::after {
content: "";
position: absolute;
z-index: 4;
top: 0;
bottom: 0;
left: var(--annotation-progress);
width: 1px;
background: #ffffff;
box-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
pointer-events: none;
}
.annotation-block {
position: absolute;
top: 2px;
height: 28px;
min-width: 3px;
overflow: hidden;
padding: 0 5px;
border: 0;
border-radius: 3px;
color: #06111a;
font-size: 9px;
font-weight: 700;
line-height: 28px;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.78;
}
.annotation-block:hover,
.annotation-block.active {
z-index: 3;
opacity: 1;
filter: brightness(1.12);
}
.annotation-block.active {
outline: 2px solid #ffffff;
outline-offset: -2px;
}
.annotation-legend {
display: flex;
flex-wrap: wrap;
gap: 7px 12px;
color: #8ca5b6;
font-size: 10px;
}
.annotation-legend span {
display: inline-flex;
align-items: center;
gap: 5px;
}
.annotation-legend i {
width: 8px;
height: 8px;
border-radius: 2px;
}
.annotation-note {
margin: 10px 0 0;
color: #617f93;
font-size: 10px;
line-height: 1.5;
}
.transport {
display: flex;
align-items: center;
gap: 14px;
margin-top: 12px;
padding: 12px;
}
.play-button {
width: 42px;
height: 42px;
padding: 0;
border-radius: 50%;
background: #d8edf9;
color: #071019;
font-size: 16px;
}
.play-button:hover { background: #ffffff; }
.timeline-wrap {
position: relative;
display: grid;
flex: 1;
gap: 8px;
min-width: 180px;
}
.timeline-meta {
display: flex;
justify-content: space-between;
gap: 16px;
color: #829aac;
font-size: 11px;
}
#timeline { width: 100%; accent-color: #63bdf1; }
#router-markers { position: absolute; inset: 29px 8px auto 8px; height: 18px; pointer-events: none; }
#router-markers span { position: absolute; bottom: 0; transform: translateX(-50%); color: #ffd166; font: 8px ui-monospace, monospace; white-space: nowrap; }
#router-markers span::after { content: ""; position: absolute; top: 11px; left: 50%; width: 1px; height: 12px; background: #ffd166; opacity: 0.75; }
.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-variant-numeric: tabular-nums;
}
.rate-control { min-width: 80px; }
#status {
min-width: 92px;
color: #63d4a3;
font-size: 11px;
text-align: right;
}
@media (max-width: 1100px) {
.workspace { grid-template-columns: 1fr; }
.annotation-body { grid-template-columns: 1fr; }
.model-panel { grid-template-rows: auto minmax(460px, 60vh) auto; }
.video-panel { grid-template-rows: auto minmax(420px, 60vw) auto; }
}
@media (max-width: 700px) {
.app-shell { padding: 10px; }
.topbar { align-items: start; flex-direction: column; }
.workspace { grid-template-columns: minmax(0, 1fr); }
.model-panel { grid-template-rows: auto 430px auto; }
.video-panel { grid-template-rows: auto auto auto; }
.video-grid { grid-template-rows: auto auto; }
.camera-view video { aspect-ratio: 4 / 3; }
.transport { align-items: end; flex-wrap: wrap; }
.timeline-wrap { order: 3; flex-basis: 100%; }
.timeline-meta { align-items: start; flex-direction: column; gap: 3px; }
.arm-legend .hint { display: none; }
#dataset-select { min-width: 210px; }
#status { margin-left: auto; }
.annotation-body { padding: 10px; }
.annotation-current-grid { grid-template-columns: 1fr; }
.annotation-lane { grid-template-columns: 1fr; gap: 3px; }
.annotation-track { height: 30px; }
.annotation-block { height: 24px; line-height: 24px; }
}