/* Rock Band Collective v6.2 — UI/UX organization pass */
:root{--ux-surface:#171914;--ux-surface-2:#20231d;--ux-border:#3c4336;--ux-muted:#9ca58f;--ux-text:#edf1e6;--ux-green:var(--primary,#c8ff5a);--ux-shadow:0 18px 60px rgba(0,0,0,.32)}
html[data-theme="light"]{--ux-surface:#fff;--ux-surface-2:#f3f5ef;--ux-border:#c7cdbd;--ux-muted:#65705e;--ux-text:#191b16;--ux-shadow:0 18px 60px rgba(35,42,29,.12)}

/* Global navigation */
.ux-header{position:relative;z-index:50;gap:22px}.ux-primary-nav{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:1;min-width:0}.ux-primary-nav>a,.ux-nav-menu>summary{min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:5px;color:inherit;font-weight:750;font-size:.83rem;letter-spacing:.01em;cursor:pointer;white-space:nowrap}.ux-primary-nav>a:hover,.ux-nav-menu>summary:hover,.ux-nav-menu[open]>summary,.ux-nav-menu.active-nav-group>summary{background:var(--ux-surface-2);color:var(--ux-green)}.ux-primary-nav>a.active-nav{color:var(--ux-green);background:var(--ux-surface-2)}.ux-create-summary,.ux-join-link{border:1px solid color-mix(in srgb,var(--ux-green) 55%,transparent)!important;color:var(--ux-green)!important}.ux-nav-menu{position:relative}.ux-nav-menu>summary{list-style:none}.ux-nav-menu>summary::-webkit-details-marker{display:none}.ux-nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;width:245px;padding:8px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;box-shadow:var(--ux-shadow);display:grid;gap:3px;z-index:90}.ux-nav-dropdown-right{left:auto;right:0}.ux-nav-dropdown-wide{width:285px;grid-template-columns:1fr}.ux-nav-dropdown a{padding:10px 11px;border-radius:5px;font-size:.82rem;color:var(--ux-text);display:flex;justify-content:space-between;gap:10px}.ux-nav-dropdown a:hover{background:var(--ux-surface-2);color:var(--ux-green)}.ux-nav-dropdown hr{border:0;border-top:1px solid var(--ux-border);margin:4px 2px}.ux-mobile-nav-toggle{display:none;border:1px solid var(--ux-border);background:var(--ux-surface);border-radius:6px;padding:8px 11px;font-weight:800}.ux-context-nav{position:relative;z-index:35;display:flex;align-items:center;gap:4px;margin-top:-6px;margin-bottom:12px;padding-block:8px;border-top:1px solid color-mix(in srgb,var(--ux-border) 65%,transparent);overflow-x:auto;scrollbar-width:thin}.ux-context-nav a{white-space:nowrap;padding:7px 10px;border-radius:4px;color:var(--ux-muted);font-size:.76rem;font-weight:800}.ux-context-nav a:hover{background:var(--ux-surface-2);color:var(--ux-green)}

/* Dropdown/action utilities */
.ux-action-menu{position:relative;display:inline-block}.ux-action-menu>summary{list-style:none;cursor:pointer}.ux-action-menu>summary::-webkit-details-marker{display:none}.ux-action-popover{position:absolute;right:0;top:calc(100% + 6px);min-width:190px;padding:7px;border:1px solid var(--ux-border);border-radius:7px;background:var(--ux-surface);box-shadow:var(--ux-shadow);display:grid;gap:3px;z-index:40}.ux-action-popover>*{width:100%;text-align:left}.ux-action-popover a,.ux-action-popover button{display:block;padding:8px 10px;border-radius:4px}.ux-action-popover a:hover,.ux-action-popover button:hover{background:var(--ux-surface-2);color:var(--ux-green)}

/* Generic local tabs */
.ux-tab-shell{margin-block:18px}.ux-tabs{display:flex;gap:6px;border-bottom:1px solid var(--ux-border);overflow-x:auto;padding:0 1px;margin-bottom:18px;scrollbar-width:thin}.ux-tab-button{border:0;background:transparent;color:var(--ux-muted);padding:11px 14px;border-bottom:2px solid transparent;font-weight:850;white-space:nowrap;cursor:pointer}.ux-tab-button:hover{color:var(--ux-text)}.ux-tab-button.active{color:var(--ux-green);border-bottom-color:var(--ux-green)}.ux-tab-panel[hidden]{display:none!important}.ux-tab-panel{display:grid;gap:18px}.ux-tab-panel>.panel-section,.ux-tab-panel>.feature-card,.ux-tab-panel>.v6-panel,.ux-tab-panel>.feature-grid,.ux-tab-panel>.v6-grid{margin-top:0!important;margin-bottom:0!important}

/* Home: make dashboard denser */
.ux-home-tabs{margin-top:28px}.ux-home-tabs .ux-tab-panel{gap:20px}.ux-home-tabs .home-v5-section,.ux-home-tabs .home-dashboard-grid,.ux-home-tabs .v6-grid{margin-top:0}.home-v5-hero .hero-actions{flex-wrap:wrap}.home-v5-hero .hero-actions>a:nth-child(n+4){display:none}

/* Collection */
.collection-toolbar.ux-collection-toolbar{display:grid;grid-template-columns:minmax(280px,2fr) minmax(135px,.65fr) minmax(145px,.7fr) minmax(155px,.8fr);gap:10px;align-items:end}.ux-advanced-filters{grid-column:1/-1;border:1px solid var(--ux-border);border-radius:7px;background:color-mix(in srgb,var(--ux-surface) 88%,transparent)}.ux-advanced-filters>summary{list-style:none;padding:11px 13px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:850;color:var(--ux-text)}.ux-advanced-filters>summary::-webkit-details-marker{display:none}.ux-advanced-filters>summary .ux-filter-count{color:var(--ux-green);font-size:.75rem}.ux-advanced-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;padding:0 12px 12px}.ux-advanced-filter-grid label{min-width:0}.ux-advanced-filter-grid .ux-filter-options{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}.ux-filter-footer{grid-column:1/-1;display:flex;gap:10px;align-items:end;flex-wrap:wrap;border-top:1px solid var(--ux-border);padding-top:12px}.ux-filter-footer form{flex:1;min-width:min(100%,360px)}.ux-filter-footer .reset-button{margin:0}.quick-filters.ux-quick-filters{margin-top:12px}.collection-shell #active-filter-chips:empty{display:none}.collection-shell #active-filter-chips{margin:10px 0}.ux-collection-meta-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px}.ux-collection-meta-row #result-summary{margin-left:auto}

