:root { --sidebar-w: 420px; --chat-w: 380px; --plate-h: 40vh; --readouts-h: 190px; --bg: #14161a; --panel: #1d2026; --border: #2c3038; --text: #e6e6e6; --muted: #9aa0a8; --accent: #e0a23a; --danger: #d9534f; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.4 system-ui, sans-serif; } #app { display: grid; grid-template-columns: var(--sidebar-w) 6px 1fr; height: 100vh; } #app.with-chat { grid-template-columns: var(--sidebar-w) 6px 1fr 6px var(--chat-w); } .splitter.hidden, #chat.hidden { display: none; } .splitter { background: var(--border); flex: none; } .splitter.vertical { width: 6px; cursor: col-resize; } .splitter.horizontal { height: 6px; cursor: row-resize; } .splitter:hover, .splitter.active { background: var(--accent); } #sidebar { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; } #sidebar header { padding: 10px 12px 4px; display: flex; align-items: baseline; gap: 8px; } .chat-toggle { margin-left: auto; padding: 2px 10px; } #sidebar h1 { margin: 0; font-size: 18px; display: inline; } .subtitle { color: var(--muted); margin-left: 8px; } .run { padding: 6px 12px; border-bottom: 1px solid var(--border); } .row { display: flex; gap: 6px; align-items: center; margin: 4px 0; } .row label { display: flex; gap: 6px; align-items: center; flex: 1; } .row select { flex: 1; } .buttons button { flex: 1; } button { background: #2a2e36; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; cursor: pointer; } button:hover:not(:disabled) { background: #343943; } button:disabled { opacity: 0.45; cursor: default; } button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; } select, input[type="text"], input[type="number"] { background: #111318; color: var(--text); border: 1px solid var(--border); border-radius: 3px; padding: 3px 5px; } progress { flex: 1; height: 10px; } .muted { color: var(--muted); } .tabs { display: flex; border-bottom: 1px solid var(--border); } .tabs button { flex: 1; border: none; border-radius: 0; background: transparent; padding: 6px; color: var(--muted); } .tabs button.active { color: var(--text); border-bottom: 2px solid var(--accent); } .tab { flex: 1; min-height: 0; overflow: auto; } .tab.hidden { display: none; } #editor { height: 100%; } #editor .cm-editor { height: 100%; font-size: 12px; } #editor .cm-scroller { font-family: ui-monospace, Menlo, Consolas, monospace; } #issues { list-style: none; margin: 0; padding: 4px 12px; max-height: 120px; overflow: auto; border-top: 1px solid var(--border); font-size: 12px; } #issues li { color: var(--danger); } #issues li.ok { color: #6fbf73; } #issues code { color: var(--text); } #form { padding: 6px 10px; } #form details { margin-bottom: 4px; } #form summary { cursor: pointer; font-weight: 600; padding: 3px 0; } #form .grid { display: grid; grid-template-columns: 1fr 120px; gap: 3px 8px; align-items: center; padding: 2px 0 6px 10px; } #form .grid label { color: var(--muted); } #form .grid label span.unit { color: #6d737b; margin-left: 4px; } #form .hit { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; margin: 4px 0; } #form .hit .head { display: flex; justify-content: space-between; align-items: center; } #form input[type="number"] { width: 100%; } #summary { padding: 6px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; } main { display: flex; flex-direction: column; min-height: 0; min-width: 0; } main section { min-height: 0; display: flex; flex-direction: column; } #plate-section { height: var(--plate-h); flex: none; } #spec-section { flex: 1; min-height: 60px; } #playback { flex: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } .toolbar { display: flex; gap: 14px; align-items: center; padding: 4px 10px; font-weight: 600; } .toolbar label { font-weight: normal; color: var(--muted); display: flex; gap: 6px; align-items: center; } canvas { flex: 1; width: 100%; height: 100%; display: block; min-height: 0; } #playback { flex-direction: row; align-items: center; gap: 10px; padding: 6px 10px; } #playback #position { flex: 1; } #playback label { color: var(--muted); display: flex; gap: 6px; align-items: center; } #readouts { padding: 6px 10px; height: var(--readouts-h); flex: none; overflow: auto; font-size: 12px; } #readouts table { border-collapse: collapse; margin-right: 24px; display: inline-table; vertical-align: top; } #readouts th, #readouts td { padding: 1px 8px; text-align: right; border-bottom: 1px solid var(--border); } #readouts th { color: var(--muted); font-weight: normal; } #readouts .log { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); white-space: pre-wrap; margin-top: 4px; } @media (max-width: 900px) { #app { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; } #sidebar { max-height: 45vh; } .splitter.vertical { display: none; } } /* chat panel */ #chat { background: var(--panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; min-width: 0; } .chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); } .chat-head .spacer { flex: 1; } .chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #666; } .chat-head .dot.on { background: #6fbf73; } .chat-head .dot.busy { background: var(--accent); } .chat-head .dot.off { background: #888; } .chat-help { padding: 8px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); line-height: 1.5; } .chat-help code { color: var(--text); font-size: 11px; word-break: break-all; } .chat-log { flex: 1; overflow: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; } .msg { max-width: 100%; border-radius: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; } .msg.user { background: #2c3a55; align-self: flex-end; } .msg.assistant { background: #262a32; white-space: normal; } .msg.assistant p { margin: 0 0 6px; } .msg.assistant p:last-child { margin: 0; } .msg.assistant pre { background: #111318; padding: 6px 8px; border-radius: 4px; overflow: auto; font-size: 11px; margin: 4px 0; } .msg.assistant code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; } .msg.assistant ul, .msg.assistant ol { margin: 2px 0 6px 18px; padding: 0; } .msg.assistant h4 { margin: 4px 0; } .msg.tool { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; padding: 2px 6px; } .msg.tool::before { content: "▸ "; } .msg.system { color: var(--muted); font-size: 11px; font-style: italic; padding: 2px 6px; align-self: center; } .chat-input { border-top: 1px solid var(--border); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; } .chat-input textarea { width: 100%; resize: vertical; background: #111318; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 6px; font: inherit; } .chat-buttons { display: flex; justify-content: flex-end; gap: 6px; } .movie-bar { border-top: 1px solid var(--border); font-weight: normal; } .movie-bar #movie-pos { flex: 1; min-width: 60px; } .movie-bar input[type="number"] { width: 70px; } .toolbar input[type="number"] { background: #111318; color: var(--text); border: 1px solid var(--border); border-radius: 3px; padding: 2px 4px; }