.workspace{grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr)}.preview{background:#212e29;align-self:start}#plot{width:100%;background:#eee7d3;border-radius:8px;display:block}.legend{margin-top:.65rem;color:#85c8a0}.legend span{color:#f7ae7d;margin-left:1em}#metrics{color:#e5e6cf}#slider,textarea{width:100%}textarea{background:#121513;color:#e7e9d9;border:1px solid #4b564c;border-radius:6px;padding:.65rem;font: .89rem/1.4 ui-monospace,monospace;resize:vertical}.actions{display:flex;gap:5px;flex-wrap:wrap;margin:.65rem 0 1.4rem}.controls button{margin-top:.8rem}.controls a{color:#aed7ad}#ranking{display:flex;flex-wrap:wrap;gap:.4rem}#ranking button[aria-pressed=true]{background:#486a52}#ranking small{display:block;color:#e1dfcf}@media(max-width:680px){.workspace{grid-template-columns:minmax(0,1fr)}}
.legend b{font-weight:400}.legend .lref{color:#85c8a0}.legend .lsmp{color:#f7ae7d;margin-left:.8em}.legend span{color:inherit;margin:0}.legend{color:#e5e6cf}
.preview h2,.preview label{color:#eef0e2}#ranking small{color:inherit;opacity:.85}.hint{font-size:.88rem;color:var(--text-3)}.actions .primary{margin-top:.8rem}
/* 어두운 테마: 넓은 밝은 그래프 면이 눈부시지 않게 어두운 면에 밝은 선 */
:root:not([data-theme="light"]) #plot{background:#17201c}
:root:not([data-theme="light"]) #plot text{fill:#c9cdb8}
:root:not([data-theme="light"]) #plot line{stroke:#46534b}
:root:not([data-theme="light"]) #plot path.ref{stroke:#6fc28f}:root:not([data-theme="light"]) #plot circle.ref{fill:#6fc28f}
:root:not([data-theme="light"]) #plot path.smp{stroke:#f0a070}:root:not([data-theme="light"]) #plot circle.smp{fill:#f0a070}
/* 밝은 테마: 진한 판 대신 밝은 판, 글자와 범례는 진하게 */
:root[data-theme="light"] .preview{background:var(--surface)}
:root[data-theme="light"] .preview h2,:root[data-theme="light"] .preview label,:root[data-theme="light"] .legend,:root[data-theme="light"] #metrics{color:#1f2420}
:root[data-theme="light"] .legend .lref{color:#276d4c}:root[data-theme="light"] .legend .lsmp{color:#ae582e}
:root[data-theme="light"] textarea{background:#fff;color:#18181b;border-color:#d4d4d8}
:root[data-theme="light"] #ranking button[aria-pressed=true]{background:#d7eadc;color:#1f3a28}