/* Release tabs */
.release-page.ux-release-organized{gap:0}.release-page.ux-release-organized>.release-hero-panel{margin-bottom:16px}.release-page .ux-release-tabs{margin-top:0}.release-page .ux-tab-panel{padding-bottom:8px}.release-page .release-bottom-actions{margin-top:20px}.release-primary-actions{flex-wrap:wrap}.release-primary-actions .ux-more-release-actions{display:inline-block}.release-primary-actions .ux-more-release-actions .ux-action-popover{min-width:220px}

/* Submission wizard */
.release-form.ux-wizard{position:relative}.ux-submission-progress{position:sticky;top:8px;z-index:20;display:flex;align-items:center;gap:7px;padding:9px;border:1px solid var(--ux-border);border-radius:8px;background:color-mix(in srgb,var(--ux-surface) 94%,transparent);backdrop-filter:blur(12px);margin-bottom:14px;overflow-x:auto;box-shadow:0 10px 28px rgba(0,0,0,.14)}.ux-step-button{flex:1;min-width:145px;padding:9px 11px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ux-muted);font-weight:850;cursor:pointer;text-align:left}.ux-step-button small{display:block;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase}.ux-step-button.active{background:var(--ux-surface-2);border-color:var(--ux-border);color:var(--ux-green)}.ux-wizard .form-section[hidden]{display:none!important}.ux-wizard-nav{display:flex;justify-content:space-between;gap:12px;margin:14px 0}.ux-wizard-nav button{min-width:130px}.ux-review-panel{display:grid;gap:14px}.ux-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ux-review-grid div{padding:11px;border:1px solid var(--ux-border);border-radius:5px;background:var(--ux-surface-2)}.ux-review-grid small{display:block;color:var(--ux-muted);font-size:.66rem;text-transform:uppercase;letter-spacing:.08em}.ux-review-grid b{display:block;margin-top:3px;overflow-wrap:anywhere}.ux-advanced-release-options{margin-bottom:14px;border:1px solid var(--ux-border);border-radius:7px}.ux-advanced-release-options>summary{list-style:none;cursor:pointer;padding:13px 15px;font-weight:850}.ux-advanced-release-options>summary::-webkit-details-marker{display:none}.ux-advanced-release-options>.v6-panel{border:0;margin:0;border-top:1px solid var(--ux-border);border-radius:0}.submission-preflight{position:relative}.submit-bar.ux-submit-review-only{display:none}.ux-wizard[data-step="3"] .submit-bar.ux-submit-review-only{display:flex}

