/* Appearance controls keep their position in both palettes. */
.theme-toggle{order:4;display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #dddccb;border-radius:16px;background:#fffdf9;color:var(--green)}
.theme-toggle:hover{background:#f0f2e7}
.theme-toggle .icon{width:21px;height:21px}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-option{display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 10px;border:1px solid var(--line);background:var(--white);border-radius:20px;min-width:0}
.theme-option:hover{background:var(--soft)}
.theme-option[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green);background:var(--mint)}
.theme-option-label{font-size:13px;line-height:1.4;font-weight:600;min-height:37px;max-width:100%;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center}
.theme-check{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid var(--line);border-radius:50%}
.theme-check .icon{width:15px;height:15px;visibility:hidden}
.theme-option[aria-pressed="true"] .theme-check{background:var(--green);border-color:var(--green);color:white}
.theme-option[aria-pressed="true"] .theme-check .icon{visibility:visible}
.theme-preview{display:flex;flex-direction:column;gap:9px;width:100%;max-width:104px;height:132px;padding:12px 9px;border:1px solid #d6dece;border-radius:13px;background:#faf8f2;box-shadow:0 3px 8px #00000009}
.preview-top{height:6px;width:56%;border-radius:4px;background:#496d62}
.preview-hero{height:38px;border-radius:7px;background:#143f43;border-top:2px solid #c49a4a}
.preview-cards{display:flex;gap:6px;height:22px}.preview-cards i{flex:1;border-radius:5px;background:#e4eadf}
.preview-nav{margin-top:auto;height:12px;border-radius:6px;background:#e4eadf}
.theme-preview-dark{background:#0f1e20;border-color:#31494a}
.theme-preview-dark .preview-top{background:#a9c5b6}
.theme-preview-dark .preview-hero{background:#17484a;border-top-color:#d7b575}
.theme-preview-dark .preview-cards i,.theme-preview-dark .preview-nav{background:#29413e}
.theme-preview-system{background:linear-gradient(90deg,#faf8f2 50%,#0f1e20 50%)}
.theme-preview-system .preview-top{background:linear-gradient(90deg,#496d62 88%,#a9c5b6 88%)}
.theme-preview-system .preview-hero{background:linear-gradient(90deg,#143f43 50%,#17484a 50%)}
.theme-preview-system .preview-cards i:last-child{background:#29413e}
.theme-preview-system .preview-nav{background:linear-gradient(90deg,#e4eadf 50%,#29413e 50%)}
.modal-body .theme-note{font-size:12px;line-height:1.7;margin:21px 0 15px;color:var(--muted)}
@media(max-width:760px){.top-actions{gap:6px}.language .language-label{display:none}.language{padding-inline:9px;gap:6px}.topbar{gap:9px}.theme-options{gap:9px}.theme-option{padding:12px 7px}.theme-option-label{font-size:12px}}
@media(max-width:370px){.top-actions{gap:3px}.language{width:44px;padding-inline:6px}.language .icon{display:none}.theme-toggle{width:44px}.theme-options{gap:7px}.theme-option{padding:10px 6px}.theme-preview{height:119px;padding:10px 7px;gap:8px}}
