:root { color-scheme: dark; --bg: #15171a; --panel: #1c1e22; --border: #2c3036; --text: #dfe2e6; --muted: #9aa0a8; --accent: #f0b429; --accent2: #3b8ce6; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); } #app { display: flex; height: 100vh; } #sidebar { width: 420px; flex: none; overflow-y: auto; padding: 12px 14px; background: var(--panel); border-right: 1px solid var(--border); } #main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px; gap: 6px; } h1 { font-size: 17px; margin: 0 0 4px; } .sub { color: var(--muted); margin: 0 0 8px; line-height: 1.35; } a { color: var(--accent2); } details { border-top: 1px solid var(--border); padding: 4px 0; } details summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; } .field { display: grid; grid-template-columns: 1fr 92px 46px; align-items: center; gap: 6px; margin: 3px 0; } .field label { color: var(--text); } .field .unit { color: var(--muted); font-size: 11px; } input[type=number], select, textarea { width: 100%; background: #0f1113; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; font: inherit; } input[type=number]:disabled, textarea:disabled { color: var(--muted); } button { background: #2a2e34; color: var(--text); border: 1px solid #3a3f47; border-radius: 5px; padding: 5px 10px; font: inherit; cursor: pointer; } button:hover { background: #343941; } button:disabled { opacity: 0.45; cursor: default; } button.primary { background: var(--accent); color: #1a1500; border-color: var(--accent); font-weight: 600; } button.primary:hover { background: #f8c453; } #controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; border-top: 1px solid var(--border); padding-top: 8px; } #info { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; } .row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; } .row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; } .row span:first-child { color: var(--muted); flex: none; } .warn { color: var(--accent); } .err { color: #ff6b6b; } .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; } .toolbar label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); } .toolbar input[type=number], .toolbar select { width: 82px; } .toolbar select { width: auto; } .toolbar input[type=range] { flex: 1; min-width: 120px; } .toolbar .time { font-variant-numeric: tabular-nums; min-width: 72px; } #viewWrap { position: relative; flex: 3; min-height: 200px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; } #view { width: 100%; height: 100%; display: block; touch-action: none; } #spec { flex: 2; min-height: 140px; width: 100%; border: 1px solid var(--border); border-radius: 6px; } #nogpu[hidden] { display: none; } #nogpu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #ff8a8a; background: var(--bg); } .seg button.on { background: var(--accent2); border-color: var(--accent2); color: white; } button.on { background: var(--accent2); border-color: var(--accent2); color: white; } .editor-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; } .editor-head label { color: var(--muted); flex: none; } .editor-head select { flex: 1; } textarea.script { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.4; min-height: 280px; height: 340px; resize: vertical; white-space: pre; overflow: auto; tab-size: 2; } .editor-status { margin: 6px 0 4px; min-height: 1.2em; white-space: pre-wrap; } .editor-summary { margin-bottom: 6px; } .editor-summary .warn { margin-top: 4px; line-height: 1.35; }