/* Theme library, installer and private preview controls. */
.theme-preview-banner{position:relative;z-index:70;display:flex;align-items:center;justify-content:center;gap:1rem;padding:.65rem 1rem;background:#3b2115;color:#fff;font-size:.82rem;text-align:center}
.theme-preview-banner form{margin:0}.theme-preview-banner button{padding:.35rem .7rem;border:1px solid #ffffff70;border-radius:999px;background:transparent;color:#fff;font:inherit;font-weight:700}
.theme-install-panel,.theme-active-panel{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin:1.2rem 0 1.8rem}
.theme-install-panel>div{max-width:44rem}.theme-install-panel h2,.theme-active-panel h2{margin:.3rem 0;font-size:1.55rem}.theme-install-panel p,.theme-active-panel p{margin:.4rem 0;color:var(--muted);font-size:.84rem;line-height:1.65}
.theme-upload-form{min-width:min(24rem,100%);display:grid;gap:.65rem}.theme-upload-form label{font-weight:700;font-size:.82rem}.theme-upload-form input[type=file]{min-height:auto;padding:.65rem;background:#fff}
.theme-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;margin:1rem 0 2rem}
.theme-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-card)}.theme-card.is-active{outline:2px solid var(--accent);outline-offset:2px}
.theme-card-preview{position:relative;min-height:10rem;display:flex;flex-direction:column;justify-content:flex-end;gap:.35rem;overflow:hidden;padding:1.1rem;background:linear-gradient(135deg,#e7ece4,#cddbd2);color:#153538}
.theme-card-preview>span{position:relative;z-index:1;align-self:flex-start;margin-bottom:.6rem;padding:.35rem .65rem;border-radius:999px;background:#fffdf8e8;font-size:.68rem;font-weight:750;letter-spacing:.06em}.theme-card-preview>i{display:block;width:55%;height:.35rem;border-radius:99px;background:#ffffffc2}.theme-card-preview>i:nth-last-child(1){width:30%;height:1.6rem;margin-top:.55rem;background:var(--accent,#a87a43)}
.theme-preview-old_theme{background:linear-gradient(140deg,#fcf8f2 0 46%,#f3e6d4 46% 100%);color:#822400}.theme-preview-old_theme>i:nth-last-child(1){background:#f39700}
.theme-preview-minimal{background:linear-gradient(140deg,#f7f7f4 0 55%,#e5e7e1 55% 100%);color:#202622}.theme-preview-minimal>i:nth-last-child(1){background:#263d34}
.theme-preview-classic{background:linear-gradient(140deg,#fbf8f0 0 50%,#e4d6bf 50% 100%);color:#30271f}.theme-preview-classic>i:nth-last-child(1){background:#a47a38}
.theme-card-copy{padding:1rem 1.1rem 1.15rem}.theme-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.theme-card-heading h2{margin:0;font-family:inherit;font-size:1.05rem;font-weight:750;letter-spacing:-.015em}
.theme-card-copy>p{min-height:3em;margin:.6rem 0;color:var(--muted);font-size:.78rem;line-height:1.55}.theme-card-copy dl{display:flex;flex-wrap:wrap;gap:.85rem;margin:.8rem 0;font-size:.7rem}.theme-card-copy dl div{display:grid;gap:.1rem}.theme-card-copy dt{color:var(--muted)}.theme-card-copy dd{margin:0;font-weight:700}
.theme-card-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.theme-card-actions form,.theme-active-panel form{margin:0}.theme-card-actions .button{min-height:2.55rem;padding:.55rem .85rem;font-size:.73rem}
.theme-swatch-row{display:flex;gap:.35rem;margin:.7rem 0}.theme-swatch-row span{width:1.15rem;height:1.15rem;border:1px solid #0002;border-radius:50%;background:var(--swatch)}
.theme-active-panel{border-color:#d6c8ad}.theme-admin-back{margin:1.5rem 0}.theme-current-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.1rem 0 1.5rem}
@media(max-width:760px){.theme-preview-banner{justify-content:space-between;gap:.5rem;font-size:.72rem}.theme-install-panel,.theme-active-panel,.theme-current-summary{align-items:stretch;flex-direction:column;gap:1rem}.theme-upload-form{min-width:0}.theme-active-panel .form-actions{display:flex;flex-wrap:wrap}}
