:root { color-scheme: light; --paper: #f5f1e7; --panel: #faf8f1; --ink: #343b32; --muted: #85877b; --line: #e3e2d7; --accent: #656b46; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px system-ui, sans-serif; display: flex; height: 100dvh; }
.sidebar { width: 296px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.brand { padding: 28px 24px 24px; display: flex; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.brand-mark { color: var(--accent); font-size: 42px; line-height: 1; transform: rotate(-15deg); }
h1 { font: 38px 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; margin: 0; letter-spacing: -1px; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.controls { overflow-y: auto; padding: 0 24px; scrollbar-width: thin; }
section { padding: 23px 0; border-bottom: 1px solid var(--line); }
section:last-child { border: 0; }
section h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 20px; display: flex; justify-content: space-between; }
section h2 span { color: #aaa99b; font-weight: 400; }
label { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; font-size: 12px; }
output { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; height: 14px; accent-color: var(--accent); cursor: pointer; margin: 0; }
select, input[type=number] { width: 100%; padding: 9px 10px; background: transparent; border: 1px solid #d7d8cc; border-radius: 5px; font: inherit; color: var(--ink); }
.toggle { justify-content: flex-start; gap: 9px; cursor: pointer; }
.toggle input { accent-color: var(--accent); margin: 0; }
.hint { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.stats { margin-top: 18px; padding: 12px; background: #eeeee4; border-radius: 5px; }
.stats div { display: flex; justify-content: space-between; font-size: 11px; line-height: 1.9; }
.stats span { color: #7b7e70; }
.stats strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.sidebar > footer { padding: 16px 24px 20px; border-top: 1px solid var(--line); }
button { font: inherit; padding: 10px 13px; background: transparent; border: 1px solid #d7d8cc; color: var(--ink); border-radius: 5px; cursor: pointer; transition: background .15s; }
button:hover { background: #e8e8db; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #b79442; outline-offset: 3px; }
.primary { background: var(--accent); color: #faf8ef; border-color: var(--accent); width: 100%; display: flex; justify-content: space-between; }
.primary:hover { background: #535a38; }
.button-row { display: flex; gap: 8px; margin-top: 8px; }
.button-row button { flex: 1; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage-header { padding: 30px 38px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { font-size: 9px; letter-spacing: .19em; color: #93917e; }
.stage-header h2 { font: 32px 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; margin: 8px 0 0; font-weight: 400; }
.quiet { border: 0; color: var(--muted); padding-right: 0; font-size: 11px; white-space: nowrap; }
#viewport { flex: 1; min-height: 0; position: relative; margin: 0 18px; }
canvas { width: 100%; height: 100%; display: block; }
.empty-note { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: italic 20px Georgia, serif; color: #a4a18f; pointer-events: none; }
.stage-footer { margin: 0 38px; padding: 16px 0 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.stage-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
#status-dot { width: 5px; height: 5px; border-radius: 50%; background: #8c9660; }
body.dark { --paper: #18201e; --ink: #e0dfd0; --line: #34403a; }
body.dark .sidebar { --ink: #343b32; --line: #e3e2d7; }
body.dark .stage-header h2 { color: #e0dfd0; }
@media (max-width: 760px) { .sidebar { width: 245px; } .brand, .sidebar > footer { padding-left: 18px; padding-right: 18px; } .controls { padding: 0 18px; } .stage-header { padding: 24px 20px 12px; flex-direction: column; align-items: flex-start; gap: 6px; } .stage-header h2 { font-size: 26px; } .stage-footer { margin: 0 20px; flex-wrap: wrap; gap: 8px; } #viewport { margin: 0 6px; } }
@media (max-width: 500px) { body { height: auto; min-height: 100dvh; flex-direction: column-reverse; } main { height: 70dvh; flex: none; } .sidebar { width: 100%; border-right: 0; } .controls { overflow: visible; } .brand { padding-top: 16px; padding-bottom: 16px; } }
