diff --git a/webui/css/components.css b/webui/css/components.css
new file mode 100644
index 0000000..66c6948
--- /dev/null
+++ b/webui/css/components.css
@@ -0,0 +1,1568 @@
+/* Shared component rules extracted from styles.css */`r`n`r`n.btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ min-width: 0;
+ min-height: var(--control-height);
+ padding: 0 12px;
+ border: 1px solid var(--border-strong);
+ border-radius: var(--radius);
+ color: var(--text);
+ background: var(--surface);
+ font-size: 15px;
+ font-weight: 500;
+ line-height: 1;
+ white-space: nowrap;
+ transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
+}
+
+.btn:hover {
+ border-color: var(--hover-border);
+ background: var(--surface-muted);
+}
+
+.btn:active {
+ background: var(--surface-soft);
+}
+
+.btn:disabled {
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+
+.btn.isBusy {
+ cursor: progress;
+ opacity: 0.85;
+ pointer-events: none;
+ position: relative;
+}
+
+.btn.isBusy .btnIcon {
+ visibility: hidden;
+}
+
+.btn.isBusy::before {
+ position: absolute;
+ left: 12px;
+ top: 50%;
+ width: 14px;
+ height: 14px;
+ margin-top: -7px;
+ content: "";
+ border-radius: 50%;
+ border: 2px solid currentColor;
+ border-top-color: transparent;
+ opacity: 0.85;
+ animation: btnSpin 720ms linear infinite;
+}
+
+.btn.isBusy:not(:has(.btnIcon))::before {
+ position: relative;
+ left: 0;
+ top: 0;
+ margin: 0 6px 0 0;
+ display: inline-block;
+}
+
+@keyframes btnSpin {
+ to { transform: rotate(360deg); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .btn.isBusy::before {
+ animation-duration: 2s;
+ }
+}
+
+.btn:focus-visible,
+.tabBtn:focus-visible {
+ outline: none;
+ box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
+}
+
+/* Button kbd hint: render data-kbd badge when [data-kbd-mod] is present */
+.btn[data-kbd]::after {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: 6px;
+ padding: 0 6px;
+ height: 18px;
+ border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
+ border-bottom-width: 2px;
+ border-radius: 4px;
+ color: inherit;
+ background: color-mix(in oklab, var(--surface) 30%, transparent);
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
+ font-size: 12px;
+ font-weight: 500;
+ letter-spacing: 0.04em;
+ line-height: 1;
+ content: attr(data-kbd-prefix) attr(data-kbd);
+ pointer-events: none;
+ opacity: 0.55;
+ transition: opacity var(--motion-fast);
+}
+
+.btn[data-kbd]:hover::after {
+ opacity: 1;
+}
+
+@media (max-width: 900px) {
+ .btn[data-kbd]::after {
+ display: none;
+ }
+}
+
+.btnIcon {
+ display: inline-flex;
+ flex: 0 0 16px;
+ width: 16px;
+ height: 16px;
+}
+
+.btnIcon svg {
+ width: 16px;
+ height: 16px;
+}
+
+.btnPrimary {
+ position: relative;
+ color: var(--on-primary);
+ border-color: transparent;
+ background:
+ linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
+ linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.32) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
+ 0 6px 16px -4px rgba(245, 158, 11, 0.5),
+ 0 1px 3px rgba(63, 98, 18, 0.25);
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
+ isolation: isolate;
+}
+
+.btnPrimary::before {
+ position: absolute;
+ inset: -2px;
+ z-index: -1;
+ content: "";
+ border-radius: inherit;
+ padding: 2px;
+ background: conic-gradient(from 0deg, #fcd34d, #4f46e5, #fcd34d);
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
+ -webkit-mask-composite: xor;
+ mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
+ mask-composite: exclude;
+ opacity: 0;
+ transition: opacity 200ms ease;
+}
+
+.btnPrimary:hover {
+ color: var(--on-primary);
+ transform: translateY(-1px);
+ background:
+ linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
+ linear-gradient(135deg, #f9a8d4 0%, #fcd34d 50%, #f59e0b 100%);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.4) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
+ 0 10px 24px -4px rgba(245, 158, 11, 0.62),
+ 0 2px 4px rgba(63, 98, 18, 0.3);
+}
+
+.btnPrimary:hover::before {
+ opacity: 1;
+ animation: btnConic 1.6s linear infinite;
+}
+
+.btnPrimary:active {
+ transform: translateY(0);
+ background: linear-gradient(135deg, #d97706, #92400e);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
+}
+
+@keyframes btnConic {
+ to { --conic-angle: 360deg; }
+}
+
+.btnSoft {
+ color: var(--text-strong);
+ border-color: var(--border);
+ background: linear-gradient(180deg, var(--surface), var(--surface-soft));
+ box-shadow: 0 1px 0 var(--hairline) inset, 0 1px 2px rgba(40, 30, 50, 0.04);
+}
+
+.btnSoft:hover {
+ color: var(--text-strong);
+ border-color: var(--primary-border);
+ background: linear-gradient(180deg, var(--surface), var(--primary-soft));
+ box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(245, 158, 11, 0.18);
+}
+
+.btnGhost {
+ color: var(--muted);
+ border-color: transparent;
+ background: transparent;
+}
+
+.btnGhost:hover {
+ color: var(--text-strong);
+ border-color: var(--border);
+ background: var(--surface-muted);
+}
+
+.btnDanger {
+ position: relative;
+ color: var(--on-primary);
+ border-color: transparent;
+ background:
+ linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
+ linear-gradient(135deg, #fb7185 0%, #ef4444 50%, #b91c1c 100%);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.32) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
+ 0 6px 16px -4px rgba(220, 38, 38, 0.5),
+ 0 1px 3px rgba(127, 29, 29, 0.25);
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
+}
+
+.btnDanger:hover {
+ color: var(--on-primary);
+ transform: translateY(-1px);
+ background:
+ linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
+ linear-gradient(135deg, #fda4af 0%, #fb7185 50%, #ef4444 100%);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.4) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
+ 0 10px 24px -4px rgba(220, 38, 38, 0.62),
+ 0 2px 4px rgba(127, 29, 29, 0.3);
+}
+
+.btnDanger:active {
+ transform: translateY(0);
+ background: linear-gradient(135deg, #b91c1c, #7f1d1d);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
+}
+
+.btnDangerSoft {
+ color: var(--danger);
+ border-color: var(--danger-border);
+ background: var(--danger-soft);
+ box-shadow: 0 1px 0 var(--hairline) inset;
+}
+
+.btnDangerSoft:hover {
+ color: var(--danger);
+ border-color: var(--danger);
+ background: var(--danger-soft-hover);
+ box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(220, 38, 38, 0.32);
+}
+
+.btn.small {
+ min-height: 28px;
+ padding: 0 9px;
+ font-size: 14px;
+}
+
+.btnIconOnly {
+ width: var(--control-height);
+ padding: 0;
+}
+
+/* Theme toggle: show sun in dark mode, moon in light mode */
+.themeIconSun,
+.themeIconMoon {
+ display: none;
+}
+
+:root[data-theme="dark"] .themeIconSun {
+ display: inline-flex;
+}
+
+:root:not([data-theme="dark"]) .themeIconMoon {
+ display: inline-flex;
+}
+
+.tabBtn {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 10px;
+ width: 100%;
+ min-width: 0;
+ min-height: 38px;
+ padding: 0 12px 0 18px;
+ border: 1px solid transparent;
+ border-radius: var(--radius-md);
+ color: var(--muted);
+ background: transparent;
+ font-size: var(--text-base);
+ font-weight: 500;
+ text-align: left;
+ white-space: nowrap;
+ letter-spacing: var(--tracking-tight);
+ counter-increment: tabIdx;
+ transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), padding var(--motion-fast);
+}
+
+/* Channel slot ID — small mono number prefix */
+.tabBtn::before {
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 11px;
+ font-weight: 600;
+ letter-spacing: 0.06em;
+ color: var(--muted-soft);
+ content: counter(tabIdx, decimal-leading-zero);
+ margin-right: 2px;
+ display: inline-block;
+ opacity: 0.7;
+ transition: color var(--motion-fast), opacity var(--motion-fast);
+}
+
+/* Right-side mini cyan dot on hover */
+.tabBtn::after {
+ position: absolute;
+ right: 10px;
+ top: 50%;
+ transform: translateY(-50%) scale(0.4);
+ width: 5px;
+ height: 5px;
+ border-radius: 50%;
+ background: var(--secondary);
+ box-shadow: 0 0 6px var(--secondary);
+ content: "";
+ opacity: 0;
+ transition: opacity var(--motion-fast), transform var(--motion-fast);
+}
+
+.tabBtn:hover {
+ color: var(--text);
+ background: color-mix(in oklab, var(--surface-muted) 70%, var(--primary-soft) 30%);
+}
+
+.tabBtn:hover::before {
+ color: var(--primary);
+ opacity: 1;
+}
+
+.tabBtn:hover::after {
+ opacity: 0.7;
+ transform: translateY(-50%) scale(1);
+}
+
+.tabBtn.active {
+ color: var(--text-strong);
+ background:
+ linear-gradient(90deg, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
+ color-mix(in oklab, var(--surface-muted) 50%, var(--primary-soft) 50%);
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent);
+}
+
+.tabBtn.active::before {
+ color: var(--primary);
+ opacity: 1;
+}
+
+.tabBtn.active::after {
+ opacity: 1;
+ transform: translateY(-50%) scale(1);
+ background: var(--primary);
+ box-shadow: 0 0 8px var(--primary);
+}
+
+.tabIcon {
+ display: inline-flex;
+ flex: 0 0 16px;
+ width: 16px;
+ height: 16px;
+ color: var(--muted-soft);
+ transition: color var(--motion-fast);
+}
+
+.tabBtn.active .tabIcon,
+.tabBtn:hover .tabIcon {
+ color: var(--primary);
+}
+
+.tabIcon svg {
+ width: 16px;
+ height: 16px;
+}
+
+.tabText {
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.tabBtn[data-badge]:not([data-badge="0"])::after {
+ margin-left: auto;
+ padding: 1px 6px;
+ border-radius: 99px;
+ background: var(--surface-muted);
+ color: var(--muted);
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
+ font-size: 12px;
+ font-variant-numeric: tabular-nums;
+ line-height: 1.4;
+ content: attr(data-badge);
+}
+
+.tabBtn.active[data-badge]:not([data-badge="0"])::after {
+ background: var(--primary);
+ color: var(--on-primary);
+}
+
+.panels {
+ min-width: 0;
+ max-width: var(--panel-max);
+}
+
+.panel {
+ position: relative;
+ overflow: hidden;
+ min-width: 0;
+ padding: 22px 22px 24px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ background:
+ radial-gradient(at 0% 0%, color-mix(in oklab, var(--primary) 6%, transparent), transparent 45%),
+ radial-gradient(at 100% 100%, color-mix(in oklab, var(--secondary) 5%, transparent), transparent 45%),
+ var(--surface);
+ box-shadow: var(--shadow-soft);
+ transition: border-color var(--motion), box-shadow var(--motion);
+}
+
+.panel::before {
+ position: absolute;
+ inset: 0 0 auto 0;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 60%, transparent), color-mix(in oklab, var(--secondary) 60%, transparent), transparent);
+ opacity: 0.5;
+}
+
+.panel.active {
+ animation: panelFadeIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
+}
+
+.panel.active:hover {
+ border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
+}
+
+@keyframes panelFadeIn {
+ from { opacity: 0; transform: translateY(4px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .panel.active {
+ animation: none;
+ }
+}
+
+.panel.cardLog {
+ overflow: hidden;
+}
+
+.panel[hidden] {
+ display: none !important;
+}
+
+.sectionTitle {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ min-width: 0;
+ margin: 22px 0 12px;
+ padding: 6px 0 8px;
+ color: var(--muted);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ line-height: 1.3;
+ border-bottom: 1px solid var(--border);
+ position: sticky;
+ top: 64px;
+ z-index: 4;
+ background: linear-gradient(180deg, var(--surface) 70%, color-mix(in oklab, var(--surface) 0%, transparent));
+ backdrop-filter: blur(6px);
+ transition: box-shadow var(--motion-fast);
+ counter-increment: sectionIdx;
+}
+
+.panels {
+ counter-reset: sectionIdx;
+}
+
+/* When sticky-pinned (top:64px is reached), elevate with a subtle shadow */
+.sectionTitle:not(.cardTitle):not(summary) {
+ box-shadow: 0 0 0 0 transparent;
+}
+
+@supports (position: sticky) {
+ .sectionTitle.isStuck {
+ box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.12), 0 1px 0 var(--border);
+ }
+}
+
+:root[data-theme="dark"] .sectionTitle.isStuck {
+ box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.5), 0 1px 0 var(--border);
+}
+
+.cardTitle.sectionTitle,
+summary.sectionTitle {
+ position: static;
+ background: transparent;
+ backdrop-filter: none;
+}
+
+/* Section number (mono leading-zero) replaces the dot */
+.sectionTitle::before {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 22px;
+ height: 16px;
+ padding: 0 5px;
+ border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
+ border-radius: 4px;
+ background: color-mix(in oklab, var(--primary) 8%, transparent);
+ color: var(--primary);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 11px;
+ font-weight: 700;
+ letter-spacing: 0.04em;
+ flex: 0 0 auto;
+ content: "§ " counter(sectionIdx, decimal-leading-zero);
+}
+
+/* Trailing line that extends to the right edge */
+.sectionTitle::after {
+ flex: 1 1 auto;
+ height: 1px;
+ margin-left: 4px;
+ content: "";
+ background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), transparent);
+}
+
+.cardTitle.sectionTitle::before,
+summary.sectionTitle::before,
+.cardTitle.sectionTitle::after,
+summary.sectionTitle::after {
+ display: none;
+}
+
+.panel > .sectionTitle:first-child {
+ margin-top: 0;
+}
+
+/* Headline-style section titles: when used as a card heading or nested heading,
+ keep the original strong color and bigger size. */
+.cardTitle.sectionTitle,
+summary.sectionTitle {
+ margin: 0;
+ padding: 0 0 12px;
+ color: var(--text-strong);
+ font-size: 16px;
+ letter-spacing: -0.005em;
+ text-transform: none;
+}
+
+.row {
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+ min-width: 0;
+ margin-top: 10px;
+}
+
+.row.grid2,
+.row.grid3 {
+ display: grid;
+ align-items: start;
+ gap: 10px;
+}
+
+.row.grid2 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+}
+
+.row.grid3 {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+
+.inline2 {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0;
+ min-width: 0;
+ border-radius: var(--radius-md);
+ isolation: isolate;
+}
+
+.inline2 > .input,
+.inline2 > input {
+ border-radius: 0;
+ margin-left: -1px;
+}
+
+.inline2 > .input:first-child,
+.inline2 > input:first-child {
+ border-top-left-radius: var(--radius-md);
+ border-bottom-left-radius: var(--radius-md);
+ margin-left: 0;
+}
+
+.inline2 > .input:last-child,
+.inline2 > input:last-child {
+ border-top-right-radius: var(--radius-md);
+ border-bottom-right-radius: var(--radius-md);
+}
+
+.inline2 > .input:focus-visible,
+.inline2 > input:focus-visible {
+ z-index: 1;
+}
+
+.inline2 > span {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0 6px;
+ color: var(--muted);
+ font-size: var(--text-sm);
+}
+
+.rowActions {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+ margin-top: var(--space-4);
+ padding-top: var(--space-3);
+ border-top: 1px solid var(--border);
+}
+
+.rowActions .btnPrimary {
+ order: -1;
+}
+
+.label {
+ color: var(--muted);
+ font-size: 14px;
+ font-weight: 500;
+ line-height: 1.35;
+}
+
+.input,
+.small,
+.logSearchBox {
+ width: 100%;
+ min-width: 0;
+ min-height: var(--control-height);
+ padding: 0 10px;
+ border: 1px solid var(--border-strong);
+ border-radius: var(--radius-md);
+ color: var(--text);
+ background: var(--surface);
+ font-size: var(--text-base);
+ caret-color: var(--primary);
+ outline: none;
+ transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
+}
+
+input[type="number"].input,
+input[type="text"].input[id*="ip"],
+input[type="text"].input[id*="path"],
+input[type="text"].input[id*="port"],
+.statTrace,
+input[id^="yanghao_"][type="number"] {
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-feature-settings: "ss01", "tnum";
+}
+
+.input:hover,
+.small:hover,
+.logSearchBox:hover {
+ border-color: var(--primary-border);
+}
+
+.input:focus-visible,
+.small:focus-visible,
+.logSearchBox:focus-visible {
+ border-color: var(--primary);
+ background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface));
+ box-shadow:
+ 0 0 0 1px var(--primary),
+ 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent),
+ 0 0 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
+}
+
+.input::placeholder,
+.small::placeholder,
+.logSearchBox::placeholder {
+ color: var(--muted-soft);
+}
+
+select.input {
+ appearance: none;
+ -webkit-appearance: none;
+ background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
+ linear-gradient(135deg, var(--muted) 50%, transparent 50%);
+ background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
+ background-size: 5px 5px, 5px 5px;
+ background-repeat: no-repeat;
+ padding-right: 28px;
+}
+
+/* Number inputs: hide native spinner everywhere, keep arrow keys */
+input[type="number"] {
+ -moz-appearance: textfield;
+ appearance: textfield;
+ font-variant-numeric: tabular-nums;
+}
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+ appearance: none;
+ margin: 0;
+}
+
+/* Custom number stepper: wraps an input with .numStepperWrap, +/- buttons appear on hover/focus */
+.numStepperWrap {
+ position: relative;
+ display: block;
+}
+
+.numStepperWrap > input[type="number"] {
+ padding-right: 32px;
+}
+
+.numStepperBtns {
+ position: absolute;
+ right: 4px;
+ top: 50%;
+ transform: translateY(-50%);
+ display: inline-flex;
+ flex-direction: column;
+ gap: 1px;
+ opacity: 0;
+ transition: opacity var(--motion-fast);
+ pointer-events: none;
+}
+
+.numStepperWrap:hover .numStepperBtns,
+.numStepperWrap:focus-within .numStepperBtns {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+.numStepperBtn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 18px;
+ height: 12px;
+ padding: 0;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ color: var(--muted);
+ background: var(--surface);
+ cursor: pointer;
+ transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
+}
+
+.numStepperBtn:hover {
+ color: var(--text);
+ border-color: var(--hover-border);
+ background: var(--surface-muted);
+}
+
+.numStepperBtn:active {
+ background: var(--primary-soft);
+ color: var(--primary-accent-text);
+}
+
+.numStepperBtn svg {
+ width: 8px;
+ height: 8px;
+}
+
+.textarea {
+ min-height: 96px;
+ padding: 9px 10px;
+ line-height: 1.55;
+ resize: vertical;
+}
+
+.check {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ min-width: 0;
+ min-height: var(--control-height);
+ padding: 7px 10px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-md);
+ color: var(--text);
+ background: var(--surface-soft);
+ font-size: var(--text-base);
+ line-height: var(--leading-snug);
+ transition: border-color var(--motion-fast), background var(--motion-fast);
+}
+
+.check:hover {
+ border-color: var(--hover-border);
+ background: var(--surface-muted);
+}
+
+.check:has(input[type="checkbox"]:checked) {
+ border-color: var(--primary-border);
+ background: var(--primary-soft);
+}
+
+.check input[type="checkbox"] {
+ flex: 0 0 auto;
+ width: 15px;
+ height: 15px;
+ margin: 0;
+ accent-color: var(--primary);
+}
+
+/* Toggle switch variant: add class .check.isToggle, the checkbox renders as a sliding switch.
+ Apply by toggling .isToggle on existing .check labels. */
+.check.isToggle {
+ cursor: pointer;
+ user-select: none;
+}
+
+.check.isToggle input[type="checkbox"] {
+ appearance: none;
+ -webkit-appearance: none;
+ position: relative;
+ flex: 0 0 32px;
+ width: 32px;
+ height: 18px;
+ border-radius: 999px;
+ background: var(--border-strong);
+ cursor: pointer;
+ transition: background var(--motion-fast);
+}
+
+.check.isToggle input[type="checkbox"]::after {
+ position: absolute;
+ left: 2px;
+ top: 2px;
+ content: "";
+ width: 14px;
+ height: 14px;
+ border-radius: 50%;
+ background: var(--surface);
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
+ transition: transform var(--motion-fast), background var(--motion-fast);
+}
+
+.check.isToggle input[type="checkbox"]:checked {
+ background: linear-gradient(90deg, var(--primary), var(--secondary));
+ box-shadow: 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
+}
+
+.check.isToggle input[type="checkbox"]:checked::after {
+ transform: translateX(14px);
+ background: #fff;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px color-mix(in oklab, var(--primary) 40%, transparent);
+}
+
+.check.isToggle input[type="checkbox"]:focus-visible {
+ outline: none;
+ box-shadow: var(--focus-ring), 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
+}
+
+.check span {
+ min-width: 0;
+ overflow-wrap: anywhere;
+}
+
+.hint {
+ min-width: 0;
+ color: var(--muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+ overflow-wrap: anywhere;
+}
+
+/* Empty-state hint inside table / chart / reservations: dashed framed placeholder */
+.table > .hint:only-child,
+.chart > .hint:only-child,
+.reservationsContent > .hint:only-child {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ min-height: 80px;
+ padding: 24px 16px;
+ border: 1px dashed var(--border);
+ border-radius: var(--radius-md);
+ background: color-mix(in oklab, var(--surface-soft) 60%, transparent);
+ color: var(--muted-soft);
+ font-size: var(--text-sm);
+ text-align: center;
+}
+
+.table > .hint:only-child::before,
+.chart > .hint:only-child::before,
+.reservationsContent > .hint:only-child::before {
+ content: "";
+ width: 28px;
+ height: 28px;
+ flex: 0 0 28px;
+ background-color: currentColor;
+ -webkit-mask: url("data:image/svg+xml;utf8,") no-repeat center / contain;
+ mask: url("data:image/svg+xml;utf8,") no-repeat center / contain;
+ opacity: 0.55;
+}
+
+.divider {
+ height: 1px;
+ margin: 16px 0;
+ background: var(--border);
+}
+
+.table {
+ min-width: 0;
+ overflow: hidden;
+ margin-top: 12px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-md);
+ background: var(--surface);
+}
+
+.tableRow {
+ position: relative;
+ display: grid;
+ grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.7fr) minmax(54px, 0.45fr);
+ gap: 12px;
+ min-width: 0;
+ padding: 11px 14px 11px 18px;
+ border-top: 1px solid var(--border);
+ color: var(--text);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+ transition: background var(--motion-fast), padding var(--motion-fast);
+}
+
+/* Left-side hover accent stripe */
+.tableRow:not(.tableHead)::before {
+ position: absolute;
+ left: 0;
+ top: 8px;
+ bottom: 8px;
+ width: 2px;
+ content: "";
+ border-radius: 0 2px 2px 0;
+ background: linear-gradient(180deg, var(--primary), var(--secondary));
+ opacity: 0;
+ transition: opacity var(--motion-fast);
+}
+
+.tableRow:not(.tableHead):hover::before {
+ opacity: 1;
+}
+
+.tableRow:not(.tableHead) > div:not(:last-child) {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.tableRow:not(.tableHead) > div:not(:last-child):hover {
+ white-space: normal;
+ overflow-wrap: anywhere;
+}
+
+.tableRow:not(.tableHead):hover {
+ background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
+}
+
+.tableRow:nth-child(odd):not(.tableHead) {
+ background: color-mix(in oklab, var(--surface-soft) 50%, transparent);
+}
+
+.tableRow:nth-child(odd):not(.tableHead):hover {
+ background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
+}
+
+.tableRow:first-child {
+ border-top: 0;
+}
+
+.tableRow > div {
+ min-width: 0;
+ overflow-wrap: anywhere;
+}
+
+.tableRow .mono {
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-variant-numeric: tabular-nums;
+ font-feature-settings: "ss01";
+ color: var(--muted);
+}
+
+.tableHead {
+ position: sticky;
+ top: 0;
+ z-index: 1;
+ color: var(--primary);
+ background:
+ linear-gradient(90deg, color-mix(in oklab, var(--primary) 8%, transparent), transparent 60%),
+ var(--surface-muted);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 12px;
+ font-weight: 700;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ border-bottom: 1px solid color-mix(in oklab, var(--primary) 25%, var(--border));
+}
+
+.mono {
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
+ font-feature-settings: "ss01", "tnum";
+}
+
+/* ==================== Skeleton placeholders ==================== */
+@keyframes skeletonShimmer {
+ 0% { background-position: -200% 0; }
+ 100% { background-position: 200% 0; }
+}
+
+.skeleton {
+ position: relative;
+ overflow: hidden;
+ background:
+ linear-gradient(90deg,
+ transparent 0,
+ color-mix(in oklab, var(--primary) 22%, transparent) 35%,
+ color-mix(in oklab, var(--secondary) 22%, transparent) 65%,
+ transparent 100%) var(--surface-muted);
+ background-size: 200% 100%;
+ background-repeat: no-repeat;
+ animation: skeletonShimmer 1.8s linear infinite;
+ border-radius: var(--radius-sm);
+ color: transparent !important;
+ user-select: none;
+ pointer-events: none;
+}
+
+.skeleton * {
+ visibility: hidden;
+}
+
+.skeletonText {
+ display: inline-block;
+ width: var(--skeleton-w, 60%);
+ height: 0.85em;
+ vertical-align: middle;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .skeleton {
+ animation: none;
+ }
+}
+
+/* Connected button group: shared border, no doubled middle border */
+.btnGroup {
+ display: inline-flex;
+ align-items: stretch;
+ isolation: isolate;
+}
+
+.btnGroup > .btn {
+ border-radius: 0;
+ margin-left: -1px;
+}
+
+.btnGroup > .btn:first-child {
+ border-top-left-radius: var(--radius-md);
+ border-bottom-left-radius: var(--radius-md);
+ margin-left: 0;
+}
+
+.btnGroup > .btn:last-child {
+ border-top-right-radius: var(--radius-md);
+ border-bottom-right-radius: var(--radius-md);
+}
+
+.btnGroup > .btn:hover,
+.btnGroup > .btn:focus-visible {
+ z-index: 1;
+}
+
+/* Scroll-to-top floating button */
+.scrollTopBtn {
+ position: fixed;
+ right: 20px;
+ bottom: 70px;
+ z-index: 70;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 38px;
+ height: 38px;
+ padding: 0;
+ border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
+ border-radius: 50%;
+ background:
+ radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%),
+ color-mix(in oklab, var(--surface) 75%, transparent);
+ color: var(--muted);
+ cursor: pointer;
+ box-shadow:
+ 0 4px 16px -2px color-mix(in oklab, var(--primary) 30%, transparent),
+ 0 2px 6px rgba(0, 0, 0, 0.1);
+ backdrop-filter: blur(10px);
+ transition: opacity 180ms ease, transform 180ms ease, color var(--motion-fast),
+ border-color var(--motion-fast), background var(--motion-fast),
+ box-shadow var(--motion-fast);
+}
+
+.scrollTopBtn[hidden] {
+ display: none !important;
+}
+
+.scrollTopBtn:hover {
+ color: var(--primary);
+ border-color: var(--primary);
+ background:
+ radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 26%, transparent), transparent 60%),
+ var(--surface);
+ transform: translateY(-2px);
+ box-shadow:
+ 0 6px 24px -2px color-mix(in oklab, var(--primary) 50%, transparent),
+ 0 2px 8px rgba(0, 0, 0, 0.12);
+}
+
+@media (max-width: 640px) {
+ .scrollTopBtn {
+ right: 12px;
+ bottom: 80px;
+ }
+}
+
+/* Device select wrapper with status dot */
+.deviceSelectWrap {
+ position: relative;
+ display: block;
+}
+
+.deviceSelectWrap select {
+ padding-right: 40px;
+}
+
+.deviceSelectDot {
+ position: absolute;
+ right: 28px;
+ top: 50%;
+ transform: translateY(-50%);
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--muted-soft);
+ box-shadow: 0 0 0 2px color-mix(in oklab, var(--muted-soft) 16%, transparent);
+ pointer-events: none;
+}
+
+.deviceSelectDot[data-state="ok"] {
+ background: var(--success);
+ box-shadow: 0 0 0 2px color-mix(in oklab, var(--success) 16%, transparent);
+}
+
+/* ==================== Tooltip (data-tooltip) ==================== */
+[data-tooltip] {
+ position: relative;
+}
+
+[data-tooltip]::before,
+[data-tooltip]::after {
+ position: absolute;
+ left: 50%;
+ bottom: calc(100% + 8px);
+ transform: translateX(-50%) translateY(2px);
+ pointer-events: none;
+ opacity: 0;
+ transition: opacity 120ms ease, transform 120ms ease;
+ z-index: 50;
+}
+
+[data-tooltip]::before {
+ content: attr(data-tooltip);
+ padding: 6px 10px;
+ border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
+ border-radius: var(--radius-sm);
+ background: color-mix(in oklab, var(--surface) 90%, transparent);
+ color: var(--text-strong);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.04em;
+ text-transform: none;
+ white-space: nowrap;
+ box-shadow:
+ 0 0 0 1px color-mix(in oklab, var(--primary) 20%, transparent),
+ 0 4px 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
+ backdrop-filter: blur(10px);
+}
+
+:root[data-theme="dark"] [data-tooltip]::before {
+ box-shadow:
+ 0 0 0 1px color-mix(in oklab, var(--primary) 28%, transparent),
+ 0 4px 14px -2px color-mix(in oklab, var(--primary) 50%, transparent);
+}
+
+[data-tooltip]::after {
+ content: "";
+ width: 8px;
+ height: 8px;
+ bottom: calc(100% + 4px);
+ border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
+ border-top: 0;
+ border-left: 0;
+ background: color-mix(in oklab, var(--surface) 90%, transparent);
+ transform: translateX(-50%) rotate(45deg);
+}
+
+[data-tooltip]:hover::before,
+[data-tooltip]:hover::after,
+[data-tooltip]:focus-visible::before,
+[data-tooltip]:focus-visible::after {
+ opacity: 1;
+ transform: translateX(-50%) translateY(0);
+}
+
+[data-tooltip]:hover::after,
+[data-tooltip]:focus-visible::after {
+ transform: translateX(-50%) rotate(45deg);
+}
+
+/* Position bottom (below the trigger) */
+[data-tooltip][data-tooltip-pos="bottom"]::before,
+[data-tooltip][data-tooltip-pos="bottom"]::after {
+ bottom: auto;
+ top: calc(100% + 8px);
+}
+
+[data-tooltip][data-tooltip-pos="bottom"]::after {
+ top: calc(100% + 4px);
+ border: 1px solid var(--border);
+ border-bottom: 0;
+ border-right: 0;
+}
+
+@media (max-width: 640px) {
+ [data-tooltip]::before,
+ [data-tooltip]::after { display: none; }
+}
+
+
+/* ==================== Shortcuts help overlay ==================== */
+.shortcutsOverlay {
+ position: fixed;
+ inset: 0;
+ z-index: 90;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 24px;
+ background: color-mix(in oklab, var(--bg) 70%, transparent);
+ backdrop-filter: blur(6px);
+ opacity: 0;
+ transition: opacity 160ms ease;
+}
+
+.shortcutsOverlay.isVisible {
+ opacity: 1;
+}
+
+.shortcutsCard {
+ position: relative;
+ width: min(420px, 100%);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ background: var(--surface);
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
+ overflow: hidden;
+ transform: translateY(8px) scale(0.98);
+ transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
+}
+
+.shortcutsCard::before {
+ position: absolute;
+ inset: 0 0 auto 0;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 70%, transparent), color-mix(in oklab, var(--secondary) 70%, transparent), transparent);
+ opacity: 0.7;
+}
+
+:root[data-theme="dark"] .shortcutsCard {
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
+}
+
+.shortcutsOverlay.isVisible .shortcutsCard {
+ transform: translateY(0) scale(1);
+}
+
+.shortcutsHeader {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 12px 14px 10px;
+ border-bottom: 1px solid var(--border);
+ background: var(--surface-soft);
+}
+
+.shortcutsTitle {
+ font-size: 15px;
+ font-weight: 600;
+ color: var(--text-strong);
+ letter-spacing: var(--tracking-tight);
+}
+
+.shortcutsClose {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 24px;
+ height: 24px;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--muted);
+ background: transparent;
+ cursor: pointer;
+ transition: color var(--motion-fast), background var(--motion-fast);
+}
+
+.shortcutsClose:hover {
+ color: var(--primary);
+ background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
+}
+
+.shortcutsList {
+ display: grid;
+ gap: 2px;
+ padding: 8px;
+}
+
+.shortcutsRow {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 8px 10px;
+ border-radius: var(--radius-sm);
+ font-size: var(--text-sm);
+ color: var(--text);
+}
+
+.shortcutsRow:hover {
+ background: var(--surface-soft);
+}
+
+.shortcutsDesc {
+ color: var(--text);
+}
+
+.shortcutsKeys {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+}
+
+.shortcutsKeys kbd {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 22px;
+ height: 22px;
+ padding: 0 6px;
+ border: 1px solid var(--border-strong);
+ border-bottom-width: 2px;
+ border-radius: 5px;
+ background: var(--surface);
+ color: var(--text-strong);
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
+ font-size: 13px;
+ letter-spacing: 0.04em;
+}
+
+.shortcutsPlus {
+ color: var(--muted-soft);
+ font-size: 12px;
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .shortcutsOverlay,
+ .shortcutsCard {
+ transition: none;
+ }
+}
+
+/* ==================== Toast ==================== */
+.toastContainer {
+ position: fixed;
+ right: 20px;
+ bottom: 20px;
+ z-index: 100;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ max-width: min(420px, calc(100vw - 40px));
+ pointer-events: none;
+}
+
+.toast {
+ display: grid;
+ grid-template-columns: 22px 1fr auto;
+ align-items: start;
+ gap: 10px;
+ padding: 12px 12px 12px 16px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-md);
+ background: var(--surface);
+ color: var(--text);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
+ pointer-events: auto;
+ animation: toastIn 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
+ position: relative;
+ overflow: hidden;
+}
+
+:root[data-theme="dark"] .toast {
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
+}
+
+.toast::before {
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ width: 3px;
+ content: "";
+ background: linear-gradient(180deg, var(--muted-soft), color-mix(in oklab, var(--muted-soft) 40%, transparent));
+}
+
+.toast-success {
+ border-color: color-mix(in oklab, var(--success) 30%, var(--border));
+}
+.toast-success::before { background: linear-gradient(180deg, var(--success), color-mix(in oklab, var(--success) 30%, transparent)); }
+.toast-success .toastIcon {
+ color: var(--success);
+ background: color-mix(in oklab, var(--success) 12%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--success) 60%, transparent);
+}
+
+.toast-error {
+ border-color: color-mix(in oklab, var(--danger) 30%, var(--border));
+}
+.toast-error::before { background: linear-gradient(180deg, var(--danger), color-mix(in oklab, var(--danger) 30%, transparent)); }
+.toast-error .toastIcon {
+ color: var(--danger);
+ background: color-mix(in oklab, var(--danger) 12%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--danger) 60%, transparent);
+}
+
+.toast-warn {
+ border-color: color-mix(in oklab, var(--warning) 30%, var(--border));
+}
+.toast-warn::before { background: linear-gradient(180deg, var(--warning), color-mix(in oklab, var(--warning) 30%, transparent)); }
+.toast-warn .toastIcon {
+ color: var(--warning);
+ background: color-mix(in oklab, var(--warning) 12%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--warning) 60%, transparent);
+}
+
+.toast-info::before { background: linear-gradient(180deg, var(--primary), var(--secondary)); }
+.toast-info .toastIcon {
+ color: var(--primary);
+ background: color-mix(in oklab, var(--primary) 14%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 60%, transparent);
+}
+
+.toastIcon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 22px;
+ height: 22px;
+ margin-top: 0;
+ border-radius: 50%;
+ flex: 0 0 22px;
+}
+
+.toastIcon svg {
+ width: 14px;
+ height: 14px;
+}
+
+.toastBody {
+ min-width: 0;
+ color: var(--text);
+ overflow-wrap: anywhere;
+}
+
+.toastClose {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 22px;
+ height: 22px;
+ margin: -2px -2px 0 4px;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--muted-soft);
+ background: transparent;
+ cursor: pointer;
+ transition: background var(--motion-fast), color var(--motion-fast);
+}
+
+.toastClose:hover {
+ color: var(--primary);
+ background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
+ box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
+}
+
+.toast.isLeaving {
+ animation: toastOut 220ms ease forwards;
+}
+
+@keyframes toastIn {
+ from { opacity: 0; transform: translateY(8px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+@keyframes toastOut {
+ to { opacity: 0; transform: translateY(-4px); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .toast,
+ .toast.isLeaving {
+ animation: none;
+ }
+}
diff --git a/webui/css/layout.css b/webui/css/layout.css
new file mode 100644
index 0000000..e25d905
--- /dev/null
+++ b/webui/css/layout.css
@@ -0,0 +1,787 @@
+/* Layout rules extracted from styles.css */`r`n`r`n.app {
+ width: min(var(--page-max), 100%);
+ margin: 0 auto;
+ padding: var(--page-pad);
+ animation: appFadeIn 220ms ease both;
+}
+
+@keyframes appFadeIn {
+ from { opacity: 0; transform: translateY(2px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .app { animation: none; }
+}
+
+.header {
+ position: sticky;
+ top: 12px;
+ z-index: 20;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-4);
+ padding: 14px 18px;
+ border: 1px solid var(--border);
+ background:
+ linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, transparent), transparent 60%),
+ var(--header-bg);
+ border-radius: var(--radius-lg);
+ box-shadow: var(--shadow);
+ backdrop-filter: blur(14px) saturate(1.1);
+ animation: surfaceIn var(--motion-slow) both;
+ transition: box-shadow var(--motion), border-color var(--motion);
+}
+
+.header.isScrolled {
+ border-color: var(--primary-border);
+ box-shadow: 0 6px 24px -2px color-mix(in oklab, var(--primary) 20%, transparent), 0 1px 0 var(--border) inset;
+}
+
+:root[data-theme="dark"] .header.isScrolled {
+ box-shadow: 0 6px 24px -2px color-mix(in oklab, var(--primary) 28%, transparent), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
+}
+
+/* Top hairline gradient */
+.header::before {
+ position: absolute;
+ inset: 0 0 auto;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--secondary) 65%, transparent), transparent);
+ opacity: 0.7;
+}
+
+/* Bottom sweep glow when scrolled */
+.header::after {
+ position: absolute;
+ inset: auto 0 -1px 0;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
+ background-size: 200% 100%;
+ opacity: 0;
+ transition: opacity 200ms ease;
+ animation: headerSweep 6s linear infinite;
+}
+
+.header.isScrolled::after {
+ opacity: 0.45;
+}
+
+@keyframes headerSweep {
+ to { background-position: 200% 0; }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .header::after { animation: none; }
+}
+
+.brandBlock {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ min-width: 220px;
+}
+
+.brandMark {
+ position: relative;
+ overflow: hidden;
+ display: grid;
+ place-items: center;
+ flex: 0 0 42px;
+ width: 42px;
+ height: 42px;
+ color: var(--on-primary);
+ background:
+ conic-gradient(from 215deg, #fcd34d, #f59e0b, #92400e, #4f46e5, #818cf8, #fcd34d);
+ border-radius: var(--radius-md);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.35) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.2) inset,
+ 0 4px 14px -2px rgba(245, 158, 11, 0.45),
+ 0 1px 3px rgba(0, 0, 0, 0.18);
+ transition: transform var(--motion), box-shadow var(--motion);
+}
+
+/* Specular highlight that drifts on idle */
+.brandMark::before {
+ position: absolute;
+ inset: 0;
+ content: "";
+ pointer-events: none;
+ background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.55), transparent 38%);
+ mix-blend-mode: screen;
+ animation: brandShine 9s ease-in-out infinite alternate;
+}
+
+/* Glassy inner ring */
+.brandMark::after {
+ position: absolute;
+ inset: 1px;
+ content: "";
+ pointer-events: none;
+ border-radius: calc(var(--radius-md) - 1px);
+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
+ mix-blend-mode: overlay;
+}
+
+.brandMark svg {
+ position: relative;
+ z-index: 1;
+ width: 22px;
+ height: 22px;
+ filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
+}
+
+@keyframes brandShine {
+ 0% { transform: translate(0, 0); }
+ 100% { transform: translate(8%, 6%); }
+}
+
+.brandBlock:hover .brandMark {
+ transform: translateY(-1px) scale(1.03);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.4) inset,
+ 0 -1px 0 rgba(0, 0, 0, 0.22) inset,
+ 0 8px 22px -4px rgba(245, 158, 11, 0.55),
+ 0 1px 3px rgba(0, 0, 0, 0.2);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .brandMark::before {
+ animation: none;
+ }
+}
+
+.title {
+ color: var(--text-strong);
+ font-size: var(--text-lg);
+ font-weight: 600;
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-tight);
+}
+
+.subtitle {
+ margin-top: 3px;
+ color: var(--muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.header-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 12px;
+ flex-wrap: wrap;
+ min-width: 0;
+}
+
+.actionGroup {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 6px;
+ flex-wrap: wrap;
+ padding: 0;
+ border: 0;
+ background: transparent;
+}
+
+.secondaryActions::before {
+ align-self: stretch;
+ width: 1px;
+ margin: 4px 8px 4px 2px;
+ background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 35%, transparent), transparent);
+ content: "";
+}
+
+.primaryActions {
+ border: 0;
+ background: transparent;
+}
+
+#btnTheme {
+ margin-left: 4px;
+}
+
+.workspaceShell {
+ display: grid;
+ grid-template-columns: var(--rail-width) minmax(0, 1fr);
+ grid-template-areas:
+ "rail workspace";
+ align-items: start;
+ gap: var(--shell-gap);
+ margin-top: 14px;
+}
+
+.workspaceShell > * {
+ min-width: 0;
+}
+
+.configRail {
+ position: sticky;
+ top: 106px;
+ grid-area: rail;
+ max-height: calc(100vh - 124px);
+ overflow: auto;
+}
+
+.workspaceShell .configRail {
+ position: sticky;
+ top: 106px;
+ align-self: start;
+}
+
+.configWorkspace {
+ grid-area: workspace;
+ min-width: 0;
+}
+
+.liveRail {
+ grid-area: workspace;
+ display: grid;
+ gap: var(--shell-gap);
+ min-width: 0;
+}
+
+.activityDock {
+ grid-area: workspace;
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: var(--shell-gap);
+ min-width: 0;
+}
+
+.monitorPanel {
+ display: grid;
+ grid-template-columns: minmax(320px, 640px);
+ gap: var(--shell-gap);
+}
+
+.monitorPanel[hidden] {
+ display: none !important;
+}
+
+.cardShot {
+ display: flex;
+ flex-direction: column;
+}
+
+.card {
+ position: relative;
+ overflow: hidden;
+ min-width: 0;
+ min-height: 0;
+ padding: 18px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ background: var(--surface);
+ box-shadow: var(--shadow);
+ animation: surfaceIn var(--motion-slow) both;
+ transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion);
+}
+
+/* Top highlight hairline */
+.card::before {
+ position: absolute;
+ inset: 0 0 auto 0;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--secondary) 65%, transparent), transparent);
+ opacity: 0.45;
+ transition: opacity var(--motion);
+}
+
+.card:hover::before {
+ opacity: 0.85;
+}
+
+.cardShot {
+ animation-delay: 40ms;
+}
+
+.cardReservations {
+ animation-delay: 80ms;
+}
+
+.cardLog {
+ animation-delay: 120ms;
+}
+
+.card > * {
+ position: relative;
+ z-index: 1;
+}
+
+.card:hover {
+ border-color: var(--primary-border);
+ box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent), 0 12px 28px -10px color-mix(in oklab, var(--primary) 28%, transparent);
+}
+
+.cardScroll {
+ max-height: none;
+ overflow: visible;
+}
+
+.cardTitle {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ min-width: 0;
+ padding-bottom: 14px;
+ margin-bottom: 4px;
+ border-bottom: 1px solid var(--border);
+ color: var(--text-strong);
+ font-size: 17px;
+ font-weight: 600;
+ line-height: 1.25;
+ letter-spacing: var(--tracking-tight);
+}
+
+/* Status chip on the right of card titles, shows up when body.is-running */
+.cardTitle::after {
+ margin-left: auto;
+ padding: 0 8px;
+ height: 19px;
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ border: 1px solid color-mix(in oklab, var(--muted) 40%, transparent);
+ border-radius: 99px;
+ background: color-mix(in oklab, var(--muted) 12%, transparent);
+ color: var(--muted);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 11px;
+ font-weight: 700;
+ letter-spacing: 0.14em;
+ content: "READY";
+ flex-shrink: 0;
+ transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
+}
+
+body.is-running .cardTitle::after {
+ border-color: color-mix(in oklab, var(--success) 50%, transparent);
+ background: color-mix(in oklab, var(--success) 16%, transparent);
+ color: var(--success);
+ content: "● LIVE";
+}
+
+.cardTitle .sectionIcon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ flex: 0 0 28px;
+ width: 28px;
+ height: 28px;
+ border: 1px solid var(--primary-border);
+ border-radius: var(--radius-sm);
+ background:
+ linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, transparent), color-mix(in oklab, var(--secondary) 18%, transparent)),
+ var(--primary-soft);
+ color: var(--primary);
+ box-shadow: 0 0 12px -4px color-mix(in oklab, var(--primary) 40%, transparent);
+}
+
+.cardTitle .sectionIcon svg {
+ width: 14px;
+ height: 14px;
+}
+
+.sectionIcon {
+ display: inline-flex;
+ flex: 0 0 18px;
+ width: 18px;
+ height: 18px;
+ color: var(--primary);
+}
+
+.sectionIcon svg {
+ width: 18px;
+ height: 18px;
+}
+
+.configLayout {
+ display: contents;
+}
+
+.workspaceHeader {
+ position: relative;
+ display: flex;
+ align-items: flex-end;
+ justify-content: space-between;
+ gap: var(--space-4);
+ min-width: 0;
+ margin-bottom: var(--space-3);
+ padding: var(--space-4) var(--space-5);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-md);
+ background: var(--surface);
+}
+
+.workspaceHeader::before {
+ position: absolute;
+ left: 0;
+ top: var(--space-4);
+ bottom: var(--space-4);
+ width: 3px;
+ content: "";
+ border-radius: 0 3px 3px 0;
+ background: linear-gradient(180deg, var(--primary), var(--secondary));
+ box-shadow: 0 0 12px -2px color-mix(in oklab, var(--primary) 50%, transparent);
+}
+
+.workspaceHeader::after {
+ position: absolute;
+ inset: 0 0 auto 0;
+ height: 1px;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 50%, transparent), color-mix(in oklab, var(--secondary) 50%, transparent), transparent);
+ opacity: 0.5;
+}
+
+.workspaceEyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ color: var(--primary-accent-text);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 12px;
+ font-weight: 700;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+}
+
+.workspaceEyebrow::before {
+ width: 6px;
+ height: 6px;
+ flex: 0 0 6px;
+ border-radius: 50%;
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
+ box-shadow: 0 0 8px color-mix(in oklab, var(--primary) 60%, transparent);
+ content: "";
+}
+
+.workspaceTitle {
+ margin: 6px 0 0;
+ color: var(--text-strong);
+ font-size: 26px;
+ font-weight: 700;
+ line-height: 1.05;
+ letter-spacing: -0.02em;
+}
+
+.workspaceHint {
+ max-width: 360px;
+ color: var(--muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+ text-align: right;
+}
+
+.workspaceSearch {
+ position: relative;
+ display: flex;
+ align-items: center;
+ width: clamp(220px, 32vw, 360px);
+}
+
+.workspaceSearch input {
+ width: 100%;
+ min-height: 36px;
+ padding: 0 64px 0 30px;
+ border: 1px solid var(--border-strong);
+ border-radius: var(--radius-md);
+ color: var(--text);
+ background: var(--surface-soft);
+ font-size: var(--text-sm);
+ caret-color: var(--primary);
+ outline: none;
+ transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
+}
+
+.workspaceSearch input::-webkit-search-cancel-button {
+ display: none;
+}
+
+.workspaceSearch input:hover {
+ border-color: var(--primary-border);
+}
+
+.workspaceSearch input:focus-visible {
+ border-color: var(--primary);
+ background: color-mix(in oklab, var(--primary-soft) 30%, var(--surface));
+ box-shadow:
+ 0 0 0 1px var(--primary),
+ 0 0 0 4px color-mix(in oklab, var(--primary) 22%, transparent),
+ 0 0 16px -2px color-mix(in oklab, var(--primary) 45%, transparent);
+}
+
+/* Icon turns primary on focus */
+.workspaceSearch:focus-within .workspaceSearchIcon {
+ color: var(--primary);
+}
+
+.workspaceSearchIcon {
+ position: absolute;
+ left: 9px;
+ top: 50%;
+ width: 14px;
+ height: 14px;
+ margin-top: -7px;
+ color: var(--muted-soft);
+ pointer-events: none;
+ transition: color var(--motion-fast);
+}
+
+.workspaceSearchClear {
+ position: absolute;
+ right: 6px;
+ top: 50%;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 20px;
+ height: 20px;
+ margin-top: -10px;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--muted-soft);
+ background: transparent;
+ cursor: pointer;
+ transition: color var(--motion-fast), background var(--motion-fast);
+}
+
+.workspaceSearchClear:hover {
+ color: var(--text);
+ background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
+}
+
+.workspaceSearchKbd {
+ position: absolute;
+ right: 30px;
+ top: 50%;
+ transform: translateY(-50%);
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ height: 18px;
+ padding: 0 6px;
+ border: 1px solid color-mix(in oklab, var(--primary) 40%, var(--border-strong));
+ border-radius: 4px;
+ background: color-mix(in oklab, var(--primary) 6%, var(--surface));
+ color: var(--primary-accent-text);
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.06em;
+ pointer-events: none;
+ transition: opacity var(--motion-fast);
+}
+
+.workspaceSearchCount {
+ position: absolute;
+ right: 30px;
+ top: 50%;
+ transform: translateY(-50%);
+ padding: 1px 7px;
+ border-radius: 99px;
+ background: var(--primary-soft);
+ color: var(--primary-accent-text);
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
+ font-size: 12px;
+ font-variant-numeric: tabular-nums;
+ pointer-events: none;
+}
+
+.workspaceSearchCount[hidden] {
+ display: none;
+}
+
+.workspaceSearch:focus-within .workspaceSearchKbd,
+.workspaceSearch input:not(:placeholder-shown) ~ .workspaceSearchKbd {
+ opacity: 0;
+}
+
+@media (max-width: 640px) {
+ .workspaceSearchKbd {
+ display: none;
+ }
+}
+
+.row.isSearchHidden,
+.sectionTitle.isSearchHidden {
+ display: none !important;
+}
+
+.configSearchEmpty {
+ margin: 12px 0;
+ padding: 24px;
+ border: 1px dashed var(--border);
+ border-radius: var(--radius-md);
+ text-align: center;
+ color: var(--muted);
+}
+
+.sideNav {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+ margin-top: 14px;
+ padding: 8px;
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ background:
+ linear-gradient(180deg, color-mix(in oklab, var(--primary-soft) 50%, transparent), transparent 60%),
+ var(--surface-soft);
+ box-shadow: 0 1px 0 var(--hairline) inset;
+ counter-reset: tabIdx;
+ --tab-indicator-y: 6px;
+ --tab-indicator-h: 14px;
+ --tab-indicator-opacity: 0;
+}
+
+.sideNav::before {
+ position: absolute;
+ left: 6px;
+ top: var(--tab-indicator-y);
+ width: 3px;
+ height: var(--tab-indicator-h);
+ content: "";
+ border-radius: 3px;
+ background: linear-gradient(180deg, var(--primary), var(--secondary));
+ opacity: var(--tab-indicator-opacity);
+ box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent);
+ transition: top 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
+ height 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
+ opacity var(--motion-fast);
+ pointer-events: none;
+ transform-origin: center;
+}
+
+.sideNav.isBurst::before {
+ animation: tabBurst 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
+}
+
+@keyframes tabBurst {
+ 0% { transform: scaleY(1) scaleX(1); box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent); }
+ 35% { transform: scaleY(1.3) scaleX(1.6); box-shadow: 0 0 18px color-mix(in oklab, var(--primary) 90%, transparent); }
+ 100% { transform: scaleY(1) scaleX(1); box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .sideNav::before {
+ transition: opacity var(--motion-fast);
+ }
+ .sideNav.isBurst::before {
+ animation: none;
+ }
+}
+
+
+/* ==================== App footer ==================== */
+.appFooter {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin-top: 18px;
+ padding: 12px 16px;
+ border-top: 1px solid color-mix(in oklab, var(--primary) 22%, var(--border));
+ color: var(--muted);
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
+ font-size: 12px;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 4%, transparent));
+}
+
+.appFooterLeft,
+.appFooterRight {
+ display: inline-flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.appConnDot {
+ position: relative;
+ width: 7px;
+ height: 7px;
+ border-radius: 50%;
+ background: var(--muted-soft);
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--muted-soft) 16%, transparent);
+}
+
+.appConnDot[data-state="ok"] {
+ background: radial-gradient(circle at 30% 30%, #fcd34d, var(--success));
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 18%, transparent), 0 0 8px color-mix(in oklab, var(--success) 50%, transparent);
+}
+
+.appConnDot[data-state="ok"]::after {
+ position: absolute;
+ inset: -4px;
+ content: "";
+ border-radius: 50%;
+ border: 1px solid var(--success);
+ opacity: 0.5;
+ animation: footerRipple 2.4s ease-out infinite;
+}
+
+.appConnDot[data-state="error"] {
+ background: var(--danger);
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 18%, transparent), 0 0 8px color-mix(in oklab, var(--danger) 60%, transparent);
+ animation: statusPulse 2s ease-in-out infinite;
+}
+
+@keyframes footerRipple {
+ 0% { transform: scale(0.8); opacity: 0.6; }
+ 100% { transform: scale(2.0); opacity: 0; }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .appConnDot[data-state="ok"]::after { animation: none; }
+}
+
+.appConnText,
+.appFooterMeta {
+ font-variant-numeric: tabular-nums;
+ font-feature-settings: "ss01", "tnum";
+}
+
+.appFooterMeta em {
+ font-style: normal;
+ color: var(--text-strong);
+ letter-spacing: 0;
+ margin: 0 2px;
+}
+
+.hudPing em { color: var(--secondary); }
+.hudFps em { color: var(--primary); }
+
+.appFooterDivider {
+ color: var(--muted-soft);
+ opacity: 0.6;
+}
+
+@media (max-width: 640px) {
+ .appFooter {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+ .appFooter .hudPing,
+ .appFooter .hudFps {
+ display: none;
+ }
+}
diff --git a/webui/index.html b/webui/index.html
index 04738ab..b40faf8 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -20,9 +20,11 @@
})();
-
-
-
+
+
+
+
+
diff --git a/webui/styles.css b/webui/styles.css
index fbfbb0b..5e095be 100644
--- a/webui/styles.css
+++ b/webui/styles.css
@@ -93,507 +93,6 @@ body.is-running::before {
}
-.app {
- width: min(var(--page-max), 100%);
- margin: 0 auto;
- padding: var(--page-pad);
- animation: appFadeIn 220ms ease both;
-}
-
-@keyframes appFadeIn {
- from { opacity: 0; transform: translateY(2px); }
- to { opacity: 1; transform: translateY(0); }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .app { animation: none; }
-}
-
-.header {
- position: sticky;
- top: 12px;
- z-index: 20;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--space-4);
- padding: 14px 18px;
- border: 1px solid var(--border);
- background:
- linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, transparent), transparent 60%),
- var(--header-bg);
- border-radius: var(--radius-lg);
- box-shadow: var(--shadow);
- backdrop-filter: blur(14px) saturate(1.1);
- animation: surfaceIn var(--motion-slow) both;
- transition: box-shadow var(--motion), border-color var(--motion);
-}
-
-.header.isScrolled {
- border-color: var(--primary-border);
- box-shadow: 0 6px 24px -2px color-mix(in oklab, var(--primary) 20%, transparent), 0 1px 0 var(--border) inset;
-}
-
-:root[data-theme="dark"] .header.isScrolled {
- box-shadow: 0 6px 24px -2px color-mix(in oklab, var(--primary) 28%, transparent), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
-}
-
-/* Top hairline gradient */
-.header::before {
- position: absolute;
- inset: 0 0 auto;
- height: 1px;
- content: "";
- pointer-events: none;
- border-radius: var(--radius-lg) var(--radius-lg) 0 0;
- background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--secondary) 65%, transparent), transparent);
- opacity: 0.7;
-}
-
-/* Bottom sweep glow when scrolled */
-.header::after {
- position: absolute;
- inset: auto 0 -1px 0;
- height: 1px;
- content: "";
- pointer-events: none;
- background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
- background-size: 200% 100%;
- opacity: 0;
- transition: opacity 200ms ease;
- animation: headerSweep 6s linear infinite;
-}
-
-.header.isScrolled::after {
- opacity: 0.45;
-}
-
-@keyframes headerSweep {
- to { background-position: 200% 0; }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .header::after { animation: none; }
-}
-
-.brandBlock {
- display: flex;
- align-items: center;
- gap: 12px;
- min-width: 220px;
-}
-
-.brandMark {
- position: relative;
- overflow: hidden;
- display: grid;
- place-items: center;
- flex: 0 0 42px;
- width: 42px;
- height: 42px;
- color: var(--on-primary);
- background:
- conic-gradient(from 215deg, #fcd34d, #f59e0b, #92400e, #4f46e5, #818cf8, #fcd34d);
- border-radius: var(--radius-md);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.35) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.2) inset,
- 0 4px 14px -2px rgba(245, 158, 11, 0.45),
- 0 1px 3px rgba(0, 0, 0, 0.18);
- transition: transform var(--motion), box-shadow var(--motion);
-}
-
-/* Specular highlight that drifts on idle */
-.brandMark::before {
- position: absolute;
- inset: 0;
- content: "";
- pointer-events: none;
- background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.55), transparent 38%);
- mix-blend-mode: screen;
- animation: brandShine 9s ease-in-out infinite alternate;
-}
-
-/* Glassy inner ring */
-.brandMark::after {
- position: absolute;
- inset: 1px;
- content: "";
- pointer-events: none;
- border-radius: calc(var(--radius-md) - 1px);
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
- mix-blend-mode: overlay;
-}
-
-.brandMark svg {
- position: relative;
- z-index: 1;
- width: 22px;
- height: 22px;
- filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
-}
-
-@keyframes brandShine {
- 0% { transform: translate(0, 0); }
- 100% { transform: translate(8%, 6%); }
-}
-
-.brandBlock:hover .brandMark {
- transform: translateY(-1px) scale(1.03);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.4) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.22) inset,
- 0 8px 22px -4px rgba(245, 158, 11, 0.55),
- 0 1px 3px rgba(0, 0, 0, 0.2);
-}
-
-@media (prefers-reduced-motion: reduce) {
- .brandMark::before {
- animation: none;
- }
-}
-
-.title {
- color: var(--text-strong);
- font-size: var(--text-lg);
- font-weight: 600;
- line-height: var(--leading-tight);
- letter-spacing: var(--tracking-tight);
-}
-
-.subtitle {
- margin-top: 3px;
- color: var(--muted);
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
-}
-
-.header-actions {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 12px;
- flex-wrap: wrap;
- min-width: 0;
-}
-
-.actionGroup {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 6px;
- flex-wrap: wrap;
- padding: 0;
- border: 0;
- background: transparent;
-}
-
-.secondaryActions::before {
- align-self: stretch;
- width: 1px;
- margin: 4px 8px 4px 2px;
- background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 35%, transparent), transparent);
- content: "";
-}
-
-.primaryActions {
- border: 0;
- background: transparent;
-}
-
-#btnTheme {
- margin-left: 4px;
-}
-
-.btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- min-width: 0;
- min-height: var(--control-height);
- padding: 0 12px;
- border: 1px solid var(--border-strong);
- border-radius: var(--radius);
- color: var(--text);
- background: var(--surface);
- font-size: 15px;
- font-weight: 500;
- line-height: 1;
- white-space: nowrap;
- transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
-}
-
-.btn:hover {
- border-color: var(--hover-border);
- background: var(--surface-muted);
-}
-
-.btn:active {
- background: var(--surface-soft);
-}
-
-.btn:disabled {
- cursor: not-allowed;
- opacity: 0.5;
-}
-
-.btn.isBusy {
- cursor: progress;
- opacity: 0.85;
- pointer-events: none;
- position: relative;
-}
-
-.btn.isBusy .btnIcon {
- visibility: hidden;
-}
-
-.btn.isBusy::before {
- position: absolute;
- left: 12px;
- top: 50%;
- width: 14px;
- height: 14px;
- margin-top: -7px;
- content: "";
- border-radius: 50%;
- border: 2px solid currentColor;
- border-top-color: transparent;
- opacity: 0.85;
- animation: btnSpin 720ms linear infinite;
-}
-
-.btn.isBusy:not(:has(.btnIcon))::before {
- position: relative;
- left: 0;
- top: 0;
- margin: 0 6px 0 0;
- display: inline-block;
-}
-
-@keyframes btnSpin {
- to { transform: rotate(360deg); }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .btn.isBusy::before {
- animation-duration: 2s;
- }
-}
-
-.btn:focus-visible,
-.tabBtn:focus-visible {
- outline: none;
- box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
-}
-
-/* Button kbd hint: render data-kbd badge when [data-kbd-mod] is present */
-.btn[data-kbd]::after {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- margin-left: 6px;
- padding: 0 6px;
- height: 18px;
- border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
- border-bottom-width: 2px;
- border-radius: 4px;
- color: inherit;
- background: color-mix(in oklab, var(--surface) 30%, transparent);
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- font-size: 12px;
- font-weight: 500;
- letter-spacing: 0.04em;
- line-height: 1;
- content: attr(data-kbd-prefix) attr(data-kbd);
- pointer-events: none;
- opacity: 0.55;
- transition: opacity var(--motion-fast);
-}
-
-.btn[data-kbd]:hover::after {
- opacity: 1;
-}
-
-@media (max-width: 900px) {
- .btn[data-kbd]::after {
- display: none;
- }
-}
-
-.btnIcon {
- display: inline-flex;
- flex: 0 0 16px;
- width: 16px;
- height: 16px;
-}
-
-.btnIcon svg {
- width: 16px;
- height: 16px;
-}
-
-.btnPrimary {
- position: relative;
- color: var(--on-primary);
- border-color: transparent;
- background:
- linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
- linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.32) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
- 0 6px 16px -4px rgba(245, 158, 11, 0.5),
- 0 1px 3px rgba(63, 98, 18, 0.25);
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
- isolation: isolate;
-}
-
-.btnPrimary::before {
- position: absolute;
- inset: -2px;
- z-index: -1;
- content: "";
- border-radius: inherit;
- padding: 2px;
- background: conic-gradient(from 0deg, #fcd34d, #4f46e5, #fcd34d);
- -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
- -webkit-mask-composite: xor;
- mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
- mask-composite: exclude;
- opacity: 0;
- transition: opacity 200ms ease;
-}
-
-.btnPrimary:hover {
- color: var(--on-primary);
- transform: translateY(-1px);
- background:
- linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
- linear-gradient(135deg, #f9a8d4 0%, #fcd34d 50%, #f59e0b 100%);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.4) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
- 0 10px 24px -4px rgba(245, 158, 11, 0.62),
- 0 2px 4px rgba(63, 98, 18, 0.3);
-}
-
-.btnPrimary:hover::before {
- opacity: 1;
- animation: btnConic 1.6s linear infinite;
-}
-
-.btnPrimary:active {
- transform: translateY(0);
- background: linear-gradient(135deg, #d97706, #92400e);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
-}
-
-@keyframes btnConic {
- to { --conic-angle: 360deg; }
-}
-
-.btnSoft {
- color: var(--text-strong);
- border-color: var(--border);
- background: linear-gradient(180deg, var(--surface), var(--surface-soft));
- box-shadow: 0 1px 0 var(--hairline) inset, 0 1px 2px rgba(40, 30, 50, 0.04);
-}
-
-.btnSoft:hover {
- color: var(--text-strong);
- border-color: var(--primary-border);
- background: linear-gradient(180deg, var(--surface), var(--primary-soft));
- box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(245, 158, 11, 0.18);
-}
-
-.btnGhost {
- color: var(--muted);
- border-color: transparent;
- background: transparent;
-}
-
-.btnGhost:hover {
- color: var(--text-strong);
- border-color: var(--border);
- background: var(--surface-muted);
-}
-
-.btnDanger {
- position: relative;
- color: var(--on-primary);
- border-color: transparent;
- background:
- linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%),
- linear-gradient(135deg, #fb7185 0%, #ef4444 50%, #b91c1c 100%);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.32) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
- 0 6px 16px -4px rgba(220, 38, 38, 0.5),
- 0 1px 3px rgba(127, 29, 29, 0.25);
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
-}
-
-.btnDanger:hover {
- color: var(--on-primary);
- transform: translateY(-1px);
- background:
- linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%),
- linear-gradient(135deg, #fda4af 0%, #fb7185 50%, #ef4444 100%);
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.4) inset,
- 0 -1px 0 rgba(0, 0, 0, 0.18) inset,
- 0 10px 24px -4px rgba(220, 38, 38, 0.62),
- 0 2px 4px rgba(127, 29, 29, 0.3);
-}
-
-.btnDanger:active {
- transform: translateY(0);
- background: linear-gradient(135deg, #b91c1c, #7f1d1d);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
-}
-
-.btnDangerSoft {
- color: var(--danger);
- border-color: var(--danger-border);
- background: var(--danger-soft);
- box-shadow: 0 1px 0 var(--hairline) inset;
-}
-
-.btnDangerSoft:hover {
- color: var(--danger);
- border-color: var(--danger);
- background: var(--danger-soft-hover);
- box-shadow: 0 1px 0 var(--hairline) inset, 0 4px 12px -4px rgba(220, 38, 38, 0.32);
-}
-
-.btn.small {
- min-height: 28px;
- padding: 0 9px;
- font-size: 14px;
-}
-
-.btnIconOnly {
- width: var(--control-height);
- padding: 0;
-}
-
-/* Theme toggle: show sun in dark mode, moon in light mode */
-.themeIconSun,
-.themeIconMoon {
- display: none;
-}
-
-:root[data-theme="dark"] .themeIconSun {
- display: inline-flex;
-}
-
-:root:not([data-theme="dark"]) .themeIconMoon {
- display: inline-flex;
-}
-
.overview {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
@@ -780,1136 +279,6 @@ body.is-running::before {
animation: statusPulse 1.6s ease-in-out infinite;
}
-.workspaceShell {
- display: grid;
- grid-template-columns: var(--rail-width) minmax(0, 1fr);
- grid-template-areas:
- "rail workspace";
- align-items: start;
- gap: var(--shell-gap);
- margin-top: 14px;
-}
-
-.workspaceShell > * {
- min-width: 0;
-}
-
-.configRail {
- position: sticky;
- top: 106px;
- grid-area: rail;
- max-height: calc(100vh - 124px);
- overflow: auto;
-}
-
-.workspaceShell .configRail {
- position: sticky;
- top: 106px;
- align-self: start;
-}
-
-.configWorkspace {
- grid-area: workspace;
- min-width: 0;
-}
-
-.liveRail {
- grid-area: workspace;
- display: grid;
- gap: var(--shell-gap);
- min-width: 0;
-}
-
-.activityDock {
- grid-area: workspace;
- display: grid;
- grid-template-columns: 1fr;
- gap: var(--shell-gap);
- min-width: 0;
-}
-
-.monitorPanel {
- display: grid;
- grid-template-columns: minmax(320px, 640px);
- gap: var(--shell-gap);
-}
-
-.monitorPanel[hidden] {
- display: none !important;
-}
-
-.cardShot {
- display: flex;
- flex-direction: column;
-}
-
-.card {
- position: relative;
- overflow: hidden;
- min-width: 0;
- min-height: 0;
- padding: 18px;
- border: 1px solid var(--border);
- border-radius: var(--radius-lg);
- background: var(--surface);
- box-shadow: var(--shadow);
- animation: surfaceIn var(--motion-slow) both;
- transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion);
-}
-
-/* Top highlight hairline */
-.card::before {
- position: absolute;
- inset: 0 0 auto 0;
- height: 1px;
- content: "";
- pointer-events: none;
- background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--secondary) 65%, transparent), transparent);
- opacity: 0.45;
- transition: opacity var(--motion);
-}
-
-.card:hover::before {
- opacity: 0.85;
-}
-
-.cardShot {
- animation-delay: 40ms;
-}
-
-.cardReservations {
- animation-delay: 80ms;
-}
-
-.cardLog {
- animation-delay: 120ms;
-}
-
-.card > * {
- position: relative;
- z-index: 1;
-}
-
-.card:hover {
- border-color: var(--primary-border);
- box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent), 0 12px 28px -10px color-mix(in oklab, var(--primary) 28%, transparent);
-}
-
-.cardScroll {
- max-height: none;
- overflow: visible;
-}
-
-.cardTitle {
- position: relative;
- display: flex;
- align-items: center;
- gap: 12px;
- min-width: 0;
- padding-bottom: 14px;
- margin-bottom: 4px;
- border-bottom: 1px solid var(--border);
- color: var(--text-strong);
- font-size: 17px;
- font-weight: 600;
- line-height: 1.25;
- letter-spacing: var(--tracking-tight);
-}
-
-/* Status chip on the right of card titles, shows up when body.is-running */
-.cardTitle::after {
- margin-left: auto;
- padding: 0 8px;
- height: 19px;
- display: inline-flex;
- align-items: center;
- gap: 5px;
- border: 1px solid color-mix(in oklab, var(--muted) 40%, transparent);
- border-radius: 99px;
- background: color-mix(in oklab, var(--muted) 12%, transparent);
- color: var(--muted);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 11px;
- font-weight: 700;
- letter-spacing: 0.14em;
- content: "READY";
- flex-shrink: 0;
- transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
-}
-
-body.is-running .cardTitle::after {
- border-color: color-mix(in oklab, var(--success) 50%, transparent);
- background: color-mix(in oklab, var(--success) 16%, transparent);
- color: var(--success);
- content: "● LIVE";
-}
-
-.cardTitle .sectionIcon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 28px;
- width: 28px;
- height: 28px;
- border: 1px solid var(--primary-border);
- border-radius: var(--radius-sm);
- background:
- linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, transparent), color-mix(in oklab, var(--secondary) 18%, transparent)),
- var(--primary-soft);
- color: var(--primary);
- box-shadow: 0 0 12px -4px color-mix(in oklab, var(--primary) 40%, transparent);
-}
-
-.cardTitle .sectionIcon svg {
- width: 14px;
- height: 14px;
-}
-
-.sectionIcon {
- display: inline-flex;
- flex: 0 0 18px;
- width: 18px;
- height: 18px;
- color: var(--primary);
-}
-
-.sectionIcon svg {
- width: 18px;
- height: 18px;
-}
-
-.configLayout {
- display: contents;
-}
-
-.workspaceHeader {
- position: relative;
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- gap: var(--space-4);
- min-width: 0;
- margin-bottom: var(--space-3);
- padding: var(--space-4) var(--space-5);
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- background: var(--surface);
-}
-
-.workspaceHeader::before {
- position: absolute;
- left: 0;
- top: var(--space-4);
- bottom: var(--space-4);
- width: 3px;
- content: "";
- border-radius: 0 3px 3px 0;
- background: linear-gradient(180deg, var(--primary), var(--secondary));
- box-shadow: 0 0 12px -2px color-mix(in oklab, var(--primary) 50%, transparent);
-}
-
-.workspaceHeader::after {
- position: absolute;
- inset: 0 0 auto 0;
- height: 1px;
- content: "";
- pointer-events: none;
- background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 50%, transparent), color-mix(in oklab, var(--secondary) 50%, transparent), transparent);
- opacity: 0.5;
-}
-
-.workspaceEyebrow {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- color: var(--primary-accent-text);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 12px;
- font-weight: 700;
- letter-spacing: 0.18em;
- text-transform: uppercase;
-}
-
-.workspaceEyebrow::before {
- width: 6px;
- height: 6px;
- flex: 0 0 6px;
- border-radius: 50%;
- background: linear-gradient(135deg, var(--primary), var(--secondary));
- box-shadow: 0 0 8px color-mix(in oklab, var(--primary) 60%, transparent);
- content: "";
-}
-
-.workspaceTitle {
- margin: 6px 0 0;
- color: var(--text-strong);
- font-size: 26px;
- font-weight: 700;
- line-height: 1.05;
- letter-spacing: -0.02em;
-}
-
-.workspaceHint {
- max-width: 360px;
- color: var(--muted);
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
- text-align: right;
-}
-
-.workspaceSearch {
- position: relative;
- display: flex;
- align-items: center;
- width: clamp(220px, 32vw, 360px);
-}
-
-.workspaceSearch input {
- width: 100%;
- min-height: 36px;
- padding: 0 64px 0 30px;
- border: 1px solid var(--border-strong);
- border-radius: var(--radius-md);
- color: var(--text);
- background: var(--surface-soft);
- font-size: var(--text-sm);
- caret-color: var(--primary);
- outline: none;
- transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
-}
-
-.workspaceSearch input::-webkit-search-cancel-button {
- display: none;
-}
-
-.workspaceSearch input:hover {
- border-color: var(--primary-border);
-}
-
-.workspaceSearch input:focus-visible {
- border-color: var(--primary);
- background: color-mix(in oklab, var(--primary-soft) 30%, var(--surface));
- box-shadow:
- 0 0 0 1px var(--primary),
- 0 0 0 4px color-mix(in oklab, var(--primary) 22%, transparent),
- 0 0 16px -2px color-mix(in oklab, var(--primary) 45%, transparent);
-}
-
-/* Icon turns primary on focus */
-.workspaceSearch:focus-within .workspaceSearchIcon {
- color: var(--primary);
-}
-
-.workspaceSearchIcon {
- position: absolute;
- left: 9px;
- top: 50%;
- width: 14px;
- height: 14px;
- margin-top: -7px;
- color: var(--muted-soft);
- pointer-events: none;
- transition: color var(--motion-fast);
-}
-
-.workspaceSearchClear {
- position: absolute;
- right: 6px;
- top: 50%;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 20px;
- height: 20px;
- margin-top: -10px;
- padding: 0;
- border: 0;
- border-radius: var(--radius-sm);
- color: var(--muted-soft);
- background: transparent;
- cursor: pointer;
- transition: color var(--motion-fast), background var(--motion-fast);
-}
-
-.workspaceSearchClear:hover {
- color: var(--text);
- background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
-}
-
-.workspaceSearchKbd {
- position: absolute;
- right: 30px;
- top: 50%;
- transform: translateY(-50%);
- display: inline-flex;
- align-items: center;
- gap: 3px;
- height: 18px;
- padding: 0 6px;
- border: 1px solid color-mix(in oklab, var(--primary) 40%, var(--border-strong));
- border-radius: 4px;
- background: color-mix(in oklab, var(--primary) 6%, var(--surface));
- color: var(--primary-accent-text);
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- font-size: 12px;
- font-weight: 600;
- letter-spacing: 0.06em;
- pointer-events: none;
- transition: opacity var(--motion-fast);
-}
-
-.workspaceSearchCount {
- position: absolute;
- right: 30px;
- top: 50%;
- transform: translateY(-50%);
- padding: 1px 7px;
- border-radius: 99px;
- background: var(--primary-soft);
- color: var(--primary-accent-text);
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 12px;
- font-variant-numeric: tabular-nums;
- pointer-events: none;
-}
-
-.workspaceSearchCount[hidden] {
- display: none;
-}
-
-.workspaceSearch:focus-within .workspaceSearchKbd,
-.workspaceSearch input:not(:placeholder-shown) ~ .workspaceSearchKbd {
- opacity: 0;
-}
-
-@media (max-width: 640px) {
- .workspaceSearchKbd {
- display: none;
- }
-}
-
-.row.isSearchHidden,
-.sectionTitle.isSearchHidden {
- display: none !important;
-}
-
-.configSearchEmpty {
- margin: 12px 0;
- padding: 24px;
- border: 1px dashed var(--border);
- border-radius: var(--radius-md);
- text-align: center;
- color: var(--muted);
-}
-
-.sideNav {
- position: relative;
- display: flex;
- flex-direction: column;
- gap: 2px;
- min-width: 0;
- margin-top: 14px;
- padding: 8px;
- border: 1px solid var(--border);
- border-radius: var(--radius-lg);
- background:
- linear-gradient(180deg, color-mix(in oklab, var(--primary-soft) 50%, transparent), transparent 60%),
- var(--surface-soft);
- box-shadow: 0 1px 0 var(--hairline) inset;
- counter-reset: tabIdx;
- --tab-indicator-y: 6px;
- --tab-indicator-h: 14px;
- --tab-indicator-opacity: 0;
-}
-
-.sideNav::before {
- position: absolute;
- left: 6px;
- top: var(--tab-indicator-y);
- width: 3px;
- height: var(--tab-indicator-h);
- content: "";
- border-radius: 3px;
- background: linear-gradient(180deg, var(--primary), var(--secondary));
- opacity: var(--tab-indicator-opacity);
- box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent);
- transition: top 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
- height 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
- opacity var(--motion-fast);
- pointer-events: none;
- transform-origin: center;
-}
-
-.sideNav.isBurst::before {
- animation: tabBurst 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
-}
-
-@keyframes tabBurst {
- 0% { transform: scaleY(1) scaleX(1); box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent); }
- 35% { transform: scaleY(1.3) scaleX(1.6); box-shadow: 0 0 18px color-mix(in oklab, var(--primary) 90%, transparent); }
- 100% { transform: scaleY(1) scaleX(1); box-shadow: 0 0 10px color-mix(in oklab, var(--primary) 70%, transparent); }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .sideNav::before {
- transition: opacity var(--motion-fast);
- }
- .sideNav.isBurst::before {
- animation: none;
- }
-}
-
-.tabBtn {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- gap: 10px;
- width: 100%;
- min-width: 0;
- min-height: 38px;
- padding: 0 12px 0 18px;
- border: 1px solid transparent;
- border-radius: var(--radius-md);
- color: var(--muted);
- background: transparent;
- font-size: var(--text-base);
- font-weight: 500;
- text-align: left;
- white-space: nowrap;
- letter-spacing: var(--tracking-tight);
- counter-increment: tabIdx;
- transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), padding var(--motion-fast);
-}
-
-/* Channel slot ID — small mono number prefix */
-.tabBtn::before {
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 11px;
- font-weight: 600;
- letter-spacing: 0.06em;
- color: var(--muted-soft);
- content: counter(tabIdx, decimal-leading-zero);
- margin-right: 2px;
- display: inline-block;
- opacity: 0.7;
- transition: color var(--motion-fast), opacity var(--motion-fast);
-}
-
-/* Right-side mini cyan dot on hover */
-.tabBtn::after {
- position: absolute;
- right: 10px;
- top: 50%;
- transform: translateY(-50%) scale(0.4);
- width: 5px;
- height: 5px;
- border-radius: 50%;
- background: var(--secondary);
- box-shadow: 0 0 6px var(--secondary);
- content: "";
- opacity: 0;
- transition: opacity var(--motion-fast), transform var(--motion-fast);
-}
-
-.tabBtn:hover {
- color: var(--text);
- background: color-mix(in oklab, var(--surface-muted) 70%, var(--primary-soft) 30%);
-}
-
-.tabBtn:hover::before {
- color: var(--primary);
- opacity: 1;
-}
-
-.tabBtn:hover::after {
- opacity: 0.7;
- transform: translateY(-50%) scale(1);
-}
-
-.tabBtn.active {
- color: var(--text-strong);
- background:
- linear-gradient(90deg, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
- color-mix(in oklab, var(--surface-muted) 50%, var(--primary-soft) 50%);
- box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent);
-}
-
-.tabBtn.active::before {
- color: var(--primary);
- opacity: 1;
-}
-
-.tabBtn.active::after {
- opacity: 1;
- transform: translateY(-50%) scale(1);
- background: var(--primary);
- box-shadow: 0 0 8px var(--primary);
-}
-
-.tabIcon {
- display: inline-flex;
- flex: 0 0 16px;
- width: 16px;
- height: 16px;
- color: var(--muted-soft);
- transition: color var(--motion-fast);
-}
-
-.tabBtn.active .tabIcon,
-.tabBtn:hover .tabIcon {
- color: var(--primary);
-}
-
-.tabIcon svg {
- width: 16px;
- height: 16px;
-}
-
-.tabText {
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.tabBtn[data-badge]:not([data-badge="0"])::after {
- margin-left: auto;
- padding: 1px 6px;
- border-radius: 99px;
- background: var(--surface-muted);
- color: var(--muted);
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- font-size: 12px;
- font-variant-numeric: tabular-nums;
- line-height: 1.4;
- content: attr(data-badge);
-}
-
-.tabBtn.active[data-badge]:not([data-badge="0"])::after {
- background: var(--primary);
- color: var(--on-primary);
-}
-
-.panels {
- min-width: 0;
- max-width: var(--panel-max);
-}
-
-.panel {
- position: relative;
- overflow: hidden;
- min-width: 0;
- padding: 22px 22px 24px;
- border: 1px solid var(--border);
- border-radius: var(--radius-lg);
- background:
- radial-gradient(at 0% 0%, color-mix(in oklab, var(--primary) 6%, transparent), transparent 45%),
- radial-gradient(at 100% 100%, color-mix(in oklab, var(--secondary) 5%, transparent), transparent 45%),
- var(--surface);
- box-shadow: var(--shadow-soft);
- transition: border-color var(--motion), box-shadow var(--motion);
-}
-
-.panel::before {
- position: absolute;
- inset: 0 0 auto 0;
- height: 1px;
- content: "";
- pointer-events: none;
- background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 60%, transparent), color-mix(in oklab, var(--secondary) 60%, transparent), transparent);
- opacity: 0.5;
-}
-
-.panel.active {
- animation: panelFadeIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
-}
-
-.panel.active:hover {
- border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
-}
-
-@keyframes panelFadeIn {
- from { opacity: 0; transform: translateY(4px); }
- to { opacity: 1; transform: translateY(0); }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .panel.active {
- animation: none;
- }
-}
-
-.panel.cardLog {
- overflow: hidden;
-}
-
-.panel[hidden] {
- display: none !important;
-}
-
-.sectionTitle {
- display: flex;
- align-items: center;
- gap: 10px;
- min-width: 0;
- margin: 22px 0 12px;
- padding: 6px 0 8px;
- color: var(--muted);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 12px;
- font-weight: 600;
- letter-spacing: 0.12em;
- text-transform: uppercase;
- line-height: 1.3;
- border-bottom: 1px solid var(--border);
- position: sticky;
- top: 64px;
- z-index: 4;
- background: linear-gradient(180deg, var(--surface) 70%, color-mix(in oklab, var(--surface) 0%, transparent));
- backdrop-filter: blur(6px);
- transition: box-shadow var(--motion-fast);
- counter-increment: sectionIdx;
-}
-
-.panels {
- counter-reset: sectionIdx;
-}
-
-/* When sticky-pinned (top:64px is reached), elevate with a subtle shadow */
-.sectionTitle:not(.cardTitle):not(summary) {
- box-shadow: 0 0 0 0 transparent;
-}
-
-@supports (position: sticky) {
- .sectionTitle.isStuck {
- box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.12), 0 1px 0 var(--border);
- }
-}
-
-:root[data-theme="dark"] .sectionTitle.isStuck {
- box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.5), 0 1px 0 var(--border);
-}
-
-.cardTitle.sectionTitle,
-summary.sectionTitle {
- position: static;
- background: transparent;
- backdrop-filter: none;
-}
-
-/* Section number (mono leading-zero) replaces the dot */
-.sectionTitle::before {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 22px;
- height: 16px;
- padding: 0 5px;
- border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
- border-radius: 4px;
- background: color-mix(in oklab, var(--primary) 8%, transparent);
- color: var(--primary);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 11px;
- font-weight: 700;
- letter-spacing: 0.04em;
- flex: 0 0 auto;
- content: "§ " counter(sectionIdx, decimal-leading-zero);
-}
-
-/* Trailing line that extends to the right edge */
-.sectionTitle::after {
- flex: 1 1 auto;
- height: 1px;
- margin-left: 4px;
- content: "";
- background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), transparent);
-}
-
-.cardTitle.sectionTitle::before,
-summary.sectionTitle::before,
-.cardTitle.sectionTitle::after,
-summary.sectionTitle::after {
- display: none;
-}
-
-.panel > .sectionTitle:first-child {
- margin-top: 0;
-}
-
-/* Headline-style section titles: when used as a card heading or nested heading,
- keep the original strong color and bigger size. */
-.cardTitle.sectionTitle,
-summary.sectionTitle {
- margin: 0;
- padding: 0 0 12px;
- color: var(--text-strong);
- font-size: 16px;
- letter-spacing: -0.005em;
- text-transform: none;
-}
-
-.row {
- display: flex;
- flex-direction: column;
- gap: 5px;
- min-width: 0;
- margin-top: 10px;
-}
-
-.row.grid2,
-.row.grid3 {
- display: grid;
- align-items: start;
- gap: 10px;
-}
-
-.row.grid2 {
- grid-template-columns: repeat(2, minmax(0, 1fr));
-}
-
-.row.grid3 {
- grid-template-columns: repeat(3, minmax(0, 1fr));
-}
-
-.inline2 {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 0;
- min-width: 0;
- border-radius: var(--radius-md);
- isolation: isolate;
-}
-
-.inline2 > .input,
-.inline2 > input {
- border-radius: 0;
- margin-left: -1px;
-}
-
-.inline2 > .input:first-child,
-.inline2 > input:first-child {
- border-top-left-radius: var(--radius-md);
- border-bottom-left-radius: var(--radius-md);
- margin-left: 0;
-}
-
-.inline2 > .input:last-child,
-.inline2 > input:last-child {
- border-top-right-radius: var(--radius-md);
- border-bottom-right-radius: var(--radius-md);
-}
-
-.inline2 > .input:focus-visible,
-.inline2 > input:focus-visible {
- z-index: 1;
-}
-
-.inline2 > span {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 0 6px;
- color: var(--muted);
- font-size: var(--text-sm);
-}
-
-.rowActions {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: var(--space-2);
- margin-top: var(--space-4);
- padding-top: var(--space-3);
- border-top: 1px solid var(--border);
-}
-
-.rowActions .btnPrimary {
- order: -1;
-}
-
-.label {
- color: var(--muted);
- font-size: 14px;
- font-weight: 500;
- line-height: 1.35;
-}
-
-.input,
-.small,
-.logSearchBox {
- width: 100%;
- min-width: 0;
- min-height: var(--control-height);
- padding: 0 10px;
- border: 1px solid var(--border-strong);
- border-radius: var(--radius-md);
- color: var(--text);
- background: var(--surface);
- font-size: var(--text-base);
- caret-color: var(--primary);
- outline: none;
- transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
-}
-
-input[type="number"].input,
-input[type="text"].input[id*="ip"],
-input[type="text"].input[id*="path"],
-input[type="text"].input[id*="port"],
-.statTrace,
-input[id^="yanghao_"][type="number"] {
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-feature-settings: "ss01", "tnum";
-}
-
-.input:hover,
-.small:hover,
-.logSearchBox:hover {
- border-color: var(--primary-border);
-}
-
-.input:focus-visible,
-.small:focus-visible,
-.logSearchBox:focus-visible {
- border-color: var(--primary);
- background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface));
- box-shadow:
- 0 0 0 1px var(--primary),
- 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent),
- 0 0 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
-}
-
-.input::placeholder,
-.small::placeholder,
-.logSearchBox::placeholder {
- color: var(--muted-soft);
-}
-
-select.input {
- appearance: none;
- -webkit-appearance: none;
- background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
- linear-gradient(135deg, var(--muted) 50%, transparent 50%);
- background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
- background-size: 5px 5px, 5px 5px;
- background-repeat: no-repeat;
- padding-right: 28px;
-}
-
-/* Number inputs: hide native spinner everywhere, keep arrow keys */
-input[type="number"] {
- -moz-appearance: textfield;
- appearance: textfield;
- font-variant-numeric: tabular-nums;
-}
-
-input[type="number"]::-webkit-inner-spin-button,
-input[type="number"]::-webkit-outer-spin-button {
- -webkit-appearance: none;
- appearance: none;
- margin: 0;
-}
-
-/* Custom number stepper: wraps an input with .numStepperWrap, +/- buttons appear on hover/focus */
-.numStepperWrap {
- position: relative;
- display: block;
-}
-
-.numStepperWrap > input[type="number"] {
- padding-right: 32px;
-}
-
-.numStepperBtns {
- position: absolute;
- right: 4px;
- top: 50%;
- transform: translateY(-50%);
- display: inline-flex;
- flex-direction: column;
- gap: 1px;
- opacity: 0;
- transition: opacity var(--motion-fast);
- pointer-events: none;
-}
-
-.numStepperWrap:hover .numStepperBtns,
-.numStepperWrap:focus-within .numStepperBtns {
- opacity: 1;
- pointer-events: auto;
-}
-
-.numStepperBtn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 18px;
- height: 12px;
- padding: 0;
- border: 1px solid var(--border);
- border-radius: 3px;
- color: var(--muted);
- background: var(--surface);
- cursor: pointer;
- transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
-}
-
-.numStepperBtn:hover {
- color: var(--text);
- border-color: var(--hover-border);
- background: var(--surface-muted);
-}
-
-.numStepperBtn:active {
- background: var(--primary-soft);
- color: var(--primary-accent-text);
-}
-
-.numStepperBtn svg {
- width: 8px;
- height: 8px;
-}
-
-.textarea {
- min-height: 96px;
- padding: 9px 10px;
- line-height: 1.55;
- resize: vertical;
-}
-
-.check {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- min-height: var(--control-height);
- padding: 7px 10px;
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- color: var(--text);
- background: var(--surface-soft);
- font-size: var(--text-base);
- line-height: var(--leading-snug);
- transition: border-color var(--motion-fast), background var(--motion-fast);
-}
-
-.check:hover {
- border-color: var(--hover-border);
- background: var(--surface-muted);
-}
-
-.check:has(input[type="checkbox"]:checked) {
- border-color: var(--primary-border);
- background: var(--primary-soft);
-}
-
-.check input[type="checkbox"] {
- flex: 0 0 auto;
- width: 15px;
- height: 15px;
- margin: 0;
- accent-color: var(--primary);
-}
-
-/* Toggle switch variant: add class .check.isToggle, the checkbox renders as a sliding switch.
- Apply by toggling .isToggle on existing .check labels. */
-.check.isToggle {
- cursor: pointer;
- user-select: none;
-}
-
-.check.isToggle input[type="checkbox"] {
- appearance: none;
- -webkit-appearance: none;
- position: relative;
- flex: 0 0 32px;
- width: 32px;
- height: 18px;
- border-radius: 999px;
- background: var(--border-strong);
- cursor: pointer;
- transition: background var(--motion-fast);
-}
-
-.check.isToggle input[type="checkbox"]::after {
- position: absolute;
- left: 2px;
- top: 2px;
- content: "";
- width: 14px;
- height: 14px;
- border-radius: 50%;
- background: var(--surface);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
- transition: transform var(--motion-fast), background var(--motion-fast);
-}
-
-.check.isToggle input[type="checkbox"]:checked {
- background: linear-gradient(90deg, var(--primary), var(--secondary));
- box-shadow: 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
-}
-
-.check.isToggle input[type="checkbox"]:checked::after {
- transform: translateX(14px);
- background: #fff;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px color-mix(in oklab, var(--primary) 40%, transparent);
-}
-
-.check.isToggle input[type="checkbox"]:focus-visible {
- outline: none;
- box-shadow: var(--focus-ring), 0 0 12px -2px color-mix(in oklab, var(--primary) 55%, transparent);
-}
-
-.check span {
- min-width: 0;
- overflow-wrap: anywhere;
-}
-
-.hint {
- min-width: 0;
- color: var(--muted);
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
- overflow-wrap: anywhere;
-}
-
-/* Empty-state hint inside table / chart / reservations: dashed framed placeholder */
-.table > .hint:only-child,
-.chart > .hint:only-child,
-.reservationsContent > .hint:only-child {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 8px;
- min-height: 80px;
- padding: 24px 16px;
- border: 1px dashed var(--border);
- border-radius: var(--radius-md);
- background: color-mix(in oklab, var(--surface-soft) 60%, transparent);
- color: var(--muted-soft);
- font-size: var(--text-sm);
- text-align: center;
-}
-
-.table > .hint:only-child::before,
-.chart > .hint:only-child::before,
-.reservationsContent > .hint:only-child::before {
- content: "";
- width: 28px;
- height: 28px;
- flex: 0 0 28px;
- background-color: currentColor;
- -webkit-mask: url("data:image/svg+xml;utf8,
") no-repeat center / contain;
- mask: url("data:image/svg+xml;utf8,
") no-repeat center / contain;
- opacity: 0.55;
-}
-
-.divider {
- height: 1px;
- margin: 16px 0;
- background: var(--border);
-}
-
.statsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
@@ -2355,107 +724,6 @@ input[type="number"]::-webkit-outer-spin-button {
text-align: right;
}
-.table {
- min-width: 0;
- overflow: hidden;
- margin-top: 12px;
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- background: var(--surface);
-}
-
-.tableRow {
- position: relative;
- display: grid;
- grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.7fr) minmax(54px, 0.45fr);
- gap: 12px;
- min-width: 0;
- padding: 11px 14px 11px 18px;
- border-top: 1px solid var(--border);
- color: var(--text);
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
- transition: background var(--motion-fast), padding var(--motion-fast);
-}
-
-/* Left-side hover accent stripe */
-.tableRow:not(.tableHead)::before {
- position: absolute;
- left: 0;
- top: 8px;
- bottom: 8px;
- width: 2px;
- content: "";
- border-radius: 0 2px 2px 0;
- background: linear-gradient(180deg, var(--primary), var(--secondary));
- opacity: 0;
- transition: opacity var(--motion-fast);
-}
-
-.tableRow:not(.tableHead):hover::before {
- opacity: 1;
-}
-
-.tableRow:not(.tableHead) > div:not(:last-child) {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.tableRow:not(.tableHead) > div:not(:last-child):hover {
- white-space: normal;
- overflow-wrap: anywhere;
-}
-
-.tableRow:not(.tableHead):hover {
- background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
-}
-
-.tableRow:nth-child(odd):not(.tableHead) {
- background: color-mix(in oklab, var(--surface-soft) 50%, transparent);
-}
-
-.tableRow:nth-child(odd):not(.tableHead):hover {
- background: color-mix(in oklab, var(--primary-soft) 35%, var(--surface-soft));
-}
-
-.tableRow:first-child {
- border-top: 0;
-}
-
-.tableRow > div {
- min-width: 0;
- overflow-wrap: anywhere;
-}
-
-.tableRow .mono {
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-variant-numeric: tabular-nums;
- font-feature-settings: "ss01";
- color: var(--muted);
-}
-
-.tableHead {
- position: sticky;
- top: 0;
- z-index: 1;
- color: var(--primary);
- background:
- linear-gradient(90deg, color-mix(in oklab, var(--primary) 8%, transparent), transparent 60%),
- var(--surface-muted);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 12px;
- font-weight: 700;
- letter-spacing: 0.14em;
- text-transform: uppercase;
- border-bottom: 1px solid color-mix(in oklab, var(--primary) 25%, var(--border));
-}
-
-.mono {
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- font-feature-settings: "ss01", "tnum";
-}
-
.preview {
position: relative;
display: flex;
@@ -3115,630 +1383,6 @@ body.is-running .logTitle::after {
color: var(--muted-soft);
}
-/* ==================== Skeleton placeholders ==================== */
-@keyframes skeletonShimmer {
- 0% { background-position: -200% 0; }
- 100% { background-position: 200% 0; }
-}
-
-.skeleton {
- position: relative;
- overflow: hidden;
- background:
- linear-gradient(90deg,
- transparent 0,
- color-mix(in oklab, var(--primary) 22%, transparent) 35%,
- color-mix(in oklab, var(--secondary) 22%, transparent) 65%,
- transparent 100%) var(--surface-muted);
- background-size: 200% 100%;
- background-repeat: no-repeat;
- animation: skeletonShimmer 1.8s linear infinite;
- border-radius: var(--radius-sm);
- color: transparent !important;
- user-select: none;
- pointer-events: none;
-}
-
-.skeleton * {
- visibility: hidden;
-}
-
-.skeletonText {
- display: inline-block;
- width: var(--skeleton-w, 60%);
- height: 0.85em;
- vertical-align: middle;
-}
-
-@media (prefers-reduced-motion: reduce) {
- .skeleton {
- animation: none;
- }
-}
-
-/* Connected button group: shared border, no doubled middle border */
-.btnGroup {
- display: inline-flex;
- align-items: stretch;
- isolation: isolate;
-}
-
-.btnGroup > .btn {
- border-radius: 0;
- margin-left: -1px;
-}
-
-.btnGroup > .btn:first-child {
- border-top-left-radius: var(--radius-md);
- border-bottom-left-radius: var(--radius-md);
- margin-left: 0;
-}
-
-.btnGroup > .btn:last-child {
- border-top-right-radius: var(--radius-md);
- border-bottom-right-radius: var(--radius-md);
-}
-
-.btnGroup > .btn:hover,
-.btnGroup > .btn:focus-visible {
- z-index: 1;
-}
-
-/* Scroll-to-top floating button */
-.scrollTopBtn {
- position: fixed;
- right: 20px;
- bottom: 70px;
- z-index: 70;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 38px;
- height: 38px;
- padding: 0;
- border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
- border-radius: 50%;
- background:
- radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%),
- color-mix(in oklab, var(--surface) 75%, transparent);
- color: var(--muted);
- cursor: pointer;
- box-shadow:
- 0 4px 16px -2px color-mix(in oklab, var(--primary) 30%, transparent),
- 0 2px 6px rgba(0, 0, 0, 0.1);
- backdrop-filter: blur(10px);
- transition: opacity 180ms ease, transform 180ms ease, color var(--motion-fast),
- border-color var(--motion-fast), background var(--motion-fast),
- box-shadow var(--motion-fast);
-}
-
-.scrollTopBtn[hidden] {
- display: none !important;
-}
-
-.scrollTopBtn:hover {
- color: var(--primary);
- border-color: var(--primary);
- background:
- radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--primary) 26%, transparent), transparent 60%),
- var(--surface);
- transform: translateY(-2px);
- box-shadow:
- 0 6px 24px -2px color-mix(in oklab, var(--primary) 50%, transparent),
- 0 2px 8px rgba(0, 0, 0, 0.12);
-}
-
-@media (max-width: 640px) {
- .scrollTopBtn {
- right: 12px;
- bottom: 80px;
- }
-}
-
-/* Device select wrapper with status dot */
-.deviceSelectWrap {
- position: relative;
- display: block;
-}
-
-.deviceSelectWrap select {
- padding-right: 40px;
-}
-
-.deviceSelectDot {
- position: absolute;
- right: 28px;
- top: 50%;
- transform: translateY(-50%);
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--muted-soft);
- box-shadow: 0 0 0 2px color-mix(in oklab, var(--muted-soft) 16%, transparent);
- pointer-events: none;
-}
-
-.deviceSelectDot[data-state="ok"] {
- background: var(--success);
- box-shadow: 0 0 0 2px color-mix(in oklab, var(--success) 16%, transparent);
-}
-
-/* ==================== Tooltip (data-tooltip) ==================== */
-[data-tooltip] {
- position: relative;
-}
-
-[data-tooltip]::before,
-[data-tooltip]::after {
- position: absolute;
- left: 50%;
- bottom: calc(100% + 8px);
- transform: translateX(-50%) translateY(2px);
- pointer-events: none;
- opacity: 0;
- transition: opacity 120ms ease, transform 120ms ease;
- z-index: 50;
-}
-
-[data-tooltip]::before {
- content: attr(data-tooltip);
- padding: 6px 10px;
- border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
- border-radius: var(--radius-sm);
- background: color-mix(in oklab, var(--surface) 90%, transparent);
- color: var(--text-strong);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 12px;
- font-weight: 600;
- letter-spacing: 0.04em;
- text-transform: none;
- white-space: nowrap;
- box-shadow:
- 0 0 0 1px color-mix(in oklab, var(--primary) 20%, transparent),
- 0 4px 14px -2px color-mix(in oklab, var(--primary) 40%, transparent);
- backdrop-filter: blur(10px);
-}
-
-:root[data-theme="dark"] [data-tooltip]::before {
- box-shadow:
- 0 0 0 1px color-mix(in oklab, var(--primary) 28%, transparent),
- 0 4px 14px -2px color-mix(in oklab, var(--primary) 50%, transparent);
-}
-
-[data-tooltip]::after {
- content: "";
- width: 8px;
- height: 8px;
- bottom: calc(100% + 4px);
- border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
- border-top: 0;
- border-left: 0;
- background: color-mix(in oklab, var(--surface) 90%, transparent);
- transform: translateX(-50%) rotate(45deg);
-}
-
-[data-tooltip]:hover::before,
-[data-tooltip]:hover::after,
-[data-tooltip]:focus-visible::before,
-[data-tooltip]:focus-visible::after {
- opacity: 1;
- transform: translateX(-50%) translateY(0);
-}
-
-[data-tooltip]:hover::after,
-[data-tooltip]:focus-visible::after {
- transform: translateX(-50%) rotate(45deg);
-}
-
-/* Position bottom (below the trigger) */
-[data-tooltip][data-tooltip-pos="bottom"]::before,
-[data-tooltip][data-tooltip-pos="bottom"]::after {
- bottom: auto;
- top: calc(100% + 8px);
-}
-
-[data-tooltip][data-tooltip-pos="bottom"]::after {
- top: calc(100% + 4px);
- border: 1px solid var(--border);
- border-bottom: 0;
- border-right: 0;
-}
-
-@media (max-width: 640px) {
- [data-tooltip]::before,
- [data-tooltip]::after { display: none; }
-}
-
-
-/* ==================== Shortcuts help overlay ==================== */
-.shortcutsOverlay {
- position: fixed;
- inset: 0;
- z-index: 90;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24px;
- background: color-mix(in oklab, var(--bg) 70%, transparent);
- backdrop-filter: blur(6px);
- opacity: 0;
- transition: opacity 160ms ease;
-}
-
-.shortcutsOverlay.isVisible {
- opacity: 1;
-}
-
-.shortcutsCard {
- position: relative;
- width: min(420px, 100%);
- border: 1px solid var(--border);
- border-radius: var(--radius-lg);
- background: var(--surface);
- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
- overflow: hidden;
- transform: translateY(8px) scale(0.98);
- transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
-}
-
-.shortcutsCard::before {
- position: absolute;
- inset: 0 0 auto 0;
- height: 1px;
- content: "";
- pointer-events: none;
- background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 70%, transparent), color-mix(in oklab, var(--secondary) 70%, transparent), transparent);
- opacity: 0.7;
-}
-
-:root[data-theme="dark"] .shortcutsCard {
- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
-}
-
-.shortcutsOverlay.isVisible .shortcutsCard {
- transform: translateY(0) scale(1);
-}
-
-.shortcutsHeader {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 14px 10px;
- border-bottom: 1px solid var(--border);
- background: var(--surface-soft);
-}
-
-.shortcutsTitle {
- font-size: 15px;
- font-weight: 600;
- color: var(--text-strong);
- letter-spacing: var(--tracking-tight);
-}
-
-.shortcutsClose {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- padding: 0;
- border: 0;
- border-radius: var(--radius-sm);
- color: var(--muted);
- background: transparent;
- cursor: pointer;
- transition: color var(--motion-fast), background var(--motion-fast);
-}
-
-.shortcutsClose:hover {
- color: var(--primary);
- background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
-}
-
-.shortcutsList {
- display: grid;
- gap: 2px;
- padding: 8px;
-}
-
-.shortcutsRow {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- padding: 8px 10px;
- border-radius: var(--radius-sm);
- font-size: var(--text-sm);
- color: var(--text);
-}
-
-.shortcutsRow:hover {
- background: var(--surface-soft);
-}
-
-.shortcutsDesc {
- color: var(--text);
-}
-
-.shortcutsKeys {
- display: inline-flex;
- align-items: center;
- gap: 4px;
-}
-
-.shortcutsKeys kbd {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 22px;
- height: 22px;
- padding: 0 6px;
- border: 1px solid var(--border-strong);
- border-bottom-width: 2px;
- border-radius: 5px;
- background: var(--surface);
- color: var(--text-strong);
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- font-size: 13px;
- letter-spacing: 0.04em;
-}
-
-.shortcutsPlus {
- color: var(--muted-soft);
- font-size: 12px;
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
-}
-
-@media (prefers-reduced-motion: reduce) {
- .shortcutsOverlay,
- .shortcutsCard {
- transition: none;
- }
-}
-
-/* ==================== App footer ==================== */
-.appFooter {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-top: 18px;
- padding: 12px 16px;
- border-top: 1px solid color-mix(in oklab, var(--primary) 22%, var(--border));
- color: var(--muted);
- font-family: "IBM Plex Mono", ui-monospace, monospace;
- font-size: 12px;
- letter-spacing: 0.12em;
- text-transform: uppercase;
- background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 4%, transparent));
-}
-
-.appFooterLeft,
-.appFooterRight {
- display: inline-flex;
- align-items: center;
- gap: 10px;
-}
-
-.appConnDot {
- position: relative;
- width: 7px;
- height: 7px;
- border-radius: 50%;
- background: var(--muted-soft);
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--muted-soft) 16%, transparent);
-}
-
-.appConnDot[data-state="ok"] {
- background: radial-gradient(circle at 30% 30%, #fcd34d, var(--success));
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 18%, transparent), 0 0 8px color-mix(in oklab, var(--success) 50%, transparent);
-}
-
-.appConnDot[data-state="ok"]::after {
- position: absolute;
- inset: -4px;
- content: "";
- border-radius: 50%;
- border: 1px solid var(--success);
- opacity: 0.5;
- animation: footerRipple 2.4s ease-out infinite;
-}
-
-.appConnDot[data-state="error"] {
- background: var(--danger);
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 18%, transparent), 0 0 8px color-mix(in oklab, var(--danger) 60%, transparent);
- animation: statusPulse 2s ease-in-out infinite;
-}
-
-@keyframes footerRipple {
- 0% { transform: scale(0.8); opacity: 0.6; }
- 100% { transform: scale(2.0); opacity: 0; }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .appConnDot[data-state="ok"]::after { animation: none; }
-}
-
-.appConnText,
-.appFooterMeta {
- font-variant-numeric: tabular-nums;
- font-feature-settings: "ss01", "tnum";
-}
-
-.appFooterMeta em {
- font-style: normal;
- color: var(--text-strong);
- letter-spacing: 0;
- margin: 0 2px;
-}
-
-.hudPing em { color: var(--secondary); }
-.hudFps em { color: var(--primary); }
-
-.appFooterDivider {
- color: var(--muted-soft);
- opacity: 0.6;
-}
-
-@media (max-width: 640px) {
- .appFooter {
- flex-direction: column;
- align-items: flex-start;
- }
- .appFooter .hudPing,
- .appFooter .hudFps {
- display: none;
- }
-}
-
-/* ==================== Toast ==================== */
-.toastContainer {
- position: fixed;
- right: 20px;
- bottom: 20px;
- z-index: 100;
- display: flex;
- flex-direction: column;
- gap: 8px;
- max-width: min(420px, calc(100vw - 40px));
- pointer-events: none;
-}
-
-.toast {
- display: grid;
- grid-template-columns: 22px 1fr auto;
- align-items: start;
- gap: 10px;
- padding: 12px 12px 12px 16px;
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- background: var(--surface);
- color: var(--text);
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
- pointer-events: auto;
- animation: toastIn 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
- position: relative;
- overflow: hidden;
-}
-
-:root[data-theme="dark"] .toast {
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
-}
-
-.toast::before {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 3px;
- content: "";
- background: linear-gradient(180deg, var(--muted-soft), color-mix(in oklab, var(--muted-soft) 40%, transparent));
-}
-
-.toast-success {
- border-color: color-mix(in oklab, var(--success) 30%, var(--border));
-}
-.toast-success::before { background: linear-gradient(180deg, var(--success), color-mix(in oklab, var(--success) 30%, transparent)); }
-.toast-success .toastIcon {
- color: var(--success);
- background: color-mix(in oklab, var(--success) 12%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--success) 60%, transparent);
-}
-
-.toast-error {
- border-color: color-mix(in oklab, var(--danger) 30%, var(--border));
-}
-.toast-error::before { background: linear-gradient(180deg, var(--danger), color-mix(in oklab, var(--danger) 30%, transparent)); }
-.toast-error .toastIcon {
- color: var(--danger);
- background: color-mix(in oklab, var(--danger) 12%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--danger) 60%, transparent);
-}
-
-.toast-warn {
- border-color: color-mix(in oklab, var(--warning) 30%, var(--border));
-}
-.toast-warn::before { background: linear-gradient(180deg, var(--warning), color-mix(in oklab, var(--warning) 30%, transparent)); }
-.toast-warn .toastIcon {
- color: var(--warning);
- background: color-mix(in oklab, var(--warning) 12%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--warning) 60%, transparent);
-}
-
-.toast-info::before { background: linear-gradient(180deg, var(--primary), var(--secondary)); }
-.toast-info .toastIcon {
- color: var(--primary);
- background: color-mix(in oklab, var(--primary) 14%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 60%, transparent);
-}
-
-.toastIcon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 22px;
- height: 22px;
- margin-top: 0;
- border-radius: 50%;
- flex: 0 0 22px;
-}
-
-.toastIcon svg {
- width: 14px;
- height: 14px;
-}
-
-.toastBody {
- min-width: 0;
- color: var(--text);
- overflow-wrap: anywhere;
-}
-
-.toastClose {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 22px;
- height: 22px;
- margin: -2px -2px 0 4px;
- padding: 0;
- border: 0;
- border-radius: var(--radius-sm);
- color: var(--muted-soft);
- background: transparent;
- cursor: pointer;
- transition: background var(--motion-fast), color var(--motion-fast);
-}
-
-.toastClose:hover {
- color: var(--primary);
- background: color-mix(in oklab, var(--primary-soft) 60%, transparent);
- box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 45%, transparent);
-}
-
-.toast.isLeaving {
- animation: toastOut 220ms ease forwards;
-}
-
-@keyframes toastIn {
- from { opacity: 0; transform: translateY(8px); }
- to { opacity: 1; transform: translateY(0); }
-}
-
-@keyframes toastOut {
- to { opacity: 0; transform: translateY(-4px); }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .toast,
- .toast.isLeaving {
- animation: none;
- }
-}
-
@media (max-width: 640px) {
.toastContainer {
right: 12px;