.switch-theme-intro { max-width: 78ch; color: var(--text-secondary); }
.switch-theme-directories { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.switch-theme-directories a { padding: 14px 18px; border: 1px solid var(--border); background: var(--bg-secondary); border-radius: 8px; font-weight: 600; }
.switch-theme-directories a:hover { border-color: var(--accent-light); }
.switch-theme-filters { display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 16px; margin: 26px 0 12px; }
.switch-theme-filters label { display: block; margin-bottom: 7px; font-size: .9rem; color: var(--text-secondary); }
.switch-theme-filters input,.switch-theme-filters select,.switch-theme-filters button { min-height: 48px; width: 100%; padding: 11px 13px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; }
.switch-theme-filters button { cursor: pointer; }
.switch-theme-filters :focus-visible,.switch-theme-card a:focus-visible,.switch-theme-card summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.switch-theme-results { margin: 12px 0 24px; color: var(--text-secondary); font-size: .9rem; }
.switch-theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.switch-theme-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 13px; scroll-margin-top: 24px; }
.switch-theme-card[hidden],[data-theme-group][hidden],.switch-theme-empty[hidden] { display:none; }
.switch-theme-preview { display:block; background:#090b10; }
.switch-theme-preview img { display:block; width:100%; aspect-ratio:16/9; object-fit:contain; }
.switch-theme-body { padding:23px; display:flex; flex-direction:column; gap:13px; flex:1; }
.switch-theme-eyebrow { display:flex; justify-content:space-between; gap:10px; font-size:.76rem; color:var(--text-secondary); letter-spacing:.04em; }
.switch-theme-card h3 { font-size:1.28rem; line-height:1.3; }
.switch-theme-card p,.switch-theme-card li { color:var(--text-secondary); font-size:.93rem; }
.switch-theme-author { margin-top:-5px; }
.switch-theme-tags { display:flex; gap:6px; flex-wrap:wrap; list-style:none; padding:0; margin:0; }
.switch-theme-tags li { font-size:.75rem; padding:4px 8px; border:1px solid var(--border); border-radius:4px; }
.switch-theme-card details { border-top:1px solid var(--border); padding-top:13px; }
.switch-theme-card summary { cursor:pointer; font-size:.9rem; padding:5px 0; color:var(--text-primary); }
.switch-theme-card details ul { margin:12px 0; padding-left:20px; }
.switch-theme-card details li { margin-bottom:7px; overflow-wrap:anywhere; }
.switch-theme-card details p { margin:10px 0; }
.switch-theme-card .guide-links { margin-top:auto; padding-top:5px; gap:12px 20px; align-items:center; }
.switch-theme-download { font-weight:650; display:inline-flex; gap:8px; align-items:center; min-height:44px; }
.switch-theme-download small { font-weight:400; color:var(--text-secondary); }
.switch-theme-hash { font-family:monospace; font-size:.77rem; overflow-wrap:anywhere; }
.switch-theme-card .switch-theme-caution { color:var(--text-primary); font-size:.85rem; border-left:2px solid var(--accent-light); padding-left:12px; }
.switch-theme-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.switch-theme-tools .guide-resource { gap:14px; }
.switch-theme-tools h3 { font-size:1.3rem; }
.switch-theme-storage { border:1px solid var(--border); padding:24px; border-radius:10px; background:var(--bg-secondary); max-width:78ch; }
.switch-theme-storage pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; color:var(--text-primary); font-size:.87rem; line-height:1.8; }
.switch-theme-storage p { color:var(--text-secondary); margin-top:16px; }
.switch-theme-empty { padding:22px 0; }
@media (max-width:700px) {
  .switch-theme-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
  .switch-theme-filters>div:first-child { grid-column:1/-1; }
  .switch-theme-filters>button { align-self:end; }
  .switch-theme-grid,.switch-theme-tools { grid-template-columns:1fr; }
  .switch-theme-body { padding:18px; }
  .switch-theme-directories { gap:8px; }
  .switch-theme-directories a { flex:1 1 150px; }
}
