:root {
    --bg: #f7f7f4;
    --surface: #ffffff;
    --surface-2: #f0efeb;
    --ink: #151515;
    --ink-dark: #151515;
    --muted: #69717d;
    --muted-dark: #69717d;
    --line: rgba(17, 24, 39, 0.12);
    --line-dark: #ddd6ca;
    --accent: #111827;
    --accent-ink: #ffffff;
    --accent-2: #69717d;
    --danger: #c83d3d;
    --success: #2f8f5b;
    --shadow: 0 14px 36px rgba(34, 28, 18, 0.12);
    --radius: 8px;
    --container: 1180px;
    --page-gutter: clamp(18px, 4vw, 54px);
    --header-bg: rgba(255, 255, 255, 0.88);
    --header-line: rgba(17, 24, 39, 0.12);
    --nav-muted: rgba(17, 24, 39, 0.68);
    --nav-ink: #111827;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #111827;
    --footer-ink: #f9fafb;
    --field-bg: #ffffff;
    --field-ink: #151515;
    --site-font: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
}

body.theme-carbon {
    --bg: #07090b;
    --surface: #11161b;
    --surface-2: #181f27;
    --ink: #f8fbff;
    --ink-dark: #f8fbff;
    --muted: #9ca8b3;
    --muted-dark: #9ca8b3;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(255, 255, 255, 0.14);
    --accent: #e8e2d6;
    --accent-ink: #101010;
    --accent-2: #a6b0bd;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(7, 9, 11, 0.88);
    --header-line: rgba(255, 255, 255, 0.14);
    --nav-muted: rgba(255, 255, 255, 0.76);
    --nav-ink: #ffffff;
    --menu-bg: rgba(7, 9, 11, 0.98);
    --footer-bg: #050607;
    --footer-ink: #f8fbff;
    --field-bg: #0d1116;
    --field-ink: #f8fbff;
}

body.theme-mono {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --ink: #0a0a0a;
    --ink-dark: #0a0a0a;
    --muted: #6b7280;
    --muted-dark: #6b7280;
    --line: rgba(10, 10, 10, 0.12);
    --line-dark: #d1d5db;
    --accent: #0a0a0a;
    --accent-ink: #ffffff;
    --accent-2: #525252;
    --shadow: 0 10px 26px rgba(10, 10, 10, 0.08);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-line: rgba(10, 10, 10, 0.12);
    --nav-muted: rgba(10, 10, 10, 0.68);
    --nav-ink: #0a0a0a;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #0a0a0a;
    --footer-ink: #ffffff;
    --field-bg: #ffffff;
    --field-ink: #0a0a0a;
}

body.theme-studio {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eaf0f7;
    --ink: #172033;
    --ink-dark: #172033;
    --muted: #627087;
    --muted-dark: #627087;
    --line: rgba(23, 32, 51, 0.12);
    --line-dark: #d7dfeb;
    --accent: #1f4b7a;
    --accent-ink: #ffffff;
    --accent-2: #2f6f9f;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-line: rgba(23, 32, 51, 0.12);
    --nav-muted: rgba(23, 32, 51, 0.7);
    --nav-ink: #172033;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #172033;
    --footer-ink: #f5f7fb;
    --field-bg: #ffffff;
    --field-ink: #172033;
}

body.theme-warm {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f1eee8;
    --ink: #1d1a16;
    --ink-dark: #1d1a16;
    --muted: #716a60;
    --muted-dark: #716a60;
    --line: rgba(29, 26, 22, 0.12);
    --line-dark: #ded8ce;
    --accent: #8a5a2e;
    --accent-ink: #ffffff;
    --accent-2: #b0743d;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-line: rgba(29, 26, 22, 0.12);
    --nav-muted: rgba(29, 26, 22, 0.7);
    --nav-ink: #1d1a16;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #1d1a16;
    --footer-ink: #fbfaf7;
    --field-bg: #ffffff;
    --field-ink: #1d1a16;
}

body.theme-forest {
    --bg: #f6f7f1;
    --surface: #ffffff;
    --surface-2: #e9ece0;
    --ink: #172016;
    --ink-dark: #172016;
    --muted: #69705f;
    --muted-dark: #69705f;
    --line: rgba(23, 32, 22, 0.12);
    --line-dark: #d9decf;
    --accent: #3f5f38;
    --accent-ink: #ffffff;
    --accent-2: #6b7f5e;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-line: rgba(23, 32, 22, 0.12);
    --nav-muted: rgba(23, 32, 22, 0.7);
    --nav-ink: #172016;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #172016;
    --footer-ink: #f6f7f1;
    --field-bg: #ffffff;
    --field-ink: #172016;
}

body.theme-sierra {
    --bg: #050607;
    --surface: #0d1116;
    --surface-2: #090d12;
    --ink: #f8fbff;
    --ink-dark: #f8fbff;
    --muted: #a8b3be;
    --muted-dark: #a8b3be;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(255, 255, 255, 0.14);
    --accent: #59ff72;
    --accent-ink: #031006;
    --accent-2: #d8ffe0;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    --header-bg: rgba(5, 6, 7, 0.84);
    --header-line: rgba(89, 255, 114, 0.2);
    --nav-muted: rgba(255, 255, 255, 0.72);
    --nav-ink: #ffffff;
    --menu-bg: rgba(5, 6, 7, 0.98);
    --footer-bg: #020303;
    --footer-ink: #f8fbff;
    --field-bg: #0a0f13;
    --field-ink: #f8fbff;
}

body.mode-night {
    color-scheme: dark;
    --bg: #080a0d;
    --surface: #11161c;
    --surface-2: #151b22;
    --ink: #f7f8f9;
    --ink-dark: #f7f8f9;
    --muted: #a6afba;
    --muted-dark: #a6afba;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(255, 255, 255, 0.14);
    --accent: #e9edf2;
    --accent-ink: #090b0f;
    --accent-2: #9ca8b3;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
    --header-bg: rgba(8, 10, 13, 0.88);
    --header-line: rgba(255, 255, 255, 0.12);
    --nav-muted: rgba(255, 255, 255, 0.72);
    --nav-ink: #ffffff;
    --menu-bg: rgba(8, 10, 13, 0.98);
    --footer-bg: #050608;
    --footer-ink: #f7f8f9;
    --field-bg: #0d1117;
    --field-ink: #f7f8f9;
}

@media (prefers-color-scheme: dark) {
    body.mode-system {
        color-scheme: dark;
        --bg: #080a0d;
        --surface: #11161c;
        --surface-2: #151b22;
        --ink: #f7f8f9;
        --ink-dark: #f7f8f9;
        --muted: #a6afba;
        --muted-dark: #a6afba;
        --line: rgba(255, 255, 255, 0.14);
        --line-dark: rgba(255, 255, 255, 0.14);
        --accent: #e9edf2;
        --accent-ink: #090b0f;
        --accent-2: #9ca8b3;
        --shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
        --header-bg: rgba(8, 10, 13, 0.88);
        --header-line: rgba(255, 255, 255, 0.12);
        --nav-muted: rgba(255, 255, 255, 0.72);
        --nav-ink: #ffffff;
        --menu-bg: rgba(8, 10, 13, 0.98);
        --footer-bg: #050608;
        --footer-ink: #f7f8f9;
        --field-bg: #0d1117;
        --field-ink: #f7f8f9;
    }
}

body:not(.admin-body) {
    --stage-bg: #050607;
    --stage-panel: #0d1116;
    --stage-panel-soft: #090d12;
    --stage-text: #f8fbff;
    --stage-muted: rgba(248, 251, 255, 0.68);
    --stage-line: rgba(255, 255, 255, 0.14);
    --stage-menu: rgba(5, 6, 7, 0.98);
    --stage-header: rgba(5, 6, 7, 0.84);
    --stage-panel-glow: rgba(255, 255, 255, 0.045);
    --stage-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    --glass-bg: rgba(13, 17, 22, 0.58);
    --glass-bg-strong: rgba(13, 17, 22, 0.74);
    --glass-line: rgba(255, 255, 255, 0.18);
    --glass-filter: blur(20px) saturate(1.18);
    --bg: var(--stage-bg);
    --surface: var(--stage-panel);
    --surface-2: var(--stage-panel-soft);
    --ink: var(--stage-text);
    --ink-dark: var(--stage-text);
    --muted: var(--stage-muted);
    --muted-dark: var(--stage-muted);
    --line: var(--stage-line);
    --line-dark: var(--stage-line);
    --accent: #59ff72;
    --accent-ink: #031006;
    --accent-2: #d8ffe0;
    --shadow: var(--stage-shadow);
    --header-bg: var(--stage-header);
    --header-line: rgba(89, 255, 114, 0.2);
    --nav-muted: rgba(255, 255, 255, 0.72);
    --nav-ink: var(--stage-text);
    --menu-bg: var(--stage-menu);
    --footer-bg: var(--stage-bg);
    --footer-ink: var(--stage-text);
    --field-bg: #0a0f13;
    --field-ink: var(--stage-text);
}

body:not(.admin-body) {
    position: relative;
    background:
        linear-gradient(180deg, rgba(89, 255, 114, 0.08), rgba(89, 255, 114, 0) 280px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 42%),
        var(--bg);
}

body:not(.admin-body)::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 255, 114, 0.16), rgba(89, 255, 114, 0) 34%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(89, 255, 114, 0.06), rgba(0, 0, 0, 0) 62%);
    filter: blur(34px);
    opacity: 0.8;
    transform: translateZ(0);
}

body:not(.admin-body).mode-day {
    --stage-bg: #f6faf5;
    --stage-panel: #ffffff;
    --stage-panel-soft: #eef5ee;
    --stage-text: #07120a;
    --stage-muted: rgba(7, 18, 10, 0.64);
    --stage-line: rgba(7, 18, 10, 0.14);
    --stage-menu: rgba(255, 255, 255, 0.98);
    --stage-header: rgba(246, 250, 245, 0.9);
    --stage-panel-glow: rgba(89, 255, 114, 0.06);
    --stage-shadow: 0 14px 34px rgba(7, 18, 10, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.56);
    --glass-bg-strong: rgba(255, 255, 255, 0.76);
    --glass-line: rgba(7, 18, 10, 0.14);
    --accent: #168b32;
    --accent-ink: #ffffff;
    --accent-2: #0f6e25;
    --header-line: rgba(22, 139, 50, 0.18);
    --nav-muted: rgba(7, 18, 10, 0.66);
    --field-bg: #ffffff;
}

