.theme-collection{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.theme-collection h4{font:22px Georgia,serif;margin:0 0 8px}.theme-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0}.theme-swatch{display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center;border:1px solid var(--line);border-radius:13px;background:var(--soft);padding:15px 8px;min-width:0}.theme-swatch[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.theme-swatch b{font-size:12px}.theme-swatch small{font-size:10px;color:var(--muted);line-height:1.5}.theme-swatch-color{display:block;width:36px;height:36px;border:1px solid #c9ab76;border-radius:50%;background:radial-gradient(ellipse at 65% 30%,#d8b77a55,transparent 60%),#0a1220}.theme-swatch[data-palette=twilight] .theme-swatch-color{background:radial-gradient(ellipse at 65% 30%,#e7a77a88,transparent 65%),#342546}.theme-swatch[data-palette=aurora] .theme-swatch-color{background:radial-gradient(ellipse at 65% 30%,#8fcdb988,transparent 65%),#143d41}.theme-swatch[data-palette=eclipse] .theme-swatch-color{background:radial-gradient(ellipse at 65% 30%,#b58d6788,transparent 65%),#242326}.appearance-controls{display:flex;flex-wrap:wrap;gap:14px}.appearance-controls>label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);flex:1;min-width:140px}.appearance-controls>label select{width:100%;padding:10px;background:var(--field);color:var(--text);border:1px solid var(--line);border-radius:8px}.appearance-controls>.appearance-focus{flex-direction:row;align-items:center;min-width:180px}.appearance-focus input{accent-color:var(--gold)}
:root[data-theme=dark][data-palette=twilight]{--bg:#100d19;--panel:#171321f5;--surface:#211b2c;--soft:#211a2be8;--field:#15121e;--text:#f1e9ec;--muted:#c2b4c5;--line:#ba9a8055;--accent:#e3b891;--accent-text:#ead0ba;--gold:#bd9777;--pale:#ead0ba;--focus:#f6cc9e;--reading-bg:#1b1624;--reading-text:#f1e9ec;--reading-muted:#c2b4c5}
:root[data-theme=dark][data-palette=aurora]{--bg:#081418;--panel:#0d1c21f5;--surface:#14292e;--soft:#11242be8;--field:#0a191f;--text:#e4f0eb;--muted:#a9c4c1;--line:#88b4aa55;--accent:#b9d5be;--accent-text:#d2e2ce;--gold:#97b8a5;--pale:#d7e4d0;--focus:#d1e8c4;--reading-bg:#102126;--reading-text:#e4f0eb;--reading-muted:#a9c4c1}
:root[data-theme=dark][data-palette=eclipse]{--bg:#0e0e10;--panel:#171719f5;--surface:#242325;--soft:#202023e8;--field:#141416;--text:#eee7df;--muted:#c0b6ad;--line:#ad896755;--accent:#d5b28f;--accent-text:#e0c5aa;--gold:#b39273;--pale:#e1c7a9;--focus:#f1d1ac;--reading-bg:#1c1b1d;--reading-text:#eee7df;--reading-muted:#c0b6ad}
:root[data-theme=light][data-palette=twilight]{--bg:#dcd9eb;--panel:#eeeaf7f5;--surface:#f4f0fa;--soft:#e9e3f1e8;--field:#f8f4fc;--text:#322b43;--muted:#67596e;--line:#80617e55;--accent:#795434;--accent-text:#71502f;--gold:#987755;--pale:#684b35;--focus:#705287;--reading-bg:#eeeaf5;--reading-text:#322b43;--reading-muted:#67596e}
:root[data-theme=light][data-palette=aurora]{--bg:#cfe1df;--panel:#e6f0ecf5;--surface:#eff6f1;--soft:#deebe7e8;--field:#f3faf6;--text:#203e3e;--muted:#486c69;--line:#547f7555;--accent:#456555;--accent-text:#365c51;--gold:#687e63;--pale:#3c5c4e;--focus:#36675b;--reading-bg:#e6f0ec;--reading-text:#203e3e;--reading-muted:#486c69}
:root[data-theme=light][data-palette=eclipse]{--bg:#dbdedf;--panel:#eff0f0f5;--surface:#f6f5f3;--soft:#e8e8e6e8;--field:#fbfbfa;--text:#353435;--muted:#676265;--line:#7d726355;--accent:#76573a;--accent-text:#6c513b;--gold:#8b7258;--pale:#6c513b;--focus:#715e4c;--reading-bg:#eff0ee;--reading-text:#353435;--reading-muted:#676265}
:root[data-palette=twilight] .cosmic-backdrop{filter:brightness(.8) saturate(.55) hue-rotate(235deg)}:root[data-palette=aurora] .cosmic-backdrop{filter:brightness(.8) saturate(.5) hue-rotate(110deg)}:root[data-palette=eclipse] .cosmic-backdrop{filter:brightness(.7) saturate(.22)}
:root[data-theme=light][data-palette=twilight] .cosmic-backdrop{filter:saturate(.6) hue-rotate(25deg)}:root[data-theme=light][data-palette=aurora] .cosmic-backdrop{filter:saturate(.5) hue-rotate(320deg)}:root[data-theme=light][data-palette=eclipse] .cosmic-backdrop{filter:saturate(.12)}
:root:not([data-palette=original])[data-palette] dialog,:root:not([data-palette=original])[data-palette] .sidebar{background:var(--panel);color:var(--text)}
:root:not([data-palette=original])[data-palette] body.has-messages .chat-stage{background:var(--reading-bg);border-color:var(--line)}
:root:not([data-palette=original])[data-palette] .composer{background:var(--field);border-color:var(--gold)}:root:not([data-palette=original])[data-palette] .composer textarea{color:var(--text)}
:root:not([data-palette=original])[data-palette] .composer textarea::placeholder{color:var(--muted)}
:root[data-reading=large] .message-text,:root[data-reading=large] .experience-answer,:root[data-reading=large] .result-panel textarea{font-size:18px;line-height:1.8}
:root[data-density=compact] .message{padding-block:12px}:root[data-density=compact] .message-text{line-height:1.55}:root[data-density=compact] .messages{gap:12px}
:root[data-quiet=true] body.has-messages .cosmic-backdrop{opacity:0!important}:root[data-quiet=true] body.has-messages{background:var(--bg)}
@media(max-width:600px){.theme-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}}
.theme-swatch[hidden]{display:none}
