/* Stage 11CE4C — Theme Management */
.theme-management-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.theme-management-page .theme-status-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.theme-management-page .theme-status-form select{min-width:160px;flex:1}
.theme-showcase-hero.has-managed-thumbnail,
.theme-picker-card .theme-card-preview.has-managed-thumbnail{background-image:linear-gradient(180deg,rgba(15,23,42,.12),rgba(15,23,42,.72)),var(--theme-managed-thumbnail)!important;background-size:cover!important;background-position:center!important}
.theme-showcase-hero.has-managed-thumbnail:before,
.theme-picker-card .theme-card-preview.has-managed-thumbnail:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.04),rgba(2,6,23,.58));pointer-events:none}
.theme-showcase-hero,.theme-picker-card .theme-card-preview{position:relative}
.theme-management-page .theme-showcase-inner,.theme-picker-card .theme-card-inner{position:relative;z-index:2}
.theme-category-checks{display:flex;flex-wrap:wrap;gap:10px}
.theme-category-checks label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer}
.theme-category-checks input{width:auto}
.theme-thumbnail-editor{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:24px;align-items:center;margin-top:16px}
.theme-thumbnail-preview{aspect-ratio:3/4;border-radius:24px;border:1px dashed #cbd5e1;background:#f8fafc center/cover no-repeat;display:grid;place-items:center;overflow:hidden;box-shadow:var(--shadow)}
.theme-thumbnail-preview span{padding:12px;border-radius:12px;background:rgba(255,255,255,.86);color:#64748b;font-weight:700}
.theme-thumbnail-controls{display:grid;gap:12px;align-content:start}
.theme-thumbnail-controls input[type=file]{padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}
.theme-thumbnail-controls [data-thumbnail-status][data-state=error]{color:#b91c1c}
.theme-thumbnail-controls [data-thumbnail-status][data-state=success]{color:#166534}
.theme-thumbnail-controls [data-thumbnail-status][data-state=loading]{color:#92400e}
.theme-form-page .check-row{display:flex;align-items:center;gap:10px}.theme-form-page .check-row input{width:auto}
@media(max-width:800px){.theme-management-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-thumbnail-editor{grid-template-columns:1fr}.theme-thumbnail-preview{max-width:320px;width:100%;margin:auto}}
