/* Parcourir toute la collection, comparer sa silhouette, puis ouvrir le détail. */
.theme-browser{display:block;position:sticky;top:0;z-index:5;background:var(--paper);padding:18px 0 10px;border-bottom:1px solid var(--line);margin-bottom:24px}
.theme-browser-top{display:flex;justify-content:space-between;gap:24px;align-items:center}.theme-search{width:min(420px,100%)}.theme-search input{padding:10px 0}
.theme-view-switch{display:flex;gap:4px;flex-shrink:0}.theme-view-switch button{font-size:12px;padding:11px 15px;border:1px solid var(--line);background:transparent;min-height:44px}.theme-view-switch [aria-pressed=true]{background:var(--ink);color:var(--paper)}
.theme-filters{display:flex;gap:8px;overflow-x:auto;padding:16px 2px 10px;scrollbar-width:thin}.theme-filters button{display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid var(--line);border-radius:24px;padding:10px 13px;background:none;font-size:12px;min-height:42px;flex-shrink:0}.theme-filters i{width:12px;height:12px;border-radius:50%;background:var(--filter-color);border:1px solid #0001}.theme-filters small{font-size:10px;opacity:.7}.theme-filters [aria-pressed=true]{border-color:var(--ink);background:#e7ebdf;box-shadow:inset 0 0 0 1px var(--ink)}
.theme-browser-status{display:flex;gap:16px;align-items:center;min-height:30px}.theme-browser-status p{margin:0;font-size:11px}.theme-browser-status>span{margin-left:auto;font-size:11px;color:var(--muted)}#theme-reset{border:0;border-bottom:1px solid var(--muted);padding:3px 0;background:none;font-size:11px}
#theme-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}#theme-grid[data-density=large]{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.theme-card{position:relative;min-width:0;outline:1px solid transparent}.theme-card.is-selected{outline-color:var(--ink)}.theme-card h3{font-size:21px;margin-bottom:5px}.theme-card .card-subtitle{font-size:11px}.theme-card .theme-actions{gap:8px}.theme-card .theme-actions button{font-size:11px}.theme-new{display:inline-block;margin:10px 18px 0;padding:3px 7px;background:#e9ebdf;color:#3c4b32;font:10px Arial,sans-serif;border-radius:3px}.theme-new+h3{padding-top:8px}.theme-card:has(.theme-new) h3{padding-top:8px}.theme-card .card-credit{display:block;font-size:10px;line-height:1.4;margin:8px 18px;color:var(--muted)}
.theme-preview>.fable-scene,.td-frame>.fable-scene{width:100%;height:100%}.theme-preview>.fable-scene{aspect-ratio:16/9}.fable-scene{flex:none}.td-controls [data-theme-pause][aria-pressed=true]{background:var(--ink);color:var(--paper)}
@media(max-width:1050px){#theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-browser-status>span{display:none}}
@media(max-width:700px){.theme-browser{padding-top:12px}.theme-browser-top{display:block}.theme-search{width:100%}.theme-view-switch{margin-top:12px}.theme-view-switch button{flex:1;padding:9px;font-size:11px}.theme-filters{padding-top:12px}.theme-filters button{font-size:11px}#theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#theme-grid[data-density=large]{grid-template-columns:1fr}.theme-card h3{font-size:19px;padding:12px 10px 0}.theme-card .card-subtitle{padding:0 10px;font-size:10px}.theme-card .theme-actions{padding:4px 10px 0;flex-wrap:wrap;gap:2px}.theme-card .theme-actions button{font-size:10px;min-height:38px}.theme-new{margin-left:10px;font-size:9px}.theme-card .card-credit{margin-left:10px;margin-right:10px;font-size:9px}.theme-browser-status{gap:10px}.theme-browser-status p{font-size:10px}}

#theme-dialog .td-controls>button[data-theme-replay],#theme-dialog .td-controls>button[data-theme-pause]{width:auto;min-width:66px;padding:8px 12px;font-size:12px}