/* Account/library/studio */
.dashboard-actions.ux-dashboard-actions{align-items:center}.dashboard-actions .ux-account-tools>summary{min-height:42px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid var(--ux-border);border-radius:4px;font-weight:800;cursor:pointer;background:var(--ux-surface-2)}.ux-account-tabset{margin-top:18px}.ux-account-tabset .account-stat-grid{margin:0}.ux-library-tabset .mini-release-list{margin-top:0}.ux-studio-sections{display:grid;gap:18px}

/* Forum */
.advanced-thread-form .compose-section.ux-collapsed-section{border:1px solid var(--ux-border);border-radius:7px;padding:0!important;margin:12px 0;background:var(--ux-surface)}.advanced-thread-form .compose-section.ux-collapsed-section>summary{list-style:none;cursor:pointer;padding:13px 14px;font-weight:850;display:flex;justify-content:space-between;align-items:center}.advanced-thread-form .compose-section.ux-collapsed-section>summary::-webkit-details-marker{display:none}.advanced-thread-form .compose-section.ux-collapsed-section>.ux-details-inner{padding:0 14px 14px}.post-actions.ux-post-actions{display:flex;align-items:center;gap:7px}.post-actions .ux-action-menu form{display:block}.post-actions .ux-action-menu button,.post-actions .ux-action-menu a{border:0;background:transparent;color:inherit;font-size:.78rem}

/* Admin and community hierarchy */
.ux-staff-context{border-color:color-mix(in srgb,#ffcc55 28%,var(--ux-border))}.moderation-shell,.feature-shell{scroll-margin-top:80px}.panel-heading{gap:12px}.panel-heading>span{white-space:nowrap}

@media(max-width:1080px){.ux-header{flex-wrap:wrap}.ux-mobile-nav-toggle{display:inline-flex;align-items:center;gap:7px;margin-left:auto}.ux-primary-nav{display:none;width:100%;order:5;flex-direction:column;align-items:stretch;padding:8px 0 2px}.ux-primary-nav.is-open{display:flex}.ux-primary-nav>a,.ux-nav-menu>summary{width:100%;justify-content:space-between}.ux-nav-menu{width:100%}.ux-nav-dropdown,.ux-nav-dropdown-right,.ux-nav-dropdown-wide{position:static;width:100%;box-shadow:none;margin-top:4px;background:var(--ux-surface-2);border-color:var(--ux-border)}.ux-primary-nav .theme-toggle{width:100%;min-height:40px}.ux-context-nav{margin-top:0}.ux-advanced-filter-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:760px){.ux-context-nav{margin-inline:0;padding-inline:16px}.collection-toolbar.ux-collection-toolbar{grid-template-columns:1fr 1fr}.collection-toolbar.ux-collection-toolbar .search-box{grid-column:1/-1}.ux-advanced-filter-grid{grid-template-columns:1fr 1fr}.ux-review-grid{grid-template-columns:1fr}.ux-submission-progress{top:0;margin-inline:-4px}.ux-step-button{min-width:130px}.release-page .ux-tabs{margin-inline:-4px}.ux-action-popover{right:auto;left:0}.post-meta{align-items:flex-start!important}.post-actions.ux-post-actions{flex-wrap:wrap}}
@media(max-width:500px){.collection-toolbar.ux-collection-toolbar,.ux-advanced-filter-grid{grid-template-columns:1fr}.ux-filter-footer{align-items:stretch}.ux-filter-footer form{min-width:100%}.ux-tab-button{padding-inline:11px}.ux-submission-progress{padding:7px}.ux-step-button{min-width:120px}.ux-step-button small{display:none}}

/* Collapsible creation drawers and studio */
.ux-create-drawer{border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface);margin-top:20px}.ux-create-drawer>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:900;display:flex;justify-content:space-between;align-items:center}.ux-create-drawer>summary::-webkit-details-marker{display:none}.ux-create-drawer-inner{padding:0 16px 16px}.ux-create-drawer[open]>summary{color:var(--ux-green)}.studio-shell .studio-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.studio-shell .studio-intro p{max-width:760px}.ux-studio-tabset .v6-panel{margin:0}.ux-studio-tabset .studio-list{display:grid;gap:12px}.ux-studio-tabset form{display:grid;gap:8px}.ux-discover-tabs{margin-top:20px}