@media (prefers-color-scheme: light) {
    body:not(.admin-body).mode-system {
        --stage-bg: #f6faf5;
        --stage-panel: #ffffff;
        --stage-panel-soft: #eef5ee;
        --stage-text: #07120a;
        --stage-muted: rgba(7, 18, 10, 0.64);
        --stage-line: rgba(7, 18, 10, 0.14);
        --stage-menu: rgba(255, 255, 255, 0.98);
        --stage-header: rgba(246, 250, 245, 0.9);
        --stage-panel-glow: rgba(89, 255, 114, 0.06);
        --stage-shadow: 0 14px 34px rgba(7, 18, 10, 0.12);
        --glass-bg: rgba(255, 255, 255, 0.56);
        --glass-bg-strong: rgba(255, 255, 255, 0.76);
        --glass-line: rgba(7, 18, 10, 0.14);
        --accent: #168b32;
        --accent-ink: #ffffff;
        --accent-2: #0f6e25;
        --header-line: rgba(22, 139, 50, 0.18);
        --nav-muted: rgba(7, 18, 10, 0.66);
        --field-bg: #ffffff;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--site-font);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 44%, rgba(89, 255, 114, 0.14), transparent 28%),
        #050607;
    color: #fff;
    text-align: center;
    transition: opacity 360ms ease, visibility 360ms ease;
    animation: loader-fallback var(--loader-fallback-duration, 4s) ease forwards;
}

.site-loaded .site-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 54px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
    filter: drop-shadow(0 0 18px rgba(240, 51, 85, 0.24));
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1 / 1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.loader::before {
    border-color: #f03355 #0000;
    animation: inherit;
    animation-duration: 0.5s;
    animation-direction: reverse;
}

.loader::after {
    margin: 8px;
}

.admin-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(89, 255, 114, 0.2), transparent 30%),
        linear-gradient(135deg, #050607, #111827);
}

.loader-text {
    display: grid;
    gap: 4px;
}

.loader-text strong {
    font-size: 18px;
    letter-spacing: 0;
}

.loader-text span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

.upload-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(5, 6, 7, 0.68);
    backdrop-filter: blur(12px);
}

.upload-progress-modal.is-open {
    display: grid;
}

.upload-progress-card {
    width: min(430px, 100%);
    padding: 24px;
    border: 1px solid rgba(89, 255, 114, 0.24);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(89, 255, 114, 0.1), rgba(89, 255, 114, 0) 38%),
        #090d12;
    color: #f8fbff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.upload-progress-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
}

.upload-progress-card p {
    margin: 0 0 18px;
    color: rgba(248, 251, 255, 0.68);
}

.upload-progress-track {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #59ff72, #d8ffe0);
    transition: width 160ms ease;
}

