.workspace{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.controls,.preview{min-width:0}.preview{background:linear-gradient(150deg,#222a40,#181a23);align-self:start}#list{display:grid;gap:.4rem;max-height:42vh;overflow:auto}#list button{text-align:left;background:#252631;white-space:normal;overflow-wrap:anywhere;border-left:3px solid transparent}#list button[aria-current=true]{background:#353d57;border-left-color:#a0b7fc}#list small{display:block;color:#b6c6e8;margin-top:.25rem}.source{white-space:pre-wrap;overflow-wrap:anywhere;font:1.1rem/1.55 ui-monospace,monospace;color:#d5e4ff;margin:0 0 1rem}.meta,.note,.preview a{color:#b4c0d6;font-size:.9rem}.preview label{display:block;margin:1rem 0 .4rem}#search,textarea{width:100%;border:1px solid #55596b;background:#12141d;color:#f2f3ff;padding:10px;border-radius:6px;font:inherit}textarea{min-height:5rem;resize:vertical}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button:first-child{background:#4b5380}#status{min-height:1.5em;color:#ffd79c}@media(max-width:680px){.workspace{grid-template-columns:minmax(0,1fr)}#list{max-height:165px}}

#demo{display:block;margin:.7rem 0 .2rem}.note a{color:inherit}
/* 밝은 테마: 어두운 편집 판과 목록 단추가 그대로 남아 제목과 글이 안 보이던 것 */
:root[data-theme="light"] .preview{background:linear-gradient(150deg,#eef1fa,#f7f7fb)}
:root[data-theme="light"] #list button{background:#eceef5;color:var(--text)}
:root[data-theme="light"] #list button[aria-current=true]{background:#dfe5f7;border-left-color:#4b5fb0}
:root[data-theme="light"] #list small{color:#44506e}
:root[data-theme="light"] .source{color:#1e2a4a}
:root[data-theme="light"] :is(.meta,.note,.preview a){color:#4a5470}
:root[data-theme="light"] :is(#search,textarea){background:#fff;color:var(--text);border-color:#b9bfd0}
:root[data-theme="light"] .actions button:first-child{background:#4b5380;color:#fff}
:root[data-theme="light"] #status{color:#9a5b00}
.actions button:first-child{color:#fff}
