:root { --bg: #16181d; --bg2: #1e2128; --bg3: #262a33; --fg: #d8dbe2; --fg2: #9aa0ad; --accent: #5aa9ff; --warn: #ffb454; --err: #ff6b6b; --ok: #7fd58a; --border: #30343e; --sidebar: 440px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); } a { color: var(--accent); } #app { display: flex; height: 100vh; overflow: hidden; } #sidebar { width: var(--sidebar); min-width: 280px; display: flex; flex-direction: column; background: var(--bg2); border-right: 1px solid var(--border); } #sidebarHead { padding: 8px 12px; border-bottom: 1px solid var(--border); } #sidebarHead h1 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: 0.02em; } #titleRow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } #tutorialBtn { font-size: 12px; padding: 2px 8px; } #tutorialBtn.active { border-color: var(--accent); color: var(--accent); } #sidebarBody { flex: 1; overflow-y: auto; padding: 6px 12px 24px 12px; } #splitter { width: 5px; cursor: col-resize; background: var(--bg); } #splitter:hover { background: var(--border); } #main { flex: 1; display: flex; flex-direction: column; min-width: 0; } #viewWrap { flex: 1; position: relative; min-height: 200px; } #view { width: 100%; height: 100%; display: block; } #viewOverlay { position: absolute; left: 8px; top: 6px; color: var(--fg2); font-size: 12px; pointer-events: none; white-space: pre-line; } #spec { height: 220px; width: 100%; display: block; background: #000; } .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 5px 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); font-size: 12px; } .toolbar label { display: inline-flex; align-items: center; gap: 4px; color: var(--fg2); } .toolbar input[type=range] { width: 120px; } #movieToolbar input[type=range].scrub { flex: 1; min-width: 120px; } button, select, input { font: inherit; color: var(--fg); background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; } button { cursor: pointer; } button:hover:not(:disabled) { border-color: var(--accent); } button:disabled { opacity: 0.45; cursor: default; } button.primary { background: #2b4a75; border-color: #3a6db0; } input[type=number] { width: 84px; padding: 2px 6px; text-align: right; } input[type=checkbox] { padding: 0; } details > summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--fg); user-select: none; } details { border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 4px; } #about p { color: var(--fg2); margin: 4px 0; line-height: 1.4; } #controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } #controls .grow { flex: 1; } .info { color: var(--fg2); font-size: 12px; line-height: 1.45; white-space: pre-line; margin-top: 6px; } .info .warn { color: var(--warn); } .info .err { color: var(--err); } .status { font-size: 12px; margin-top: 4px; } /* Editor */ .design-editor .editor-head { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .design-editor .editor-head select { flex: 1; } .design-editor .editor-script { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; } .design-editor .editor-status { margin-top: 4px; font-size: 12px; white-space: pre-wrap; } .design-editor .editor-status-error { color: var(--err); } .design-editor .editor-status-ok { color: var(--ok); } .design-editor .editor-status-info { color: var(--fg2); } /* Form */ .pform-group summary { font-weight: 600; } .pform-rows { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; } .pform-row { display: contents; } .pform-row label { color: var(--fg2); } .pform-control { display: flex; align-items: center; gap: 4px; justify-content: flex-end; } .pform-unit { color: var(--fg2); min-width: 28px; font-size: 12px; } .pform-notes { border: none; margin: 4px 0 0 0; padding: 0; } .pform-notes summary { font-weight: normal; color: var(--fg2); padding: 2px 0; font-size: 12px; } .pform-notes p { color: var(--fg2); font-size: 12px; margin: 2px 0; line-height: 1.45; white-space: pre-line; } /* Mode browser */ .modes-head { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; } .modes-head input { width: 70px; } .modes-info { color: var(--fg2); font-size: 12px; margin-bottom: 4px; white-space: pre-line; } .modes-table { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; } .modes-table table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; } .modes-table th { position: sticky; top: 0; background: var(--bg3); text-align: right; padding: 3px 6px; font-weight: 600; } .modes-table th:first-child, .modes-table td:first-child { text-align: left; } .modes-table td { text-align: right; padding: 2px 6px; cursor: pointer; } .modes-table tr:hover td { background: var(--bg3); } .modes-table tr.selected td { background: #2b4a75; } .progress { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin: 4px 0; } .progress > div { height: 100%; background: var(--accent); width: 0; transition: width 0.15s; } .badge { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--bg3); color: var(--fg2); font-size: 11px; } .badge.warn { color: var(--warn); } #nogpu { color: var(--warn); } /* Tutorial */ #tutorial { width: 440px; min-width: 320px; display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--border); font-size: 13.5px; } .tut-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); } .tut-title { font-weight: 600; } .tut-head select { flex: 1; min-width: 0; } .tut-close { padding: 1px 8px; font-size: 15px; line-height: 1.2; } .tut-body { flex: 1; overflow-y: auto; padding: 8px 14px 16px 14px; line-height: 1.5; } .tut-body h2 { font-size: 16px; margin: 2px 0 10px 0; font-weight: 600; } .tut-chapter { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg2); } .tut-body p { margin: 8px 0; } .tut-body i { color: #e8eaf0; } .tut-body .katex-display { margin: 8px 0; overflow-x: auto; overflow-y: hidden; } .tut-body .katex { font-size: 1.05em; } .tut-live { background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; padding: 8px 10px; margin: 10px 0; font-size: 12.5px; line-height: 1.5; } .tut-need { color: var(--fg2); font-style: italic; border: 1px dashed var(--border); border-radius: 4px; padding: 6px 10px; margin: 10px 0; font-size: 12.5px; } .tut-table { border-collapse: collapse; margin: 6px 0 2px 0; font-size: 12px; font-variant-numeric: tabular-nums; } .tut-table th { text-align: right; padding: 2px 8px 2px 0; font-weight: 600; border-bottom: 1px solid var(--border); } .tut-table td { text-align: right; padding: 2px 8px 2px 0; } .tut-table th:first-child, .tut-table td:first-child { text-align: left; } .tut-bar { display: inline-block; width: 90px; height: 8px; background: var(--bg); border-radius: 2px; overflow: hidden; vertical-align: middle; } .tut-bar > span { display: block; height: 100%; background: var(--accent); } .tut-actions { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tut-actions-label { width: 100%; font-weight: 600; color: var(--fg2); font-size: 12px; } .tut-actions button { font-size: 12px; } .tut-error { color: var(--err); padding: 4px 14px; font-size: 12px; } .tut-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); } .tut-counter { color: var(--fg2); font-size: 12px; }