.upload-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: rgba(248, 251, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

@keyframes l16 {
    100% {
        transform: rotate(1turn);
    }
}

@keyframes loader-fallback {
    0%,
    82% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader,
    .loader,
    .loader::before {
        animation: none;
    }

    .site-loader {
        display: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 0 var(--page-gutter);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
    font-size: clamp(18px, 2vw, 26px);
}

.brand-logo {
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain;
}

.brand-text {
    display: inline-block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 9px 12px;
    color: var(--nav-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.nav-dropdown {
    position: relative;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--menu-bg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--nav-ink);
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.cart-pill span {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
}

.mode-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.mode-toggle:hover {
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.admin-quick-edit {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--header-line);
    border-radius: var(--radius);
    background: var(--menu-bg);
    box-shadow: var(--shadow);
}

.admin-quick-edit a {
    padding: 9px 11px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.notice {
    width: min(calc(var(--container) + (var(--page-gutter) * 2)), 100%);
    margin: 18px auto;
    padding: 14px var(--page-gutter);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.notice-warning {
    background: #fff7dd;
    color: #5a3b00;
}

.notice-success {
    background: #e9f6ee;
    color: #153d28;
}

.notice-error {
    background: #fdecec;
    color: #5a1717;
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    isolation: isolate;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 9, 11, 0.88), rgba(7, 9, 11, 0.42) 48%, rgba(7, 9, 11, 0.84)),
        linear-gradient(0deg, rgba(7, 9, 11, 0.98), rgba(7, 9, 11, 0.12) 36%);
}

.hero-inner,
.section,
.split-section {
    width: min(calc(var(--container) + (var(--page-gutter) * 2)), 100%);
    margin: 0 auto;
    padding-inline: var(--page-gutter);
}

.hero-copy {
    max-width: 640px;
    padding: 80px 0;
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(44px, 7.4vw, 96px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p {
    max-width: 560px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.7vw, 20px);
}

.release-promo {
    position: relative;
    width: min(calc(var(--container) + (var(--page-gutter) * 2)), 100%);
    margin: 0 auto;
    overflow: hidden;
    padding: clamp(34px, 5vw, 64px) var(--page-gutter);
    background:
        radial-gradient(circle at 50% 16%, rgba(89, 255, 114, 0.14), transparent 24%),
        linear-gradient(90deg, var(--stage-bg), var(--stage-panel-soft) 50%, var(--stage-bg));
    color: var(--stage-text);
    isolation: isolate;
    border-top: 1px solid var(--stage-line);
    border-bottom: 1px solid var(--stage-line);
}

.release-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--promo-bg);
    background-position: center;
    background-size: cover;
    filter: blur(16px) saturate(0.9);
    opacity: 0.18;
    transform: scale(1.08);
}

.release-promo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 6%, var(--stage-panel-glow), transparent 24%),
        radial-gradient(circle at 16% 56%, rgba(89, 255, 114, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), var(--stage-bg) 96%);
}

.release-promo-shell {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.release-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 18px;
}

.release-promo-item {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.release-card {
    display: grid;
    justify-items: center;
    min-height: 224px;
    padding: 0 16px 18px;
    border: 1px solid var(--stage-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, var(--stage-panel-glow), rgba(255, 255, 255, 0.018)),
        var(--glass-bg);
    color: var(--stage-text);
    text-align: center;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
}

.release-cover-wrap {
    position: relative;
    width: clamp(82px, 9vw, 104px);
    aspect-ratio: 1;
    margin-top: -18px;
}

.release-artwork {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: var(--stage-panel-soft);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.release-cover-play {
    width: 52px;
    height: 52px;
    transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.release-promo-item.is-playing .release-cover-play {
    opacity: 0;
}

.release-promo-item.is-playing .release-cover-wrap:hover .release-cover-play,
.release-promo-item.is-playing .release-cover-play:focus-visible {
    opacity: 1;
}

.release-card h2,
.release-card h3,
.release-card p {
    margin: 0;
}

.release-card h2 {
    margin-top: 16px;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.release-card h3 {
    margin-top: 4px;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--stage-muted);
    overflow-wrap: anywhere;
}

.release-card p {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
}

.release-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--stage-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.release-presave {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 13px 15px;
    border: 1px solid var(--stage-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, var(--stage-panel-glow), rgba(255, 255, 255, 0.018)),
        var(--glass-bg-strong);
    color: var(--stage-text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
}

.release-presave[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

.release-presave strong,
.release-presave small {
    display: block;
}

.release-presave strong {
    font-size: 14px;
    line-height: 1.1;
}

.spotify-listen-label,
.spotify-listen-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spotify-listen-label {
    color: var(--stage-text);
}

.spotify-listen-button {
    justify-content: center;
}

.spotify-logo {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.release-presave small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--stage-muted);
    font-size: 10px;
    font-weight: 800;
}

.release-check {
    display: inline-grid;
    place-items: center;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--accent);
    color: var(--accent-ink);
}

.release-check::before {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translate(1px, -1px);
}

.release-presave-arrow {
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.button.danger {
    background: var(--danger);
    color: #fff;
}

.button:disabled,
button.button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.section {
    padding-block: clamp(56px, 8vw, 110px);
}

.section.light,
.page-shell.light {
    background: var(--surface-2);
    color: var(--ink-dark);
}

body.mode-night .section.light,
body.mode-night .page-shell.light {
    background: var(--surface-2);
    color: var(--ink);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head h2,
.page-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1;
}

.section-head p,
.page-intro {
    max-width: 640px;
    color: var(--muted);
}

.light .section-head p,
.light .page-intro {
    color: var(--muted-dark);
}

.product-grid,
.gallery-grid,
.song-grid,
.video-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card,
.song-card,
.video-card,
.gallery-card,
.category-tile,
.gig-row,
.cart-panel,
.form-panel,
.admin-card,
.table-wrap {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover,
.song-card:hover,
.video-card:hover,
.gallery-card:hover,
.category-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 18px 42px rgba(34, 28, 18, 0.14);
}

.light .product-card,
.light .song-card,
.light .video-card,
.light .gallery-card,
.light .category-tile,
.light .gig-row,
.light .cart-panel,
.light .form-panel {
    border-color: var(--line-dark);
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(34, 28, 18, 0.1);
}

.product-image,
.gallery-image,
.song-cover {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    background: #20252b;
}

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

.video-frame-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050607;
}

.video-frame {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    object-fit: cover;
    background: #050607;
}

.video-link-preview {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(5, 6, 7, 0.58), rgba(5, 6, 7, 0.9)),
        rgba(5, 6, 7, 0.78);
    color: #fff;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.video-link-preview.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.video-link-preview span,
.video-link-preview strong {
    display: block;
}

.video-link-preview span {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.video-link-preview strong {
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.video-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: clamp(44px, 8vw, 78px);
    font-weight: 900;
}

.song-cover-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #20252b;
}

.song-cover-wrap .song-cover {
    height: 100%;
    border-radius: 0;
}

.song-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 900;
}

.song-play-button,
.video-play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(62px, 18%, 86px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(5, 6, 7, 0.68);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.song-play-button::before,
.video-play-button::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 19px solid currentColor;
}

.song-play-button.is-playing::before,
.video-play-button.is-playing::before {
    width: 18px;
    height: 24px;
    margin-left: 0;
    border: 0;
    background:
        linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.song-play-button:hover,
.song-play-button:focus-visible,
.video-play-button:hover,
.video-play-button:focus-visible {
    border-color: rgba(89, 255, 114, 0.78);
    background: rgba(5, 6, 7, 0.82);
    transform: translate(-50%, -50%) scale(1.04);
}

.song-play-button span,
.video-play-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.song-card.is-playing .song-cover,
.video-card.is-playing .video-frame {
    filter: saturate(1.08) brightness(0.82);
}

.song-card.is-playing .song-play-button,
.video-card.is-playing .video-play-button {
    border-color: rgba(89, 255, 114, 0.9);
    color: #59ff72;
}

.song-video-popover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    opacity: 0;
    visibility: hidden;
    background: #050607;
    transform: scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.song-video-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.song-video-popover iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.song-video-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(5, 6, 7, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.song-card.has-video-open .song-play-button {
    opacity: 0;
    pointer-events: none;
}

.product-body,
.song-body,
.video-body,
.gallery-body {
    padding: 18px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.card-actions:empty {
    display: none;
}

.card-actions .button {
    min-height: 42px;
}

.card-social-actions {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    width: 100%;
    min-width: 0;
}

.social-action-button {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-action-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card .card-social-actions {
    justify-content: flex-start;
    gap: 10px;
}

.song-card .social-action-button.icon-only {
    flex: 0 0 auto;
    width: clamp(40px, 12vw, 46px);
    min-width: clamp(40px, 12vw, 46px);
    min-height: clamp(40px, 12vw, 46px);
    padding: 0;
}

.social-action-button.icon-only span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.song-card .social-action-button.icon-only .social-icon {
    width: 18px;
    height: 18px;
}

.social-action-button:hover,
.social-action-button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.social-action-button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.55;
    pointer-events: none;
}

.social-action-button.is-liked,
.social-action-button[aria-pressed="true"] {
    border-color: rgba(89, 255, 114, 0.64);
    background: rgba(89, 255, 114, 0.14);
    color: var(--accent);
}

.social-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(260px, 100%);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.song-card .share-menu {
    left: 0;
    right: auto;
    width: min(280px, 100%);
}

.share-menu[hidden] {
    display: none;
}

.share-menu a,
.share-menu button {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.share-menu a:hover,
.share-menu button:hover,
.share-menu a:focus-visible,
.share-menu button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.comment-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.comment-panel[hidden] {
    display: none;
}

.comment-form {
    display: grid;
    gap: 9px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field-bg);
    color: var(--field-ink);
    padding: 10px 12px;
    resize: vertical;
}

.comment-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.comment-item {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.comment-item strong,
.comment-item p {
    margin: 0;
}

.comment-item p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.product-body h3,
.song-body h3,
.video-body h3,
.gallery-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.price {
    color: var(--accent);
    font-weight: 800;
}

.light .price {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background:
        linear-gradient(150deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.02)),
        var(--surface);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 28px;
}

.page-hero {
    padding: clamp(52px, 8vw, 92px) var(--page-gutter) 34px;
    width: min(calc(var(--container) + (var(--page-gutter) * 2)), 100%);
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.shop-tools {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.shop-tools .filters {
    margin-bottom: 0;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sort-form select {
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
}

.filter {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.empty-state {
    padding: 42px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.gig-list {
    display: grid;
    gap: 14px;
}

.gig-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.gig-date {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.bio-copy {
    max-width: 900px;
    font-size: clamp(17px, 2vw, 22px);
}

.bio-copy {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.bio-copy > :first-child {
    margin-top: 0;
}

.bio-copy > :last-child {
    margin-bottom: 0;
}

.cart-layout,
.checkout-layout,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.cart-panel,
.form-panel {
    padding: 20px;
}

.payment-card {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.payment-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.payment-card p {
    margin: 8px 0;
}

.checkout-summary-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-item:last-of-type {
    border-bottom: 0;
}

.checkout-summary-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-summary-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
}

.checkout-detail {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.checkout-delivery-note,
.checkout-payment-detail {
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--ink-dark);
}

.checkout-payment-detail[hidden] {
    display: none;
}

.checkout-delivery-note strong,
.checkout-delivery-note span,
.checkout-payment-detail strong,
.checkout-payment-detail span {
    display: block;
}

.checkout-delivery-note span,
.checkout-payment-detail span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.checkout-category {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.checkout-fulfillment {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(89, 255, 114, 0.16);
    color: var(--ink-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.checkout-fulfillment.is-physical {
    background: rgba(114, 173, 255, 0.16);
}

.checkout-fulfillment.is-ready {
    background: rgba(89, 255, 114, 0.22);
}

.payment-qr {
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    object-fit: contain;
}

.cart-line {
    display: grid;
    grid-template-columns: 90px 1fr 96px 110px auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius);
}

.qty-input {
    width: 76px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--field-ink);
}

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

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.field.full {
    grid-column: 1 / -1;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mini-button:hover {
    border-color: rgba(17, 24, 39, 0.36);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
    transform: translateY(-1px);
}

.mini-button:focus {
    outline: 0;
    border-color: rgba(17, 24, 39, 0.42);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.product-options-builder {
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.option-builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
    gap: 12px;
}

.product-options-builder.is-single-mode .option-builder-grid {
    grid-template-columns: 1fr;
}

.option-builder-field {
    margin-bottom: 0;
}

.option-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 12px;
}

.option-mode-choice {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-dark);
    cursor: pointer;
}

.option-mode-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-dark);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.option-mode-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.option-mode-choice input:checked + span {
    border-color: rgba(17, 24, 39, 0.88);
    background: var(--ink-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.option-mode-choice input:focus + span {
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.option-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.option-builder-actions .mini-button {
    width: auto;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
}

.image-converter-panel {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.image-converter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.video-converter-panel {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.video-converter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.video-converter-head strong,
.video-converter-head span {
    display: block;
}

.video-converter-preview {
    width: min(520px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: #050607;
}

.video-converter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.video-converter-grid label {
    display: grid;
    gap: 5px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.video-converter-panel.is-busy {
    opacity: 0.78;
}

.video-converter-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.video-converter-progress[hidden] {
    display: none;
}

.video-converter-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.12);
}

.video-converter-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #59ff72, #168b32);
    transition: width 140ms ease;
}

.video-converter-progress span {
    min-width: 42px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 900;
    text-align: right;
}

.video-thumbnail-generator {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.video-thumbnail-generator-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.video-thumbnail-generator-head strong,
.video-thumbnail-generator-head span {
    display: block;
}

.video-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.video-thumbnail-grid label {
    display: grid;
    gap: 5px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.video-thumbnail-canvas {
    width: min(640px, 100%);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #050607;
}

.upload-fix-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.upload-fix-panel h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.upload-fix-panel p {
    margin: 0;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    margin: 0 0 15px;
    padding: 10px 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

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

.visibility-panel {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
}

.visibility-panel h3 {
    margin: 0 0 4px;
    color: var(--ink-dark);
    font-size: 15px;
}

.visibility-panel .checkbox-field {
    margin: 0;
}

.field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--field-ink);
}

.light .field input,
.light .field select,
.light .field textarea,
.admin-main .field input,
.admin-main .field select,
.admin-main .field textarea {
    background: #fff;
    color: var(--ink-dark);
    border-color: var(--line-dark);
}

body.mode-night .light .field input,
body.mode-night .light .field select,
body.mode-night .light .field textarea {
    background: var(--field-bg);
    color: var(--field-ink);
    border-color: var(--line);
}

@media (prefers-color-scheme: dark) {
    body.mode-system .light .field input,
    body.mode-system .light .field select,
    body.mode-system .light .field textarea {
        background: var(--field-bg);
        color: var(--field-ink);
        border-color: var(--line);
    }
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
    padding: 52px var(--page-gutter) 28px;
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    color: var(--footer-ink);
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.72);
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.social-list a {
    margin: 0;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

body:not(.admin-body) .site-header {
    background: var(--glass-bg-strong);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
}

body:not(.admin-body) .brand {
    color: var(--stage-text);
}

body:not(.admin-body) .brand-logo {
    filter: drop-shadow(0 0 14px rgba(89, 255, 114, 0.22));
}

body:not(.admin-body) .site-nav a,
body:not(.admin-body) .cart-pill,
body:not(.admin-body) .mode-toggle,
body:not(.admin-body) .nav-toggle {
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body:not(.admin-body) .site-nav a {
    border-radius: 999px;
}

body:not(.admin-body) .site-nav a:hover,
body:not(.admin-body) .site-nav a.is-active {
    background: rgba(89, 255, 114, 0.11);
    color: var(--stage-text);
}

body:not(.admin-body) .cart-pill,
body:not(.admin-body) .mode-toggle,
body:not(.admin-body) .nav-toggle {
    border-color: rgba(89, 255, 114, 0.24);
    background: rgba(89, 255, 114, 0.06);
    color: var(--stage-text);
}

body:not(.admin-body) .cart-pill:hover,
body:not(.admin-body) .mode-toggle:hover,
body:not(.admin-body) .nav-toggle:hover {
    border-color: rgba(89, 255, 114, 0.62);
    transform: translateY(-1px);
}

body:not(.admin-body) .nav-menu {
    border-color: rgba(89, 255, 114, 0.2);
    background: var(--stage-menu);
}

body:not(.admin-body) .nav-menu a:hover {
    background: rgba(89, 255, 114, 0.12);
}

body:not(.admin-body) .hero {
    background-color: #030405;
    box-shadow: inset 0 -1px 0 rgba(89, 255, 114, 0.22);
}

body:not(.admin-body) .hero::before {
    background:
        linear-gradient(115deg, rgba(89, 255, 114, 0.16), rgba(89, 255, 114, 0) 34%),
        linear-gradient(90deg, rgba(2, 3, 3, 0.94), rgba(2, 3, 3, 0.58) 48%, rgba(2, 3, 3, 0.9)),
        linear-gradient(0deg, rgba(2, 3, 3, 0.98), rgba(2, 3, 3, 0.18) 42%);
}

body:not(.admin-body) .hero h1 {
    color: #fff;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

body:not(.admin-body) .page-hero h1,
body:not(.admin-body) .page-title {
    color: var(--stage-text);
    text-shadow: none;
}

body:not(.admin-body) .hero p {
    color: rgba(248, 251, 255, 0.78);
}

body:not(.admin-body) .page-intro {
    color: var(--stage-muted);
}

body:not(.admin-body) .page-hero {
    position: relative;
    padding-bottom: clamp(34px, 5vw, 54px);
}

body:not(.admin-body) .page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(89, 255, 114, 0.82), rgba(89, 255, 114, 0.08), transparent);
}

body:not(.admin-body) .section.light,
body:not(.admin-body) .page-shell.light {
    background:
        linear-gradient(180deg, rgba(89, 255, 114, 0.06), rgba(89, 255, 114, 0)),
        var(--stage-panel-soft);
    color: var(--stage-text);
    border-top: 1px solid var(--stage-line);
    border-bottom: 1px solid var(--stage-line);
}

body:not(.admin-body) .section:not(.light) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(89, 255, 114, 0.035));
}

body:not(.admin-body) .section-head h2 {
    color: var(--stage-text);
}

body:not(.admin-body) .section-head p,
body:not(.admin-body) .light .section-head p,
body:not(.admin-body) .light .page-intro,
body:not(.admin-body) .muted {
    color: var(--stage-muted);
}

body:not(.admin-body) .product-card,
body:not(.admin-body) .song-card,
body:not(.admin-body) .video-card,
body:not(.admin-body) .gallery-card,
body:not(.admin-body) .category-tile,
body:not(.admin-body) .gig-row,
body:not(.admin-body) .cart-panel,
body:not(.admin-body) .form-panel,
body:not(.admin-body) .empty-state {
    border-color: var(--glass-line);
    background:
        linear-gradient(180deg, var(--stage-panel-glow), rgba(255, 255, 255, 0.018)),
        var(--glass-bg);
    color: var(--stage-text);
    box-shadow: var(--stage-shadow);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
}

body:not(.admin-body) .product-card:hover,
body:not(.admin-body) .song-card:hover,
body:not(.admin-body) .video-card:hover,
body:not(.admin-body) .gallery-card:hover,
body:not(.admin-body) .category-tile:hover,
body:not(.admin-body) .gig-row:hover {
    border-color: rgba(89, 255, 114, 0.58);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(89, 255, 114, 0.08);
}

body:not(.admin-body) .product-image,
body:not(.admin-body) .gallery-image,
body:not(.admin-body) .song-cover,
body:not(.admin-body) .video-frame,
body:not(.admin-body) .cart-line img {
    background: var(--stage-panel-soft);
}

body:not(.admin-body) .category-tile {
    min-height: 184px;
    background:
        linear-gradient(145deg, rgba(89, 255, 114, 0.12), rgba(89, 255, 114, 0.02) 44%),
        var(--glass-bg);
}

body:not(.admin-body) .category-tile h3,
body:not(.admin-body) .product-body h3,
body:not(.admin-body) .song-body h3,
body:not(.admin-body) .video-body h3,
body:not(.admin-body) .gallery-body h3,
body:not(.admin-body) .gig-row h3,
body:not(.admin-body) .cart-panel h2,
body:not(.admin-body) .form-panel h2,
body:not(.admin-body) .form-panel h3 {
    color: var(--stage-text);
}

body:not(.admin-body) .price,
body:not(.admin-body) .gig-date {
    color: #59ff72;
}

body:not(.admin-body) .bio-copy {
    width: min(900px, 100%);
    border-color: var(--glass-line);
    background:
        linear-gradient(180deg, var(--stage-panel-glow), rgba(255, 255, 255, 0.018)),
        var(--glass-bg);
    color: var(--stage-text);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
}

body:not(.admin-body) .button,
body:not(.admin-body) button.button {
    box-shadow: 0 10px 26px rgba(89, 255, 114, 0.18);
}

body:not(.admin-body) .social-action-button {
    border-color: var(--glass-line);
    background: rgba(255, 255, 255, 0.055);
    color: var(--stage-muted);
    backdrop-filter: blur(14px) saturate(1.16);
    -webkit-backdrop-filter: blur(14px) saturate(1.16);
}

body:not(.admin-body) .social-action-button:hover,
body:not(.admin-body) .social-action-button:focus-visible,
body:not(.admin-body) .social-action-button.is-liked,
body:not(.admin-body) .social-action-button[aria-pressed="true"] {
    border-color: rgba(89, 255, 114, 0.68);
    background: rgba(89, 255, 114, 0.13);
    color: #59ff72;
}

body:not(.admin-body) .share-menu,
body:not(.admin-body) .comment-item {
    border-color: var(--glass-line);
    background: var(--glass-bg-strong);
    color: var(--stage-text);
    backdrop-filter: blur(14px) saturate(1.16);
    -webkit-backdrop-filter: blur(14px) saturate(1.16);
}

body:not(.admin-body) .share-menu a,
body:not(.admin-body) .share-menu button,
body:not(.admin-body) .comment-panel,
body:not(.admin-body) .comment-form input,
body:not(.admin-body) .comment-form textarea {
    border-color: var(--glass-line);
}

body:not(.admin-body) .comment-item p {
    color: var(--stage-muted);
}

body:not(.admin-body) .button:hover,
body:not(.admin-body) button.button:hover {
    transform: translateY(-1px);
}

body:not(.admin-body) .button.secondary {
    border-color: rgba(89, 255, 114, 0.34);
    background: rgba(89, 255, 114, 0.07);
    color: var(--stage-text);
    box-shadow: none;
}

body:not(.admin-body) .button.secondary:hover {
    border-color: rgba(89, 255, 114, 0.72);
    background: rgba(89, 255, 114, 0.13);
}

body:not(.admin-body) .filter,
body:not(.admin-body) .sort-form select,
body:not(.admin-body) .field input,
body:not(.admin-body) .field select,
body:not(.admin-body) .field textarea,
body:not(.admin-body) .qty-input {
    border-color: var(--stage-line);
    background: var(--field-bg);
    color: var(--field-ink);
}

body:not(.admin-body) .filter {
    color: var(--stage-muted);
}

body:not(.admin-body) .filter:hover {
    border-color: rgba(89, 255, 114, 0.48);
    color: var(--stage-text);
}

body:not(.admin-body) .filter.is-active {
    color: #031006;
}

body:not(.admin-body) .sort-form {
    color: var(--stage-muted);
}

body:not(.admin-body) .field label {
    color: var(--stage-muted);
}

body:not(.admin-body) .field input:focus,
body:not(.admin-body) .field select:focus,
body:not(.admin-body) .field textarea:focus,
body:not(.admin-body) .qty-input:focus {
    outline: 2px solid rgba(89, 255, 114, 0.34);
    outline-offset: 2px;
}

body:not(.admin-body) .checkbox-field {
    border-color: var(--stage-line);
    background: var(--field-bg);
    color: var(--field-ink);
}

body:not(.admin-body) .cart-line {
    border-bottom-color: var(--stage-line);
}

body:not(.admin-body) .payment-card {
    border-top-color: rgba(89, 255, 114, 0.18);
}

body:not(.admin-body) .payment-qr {
    border-color: rgba(89, 255, 114, 0.26);
    background: #fff;
}

body:not(.admin-body) .empty-state {
    border-style: dashed;
    color: var(--stage-muted);
}

body:not(.admin-body) .notice {
    border-color: var(--stage-line);
    background: var(--stage-panel);
}

body:not(.admin-body) .notice-success {
    color: #dfffe6;
    background: rgba(89, 255, 114, 0.1);
}

body:not(.admin-body) .notice-error {
    color: #ffe5e5;
    background: rgba(200, 61, 61, 0.12);
}

body:not(.admin-body).mode-day .notice-success {
    color: #0f5c27;
    background: rgba(22, 139, 50, 0.1);
}

body:not(.admin-body).mode-day .notice-error {
    color: #7c1f1f;
    background: rgba(200, 61, 61, 0.1);
}

@media (prefers-color-scheme: light) {
    body:not(.admin-body).mode-system .notice-success {
        color: #0f5c27;
        background: rgba(22, 139, 50, 0.1);
    }

    body:not(.admin-body).mode-system .notice-error {
        color: #7c1f1f;
        background: rgba(200, 61, 61, 0.1);
    }
}

body:not(.admin-body) .site-footer {
    border-top-color: rgba(89, 255, 114, 0.22);
    background:
        linear-gradient(180deg, rgba(89, 255, 114, 0.06), rgba(89, 255, 114, 0)),
        var(--footer-bg);
}

body:not(.admin-body) .site-footer a {
    color: var(--stage-muted);
}

body:not(.admin-body) .site-footer a:hover {
    color: var(--footer-ink);
}

body:not(.admin-body) .footer-bottom {
    border-top-color: var(--stage-line);
    color: var(--stage-muted);
}

body:not(.admin-body) .checkout-delivery-note,
body:not(.admin-body) .checkout-payment-detail,
body:not(.admin-body) .checkout-category,
body:not(.admin-body) .checkout-fulfillment {
    border-color: var(--stage-line);
    background: var(--stage-panel-soft);
    color: var(--stage-text);
}

body:not(.admin-body) .checkout-fulfillment.is-digital,
body:not(.admin-body) .checkout-fulfillment.is-ready {
    border-color: rgba(89, 255, 114, 0.28);
    background: rgba(89, 255, 114, 0.12);
}

body:not(.admin-body) .checkout-fulfillment.is-physical {
    border-color: rgba(114, 173, 255, 0.24);
    background: rgba(114, 173, 255, 0.12);
}

body:not(.admin-body) .checkout-delivery-note span,
body:not(.admin-body) .checkout-payment-detail span,
body:not(.admin-body) .checkout-detail {
    color: var(--stage-muted);
}

body:not(.admin-body).mode-day .hero::before {
    background:
        linear-gradient(115deg, rgba(89, 255, 114, 0.18), rgba(89, 255, 114, 0) 34%),
        linear-gradient(90deg, rgba(246, 250, 245, 0.92), rgba(246, 250, 245, 0.58) 48%, rgba(246, 250, 245, 0.86)),
        linear-gradient(0deg, rgba(246, 250, 245, 0.96), rgba(246, 250, 245, 0.18) 42%);
}

body:not(.admin-body).mode-day .hero h1 {
    color: var(--stage-text);
    text-shadow: 0 12px 38px rgba(255, 255, 255, 0.44);
}

body:not(.admin-body).mode-day .hero p {
    color: var(--stage-muted);
}

body:not(.admin-body).mode-day .release-promo {
    background:
        radial-gradient(circle at 50% 18%, rgba(22, 139, 50, 0.12), transparent 22%),
        linear-gradient(90deg, rgba(229, 240, 226, 0.96), rgba(247, 250, 246, 0.92) 50%, rgba(229, 240, 226, 0.96)),
        #eef5ee;
    color: #07120a;
}

body:not(.admin-body).mode-day .release-promo::after {
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.68), transparent 24%),
        radial-gradient(circle at 16% 56%, rgba(22, 139, 50, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(238, 245, 238, 0.9) 96%);
}

body:not(.admin-body).mode-day .release-card {
    border-color: var(--glass-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
        var(--glass-bg);
    color: #07120a;
}

body:not(.admin-body).mode-day .release-status,
body:not(.admin-body).mode-day .release-presave small {
    color: rgba(7, 18, 10, 0.68);
}

body:not(.admin-body).mode-day .release-presave {
    border-color: var(--glass-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
        var(--glass-bg-strong);
    color: #07120a;
}

body:not(.admin-body).mode-day .release-presave-arrow {
    color: rgba(7, 18, 10, 0.72);
}

@media (prefers-color-scheme: light) {
    body:not(.admin-body).mode-system .hero::before {
        background:
            linear-gradient(115deg, rgba(89, 255, 114, 0.18), rgba(89, 255, 114, 0) 34%),
            linear-gradient(90deg, rgba(246, 250, 245, 0.92), rgba(246, 250, 245, 0.58) 48%, rgba(246, 250, 245, 0.86)),
            linear-gradient(0deg, rgba(246, 250, 245, 0.96), rgba(246, 250, 245, 0.18) 42%);
    }

    body:not(.admin-body).mode-system .hero h1 {
        color: var(--stage-text);
        text-shadow: 0 12px 38px rgba(255, 255, 255, 0.44);
    }

    body:not(.admin-body).mode-system .hero p {
        color: var(--stage-muted);
    }

    body:not(.admin-body).mode-system .release-promo {
        background:
            radial-gradient(circle at 50% 18%, rgba(22, 139, 50, 0.12), transparent 22%),
            linear-gradient(90deg, rgba(229, 240, 226, 0.96), rgba(247, 250, 246, 0.92) 50%, rgba(229, 240, 226, 0.96)),
            #eef5ee;
        color: #07120a;
    }

    body:not(.admin-body).mode-system .release-card {
        border-color: var(--glass-line);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
            var(--glass-bg);
        color: #07120a;
    }

    body:not(.admin-body).mode-system .release-status,
    body:not(.admin-body).mode-system .release-presave small {
        color: rgba(7, 18, 10, 0.68);
    }

    body:not(.admin-body).mode-system .release-presave {
        border-color: var(--glass-line);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
            var(--glass-bg-strong);
        color: #07120a;
    }

    body:not(.admin-body).mode-system .release-presave-arrow {
        color: rgba(7, 18, 10, 0.72);
    }
}

.admin-body {
    background: #f4f1eb;
    color: var(--ink-dark);
}

.admin-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 24px;
    background: #080a0d;
    color: #fff;
}

.admin-sidebar h1 {
    font-size: 22px;
    margin: 0 0 26px;
}

.admin-sidebar a,
.admin-sidebar button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 6px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
    cursor: pointer;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover,
.admin-sidebar button:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-top h2 {
    margin: 0;
    font-size: 34px;
}

.admin-card,
.table-wrap {
    background: #fff;
    color: var(--ink-dark);
    border-color: var(--line-dark);
    box-shadow: 0 12px 34px rgba(34, 28, 18, 0.1);
    padding: 18px;
}

.table-wrap {
    overflow-x: auto;
}

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

.admin-stat strong {
    display: block;
    font-size: 34px;
}

.dashboard-shell {
    display: grid;
    gap: 24px;
}

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 24px;
    overflow: hidden;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(89, 255, 114, 0.14), rgba(89, 255, 114, 0) 34%),
        #090d12;
    color: #fff;
    box-shadow: 0 18px 52px rgba(8, 10, 13, 0.22);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(89, 255, 114, 0.76), transparent);
}

.dashboard-hero h3 {
    max-width: 720px;
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}

.dashboard-hero p {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-label {
    margin: 0 0 12px !important;
    color: #59ff72 !important;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-hero .button.secondary {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.dashboard-hero-panel {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-hero-panel span,
.dashboard-stat span,
.health-grid span {
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-hero-panel span {
    color: rgba(255, 255, 255, 0.58);
}

.dashboard-hero-panel strong {
    color: #fff;
    font-size: clamp(54px, 8vw, 86px);
    line-height: 0.9;
}

.dashboard-hero-panel p {
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
    box-shadow: 0 12px 34px rgba(34, 28, 18, 0.08);
}

.dashboard-stat strong {
    font-size: 40px;
    line-height: 1;
}

.dashboard-stat small {
    align-self: end;
    color: var(--muted-dark);
    font-weight: 800;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.dashboard-card {
    min-height: 100%;
}

.dashboard-card-large {
    grid-column: span 1;
}

.dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-card-head h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.dashboard-card-head p {
    margin: 0;
}

.dashboard-list {
    display: grid;
    gap: 8px;
}

.dashboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line-dark);
    color: var(--ink-dark);
}

.dashboard-row:first-child {
    border-top: 0;
}

.dashboard-row strong {
    display: block;
}

.dashboard-row span,
.dashboard-row time {
    color: var(--muted-dark);
    font-size: 13px;
}

.dashboard-row-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}

.dashboard-empty {
    padding: 22px;
    border: 1px dashed var(--line-dark);
    border-radius: var(--radius);
    color: var(--muted-dark);
}

.quick-action-grid,
.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-grid a,
.health-grid div {
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8f8f6;
}

.quick-action-grid a {
    display: flex;
    align-items: flex-end;
    color: var(--ink-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.health-grid div {
    display: grid;
    align-content: space-between;
    gap: 12px;
}

.health-grid strong {
    font-size: 28px;
    line-height: 1;
}

.dashboard-two-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-two-list h4 {
    margin: 0 0 10px;
    color: var(--muted-dark);
    font-size: 12px;
    text-transform: uppercase;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line-dark);
}

.mini-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-row strong {
    white-space: nowrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-dark);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted-dark);
}

.inline-status select {
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
}

.order-stats {
    margin-bottom: 20px;
}

.order-toolbar {
    margin-bottom: 20px;
}

.order-filter-form {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(240px, 1fr) minmax(150px, 190px) auto;
    gap: 14px;
    align-items: end;
}

.order-filter-actions,
.bulk-actions,
.order-detail-head,
.order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bulk-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bulk-actions select {
    min-width: 170px;
    padding: 10px 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
}

.order-detail-head {
    margin-bottom: 16px;
}

.order-detail-head h3 {
    margin: 0 0 4px;
    font-size: 28px;
}

.order-detail-head p {
    margin: 0;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.order-info-block h4 {
    margin: 0 0 8px;
    color: var(--muted-dark);
    font-size: 12px;
    text-transform: uppercase;
}

.order-info-block p {
    margin: 0;
}

.order-items-table {
    margin-top: 18px;
}

.order-total-row {
    justify-content: flex-end;
    margin: 18px 0;
    font-size: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending {
    background: #fff7dd;
    border-color: #ead99d;
    color: #705400;
}

.status-paid {
    background: #e8f7ee;
    border-color: #bfe6ce;
    color: #17613a;
}

.status-processing,
.status-shipped {
    background: #eaf3ff;
    border-color: #bfd8f8;
    color: #1c4e8a;
}

.status-completed {
    background: #edf7e6;
    border-color: #cce7bc;
    color: #3a661c;
}

.status-cancelled {
    background: #fdecec;
    border-color: #f3c5c5;
    color: #8b2525;
}

.inline-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.order-select-cell {
    width: 42px;
    text-align: center;
}

.order-select-cell input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.tool-grid {
    display: grid;
    gap: 24px;
}

.tool-card {
    padding: 20px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(34, 28, 18, 0.1);
}

.song-mastering-panel {
    margin-top: 24px;
}

.tool-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.tool-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.master-meter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.master-meter-grid div {
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8fafc;
}

.master-meter-grid span,
.master-meter-grid strong {
    display: block;
}

.master-meter-grid span {
    margin-bottom: 5px;
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.master-meter-grid strong {
    color: var(--ink-dark);
    font-size: 18px;
    line-height: 1;
}

.master-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px;
}

.master-progress[hidden] {
    display: none;
}

.master-progress-track {
    overflow: hidden;
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.12);
}

.master-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #59ff72, #d8ffe0);
    transition: width 160ms ease;
}

.master-progress span {
    min-width: 76px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 900;
    text-align: right;
}

.master-compare {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(180px, 260px);
    gap: 20px;
    align-items: stretch;
    margin: 18px 0;
    padding: 18px;
    border-radius: 8px;
    background: #101827;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.master-compare-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.master-compare-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 300px;
    overflow: hidden;
    border-radius: 5px;
    background: #080f1d;
}

.master-compare-tab {
    min-height: 46px;
    border: 1px solid transparent;
    background: transparent;
    color: #b9c7db;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.master-compare-tab.is-active {
    border-color: rgba(255, 255, 255, 0.16);
    background: #1c293c;
    color: #ffffff;
}

.master-compare-play {
    position: relative;
    width: 72px;
    aspect-ratio: 1;
    margin: 2px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.master-compare-play:hover,
.master-compare-play:focus-visible {
    border-color: rgba(89, 255, 114, 0.72);
    background: rgba(89, 255, 114, 0.08);
    transform: scale(1.03);
}

.master-compare-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #ffffff;
    transform: translate(-50%, -50%);
}

.master-compare-play.is-playing::before,
.master-compare-play.is-playing::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 24px;
    border: 0;
    border-radius: 2px;
    background: #ffffff;
    transform: translateY(-50%);
}

.master-compare-play.is-playing::before {
    left: 28px;
}

.master-compare-play.is-playing::after {
    left: 39px;
}

.master-compare-meta {
    display: grid;
    gap: 4px;
}

.master-compare-meta strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
}

.master-compare-meta span {
    color: #dbe7f6;
    font-size: 14px;
}

.master-karaoke-live {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(89, 255, 114, 0.18);
    border-radius: 8px;
    background: rgba(89, 255, 114, 0.06);
}

.master-karaoke-live strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: clamp(17px, 2vw, 26px);
    line-height: 1.18;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.master-karaoke-live span {
    overflow-wrap: anywhere;
    color: rgba(219, 231, 246, 0.78);
    font-size: 13px;
    line-height: 1.3;
}

.master-compare-seek {
    display: grid;
    gap: 2px;
}

.master-compare-seek input[type="range"] {
    width: 100%;
    accent-color: #59ff72;
}

.master-compare-seek div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #cfe7ff;
    font-size: 12px;
}

.master-compare-art {
    min-width: 0;
}

.master-compare-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 214px;
    max-height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
}

.master-audio-element {
    display: none;
}

.master-lyrics-panel {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: #f8fafc;
}

.master-lyrics-panel .tool-head {
    margin-bottom: 12px;
}

.master-lyrics-panel h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.master-lyrics-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.master-lyrics-output textarea {
    min-height: 310px;
    color: var(--ink-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre;
}

.generator-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.generator-output,
.template-preview textarea {
    width: 100%;
    min-height: 260px;
    padding: 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f8f8f6;
    color: var(--ink-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
}

.template-preview {
    display: grid;
    gap: 8px;
}

.template-preview label {
    color: var(--muted-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.lyrics-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.lyrics-preview {
    position: relative;
    min-height: 560px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #00ff00;
    overflow: hidden;
}

.lyrics-track {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 0;
    color: #fff;
    --lyrics-highlight: #ffff00;
    font-family: Arial, sans-serif;
    font-size: 58px;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.72);
    white-space: pre-line;
    will-change: transform;
}

.lyrics-line {
    opacity: 0.58;
    transform: scale(0.96);
    transition: color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.lyrics-line.is-active {
    color: var(--lyrics-highlight);
    opacity: 1;
    transform: scale(1.06);
}

.lyrics-lrc-output {
    margin-top: 18px;
}

.lyrics-lrc-output textarea {
    min-height: 220px;
    color: var(--ink-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.animation-layout {
    display: grid;
    grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.animation-tool-card {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.6vw, 28px);
    border-color: rgba(17, 24, 39, 0.1);
    background:
        linear-gradient(135deg, rgba(89, 255, 114, 0.08), rgba(89, 255, 114, 0) 32%),
        #ffffff;
}

.animation-tool-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(89, 255, 114, 0.05);
}

.animation-tool-head {
    position: relative;
    z-index: 1;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.animation-tool-head h3 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
}

.animation-export-badge {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(89, 255, 114, 0.38);
    border-radius: 999px;
    background: rgba(89, 255, 114, 0.1);
    color: #0b5d1d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.animation-control-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.animation-section {
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.animation-section-title,
.animation-preview-topbar,
.animation-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.animation-section-title {
    margin-bottom: 12px;
}

.animation-section-title span,
.animation-preview-topbar strong {
    color: var(--ink-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.animation-section-title small,
.animation-preview-topbar span,
.animation-preview-footer {
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.animation-preset-grid,
.animation-choice-row {
    display: grid;
    gap: 10px;
}

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

.animation-choice-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.animation-preset,
.animation-choice {
    display: grid;
    gap: 4px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--ink-dark);
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.animation-preset:hover,
.animation-choice:hover,
.animation-preset.is-active,
.animation-choice.is-active {
    border-color: rgba(89, 255, 114, 0.72);
    background: #f0fff3;
    box-shadow: 0 10px 24px rgba(89, 255, 114, 0.12);
    transform: translateY(-1px);
}

.animation-preset strong,
.animation-choice strong {
    font-size: 13px;
    font-weight: 900;
}

.animation-preset span,
.animation-choice span {
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 800;
}

.animation-native-select {
    margin-top: 12px;
    margin-bottom: 0;
}

.animation-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.animation-form-grid .field {
    margin-bottom: 0;
}

.animation-form-grid input[type="color"] {
    min-height: 46px;
    padding: 6px;
}

.animation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.animation-actions .button {
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
}

.animation-preview-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(89, 255, 114, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(89, 255, 114, 0.1), rgba(89, 255, 114, 0)),
        #07090b;
    box-shadow: 0 22px 56px rgba(7, 9, 11, 0.28);
}

.animation-preview-topbar,
.animation-preview-footer {
    color: #fff;
}

.animation-preview-topbar strong {
    display: block;
    color: #fff;
}

.animation-preview-topbar span,
.animation-preview-footer {
    color: rgba(255, 255, 255, 0.58);
}

.animation-live-dot {
    position: relative;
    padding-left: 14px;
}

.animation-live-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #59ff72;
    box-shadow: 0 0 12px rgba(89, 255, 114, 0.78);
    transform: translateY(-50%);
}

.animation-canvas-shell {
    display: grid;
    place-items: center;
    min-height: min(64vh, 720px);
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        #030405;
}

.animation-canvas {
    width: 100%;
    max-height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: #050607;
    object-fit: contain;
    justify-self: center;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.animation-status {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(89, 255, 114, 0.2);
    border-radius: 14px;
    background: rgba(89, 255, 114, 0.08);
    color: #20592c;
    font-size: 13px;
    font-weight: 700;
}

.animation-preview-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.animation-preview-footer span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.asset-actions .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
}

.editor-canvas {
    width: 100%;
    max-height: 680px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #f6f3ee;
    object-fit: contain;
}

.editor-canvas-wide {
    aspect-ratio: 16 / 9;
}

.editor-canvas-tall {
    aspect-ratio: 9 / 16;
    max-width: 380px;
    justify-self: center;
}

.editor-canvas-album {
    aspect-ratio: 1 / 1;
    max-width: 560px;
    justify-self: center;
    background: #050505;
}

.tool-audio {
    width: 100%;
    margin-top: 16px;
}

.canvas-audio-preview {
    margin-top: 10px;
}

.thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    background: #e7e0d5;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #07090b;
}

.login-page.mode-day {
    background:
        radial-gradient(circle at top right, rgba(89, 255, 114, 0.08), transparent 32%),
        #f4f6f8;
}

.login-page.mode-night {
    background:
        radial-gradient(circle at top right, rgba(89, 255, 114, 0.14), transparent 32%),
        #07090b;
}

@media (prefers-color-scheme: dark) {
    .login-page.mode-system {
        background:
            radial-gradient(circle at top right, rgba(89, 255, 114, 0.14), transparent 32%),
            #07090b;
    }
}

@media (prefers-color-scheme: light) {
    .login-page.mode-system {
        background:
            radial-gradient(circle at top right, rgba(89, 255, 114, 0.08), transparent 32%),
            #f4f6f8;
    }
}

.login-card {
    position: relative;
    width: min(420px, 100%);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-mode-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* Modern responsive admin shell shared by every editor page. */
.admin-body {
    background:
        radial-gradient(circle at top right, rgba(89, 255, 114, 0.08), transparent 32%),
        #f4f6f8;
}

.admin-shell {
    grid-template-columns: 268px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
    background:
        linear-gradient(180deg, rgba(89, 255, 114, 0.1), rgba(89, 255, 114, 0) 28%),
        #07090b;
}

.admin-sidebar h1 {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.admin-sidebar a,
.admin-sidebar button {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
}

.admin-sidebar a.is-active {
    border-color: rgba(89, 255, 114, 0.2);
    background: rgba(89, 255, 114, 0.12);
    color: #fff;
}

.admin-sidebar a.is-active::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 999px;
    background: #59ff72;
    box-shadow: 0 0 16px rgba(89, 255, 114, 0.8);
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-main {
    width: min(1440px, 100%);
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
}

.admin-top {
    position: relative;
    min-height: 96px;
    padding: 20px 22px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(34, 28, 18, 0.08);
}

.admin-section-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-top h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.admin-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-dark);
}

.admin-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.admin-card,
.table-wrap,
.form-panel,
.tool-card {
    border-color: rgba(17, 24, 39, 0.1);
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.admin-main .form-panel {
    position: relative;
    overflow: hidden;
}

.admin-main .form-panel::before,
.tool-card::before {
    content: "";
    display: block;
    height: 3px;
    margin: -18px -18px 18px;
    background: linear-gradient(90deg, #59ff72, rgba(17, 24, 39, 0.18));
}

.animation-tool-card::before {
    height: 4px;
    margin: calc(clamp(18px, 2.6vw, 28px) * -1) calc(clamp(18px, 2.6vw, 28px) * -1) 24px;
    background: linear-gradient(90deg, #59ff72, rgba(89, 255, 114, 0.18), rgba(17, 24, 39, 0.08));
}

.admin-main .field input,
.admin-main .field select,
.admin-main .field textarea {
    min-height: 46px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.admin-main .field input:focus,
.admin-main .field select:focus,
.admin-main .field textarea:focus {
    outline: 0;
    border-color: rgba(17, 24, 39, 0.42);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.admin-main textarea {
    min-height: 118px;
}

.admin-main .biography-form {
    max-width: 980px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 16px;
}

.admin-main .biography-body-field {
    gap: 10px;
}

.admin-main .biography-textarea {
    min-height: 360px;
    padding: 18px 20px;
    border-radius: 14px;
    line-height: 1.7;
    resize: vertical;
}

.admin-main .form-panel > .button,
.admin-main .form-panel > a.button {
    margin-top: 6px;
}

.admin-table {
    min-width: 720px;
}

.admin-table th {
    background: #f8fafc;
}

.admin-table tbody tr {
    transition: background 140ms ease;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-table td:last-child {
    white-space: nowrap;
}

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

.tool-card {
    position: relative;
}

.admin-body {
    --admin-bg: #f4f6f8;
    --admin-surface: #ffffff;
    --admin-surface-2: #f8fafc;
    --admin-ink: #151515;
    --admin-muted: #69717d;
    --admin-line: rgba(17, 24, 39, 0.12);
    --admin-field-bg: #ffffff;
    --admin-field-ink: #151515;
    --admin-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
    background:
        radial-gradient(circle at top right, rgba(89, 255, 114, 0.08), transparent 32%),
        var(--admin-bg);
    color: var(--admin-ink);
}

.admin-body.mode-night {
    --admin-bg: #07090b;
    --admin-surface: #11161c;
    --admin-surface-2: #151b22;
    --admin-ink: #f7f8f9;
    --admin-muted: #a6afba;
    --admin-line: rgba(255, 255, 255, 0.14);
    --admin-field-bg: #0d1117;
    --admin-field-ink: #f7f8f9;
    --admin-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
    .admin-body.mode-system {
        --admin-bg: #07090b;
        --admin-surface: #11161c;
        --admin-surface-2: #151b22;
        --admin-ink: #f7f8f9;
        --admin-muted: #a6afba;
        --admin-line: rgba(255, 255, 255, 0.14);
        --admin-field-bg: #0d1117;
        --admin-field-ink: #f7f8f9;
        --admin-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    }
}

.admin-body .admin-top,
.admin-body .admin-card,
.admin-body .table-wrap,
.admin-body .form-panel,
.admin-body .tool-card,
.admin-body .dashboard-stat,
.admin-body .login-card {
    border-color: var(--admin-line);
    background: var(--admin-surface);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-body .muted,
.admin-body .admin-section-label,
.admin-body .dashboard-hero-panel span,
.admin-body .dashboard-stat span,
.admin-body .dashboard-stat small,
.admin-body .health-grid span,
.admin-body .dashboard-row span,
.admin-body .dashboard-row time,
.admin-body .dashboard-empty,
.admin-body .dashboard-two-list h4,
.admin-body .template-preview label,
.admin-body .field label,
.admin-body .video-converter-grid label,
.admin-body .video-thumbnail-grid label,
.admin-body .animation-section-title small,
.admin-body .animation-preset span,
.admin-body .animation-choice span,
.admin-body .video-converter-progress span,
.admin-body .master-meter-grid span,
.admin-body .master-progress span {
    color: var(--admin-muted);
}

.admin-body .admin-top h2,
.admin-body .dashboard-row,
.admin-body .dashboard-row strong,
.admin-body .quick-action-grid a,
.admin-body .health-grid strong,
.admin-body .visibility-panel h3,
.admin-body .animation-section-title span,
.admin-body .animation-preset,
.admin-body .animation-choice,
.admin-body .checkbox-field,
.admin-body .option-mode-choice,
.admin-body .option-mode-choice span,
.admin-body .master-meter-grid strong {
    color: var(--admin-ink);
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea,
.admin-body .inline-status select,
.admin-body .bulk-actions select,
.admin-body .sort-form select,
.admin-body .qty-input,
.admin-body .generator-output,
.admin-body .template-preview textarea,
.admin-body .master-lyrics-output textarea {
    border-color: var(--admin-line);
    background: var(--admin-field-bg);
    color: var(--admin-field-ink);
}

.admin-body .admin-nav-toggle,
.admin-body .mini-button,
.admin-body .checkbox-field,
.admin-body .visibility-panel,
.admin-body .product-options-builder,
.admin-body .image-converter-panel,
.admin-body .video-converter-panel,
.admin-body .video-thumbnail-generator,
.admin-body .master-meter-grid div,
.admin-body .master-lyrics-panel,
.admin-body .upload-fix-panel,
.admin-body .quick-action-grid a,
.admin-body .health-grid div,
.admin-body .dashboard-empty,
.admin-body .animation-tool-card,
.admin-body .animation-section,
.admin-body .animation-preset,
.admin-body .animation-choice {
    border-color: var(--admin-line);
    background: var(--admin-surface-2);
}

.admin-body .master-progress-track {
    background: var(--admin-line);
}

.admin-body .admin-table th {
    background: var(--admin-surface-2);
    color: var(--admin-muted);
}

.admin-body .admin-table th,
.admin-body .admin-table td,
.admin-body .dashboard-row,
.admin-body .mini-row,
.admin-body .order-detail-grid {
    border-color: var(--admin-line);
}

.admin-body .admin-table tbody tr:hover {
    background: var(--admin-surface-2);
}

.admin-body .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    align-items: start;
    gap: 18px;
}

.admin-body .form-grid .field {
    min-width: 0;
    margin: 0;
}

.admin-body .form-grid .field.full {
    grid-column: 1 / -1;
}

.admin-body .field {
    gap: 8px;
}

.admin-body .field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.admin-body .field:focus-within label {
    color: var(--admin-ink);
}

.admin-body [data-canvas-policy-status].is-error {
    color: #ef4444;
    font-weight: 800;
}

.admin-body .admin-mode-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    border-color: var(--admin-line);
    background: var(--admin-surface-2);
    color: var(--admin-ink);
}

.admin-body .admin-mode-toggle:hover {
    border-color: var(--accent);
}

.admin-body .mini-button:hover,
.admin-body .admin-main .field input:focus,
.admin-body .admin-main .field select:focus,
.admin-body .admin-main .field textarea:focus {
    border-color: rgba(89, 255, 114, 0.54);
    box-shadow: 0 0 0 4px rgba(89, 255, 114, 0.12);
}

.admin-body .admin-main .field input,
.admin-body .admin-main .field select,
.admin-body .admin-main .field textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    border-radius: 14px;
    border-color: var(--admin-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        var(--admin-field-bg);
    color: var(--admin-field-ink);
    font-size: 14px;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-body .admin-main .field textarea {
    min-height: 130px;
    padding-block: 14px;
    line-height: 1.55;
}

.admin-body .admin-main .field select {
    padding-right: 38px;
    cursor: pointer;
}

.admin-body .admin-main .field input[type="color"] {
    min-height: 48px;
    padding: 6px;
    cursor: pointer;
}

.admin-body .admin-main .field input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.admin-body .admin-main .field input[type="range"] {
    min-height: 34px;
    padding-inline: 0;
    background: transparent;
    box-shadow: none;
}

.admin-body .admin-main .field input[type="range"],
.admin-body .video-thumbnail-grid input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 34px;
    accent-color: var(--accent);
}

.admin-body .admin-main .field input[type="range"]::-webkit-slider-runnable-track,
.admin-body .video-thumbnail-grid input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(89, 255, 114, 0.72), rgba(17, 24, 39, 0.16));
}

.admin-body .admin-main .field input[type="range"]::-webkit-slider-thumb,
.admin-body .video-thumbnail-grid input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border: 3px solid var(--admin-surface);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}

.admin-body .admin-main .field input[type="range"]::-moz-range-track,
.admin-body .video-thumbnail-grid input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(89, 255, 114, 0.72), rgba(17, 24, 39, 0.16));
}

.admin-body .admin-main .field input[type="range"]::-moz-range-thumb,
.admin-body .video-thumbnail-grid input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid var(--admin-surface);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}

.admin-body .range-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 22px;
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: var(--admin-surface-2);
    color: var(--admin-ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-body .admin-main .field input::placeholder,
.admin-body .admin-main .field textarea::placeholder {
    color: var(--admin-muted);
    opacity: 0.72;
}

.admin-body .form-grid .muted,
.admin-body .field small.muted {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.45;
}

.admin-body .tool-template-presets .video-thumbnail-grid,
.admin-body .video-thumbnail-generator .video-thumbnail-grid,
.admin-body .video-converter-grid,
.admin-body .option-builder-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.admin-body .tool-template-presets .video-thumbnail-grid label,
.admin-body .video-thumbnail-generator .video-thumbnail-grid label,
.admin-body .video-converter-grid label {
    min-width: 0;
}

.admin-body .video-thumbnail-generator {
    gap: 14px;
    padding: clamp(14px, 2vw, 18px);
    overflow: visible;
}

.admin-body .video-thumbnail-generator-head,
.admin-body .video-converter-head {
    align-items: center;
}

.admin-body .video-thumbnail-generator-head > div:first-child,
.admin-body .video-converter-head > div:first-child {
    min-width: min(100%, 260px);
}

.admin-body .video-thumbnail-grid label,
.admin-body .video-converter-grid label {
    min-height: 0;
    padding: 0;
    letter-spacing: 0.04em;
}

.admin-body .video-thumbnail-grid label.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    text-transform: none;
}

.admin-body .video-thumbnail-grid label.checkbox-field span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-body .video-thumbnail-grid input:not([type="checkbox"]),
.admin-body .video-thumbnail-grid select,
.admin-body .video-converter-grid input,
.admin-body .video-converter-grid select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: var(--admin-field-bg);
    color: var(--admin-field-ink);
    font-size: 13px;
    line-height: 1.35;
}

.admin-body .video-thumbnail-grid input[type="color"] {
    min-height: 44px;
    padding: 5px;
    cursor: pointer;
}

.admin-body .video-thumbnail-grid input[type="file"] {
    padding: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.admin-body .video-thumbnail-grid input[type="range"] {
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.admin-body .video-thumbnail-grid input:focus,
.admin-body .video-thumbnail-grid select:focus,
.admin-body .video-converter-grid input:focus,
.admin-body .video-converter-grid select:focus {
    outline: 0;
    border-color: rgba(89, 255, 114, 0.54);
    box-shadow: 0 0 0 4px rgba(89, 255, 114, 0.12);
}

.admin-body .video-thumbnail-grid input[type="range"]:focus {
    box-shadow: none;
}

.admin-body .video-thumbnail-canvas,
.admin-body .video-converter-preview {
    display: block;
    width: min(100%, 760px);
    max-width: 100%;
}

.admin-body .video-thumbnail-canvas {
    justify-self: start;
}

.admin-body .image-converter-actions {
    align-items: center;
    gap: 8px;
}

.admin-body .image-converter-actions .mini-button {
    flex: 0 0 auto;
}

.admin-body .image-converter-actions .muted {
    min-width: min(100%, 220px);
}

.admin-body .tool-card .editor-layout,
.admin-body .tool-card .animation-layout {
    grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1fr);
    gap: 16px;
}

.admin-body .tool-card .editor-layout > canvas,
.admin-body .tool-card .animation-preview-panel {
    position: sticky;
    top: 82px;
    align-self: start;
}

.admin-body .tool-card .editor-layout > canvas {
    max-height: calc(100vh - 112px);
}

.admin-body .tool-card .animation-preview-panel {
    max-height: calc(100vh - 112px);
    overflow: auto;
}

.admin-body .tool-card .animation-canvas-shell {
    min-height: min(52vh, 520px);
    padding: 10px;
}

.admin-body .tool-card .animation-canvas {
    max-height: min(58vh, 560px);
}

.admin-body .tool-card .form-grid,
.admin-body .tool-card .animation-form-grid,
.admin-body .tool-card .video-thumbnail-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
    gap: 9px;
}

.admin-body .tool-card .field {
    gap: 5px;
}

.admin-body .tool-card .field label,
.admin-body .tool-card .video-thumbnail-grid label,
.admin-body .tool-card .animation-section-title span,
.admin-body .tool-card .animation-preview-topbar strong {
    min-height: 16px;
    font-size: 10px;
    line-height: 1.25;
}

.admin-body .tool-card .animation-section-title small,
.admin-body .tool-card .animation-preview-topbar span,
.admin-body .tool-card .animation-preview-footer,
.admin-body .tool-card .field small.muted {
    font-size: 10px;
    line-height: 1.35;
}

.admin-body .tool-card .admin-main .field input,
.admin-body .tool-card .admin-main .field select,
.admin-body .tool-card .admin-main .field textarea,
.admin-body .admin-main .tool-card .field input,
.admin-body .admin-main .tool-card .field select,
.admin-body .admin-main .tool-card .field textarea,
.admin-body .tool-card .video-thumbnail-grid input:not([type="checkbox"]),
.admin-body .tool-card .video-thumbnail-grid select {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.admin-body .admin-main .tool-card .field textarea {
    min-height: 86px;
    padding-block: 9px;
}

.admin-body .admin-main .tool-card .field input[type="color"],
.admin-body .tool-card .video-thumbnail-grid input[type="color"] {
    min-height: 36px;
    padding: 4px;
}

.admin-body .admin-main .tool-card .field input[type="file"],
.admin-body .tool-card .video-thumbnail-grid input[type="file"] {
    padding: 7px;
}

.admin-body .admin-main .tool-card .field input[type="range"],
.admin-body .tool-card .video-thumbnail-grid input[type="range"] {
    min-height: 24px;
    height: 24px;
}

.admin-body .tool-card .range-value {
    min-width: 34px;
    min-height: 18px;
    padding: 2px 6px;
    font-size: 10px;
}

.admin-body .tool-card .button,
.admin-body .tool-card .mini-button {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.admin-body .tool-card .animation-actions {
    gap: 8px;
}

.admin-body .tool-card .animation-actions .button {
    min-height: 34px;
}

.admin-body .tool-card .animation-control-panel,
.admin-body .tool-card .animation-preview-panel {
    gap: 10px;
}

.admin-body .tool-card .animation-section,
.admin-body .tool-card .video-thumbnail-generator {
    padding: 10px;
    border-radius: 12px;
}

.admin-body .tool-card .animation-section-title {
    margin-bottom: 8px;
}

.admin-body .tool-card .animation-preset-grid,
.admin-body .tool-card .animation-choice-row {
    gap: 8px;
}

.admin-body .tool-card .animation-preset,
.admin-body .tool-card .animation-choice {
    min-height: 54px;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
}

.admin-body .tool-card .animation-preset strong,
.admin-body .tool-card .animation-choice strong {
    font-size: 11px;
}

.admin-body .tool-card .animation-preset span,
.admin-body .tool-card .animation-choice span {
    font-size: 10px;
}

.admin-body .tool-card .video-thumbnail-generator {
    gap: 9px;
}

.admin-body .tool-card .video-thumbnail-generator-head {
    gap: 10px;
}

.admin-body .tool-card .video-thumbnail-generator-head > div:first-child {
    min-width: min(100%, 210px);
}

.admin-body .tool-card .video-thumbnail-grid label.checkbox-field {
    min-height: 36px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
}

.admin-body .admin-main .form-panel {
    padding: clamp(14px, 1.8vw, 18px);
}

.admin-body .admin-main .form-panel .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.admin-body .admin-main .form-panel .field {
    gap: 6px;
}

.admin-body .admin-main .form-panel .field label,
.admin-body .admin-main .form-panel .checkbox-field,
.admin-body .admin-main .form-panel .option-mode-choice {
    font-size: 10px;
    line-height: 1.3;
}

.admin-body .admin-main .form-panel .field input,
.admin-body .admin-main .form-panel .field select,
.admin-body .admin-main .form-panel .field textarea,
.admin-body .admin-main .form-panel .qty-input,
.admin-body .admin-main .form-panel .generator-output,
.admin-body .admin-main .inline-status select,
.admin-body .admin-main .bulk-actions select,
.admin-body .admin-main .sort-form select {
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 13px;
}

.admin-body .admin-main .form-panel .field textarea {
    min-height: 96px;
    line-height: 1.5;
}

.admin-body .admin-main .form-panel .field input[type="color"] {
    min-height: 40px;
    padding: 5px;
}

.admin-body .admin-main .form-panel .field input[type="file"] {
    padding: 8px;
}

.admin-body .admin-main .form-panel .button,
.admin-body .admin-main .form-panel .mini-button,
.admin-body .admin-main .admin-card .button,
.admin-body .admin-main .admin-card .mini-button {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 11px;
}

.admin-body .admin-main .form-panel .checkbox-field,
.admin-body .admin-main .form-panel .option-mode-choice,
.admin-body .admin-main .visibility-panel,
.admin-body .admin-main .product-options-builder,
.admin-body .admin-main .image-converter-panel,
.admin-body .admin-main .video-converter-panel,
.admin-body .admin-main .upload-fix-panel {
    border-radius: 12px;
}

.admin-body .admin-main .form-panel .video-thumbnail-generator {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
    align-items: start;
    column-gap: 14px;
}

.admin-body .admin-main .form-panel .video-thumbnail-generator > :not(.video-thumbnail-canvas) {
    grid-column: 1;
}

.admin-body .admin-main .form-panel .video-thumbnail-canvas {
    grid-column: 2;
    grid-row: 1 / span 18;
    position: sticky;
    top: 82px;
    width: 100%;
    max-height: calc(100vh - 112px);
    object-fit: contain;
    justify-self: stretch;
}

.admin-body .admin-main .form-panel .video-thumbnail-generator [data-video-thumbnail-status] {
    grid-column: 2;
    position: sticky;
    top: calc(82px + min(100vw, 720px) * 0.5625 + 10px);
}

.admin-body .admin-main .biography-form {
    padding: clamp(16px, 2.2vw, 24px);
}

.admin-body .admin-main .biography-textarea {
    min-height: 320px;
    padding: 16px 18px;
    border-radius: 14px;
}

body:not(.admin-body) .product-grid,
body:not(.admin-body) .gallery-grid,
body:not(.admin-body) .song-grid,
body:not(.admin-body) .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body:not(.admin-body) .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body:not(.admin-body) .release-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body:not(.admin-body) .product-card,
body:not(.admin-body) .song-card,
body:not(.admin-body) .video-card,
body:not(.admin-body) .gallery-card,
body:not(.admin-body) .category-tile,
body:not(.admin-body) .gig-row,
body:not(.admin-body) .cart-panel,
body:not(.admin-body) .form-panel,
body:not(.admin-body) .release-promo-item {
    min-width: 0;
}

body:not(.admin-body) .product-body,
body:not(.admin-body) .song-body,
body:not(.admin-body) .video-body,
body:not(.admin-body) .gallery-body,
body:not(.admin-body) .cart-panel,
body:not(.admin-body) .form-panel,
body:not(.admin-body) .bio-copy {
    padding: clamp(15px, 2.4vw, 22px);
}

body:not(.admin-body) .product-body h3,
body:not(.admin-body) .song-body h3,
body:not(.admin-body) .video-body h3,
body:not(.admin-body) .gallery-body h3,
body:not(.admin-body) .release-card h2,
body:not(.admin-body) .release-card h3 {
    overflow-wrap: anywhere;
}

body:not(.admin-body) .card-social-actions {
    max-width: 100%;
}

body:not(.admin-body) .social-action-button.icon-only {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
}

.admin-body .form-panel > .button,
.admin-body .form-panel > a.button,
.admin-body .actions .button {
    min-height: 42px;
}

.admin-body .form-panel .button + .button,
.admin-body .form-panel .button + a.button,
.admin-body .form-panel a.button + .button {
    margin-left: 8px;
}

.admin-body.mode-night .status-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--admin-line);
    color: var(--admin-ink);
}

.admin-body.mode-night .status-pending {
    background: rgba(234, 217, 157, 0.14);
    border-color: rgba(234, 217, 157, 0.3);
    color: #ffe69b;
}

.admin-body.mode-night .status-paid,
.admin-body.mode-night .status-completed {
    background: rgba(89, 255, 114, 0.12);
    border-color: rgba(89, 255, 114, 0.28);
    color: #bfffc9;
}

.admin-body.mode-night .status-processing,
.admin-body.mode-night .status-shipped {
    background: rgba(114, 173, 255, 0.14);
    border-color: rgba(114, 173, 255, 0.3);
    color: #bfd8ff;
}

.admin-body.mode-night .status-cancelled {
    background: rgba(255, 120, 120, 0.13);
    border-color: rgba(255, 120, 120, 0.28);
    color: #ffd0d0;
}

@media (prefers-color-scheme: dark) {
    .admin-body.mode-system .status-badge {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--admin-line);
        color: var(--admin-ink);
    }

    .admin-body.mode-system .status-pending {
        background: rgba(234, 217, 157, 0.14);
        border-color: rgba(234, 217, 157, 0.3);
        color: #ffe69b;
    }

    .admin-body.mode-system .status-paid,
    .admin-body.mode-system .status-completed {
        background: rgba(89, 255, 114, 0.12);
        border-color: rgba(89, 255, 114, 0.28);
        color: #bfffc9;
    }

    .admin-body.mode-system .status-processing,
    .admin-body.mode-system .status-shipped {
        background: rgba(114, 173, 255, 0.14);
        border-color: rgba(114, 173, 255, 0.3);
        color: #bfd8ff;
    }

    .admin-body.mode-system .status-cancelled {
        background: rgba(255, 120, 120, 0.13);
        border-color: rgba(255, 120, 120, 0.28);
        color: #ffd0d0;
    }
}

/* Public responsive refinements. */
.page-shell,
main {
    min-width: 0;
}

.product-card,
.song-card,
.video-card,
.gallery-card,
.category-tile {
    min-width: 0;
}

.product-body,
.song-body,
.video-body,
.gallery-body {
    min-width: 0;
}

.product-body h3,
.song-body h3,
.video-body h3,
.gallery-body h3,
.category-tile h3 {
    overflow-wrap: anywhere;
}

.admin-quick-edit {
    max-width: calc(100vw - 24px);
}

@media (max-width: 1180px) {
    .product-grid,
    .gallery-grid,
    .song-grid,
    .video-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-header {
        gap: 16px;
        padding-inline: 22px;
    }

    .site-nav a {
        padding-inline: 9px;
    }
}

@media (max-width: 980px) {
    .product-grid,
    .gallery-grid,
    .song-grid,
    .video-grid,
    .category-grid,
    .admin-grid,
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-layout,
    .checkout-layout,
    .editor-layout,
    .animation-layout,
    .generator-layout,
    .lyrics-layout,
    .master-compare,
    .master-lyrics-grid,
    .dashboard-hero,
    .dashboard-layout,
    .order-detail-grid,
    .order-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-body .tool-card .editor-layout,
    .admin-body .tool-card .animation-layout {
        grid-template-columns: 1fr;
    }

    .admin-body .tool-card .editor-layout > canvas,
    .admin-body .tool-card .animation-preview-panel {
        position: static;
        max-height: none;
    }

    .admin-body .admin-main .form-panel .video-thumbnail-generator {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-main .form-panel .video-thumbnail-generator > *,
    .admin-body .admin-main .form-panel .video-thumbnail-generator > :not(.video-thumbnail-canvas),
    .admin-body .admin-main .form-panel .video-thumbnail-canvas,
    .admin-body .admin-main .form-panel .video-thumbnail-generator [data-video-thumbnail-status] {
        grid-column: 1;
        grid-row: auto;
        position: static;
        top: auto;
        max-height: none;
    }

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

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(322px, calc(100vw - 42px));
        transform: translateX(-106%);
        transition: transform 180ms ease;
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.28);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(7, 9, 11, 0.48);
        opacity: 0;
        visibility: hidden;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .admin-sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .admin-nav-toggle {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .admin-top {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .site-header {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 18px;
        right: 18px;
        display: none;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--menu-bg);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a,
    .cart-pill {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 12px;
    }

    .mode-toggle {
        align-self: flex-start;
        margin: 4px 0 0;
    }

    .nav-dropdown,
    .nav-menu {
        position: static;
    }

    .nav-menu {
        min-width: 0;
        margin: 0 0 8px 12px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 1px solid var(--line);
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 760px) {
    .brand {
        min-width: 0;
        font-size: 18px;
    }

    .brand-logo {
        height: 36px;
        max-width: 132px;
    }

    .brand-text {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        min-height: min(720px, calc(100svh - 68px));
        background-position: center top;
    }

    .hero-copy {
        padding: 68px 0;
    }

    .hero h1,
    .page-hero h1,
    .section-head h2,
    .page-title {
        overflow-wrap: anywhere;
    }

    .section-head,
    .shop-tools,
    .footer-bottom {
        display: block;
    }

    .sort-form {
        margin-top: 14px;
        align-items: stretch;
        flex-direction: column;
    }

    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .filter {
        flex: 0 0 auto;
    }

    .product-grid,
    .gallery-grid,
    .song-grid,
    .video-grid,
    .category-grid,
    .form-grid,
    .option-builder-grid,
    .video-converter-grid,
    .video-thumbnail-grid,
    .option-mode-row,
    .option-builder-actions,
    .visibility-grid,
    .site-footer,
    .admin-grid,
    .dashboard-stats,
    .dashboard-two-list,
    .quick-action-grid,
    .health-grid {
        grid-template-columns: 1fr;
    }

    .animation-tool-head,
    .video-thumbnail-generator-head,
    .video-converter-head,
    .animation-section-title,
    .animation-preview-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .image-converter-actions,
    .video-thumbnail-generator-head .image-converter-actions,
    .video-converter-head .image-converter-actions {
        width: 100%;
    }

    .video-thumbnail-generator-head .mini-button,
    .video-converter-head .mini-button {
        flex: 1 1 130px;
    }

    .animation-actions,
    .animation-choice-row {
        grid-template-columns: 1fr;
    }

    .dashboard-row,
    .dashboard-card-head,
    .dashboard-row-end {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .dashboard-hero {
        padding: 20px;
    }

    .dashboard-stat {
        min-height: 120px;
    }

    .gig-row {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 72px 1fr;
        align-items: start;
    }

    .cart-line img {
        width: 72px;
        height: 72px;
    }

    .cart-line .qty-input,
    .cart-line > strong,
    .cart-line button {
        grid-column: 2;
        justify-self: start;
    }

    .cart-line button,
    .product-card .button,
    .form-panel .button,
    .cart-panel .button {
        width: 100%;
    }

    .actions .button {
        flex: 1 1 180px;
    }

    .release-card {
        min-height: 214px;
        padding-inline: 16px;
    }

    .release-card h2 {
        font-size: clamp(21px, 7vw, 28px);
    }

    .release-card h3 {
        font-size: clamp(14px, 4.6vw, 18px);
    }

    .release-presave {
        align-items: center;
    }

    .checkout-summary-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-summary-badges {
        width: 100%;
    }

    .admin-quick-edit {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    :root {
        --page-gutter: 14px;
    }

    .site-header {
        padding-inline: var(--page-gutter);
    }

    .hero-inner,
    .section,
    .split-section,
    .page-hero {
        width: 100%;
    }

    .section {
        padding-block: 44px;
    }

    .page-hero {
        padding-top: 42px;
    }

    .tool-card,
    .admin-card,
    .table-wrap,
    .cart-panel,
    .form-panel {
        padding: 16px;
    }

    .animation-tool-card {
        padding: 16px;
    }

    .animation-tool-card::before {
        margin: -16px -16px 18px;
    }

    .animation-preset-grid,
    .animation-form-grid {
        grid-template-columns: 1fr;
    }

    .animation-section,
    .animation-preview-panel {
        border-radius: 14px;
        padding: 14px;
    }

    .animation-canvas-shell {
        min-height: 360px;
        padding: 10px;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-top {
        min-height: 0;
        padding: 16px;
    }

    .admin-main .form-panel::before,
    .tool-card::before {
        margin: -16px -16px 16px;
    }

    .admin-table {
        min-width: 620px;
    }

    .lyrics-preview {
        min-height: 420px;
    }

    .lyrics-track {
        font-size: 42px;
    }

    .loader {
        width: 50px;
    }
}
