:root { --paper: #eef1ec; --panel: #fbfaf5; --ink: #171a16; --muted: #687164; --line: #cbd2c4; --accent: #b9543c; --green: #4d765f; --blue: #3f607c; --pressed: #8c9288; --pressed-border: #aeb4aa; --pressed-ring: rgba(238, 241, 236, 0.2); --shadow: 0 18px 60px rgba(23, 26, 22, 0.12); } * { box-sizing: border-box; } body { margin: 0; overflow-x: hidden; min-height: 100vh; background: linear-gradient(90deg, rgba(23, 26, 22, 0.035) 1px, transparent 1px), linear-gradient(180deg, rgba(23, 26, 22, 0.035) 1px, transparent 1px), var(--paper); background-size: 28px 28px; color: var(--ink); font-family: ui-sans-serif, "Avenir Next", "Helvetica Neue", sans-serif; } button, input, textarea, select { font: inherit; } button:disabled { cursor: wait; opacity: 0.64; transform: none; } .shell { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 18px; width: 100%; max-width: 100vw; min-height: 100vh; padding: 18px; } .panel { background: color-mix(in oklch, var(--panel), white 20%); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; } .brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; } .brand span { color: var(--panel); background: var(--ink); border-radius: 4px; padding: 3px 7px; font-size: 12px; letter-spacing: 0; } .brand strong { font-size: 18px; font-weight: 650; } label { display: grid; gap: 7px; margin: 12px 0; color: var(--muted); font-size: 12px; } .label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .help-tooltip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fffdf7; cursor: help; font-size: 11px; line-height: 1; } .help-tooltip::after { content: attr(aria-label); position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; width: 280px; max-width: min(280px, calc(100vw - 48px)); padding: 9px 10px; border-radius: 6px; background: var(--ink); box-shadow: 0 12px 36px rgba(23, 26, 22, 0.24); color: var(--panel); font-size: 11px; font-weight: 400; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease; } .help-tooltip:hover::after, .help-tooltip:focus-visible::after { opacity: 1; transform: translateY(0); } input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fffdf7; color: var(--ink); padding: 10px 11px; outline: none; } textarea { resize: vertical; line-height: 1.45; } input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 84, 60, 0.12); } .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .output-options { align-items: end; } .output-options .toggle-row { min-height: 40px; margin: 12px 0; } .actions { display: grid; grid-template-columns: 1fr 0.7fr; gap: 10px; margin-top: 16px; } .toggle-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; } .toggle-row input { width: 16px; height: 16px; accent-color: var(--ink); } button { border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fffdf7; min-height: 38px; padding: 0 12px; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease; } button:hover:not(:disabled) { border-color: var(--ink); background: color-mix(in oklch, #fffdf7, var(--green) 10%); box-shadow: 0 8px 18px rgba(23, 26, 22, 0.08); transform: translateY(-1px); } button:active:not(:disabled), button.is-pressed:not(:disabled) { border-color: var(--pressed-border); background: var(--pressed); color: #fffdf7; box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.18), inset 0 2px 7px rgba(23, 26, 22, 0.16); transform: translateY(0); } button.is-key-active:not(:disabled) { border-color: var(--pressed-border); background: var(--pressed); color: #fffdf7; box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.22), 0 0 0 3px var(--pressed-ring), 0 10px 22px rgba(23, 26, 22, 0.18); transform: none; } button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 84, 60, 0.18); } .primary { background: var(--ink); color: var(--panel); border-color: var(--ink); } .primary:hover:not(:disabled) { background: color-mix(in oklch, var(--ink), var(--green) 18%); color: var(--panel); } .primary:active:not(:disabled), .primary.is-pressed:not(:disabled) { background: var(--pressed); border-color: var(--pressed-border); color: var(--panel); } .wide { width: 100%; margin-top: 10px; } .workspace { display: grid; gap: 18px; min-width: 0; max-width: 100%; } .stage { position: relative; display: grid; grid-template-rows: auto auto auto auto auto; align-self: start; justify-self: center; min-width: 0; width: 100%; max-width: min(1500px, 100%); overflow: hidden; border: 1px solid #11140f; border-radius: 8px; background: #11140f; box-shadow: var(--shadow); } .preview-frame { position: relative; display: grid; place-items: center; justify-self: center; width: min(calc(1040px * var(--preview-scale, 1.2)), 100%); overflow: hidden; background: #11140f; contain: paint; isolation: isolate; } .preview-frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient( 180deg, rgba(238, 241, 236, 0.045), transparent 34%, rgba(0, 0, 0, 0.18) ); } .preview-frame::after { content: none; } .stage[data-preview-state="waiting"] .preview-frame::after { animation: none; } .topbar, .timeline { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 14px; color: #e8eadf; background: rgba(17, 20, 15, 0.88); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; } .topbar > * { flex: 0 0 auto; align-self: center; } .topbar-spacer { flex: 1; } .record-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 118px; width: 118px; min-height: 28px; height: 28px; padding: 0 9px; border-color: rgba(232, 234, 223, 0.22); background: rgba(238, 241, 236, 0.08); color: #e8eadf; font-size: 11px; font-variant-numeric: tabular-nums; } .record-button:hover:not(:disabled) { border-color: rgba(232, 234, 223, 0.44); background: rgba(238, 241, 236, 0.14); box-shadow: none; transform: none; } .record-button:active:not(:disabled), .record-button.is-pressed:not(:disabled), .record-button:focus-visible { transform: none; } .record-button.is-recording { border-color: color-mix(in oklch, var(--accent), white 18%); background: var(--accent); color: #fffdf7; } .record-button.is-saving { cursor: wait; opacity: 0.76; } #recordLabel { flex: 0 0 36px; text-align: left; } .record-button-icon { flex: 0 0 9px; width: 9px; height: 9px; min-width: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(185, 84, 60, 0.16); } .record-button.is-recording .record-button-icon { border-radius: 2px; background: #fffdf7; box-shadow: none; } .record-button-duration { display: inline-block; flex: 0 0 34px; min-width: 34px; text-align: right; color: rgba(232, 234, 223, 0.7); } .record-button.is-recording .record-button-duration { color: rgba(255, 253, 247, 0.86); } .preview-scale-control { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 170px; min-width: 170px; margin: 0; color: rgba(232, 234, 223, 0.72); font-size: 11px; line-height: 1; } .preview-scale-control input { width: 92px; min-width: 72px; padding: 0; border: 0; background: transparent; accent-color: #eef1ec; } .preview-scale-control b { min-width: 36px; color: #fffdf7; font-weight: 650; } #statusText { display: inline-block; min-width: 92px; line-height: 1; } #chunkText { display: inline-block; min-width: 70px; line-height: 1; } .stage-stat { display: inline-flex; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 0; color: rgba(232, 234, 223, 0.72); line-height: 1; } .stage-stat b { display: inline-block; color: #fffdf7; font-weight: 650; font-variant-numeric: tabular-nums; } #outputSizeText { min-width: 206px; } #renderFps { min-width: 2ch; text-align: right; } #theoreticalFpsText { min-width: 116px; } #stageLatencyText { min-width: 120px; } @media (max-width: 1180px) { .topbar { flex-wrap: wrap; height: auto; min-height: 44px; padding: 8px 14px; row-gap: 7px; } .topbar-spacer { display: none; } .preview-scale-control { flex-basis: 170px; min-width: 170px; } #outputSizeText { min-width: 156px; } #theoreticalFpsText { min-width: 100px; } #stageLatencyText { min-width: 108px; } } .timeline { justify-content: flex-end; border-top: 1px solid rgba(232, 234, 223, 0.12); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .dot.live { background: #8ecf9d; box-shadow: 0 0 0 4px rgba(142, 207, 157, 0.14); } .dot.error { background: var(--accent); } #viewport { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: min(calc(56vh * var(--preview-scale, 1.2)), 82vh); min-height: 0; object-fit: contain; image-rendering: auto; transform: translateZ(0); } .preview-overlay { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; pointer-events: none; background: transparent; } .stage[data-preview-state="waiting"] .preview-overlay { display: grid; } .preview-loader { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(238, 241, 236, 0.22); border-top-color: rgba(238, 241, 236, 0.82); animation: previewProgressSpin 0.8s linear infinite; } .stage-controls { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; padding: 12px 14px 13px; border-top: 1px solid rgba(232, 234, 223, 0.12); background: #151912; } .control-cluster { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; } .control-title { color: rgba(232, 234, 223, 0.62); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; } .stage-controls .camera-pad { margin: 0; } .stage-controls .camera-pad button { position: relative; border-color: rgba(232, 234, 223, 0.18); background: #eef1ec; color: #11140f; } .stage-controls .camera-pad button:active:not(:disabled), .stage-controls .camera-pad button.is-pressed:not(:disabled), .stage-controls .camera-pad button.is-key-active:not(:disabled) { border-color: var(--pressed-border); background: var(--pressed); color: #fffdf7; box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.22), 0 0 0 3px var(--pressed-ring), 0 10px 22px rgba(23, 26, 22, 0.18); } .stage-controls .camera-pad button::after { content: attr(data-key); position: absolute; right: 7px; top: 5px; color: color-mix(in oklch, var(--muted), var(--ink) 18%); font-size: 10px; font-weight: 650; } .stage-controls .camera-pad button:active::after, .stage-controls .camera-pad button.is-pressed::after, .stage-controls .camera-pad button.is-key-active::after { color: rgba(255, 253, 247, 0.78); } .section-title { margin: 16px 0 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; } .reference-upload { margin-top: 0; } .reference-upload input { border: 1px dashed var(--line); } #referencePreview { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 0; border: 1px solid var(--line); border-radius: 8px; background: #e5e7df; } #referenceName { min-height: 18px; color: var(--muted); font-size: 11px; } .spec-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; } .spec-grid span { display: grid; gap: 2px; min-height: 46px; align-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fffdf7; padding: 9px; color: var(--muted); font-size: 11px; } .spec-grid b { color: var(--ink); font-size: 14px; } .presets { position: static; max-height: none; overflow: visible; scrollbar-gutter: stable; } .preset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 7px; min-height: 0; max-height: 230px; margin-bottom: 12px; overflow: auto; padding-right: 3px; } .preset { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf7; text-align: left; } .preset-thumb { display: block; grid-row: span 2; width: 72px; height: 46px; min-height: 0; object-fit: cover; border-radius: 5px; border: 1px solid color-mix(in oklch, var(--line), var(--ink) 8%); } .preset b { min-width: 0; font-size: 13px; } .preset span { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.25; } .preset[data-tone="green"] { border-left: 4px solid var(--green); } .preset[data-tone="blue"] { border-left: 4px solid var(--blue); } .preset[data-tone="accent"] { border-left: 4px solid var(--accent); } .preset:hover:not(:disabled) { background: color-mix(in oklch, #fffdf7, var(--blue) 9%); } .camera-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; } .camera-pad span { min-height: 36px; } .camera-pad button { min-height: 36px; font-size: 12px; } .telemetry { display: grid; gap: 7px; margin-top: 10px; } .telemetry span { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; color: var(--muted); font-size: 12px; } .telemetry b { color: var(--ink); font-weight: 650; } .stage-telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 0; border-top: 1px solid rgba(232, 234, 223, 0.12); background: #11140f; } .stage-telemetry span { min-height: 36px; align-items: center; gap: 8px; border-right: 1px solid rgba(232, 234, 223, 0.1); border-bottom: 1px solid rgba(232, 234, 223, 0.1); padding: 0 14px; color: rgba(232, 234, 223, 0.62); font-size: 11px; } .stage-telemetry b { color: #fffdf7; font-size: 12px; } .history-list { display: grid; gap: 7px; max-height: 92px; overflow: auto; } .history-list span { display: block; border-left: 3px solid var(--blue); background: #fffdf7; padding: 8px 9px; color: var(--muted); font-size: 12px; } @media (max-width: 980px) { .shell { grid-template-columns: 1fr; } .presets { position: static; max-height: none; overflow: visible; } .spec-grid { grid-template-columns: repeat(2, 1fr); } .preset-list { min-height: 260px; max-height: 420px; } #viewport { max-height: 420px; } .stage-controls { grid-template-columns: 1fr; } .stage-telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topbar { flex-wrap: wrap; height: auto; min-height: 44px; padding: 10px 14px; } .topbar-spacer { display: none; } .preview-scale-control { min-width: 160px; } } @keyframes previewProgressSpin { to { transform: rotate(360deg); } }