/*
 * MuzikiHub hosted-reference alignment layer.
 *
 * This file intentionally sits after the generated application stylesheet. It
 * carries the shared visual contract observed on muzikihub-new.vercel.app while
 * keeping the local application's real API data and local-only routes intact.
 */

:root {
    --background: #07080b;
    --foreground: #f5f7fa;
    --muted: #9aa3b2;
    --panel: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --brand: #f16022;
    --brand-strong: #d9521a;
    --surface: #071d43;
    --surface-2: #0a244f;
    --surface-3: #071832;
    --field: #081b3e;
    --pill: #202743;
    --cta-card: #0a1b3d;
    --page-gradient: linear-gradient(90deg, #08090c 0%, #080a0e 7.38%, #091120 16%, #0a1b36 29%, #0b2a5b 53.45%, #0a1b37 78%, #09111f 91%, #08090c 100%);
    --footer-gradient: radial-gradient(14.8% 70.92% at 52.22% 30.38%, rgba(255, 255, 255, 0.16) 10.67%, rgba(255, 255, 255, 0) 91.49%), linear-gradient(90deg, #08090c 0%, #08090c 24%, #2e4d7d 52%, #101827 76%, #08090c 100%);
    --hero-gradient: radial-gradient(20% 52% at 52.22% 42%, rgba(255, 255, 255, 0.18) 10.67%, rgba(255, 255, 255, 0) 91.49%), linear-gradient(270deg, #08090c 0%, #08090c 26.23%, #08347a 48.07%, #08090c 75.83%, #08090c 100%);
    --explore-hero: radial-gradient(25.49% 65.88% at 52.22% 30.38%, rgba(255, 255, 255, 0.38) 10.67%, rgba(8, 9, 12, 0.19) 91.49%), linear-gradient(270deg, #08090c 0%, #08090c 26.23%, #08347a 48.07%, #08090c 75.83%, #08090c 100%);
    --upload-band: linear-gradient(90deg, #07101f 0%, #082d69 52%, #07101f 100%);
    --about-backdrop: linear-gradient(180deg, #173764 0%, #0a1c3f 100%);
    --page: var(--background);
    --page-alt: var(--surface-3);
    --header: transparent;
    --footer: var(--background);
    --text: var(--foreground);
    --heading: var(--foreground);
    --orange: var(--brand);
    --orange-hover: var(--brand-strong);
    --orange-soft: rgba(241, 96, 34, 0.14);
    --content: 1200px;
    --header-height: 88px;
    --hero-height: clamp(640px, calc(100svh - 8px), 712px);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --background: #f4f6fb;
    --foreground: #0b1f3a;
    --muted: #5a6b85;
    --panel: rgba(11, 31, 58, 0.04);
    --line: rgba(11, 31, 58, 0.14);
    --line-strong: rgba(11, 31, 58, 0.28);
    --surface: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #ffffff;
    --field: #ffffff;
    --pill: #e9eef7;
    --cta-card: #e7eefa;
    --page: var(--background);
    --page-alt: #e9eef7;
    --text: var(--foreground);
    --heading: var(--foreground);
    --page-gradient: linear-gradient(90deg, #f4f6fb 0%, #edf2f9 50%, #f4f6fb 100%);
    --hero-gradient: radial-gradient(32% 70% at 52% 44%, rgba(52, 108, 186, 0.17), transparent 74%), linear-gradient(90deg, #f4f6fb 0%, #e9eff8 50%, #f4f6fb 100%);
    --explore-hero: var(--hero-gradient);
    --footer-gradient: linear-gradient(90deg, #e7eefa 0%, #f4f6fb 48%, #e7eefa 100%);
    --about-backdrop: linear-gradient(180deg, #dbe7f5 0%, #edf2f9 100%);
    color-scheme: light;
}

html {
    scroll-padding-top: calc(var(--header-height) + 20px);
    background: var(--background);
}

body {
    min-width: 0;
}

body:not(.auth-page):not(.error-page) {
    min-height: 100svh;
    background: var(--page-gradient) var(--background);
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.5;
}

main#main-content:not(:has(> .page-hero)):not(.auth-layout) {
    padding-top: var(--header-height);
}

:focus-visible {
    outline: 3px solid rgba(100, 166, 255, 0.92);
    outline-offset: 4px;
}

.button {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button-primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.button-primary:hover {
    border-color: var(--foreground);
    background: var(--foreground);
    color: var(--brand);
}

.button-outline,
.button-ghost {
    border: 1px solid var(--foreground);
    background: transparent;
    color: var(--foreground);
}

.button-outline:hover,
.button-ghost:hover {
    border-color: var(--brand);
    background: transparent;
    color: var(--brand);
}

/* Shared header: compact below 1440px, composed desktop header at 1440px+. */
.site-header {
    position: absolute;
    z-index: 900;
    inset: 0 0 auto;
    min-height: 88px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1440px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner > .social-links,
.desktop-nav,
.desktop-auth {
    display: none;
}

.brand {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: clamp(148px, 18vw, 190px);
    height: clamp(41px, 5vw, 52px);
    overflow: hidden;
}

.brand img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-actions .icon-button,
.mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--foreground);
    border-radius: 50%;
    background: transparent;
    color: var(--foreground);
    transition: border-color 150ms ease, color 150ms ease;
}

.header-actions .icon-button:hover,
.mobile-menu-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.header-actions .icon-button svg {
    width: 24px;
    height: 24px;
}

.mobile-nav {
    position: absolute;
    z-index: 20;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface-3) 96%, transparent);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav nav {
    display: grid;
    gap: 5px;
}

.mobile-nav-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: var(--brand);
    color: #fff;
}

.mobile-auth {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--foreground);
    transition: border-color 150ms ease, color 150ms ease;
}

.social-links a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Shared hero. */
.page-hero,
.page-hero-home {
    position: relative;
    min-height: var(--hero-height);
    overflow: hidden;
    background: var(--hero-gradient);
    color: var(--foreground);
}

.page-hero:not(.page-hero-home) {
    background: var(--explore-hero);
}

.hero-glow {
    display: none;
}

.hero-inner,
.page-hero-home .hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(320px, 1fr);
    align-items: end;
    gap: 64px;
    width: 100%;
    max-width: 1280px;
    height: calc(var(--hero-height) - 100px);
    min-height: 540px;
    margin: 0 auto;
    padding: 132px 40px 0;
}

.hero-copy {
    z-index: 3;
    width: 100%;
    max-width: 560px;
    padding: 0;
}

.hero-copy h1,
.page-hero-home .hero-copy h1 {
    max-width: 560px;
    margin: 0;
    color: var(--foreground);
    font-size: clamp(36px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
}

.hero-copy p {
    max-width: 620px;
    margin: 24px 0 0;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 16px;
    line-height: 1.25;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    width: 100%;
    height: min(480px, calc(var(--hero-height) - 232px));
    align-self: end;
    justify-content: flex-end;
    opacity: 1;
}

.hero-visual img {
    width: min(42vw, 520px);
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-ticker-wrap {
    position: absolute;
    z-index: 4;
    right: 40px;
    bottom: 40px;
    left: 40px;
    overflow: hidden;
}

.hero-ticker-wrap .genre-ticker {
    width: 100%;
    min-height: 28px;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.hero-ticker-wrap .genre-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    min-height: 28px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    text-transform: none;
    animation: mh-reference-marquee 32s linear infinite;
}

.hero-ticker-wrap .genre-sequence {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    white-space: nowrap;
}

.hero-ticker-wrap .genre-sequence > span {
    display: inline-block;
}

.hero-ticker-wrap .genre-sequence > i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--brand);
}

@keyframes mh-reference-marquee {
    to { transform: translateX(-28%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ticker-wrap .genre-track {
        animation: none;
    }
}

/* Home statistics and content sections. */
.stats-band {
    width: 100%;
    padding: 64px 40px;
    background: var(--page-gradient);
}

.stats-inner {
    display: flex;
    width: 100%;
    max-width: 1347px;
    min-height: 155px;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.stats-inner > h2 {
    flex: 0 0 426px;
    max-width: 426px;
    margin: 24px 0 0;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: repeat(4, minmax(0, 212px));
    justify-content: space-between;
    gap: 24px;
    width: auto;
    max-width: none;
    margin: 0;
}

.stat-card {
    display: flex;
    min-width: 0;
    height: 155px;
    min-height: 155px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 26px;
    background: var(--surface-2);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
    text-align: center;
}

.stat-icon {
    display: flex;
    width: auto;
    height: 45px;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
}

.stat-icon img {
    width: auto;
    max-width: 42px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.stat-card strong {
    margin-top: 8px;
    color: var(--foreground);
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
}

.stat-card div > span {
    margin-top: 12px;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 16px;
    line-height: 1.7;
}

.section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 80px max(24px, calc((100% - 1200px) / 2));
}

.about-section {
    position: relative;
    overflow: hidden;
    background: var(--page-gradient);
}

.about-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.about-copy {
    position: relative;
    z-index: 4;
}

.about-copy h2 {
    max-width: 620px;
    margin: 0;
    color: var(--foreground);
    font-size: clamp(44px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1;
}

.about-copy > p {
    max-width: 640px;
    margin: 36px 0 0;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 16px;
    line-height: 1.7;
}

.about-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 566px);
    margin: 33px 0 5px;
}

.about-lists > div {
    height: 255px;
    min-height: 255px;
    padding: 24px 26px;
    border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-lists h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.about-lists .check-list {
    margin-top: 18px;
}

.about-lists .check-list li {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: color-mix(in srgb, var(--foreground) 95%, transparent);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
}

.about-lists .check-list svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    margin: 0;
    padding: 4px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.about-copy > .button {
    min-width: 152px;
    min-height: 52px;
    margin-left: 5px;
    padding: 0 30px;
    font-weight: 600;
}

.about-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.about-ring {
    position: relative;
    z-index: 2;
    width: min(82vw, 630px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 17px 0 0 var(--brand), 32px 0 0 #fff;
}

.about-ring::before {
    position: absolute;
    z-index: -2;
    top: -85px;
    right: -90px;
    width: calc(100% + 170px);
    height: calc(100% + 170px);
    border-radius: 50%;
    background: var(--about-backdrop);
    content: "";
}

.about-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Music discovery. */
.section-blue,
.discover-section {
    background: var(--page-gradient);
}

.discover-section {
    min-height: 1198px;
    padding-right: 40px;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 40px;
}

.explore-catalog {
    min-height: 1188px;
}

/* Upload route. */
.upload-guidelines {
    width: 100%;
    max-width: none;
    min-height: 568px;
    padding: 56px 40px 64px;
    background: var(--page-gradient);
}

.upload-guidelines > .section-heading {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin: 0 auto;
}

.upload-guidelines > .section-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
}

.upload-guidelines .guideline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: min(100%, 1240px);
    margin: 28px auto 0;
}

.upload-guidelines .info-card {
    height: 360px;
    padding: 56px 44px;
    border: 0;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.upload-guidelines .info-card-icon {
    display: none;
}

.upload-guidelines .info-card h3 {
    margin: 0 0 30px;
    color: var(--foreground);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.upload-guidelines .bullet-list li {
    display: flex;
    min-height: 30px;
    align-items: center;
    margin: 0 0 18px;
    padding-left: 36px;
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.35;
}

.upload-guidelines .bullet-list li::before {
    top: 2px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    content: "✓";
    font-size: 14px;
    font-weight: 800;
}

.upload-section {
    min-height: 1074px;
    padding: 64px 40px;
    background: var(--page-gradient);
}

.wizard-shell {
    width: 100%;
    max-width: 1316px;
    margin: 0 auto;
    padding: 44px 102px;
    border-radius: 28px;
    background: var(--upload-band);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 153px;
    margin: 0 0 40px;
}

.wizard-steps::before {
    top: 40px;
    right: 16.667%;
    left: 16.667%;
    background: color-mix(in srgb, var(--foreground) 30%, transparent);
}

.wizard-steps li {
    gap: 0;
}

.wizard-step-icon {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border: 0;
    background: #fff;
    color: #000;
}

.wizard-step-icon svg {
    width: 44px;
    height: 44px;
}

.wizard-steps li.is-current .wizard-step-icon {
    background: var(--brand);
    color: #fff;
}

.wizard-steps strong {
    margin-top: 20px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.wizard-steps small {
    margin-top: 12px;
    color: var(--foreground);
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.wizard-panel {
    min-height: 0;
    padding: 40px 54px;
    border: 1px solid var(--foreground);
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
}

.wizard-panel-heading {
    margin-bottom: 32px;
}

.wizard-panel-heading h3 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

.wizard-panel-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.25;
}

.upload-file-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.upload-file-slot .upload-dropzone {
    min-height: 310px;
    padding: 42px 22px 30px;
    border-color: color-mix(in srgb, var(--foreground) 32%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--background) 52%, transparent);
}

.upload-file-slot.has-selection .upload-dropzone {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.upload-file-slot .upload-dropzone > svg {
    width: 46px;
    height: 46px;
    color: var(--brand);
}

.upload-slot-title strong {
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
}

.upload-slot-requirement {
    background: var(--pill);
    color: var(--muted);
    font-size: 10px;
}

.upload-file-slot:first-child .upload-slot-requirement {
    background: var(--brand);
    color: #fff;
}

.upload-slot-filename {
    color: var(--foreground);
    font-size: 15px;
}

.upload-dropzone .upload-slot-help,
.upload-slot-status {
    color: var(--muted);
    font-size: 12px;
}

.upload-slot-clear {
    top: 14px;
    right: 14px;
    border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
    background: var(--background);
    color: var(--foreground);
    font-size: 11px;
}

.review-file-list li {
    font-size: 12px;
}

.review-file-list b {
    color: var(--foreground);
}

.wizard-panel:has(.media-type-list) .wizard-panel-heading p {
    display: none;
}

.media-type-list {
    gap: 32px;
}

.media-type-card {
    display: flex;
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 24px;
    min-height: 120px;
    padding: 0 28px;
    border: 1px solid color-mix(in srgb, var(--foreground) 30%, transparent);
    border-radius: 22px;
}

.media-type-card.is-selected {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    box-shadow: 0 0 0 1px rgba(241, 96, 34, 0.25), 0 18px 32px rgba(0, 0, 0, 0.18);
}

.media-type-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid var(--foreground);
    background: transparent;
    color: var(--foreground);
}

.media-type-card > span:nth-child(2) {
    min-width: 0;
}

.media-type-icon svg {
    width: 32px;
    height: 32px;
}

.media-type-card.is-selected .media-type-icon {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.media-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.media-type-card strong {
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.media-type-card.is-selected strong {
    color: var(--brand);
}

.selected-label {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.media-type-card small {
    margin-top: 12px;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.media-type-card em {
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pill);
    color: var(--brand);
    font-size: 12px;
    line-height: 1;
}

.media-type-card.is-selected em {
    background: var(--brand);
    color: #fff;
}

.media-type-card .radio-dot {
    display: none;
}

.wizard-actions {
    margin-top: 32px;
}

.wizard-actions .button-primary {
    min-width: 132px;
    min-height: 52px;
    padding-right: 32px;
    padding-left: 32px;
    font-size: 15px;
    font-weight: 700;
}

.media-type-list + .wizard-actions {
    justify-content: flex-end;
}

.discover-section > .section-heading {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.discover-section > .section-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 800;
    line-height: 1.05;
}

.discover-section > .section-heading p {
    max-width: 1040px;
    margin: 20px auto 0;
    color: color-mix(in srgb, var(--foreground) 75%, transparent);
    font-size: clamp(17px, 1.8125vw, 23.2px);
    line-height: 1.35;
}

.discovery-toolbar {
    width: 100%;
    max-width: none;
    margin: 48px auto 50px;
}

.compact-toolbar {
    margin-top: 48px;
}

.segmented {
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.segmented a,
.segmented button {
    min-height: 58px;
    gap: 12px;
    padding: 0 32px;
    border: 1px solid var(--foreground);
    border-radius: 999px;
    background: transparent;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 500;
}

.segmented a.is-active,
.segmented button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.compact-toolbar .inline-search {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--foreground);
    border-radius: 50%;
    background: transparent;
    color: var(--foreground);
}

.compact-toolbar .inline-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.search-input,
.select-field,
.search-field {
    min-height: 52px;
    border: 1px solid var(--foreground);
    border-radius: 12px;
    background: transparent;
    color: var(--foreground);
}

.explore-catalog .discovery-toolbar {
    display: grid;
    grid-template-columns: 209px minmax(320px, 528px) 154px;
    justify-content: space-between;
    gap: 24px;
}

.explore-catalog .select-field {
    width: 209px;
    min-width: 209px;
    height: 56px;
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 30px;
    background: var(--brand);
    color: #fff;
}

.explore-catalog .select-field select {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.explore-catalog .select-field option {
    background: var(--surface);
    color: var(--foreground);
}

.explore-catalog .select-field > svg {
    color: #fff;
}

.explore-catalog .search-input {
    display: flex;
    width: 528px;
    max-width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 6px 0 28px;
    border-radius: 999px;
}

.explore-catalog .search-input > svg {
    order: 2;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 10px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.explore-catalog .search-input input {
    order: 1;
}

.explore-catalog .layout-toggle {
    display: grid;
    grid-template-columns: repeat(2, 77px);
    width: 154px;
    height: 56px;
    min-height: 56px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 30px;
}

.explore-catalog .layout-toggle button {
    width: 77px;
    height: 56px;
    border-radius: 0;
    background: #fff;
    color: var(--brand);
}

.explore-catalog .layout-toggle button.is-active {
    background: var(--brand);
    color: #fff;
}

.select-field {
    min-width: 210px;
    padding: 0 16px;
}

.select-field select,
.search-input input,
.search-field input {
    color: var(--foreground);
    font-size: 16px;
}

.layout-toggle {
    min-height: 52px;
    padding: 4px;
    border: 1px solid var(--foreground);
    background: transparent;
}

.layout-toggle button {
    width: 42px;
    height: 42px;
}

.song-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: none;
    min-height: 620px;
    margin: 0 auto;
}

.song-grid > .empty-state {
    grid-column: 1 / -1;
}

/* Empty discovery states use the compact shared pattern instead of inheriting
 * the reference card-grid and section minimums. Populated grids are unchanged. */
.home-discover:has(> .song-grid > .empty-state:only-child),
.home-discover > .song-grid:has(> .empty-state:only-child) {
    min-height: 0;
}

.explore-catalog:has(> .song-grid > .empty-state:only-child),
.explore-catalog > .song-grid:has(> .empty-state:only-child) {
    min-height: 0;
}

.song-card {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    padding: 28px;
    overflow: visible;
    border: 0;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.song-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
}

.song-artwork {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
}

.song-artwork::after {
    display: none;
}

.play-button {
    width: 56px;
    height: 56px;
    border: 0;
    background: #fff;
    color: #e1d5bd;
}

.play-button:hover {
    background: var(--brand);
    color: #fff;
}

.song-duration {
    display: none;
}

.song-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 0 0;
}

.song-title-row h3 {
    font-size: clamp(26px, 2.65vw, 38px);
    font-weight: 800;
    line-height: 1.25;
}

.song-title-row p {
    margin-top: 12px;
    color: color-mix(in srgb, var(--foreground) 85%, transparent);
    font-size: 16px;
    line-height: 1;
}

.song-title-row .badge {
    margin-top: 4px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--pill);
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
}

.song-meta {
    margin-top: auto;
    padding-top: 40px;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 500;
}

.song-meta span svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

.section-action {
    margin-top: 42px;
}

/* Shared CTA. */
.cta-wrap {
    padding: 64px 40px;
    background: var(--page-gradient);
}

.cta-band {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1128px;
    min-height: 360px;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: var(--cta-card);
    box-shadow: 0 2px 36px rgba(0, 0, 0, 0.25);
    color: var(--foreground);
}

.cta-copy {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding: 56px 64px;
}

.cta-copy h2 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.1;
}

.cta-copy p {
    max-width: 440px;
    margin: 20px 0 0;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 15px;
    line-height: 1.7;
}

.cta-copy .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.cta-visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: 52%;
    pointer-events: none;
}

.cta-visual img {
    position: absolute;
    top: 4px;
    bottom: auto;
    left: 40px;
    width: auto;
    max-width: none;
    height: 116%;
    object-fit: contain;
    object-position: bottom;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%), linear-gradient(to bottom, transparent 0%, #000 10%);
    mask-image: linear-gradient(to right, transparent 0%, #000 16%), linear-gradient(to bottom, transparent 0%, #000 10%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* Shared footer. */
.site-footer {
    border: 0;
    background: var(--footer-gradient) var(--background);
    color: var(--foreground);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(150px, 180px) minmax(150px, 180px) minmax(300px, 1fr);
    gap: 32px;
    width: min(calc(100% - 48px), 1280px);
    margin: 0 auto;
    padding: 48px 0;
}

.footer-logo {
    position: relative;
    display: block;
    width: 259px;
    height: 71px;
    overflow: hidden;
}

.footer-brand .footer-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.footer-logo-light {
    display: none;
}

:root[data-theme="light"] .footer-logo-dark {
    display: none;
}

:root[data-theme="light"] .footer-logo-light {
    display: block;
}

.footer-brand > p {
    max-width: 340px;
    margin: 16px 0 0;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.footer-social {
    margin-top: 8px;
}

.footer-column {
    gap: 16px;
}

.footer-column h2 {
    margin: 0 0 4px;
    color: var(--brand);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.footer-link {
    color: var(--foreground);
    font-size: 16px;
    line-height: 20px;
}

.footer-link:hover {
    color: var(--brand);
}

.newsletter > p {
    max-width: 286px;
    margin: -4px 0 4px;
    color: var(--foreground);
    font-size: 15px;
    line-height: 20px;
}

.newsletter-form {
    display: grid;
    gap: 12px;
    width: 100%;
}

.newsletter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
}

.newsletter-fields input[type="email"] {
    width: 100%;
    max-width: 286px;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--foreground);
    border-radius: 12px;
    outline: 0;
    background: transparent;
    color: var(--foreground);
    font-size: 16px;
}

.newsletter-fields input[type="email"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.newsletter-fields input[type="email"]::placeholder {
    color: color-mix(in srgb, var(--foreground) 40%, transparent);
}

.newsletter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 52px;
    padding: 0 20px;
    border: 1px solid var(--brand);
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 32.5px rgba(0, 0, 0, 0.25);
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    color: var(--foreground);
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}

.newsletter-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    accent-color: var(--brand);
}

.newsletter-consent a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.newsletter-alert {
    width: 100%;
    text-align: left;
}

.newsletter-capability-form {
    display: grid;
    gap: 12px;
    width: min(100%, 380px);
}

.newsletter-capability-form .button {
    width: 100%;
}

.newsletter-submit:hover {
    background: var(--foreground);
    color: var(--brand);
}

.contact-list {
    gap: 16px;
    margin-top: 12px;
    color: var(--foreground);
    font-size: 15px;
}

.contact-list li,
.contact-list a,
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list a:hover {
    color: var(--brand);
}

.contact-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--foreground);
    border-radius: 50%;
}

.footer-bottom {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(calc(100% - 80px), 1360px);
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: var(--foreground);
    font-size: 14px;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer-credit a {
    color: var(--brand);
    transition: color 150ms ease;
}

.footer-credit a:hover {
    color: var(--foreground);
}

.footer-credit-icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 1280px) {
    .stats-band {
        height: 283px;
    }

    .about-section {
        height: 721px;
        padding: 0 40px;
    }

    .about-grid {
        display: block;
        height: 721px;
    }

    .about-copy {
        width: 618px;
        height: 721px;
        padding: 18px 0 0 46px;
    }

    .about-copy h2 {
        width: 558px;
    }

    .about-copy > p {
        width: 572px;
    }

    .about-visual {
        position: absolute;
        z-index: 1;
        inset: 0;
        display: block;
        pointer-events: none;
    }

    .about-ring {
        position: absolute;
        top: 46px;
        right: 50px;
        width: 630px;
        height: 630px;
    }
}

@media (min-width: 1440px) {
    :root {
        --header-height: 167px;
        --hero-height: 667px;
    }

    .site-header {
        min-height: 167px;
    }

    .header-inner {
        position: relative;
        display: block;
        width: 1440px;
        max-width: 100%;
        min-height: 167px;
        padding: 0;
    }

    .header-inner > .social-links {
        position: absolute;
        top: 27px;
        left: 48px;
        display: flex;
    }

    .brand {
        position: absolute;
        top: 6px;
        left: 50%;
        width: 259px;
        height: 71px;
        transform: translateX(-50%);
    }

    .desktop-nav {
        position: absolute;
        top: 83px;
        left: 50%;
        display: flex;
        align-items: flex-start;
        gap: 24px;
        height: auto;
        transform: translateX(-50%);
    }

    .nav-link {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 30px;
        color: var(--foreground);
        font-size: 18px;
        font-weight: 500;
        line-height: 22px;
        transition: color 150ms ease, background-color 150ms ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--brand);
    }

    .nav-link.is-active {
        min-height: 46px;
        margin-top: -2px;
        padding: 12px 30px;
        background: var(--brand);
        color: #fff;
    }

    .nav-link.is-active:hover {
        background: var(--foreground);
        color: var(--brand);
    }

    .header-actions {
        position: absolute;
        top: 15px;
        right: 45px;
        gap: 16px;
        margin: 0;
    }

    .desktop-auth {
        display: block;
    }

    .desktop-auth .button-compact {
        min-width: 106px;
        min-height: 44px;
        padding: 0 30px;
    }

    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }

    .hero-inner,
    .page-hero-home .hero-inner {
        grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
        align-items: start;
        gap: 40px;
        max-width: 1440px;
        height: 667px;
        min-height: 667px;
        padding: 167px 40px 0;
    }

    .hero-visual {
        height: 500px;
    }

    .hero-visual img {
        width: auto;
        max-width: min(599px, 46vw);
        height: 500px;
    }

    .hero-ticker-wrap {
        bottom: 32px;
    }

    .page-hero:not(.page-hero-home) {
        min-height: 557px;
        height: 557px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        display: block;
        width: 100%;
        max-width: none;
        height: 557px;
        min-height: 557px;
        padding: 181px 48px 0;
    }

    .page-hero:not(.page-hero-home) .hero-copy {
        width: 610px;
        max-width: 610px;
    }

    .page-hero-upload .hero-copy,
    .page-hero-upload .hero-copy h1,
    .page-hero-upload .hero-copy p {
        width: 620px;
        max-width: 620px;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        width: 610px;
        max-width: 610px;
        font-size: 64px;
        line-height: 1.24;
    }

    .page-hero:not(.page-hero-home) .hero-copy p {
        width: 610px;
        max-width: 610px;
        margin-top: 12px;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        margin-top: 32px;
    }

    .page-hero:not(.page-hero-home) .hero-actions .button {
        min-height: 50px;
        padding: 0 30px;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        position: absolute;
        z-index: 1;
        top: 145px;
        right: 4px;
        width: 680px;
        height: 501px;
    }

    .page-hero:not(.page-hero-home) .hero-visual img {
        width: 680px;
        max-width: 680px;
        height: 501px;
    }

    .site-footer {
        min-height: 500px;
    }

    .footer-inner {
        position: relative;
        display: block;
        width: 1440px;
        max-width: 100%;
        height: 434px;
        padding: 0;
    }

    .footer-brand {
        position: absolute;
        top: 25px;
        left: 40px;
        width: 340px;
    }

    .footer-brand > p {
        margin-top: 16px;
    }

    .footer-social {
        margin-top: 8px;
    }

    .footer-inner > .footer-column {
        position: absolute;
        top: 30px;
    }

    .footer-inner > .footer-column:nth-child(2) {
        left: 478px;
    }

    .footer-inner > .footer-column:nth-child(3) {
        left: 730px;
    }

    .footer-inner > .newsletter {
        right: 40px;
        left: auto;
        width: 412px;
    }

    .footer-bottom {
        width: calc(100% - 80px);
        max-width: 1360px;
    }
}

@media (max-width: 1199px) {
    .stats-inner {
        flex-direction: column;
        gap: 32px;
    }

    .stats-inner > h2 {
        flex-basis: auto;
        margin-top: 0;
    }

    .stats-grid {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .hero-inner,
    .page-hero-home .hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 36px;
        height: auto;
        min-height: calc(var(--hero-height) - 72px);
        padding: 112px 24px 84px;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        justify-content: center;
    }

    .hero-visual img {
        width: min(74vw, 520px);
        height: auto;
        max-height: 480px;
    }

    .hero-ticker-wrap {
        right: 24px;
        bottom: 28px;
        left: 24px;
    }

    .stats-band {
        padding: 56px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .about-visual {
        order: -1;
    }

    .about-copy {
        max-width: 720px;
        margin: 0 auto;
    }

    .about-copy h2,
    .about-copy > p {
        max-width: 720px;
    }

    .about-lists {
        width: 100%;
        max-width: 720px;
    }

    .song-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discover-section {
        min-height: 0;
    }

    .explore-catalog .discovery-toolbar {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .explore-catalog .select-field,
    .explore-catalog .search-input,
    .explore-catalog .layout-toggle {
        width: 100%;
        max-width: none;
    }

    .explore-catalog .layout-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-catalog .layout-toggle button {
        width: 100%;
    }

    .upload-guidelines {
        min-height: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .upload-guidelines .guideline-grid {
        grid-template-columns: 1fr;
    }

    .upload-guidelines .info-card {
        height: auto;
        min-height: 320px;
    }

    .upload-section {
        min-height: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .wizard-shell {
        padding-top: 0;
    }

    .wizard-panel {
        min-height: 0;
        padding: 32px 28px;
    }

    .cta-copy {
        max-width: 58%;
        padding: 48px 40px;
    }

    .footer-inner {
        gap: 44px 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --hero-height: clamp(650px, 100svh, 780px);
    }

    .header-inner {
        padding: 0 16px;
    }

    .brand {
        width: clamp(132px, 38vw, 170px);
        height: clamp(36px, 10.4vw, 47px);
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .icon-button,
    .mobile-menu-toggle {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .hero-copy h1,
    .page-hero-home .hero-copy h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-inner,
    .page-hero-home .hero-inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hero-visual img {
        width: min(88vw, 440px);
    }

    .stats-band,
    .section,
    .cta-wrap {
        padding-right: 20px;
        padding-left: 20px;
    }

    .stats-inner > h2 br {
        display: none;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-card {
        height: 150px;
        min-height: 150px;
        padding: 12px;
    }

    .stat-card strong {
        font-size: 27px;
    }

    .stat-card div > span {
        font-size: 14px;
        line-height: 1.35;
    }

    .about-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .about-ring {
        width: min(78vw, 480px);
    }

    .about-copy h2 {
        font-size: clamp(38px, 11vw, 50px);
    }

    .about-lists {
        grid-template-columns: 1fr;
    }

    .about-lists > div {
        min-height: 0;
    }

    .discover-section > .section-heading h2 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .discover-section > .section-heading p {
        font-size: 17px;
    }

    .discovery-toolbar {
        align-items: stretch;
        flex-direction: column;
        margin-top: 36px;
    }

    .segmented {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .segmented a,
    .segmented button {
        width: 100%;
        justify-content: center;
    }

    .compact-toolbar .inline-search {
        width: 100%;
        flex-basis: 48px;
        border-radius: 999px;
    }

    .song-grid {
        grid-template-columns: 1fr;
    }

    .song-card {
        min-height: 0;
    }

    .cta-band {
        min-height: 520px;
    }

    .cta-copy {
        max-width: none;
        padding: 36px 28px;
    }

    .cta-copy .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-copy .button {
        width: 100%;
    }

    .cta-visual {
        inset: auto 0 0;
        width: 100%;
        height: 46%;
    }

    .cta-visual img {
        top: auto;
        right: -6%;
        bottom: 0;
        left: auto;
        width: 76%;
        height: auto;
        max-height: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        width: min(calc(100% - 40px), 620px);
        padding: 44px 0;
    }

    .footer-bottom {
        width: calc(100% - 40px);
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-credit {
        flex-wrap: wrap;
    }
}

/* Hosted phone composition: preserve the exact narrow-screen rhythm while
 * allowing every section to grow naturally for translated/live content. */
@media (max-width: 767px) {
    .stats-band,
    .section,
    .cta-wrap {
        padding-right: 24px;
        padding-left: 24px;
    }

    .page-hero-home {
        height: auto;
        min-height: 0;
        padding-bottom: 100px;
    }

    .page-hero-home .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 40px;
        padding: 112px 24px 0;
    }

    .page-hero-home .hero-copy,
    .page-hero-home .hero-copy h1,
    .page-hero-home .hero-copy p {
        width: 100%;
        max-width: none;
    }

    .page-hero-home .hero-copy h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .page-hero-home .hero-copy p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero-home .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }

    .page-hero-home .hero-actions .button {
        width: auto;
        min-height: 48px;
        padding: 0 28px;
        font-size: 16px;
        font-weight: 500;
    }

    .page-hero-home .hero-visual {
        width: 280px;
        height: 258.5px;
        min-height: 258.5px;
        margin: 0 auto;
    }

    .page-hero-home .hero-visual img {
        width: 280px;
        max-width: none;
        height: auto;
    }

    .page-hero:not(.page-hero-home) {
        height: auto;
        min-height: 650px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 650px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 150px 24px 0;
    }

    .page-hero:not(.page-hero-home) .hero-copy,
    .page-hero:not(.page-hero-home) .hero-copy h1,
    .page-hero:not(.page-hero-home) .hero-copy p {
        width: 100%;
        max-width: none;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        font-size: 48px;
        line-height: 1.24;
    }

    .page-hero:not(.page-hero-home) .hero-copy p {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        align-items: flex-start;
        margin-top: 32px;
    }

    .page-hero:not(.page-hero-home) .hero-actions .button {
        width: auto;
        min-height: 50px;
        padding: 0 30px;
        font-size: 16px;
        font-weight: 700;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 187.225px;
        flex: 1 1 187.225px;
        align-items: flex-end;
        margin: 40px 0 0;
    }

    .page-hero:not(.page-hero-home) .hero-visual img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .stats-band {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .stats-inner > h2 {
        margin-top: 24px;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-card {
        height: 155px;
        min-height: 155px;
    }

    .about-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .about-grid {
        gap: 48px;
    }

    .about-copy {
        order: 1;
        max-width: none;
        margin: 0;
    }

    .about-copy h2 {
        max-width: none;
        font-size: 44.8px;
        font-weight: 800;
        line-height: 1.25;
    }

    .about-copy > p {
        max-width: none;
        font-size: 16px;
        line-height: 1.7;
    }

    .about-lists {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: none;
        margin: 48px 0 5px;
    }

    .about-lists > div {
        height: 316px;
        min-height: 316px;
        padding: 32px;
        border-radius: 28px;
    }

    .about-lists h3 {
        font-size: 24px;
        line-height: 1;
    }

    .about-visual {
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 662 / 630;
        justify-content: flex-start;
        margin: 0 auto;
    }

    .about-ring {
        width: 95.2%;
        height: auto;
        aspect-ratio: 1;
    }

    .about-ring::before {
        top: -22px;
        right: -39px;
        width: calc(100% + 62px);
        height: calc(100% + 62px);
    }

    .home-discover .section-heading h2 {
        font-size: 40px;
        line-height: 1.05;
    }

    .cta-wrap {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .cta-band {
        min-height: 0;
    }

    .cta-copy {
        max-width: none;
        padding: 48px 32px;
    }

    .cta-copy .button-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .cta-copy .button {
        width: auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 620px) {
    :root {
        --hero-height: 620px;
    }

    .hero-inner,
    .page-hero-home .hero-inner {
        grid-template-columns: minmax(0, 52%) minmax(260px, 1fr);
        align-items: end;
        gap: 28px;
        min-height: 540px;
        padding: 108px 28px 72px;
    }

    .hero-copy h1,
    .page-hero-home .hero-copy h1 {
        font-size: clamp(32px, 6.5vw, 44px);
    }

    .hero-copy p {
        margin-top: 16px;
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .hero-visual img {
        width: min(43vw, 400px);
    }
}

@media (max-width: 520px) {
    .header-actions .icon-button,
    .mobile-menu-toggle {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .header-actions .icon-button svg {
        width: 20px;
        height: 20px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        gap: 12px;
    }

    .newsletter-fields {
        grid-template-columns: 1fr;
    }

    .newsletter-fields input[type="email"],
    .newsletter-submit {
        width: 100%;
        max-width: none;
    }
}

/* Community workspace alignment: preserve the hosted composition while keeping
 * every collection driven by the local API. */
.community-dashboard,
.collaboration-workspace {
    background: var(--page-gradient);
}

.community-dashboard {
    padding: 64px clamp(24px, 2.8vw, 40px) 0;
}

.community-dashboard > .dashboard-grid,
.community-dashboard > .forum-dashboard,
.collaboration-workspace > .section-toolbar,
.collaboration-workspace > .content-panel {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}

.community-dashboard > .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.community-dashboard .dashboard-card,
.collaboration-workspace .content-panel,
.collaboration-workspace .collaborator-card,
.collaboration-workspace .collaboration-project-row {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card {
    height: 272px;
    min-height: 272px;
    padding: 24px;
    border-radius: 22px;
}

.community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card > header {
    margin: 0 0 18px;
}

.community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card > header > span {
    display: none;
}

.community-dashboard .dashboard-card h3 {
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-card-body .collaboration-stats {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.dashboard-card-body .collaboration-stats > div {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-card-body .collaboration-stats > div:last-child {
    border-bottom: 0;
}

.dashboard-card-body .collaboration-stats dt,
.dashboard-card-body .collaboration-stats dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.dashboard-card-body .collaboration-stats dt {
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
}

.dashboard-card-body .collaboration-stats dd {
    color: var(--foreground);
    font-weight: 800;
}

.dashboard-card-body .collaboration-stats > div:last-child dd {
    color: #ffc640;
}

.collaboration-activity {
    gap: 0;
}

.collaboration-activity li {
    min-height: 58px;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--foreground);
    font-size: 14px;
}

.collaboration-activity li:last-child {
    border-bottom: 0;
}

.collaboration-activity i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: var(--orange-soft);
}

.collaboration-activity span,
.collaboration-activity strong,
.collaboration-activity small {
    display: block;
}

.collaboration-activity strong {
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.3;
}

.collaboration-activity small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.community-dashboard .dashboard-card .bullet-list.compact {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.community-dashboard .dashboard-card .bullet-list.compact li {
    position: relative;
    margin: 0;
    padding-left: 32px;
    color: color-mix(in srgb, var(--foreground) 78%, transparent);
    font-size: 14px;
    line-height: 1.35;
}

.community-dashboard .dashboard-card .bullet-list.compact li::before {
    position: absolute;
    top: -1px;
    left: 0;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--brand);
    font-size: 13px;
    content: "♫";
}

.community-dashboard .dashboard-card .empty-state {
    min-height: 0;
    padding: 22px 12px;
    border-radius: 18px;
}

.community-dashboard .dashboard-card .empty-state svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.community-dashboard .dashboard-card .empty-state h3 {
    font-size: 15px;
}

.community-dashboard .dashboard-card .empty-state p {
    font-size: 13px;
}

.collaboration-workspace {
    padding: 40px clamp(24px, 2.8vw, 40px) 64px;
}

.collaboration-workspace > .section-toolbar {
    min-height: 54px;
    margin-bottom: 24px;
}

.collaboration-workspace > .section-toolbar .segmented {
    display: inline-flex;
    width: auto;
    min-height: 54px;
    gap: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.collaboration-workspace > .section-toolbar .segmented button {
    width: auto;
    min-width: 116px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
}

.collaboration-workspace > .section-toolbar > .button {
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
}

.collaboration-workspace > .content-panel {
    padding: 28px;
    border-radius: 24px;
}

.collaboration-workspace > .content-panel + .content-panel {
    margin-top: 24px;
}

.collaboration-workspace .panel-heading {
    align-items: center;
    margin-bottom: 22px;
}

.collaboration-workspace .panel-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.collaborator-browser-panel .panel-heading h2::before {
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
    content: "⌕";
}

.active-projects-panel .panel-heading h2::before {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
    content: "♫";
}

.collaboration-workspace .collaborator-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
    margin-bottom: 24px;
}

.collaboration-workspace .collaborator-filters .search-input {
    grid-column: 1 / -1;
}

.collaboration-workspace .collaborator-filters .search-input,
.collaboration-workspace .collaborator-filters .select-field {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
}

.collaboration-workspace .collaborator-filters .search-input {
    padding-right: 16px;
    padding-left: 20px;
}

.collaboration-workspace .collaborator-filters .search-input > svg {
    order: 2;
    flex: 0 0 20px;
    color: var(--muted);
}

.collaboration-workspace .collaborator-filters .search-input > input {
    order: 1;
}

.collaboration-workspace .collaborator-filters select,
.collaboration-workspace .collaborator-filters input {
    font-size: 14px;
}

.collaboration-workspace .collaborator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.collaboration-workspace .collaborator-grid > .empty-state {
    grid-column: 1 / -1;
}

.collaboration-workspace .collaborator-card {
    min-height: 258px;
    padding: 20px;
    border-radius: 22px;
}

.collaboration-workspace .collaborator-card-head {
    gap: 12px;
}

.collaboration-workspace .collaborator-card .avatar-lg {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 76%, white 8%);
    font-size: 14px;
}

.collaboration-workspace .collaborator-card h3 {
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.25;
}

.collaboration-workspace .collaborator-card p,
.collaboration-workspace .collaborator-location,
.collaboration-workspace .collaborator-stats {
    color: var(--muted);
    font-size: 13px;
}

.collaboration-workspace .collaborator-location {
    margin: 12px 0;
}

.collaboration-workspace .tag {
    min-height: 22px;
    padding: 2px 12px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 12px;
}

.collaboration-workspace .collaborator-stats {
    justify-content: space-between;
    margin: 16px 0;
    padding-top: 12px;
}

.collaboration-workspace .collaborator-stats svg {
    color: #ffc640;
}

.collaboration-workspace .card-actions {
    display: flex;
    gap: 12px;
}

.collaboration-workspace .card-actions .button {
    min-height: 44px;
    font-size: 14px;
}

.collaboration-workspace .collaboration-project-list {
    display: grid;
    gap: 16px;
}

.collaboration-workspace .collaboration-project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px 28px;
    padding: 20px;
    border-radius: 22px;
}

.collaboration-project-row .project-row-main {
    min-width: 0;
}

.collaboration-project-row .project-row-main h3 {
    margin: 8px 0 4px;
    color: var(--foreground);
    font-size: 18px;
}

.collaboration-project-row .project-row-main p,
.collaboration-project-row .project-row-meta {
    color: var(--muted);
    font-size: 13px;
}

.collaboration-project-row .project-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.collaboration-project-row .project-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.collaboration-project-row .project-row-meta svg {
    color: var(--brand);
}

.collaboration-project-row .project-row-progress {
    grid-column: 1 / -1;
}

.collaboration-project-row .project-row-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.collaboration-project-row .progress {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--foreground) 10%, transparent);
}

.collaboration-project-row .progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.collaboration-project-row > .button {
    min-height: 42px;
    padding: 0 20px;
}

/* Long names, URLs, project codes, and user prose must wrap rather than being
 * hidden by the page-level overflow guard. */
.content-panel,
.collaborator-card,
.collaboration-project-row,
.discussion-card,
.discussion-original,
.reply-card,
.legal-document {
    overflow-wrap: anywhere;
}

@media (min-width: 1440px) {
    .page-hero.page-hero-upload .hero-copy,
    .page-hero.page-hero-upload .hero-copy h1,
    .page-hero.page-hero-upload .hero-copy p {
        width: 620px;
        max-width: 620px;
    }

    .community-dashboard,
    .collaboration-workspace {
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media (max-width: 1023px) {
    .community-dashboard > .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card:last-child {
        grid-column: 1 / -1;
    }

    .collaboration-workspace .collaborator-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collaboration-workspace .collaborator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-hero:not(.page-hero-home) {
        height: 650px;
        min-height: 650px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        min-height: 650px;
    }

    .community-dashboard {
        padding: 48px 20px 0;
    }

    .community-dashboard > .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card,
    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card:last-child {
        grid-column: auto;
        height: auto;
        min-height: 0;
    }

    .collaboration-workspace {
        padding: 36px 20px 56px;
    }

    .collaboration-workspace > .section-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .collaboration-workspace > .section-toolbar .segmented {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .collaboration-workspace > .section-toolbar .segmented button {
        width: 100%;
        min-width: 0;
        padding: 0 12px;
    }

    .collaboration-workspace > .section-toolbar > .button {
        width: 100%;
    }

    .collaboration-workspace > .content-panel {
        padding: 20px;
    }

    .collaboration-workspace .panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .collaboration-workspace .panel-heading > .button {
        width: 100%;
    }

    .collaboration-workspace .collaborator-filters,
    .collaboration-workspace .collaborator-grid {
        grid-template-columns: 1fr;
    }

    .collaboration-workspace .collaborator-filters .search-input {
        grid-column: auto;
    }

    .collaboration-workspace .collaborator-card {
        min-height: 0;
    }

    .collaboration-workspace .collaborator-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .collaboration-workspace .collaborator-card-head > .badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .collaboration-workspace .card-actions {
        flex-direction: column;
    }

    .collaboration-workspace .card-actions .button {
        width: 100%;
    }

    .collaboration-workspace .collaboration-project-row {
        grid-template-columns: 1fr;
    }

    .collaboration-project-row .project-row-progress,
    .collaboration-project-row > .button {
        grid-column: auto;
    }

    .collaboration-project-row > .button {
        width: 100%;
    }
}

@media (max-width: 360px), (max-height: 560px) and (max-width: 767px) {
    .mobile-nav {
        top: 70px;
        max-height: calc(100svh - 82px);
    }

    .hero-inner,
    .page-hero-home .hero-inner {
        padding-top: 96px;
    }

    .hero-actions {
        margin-top: 20px;
    }
}

/* Help center and policy routes. */
.page-hero-help .hero-copy h1 {
    width: auto;
    max-width: 100%;
}

.page-hero-privacy .hero-copy h1 {
    width: auto;
    max-width: 100%;
}

.page-hero-terms .hero-copy h1 {
    width: auto;
    max-width: 100%;
}

.page-hero-guidelines .hero-copy h1 {
    width: auto;
    max-width: 100%;
}

.help-topics,
#faq,
.help-support,
.guidelines-standards,
.legal-page {
    background: var(--page-gradient);
}

.help-topics,
#faq,
.help-support,
.guidelines-standards {
    padding-right: clamp(20px, 2.8vw, 40px);
    padding-left: clamp(20px, 2.8vw, 40px);
}

.help-topics > .section-heading,
#faq > .section-heading,
.help-support > .section-heading,
.guidelines-standards > .section-heading {
    max-width: 1040px;
    margin: 0 auto;
}

.help-topics > .section-heading h2,
#faq > .section-heading h2,
.help-support > .section-heading h2,
.guidelines-standards > .section-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
}

.help-topics > .section-heading p,
#faq > .section-heading p,
.help-support > .section-heading p,
.guidelines-standards > .section-heading p {
    max-width: 760px;
    margin: 18px auto 0;
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
    font-size: 16px;
    line-height: 1.55;
}

.help-topics {
    padding-top: 80px;
    padding-bottom: 40px;
}

.topic-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 51px auto 0;
}

.topic-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 272px;
    min-height: 272px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    color: var(--foreground);
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.topic-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.topic-card > span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.topic-card > span svg {
    width: 24px;
    height: 24px;
}

.topic-card h3 {
    margin: 24px 0 12px;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.topic-card p {
    min-height: 0;
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
    font-size: 15px;
    line-height: 1.55;
}

.topic-card > svg {
    display: none;
}

#faq {
    padding-top: 40px;
    padding-bottom: 80px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 1360px;
    margin: 50px auto 0;
}

.faq-categories {
    position: static;
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.faq-categories h3 {
    margin: 4px 8px 8px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.faq-categories button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: color-mix(in srgb, var(--foreground) 74%, transparent);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.faq-categories button:hover {
    color: var(--brand);
}

.faq-categories button.is-active {
    background: var(--brand);
    color: #fff;
}

.faq-categories button small {
    color: inherit;
    font-size: 13px;
}

.faq-content {
    min-width: 0;
}

.faq-search {
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
}

.faq-search svg {
    color: var(--muted);
}

.faq-search input {
    font-size: 16px;
}

.faq-result-count {
    margin: 16px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.faq-item > button {
    display: flex;
    width: 100%;
    min-height: 98px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    color: var(--foreground);
    text-align: left;
}

.faq-item small,
.faq-item strong {
    display: block;
}

.faq-item small {
    width: fit-content;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-item strong {
    color: var(--foreground);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.35;
}

.faq-item > button > svg {
    flex: 0 0 20px;
    color: var(--brand);
    transition: transform 160ms ease;
}

.faq-answer {
    display: none;
    padding: 0 24px 24px;
}

.faq-answer p {
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 74%, transparent);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-item.is-open > button > svg {
    transform: rotate(180deg);
}

.help-support {
    padding-top: 90px;
    padding-bottom: 80px;
}

.support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1120px;
    margin: 76px auto 0;
}

.support-card,
.support-card-accent {
    height: 271px;
    min-height: 271px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    color: var(--foreground);
    text-align: center;
    transition: border-color 150ms ease, transform 150ms ease;
}

.support-card:hover,
.support-card-accent:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
}

.support-card > span,
.support-card-accent > span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.support-card h3,
.support-card-accent h3 {
    margin: 0 0 12px;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.support-card p,
.support-card-accent p {
    min-height: 48px;
    margin: 0 auto 14px;
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
    font-size: 15px;
    line-height: 1.55;
}

.support-card a,
.support-card strong,
.support-card-accent a,
.support-card-accent strong {
    display: inline-flex;
    justify-content: center;
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.guidelines-standards {
    padding-top: 80px;
    padding-bottom: 80px;
}

.standards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 48px auto 0;
}

.standard-card {
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.standard-card header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.standard-card h2,
.standard-card h3 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
}

.standard-card > header > svg {
    display: none;
}

.standard-card .check-list,
.standard-card .x-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.standard-card .check-list li,
.standard-card .x-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 15px;
    line-height: 1.6;
}

.standard-card li > svg {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    padding: 4px;
    border-radius: 50%;
    color: #fff;
}

.standard-good li > svg {
    background: #10b981;
}

.standard-bad li > svg {
    background: #ef3340;
}

.legal-page {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 56px;
    width: min(calc(100% - 40px), 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 0;
}

.legal-toc {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.legal-toc .eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-toc a {
    display: block;
    padding: 0;
    border-radius: 0;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    font-size: 14px;
    line-height: 1.375;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    background: var(--orange-soft);
    color: var(--brand);
}

.legal-document {
    min-width: 0;
}

.legal-document > header {
    margin: 0 0 48px;
    padding: 0;
    border: 0;
}

.legal-document > header span {
    display: block;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: normal;
    text-transform: none;
}

.legal-document > header p {
    max-width: none;
    margin: 20px 0 0;
    color: color-mix(in srgb, var(--foreground) 85%, transparent);
    font-size: clamp(16.8px, 1.8vw, 20px);
    line-height: 1.7;
}

.legal-document > section {
    margin: 0 0 48px;
    scroll-margin-top: 130px;
    break-inside: avoid;
}

.legal-document h2 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(25.6px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.25;
}

.legal-document h3 {
    margin: 32px 0 0;
    color: var(--foreground);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.375;
}

.legal-document p,
.legal-document li {
    color: color-mix(in srgb, var(--foreground) 80%, transparent);
    font-size: 16px;
}

.legal-document p {
    margin: 16px 0 0;
    line-height: 1.8;
}

.legal-document .bullet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.legal-document .bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.legal-document .bullet-list li::before {
    position: static;
    width: 6px;
    height: 6px;
    margin-top: 10px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--brand);
    content: "";
}

.legal-document > section:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-categories h3 {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .faq-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .faq-categories {
        position: sticky;
        top: 112px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .faq-categories h3 {
        grid-column: auto;
    }

    .standards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-page {
        grid-template-columns: 240px minmax(0, 1fr);
        width: min(calc(100% - 80px), 1180px);
    }

    .legal-toc {
        position: sticky;
        top: 112px;
        display: flex;
    }
}

@media (min-width: 1280px) {
    .legal-document {
        column-count: 2;
        column-gap: 48px;
    }

    .legal-document > header {
        column-span: all;
    }
}

@media (min-width: 1440px) {
    .page-hero.page-hero-help .hero-copy,
    .page-hero.page-hero-help .hero-copy h1,
    .page-hero.page-hero-help .hero-copy p,
    .page-hero.page-hero-privacy .hero-copy,
    .page-hero.page-hero-privacy .hero-copy h1,
    .page-hero.page-hero-privacy .hero-copy p,
    .page-hero.page-hero-terms .hero-copy,
    .page-hero.page-hero-terms .hero-copy h1,
    .page-hero.page-hero-terms .hero-copy p,
    .page-hero.page-hero-guidelines .hero-copy,
    .page-hero.page-hero-guidelines .hero-copy h1,
    .page-hero.page-hero-guidelines .hero-copy p {
        width: 620px;
        max-width: 620px;
    }
}

@media (max-width: 767px) {
    .help-topics,
    #faq,
    .help-support,
    .guidelines-standards {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .topic-card,
    .support-card,
    .support-card-accent {
        height: auto;
        min-height: 0;
    }

    .faq-item > button {
        min-height: 88px;
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .standard-card {
        padding: 28px 22px;
    }

    .legal-page {
        gap: 0;
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .legal-document > header p,
    .legal-document p,
    .legal-document li {
        font-size: 15px;
    }
}

/* Competitions overview. */
.competitions-guidelines,
.competitions-workspace,
.community-forum-workspace {
    background: var(--page-gradient);
}

.competitions-guidelines {
    padding: 64px clamp(24px, 2.8vw, 40px) 16px;
}

.competitions-guidelines > .competition-info {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.competitions-guidelines .dashboard-card {
    min-height: 320px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.competitions-guidelines .dashboard-card > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.competitions-guidelines .dashboard-card > header > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--brand);
}

.competitions-guidelines .dashboard-card h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.participation-steps {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.participation-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.participation-steps b {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
}

.participation-steps strong,
.participation-steps small {
    display: block;
}

.participation-steps strong {
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.35;
}

.participation-steps small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.judging-criteria,
.upcoming-competition-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.judging-criteria > div,
.upcoming-competition-list li {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.judging-criteria > div:last-child,
.upcoming-competition-list li:last-child {
    border-bottom: 0;
}

.judging-criteria dt,
.upcoming-competition-list strong {
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 13px;
    line-height: 1.35;
}

.judging-criteria dd,
.upcoming-competition-list span {
    margin: 0;
    color: var(--foreground);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.competitions-guidelines .dashboard-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.competitions-guidelines .bullet-list.compact {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.competitions-guidelines .bullet-list.compact li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 13px;
    line-height: 1.45;
}

.competitions-guidelines .bullet-list.compact li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--brand);
    font-size: 12px;
    content: "♔";
}

.competitions-workspace {
    padding: 24px clamp(24px, 2.8vw, 40px) 64px;
}

.competitions-workspace > .section-toolbar,
.competitions-workspace > .content-panel {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}

.competitions-workspace > .section-toolbar {
    min-height: 54px;
    margin-bottom: 24px;
}

.competitions-workspace > .section-toolbar .segmented {
    display: inline-flex;
    width: auto;
    min-height: 54px;
    gap: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.competitions-workspace > .section-toolbar .segmented button {
    width: auto;
    min-width: 154px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
}

.competitions-workspace > .section-toolbar > .button {
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
}

.competitions-workspace > .content-panel {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.competitions-workspace > .content-panel + .content-panel {
    margin-top: 24px;
}

.competitions-workspace .panel-heading {
    align-items: center;
    margin-bottom: 24px;
}

.competitions-workspace .panel-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--foreground);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.active-competitions-panel > .panel-heading h2::before {
    content: none;
}

.community-voting-panel > .panel-heading h2::before,
.recent-winners-panel > .panel-heading h2::before {
    content: none;
}

.competitions-workspace .panel-heading h2 > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--brand);
}

.active-competitions-panel > .panel-heading .competition-status-filter {
    margin: 0;
}

.competition-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.competition-status-filter button {
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--foreground);
    font-size: 13px;
    font-weight: 700;
}

.competition-status-filter button:hover,
.competition-status-filter button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.competitions-workspace .competition-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.competitions-workspace .competition-grid > .empty-state {
    grid-column: 1 / -1;
}

.competitions-workspace .competition-card {
    min-height: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.competitions-workspace .competition-card header > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.competitions-workspace .competition-card header .badge {
    grid-column: 2;
    grid-row: 1;
}

.competitions-workspace .competition-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.competitions-workspace .competition-card > p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.competitions-workspace .competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 12px;
}

.competitions-workspace .competition-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.competitions-workspace .competition-meta svg {
    color: var(--brand);
}

.competitions-workspace .competition-prize {
    display: grid;
    gap: 2px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}

.competitions-workspace .competition-prize small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.competitions-workspace .competition-prize strong {
    color: var(--foreground);
    font-size: 14px;
}

.competitions-workspace .competition-card .card-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.competitions-workspace .competition-card .button {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
}

.community-voting-list,
.recent-winner-list {
    display: grid;
    gap: 12px;
}

.community-voting-list > article,
.recent-winner-list > article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.community-voting-list > article > div,
.recent-winner-list > article > div {
    min-width: 0;
    flex: 1;
}

.community-voting-list small,
.community-voting-list strong,
.community-voting-list span,
.recent-winner-list strong,
.recent-winner-list p {
    display: block;
}

.community-voting-list small,
.community-voting-list span,
.recent-winner-list p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Community forum overview. */
.community-forum-workspace {
    padding: 64px clamp(24px, 2.8vw, 40px);
}

.community-forum-workspace > .forum-dashboard,
.community-forum-workspace > .forum-layout {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}

.community-forum-workspace > .forum-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.community-forum-workspace .forum-dashboard > .dashboard-card {
    height: auto;
    min-height: 251px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.community-forum-workspace .forum-dashboard .dashboard-card > header {
    margin: 0 0 20px;
}

.community-forum-workspace .forum-dashboard .dashboard-card:first-child > header > span {
    display: none;
}

.community-forum-workspace .forum-dashboard .dashboard-card:last-child > header > span {
    display: inline-flex;
    color: var(--brand);
}

.community-forum-workspace .forum-dashboard .dashboard-card h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.community-forum-workspace .forum-dashboard .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.community-forum-workspace .forum-dashboard .mini-stats > div {
    min-height: 72px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.community-forum-workspace .forum-dashboard .mini-stats dd {
    margin: 0;
    color: var(--foreground);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.community-forum-workspace .forum-dashboard .mini-stats dt {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.community-forum-workspace .trending-tags {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.community-forum-workspace .trending-tags .tag {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.community-forum-workspace > .forum-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.community-forum-workspace .forum-sidebar {
    position: sticky;
    top: 112px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.community-forum-workspace .forum-sidebar h2 {
    margin: 0 0 -4px;
    padding: 4px 8px 12px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
}

.competitions-workspace .panel-heading h2 {
    font-size: 20px;
    line-height: 1.25;
    gap: 8px;
}

@media (min-width: 768px) {
    .competitions-guidelines {
        padding-bottom: 16px;
    }

    .competitions-workspace {
        padding-top: 24px;
    }
}

.community-forum-workspace .forum-sidebar nav {
    display: grid;
    gap: 5px;
}

.community-forum-workspace .forum-sidebar button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: color-mix(in srgb, var(--foreground) 74%, transparent);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.community-forum-workspace .forum-sidebar button:hover,
.community-forum-workspace .forum-sidebar button.is-active {
    background: var(--brand);
    color: #fff;
}

.community-forum-workspace .forum-sidebar button strong {
    color: inherit;
    font-size: 12px;
}

.community-forum-workspace .forum-content {
    min-width: 0;
}

.community-forum-workspace .forum-content .section-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 148px auto;
    gap: 12px;
    margin: 0;
}

.community-forum-workspace .forum-content .search-input,
.community-forum-workspace .forum-content .forum-sort {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
}

.community-forum-workspace .forum-content .search-input {
    padding: 0 18px;
}

.community-forum-workspace .forum-content .forum-sort {
    min-width: 0;
    padding: 0 16px;
}

.community-forum-workspace .forum-content .button {
    min-height: 48px;
    padding: 0 24px;
    white-space: nowrap;
}

.community-forum-workspace .discussion-count {
    margin: 16px 0;
    color: var(--muted);
    font-size: 13px;
}

.community-forum-workspace .discussion-list {
    display: grid;
    gap: 16px;
}

.community-forum-workspace .discussion-card {
    min-height: 203px;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.community-forum-workspace .discussion-card > .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 76%, white 8%);
    font-size: 15px;
    font-weight: 500;
}

.community-forum-workspace .discussion-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.community-forum-workspace .discussion-title-row > div {
    display: contents;
}

.community-forum-workspace .discussion-title-row h3 {
    order: 1;
    min-width: 0;
    margin: 0;
    color: var(--foreground);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.375;
}

.community-forum-workspace .discussion-title-row .badge {
    order: 2;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 12px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
}

.community-forum-workspace .discussion-title-row .discussion-age {
    display: none;
}

.community-forum-workspace .discussion-age,
.community-forum-workspace .discussion-main > p,
.community-forum-workspace .discussion-meta {
    color: var(--muted);
    font-size: 13px;
}

.community-forum-workspace .discussion-main > p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 24px;
}

.community-forum-workspace .discussion-card .tag {
    min-height: 22px;
    padding: 2px 10px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 11px;
}

.community-forum-workspace .discussion-meta {
    justify-content: flex-end;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
}

.community-forum-workspace .discussion-meta > span:first-child {
    margin-right: auto;
}

/* Compact hosted detail templates. */
.detail-section {
    background: var(--page-gradient);
}

.collaborator-detail-section,
.project-detail-section,
.discussion-page,
.detail-section:has(> .competition-detail-grid) {
    margin-top: -7px;
    padding: 0 clamp(24px, 2.8vw, 40px) 80px;
}

.collaborator-detail-section > .back-link,
.collaborator-detail-section > .collaborator-detail-grid,
.collaborator-detail-section > .collaborator-public-music {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.collaborator-detail-section > .back-link,
.project-detail-section > .back-link,
.discussion-page > .back-link,
.detail-section:has(> .competition-detail-grid) > .back-link {
    display: flex;
    min-height: 22px;
    font-size: 14px;
}

.collaborator-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 374px;
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.collaborator-profile-card,
.connect-profile-card,
.project-detail-card,
.competition-detail-card,
.competition-entry-sidebar,
.discussion-detail-card,
.collaborator-public-music {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.collaborator-profile-card {
    min-height: 332px;
    padding: 36px;
}

.collaborator-profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.collaborator-profile-heading .avatar-xl {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 76%, white 8%);
    font-size: 18px;
}

.collaborator-profile-heading > div {
    min-width: 0;
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-name-row h1 {
    min-width: 0;
    margin: 0;
    color: var(--foreground);
    font-size: clamp(32px, 3.3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.collaborator-profile-card .profile-location {
    margin: 8px 0 0;
    font-size: 14px;
}

.collaborator-bio {
    margin: 32px 0 20px;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.profile-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 22px;
}

.profile-stat-row > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-stat-row strong,
.profile-stat-row span {
    color: var(--foreground);
    font-size: 14px;
}

.profile-stat-row strong svg {
    color: #ffc640;
}

.profile-taxonomy {
    display: inline-block;
    width: calc(50% - 4px);
    vertical-align: top;
}

.profile-taxonomy h2 {
    margin: 0 0 12px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 800;
}

.profile-taxonomy .tag,
.project-detail-card .tag {
    min-height: 22px;
    padding: 2px 12px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 12px;
}

.connect-profile-card {
    min-height: 0;
    padding: 28px;
}

.connect-profile-card > h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
}

.connect-profile-card > p {
    margin: 14px 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.connect-profile-card .stacked-details {
    gap: 10px;
    margin-bottom: 22px;
}

.connect-profile-card .stacked-details > div {
    min-height: 48px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.connect-profile-card .stacked-details dt,
.connect-profile-card .stacked-details dd {
    font-size: 13px;
}

.connect-profile-card > .button {
    min-height: 48px;
}

.collaborator-public-music {
    margin-top: 24px;
    padding: 28px;
}

.project-detail-section > .back-link,
.project-detail-card {
    width: 100%;
    max-width: 944px;
    margin-right: auto;
    margin-left: auto;
}

.project-detail-card {
    margin-top: 24px;
    padding: 40px;
}

.project-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.project-detail-heading > div {
    min-width: 0;
}

.project-detail-heading h1,
.competition-detail-card h1 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(34px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.project-detail-heading p,
.competition-detail-card > header p {
    margin: 16px 0 0;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.project-detail-card > .detail-meta,
.competition-detail-card > .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 13px;
}

.project-detail-card > .detail-meta span,
.competition-detail-card > .detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-detail-card > .detail-meta svg,
.competition-detail-card > .detail-meta svg {
    color: var(--brand);
}

.project-progress-block,
.project-skills-block,
.project-team-block {
    margin-top: 28px;
}

.project-progress-block > header,
.project-team-block > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.project-detail-card h2 {
    margin: 0 0 12px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
}

.project-progress-block .progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--foreground) 14%, transparent);
}

.project-progress-block .progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.project-owner-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.project-owner-row small,
.project-owner-row strong {
    display: block;
}

.project-owner-row small {
    color: var(--muted);
    font-size: 12px;
}

.project-owner-row strong {
    margin-top: 3px;
    color: var(--foreground);
    font-size: 14px;
}

.project-member-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-member-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.project-member-list strong,
.project-member-list small {
    display: block;
}

.project-member-list small {
    margin-top: 2px;
    color: var(--muted);
}

.project-contract-facts {
    margin-top: 28px;
}

.project-detail-actions,
.competition-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.project-detail-actions .button,
.competition-detail-actions .button {
    min-height: 48px;
}

.detail-section:has(> .competition-detail-grid) > .back-link,
.competition-detail-grid {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.competition-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 374px;
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.competition-detail-card {
    padding: 36px;
}

.competition-detail-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.competition-detail-card > header > div {
    min-width: 0;
}

.competition-prize-inset {
    display: grid;
    gap: 3px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.competition-prize-inset small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.competition-prize-inset strong {
    color: var(--foreground);
    font-size: 16px;
}

.competition-rules-block {
    margin-top: 28px;
}

.competition-rules-block h2 {
    margin: 0 0 14px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
}

.competition-rules-block .rules-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.competition-rules-block .rules-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.competition-rules-block .rules-list svg {
    margin-top: 4px;
    color: var(--brand);
}

.competition-rules-block .rules-list p {
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.competition-detail-actions > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.competition-entry-sidebar {
    padding: 28px;
}

.competition-entry-sidebar .panel-heading {
    align-items: center;
    margin-bottom: 20px;
}

.competition-entry-sidebar .panel-heading h2,
.competition-entry-sidebar .panel-heading strong {
    margin: 0;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
}

.competition-entry-sidebar .panel-heading strong {
    color: var(--muted);
    font-size: 14px;
}

.competition-entry-sidebar .mini-project-list a,
.competition-entry-sidebar .mini-project-static {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.discussion-page > .back-link,
.discussion-detail-card {
    width: 100%;
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.discussion-detail-card {
    margin-top: 24px;
    padding: 36px;
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.discussion-detail-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discussion-detail-topline .badge {
    min-height: 20px;
    padding: 0 12px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.discussion-detail-topline .discussion-age {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    font-size: 12px;
    font-weight: 500;
}

.discussion-detail-card > h1 {
    margin: 16px 0 0;
    color: var(--foreground);
    font-size: clamp(25.6px, 3.4vw, 36.8px);
    font-weight: 800;
    line-height: 1.25;
}

.discussion-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.discussion-detail-author .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 0;
    font-size: 15px;
    font-weight: 500;
}

.discussion-detail-author p {
    margin: 0;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 500;
}

.discussion-detail-author p + p {
    margin-top: 2px;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    font-size: 13px;
    font-weight: 400;
}

.discussion-detail-card .discussion-body {
    padding: 0;
}

.discussion-detail-card .discussion-body p,
.discussion-detail-card .reply-card p {
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 80%, transparent);
    font-size: 16px;
    line-height: 2;
    white-space: pre-wrap;
}

.discussion-detail-card .discussion-body p {
    margin-top: 24px;
}

.discussion-detail-card > footer {
    display: block;
    padding: 0;
    border: 0;
}

.discussion-detail-card > footer > .tag-list:not(:empty) {
    margin-top: 24px;
}

.discussion-detail-card .post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.discussion-detail-card .post-actions button,
.discussion-detail-card .post-actions > span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
}

.discussion-detail-card .replies-section {
    margin-top: 40px;
}

.discussion-detail-card .replies-section > .panel-heading {
    margin-bottom: 18px;
}

.discussion-detail-card .replies-section > .panel-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.discussion-detail-card .reply-list,
.discussion-detail-card .reply-thread,
.discussion-detail-card .reply-children {
    display: grid;
    gap: 12px;
}

.discussion-detail-card .reply-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
    box-shadow: none;
}

.discussion-detail-card .reply-card p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.discussion-detail-card .reply-children {
    margin-left: 42px;
    padding-left: 16px;
    border-left: 2px solid var(--line);
}

.discussion-detail-card .reply-composer {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.discussion-detail-card .reply-composer h2 {
    margin: 0 0 12px;
    color: var(--foreground);
    font-size: 18px;
}

@media (min-width: 1024px) {
    .active-competitions-panel > .competition-status-filter {
        position: absolute;
        top: 24px;
        right: 28px;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .competitions-workspace .competition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competitions-workspace .competition-card .card-actions {
        flex-direction: row;
    }

    .competitions-workspace .competition-card .button {
        width: auto;
        flex: 1 1 0;
    }
}

@media (min-width: 1200px) {
    .competitions-workspace .competition-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .competitions-guidelines > .competition-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-forum-workspace > .forum-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-forum-workspace > .forum-layout {
        grid-template-columns: 1fr;
    }

    .community-forum-workspace .forum-sidebar {
        position: static;
    }

    .community-forum-workspace .forum-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collaborator-detail-grid,
    .competition-detail-grid {
        grid-template-columns: 1fr;
    }

    .connect-profile-card,
    .competition-entry-sidebar {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .competitions-guidelines,
    .competitions-workspace,
    .community-forum-workspace {
        padding-right: 20px;
        padding-left: 20px;
    }

    .competitions-guidelines {
        padding-top: 48px;
    }

    .competitions-guidelines > .competition-info {
        grid-template-columns: 1fr;
    }

    .competitions-guidelines .dashboard-card {
        min-height: 0;
    }

    .competitions-workspace > .section-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .competitions-workspace > .section-toolbar .segmented {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .competitions-workspace > .section-toolbar .segmented button {
        width: 100%;
        min-width: 0;
        padding: 0 12px;
    }

    .competitions-workspace > .section-toolbar > .button {
        width: 100%;
    }

    .competitions-workspace > .content-panel {
        padding: 20px;
    }

    .competition-status-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competition-status-filter button {
        width: 100%;
        padding: 0 10px;
    }

    .community-forum-workspace {
        padding-top: 48px;
    }

    .community-forum-workspace .forum-dashboard .mini-stats,
    .community-forum-workspace .forum-sidebar nav {
        grid-template-columns: 1fr;
    }

    .community-forum-workspace .forum-dashboard > .dashboard-card {
        min-height: 0;
    }

    .community-forum-workspace .forum-content .section-toolbar {
        grid-template-columns: 1fr;
    }

    .community-forum-workspace .forum-content .button {
        width: 100%;
    }

    .community-forum-workspace .discussion-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .community-forum-workspace .discussion-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-forum-workspace .discussion-meta {
        justify-content: flex-start;
    }

    .collaborator-detail-section,
    .project-detail-section,
    .discussion-page,
    .detail-section:has(> .competition-detail-grid) {
        padding: 20px 20px 56px;
    }

    .collaborator-profile-card,
    .connect-profile-card,
    .project-detail-card,
    .competition-detail-card,
    .competition-entry-sidebar,
    .discussion-detail-card,
    .collaborator-public-music {
        padding: 22px;
    }

    .collaborator-profile-heading,
    .profile-name-row,
    .project-detail-heading,
    .competition-detail-card > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-name-row {
        display: flex;
    }

    .profile-taxonomy {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .project-detail-card,
    .competition-detail-card,
    .discussion-detail-card {
        margin-top: 18px;
    }

    .discussion-detail-card > header {
        grid-template-columns: 1fr;
    }

    .discussion-detail-card .discussion-body p {
        font-size: 15px;
    }

    .discussion-detail-card .post-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .discussion-detail-card .post-actions button,
    .discussion-detail-card .post-actions > span {
        width: 100%;
        justify-content: center;
    }

    .discussion-detail-card .reply-children {
        margin-left: 12px;
        padding-left: 10px;
    }

    .discussion-detail-card .reply-composer {
        grid-template-columns: 1fr;
    }
}

/* Final narrow-screen precedence after route-specific responsive rules. */
@media (max-width: 767px) {
    .stats-band,
    .section,
    .cta-wrap,
    .competitions-guidelines,
    .competitions-workspace,
    .community-forum-workspace {
        padding-right: 24px;
        padding-left: 24px;
    }

    .community-dashboard {
        padding-right: 24px;
        padding-left: 24px;
    }

    .collaboration-workspace {
        padding-right: 24px;
        padding-left: 24px;
    }

    .page-hero-home {
        height: auto;
        min-height: 0;
        padding-bottom: 100px;
    }

    .page-hero-home .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 40px;
        padding: 112px 24px 0;
    }

    .page-hero-home .hero-copy h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .page-hero-home .hero-actions .button {
        width: auto;
    }

    .page-hero:not(.page-hero-home) {
        height: auto;
        min-height: 650px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 650px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 150px 24px 0;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        font-size: 48px;
        line-height: 1.24;
    }

    .page-hero:not(.page-hero-home) .hero-copy p {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        align-items: flex-start;
        margin-top: 32px;
    }

    .page-hero:not(.page-hero-home) .hero-actions .button {
        width: auto;
        min-height: 50px;
        padding: 0 30px;
        font-size: 16px;
        font-weight: 700;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 187.225px;
        flex: 1 1 187.225px;
        align-items: flex-end;
        margin: 40px 0 0;
    }

    .page-hero:not(.page-hero-home) .hero-visual img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .collaborator-detail-section,
    .project-detail-section,
    .discussion-page,
    .detail-section:has(> .competition-detail-grid) {
        margin-top: -7px;
        padding: 47px 24px 56px;
    }

    .stats-inner > h2 br {
        display: block;
    }

    .about-copy > .button {
        margin: 25px 0 0 5px;
    }

    .home-discover {
        padding-top: 64px;
    }

    .help-topics,
    #faq,
    .help-support {
        padding-right: 24px;
        padding-left: 24px;
    }

    .help-topics {
        padding-bottom: 0;
    }

    #faq {
        padding-bottom: 65.5px;
    }

    .help-topics .section-heading h2,
    #faq .section-heading h2,
    .help-support .section-heading h2 {
        font-size: 32px;
        line-height: 1.25;
    }

    .topic-grid,
    .faq-layout,
    .support-grid {
        margin-top: 48px;
    }

    .topic-card p {
        line-height: 24px;
    }

    .faq-categories {
        gap: 4px;
        padding-top: 15px;
    }

    .faq-categories h3 {
        margin: 0 0 -4px;
        padding: 4px 8px 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .faq-categories button {
        min-height: 45px;
        padding: 0 16px;
    }

    .faq-item > button {
        min-height: 0;
        gap: 16px;
        padding: 20.5px 24px;
    }

    .faq-list {
        gap: 12.5px;
    }

    .faq-item > button > span {
        min-width: 0;
        flex: 1;
    }

    .faq-item small {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.12em;
    }

    .faq-item strong {
        font-size: 16px;
        line-height: 1.375;
    }

    .faq-item > button > svg {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .support-card,
    .support-card-accent {
        min-height: 271px;
    }

    .legal-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 64px 24px;
    }

    .legal-document > header p {
        font-size: clamp(16.8px, 1.8vw, 20px);
        line-height: 1.7;
    }

    .community-dashboard {
        padding-top: 56px;
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card:nth-child(1) {
        min-height: 254.5px;
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card:nth-child(2) {
        min-height: 272.2px;
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card:nth-child(3) {
        min-height: 318.1px;
    }

    .collaboration-workspace {
        padding-top: 44px;
    }

    .collaboration-workspace > .content-panel,
    .competitions-workspace > .content-panel {
        padding: 24px;
    }

    .collaboration-workspace .panel-heading h2,
    .competitions-workspace .panel-heading h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .competitions-guidelines {
        padding-top: 56px;
    }

    .competitions-guidelines .dashboard-card > header {
        min-height: 32px;
    }

    .competitions-guidelines .dashboard-card > header > span {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .participation-steps {
        gap: 16px;
    }

    .participation-steps strong {
        line-height: 1.25;
    }

    .participation-steps small {
        margin-top: 4px;
        line-height: 1.375;
    }

    .competitions-guidelines .dashboard-card:nth-child(1) {
        min-height: 305.4px;
    }

    .competitions-guidelines .dashboard-card:nth-child(2) {
        min-height: 324.1px;
    }

    .competitions-guidelines .dashboard-card:nth-child(3) {
        min-height: 289px;
    }

    .competitions-guidelines .dashboard-card:nth-child(4) {
        min-height: 233.6px;
    }

    .competitions-workspace {
        padding-top: 28px;
    }

    .community-forum-workspace {
        padding-top: 56px;
    }

    .community-forum-workspace .forum-dashboard > .dashboard-card:first-child {
        height: auto;
        min-height: 287.3px;
    }

    .community-forum-workspace .forum-dashboard > .dashboard-card:last-child {
        height: auto;
        min-height: 317.6px;
    }

    .community-forum-workspace .forum-sidebar {
        max-height: min(413px, calc(100svh - 160px));
        overflow-y: auto;
        scrollbar-width: none;
    }

    .community-forum-workspace .forum-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .community-forum-workspace .forum-sidebar h2 {
        width: auto;
        margin: 0 0 -4px;
        padding: 4px 8px 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .community-forum-workspace .discussion-card {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 20px;
    }

    .community-forum-workspace .discussion-title-row {
        align-items: flex-start;
        flex-direction: row;
    }

    .community-forum-workspace .forum-content .section-toolbar {
        grid-template-columns: 150.4px minmax(0, 1fr);
    }

    .community-forum-workspace .forum-content .search-input {
        grid-column: 1 / -1;
    }

    .community-forum-workspace .forum-content .forum-sort {
        grid-column: 1;
    }

    .community-forum-workspace .forum-content .button {
        grid-column: 2;
        width: 100%;
    }

    .footer-inner,
    .footer-bottom {
        width: min(calc(100% - 48px), 620px);
    }

    .footer-inner {
        gap: 40px;
        padding: 48px 0 0;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand > p,
    .footer-social {
        margin: 0;
    }

    .footer-column {
        gap: 20px;
    }

    .footer-column h2 {
        margin: 0;
    }

    .footer-inner > nav.footer-column h2 {
        margin-bottom: 1.6px;
    }

    .footer-inner > nav.footer-column:nth-child(2) {
        min-height: 228px;
    }

    .footer-inner > nav.footer-column:nth-child(3) {
        min-height: 188px;
    }

    .footer-column.newsletter {
        gap: 0;
    }

    .footer-column.newsletter h2 {
        margin-bottom: 12px;
    }

    .footer-column.newsletter > p {
        margin: 0 0 20px;
    }

    .newsletter-form {
        display: grid;
    }

    .newsletter-fields {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .newsletter-fields input[type="email"] {
        width: 100%;
        max-width: 286px;
    }

    .newsletter-submit {
        width: auto;
        max-width: none;
    }

    .newsletter-consent {
        max-width: 412px;
    }

    .contact-list {
        margin-top: 32px;
    }

    .footer-bottom {
        height: 76.8px;
        min-height: 76.8px;
        align-items: center;
        gap: 16px;
        margin-top: 40px;
        padding: 20px 0 0;
        font-size: 15px;
        line-height: 20px;
        text-align: center;
    }

    .footer-credit {
        flex-wrap: nowrap;
    }

    .site-footer {
        min-height: 1328px;
    }
}

@media (max-width: 767px) and (max-height: 560px) {
    .page-hero-home {
        padding-bottom: 64px;
    }

    .page-hero-home .hero-inner {
        gap: 28px;
        padding-top: 96px;
    }

    .page-hero-home .hero-copy h1 {
        font-size: 34px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        padding-top: 104px;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        font-size: 40px;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .guidelines-standards > .section-heading h2 {
        font-size: 32px;
        line-height: 1.25;
    }

    .guidelines-standards .standard-card {
        padding: 40px 32px;
    }

    .guidelines-standards .standard-card h2,
    .guidelines-standards .standard-card h3 {
        font-size: 22.4px;
        line-height: 1.25;
    }

    .active-competitions-panel > .panel-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .active-competitions-panel > .panel-heading .competition-status-filter {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Portrait and standard-height tablets retain the hosted stacked composition. */
@media (min-width: 768px) and (max-width: 1023px) {
    .wizard-shell {
        padding: 36px 48px;
    }

    .wizard-panel {
        padding: 40px 44px;
    }

    .upload-file-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upload-file-slot:last-child {
        grid-column: 1 / -1;
    }

    .page-hero-home {
        height: auto;
        min-height: 0;
    }

    .page-hero-home .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        align-items: center;
        flex-direction: column;
        gap: 40px;
        padding: 112px 24px 0;
    }

    .page-hero-home .hero-copy,
    .page-hero-home .hero-copy h1,
    .page-hero-home .hero-copy p {
        width: 100%;
        max-width: 560px;
    }

    .page-hero-home .hero-copy p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero-home .hero-copy h1 {
        font-size: clamp(36px, 4.4vw, 52px);
        line-height: 1.1;
    }

    .page-hero-home .hero-actions {
        margin-top: 32px;
    }

    .page-hero-home .hero-visual {
        width: 100%;
        height: auto;
        min-height: 0;
        align-self: auto;
        justify-content: center;
    }

    .page-hero-home .hero-visual img {
        width: clamp(280px, 42vw, 520px);
        max-width: none;
        height: auto;
        object-position: center bottom;
    }

    .page-hero-home .hero-ticker-wrap {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 68px;
        margin-top: 32px;
        padding: 0 24px 40px;
    }

    .page-hero:not(.page-hero-home) {
        height: auto;
        min-height: 650px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 650px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 150px 24px 0;
    }

    .page-hero:not(.page-hero-home) .hero-copy {
        width: 100%;
        max-width: 640px;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        width: 100%;
        max-width: 640px;
        font-size: 48px;
        line-height: 1.24;
    }

    .page-hero:not(.page-hero-home) .hero-copy p {
        width: 100%;
        max-width: 620px;
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        align-items: flex-start;
        margin-top: 32px;
    }

    .page-hero:not(.page-hero-home) .hero-actions .button {
        width: auto;
        min-height: 50px;
        padding: 0 30px;
        font-size: 16px;
        font-weight: 700;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        position: relative;
        display: flex;
        width: 100%;
        max-width: 720px;
        height: auto;
        min-height: 0;
        aspect-ratio: 720 / 412;
        flex: 0 0 auto;
        align-items: flex-end;
        margin: 40px 0 0;
        align-self: center;
    }

    .page-hero:not(.page-hero-home) .hero-visual img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .stats-band {
        padding: 64px 24px 60px;
    }

    .stats-inner > h2 {
        width: 100%;
        max-width: 640px;
        margin-top: 24px;
    }

    .about-section {
        padding: 64px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-copy {
        max-width: none;
        margin: 0;
    }

    .about-copy h2 {
        width: 100%;
        max-width: 620px;
        font-size: 44.8px;
        line-height: 1.25;
    }

    .about-copy > p {
        max-width: 640px;
        margin-top: 36px;
        line-height: 1.7;
    }

    .about-lists {
        width: 100%;
        max-width: none;
        gap: 24px;
        margin: 48px 0 16px;
    }

    .about-lists > div {
        height: 316px;
        min-height: 316px;
        padding: 32px;
    }

    .about-lists h3 {
        font-size: 24px;
    }

    .about-copy > .button {
        min-width: 218px;
        min-height: 74px;
        margin: 0;
        padding: 0 36px;
        font-size: 20px;
        font-weight: 700;
    }

    .about-visual {
        order: initial;
        width: 100%;
        max-width: 662px;
        height: 630px;
        justify-content: flex-start;
        margin: 0 auto;
    }

    .about-ring {
        width: 95.2%;
        height: 95.2%;
    }

    .home-discover {
        padding-top: 64px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .help-topics,
    #faq,
    .help-support,
    .legal-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .help-topics {
        padding-top: 64px;
        padding-bottom: 0;
    }

    .help-topics .section-heading,
    #faq .section-heading,
    .help-support .section-heading {
        width: 100%;
        max-width: none;
    }

    .help-support .section-heading {
        max-width: 1120px;
    }

    .help-topics .section-heading h2,
    #faq .section-heading h2,
    .help-support .section-heading h2 {
        font-size: clamp(32px, 4vw, 48px);
        line-height: 1.25;
    }

    .help-topics .section-heading p,
    #faq .section-heading p,
    .help-support .section-heading p {
        max-width: 600px;
        margin: 16px auto 0;
        line-height: 1.6;
    }

    .topic-grid,
    .faq-layout,
    .support-grid {
        margin-top: 48px;
    }

    .topic-card {
        height: 222.6px;
        min-height: 222.6px;
    }

    #faq {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px;
    }

    .faq-categories h3 {
        grid-column: auto;
        margin: 0 0 -4px;
        padding: 4px 8px 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .faq-categories button {
        min-height: 45px;
        padding: 12px 16px;
    }

    .faq-item > button {
        min-height: 98.8px;
        gap: 16px;
        padding: 20.4px 24px;
    }

    .faq-item small {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.12em;
    }

    .faq-item strong {
        font-size: 16px;
        line-height: 1.375;
    }

    .faq-item > button > svg {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .help-support {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .support-card,
    .support-card-accent {
        height: clamp(319.6px, calc(575px - 30.26vw), 342.6px);
        min-height: clamp(319.6px, calc(575px - 30.26vw), 342.6px);
    }

    .legal-page {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .cta-wrap {
        padding: 64px 24px;
    }

    .cta-band {
        grid-template-columns: 1fr;
        width: 100%;
        height: 317.4px;
        min-height: 317.4px;
    }

    .cta-copy {
        width: min(100%, 504px);
        max-width: 504px;
        padding: 48px 32px;
    }

    .cta-copy h2,
    .cta-copy p {
        width: 100%;
        max-width: 440px;
    }

    .cta-copy .button-row {
        flex-direction: row;
    }

    .cta-visual {
        position: absolute;
        inset: 0 0 0 auto;
        width: 44%;
        height: 100%;
    }

    .community-forum-workspace {
        padding-top: 56px;
    }

    .community-forum-workspace > .forum-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-forum-workspace .forum-dashboard > .dashboard-card {
        height: auto;
        min-height: clamp(270.5px, calc(798px - 62.5vw), 318px);
    }

    .site-footer {
        min-height: 796px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand > p,
    .footer-social {
        margin: 0;
    }

    .footer-column {
        gap: 20px;
    }

    .footer-column h2 {
        margin: 0;
    }

    .footer-inner > nav.footer-column h2 {
        margin-bottom: 1.6px;
    }

    .footer-inner > nav.footer-column:nth-child(2) {
        min-height: 228px;
    }

    .footer-inner > nav.footer-column:nth-child(3) {
        min-height: 188px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .upload-file-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upload-file-slot:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .explore-catalog {
        padding-top: 64px;
    }

    .explore-catalog > .section-heading h2 {
        font-size: 40px;
        line-height: 1.05;
    }

    .explore-catalog > .section-heading p {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.35;
    }

    .upload-guidelines {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .upload-guidelines > .section-heading h2 {
        font-size: 36px;
        line-height: 1;
    }

    .upload-guidelines .info-card {
        height: auto;
        min-height: 409px;
        padding: 40px 32px;
    }

    .upload-section {
        min-height: 0;
        padding: 48px 24px;
        background: var(--page-gradient);
    }

    .wizard-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 36px 24px;
        border-radius: 28px;
        background: var(--upload-band);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .wizard-steps {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .wizard-steps::before {
        display: none;
    }

    .wizard-steps li {
        width: 100%;
        min-height: 153.25px;
    }

    .wizard-panel {
        min-height: 0;
        padding: 32px 24px;
    }

    .wizard-panel-heading h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .upload-file-slots {
        grid-template-columns: 1fr;
    }

    .upload-file-slot:last-child {
        grid-column: auto;
    }

    .upload-file-slot .upload-dropzone {
        min-height: 270px;
    }

    .media-type-card {
        display: flex;
        width: 100%;
        min-width: 0;
        padding-right: 20px;
        padding-left: 20px;
    }

    .media-type-list + .wizard-actions {
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
    }

    .media-type-list + .wizard-actions .button {
        width: auto;
    }
}

@media (max-width: 340px) {
    .media-type-card {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .media-type-card > span:nth-child(2) {
        width: 100%;
    }

    .media-title-row strong {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Hosted large-tablet / small-laptop composition. Tailwind's lg rules begin
 * at 1024px, while the fixed desktop artwork does not take over until 1280px
 * (content) and 1440px (header, heroes, and footer). Keep this range fluid so
 * both viewport width and text-driven height remain truthful. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .brand {
        width: 190px;
        height: 52px;
    }

    .page-hero-home {
        height: auto;
        min-height: 0;
    }

    .page-hero-home .hero-inner {
        display: flex;
        width: 100%;
        max-width: 1440px;
        height: auto;
        min-height: 0;
        align-items: flex-end;
        flex-direction: row;
        gap: 40px;
        padding: 132px 40px 0;
    }

    .page-hero-home .hero-copy {
        width: auto;
        max-width: 560px;
        flex: 1 1 0;
    }

    .page-hero-home .hero-copy h1 {
        width: 100%;
        max-width: 560px;
        font-size: clamp(36px, 4.4vw, 52px);
        line-height: 1.1;
    }

    .page-hero-home .hero-copy p {
        width: 100%;
        max-width: 620px;
    }

    .page-hero-home .hero-actions {
        margin-top: 32px;
    }

    .page-hero-home .hero-visual {
        display: flex;
        width: auto;
        height: auto;
        min-height: 0;
        flex: 1 1 0;
        align-self: flex-end;
        justify-content: flex-end;
    }

    .page-hero-home .hero-visual img {
        width: clamp(280px, 42vw, 520px);
        max-width: none;
        height: auto;
        object-position: center bottom;
    }

    .page-hero-home .hero-ticker-wrap {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 68px;
        margin-top: 32px;
        padding: 0 40px 40px;
    }

    .page-hero:not(.page-hero-home) {
        height: auto;
        min-height: 557px;
    }

    .page-hero:not(.page-hero-home) .hero-inner {
        display: flex;
        width: 100%;
        max-width: 1440px;
        height: auto;
        min-height: 557px;
        align-items: flex-end;
        flex-direction: row;
        gap: 0;
        padding: 150px 40px 0;
    }

    .page-hero:not(.page-hero-home) .hero-copy {
        width: 620px;
        max-width: 620px;
        flex: 0 0 620px;
        margin: 0 0 130px;
    }

    .page-hero:not(.page-hero-home) .hero-copy h1 {
        width: 100%;
        max-width: 620px;
        font-size: clamp(48px, 5.6vw, 64px);
        line-height: 1.24;
    }

    .page-hero:not(.page-hero-home) .hero-copy p {
        width: 100%;
        max-width: 620px;
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .page-hero:not(.page-hero-home) .hero-actions {
        align-items: flex-start;
        margin-top: 32px;
    }

    .page-hero:not(.page-hero-home) .hero-actions .button {
        width: auto;
        min-height: 50px;
        padding: 0 30px;
        font-size: 16px;
        font-weight: 700;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        position: relative;
        display: flex;
        width: auto;
        max-width: 720px;
        height: auto;
        min-height: 0;
        aspect-ratio: 720 / 412;
        flex: 1 1 0;
        align-self: flex-end;
        justify-content: flex-end;
        margin: 0;
    }

    .page-hero:not(.page-hero-home) .hero-visual img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        object-position: right top;
    }

    .stats-band {
        padding: 64px 40px;
    }

    .stats-inner {
        min-height: 155px;
        align-items: stretch;
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }

    .stats-inner > h2 {
        max-width: 640px;
        flex: 0 1 auto;
        margin-top: 24px;
    }

    .stats-grid {
        display: flex;
        width: auto;
        min-width: 632.7px;
        flex: 1 1 0;
        justify-content: space-between;
        gap: 24px;
    }

    .stat-card {
        width: 100%;
        max-width: 212px;
    }

    .about-section {
        height: auto;
        min-height: 0;
        padding: 80px 40px;
    }

    .about-grid {
        display: grid;
        height: auto;
        grid-template-columns: 1fr;
        align-items: center;
        gap: 48px;
    }

    .about-copy {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .about-copy h2 {
        width: 100%;
        max-width: 620px;
        font-size: clamp(44.8px, 5.3vw, 78.4px);
        font-weight: 800;
        line-height: 1.25;
    }

    .about-copy > p {
        width: 100%;
        max-width: 640px;
        margin-top: 36px;
        line-height: 1.7;
    }

    .about-lists {
        width: 100%;
        max-width: none;
        gap: 24px;
        margin: 48px 0 16px;
    }

    .about-lists > div {
        height: 316px;
        min-height: 316px;
        padding: 32px;
        border-radius: 28px;
    }

    .about-lists h3 {
        font-size: 24px;
    }

    .about-copy > .button {
        min-width: 218px;
        min-height: 74px;
        margin: 0;
        padding: 0 36px;
        font-size: 20px;
        font-weight: 700;
    }

    .about-visual {
        position: relative;
        inset: auto;
        order: initial;
        display: flex;
        width: 100%;
        max-width: 662px;
        height: 630px;
        justify-content: flex-start;
        margin: 0 auto;
        pointer-events: auto;
    }

    .about-ring {
        position: relative;
        inset: auto;
        width: 95.2%;
        height: 95.2%;
    }

    .help-topics,
    #faq,
    .help-support,
    .guidelines-standards,
    .competitions-guidelines,
    .competitions-workspace,
    .community-dashboard,
    .collaboration-workspace,
    .community-forum-workspace,
    .upload-guidelines,
    .upload-section,
    .explore-catalog {
        padding-right: 40px;
        padding-left: 40px;
    }

    .help-topics {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .help-topics .section-heading,
    #faq .section-heading,
    .help-support .section-heading {
        width: 100%;
        max-width: none;
    }

    .help-topics .section-heading h2,
    #faq .section-heading h2,
    .help-support .section-heading h2 {
        font-size: clamp(32px, 4vw, 48px);
        line-height: 1.25;
    }

    .help-topics .section-heading p,
    #faq .section-heading p,
    .help-support .section-heading p {
        max-width: 600px;
        margin: 16px auto 0;
        line-height: 1.6;
    }

    .topic-grid,
    .faq-layout,
    .support-grid {
        margin-top: 48px;
    }

    .topic-card {
        height: auto;
        min-height: 0;
        padding-bottom: 31px;
    }

    #faq {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px;
    }

    .faq-categories h3 {
        grid-column: auto;
        margin: 0 0 -4px;
        padding: 4px 8px 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .faq-categories button {
        min-height: 45px;
        padding: 12px 16px;
    }

    .faq-item > button {
        min-height: 98.8px;
        gap: 16px;
        padding: 20px 24px;
    }

    .faq-item small {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.12em;
    }

    .faq-item strong {
        font-size: 16px;
        line-height: 1.375;
    }

    .faq-item > button > svg {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .help-support {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .support-card,
    .support-card-accent {
        height: 271px;
        min-height: 271px;
    }

    .cta-wrap {
        padding: 64px 40px;
    }

    .cta-band {
        min-height: 0;
    }

    .cta-copy {
        width: 560px;
        max-width: 560px;
        padding: 56px 64px;
    }

    .cta-visual {
        width: 52%;
    }

    .site-footer {
        min-height: 0;
        padding-bottom: 48px;
    }

    .footer-inner {
        grid-template-columns: 300px 180px 180px minmax(0, 1fr);
        gap: 32px;
        width: calc(100% - 48px);
        padding: 48px 0 0;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand > p,
    .footer-social {
        margin: 0;
    }

    .footer-column {
        gap: 20px;
    }

    .footer-column h2 {
        margin: 0;
    }

    .footer-column.newsletter {
        gap: 0;
    }

    .footer-column.newsletter h2 {
        margin-bottom: 12px;
    }

    .footer-column.newsletter > p {
        margin: 0 0 20px;
    }

    .contact-list {
        margin-top: 32px;
    }

    .footer-bottom {
        width: calc(100% - 48px);
        min-height: 40.8px;
        margin-top: 40px;
        padding: 20px 0 0;
        font-size: 15px;
        line-height: 20px;
    }
}

/* Exact decorative wave shared by the hosted heroes and CTA. The artwork is
 * presentational, locally bundled, and never participates in layout sizing. */
.hero-artwork {
    position: relative;
    flex: 0 0 auto;
}

.page-hero:not(.page-hero-home) .hero-artwork {
    width: 100%;
    height: 100%;
    min-height: inherit;
    aspect-ratio: inherit;
}

.hero-wave,
.cta-wave {
    position: absolute;
    z-index: 4;
    display: block;
    pointer-events: none;
    background-image: url("/assets/images/wave.png");
    background-repeat: no-repeat;
}

.page-hero-home .hero-wave {
    bottom: 7%;
    left: 50%;
    width: 155%;
    aspect-ratio: 738 / 154;
    transform: translateX(-50%);
    background-position: center;
    background-size: contain;
}

.page-hero:not(.page-hero-home) .hero-wave {
    right: -7%;
    bottom: 0;
    width: 112%;
    aspect-ratio: 738 / 154;
    background-position: center;
    background-size: contain;
}

.cta-wave {
    right: -8%;
    bottom: 0;
    width: 88%;
    height: 40%;
    background-position: center;
    background-size: 100% 100%;
}

@media (max-width: 767px) {
    .page-hero-home .hero-artwork {
        width: 280px;
        height: 258.5px;
    }

    .page-hero-home .hero-figure {
        width: 280px;
        max-width: none;
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 1439.98px) {
    .page-hero-home .hero-artwork {
        width: clamp(280px, 42vw, 520px);
        height: auto;
    }

    .page-hero-home .hero-figure {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
    }
}

@media (min-width: 1024px) and (max-width: 1439.98px) {
    .page-hero-home .hero-wave {
        left: -28%;
        width: 150%;
        transform: none;
    }
}

@media (min-width: 1440px) {
    .page-hero-home .hero-artwork {
        width: 541.6px;
        height: 500px;
    }

    .page-hero-home .hero-figure {
        width: 541.6px;
        max-width: none;
        height: 500px;
    }

    .page-hero-home .hero-wave {
        bottom: -32px;
        left: -156.4px;
        width: 891px;
        transform: none;
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        top: 145px;
        right: 0;
        width: 720px;
        height: 412px;
    }

    .page-hero:not(.page-hero-home) .hero-figure {
        position: absolute;
        top: 0;
        right: 20px;
        width: 680px;
        max-width: none;
        height: auto;
    }

    .page-hero:not(.page-hero-home) .hero-wave {
        right: -42px;
        bottom: 0;
        width: 760px;
        height: 190px;
        aspect-ratio: auto;
        background-size: 100% 100%;
    }
}

/* At the exact 1440px design canvas the hosted fixed artwork extends beneath
 * the scrollbar gutter. Shift only the clipped art—not the page—so the visible
 * composition matches without reproducing its horizontal-overflow defect. */
@media (min-width: 1440px) and (max-width: 1455.2px) {
    .page-hero-home .hero-artwork {
        transform: translateX(calc(1455.2px - 100vw));
    }

    .page-hero:not(.page-hero-home) .hero-visual {
        right: calc(100vw - 1455.2px);
    }
}

/* Route-specific type measures in the hosted composition. These two hero
 * headlines deliberately use different scales even though they share the
 * same artwork and shell. */
.page-hero.page-hero-explore .hero-copy,
.page-hero.page-hero-explore .hero-copy h1,
.page-hero.page-hero-explore .hero-copy p {
    width: 100%;
    max-width: 610px;
}

.page-hero.page-hero-explore .hero-copy h1 {
    font-size: clamp(48px, 5.9vw, 64px);
    line-height: 1.24;
}

.page-hero.page-hero-upload .hero-copy h1 {
    font-size: clamp(48px, 5.2vw, 64px);
    line-height: 1.24;
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    .page-hero.page-hero-explore .hero-copy {
        width: 610px;
        max-width: 610px;
        flex-basis: 610px;
    }

    .upload-guidelines > .section-heading h2 {
        font-size: clamp(36px, 4.2vw, 60px);
        line-height: 1;
    }

    .upload-guidelines .info-card {
        height: clamp(360px, calc(765px - 31.640625vw), 441px);
        min-height: clamp(360px, calc(765px - 31.640625vw), 441px);
    }

    .upload-section {
        min-height: 1065.8px;
    }

    .community-dashboard .dashboard-grid:not(.competition-info) > .dashboard-card {
        height: auto;
        min-height: clamp(303.6px, calc(449.04px - 11.3725vw), 332.6px);
    }

    .competitions-guidelines {
        padding-bottom: 16px;
    }

    .competitions-guidelines .dashboard-card {
        height: auto;
        min-height: clamp(344px, calc(870.65px - 41.1765vw), 449px);
    }

    .competitions-workspace {
        padding-top: 24px;
    }

    .community-forum-workspace .forum-dashboard > .dashboard-card {
        height: auto;
        min-height: clamp(251px, calc(347.6px - 7.5294vw), 270.5px);
    }
}

/* The Guidelines route uses the hosted content scale rather than the tighter
 * help-card typography. Its card height remains content-driven so localization
 * and user font settings can grow safely. */
.guidelines-standards {
    padding-bottom: 0;
}

.guidelines-standards > .section-heading h2 {
    font-size: clamp(38px, 4vw, 48px);
    line-height: 1.25;
}

.guidelines-standards > .section-heading {
    max-width: 1180px;
}

.guidelines-standards > .section-heading p {
    max-width: 640px;
    margin-top: 16px;
    line-height: 1.6;
}

.guidelines-standards .standard-card header {
    margin-bottom: 28px;
}

.guidelines-standards .standard-card h2,
.guidelines-standards .standard-card h3 {
    font-size: clamp(24px, 2.4vw, 28px);
}

.guidelines-standards .standard-card .check-list,
.guidelines-standards .standard-card .x-list {
    gap: 20px;
}

.guidelines-standards .standard-card .check-list li,
.guidelines-standards .standard-card .x-list li {
    display: flex;
    gap: 12px;
}

.guidelines-standards .standard-card li > svg {
    width: 24px;
    min-width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.guidelines-page .bullet-list-check {
    gap: 14px;
}

.guidelines-page .bullet-list-check li {
    min-height: 26px;
    line-height: 1.6;
}

.guidelines-page .bullet-list-check li::before {
    display: none;
}

.guidelines-page .legal-check-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
}

.guidelines-page .legal-check-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.participation-steps strong {
    line-height: 1.25;
}

.participation-steps small {
    margin-top: 4px;
    line-height: 1.375;
}

@media (min-width: 768px) {
    .guidelines-standards .standard-card .check-list li,
    .guidelines-standards .standard-card .x-list li {
        font-size: 16px;
    }
}

@media (min-width: 1280px) {
    .help-topics > .section-heading {
        max-width: 1200px;
    }

    #faq > .section-heading {
        max-width: 1360px;
    }

    .help-support > .section-heading {
        max-width: 1120px;
    }

    .help-topics > .section-heading h2,
    #faq > .section-heading h2,
    .help-support > .section-heading h2 {
        font-size: 48px;
        line-height: 1.25;
    }

    .help-topics > .section-heading p,
    #faq > .section-heading p,
    .help-support > .section-heading p {
        max-width: 600px;
        margin-top: 16px;
        line-height: 1.6;
    }

    .topic-grid,
    .faq-layout,
    .support-grid {
        margin-top: 48px;
    }

    .help-topics {
        padding-bottom: 0;
    }

    #faq {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .help-support {
        padding-top: 80px;
    }

    .faq-item > button {
        min-height: 98.8px;
        gap: 16px;
        padding: 20.4px 24px;
    }

    .guidelines-standards .standard-card {
        min-height: 553.8px;
    }

    .competitions-guidelines .dashboard-card {
        height: auto;
        min-height: 324.1px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .guidelines-standards {
        padding-top: 64px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .guidelines-standards > .section-heading h2 {
        font-size: 32px;
        line-height: 1.25;
    }

    .guidelines-standards .standard-card .check-list,
    .guidelines-standards .standard-card .x-list {
        gap: 19.88px;
    }

    .competitions-guidelines {
        padding-top: 56px;
    }

    .competitions-guidelines .dashboard-card:nth-child(1),
    .competitions-guidelines .dashboard-card:nth-child(2) {
        height: auto;
        min-height: 324.1px;
    }

    .competitions-guidelines .dashboard-card:nth-child(3),
    .competitions-guidelines .dashboard-card:nth-child(4) {
        height: auto;
        min-height: 268px;
    }
}

@media (max-width: 767px) and (max-height: 560px) {
    .page-hero.page-hero-explore .hero-copy h1,
    .page-hero.page-hero-upload .hero-copy h1 {
        font-size: 40px;
    }
}

/* Final phone precedence: the hosted Guidelines cards keep their generous
 * reading measure, while Competition filters wrap beneath an uncompressed
 * heading instead of squeezing it into a vertical word stack. */
@media (max-width: 767px) {
    .guidelines-standards > .section-heading h2 {
        font-size: 32px;
        line-height: 1.25;
    }

    .guidelines-standards .standard-card h2,
    .guidelines-standards .standard-card h3 {
        font-size: 22.4px;
        line-height: 1.25;
    }

    .active-competitions-panel > .panel-heading {
        align-items: flex-start;
    }

    .active-competitions-panel > .panel-heading h2 {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .active-competitions-panel > .panel-heading .competition-status-filter {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .active-competitions-panel > .panel-heading {
        flex-wrap: wrap;
    }
}

/* Hosted Upload guideline rhythm and the 768–1023px composition. */
.upload-guidelines .info-card h3 {
    margin: 0;
    font-size: clamp(26.4px, 2.2vw, 36px);
    line-height: 1.25;
}

.upload-guidelines .bullet-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0 0;
}

.upload-guidelines .bullet-list li {
    display: flex;
    min-height: 26px;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
}

.upload-guidelines .bullet-list li::before {
    display: none;
}

.upload-guidelines .upload-check-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.upload-guidelines .upload-check-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

@media (min-width: 768px) {
    .upload-guidelines .bullet-list li {
        font-size: 17px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .explore-catalog {
        padding-top: 64px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .page-hero.page-hero-upload .hero-copy,
    .page-hero.page-hero-upload .hero-copy h1 {
        width: 100%;
        max-width: 720px;
    }

    .page-hero.page-hero-upload .hero-copy p {
        width: 100%;
        max-width: 620px;
    }

    .upload-guidelines {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .upload-guidelines > .section-heading h2 {
        font-size: 36px;
        line-height: 1;
    }

    .upload-section {
        min-height: 1017.9px;
        padding: 48px 24px;
    }
}

/* --------------------------------------------------------------------------
 * Hosted-reference extensions for routes that are local to the full product.
 *
 * These selectors intentionally use semantic page-family hooks supplied by the
 * renderers. They extend the hosted visual grammar without coupling account,
 * discovery, and detail views to an unrelated hosted page implementation.
 * -------------------------------------------------------------------------- */

.local-discovery-page,
.local-detail-page,
.account-workspace-page {
    color: var(--foreground);
    background: var(--page-gradient) var(--background);
}

:is(.local-discovery-page, .local-detail-page, .account-workspace-page) .content-panel,
.route-state > :is(.loading-state, .route-error) {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

:is(.local-discovery-page, .local-detail-page, .account-workspace-page) :is(p, small, dt) {
    overflow-wrap: anywhere;
}

/* Shared API and empty states. */
:is(.local-discovery-page, .local-detail-page, .account-workspace-page) .empty-state {
    display: grid;
    min-height: 220px;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 32px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface-2) 64%, transparent);
    text-align: center;
}

:is(.local-discovery-page, .local-detail-page, .account-workspace-page, .route-state) .empty-state-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand);
}

:is(.local-discovery-page, .local-detail-page, .account-workspace-page) .empty-state h3 {
    margin: 4px 0 0;
    color: var(--foreground);
    font-size: 20px;
    line-height: 1.25;
}

:is(.local-discovery-page, .local-detail-page, .account-workspace-page) .empty-state p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.route-state {
    min-height: max(460px, calc(100svh - var(--header-height) - 220px));
    padding-top: 48px;
    padding-bottom: 64px;
    background: var(--page-gradient) var(--background);
}

.route-state > :is(.loading-state, .route-error) {
    width: min(100%, 600px);
    min-height: 300px;
    align-content: center;
    gap: 14px;
    padding: 44px 36px;
}

.route-state .loading-spinner {
    width: 38px;
    height: 38px;
    border-width: 3px;
    color: var(--brand);
}

.route-state .loading-state strong,
.route-state .route-error h1 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.route-state :is(.loading-state > span:last-child, .route-error p, .route-error small) {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.route-state .route-error .button {
    margin-top: 10px;
}

/* Discovery extensions: artists, genres, genre collections, and search. */
.local-discovery-page > .section-heading {
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.local-discovery-page > .section-heading h2 {
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.15;
}

.local-discovery-page > .section-heading p {
    max-width: 700px;
    margin-top: 16px;
    color: color-mix(in srgb, var(--foreground) 74%, transparent);
    font-size: 16px;
    line-height: 1.65;
}

.artist-owner-toolbar {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 20px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.artist-owner-toolbar > span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.local-discovery-page .discovery-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 230px;
    gap: 16px;
    width: 100%;
    margin: 20px 0 36px;
}

.local-discovery-page .discovery-toolbar .search-input {
    display: flex;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.local-discovery-page .discovery-toolbar .search-input > svg {
    flex: 0 0 auto;
    color: var(--brand);
}

.local-discovery-page .discovery-toolbar .select-field {
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
}

.local-discovery-page .discovery-toolbar .select-field :is(select, svg) {
    color: #fff;
}

.local-discovery-page .discovery-toolbar .select-field option {
    background: var(--surface);
    color: var(--foreground);
}

.local-discovery-page .artist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.local-discovery-page .artist-grid > .empty-state,
.local-discovery-page .genre-grid > .empty-state {
    grid-column: 1 / -1;
}

.local-discovery-page .artist-card {
    display: flex;
    min-width: 0;
    min-height: 330px;
    align-items: center;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.local-discovery-page .artist-card:hover {
    border-color: color-mix(in srgb, var(--brand) 66%, var(--line));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.local-discovery-page .artist-card > .avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 70%, white 8%);
    font-size: 18px;
}

.local-discovery-page .artist-card > div:nth-child(2) {
    margin: 18px 0 14px;
}

.local-discovery-page .artist-card h3 {
    margin: 0 0 6px;
    color: var(--foreground);
    font-size: 18px;
    line-height: 1.25;
}

.local-discovery-page .artist-card p,
.local-discovery-page .artist-card div > span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.local-discovery-page .artist-card div > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.local-discovery-page .artist-card .tag-list {
    justify-content: center;
    margin-bottom: 22px;
}

.local-discovery-page .artist-card .tag,
.search-discovery-page .suggestion-strip .tag {
    min-height: 30px;
    padding: 4px 12px;
    border: 0;
    background: var(--pill);
    color: var(--foreground);
    font-size: 12px;
}

.local-discovery-page .artist-card .card-actions {
    width: 100%;
    margin-top: auto;
}

.local-discovery-page .artist-card .button {
    width: 100%;
}

.local-discovery-page .genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.local-discovery-page .genre-card {
    position: relative;
    min-height: 240px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.local-discovery-page .genre-card:hover {
    border-color: var(--brand);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.local-discovery-page .genre-card > span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand);
}

.local-discovery-page .genre-card h2 {
    margin: 30px 0 8px;
    color: var(--foreground);
    font-size: 20px;
    line-height: 1.25;
}

.local-discovery-page .genre-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.local-discovery-page .genre-card > svg {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: var(--muted);
}

.collection-page > .section-toolbar {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.collection-page > .section-toolbar > span {
    color: var(--muted);
    font-size: 14px;
}

.search-discovery-page {
    padding-top: 56px;
    padding-bottom: 80px;
}

.search-discovery-page .local-discovery-heading {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: clamp(36px, 5vw, 56px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.13), transparent 31%), var(--upload-band);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.search-discovery-page .local-discovery-heading h1 {
    max-width: 820px;
    margin: 10px auto 26px;
    color: var(--foreground);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
}

.search-discovery-page .search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: min(100%, 840px);
    margin: 0 auto;
}

.search-discovery-page .search-page-form .search-input {
    display: flex;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.search-discovery-page .search-page-form .search-input > svg {
    color: var(--brand);
}

.search-discovery-page .search-page-form .button {
    min-height: 56px;
}

.search-discovery-page .suggestion-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.search-discovery-page .suggestion-strip > span {
    margin-right: 2px;
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
    font-size: 13px;
}

.search-discovery-page .local-discovery-results {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.search-discovery-page .discovery-result-panel {
    padding: 32px;
}

.search-discovery-page .discovery-result-panel > .panel-heading {
    margin-bottom: 24px;
}

.search-discovery-page .discovery-result-panel .panel-heading h2 {
    margin-top: 6px;
    color: var(--foreground);
    font-size: 26px;
    line-height: 1.2;
}

.search-discovery-page .discovery-result-panel :is(.song-grid, .artist-grid) {
    min-height: 0;
}

.search-discovery-page .search-discussions {
    display: grid;
    gap: 12px;
}

.search-discovery-page .search-result-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 76px;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.search-discovery-page .search-result-row:hover {
    border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
    transform: translateY(-1px);
}

.search-discovery-page .search-result-row > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand);
}

.search-discovery-page .search-result-row strong {
    display: block;
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.35;
}

.search-discovery-page .search-result-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

/* Public profile and media detail extensions. */
.local-detail-page > .back-link {
    min-height: 24px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.local-detail-page > .back-link:hover {
    color: var(--foreground);
}

.local-detail-page .content-panel {
    padding: 28px;
}

.local-detail-page .panel-heading h2,
.local-detail-page .content-panel > h2 {
    color: var(--foreground);
    font-size: 22px;
    line-height: 1.25;
}

.person-detail-page > .profile-hero,
.person-detail-page > .detail-grid,
.public-user-page > .content-panel {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.person-detail-page > .profile-hero {
    display: flex;
    min-height: 220px;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(circle at 90% 5%, rgba(255, 255, 255, 0.09), transparent 31%), var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.public-user-page > .profile-hero {
    margin-top: 0;
}

.person-detail-page > .profile-hero > .avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 72%, white 9%);
    font-size: 26px;
}

.person-detail-page .profile-main h1 {
    margin: 8px 0;
    color: var(--foreground);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.person-detail-page .profile-role {
    margin: 0;
    color: var(--brand);
    font-size: 16px;
    line-height: 1.5;
}

.person-detail-page .profile-location {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.person-detail-page .profile-actions {
    gap: 12px;
    margin-left: auto;
}

.local-detail-page .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
}

.local-detail-page :is(.detail-main, .detail-sidebar) {
    display: grid;
    min-width: 0;
    gap: 24px;
}

.local-detail-page .prose-card h2 {
    margin: 8px 0 16px;
    font-size: 28px;
}

.local-detail-page .prose-card p,
.local-detail-page .content-panel > p {
    margin: 0;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.local-detail-page .stacked-details {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.local-detail-page .stacked-details > div {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.local-detail-page .stacked-details :is(dt, dd) {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.local-detail-page .stacked-details dt {
    color: var(--muted);
}

.local-detail-page .stacked-details dd {
    color: var(--foreground);
    text-align: right;
}

.local-detail-page .compact-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: 0;
}

.local-detail-page .compact-song-grid > .empty-state {
    grid-column: 1 / -1;
}

.local-detail-page .compact-song-grid .song-card {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
}

.media-detail-page > .back-link,
.media-detail-page > .music-focus,
.media-detail-page > .detail-grid {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.media-detail-page > .music-focus {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.09), transparent 30%), var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.media-detail-page .music-cover {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.media-detail-page .music-info h1 {
    margin: 12px 0 8px;
    color: var(--foreground);
    font-size: clamp(38px, 4.5vw, 54px);
    font-weight: 800;
    line-height: 1.08;
}

.media-detail-page .artist-link {
    color: var(--brand);
    font-size: 17px;
    font-weight: 600;
}

.media-detail-page .music-info > p {
    max-width: 700px;
    margin: 18px 0 0;
    color: color-mix(in srgb, var(--foreground) 76%, transparent);
    font-size: 15px;
    line-height: 1.7;
}

.media-detail-page .music-info > .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.media-detail-page .music-info > .detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.media-detail-page .music-info > .detail-meta svg {
    color: var(--brand);
}

.media-detail-page .music-actions {
    gap: 12px;
    margin-top: 28px;
}

.media-detail-page .comment-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
}

.media-detail-page .comment-card {
    gap: 12px;
    padding: 18px 0;
}

.media-detail-page .comment-card p {
    color: color-mix(in srgb, var(--foreground) 78%, transparent);
    font-size: 14px;
    line-height: 1.65;
}

.results-page > .section-heading,
.results-page > .podium,
.results-page > .back-link {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.results-page > .section-heading {
    max-width: 760px;
    margin-top: 36px;
}

.results-page > .section-heading h1 {
    margin: 10px 0 12px;
    color: var(--foreground);
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.1;
}

.results-page > .section-heading p {
    color: var(--muted);
    font-size: 17px;
}

.results-page .podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 0;
}

.results-page .podium > .empty-state {
    grid-column: 1 / -1;
}

.results-page .podium-card {
    min-height: 0;
    padding: 36px 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.results-page .podium-card.place-1 {
    min-height: 0;
    border-color: rgba(244, 200, 74, 0.6);
}

.results-page .place-number {
    margin: 14px 0;
    color: var(--brand);
    font-size: 38px;
}

.results-page .podium-card h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 22px;
}

.results-page .podium-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.results-page .podium-card .play-button {
    position: static;
    margin: 22px auto 0;
    transform: none;
}

/* Authenticated account workspace. */
.account-workspace-page {
    min-height: max(620px, calc(100svh - var(--header-height)));
    padding: 56px max(24px, calc((100% - 1360px) / 2)) 80px;
}

.account-workspace-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.account-workspace-heading > div {
    max-width: 780px;
}

.account-workspace-heading h1 {
    margin: 8px 0 10px;
    color: var(--foreground);
    font-size: clamp(40px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
}

.account-workspace-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.account-workspace-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.account-workspace-nav {
    position: static;
    padding: 16px;
    border-radius: 24px;
}

.account-workspace-nav .account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 20px;
    border-bottom: 1px solid var(--line);
}

.account-workspace-nav .account-user .avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border: 0;
    background: color-mix(in srgb, var(--surface-2) 72%, white 8%);
    font-size: 16px;
}

.account-workspace-nav .account-user > div > strong,
.account-workspace-nav .account-user > div > span {
    display: block;
}

.account-workspace-nav .account-user strong {
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.4;
}

.account-workspace-nav .account-user div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.account-workspace-nav nav {
    display: grid;
    gap: 6px;
    padding: 16px 0;
}

.account-workspace-nav nav a,
.account-workspace-nav .account-logout {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: color 150ms ease, background-color 150ms ease;
}

.account-workspace-nav nav a:hover {
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
    color: var(--foreground);
}

.account-workspace-nav nav a.is-active {
    background: var(--brand);
    color: #fff;
}

.account-workspace-nav .account-logout {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: #ff7e7e;
}

.account-workspace-content {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.account-workspace-content > .content-panel,
.account-workspace-content .settings-form {
    padding: 32px;
}

.account-workspace-list {
    display: grid;
    gap: 16px;
}

.account-workspace-list > .empty-state {
    min-height: 320px;
    border-style: solid;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.account-workspace-page :is(.management-row, .notification-item) {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.account-workspace-page .management-row > img {
    width: 88px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.account-workspace-page .management-copy h2,
.account-workspace-page .notification-item h2 {
    margin: 7px 0 5px;
    color: var(--foreground);
    font-size: 18px;
    line-height: 1.3;
}

.account-workspace-page .management-copy p,
.account-workspace-page .notification-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.account-workspace-page .management-actions,
.account-workspace-page .notification-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.account-workspace-page .management-action {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    gap: 8px;
}

.account-workspace-page .management-action svg {
    flex: 0 0 auto;
}

.account-workspace-page .management-action-danger,
.account-workspace-page .management-action-danger:hover {
    border-color: rgba(255, 126, 126, 0.6);
    color: #ff7e7e;
}

.account-workspace-page .upload-relationship {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 9px;
    color: var(--muted);
}

.account-workspace-page .upload-relationship svg {
    flex: 0 0 auto;
    margin-top: 3px;
}

.account-workspace-page .upload-relationship.is-attached {
    color: color-mix(in srgb, var(--foreground) 78%, var(--muted));
}

.account-workspace-page .upload-relationship a {
    color: var(--foreground);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand) 55%, transparent);
    text-underline-offset: 3px;
}

.account-workspace-page .music-attachment-disclosure {
    max-width: 680px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.account-workspace-page .music-attachment-disclosure summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--foreground);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.account-workspace-page .music-attachment-disclosure summary::-webkit-details-marker {
    display: none;
}

.account-workspace-page .music-attachment-disclosure summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.account-workspace-page .music-attachment-toggle {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.account-workspace-page .music-attachment-disclosure[open] .music-attachment-toggle {
    font-size: 0;
}

.account-workspace-page .music-attachment-disclosure[open] .music-attachment-toggle::after {
    content: "Hide files";
    font-size: 12px;
}

.account-workspace-page .music-attachment-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
}

.account-workspace-page .music-attachment-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--background) 62%, transparent);
}

.account-workspace-page .music-attachment-icon,
.account-workspace-page .music-attachment-link {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--brand);
}

.account-workspace-page .music-attachment-icon {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
}

.account-workspace-page .music-attachment-link {
    border: 1px solid var(--line);
}

.account-workspace-page .music-attachment-copy {
    min-width: 0;
}

.account-workspace-page .music-attachment-copy strong,
.account-workspace-page .music-attachment-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-workspace-page .music-attachment-copy strong {
    color: var(--foreground);
    font-size: 13px;
}

.account-workspace-page .music-attachment-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.account-workspace-page .music-attachment-empty {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: #ffb6b6;
    font-size: 12px;
}

.account-workspace-page .upload-row,
.account-workspace-page .notification-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.account-workspace-page .file-type-icon,
.account-workspace-page .notification-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand);
}

.account-workspace-page .notification-item.is-unread {
    border-left: 4px solid var(--brand);
    background: color-mix(in srgb, var(--surface) 91%, var(--brand) 9%);
}

.account-workspace-page .notification-item div > span {
    color: var(--muted);
    font-size: 12px;
}

.account-workspace-page .settings-tabs {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    gap: 10px;
}

.account-workspace-page .settings-tabs button {
    min-height: 48px;
    padding: 0 22px;
    font-size: 14px;
}

.account-workspace-page .settings-form > header h2 {
    margin: 8px 0;
    color: var(--foreground);
    font-size: 28px;
    line-height: 1.2;
}

.account-workspace-page .settings-form > header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.account-workspace-page .settings-form > .button {
    justify-self: start;
}

.account-workspace-page .avatar-editor {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--line);
}

.account-workspace-page .avatar-editor small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.account-workspace-page .danger-zone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-color: rgba(255, 107, 107, 0.4);
}

.account-workspace-page .danger-zone > span {
    color: #ff7e7e;
}

.account-workspace-page .danger-zone h2,
.account-workspace-page .upload-security h2 {
    margin: 0 0 6px;
    color: var(--foreground);
    font-size: 20px;
}

.account-workspace-page .danger-zone p,
.account-workspace-page .upload-security p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.account-workspace-page .upload-security {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.account-workspace-page .upload-security > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: color-mix(in srgb, #38d996 15%, transparent);
    color: #38d996;
}

/* Form controls used by account workspaces and extension-route dialogs. */
:is(.account-workspace-page, .modal) .form-stack {
    gap: 18px;
}

:is(.account-workspace-page, .modal) .field {
    gap: 8px;
}

:is(.account-workspace-page, .modal) .field > span {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

:is(.account-workspace-page, .modal) .field :is(input, textarea, select) {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    color: var(--foreground);
    font-size: 15px;
    line-height: 1.5;
}

:is(.account-workspace-page, .modal) .field textarea {
    min-height: 116px;
}

:is(.account-workspace-page, .modal) .field :is(input, textarea, select):focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* Auth-journey extension. Login keeps its existing reference composition while
 * sibling routes receive the same typography, field scale, and surface rhythm. */
body.auth-page {
    min-height: 100svh;
    background: var(--page-gradient) var(--background);
}

.auth-layout,
.auth-visual,
.auth-panel {
    min-height: 100svh;
}

.auth-layout {
    background: var(--page-gradient) var(--background);
}

.auth-panel {
    min-width: 0;
    padding: 0;
    background: color-mix(in srgb, var(--background) 90%, var(--surface) 10%);
}

.auth-panel-scroll {
    display: flex;
    width: 100%;
    max-height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(32px, 6vh, 58px) 28px;
    scrollbar-gutter: stable;
}

.auth-panel-inner {
    width: min(100%, 480px);
    margin: auto;
}

.auth-layout:not(.auth-view-login) .auth-panel-inner-form {
    width: min(100%, 500px);
}

.auth-layout:not(.auth-view-login) .auth-heading {
    margin: 18px 0 28px;
}

.auth-layout:not(.auth-view-login) .auth-heading h1,
.auth-layout-status .auth-status h1 {
    margin: 10px 0 12px;
    color: var(--foreground);
    font-size: clamp(34px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.12;
}

.auth-layout:not(.auth-view-login) .auth-heading p,
.auth-layout-status .auth-status > p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-layout:not(.auth-view-login) .auth-form {
    gap: 18px;
}

.auth-layout:not(.auth-view-login) .field {
    gap: 8px;
}

.auth-layout:not(.auth-view-login) .field > span {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

.auth-layout:not(.auth-view-login) :is(.input-with-icon, .password-field) {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
}

.auth-layout:not(.auth-view-login) :is(.input-with-icon, .password-field):focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.auth-layout:not(.auth-view-login) :is(.input-with-icon, .password-field) input {
    min-height: 50px;
    color: var(--foreground);
    font-size: 15px;
}

.auth-layout:not(.auth-view-login) .auth-form > .button {
    min-height: 52px;
}

.auth-layout:not(.auth-view-login) :is(.auth-help-note, .auth-token-note) {
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 68%, transparent);
    color: #7eb7ff;
}

.auth-layout:not(.auth-view-login) .auth-help-note p,
.auth-layout:not(.auth-view-login) .auth-token-note {
    font-size: 13px;
    line-height: 1.6;
}

.auth-layout:not(.auth-view-login) :is(.consent-row, .auth-options, .auth-switch) {
    font-size: 13px;
    line-height: 1.55;
}

.auth-layout:not(.auth-view-login) .password-strength {
    gap: 6px;
}

.auth-layout:not(.auth-view-login) .password-strength > span {
    height: 5px;
}

.auth-layout:not(.auth-view-login) .password-strength small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.auth-layout:not(.auth-view-login) .form-alert {
    gap: 10px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-layout-status .auth-panel-inner {
    width: min(100%, 560px);
}

.auth-layout-status .auth-status {
    padding: 48px 40px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.auth-layout-status .auth-status-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
}

.auth-layout-status .auth-status-actions {
    gap: 12px;
    margin-top: 28px;
}

.auth-layout-status .auth-status-actions .button {
    min-height: 52px;
}

.auth-layout-status .auth-status > small {
    max-width: 440px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Dialogs share the focused-form surface, and remain usable at every height. */
.modal-backdrop {
    overflow-y: auto;
    padding: 20px;
}

.modal {
    width: min(100%, 560px);
    max-height: calc(100svh - 40px);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.modal-search {
    width: min(100%, 760px);
}

.modal-menu {
    width: min(100%, 380px);
}

.modal-header {
    gap: 18px;
    padding: 24px 28px 20px;
}

.modal-header h2 {
    margin: 7px 0 0;
    color: var(--foreground);
    font-size: 26px;
    line-height: 1.2;
}

.modal-body {
    padding: 28px;
}

.modal-copy {
    color: color-mix(in srgb, var(--foreground) 78%, transparent);
    font-size: 15px;
    line-height: 1.65;
}

.modal-actions {
    gap: 12px;
    margin-top: 14px;
}

.profile-menu {
    gap: 7px;
}

.profile-menu-link {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--foreground);
    font-size: 14px;
}

@media (min-width: 1024px) and (min-height: 720px) {
    .account-workspace-nav {
        position: sticky;
        top: 24px;
        max-height: calc(100svh - 48px);
        overflow-y: auto;
    }

    .local-detail-page .detail-sidebar {
        position: sticky;
        top: 24px;
        max-height: calc(100svh - 48px);
        overflow-y: auto;
    }
}

@media (max-width: 1023px) {
    .local-discovery-page .artist-grid,
    .local-discovery-page .genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .local-detail-page .detail-grid,
    .account-workspace-layout {
        grid-template-columns: 1fr;
    }

    .account-workspace-nav {
        width: 100%;
    }

    .account-workspace-nav nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .account-workspace-nav nav a {
        justify-content: center;
        text-align: center;
    }

    .account-workspace-nav .account-logout {
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: 100svh;
    }

    .auth-visual {
        min-height: 230px;
        height: 230px;
        padding: 28px;
    }

    .auth-choir {
        right: -5%;
        width: 58%;
        height: 86%;
        opacity: 0.42;
    }

    .auth-panel {
        min-height: calc(100svh - 230px);
    }

    .auth-panel-scroll {
        max-height: none;
        overflow: visible;
        padding-top: 44px;
        padding-bottom: 52px;
    }
}

@media (max-width: 767px) {
    .local-discovery-page,
    .local-detail-page,
    .account-workspace-page,
    .route-state {
        padding-right: 24px;
        padding-left: 24px;
    }

    .local-discovery-page,
    .local-detail-page {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .local-discovery-page > .section-heading h2 {
        font-size: 34px;
    }

    .artist-owner-toolbar,
    .collection-page > .section-toolbar,
    .account-workspace-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .artist-owner-toolbar .button,
    .account-workspace-heading > .button {
        width: 100%;
    }

    .local-discovery-page .discovery-toolbar,
    .local-discovery-page .artist-grid,
    .local-discovery-page .genre-grid,
    .search-discovery-page .search-page-form,
    .results-page .podium {
        grid-template-columns: 1fr;
    }

    .local-discovery-page .artist-card,
    .local-discovery-page .genre-card {
        min-height: 0;
    }

    .collection-page > .section-toolbar {
        min-height: 0;
    }

    .search-discovery-page {
        padding-top: 36px;
    }

    .search-discovery-page .local-discovery-heading {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .search-discovery-page .local-discovery-heading h1 {
        font-size: 36px;
    }

    .search-discovery-page .search-page-form .button {
        width: 100%;
    }

    .search-discovery-page .discovery-result-panel,
    .local-detail-page .content-panel,
    .person-detail-page > .profile-hero,
    .media-detail-page > .music-focus,
    .account-workspace-content > .content-panel,
    .account-workspace-content .settings-form {
        padding: 22px;
    }

    .search-discovery-page .search-result-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        padding-right: 14px;
        padding-left: 14px;
    }

    .search-discovery-page .search-result-row > span {
        width: 42px;
        height: 42px;
    }

    .person-detail-page > .profile-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .person-detail-page .profile-actions {
        width: 100%;
        margin-left: 0;
    }

    .person-detail-page .profile-actions .button {
        flex: 1 1 auto;
    }

    .local-detail-page .compact-song-grid,
    .media-detail-page > .music-focus {
        grid-template-columns: 1fr;
    }

    .media-detail-page .music-cover {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .media-detail-page .music-info h1 {
        font-size: 38px;
    }

    .media-detail-page .music-actions {
        align-items: stretch;
    }

    .media-detail-page .music-actions .button {
        flex: 1 1 100%;
    }

    .media-detail-page .comment-composer {
        grid-template-columns: 1fr;
    }

    .media-detail-page .comment-composer > .avatar {
        display: none;
    }

    .media-detail-page .comment-composer .button {
        width: 100%;
    }

    .results-page .podium-card.place-1,
    .results-page .podium-card.place-2,
    .results-page .podium-card.place-3 {
        order: initial;
    }

    .account-workspace-page {
        min-height: 0;
        padding-top: 44px;
        padding-bottom: 56px;
    }

    .account-workspace-heading h1 {
        font-size: 38px;
    }

    .account-workspace-nav nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-workspace-page :is(.management-row, .notification-item),
    .account-workspace-page .upload-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .account-workspace-page .management-row > img {
        width: 64px;
        height: 58px;
    }

    .account-workspace-page :is(.file-type-icon, .notification-icon) {
        width: 52px;
        height: 52px;
    }

    .account-workspace-page :is(.management-actions, .notification-actions) {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .account-workspace-page .management-action {
        width: 48px;
        min-width: 48px;
        height: 48px;
        flex: 0 0 48px;
        padding: 0;
    }

    .account-workspace-page .management-action-label {
        display: none;
    }

    .account-workspace-page .danger-zone {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-workspace-page .danger-zone .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .auth-visual {
        min-height: 190px;
        height: 190px;
        padding: 22px 24px;
    }

    .auth-brand img {
        width: 132px;
    }

    .auth-choir {
        right: -18%;
        width: 78%;
        height: 80%;
    }

    .auth-panel {
        min-height: calc(100svh - 190px);
    }

    .auth-panel-scroll {
        padding: 36px 24px 44px;
    }

    .auth-layout:not(.auth-view-login) .auth-heading h1,
    .auth-layout-status .auth-status h1 {
        font-size: 32px;
    }

    .auth-layout-status .auth-status {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .auth-layout-status .auth-status-actions {
        width: 100%;
        flex-direction: column;
    }

    .auth-layout-status .auth-status-actions .button {
        width: 100%;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .modal {
        max-height: calc(100svh - 20px);
        border-radius: 24px 24px 18px 18px;
    }

    .modal-header,
    .modal-body {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 420px) {
    .local-discovery-page,
    .local-detail-page,
    .account-workspace-page,
    .route-state {
        padding-right: 20px;
        padding-left: 20px;
    }

    .search-discovery-page .local-discovery-heading {
        padding-right: 18px;
        padding-left: 18px;
    }

    .search-discovery-page .local-discovery-heading h1 {
        font-size: 32px;
    }

    .search-discovery-page .search-result-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .search-discovery-page .search-result-row > svg:last-child {
        display: none;
    }

    .search-discovery-page .search-result-row > span {
        width: 38px;
        height: 38px;
    }

    .account-workspace-nav nav,
    .account-workspace-page .settings-tabs {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .account-workspace-nav nav a {
        justify-content: flex-start;
        text-align: left;
    }

    .account-workspace-page .settings-tabs button {
        width: 100%;
    }

    .account-workspace-page :is(.management-row, .notification-item),
    .account-workspace-page .upload-row {
        grid-template-columns: 1fr;
    }

    .account-workspace-page :is(.management-actions, .notification-actions) {
        grid-column: auto;
    }

    .account-workspace-page .management-actions .button:not(.management-action) {
        flex: 1 1 auto;
    }

    .account-workspace-page .avatar-editor,
    .account-workspace-page .upload-security {
        align-items: flex-start;
        flex-direction: column;
    }

    .person-detail-page > .profile-hero > .avatar {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
        font-size: 22px;
    }

    .person-detail-page .profile-main h1,
    .media-detail-page .music-info h1,
    .account-workspace-heading h1 {
        font-size: 34px;
    }

    .local-detail-page .stacked-details > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .local-detail-page .stacked-details dd {
        text-align: left;
    }
}

@media (max-height: 620px) {
    .route-state {
        min-height: 360px;
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .account-workspace-page {
        min-height: 0;
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .search-discovery-page {
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

@media (min-width: 981px) and (max-height: 620px) {
    .auth-panel-scroll {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .auth-choir {
        height: 54%;
    }

    .auth-layout-status .auth-status {
        padding: 30px 34px;
    }

    .auth-layout-status .auth-status-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 16px;
    }

    .auth-layout-status .auth-status h1 {
        font-size: 32px;
    }
}

@media (max-width: 980px) and (max-height: 620px) {
    .auth-visual {
        min-height: 92px;
        height: 92px;
        padding: 18px 24px;
    }

    .auth-choir {
        display: none;
    }

    .auth-panel {
        min-height: calc(100svh - 92px);
    }

    .auth-panel-scroll {
        padding-top: 26px;
        padding-bottom: 34px;
    }
}

@media (min-width: 768px) and (min-height: 621px) {
    .local-detail-page :is(.collaborator-profile-card, .competition-detail-card, .discussion-detail-card) {
        padding: 36px;
    }

    .local-detail-page .project-detail-card {
        padding: 40px;
    }

    .local-detail-page .discussion-detail-card {
        border-radius: 28px;
    }
}

:root[data-theme="light"] .search-discovery-page .local-discovery-heading {
    background: radial-gradient(circle at 78% 18%, rgba(52, 108, 186, 0.16), transparent 31%),
        linear-gradient(90deg, #e7eef9 0%, #dbe7f6 52%, #e7eef9 100%);
}

/* Every authentication route and state uses this shared canonical treatment. */
.auth-layout-primary .auth-panel-inner-form {
    width: min(100%, 500px);
}

.auth-layout-primary.auth-layout-status .auth-panel-inner-status {
    width: min(100%, 500px);
}

.auth-layout-primary.auth-layout-status .auth-status {
    align-items: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.auth-layout-primary.auth-layout-status .auth-status-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
}

.auth-layout-primary.auth-layout-status .auth-status-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.auth-layout-primary.auth-layout-status .auth-status-actions .button {
    width: 100%;
}

.auth-layout-primary.auth-layout-status .auth-status > small {
    max-width: none;
}

.auth-layout-primary .auth-heading {
    margin: 18px 0 28px;
}

.auth-layout-primary .auth-heading h1 {
    margin: 10px 0 12px;
    color: var(--foreground);
    font-size: clamp(34px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.12;
}

.auth-layout-primary .auth-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-layout-primary .auth-form {
    gap: 18px;
}

.auth-layout-primary .field {
    gap: 8px;
}

.auth-layout-primary .field > span {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

.auth-layout-primary :is(.input-with-icon, .password-field) {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    transition: border-color 150ms ease;
}

.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field):focus-within {
    border-color: var(--brand);
    box-shadow: none;
}

.auth-layout-primary :is(.input-with-icon, .password-field) > input {
    min-height: 50px;
    color: var(--foreground);
    font-size: 15px;
}

.auth-layout-primary :is(.input-with-icon, .password-field) > input:focus,
.auth-layout-primary :is(.input-with-icon, .password-field) > input:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
}

.auth-layout-primary :is(.input-with-icon, .password-field) > svg {
    flex: 0 0 auto;
    color: var(--muted);
}

.auth-layout-primary .auth-form > .button {
    min-height: 52px;
}

.auth-layout-visual-only .auth-visual {
    background: #05070b;
}

.auth-layout-visual-only .auth-brand {
    z-index: 2;
}

.auth-layout-visual-only .auth-choir {
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.82;
}

@media (max-width: 980px) {
    .auth-layout-visual-only .auth-visual {
        min-height: 220px;
        height: 220px;
        padding: 24px 28px;
    }

    .auth-layout-visual-only .auth-choir {
        object-position: center 44%;
        opacity: 0.7;
    }

    .auth-layout-visual-only .auth-panel {
        min-height: calc(100svh - 220px);
    }
}

@media (max-width: 767px) {
    .auth-layout-visual-only .auth-visual {
        min-height: 180px;
        height: 180px;
        padding: 22px 24px;
    }

    .auth-layout-visual-only .auth-brand img {
        width: 124px;
    }

    .auth-layout-visual-only .auth-panel {
        min-height: calc(100svh - 180px);
    }

    .auth-layout-primary .auth-panel-scroll {
        padding: 34px 22px 42px;
    }

    .auth-layout-primary .auth-heading h1 {
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .auth-layout-primary .auth-panel-scroll {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-layout-primary .auth-heading {
        margin-bottom: 24px;
    }

    .auth-layout-primary .auth-heading h1 {
        font-size: 30px;
    }
}

@media (min-width: 981px) and (max-height: 620px) {
    .auth-layout-primary .auth-panel-scroll {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .auth-layout-primary .auth-heading {
        margin-top: 12px;
        margin-bottom: 18px;
    }

    .auth-layout-primary .auth-heading h1 {
        margin-top: 7px;
        margin-bottom: 8px;
        font-size: 32px;
    }

    .auth-layout-primary .auth-heading p {
        font-size: 13px;
        line-height: 1.5;
    }

    .auth-layout-primary .auth-form {
        gap: 14px;
    }

    .auth-layout-primary :is(.input-with-icon, .password-field) {
        min-height: 48px;
    }

    .auth-layout-primary :is(.input-with-icon, .password-field) > input {
        min-height: 46px;
    }

    .auth-layout-primary .auth-form > .button {
        min-height: 48px;
    }
}

@media (max-width: 980px) and (max-height: 620px) {
    .auth-layout-visual-only .auth-visual {
        min-height: 92px;
        height: 92px;
        padding: 18px 24px;
    }

    .auth-layout-visual-only .auth-brand img {
        width: 116px;
    }

    .auth-layout-visual-only .auth-choir {
        display: block;
        object-position: center 52%;
        opacity: 0.56;
    }

    .auth-layout-visual-only .auth-panel {
        min-height: calc(100svh - 92px);
    }

    .auth-layout-primary .auth-panel-scroll {
        padding-top: 26px;
        padding-bottom: 34px;
    }
}

/* Keep browser-supplied values visually inside the canonical auth field.
 * Chromium/WebKit paint autofill on the inner input, so an inset field-color
 * layer prevents the rectangular autofill patch from competing with the
 * wrapper's rounded surface. */
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:autofill,
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:autofill:hover,
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:autofill:focus {
    color: var(--foreground);
    caret-color: var(--foreground);
    box-shadow: 0 0 0 1000px var(--field) inset;
}

.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:-webkit-autofill,
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:-webkit-autofill:hover,
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:-webkit-autofill:focus,
.auth-layout.auth-layout-primary :is(.input-with-icon, .password-field) > input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--foreground);
    caret-color: var(--foreground);
    -webkit-box-shadow: 0 0 0 1000px var(--field) inset;
    box-shadow: 0 0 0 1000px var(--field) inset;
}

/* Native fallback while the shared select component is loading. Browser-owned
 * popup chrome cannot be restyled consistently, but the closed control must
 * still use the active theme and the MuzikiHub focus treatment. */
:where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native) {
    color-scheme: dark;
}

:root[data-theme="light"] :where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native) {
    color-scheme: light;
}

:where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native) :is(option, optgroup) {
    background: var(--surface);
    color: var(--foreground);
}

:where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native):focus-visible {
    outline: 0;
}

:where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native):not(:where(.field select, .select-field select)):focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

:where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native):disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@supports selector(select:user-invalid) {
    .field :where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native):user-invalid {
        border-color: var(--red, #ff6b6b);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--red, #ff6b6b) 18%, transparent);
    }
}

/* Shared, progressively enhanced select/listbox. The native select remains the
 * form and state value owner while the visible popup follows MuzikiHub's UI. */
.select-field.is-custom-select,
.field.is-custom-select,
.auto-select-field.is-custom-select {
    position: relative;
    overflow: visible;
}

.auto-select-field.is-custom-select {
    display: inline-grid;
    min-width: 0;
    max-width: 100%;
    color: var(--text);
    vertical-align: middle;
}

.select-field.is-custom-select {
    --custom-select-inline-padding: 16px;
    padding: 0;
    isolation: isolate;
}

.explore-catalog .select-field.is-custom-select {
    --custom-select-inline-padding: 24px;
}

.local-discovery-page .discovery-toolbar .select-field.is-custom-select {
    --custom-select-inline-padding: 20px;
}

.collaboration-workspace .collaborator-filters .select-field.is-custom-select {
    --custom-select-inline-padding: 18px;
}

.custom-select-label {
    cursor: pointer;
}

:is(.field, .auto-select-field).is-custom-select > .custom-select-label {
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

:is(.account-workspace-page, .modal) :is(.field, .auto-select-field).is-custom-select > .custom-select-label {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

.select-field.is-custom-select > svg,
.custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

.select-field.is-custom-select > svg {
    display: none;
}

.custom-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    text-align: left;
}

.select-field.is-custom-select .custom-select-trigger {
    height: 100%;
    min-height: inherit;
    padding: 0 var(--custom-select-inline-padding);
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
}

.explore-catalog .select-field.is-custom-select .custom-select-trigger {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.local-discovery-page .discovery-toolbar .select-field.is-custom-select .custom-select-trigger {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.collaboration-workspace .collaborator-filters .select-field.is-custom-select .custom-select-trigger {
    font-size: 14px;
}

.community-forum-workspace .forum-sort.is-custom-select .custom-select-trigger {
    font-size: 16px;
}

:is(.field, .auto-select-field).is-custom-select .custom-select-trigger {
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 12px;
}

:is(.account-workspace-page, .modal) :is(.field, .auto-select-field).is-custom-select .custom-select-trigger {
    min-height: 52px;
    padding: 12px 16px;
    border-color: var(--line);
    border-radius: 14px;
    background: var(--field);
    color: var(--foreground);
    font-size: 15px;
    line-height: 1.5;
}

.custom-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-chevron {
    display: inline-flex;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 160ms ease;
}

.custom-select-chevron svg {
    width: 16px;
    height: 16px;
}

.is-custom-select.is-open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-trigger:focus-visible,
.custom-select-option:focus-visible {
    outline: 0;
}

.select-field.is-custom-select:focus-within,
.select-field.is-custom-select.is-open {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 5px var(--brand);
}

:is(.field, .auto-select-field).is-custom-select .custom-select-trigger:focus-visible,
:is(.field, .auto-select-field).is-custom-select.is-open .custom-select-trigger {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

:is(.field, .auto-select-field).is-custom-select.is-invalid .custom-select-trigger {
    border-color: var(--red, #ff6b6b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red, #ff6b6b) 18%, transparent);
}

.custom-select-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.is-custom-select.is-open {
    z-index: 950;
}

.custom-select-menu {
    position: fixed;
    z-index: 2147483000;
    inset: auto;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 96%, var(--background) 4%);
    box-shadow: var(--shadow);
    color: var(--foreground);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    backdrop-filter: blur(18px);
}

.custom-select-menu[popover] {
    inset: auto;
    margin: 0;
}

.custom-select-menu[hidden] {
    display: none;
}

.custom-select-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 9px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.custom-select-option:not([aria-disabled="true"]):hover,
.custom-select-option.is-active {
    background: color-mix(in srgb, var(--foreground) 8%, transparent);
}

.custom-select-option.is-selected {
    background: color-mix(in srgb, var(--brand) 15%, transparent);
}

.custom-select-option.is-selected:is(:hover, .is-active) {
    background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.custom-select-option[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
}

.custom-select-option-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.custom-select-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    opacity: 0;
}

.custom-select-option.is-selected .custom-select-check {
    opacity: 1;
}

@media (max-width: 480px) {
    .custom-select-menu {
        max-width: calc(100vw - 24px);
        padding: 6px;
        border-radius: 16px;
    }

    .custom-select-option {
        min-height: 46px;
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-select-chevron {
        transition: none;
    }
}

@media (forced-colors: active) {
    :where(select:not([multiple]):not([size]), select:not([multiple])[size="1"]):not(.custom-select-native):focus-visible,
    .custom-select-trigger:focus-visible,
    .is-custom-select.is-open .custom-select-trigger {
        outline: 2px solid Highlight;
        outline-offset: 2px;
        box-shadow: none;
    }

    .custom-select-option.is-active {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}