/* ===================== RBC v6.2.1 polish ===================== */
/* Request hero: reserve real vertical space so the headline can never overlap its copy. */
.request-hero{align-items:center;padding:42px 0 28px;min-height:230px}
.request-hero>div{min-width:0;display:grid;gap:12px}
.request-hero h1{margin:0;line-height:.92}
.request-hero>div>p:last-child{margin:0;line-height:1.6;max-width:900px}
.request-hero>.primary-button{flex:0 0 auto;align-self:center}
@media(max-width:760px){.request-hero{min-height:0;padding:30px 0 18px}.request-hero h1{font-size:clamp(2.8rem,15vw,5rem);line-height:.95}.request-hero>div>p:last-child{font-size:.92rem}}

/* Staff Collection removal controls. Removal is soft-delete and is reversible from Moderation → Removed. */
.staff-release-remove{display:inline-flex;margin:0}.staff-delete-button,.danger-action{min-height:36px;border:1px solid #875151;background:#2b1717;color:#ffb8b8;border-radius:4px;padding:0 12px;font-size:.72rem;font-weight:900;cursor:pointer}.staff-delete-button:hover,.danger-action:hover{border-color:#ff8585;color:#fff;background:#3a1c1c}.dialog-staff-remove{display:inline-flex}.staff-release-remove-page{margin-left:auto}

/* Full-page primary download must have strong contrast regardless of theme/accent. */
.release-download-primary{color:#11150d!important;text-shadow:none!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.release-download-primary:hover{color:#080a06!important}

/* Nine-theme picker */
.ux-theme-menu{position:relative}.ux-theme-menu>summary.theme-toggle{list-style:none;min-height:40px;display:inline-flex;align-items:center;gap:6px}.ux-theme-menu>summary::-webkit-details-marker{display:none}.ux-theme-picker{width:230px}.ux-theme-picker button{width:100%;border:0;background:transparent;color:var(--ux-text);padding:9px 10px;border-radius:5px;display:flex;gap:9px;align-items:center;text-align:left;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}.ux-theme-picker button:hover,.ux-theme-picker button.active-theme{background:var(--ux-surface-2);color:var(--ux-green)}

/* Theme tokens. Dark remains the original RBC baseline. */
html[data-theme="midnight"]{color-scheme:dark;--primary:#bd8cff;--background:#0d0915;--foreground:#f3ecff;--card:#171020;--card-foreground:#f3ecff;--border:#45315b;--muted:#24182f;--muted-foreground:#b9a7c8;--ux-surface:#15101d;--ux-surface-2:#24182f;--ux-border:#49345e;--ux-muted:#b6a6c4;--ux-text:#f4edff;--ux-green:#bd8cff}
html[data-theme="neon"]{color-scheme:dark;--primary:#9dff00;--background:#071007;--foreground:#edffe8;--card:#0d190c;--card-foreground:#edffe8;--border:#315028;--muted:#142512;--muted-foreground:#a7c99c;--ux-surface:#0c170b;--ux-surface-2:#162814;--ux-border:#35542c;--ux-muted:#a9c79f;--ux-text:#edffe8;--ux-green:#9dff00}
html[data-theme="crimson"]{color-scheme:dark;--primary:#ff5b70;--background:#120708;--foreground:#fff0f1;--card:#1c0d10;--card-foreground:#fff0f1;--border:#5a2d35;--muted:#2a1318;--muted-foreground:#d5a2a8;--ux-surface:#1a0d10;--ux-surface-2:#2c151b;--ux-border:#61313a;--ux-muted:#d1a0a7;--ux-text:#fff0f2;--ux-green:#ff5b70}
html[data-theme="ocean"]{color-scheme:dark;--primary:#55d9ff;--background:#061117;--foreground:#e9faff;--card:#0b1a22;--card-foreground:#e9faff;--border:#285064;--muted:#102b37;--muted-foreground:#9fc5d3;--ux-surface:#0a1820;--ux-surface-2:#102b37;--ux-border:#2e5b70;--ux-muted:#a0c3d0;--ux-text:#eafaff;--ux-green:#55d9ff}
html[data-theme="sunset"]{color-scheme:dark;--primary:#ffad4d;--background:#140b07;--foreground:#fff4e8;--card:#21120b;--card-foreground:#fff4e8;--border:#654126;--muted:#332015;--muted-foreground:#d9b28d;--ux-surface:#1e110b;--ux-surface-2:#352016;--ux-border:#6a4327;--ux-muted:#d5ad89;--ux-text:#fff4e8;--ux-green:#ffad4d}
html[data-theme="mono"]{color-scheme:dark;--primary:#f2f2f2;--background:#0d0d0d;--foreground:#f5f5f5;--card:#171717;--card-foreground:#f5f5f5;--border:#444;--muted:#242424;--muted-foreground:#b9b9b9;--ux-surface:#151515;--ux-surface-2:#252525;--ux-border:#484848;--ux-muted:#b8b8b8;--ux-text:#f5f5f5;--ux-green:#f2f2f2}
html[data-theme="arcade"]{color-scheme:dark;--primary:#20f6ff;--background:#090712;--foreground:#fff2ff;--card:#130d20;--card-foreground:#fff2ff;--border:#593b77;--muted:#211333;--muted-foreground:#c2a6d5;--ux-surface:#120c1e;--ux-surface-2:#231336;--ux-border:#654486;--ux-muted:#c1a2d5;--ux-text:#fff1ff;--ux-green:#20f6ff}

/* Apply non-light theme surfaces consistently over older hard-coded dark component colors. */
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) body{background:var(--background);color:var(--foreground)}
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .header,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .footer{background:var(--background)}
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .panel-section,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .feature-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .form-section,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .auth-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .moderation-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .submission-row,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .request-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .mini-release-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .compare-card,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .v6-panel,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .collection-toolbar,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .ux-advanced-filters,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .release-card{background:var(--card)!important;color:var(--card-foreground);border-color:var(--border)!important}
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) input,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) select,
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) textarea{background:color-mix(in srgb,var(--background) 78%,var(--card))!important;color:var(--foreground)!important;border-color:var(--border)!important}
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .secondary-button{background:var(--muted);color:var(--foreground);border-color:var(--border)}
html[data-theme]:not([data-theme="dark"]):not([data-theme="light"]) .primary-button{background:var(--primary);border-color:var(--primary);color:#0b0d09}
html[data-theme="crimson"] .primary-button,html[data-theme="ocean"] .primary-button,html[data-theme="arcade"] .primary-button{color:#081014}
html[data-theme="mono"] .primary-button{color:#111}
html[data-theme="arcade"] body{background-image:linear-gradient(rgba(255,0,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(0,255,255,.02) 1px,transparent 1px);background-size:24px 24px}
