/* Shared theme gallery for public store and Command Center settings. */
.cc-theme-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.cc-theme-toolbar-copy h2,.cc-theme-toolbar-copy h3{margin:0;color:inherit;letter-spacing:-.045em}.cc-theme-toolbar-copy p{margin:6px 0 0;color:#7d8ba0;line-height:1.55}
.cc-theme-mode-switch{display:inline-flex;padding:5px;border:1px solid rgba(80,130,185,.18);border-radius:999px;background:rgba(7,20,36,.06);gap:4px}
.cc-theme-mode-switch button{border:0;border-radius:999px;padding:10px 15px;background:transparent;color:inherit;font:inherit;font-weight:800;cursor:pointer}
.cc-theme-mode-switch button.is-active{background:#087bff;color:#fff;box-shadow:0 8px 20px rgba(8,123,255,.22)}
.cc-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cc-theme-card{position:relative;min-width:0;border:1px solid rgba(75,125,180,.18);border-radius:22px;background:rgba(255,255,255,.035);box-shadow:0 18px 44px rgba(3,13,28,.10);overflow:hidden}
.cc-theme-card.is-locked .cc-theme-preview{opacity:.44;filter:saturate(.55)}
.cc-theme-card.is-applied{box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent,#087bff) 68%,transparent),0 18px 44px rgba(3,13,28,.16)}
.cc-theme-preview-button{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;text-align:left}
.cc-theme-preview{position:relative;aspect-ratio:16/9;overflow:hidden;background:#08111f}
.cc-theme-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cc-theme-preview img[hidden]{display:none!important}
.cc-theme-preview::after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(transparent,rgba(3,10,20,.64));pointer-events:none}
.cc-theme-mode-badge,.cc-theme-state-badge,.cc-theme-open-badge{position:absolute;z-index:2;display:inline-flex;align-items:center;border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.cc-theme-mode-badge{left:12px;top:12px;padding:7px 10px;background:rgba(255,255,255,.94);color:#101827}
.cc-theme-state-badge{right:12px;top:12px;padding:7px 10px;background:rgba(3,12,24,.84);color:#fff;border:1px solid rgba(255,255,255,.16)}
.cc-theme-state-badge.is-owned{background:color-mix(in srgb,var(--theme-accent,#087bff) 78%,#07111f)}
.cc-theme-open-badge{left:12px;bottom:12px;padding:8px 11px;background:color-mix(in srgb,var(--theme-accent,#087bff) 82%,#07111f);color:#fff}
.cc-theme-card-body{padding:16px}.cc-theme-card-body small{display:block;color:var(--theme-accent,#087bff);font-weight:900;letter-spacing:.12em;text-transform:uppercase}.cc-theme-card-body h3{margin:4px 0 8px;font-size:24px;letter-spacing:-.045em}.cc-theme-card-body p{margin:0;color:#8391a3;line-height:1.55;min-height:72px}.cc-theme-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.cc-theme-card-actions strong{font-size:22px}.cc-theme-card-actions button{border:0;border-radius:12px;padding:11px 14px;background:var(--theme-accent,#087bff);color:#fff;font-weight:900;cursor:pointer}
.cc-theme-modal[hidden]{display:none!important}.cc-theme-modal{position:fixed;inset:0;z-index:99999}.cc-theme-modal-backdrop{position:absolute;inset:0;background:rgba(2,7,15,.78);backdrop-filter:blur(9px)}
.cc-theme-modal-panel{position:relative;width:min(1180px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;margin:16px auto;padding:24px;border-radius:26px;background:#0a1525;border:1px solid rgba(98,157,220,.24);box-shadow:0 40px 120px rgba(0,0,0,.45);color:#f8fbff}
html[data-theme=light] .cc-theme-modal-panel,.command-mode-light .cc-theme-modal-panel{background:#fff;color:#111827}
.cc-theme-modal-close{position:absolute;right:15px;top:15px;z-index:4;width:42px;height:42px;border:1px solid rgba(100,150,205,.22);border-radius:13px;background:rgba(255,255,255,.08);color:inherit;font-size:28px;cursor:pointer}.cc-theme-modal-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:22px}.cc-theme-modal-preview{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:20px;background:#07101d}.cc-theme-modal-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#07101d}.cc-theme-modal-preview img[hidden]{display:none!important}.cc-theme-modal-copy{padding:18px 8px;display:flex;flex-direction:column;gap:14px}.cc-theme-modal-copy h2,.cc-theme-modal-copy h3{margin:0;font-size:36px;letter-spacing:-.055em}.cc-theme-modal-copy p{margin:0;color:#9aa8ba;line-height:1.65}.cc-theme-modal-price{font-size:30px}.cc-theme-modal-state{padding:12px 14px;border-radius:14px;background:rgba(100,150,205,.09);border:1px solid rgba(100,150,205,.15);line-height:1.5}.cc-theme-modal-actions{display:grid;gap:10px}.cc-theme-modal-actions form,.cc-theme-modal-actions a{margin:0}.cc-theme-primary-action,.cc-theme-secondary-action{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:13px;text-decoration:none;font-weight:900;cursor:pointer}.cc-theme-primary-action{border:0;background:#087bff;color:#fff}.cc-theme-secondary-action{border:1px solid rgba(100,150,205,.20);background:transparent;color:inherit}.cc-theme-modal-mode{display:flex;gap:8px}.cc-theme-modal-mode button{flex:1;border:1px solid rgba(100,150,205,.2);border-radius:12px;padding:10px;background:transparent;color:inherit;font-weight:800;cursor:pointer}.cc-theme-modal-mode button.is-active{background:#087bff;color:#fff;border-color:#087bff}.cc-theme-modal-open{overflow:hidden}
.command-theme-center-section{margin-top:22px}.command-theme-center-section .cc-theme-card{background:color-mix(in srgb,var(--cc-surface) 90%,transparent);border-color:var(--cc-line)}.command-theme-center-section .cc-theme-card-body h3,.command-theme-center-section .cc-theme-card-actions strong{color:var(--cc-text)}.command-theme-center-section .cc-theme-card-body p{color:var(--cc-muted)}
.command-theme-store-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:12px;background:var(--cc-accent,#087bff);color:#fff!important;text-decoration:none;font-weight:900}
@media(max-width:1040px){.cc-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cc-theme-modal-grid{grid-template-columns:1fr}.cc-theme-modal-preview{aspect-ratio:16/9}}
@media(max-width:680px){.cc-theme-toolbar{display:grid}.cc-theme-mode-switch{width:100%}.cc-theme-mode-switch button{flex:1}.cc-theme-grid{grid-template-columns:1fr}.cc-theme-modal-panel{padding:15px}.cc-theme-modal-copy h2,.cc-theme-modal-copy h3{font-size:30px}.cc-theme-card-body p{min-height:0}.cc-theme-card-actions{align-items:stretch;display:grid}.cc-theme-card-actions button{width:100%}}
