/* Site palettes deliberately leave the reader's --reading-* preferences alone. */
html[data-site-theme] .site-header{background:var(--bg);border-color:var(--line)}
html[data-site-theme] .desktop-nav a{color:var(--muted)}
html[data-site-theme] .desktop-nav a.active{color:var(--yellow)}
html[data-site-theme] .btn-primary,html[data-site-theme] .skip-link{color:var(--accent-ink,#151515)}
html[data-site-theme] .btn-primary:hover{background:var(--yellow);filter:brightness(1.08)}
html[data-site-theme] .btn-secondary{background:var(--surface-2);border-color:var(--line)}
html[data-site-theme] .btn-secondary:hover{background:var(--surface)}
html[data-site-theme] .input,html[data-site-theme] .field input:not([type=checkbox]):not([type=radio]),html[data-site-theme] .field select,html[data-site-theme] .field textarea{background:var(--bg);border-color:var(--line);color:var(--text)}
html[data-site-theme] .genre-pill{background:var(--surface);border-color:var(--line);color:var(--muted)}
html[data-site-theme] .genre-pill.active{background:var(--yellow);color:var(--accent-ink);border-color:var(--yellow)}
html[data-site-theme] .sort-control select{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-site-theme] .card-author,html[data-site-theme] .card-meta,html[data-site-theme] .detail-description{color:var(--muted)}
html[data-site-theme] .creator-banner{background:var(--surface);border-color:var(--line)}
html[data-site-theme] .creator-banner p,html[data-site-theme] .footer-bottom{color:var(--muted)}
html[data-site-theme] .avatar{background:var(--surface-2)}
html[data-site-theme] .badge{border-color:var(--line);color:var(--muted)}
html[data-site-theme] .hero{color:#fff}
html[data-site-theme] .hero .feature-label{color:#f9cd58}
html[data-site-theme] .cover-title{color:#fff}
.theme-page{padding-bottom:30px}.theme-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;align-items:start}.theme-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.theme-preset{display:grid;gap:7px;padding:15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);text-align:left;min-width:0}.theme-preset:hover{border-color:var(--yellow)}.theme-preset[aria-pressed=true]{outline:2px solid var(--yellow);outline-offset:2px}.theme-preset>strong{font-family:var(--display);font-size:17px}.theme-preset>span:last-child{color:var(--muted);font-size:12px}.theme-swatch{background:var(--preview-bg);border-radius:7px;padding:15px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;height:86px;margin-bottom:5px}.theme-swatch>span{grid-column:1/-1;background:var(--preview-accent);width:40%;height:5px;border-radius:3px}.theme-swatch>i{background:var(--preview-surface);border-bottom:3px solid var(--preview-accent);border-radius:4px}.theme-controls h2{font-size:23px;margin-bottom:10px}.theme-controls p{font-size:12px}.theme-color-field{display:flex;align-items:center;justify-content:space-between;gap:15px}.theme-color-field input[type=color]{width:60px;height:42px;border:1px solid var(--line);border-radius:6px;background:var(--bg);cursor:pointer;padding:4px}.theme-save-actions{display:flex;flex-wrap:wrap;gap:10px}.theme-help{padding:15px;background:var(--surface-2);border-radius:8px}.theme-feedback{position:sticky;bottom:16px;padding:15px 20px;background:var(--surface);border:1px solid var(--line);box-shadow:0 4px 24px #0003;border-radius:9px;margin-top:24px;z-index:5}.theme-controls textarea{min-height:110px}
@media(max-width:1000px){.theme-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:20px}}
@media(max-width:760px){.theme-workspace{grid-template-columns:1fr}.theme-controls{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.theme-feedback{bottom:8px}}
@media(max-width:550px){.theme-presets{gap:12px}.theme-preset{padding:12px}.theme-preset>span:last-child{font-size:11px}.theme-controls{grid-template-columns:1fr}.theme-feedback{font-size:12px;padding:12px 15px}.theme-workspace>.stack>.split>.muted{font-size:12px}}
