/* ==========================================================
   THE STUDIO 1.0
   FOUNDATION EDITION
   ========================================================== */


/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
}

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

button {
    border: 0;
}

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

/* ==========================================================
   GLOBAL
   ========================================================== */

body {
    overflow: hidden;

    color: var(--text-primary);
    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(140, 99, 43, 0.12),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            var(--background-deep),
            #0c0e12 55%,
            #11100e
        );

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button {
    color: inherit;
}

::selection {
    color: #16130d;
    background: var(--accent-gold-bright);
}


/* ==========================================================
   APPLICATION SHELL
   ========================================================== */

.studio-app {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);

    min-height: 100vh;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {
    position: relative;
    z-index: 10;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100vh;

    padding: 28px 20px 22px;

    border-right: 1px solid var(--border-subtle);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent 22%
        ),
        var(--background-sidebar);

    box-shadow: 18px 0 55px rgba(0, 0, 0, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 66px;
    padding: 0 10px 25px;

    border-bottom: 1px solid var(--border-subtle);
}

.brand-symbol {
    position: relative;

    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    flex: 0 0 auto;

    border: 1px solid rgba(225, 196, 135, 0.35);
    border-radius: 50%;

    color: var(--accent-gold-bright);
    background:
        radial-gradient(
            circle at 35% 32%,
            rgba(255, 255, 255, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #211d16,
            #111214
        );

    box-shadow:
        inset 0 0 0 6px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.34);
}

.brand-symbol::after {
    position: absolute;

    width: 7px;
    height: 7px;

    content: "";

    border-radius: 50%;

    background: var(--accent-gold);
    box-shadow: 0 0 14px rgba(200, 167, 101, 0.45);
}

.brand-symbol span {
    position: relative;
    z-index: 1;

    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.14em;

    transform: translateX(1px);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.brand-text strong {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.brand-text span {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.main-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;

    padding-top: 27px;
}

.navigation-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    width: 100%;
    min-height: 46px;
    padding: 0 14px;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    color: var(--text-secondary);
    background: transparent;

    text-align: left;
    cursor: pointer;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.navigation-item::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;

    width: 2px;

    content: "";

    border-radius: 99px;

    background: var(--accent-gold);
    opacity: 0;

    transform: scaleY(0.4);

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.navigation-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);

    transform: translateX(2px);
}

.navigation-item.active {
    color: var(--text-primary);

    border-color: rgba(200, 167, 101, 0.13);

    background:
        linear-gradient(
            90deg,
            var(--accent-gold-soft),
            rgba(200, 167, 101, 0.025)
        );
}

.navigation-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.navigation-icon {
    display: grid;
    place-items: center;

    width: 19px;

    color: var(--text-muted);
    font-size: 14px;

    transition: color var(--transition-fast);
}

.navigation-item.active .navigation-icon {
    color: var(--accent-gold-bright);
}

.navigation-label {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.015em;
}

.navigation-divider {
    height: 1px;
    margin: 15px 12px;

    background: var(--border-subtle);
}


/* ==========================================================
   SIDEBAR FOOTER
   ========================================================== */

.sidebar-footer {
    padding: 19px 9px 0;

    border-top: 1px solid var(--border-subtle);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.022);
}

.server-status-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--success);

    box-shadow: 0 0 13px rgba(107, 178, 138, 0.65);
}

.server-status div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.server-status strong {
    font-size: 11px;
    font-weight: 700;
}

.server-status span:last-child {
    color: var(--text-muted);
    font-size: 9px;
}

.version-information {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 14px 4px 0;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ==========================================================
   WORKSPACE
   ========================================================== */

.workspace {
    position: relative;

    display: grid;
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);

    min-width: 0;
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            transparent 18%
        ),
        var(--background-workspace);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-width: 0;
    padding: 0 40px;

    border-bottom: 1px solid var(--border-subtle);

    background: rgba(17, 19, 24, 0.75);
    backdrop-filter: blur(18px);
}

.topbar-heading {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;

    color: var(--accent-gold);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;

    overflow: hidden;

    font-family: Georgia, serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    flex: 0 0 auto;
}

.session-actions {
    position: absolute;
    top: 30px;
    right: 92px;
    z-index: 30;

    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(440px, calc(100% - 184px));
    padding: 6px;

    border: 1px solid rgba(200, 167, 101, 0.18);
    border-radius: 99px;
    background: rgba(10, 9, 8, 0.72);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);

    pointer-events: auto;
}

.session-actions[hidden] {
    display: none;
}

.session-user-context {
    order: -1;
    display: grid;
    min-width: 0;
    padding-left: 10px;
    line-height: 1.15;
}

.session-username,
.session-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-username {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
}

.session-role {
    margin-top: 3px;
    color: var(--accent-gold-bright);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.connection-pill {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 35px;
    padding: 0 14px;

    border: 1px solid var(--border-subtle);
    border-radius: 99px;

    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.connection-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--success);

    box-shadow: 0 0 10px rgba(107, 178, 138, 0.6);
}

.logout-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logout-button:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

.profile-button {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(200, 167, 101, 0.27);
    border-radius: 50%;

    color: var(--accent-gold-bright);
    background:
        linear-gradient(
            145deg,
            rgba(200, 167, 101, 0.13),
            rgba(255, 255, 255, 0.015)
        );

    font-family: Georgia, serif;
    font-size: 11px;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast);
}

.profile-button:hover {
    border-color: rgba(225, 196, 135, 0.55);
    transform: scale(1.04);
}

.workspace-content {
    min-width: 0;
    overflow: auto;

    padding: 36px 40px 50px;
}

body.dashboard-route .workspace {
    grid-template-rows: minmax(0, 1fr);
}

body.dashboard-route .topbar {
    display: none;
}

body.dashboard-route .workspace-content {
    padding-top: 24px;
}


/* ==========================================================
   DASHBOARD HERO
   ========================================================== */

.dashboard-view {
    display: flex;
    flex-direction: column;
    gap: 26px;

    width: min(1280px, 100%);
    margin: 0 auto;

    animation: module-enter 320ms ease both;
}

.hero-panel {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 40px;

    min-height: 340px;
    padding: 46px 50px;

    overflow: hidden;

    border: 1px solid var(--border-medium);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at 82% 45%,
            rgba(200, 167, 101, 0.15),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(35, 38, 44, 0.95),
            rgba(17, 19, 23, 0.96)
        );

    box-shadow: var(--shadow-large);
}

.hero-panel::before {
    position: absolute;
    top: 0;
    right: 25%;
    bottom: 0;

    width: 1px;

    content: "";

    background:
        linear-gradient(
            transparent,
            rgba(200, 167, 101, 0.17),
            transparent
        );

    transform: rotate(20deg);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    max-width: 720px;
    margin: 0;

    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-copy h2 span {
    color: var(--accent-gold-bright);
}

.hero-copy p.hero-description {
    max-width: 620px;
    margin: 24px 0 0;

    color: var(--text-secondary);

    font-size: 15px;
    line-height: 1.75;
}

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

    margin-top: 29px;
}

.primary-button,
.secondary-button {
    min-height: 42px;
    padding: 0 19px;

    border-radius: var(--radius-small);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.primary-button {
    color: #17130d;

    background:
        linear-gradient(
            135deg,
            var(--accent-gold-bright),
            var(--accent-gold)
        );

    box-shadow: 0 10px 24px rgba(200, 167, 101, 0.15);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--border-medium);

    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.025);
}

.secondary-button:hover {
    border-color: rgba(200, 167, 101, 0.34);
    background: rgba(200, 167, 101, 0.08);

    transform: translateY(-2px);
}

.hero-visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 250px;
}

.record {
    position: relative;

    display: grid;
    place-items: center;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background:
        repeating-radial-gradient(
            circle,
            #111214 0,
            #111214 4px,
            #181a1e 5px,
            #181a1e 7px
        );

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        inset 0 0 35px rgba(0, 0, 0, 0.62);

    animation: record-float 7s ease-in-out infinite;
}

.record::before {
    position: absolute;

    width: 78px;
    height: 78px;

    content: "";

    border: 1px solid rgba(200, 167, 101, 0.35);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #08090b 0 8px,
            transparent 9px
        ),
        linear-gradient(
            145deg,
            #8c6d35,
            #d3b46f
        );
}

.record::after {
    position: absolute;
    top: 19px;
    left: 58px;

    width: 48px;
    height: 20px;

    content: "";

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.035);

    transform: rotate(-28deg);
}

.record-label {
    position: relative;
    z-index: 1;

    color: #17130d;

    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.14em;

    transform: translateX(1px);
}


/* ==========================================================
   DASHBOARD CONTENT
   ========================================================== */

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

.stat-card,
.panel {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        ),
        var(--surface-primary);
}

.stat-card {
    display: flex;
    flex-direction: column;

    min-height: 145px;
    padding: 22px;

    transition:
        border-color var(--transition-normal),
        transform var(--transition-normal);
}

.stat-card:hover {
    border-color: rgba(200, 167, 101, 0.22);
    transform: translateY(-3px);
}

.stat-label {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 17px;

    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 400;
}

.stat-note {
    margin-top: auto;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 18px;
}

.panel {
    padding: 25px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.panel-header h3 {
    margin: 0;

    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 16px 0;

    border-top: 1px solid var(--border-subtle);
}

.activity-item:first-child {
    border-top: 0;
}

.activity-icon {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    border: 1px solid rgba(200, 167, 101, 0.15);
    border-radius: 50%;

    color: var(--accent-gold);
    background: var(--accent-gold-soft);
}

.activity-copy {
    min-width: 0;
}

.activity-copy strong {
    display: block;

    overflow: hidden;

    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy p {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.45;
}

.activity-time {
    color: var(--text-muted);

    font-size: 9px;
    white-space: nowrap;
}

.rehearsal-placeholder {
    display: flex;
    flex-direction: column;

    min-height: 210px;
}

.rehearsal-date {
    color: var(--accent-gold-bright);

    font-family: Georgia, serif;
    font-size: 29px;
}

.rehearsal-placeholder p {
    margin: 17px 0 25px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.65;
}

.rehearsal-placeholder .secondary-button {
    align-self: flex-start;
    margin-top: auto;
}


/* ==========================================================
   PLACEHOLDER MODULES
   ========================================================== */

.module-view {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(1100px, 100%);
    min-height: calc(100vh - var(--topbar-height) - 86px);
    margin: 0 auto;

    animation: module-enter 320ms ease both;
}

.module-placeholder {
    position: relative;

    width: 100%;
    max-width: 760px;
    padding: 70px 40px;

    overflow: hidden;

    border: 1px solid var(--border-medium);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(200, 167, 101, 0.11),
            transparent 40%
        ),
        var(--surface-primary);

    text-align: center;

    box-shadow: var(--shadow-large);
}

.module-placeholder::before {
    position: absolute;
    inset: 0;

    content: "";

    pointer-events: none;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 89px,
            rgba(255, 255, 255, 0.012) 90px
        );
}

.placeholder-symbol {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 78px;
    height: 78px;
    margin: 0 auto 26px;

    border: 1px solid rgba(200, 167, 101, 0.3);
    border-radius: 50%;

    color: var(--accent-gold-bright);
    background: var(--accent-gold-soft);

    font-family: Georgia, serif;
    font-size: 30px;
}

.module-placeholder h2 {
    position: relative;
    z-index: 1;

    margin: 0;

    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 400;
}

.module-placeholder p {
    position: relative;
    z-index: 1;

    max-width: 530px;
    margin: 18px auto 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.75;
}

.build-badge {
    position: relative;
    z-index: 1;

    display: inline-flex;

    margin-top: 25px;
    padding: 8px 12px;

    border: 1px solid var(--border-subtle);
    border-radius: 99px;

    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes module-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes record-float {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

.workspace-content {
    scrollbar-color:
        rgba(200, 167, 101, 0.35)
        rgba(255, 255, 255, 0.02);

    scrollbar-width: thin;
}

.workspace-content::-webkit-scrollbar {
    width: 10px;
}

.workspace-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.workspace-content::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 99px;

    background: rgba(200, 167, 101, 0.35);
    background-clip: padding-box;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 220px;
    }

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

    .hero-visual {
        display: none;
    }

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

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

@media (max-width: 760px) {
    body {
        overflow: auto;
    }

    .studio-app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;

        width: 100%;
        height: auto;
        min-height: auto;

        padding-bottom: 16px;
    }

    .main-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        padding-top: 20px;
    }

    .navigation-divider {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .workspace {
        height: auto;
        min-height: 100vh;
    }

    .topbar {
        padding: 24px;
    }

    .session-actions {
        position: fixed;
        top: 18px;
        right: 18px;
        max-width: calc(100vw - 36px);
    }

    .session-user-context {
        max-width: min(190px, 42vw);
    }

    .connection-pill {
        display: none;
    }

    .workspace-content {
        overflow: visible;
        padding: 24px;
    }

    body.dashboard-route .workspace-content {
        padding-top: 18px;
    }

    .hero-panel {
        min-height: auto;
        padding: 34px 28px;
    }

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

    .module-view {
        min-height: 500px;
    }
}/* ==========================================================
   THE STUDIO 1.1
   BUILD 2 — SONG LIBRARY
   ========================================================== */


/* ----------------------------------------------------------
   SONG LIBRARY LAYOUT
   ---------------------------------------------------------- */

.songs-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.songs-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(195, 157, 91, 0.12),
            transparent 35%
        ),
        var(--panel-background);
}

.songs-toolbar-copy {
    max-width: 650px;
}

.songs-toolbar-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 400;
    line-height: 1;
}

.songs-toolbar-copy > p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ----------------------------------------------------------
   SEARCH
   ---------------------------------------------------------- */

.song-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(390px, 100%);
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.song-search:focus-within {
    border-color: rgba(200, 167, 101, 0.55);
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 0 3px rgba(200, 167, 101, 0.08);
}

.song-search-icon {
    color: var(--accent-color);
    font-size: 19px;
}

.song-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
}

.song-search input::placeholder {
    color: var(--text-muted);
}


/* ----------------------------------------------------------
   FILTERS
   ---------------------------------------------------------- */

.song-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.song-filter-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.song-filter-button:hover {
    color: var(--text-primary);
    border-color: rgba(200, 167, 101, 0.3);
    background: rgba(200, 167, 101, 0.08);
    transform: translateY(-1px);
}

.song-filter-button.active {
    color: #17130d;
    border-color: var(--accent-color);
    background: linear-gradient(
        135deg,
        var(--accent-light),
        var(--accent-color)
    );
}


/* ----------------------------------------------------------
   RESULT SUMMARY
   ---------------------------------------------------------- */

.song-results-summary {
    margin: 2px 2px 14px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   SONG GRID
   ---------------------------------------------------------- */

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

.song-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.006)
        ),
        var(--panel-background);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.song-card:hover {
    border-color: rgba(200, 167, 101, 0.34);
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.song-card-button {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 190px;
    padding: 20px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}


/* ----------------------------------------------------------
   SONG ARTWORK
   ---------------------------------------------------------- */

.song-artwork {
    position: relative;
    display: grid;
    place-items: center;
    width: 118px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(200, 167, 101, 0.22);
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(225, 196, 135, 0.18),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #2b251d,
            #121315 70%
        );
    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.2);
}

.song-artwork::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.song-artwork-initials {
    position: relative;
    z-index: 1;
    color: var(--accent-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    letter-spacing: 0.04em;
}

.song-audio-indicator {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #17130d;
    background: var(--accent-light);
    font-size: 9px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}


/* ----------------------------------------------------------
   SONG CARD CONTENT
   ---------------------------------------------------------- */

.song-card-content {
    min-width: 0;
}

.song-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.song-card-content h3 {
    overflow: hidden;
    margin: 14px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-artist {
    overflow: hidden;
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-duration {
    color: var(--text-muted);
    font-size: 9px;
}

.song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.song-meta span {
    position: relative;
    color: var(--text-muted);
    font-size: 9px;
}

.song-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 9px;
    color: rgba(255, 255, 255, 0.18);
}

.song-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.song-tags span {
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.018);
    font-size: 8px;
    text-transform: lowercase;
}

.song-card-arrow {
    color: var(--accent-color);
    font-size: 21px;
    transition: transform 180ms ease;
}

.song-card:hover .song-card-arrow {
    transform: translateX(4px);
}


/* ----------------------------------------------------------
   STATUS LABELS
   ---------------------------------------------------------- */

.song-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.song-status-in-study {
    color: #e2c582;
    border-color: rgba(200, 167, 101, 0.22);
    background: rgba(200, 167, 101, 0.1);
}

.song-status-planned {
    color: #9db9d4;
    border-color: rgba(118, 153, 188, 0.22);
    background: rgba(118, 153, 188, 0.09);
}

.song-status-ready {
    color: #91caaa;
    border-color: rgba(107, 178, 138, 0.22);
    background: rgba(107, 178, 138, 0.09);
}

.song-status-wishlist {
    color: #b7aacd;
    border-color: rgba(145, 123, 178, 0.22);
    background: rgba(145, 123, 178, 0.09);
}


/* ----------------------------------------------------------
   EMPTY STATE
   ---------------------------------------------------------- */

.song-empty-state {
    max-width: 720px;
    margin: 35px auto 0;
    padding: 65px 40px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--panel-background);
    text-align: center;
}

.song-empty-state h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
}

.song-empty-state p {
    margin: 13px 0 0;
    color: var(--text-muted);
}


/* ----------------------------------------------------------
   SONG PREVIEW
   ---------------------------------------------------------- */

.song-preview-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.song-back-button {
    align-self: flex-start;
    padding: 0;
    border: 0;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease;
}

.song-back-button:hover {
    color: var(--accent-light);
}

.song-preview-hero {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 38px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(200, 167, 101, 0.13),
            transparent 34%
        ),
        var(--panel-background);
}

.song-preview-artwork {
    display: grid;
    place-items: center;
    width: 190px;
    aspect-ratio: 1;
    border: 1px solid rgba(200, 167, 101, 0.26);
    border-radius: 18px;
    color: var(--accent-light);
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(225, 196, 135, 0.18),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #2b251d,
            #111316
        );
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
}

.song-preview-copy h2 {
    margin: 14px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 400;
    line-height: 1;
}

.song-preview-copy > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.song-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.song-preview-meta span {
    padding: 8px 11px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.018);
    font-size: 9px;
}

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

.song-preview-grid .panel {
    min-height: 180px;
}

.song-preview-grid .panel h3 {
    margin-top: 0;
}

.song-file-status {
    overflow-wrap: anywhere;
}

.song-file-status strong {
    display: block;
    margin-bottom: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.song-file-status code {
    display: block;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--accent-light);
    background: rgba(0, 0, 0, 0.2);
    font-size: 10px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   ERROR AND LOADING STATE
   ---------------------------------------------------------- */

.song-retry-button {
    margin-top: 20px;
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .song-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .songs-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .song-search {
        width: 100%;
    }

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

    .song-preview-artwork {
        width: 150px;
    }

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

@media (max-width: 620px) {
    .songs-toolbar {
        padding: 24px;
    }

    .song-card-button {
        grid-template-columns: 82px minmax(0, 1fr) 18px;
        gap: 14px;
        min-height: 155px;
        padding: 15px;
    }

    .song-artwork {
        width: 82px;
    }

    .song-artwork-initials {
        font-size: 23px;
    }

    .song-card-content h3 {
        font-size: 20px;
    }

    .song-meta span:nth-child(3) {
        display: none;
    }

    .song-tags {
        display: none;
    }

    .song-preview-hero {
        padding: 25px;
    }

    .song-preview-copy h2 {
        font-size: 40px;
    }
}/* ==========================================================
   THE STUDIO
   BUILD 3 — SONG WORKSPACE
   ========================================================== */


/* ----------------------------------------------------------
   WORKSPACE CONTAINER
   ---------------------------------------------------------- */

.song-workspace-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.song-back-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.song-back-button:hover {
    color: var(--text-primary);
    transform: translateX(-3px);
}

.song-back-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 5px;
    border-radius: 4px;
}


/* ----------------------------------------------------------
   WORKSPACE HERO
   ---------------------------------------------------------- */

.song-workspace-view .song-preview-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top left,
            rgba(205, 157, 91, 0.12),
            transparent 38%
        ),
        var(--panel-background);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.song-workspace-view .song-preview-artwork {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.12),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            rgba(205, 157, 91, 0.95),
            rgba(91, 57, 31, 0.92)
        );
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 38px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.song-workspace-view .song-preview-artwork::before,
.song-workspace-view .song-preview-artwork::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.song-workspace-view .song-preview-artwork::before {
    width: 130px;
    height: 130px;
    right: -45px;
    bottom: -45px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.song-workspace-view .song-preview-artwork::after {
    width: 70px;
    height: 70px;
    right: -18px;
    bottom: -18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.song-workspace-view .song-preview-copy {
    min-width: 0;
}

.song-workspace-view .song-preview-copy h2 {
    margin: 13px 0 6px;
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.song-workspace-view .song-preview-copy > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.song-workspace-view .song-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.song-workspace-view .song-preview-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}


/* ----------------------------------------------------------
   WORKSPACE TABS
   ---------------------------------------------------------- */

.workspace-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--panel-background);
    overflow-x: auto;
    scrollbar-width: thin;
}

.workspace-tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.87rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.workspace-tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.workspace-tab-button.active {
    border-color: rgba(205, 157, 91, 0.35);
    background: rgba(205, 157, 91, 0.12);
    color: var(--accent-light);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.workspace-tab-button:active {
    transform: scale(0.98);
}

.workspace-tab-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* ----------------------------------------------------------
   TAB CONTENT
   ---------------------------------------------------------- */

.workspace-tab-content {
    min-height: 420px;
}

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

.workspace-overview-grid .panel {
    min-width: 0;
    padding: 24px;
}

.workspace-overview-grid .panel h3 {
    margin: 5px 0 18px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.workspace-description > p:last-of-type {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.workspace-muted {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ----------------------------------------------------------
   SONG FACTS
   ---------------------------------------------------------- */

.workspace-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.workspace-fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.workspace-fact span {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-fact strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   PRACTICE FOCUS
   ---------------------------------------------------------- */

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

.workspace-focus-list li {
    position: relative;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    line-height: 1.45;
}

.workspace-focus-list li::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(205, 157, 91, 0.16);
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 800;
    transform: translateY(-50%);
}


/* ----------------------------------------------------------
   TEMPO DISPLAY
   ---------------------------------------------------------- */

.workspace-tempo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(205, 157, 91, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(205, 157, 91, 0.09),
            rgba(255, 255, 255, 0.015)
        );
}

.workspace-tempo > div {
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
}

.workspace-tempo span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workspace-tempo strong {
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
}

.workspace-tempo small {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.workspace-tempo .workspace-tempo-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
}


/* ----------------------------------------------------------
   SONG PARTS / ARRANGEMENT
   ---------------------------------------------------------- */

.workspace-parts-panel {
    grid-row: span 2;
}

.workspace-parts-list {
    display: grid;
    gap: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--border-color);
}

.workspace-part {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: var(--panel-background);
    transition: background 160ms ease;
}

.workspace-part:hover {
    background: rgba(255, 255, 255, 0.035);
}

.workspace-part-time {
    display: inline-flex;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(205, 157, 91, 0.12);
    color: var(--accent-light);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.77rem;
    font-weight: 700;
}

.workspace-part strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.94rem;
}

.workspace-part p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   BAND LOGBOOK
   ---------------------------------------------------------- */

.workspace-note {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.workspace-note:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.workspace-note:last-child {
    padding-bottom: 0;
}

.workspace-note > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.workspace-note strong {
    color: var(--text-primary);
    font-size: 0.88rem;
}

.workspace-note span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.workspace-note p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   COMING SOON TABS
   ---------------------------------------------------------- */

.workspace-coming-soon {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at center,
            rgba(205, 157, 91, 0.07),
            transparent 45%
        ),
        var(--panel-background);
    text-align: center;
}

.workspace-coming-soon .placeholder-symbol {
    margin-bottom: 18px;
}

.workspace-coming-soon h3 {
    margin: 4px 0 12px;
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.workspace-coming-soon > p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 0 24px;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ----------------------------------------------------------
   STATUS BADGES IN WORKSPACE
   ---------------------------------------------------------- */

.song-workspace-view .song-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.song-workspace-view .song-status-in-study {
    border-color: rgba(205, 157, 91, 0.28);
    background: rgba(205, 157, 91, 0.12);
    color: var(--accent-light);
}

.song-workspace-view .song-status-planned {
    border-color: rgba(94, 164, 255, 0.22);
    background: rgba(94, 164, 255, 0.1);
    color: #9bc7ff;
}

.song-workspace-view .song-status-ready {
    border-color: rgba(104, 196, 139, 0.22);
    background: rgba(104, 196, 139, 0.1);
    color: #91d9ac;
}

.song-workspace-view .song-status-wishlist {
    border-color: rgba(185, 137, 219, 0.22);
    background: rgba(185, 137, 219, 0.1);
    color: #d2a6ee;
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 980px) {
    .song-workspace-view .song-preview-hero {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 24px;
        padding: 24px;
    }

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

    .workspace-parts-panel {
        grid-row: auto;
    }
}

@media (max-width: 680px) {
    .song-workspace-view {
        gap: 18px;
    }

    .song-workspace-view .song-preview-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        padding: 20px;
    }

    .song-workspace-view .song-preview-artwork {
        width: min(180px, 70%);
    }

    .song-workspace-view .song-preview-copy h2 {
        font-size: 2rem;
    }

    .song-workspace-view .song-preview-meta {
        gap: 7px;
        margin-top: 17px;
    }

    .song-workspace-view .song-preview-meta span {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .workspace-tabs {
        border-radius: 13px;
    }

    .workspace-tab-button {
        min-height: 39px;
        padding: 8px 13px;
        font-size: 0.81rem;
    }

    .workspace-overview-grid .panel {
        padding: 19px;
    }

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

    .workspace-part {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .workspace-tempo {
        gap: 9px;
        padding: 15px 10px;
    }

    .workspace-tempo strong {
        font-size: 1.7rem;
    }

    .workspace-note > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .workspace-coming-soon {
        min-height: 340px;
        padding: 38px 18px;
    }
}/* ==========================================================
   THE STUDIO
   BUILD 4 — AUDIO ENGINE
   ========================================================== */

.audio-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.audio-player-panel,
.audio-side-panel,
.audio-shortcuts-panel {
    border: 1px solid var(--border-color);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        var(--panel-background);
    box-shadow: var(--panel-shadow);
}

.audio-player-panel {
    min-width: 0;
    padding: 28px;
    border-radius: 22px;
}

.audio-player-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.audio-player-header h3,
.audio-side-panel h3 {
    margin: 4px 0 8px;
}

.audio-player-header p:not(.eyebrow),
.audio-side-description {
    max-width: 650px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.audio-engine-badge {
    align-self: flex-start;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid rgba(194, 145, 75, 0.38);
    border-radius: 999px;
    background: rgba(194, 145, 75, 0.1);
    color: var(--accent-color);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#studio-audio-element {
    display: none;
}

/* NOW PLAYING */

.audio-now-playing {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(194, 145, 75, 0.12),
            rgba(255, 255, 255, 0.02)
        );
}

.audio-track-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(194, 145, 75, 0.45);
    border-radius: 15px;
    background: rgba(194, 145, 75, 0.14);
    color: var(--accent-color);
    font-size: 1.45rem;
}

.audio-now-playing-copy {
    min-width: 0;
}

.audio-now-playing-copy span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audio-now-playing-copy strong {
    display: block;
    overflow: hidden;
    margin-bottom: 3px;
    color: var(--text-primary);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-now-playing-copy small {
    display: block;
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-status {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

/* TIMELINE */

.audio-timeline {
    margin-bottom: 20px;
}

.audio-time-row {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.audio-time-row > span:last-child {
    text-align: right;
}

.audio-loop-time {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* RANGE INPUTS */

.audio-range {
    width: 100%;
    height: 6px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    outline: none;
    background:
        linear-gradient(
            90deg,
            rgba(194, 145, 75, 0.95),
            rgba(194, 145, 75, 0.45)
        );
    cursor: pointer;
}

.audio-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 3px solid var(--panel-background);
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow:
        0 0 0 1px rgba(194, 145, 75, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: grab;
}

.audio-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.08);
}

.audio-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid var(--panel-background);
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow:
        0 0 0 1px rgba(194, 145, 75, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: grab;
}

/* MAIN TRANSPORT CONTROLS */

.audio-main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 26px 0 30px;
}

.audio-control-button,
.audio-play-button {
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.audio-control-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.audio-control-button:hover {
    border-color: rgba(194, 145, 75, 0.5);
    background: rgba(194, 145, 75, 0.1);
    transform: translateY(-2px);
}

.audio-play-button {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #d6aa69,
            #a56c2e
        );
    color: #101010;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(194, 145, 75, 0.14);
    font-size: 1.35rem;
    font-weight: 800;
}

.audio-play-button:hover {
    transform: scale(1.045);
}

.audio-play-button:active {
    transform: scale(0.98);
}

/* SPEED AND VOLUME */

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

.audio-tool-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
}

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

.audio-tool-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.audio-tool-heading strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.audio-reset-button {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
}

.audio-reset-button:hover {
    border-color: rgba(194, 145, 75, 0.45);
    color: var(--accent-color);
}

.audio-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.66rem;
}

/* SIDEBAR */

.audio-sidebar {
    display: grid;
    gap: 18px;
}

.audio-side-panel,
.audio-shortcuts-panel {
    padding: 22px;
    border-radius: 20px;
}

.audio-track-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.audio-track-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.audio-track-button:hover {
    border-color: rgba(194, 145, 75, 0.36);
    background: rgba(194, 145, 75, 0.06);
    transform: translateX(2px);
}

.audio-track-button.active {
    border-color: rgba(194, 145, 75, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(194, 145, 75, 0.16),
            rgba(194, 145, 75, 0.045)
        );
}

.audio-track-button-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--accent-color);
}

.audio-track-button strong,
.audio-track-button small {
    display: block;
}

.audio-track-button strong {
    margin-bottom: 3px;
    font-size: 0.88rem;
}

.audio-track-button small {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

/* A-B LOOP */

.audio-loop-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 10px;
}

.audio-loop-buttons .secondary-button {
    width: 100%;
    padding: 11px 8px;
}

.audio-loop-toggle {
    width: 100%;
    margin-top: 2px;
}

.audio-loop-toggle.active {
    border-color: rgba(194, 145, 75, 0.65);
    background:
        linear-gradient(
            135deg,
            #d4a25f,
            #a56c2e
        );
    color: #101010;
}

.audio-loop-toggle:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.audio-clear-loop {
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
    cursor: pointer;
}

.audio-clear-loop:hover {
    color: var(--text-primary);
}

/* SHORTCUTS */

.audio-shortcuts-panel > strong {
    display: block;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.audio-shortcuts-panel > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.audio-shortcuts-panel > div:last-child {
    border-bottom: 0;
}

.audio-shortcuts-panel kbd {
    min-width: 32px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.69rem;
    text-align: center;
}

/* NO AUDIO STATE */

.audio-path-example {
    display: inline-block;
    max-width: 100%;
    margin-top: 14px;
    padding: 10px 13px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--accent-color);
    font-size: 0.78rem;
}

/* FOCUS STATES */

.audio-control-button:focus-visible,
.audio-play-button:focus-visible,
.audio-track-button:focus-visible,
.audio-reset-button:focus-visible,
.audio-clear-loop:focus-visible,
.audio-loop-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .audio-workspace {
        grid-template-columns: 1fr;
    }

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

    .audio-shortcuts-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .audio-player-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .audio-player-header {
        display: block;
    }

    .audio-engine-badge {
        display: inline-block;
        margin-top: 14px;
    }

    .audio-now-playing {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .audio-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .audio-tool-grid,
    .audio-sidebar {
        grid-template-columns: 1fr;
    }

    .audio-shortcuts-panel {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .audio-now-playing {
        padding: 14px;
    }

    .audio-track-icon {
        width: 44px;
        height: 44px;
    }

    .audio-time-row {
        grid-template-columns: 52px 1fr 52px;
    }

    .audio-loop-time {
        gap: 8px;
        font-size: 0.67rem;
    }

    .audio-main-controls {
        gap: 13px;
    }

    .audio-play-button {
        width: 64px;
        height: 64px;
    }

    .audio-control-button {
        width: 44px;
        height: 44px;
    }

    .audio-loop-buttons {
        grid-template-columns: 1fr;
    }
}/* ==========================================================
   THE STUDIO
   BUILD 5 — WAVESURFER
   ========================================================== */

.wavesurfer-section {
    margin-bottom: 14px;
}

.wavesurfer-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(194, 145, 75, 0.07),
            transparent 65%
        ),
        rgba(0, 0, 0, 0.2);
}

.studio-waveform {
    min-height: 150px;
    cursor: crosshair;
}

.studio-timeline {
    min-height: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

/*
   WaveSurfer 7 gebruikt Shadow DOM.
   De interne elementen worden gestyled via ::part().
*/

.studio-waveform ::part(scroll) {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(194, 145, 75, 0.55)
        rgba(255, 255, 255, 0.04);
}

.studio-waveform ::part(wrapper) {
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 79px,
            rgba(255, 255, 255, 0.035) 80px
        );
}

.studio-waveform ::part(cursor) {
    box-shadow:
        0 0 12px rgba(240, 198, 125, 0.5);
}

.studio-waveform ::part(region) {
    border-left:
        1px solid rgba(240, 198, 125, 0.9);
    border-right:
        1px solid rgba(240, 198, 125, 0.9);
    color: #f0c67d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audio-waveform-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 10px;
}

.audio-waveform-label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audio-waveform-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.84rem;
}

.audio-waveform-hint {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.audio-waveform-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(14, 16, 19, 0.72);
    color: var(--text-muted);
    font-size: 0.78rem;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.audio-waveform-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.audio-waveform-loading span {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation:
        audio-waveform-spin
        800ms
        linear
        infinite;
}

.audio-position-description {
    margin: 11px 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

@keyframes audio-waveform-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 720px) {
    .studio-waveform {
        min-height: 125px;
    }
}

@media (max-width: 480px) {
    .audio-waveform-header {
        align-items: flex-start;
    }

    .audio-waveform-hint {
        max-width: 90px;
        text-align: right;
    }

    .studio-waveform {
        min-height: 105px;
    }
}/* ==========================================================
   THE STUDIO
   BUILD 5.2 — ARRANGEMENT OVERVIEW
   ========================================================== */

.audio-marker-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.audio-marker-button {
    position: relative;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 13px 13px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 13px;

    color: inherit;
    background: rgba(255, 255, 255, 0.025);

    text-align: left;
    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.audio-marker-button::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;

    width: 2px;

    content: "";

    border-radius: 99px;

    background: var(--accent-color);
    opacity: 0;

    transform: scaleY(0.4);

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.audio-marker-button:hover {
    border-color: rgba(194, 145, 75, 0.38);

    background:
        linear-gradient(
            135deg,
            rgba(194, 145, 75, 0.08),
            rgba(194, 145, 75, 0.025)
        );

    transform: translateX(2px);
}

.audio-marker-button.active {
    border-color: rgba(194, 145, 75, 0.62);

    background:
        linear-gradient(
            135deg,
            rgba(194, 145, 75, 0.17),
            rgba(194, 145, 75, 0.045)
        );

    box-shadow:
        inset 0 0 0 1px rgba(194, 145, 75, 0.08),
        0 7px 20px rgba(0, 0, 0, 0.13);
}

.audio-marker-button.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.audio-marker-time {
    align-self: start;

    padding-top: 2px;

    color: var(--accent-color);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.73rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.audio-marker-content {
    display: grid;
    gap: 9px;

    min-width: 0;
}

.audio-marker-copy {
    display: block;
    min-width: 0;
}

.audio-marker-copy strong {
    display: block;

    margin-bottom: 3px;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-marker-range,
.audio-marker-note {
    display: block;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 0.68rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-marker-note {
    margin-top: 2px;
    color: var(--text-secondary);
}

.audio-marker-progress {
    display: block;

    width: 100%;
    height: 3px;

    overflow: hidden;

    border-radius: 99px;

    background: rgba(255, 255, 255, 0.055);
}

.audio-marker-progress-fill {
    display: block;

    width: 4%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            rgba(194, 145, 75, 0.92),
            rgba(240, 198, 125, 0.55)
        );

    transition:
        width 280ms ease,
        opacity 160ms ease;
}

.audio-marker-button:not(.active)
.audio-marker-progress-fill {
    opacity: 0.55;
}

.audio-marker-button.active
.audio-marker-progress-fill {
    opacity: 1;

    box-shadow:
        0 0 8px rgba(194, 145, 75, 0.35);
}

.audio-marker-arrow {
    color: rgba(194, 145, 75, 0.42);

    font-size: 1.05rem;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.audio-marker-button:hover
.audio-marker-arrow,
.audio-marker-button.active
.audio-marker-arrow {
    color: var(--accent-color);
    transform: translateX(2px);
}

.audio-marker-empty {
    margin: 15px 0 0;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.55;
}

.audio-marker-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .audio-marker-button {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 11px;
    }

    .audio-marker-time {
        font-size: 0.68rem;
    }
}/* ==========================================================
   THE STUDIO
   TASK 5.3.1 — ARRANGEMENT TIMELINE
   ========================================================== */

.arrangement-timeline-section {
    margin-top: 18px;
}

.arrangement-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;

    margin-bottom: 10px;
}

.arrangement-timeline-label {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arrangement-timeline-header strong {
    display: block;

    color: var(--text-primary);

    font-size: 0.84rem;
}

.arrangement-timeline-hint {
    color: var(--text-muted);

    font-size: 0.7rem;
}

.arrangement-timeline {
    display: flex;

    width: 100%;
    min-height: 58px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.2);
}

.arrangement-section {
    position: relative;

    display: block;

    flex-grow: 0;
    flex-shrink: 1;

    min-width: 32px;
    min-height: 58px;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-right:
        1px solid rgba(255, 255, 255, 0.08);

    background: transparent;
    color: var(--text-primary);

    text-align: left;
    cursor: pointer;

    transition:
        background 160ms ease,
        filter 160ms ease;
}

.arrangement-section:last-child {
    border-right: 0;
}

.arrangement-section-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );

    transition:
        background 160ms ease;
}

.arrangement-section:hover
.arrangement-section-background {
    background:
        linear-gradient(
            145deg,
            rgba(194, 145, 75, 0.14),
            rgba(194, 145, 75, 0.035)
        );
}

.arrangement-section.active
.arrangement-section-background {
    background:
        linear-gradient(
            145deg,
            rgba(194, 145, 75, 0.22),
            rgba(194, 145, 75, 0.065)
        );
}

.arrangement-section-progress {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;

    width: 0;

    background:
        linear-gradient(
            90deg,
            rgba(194, 145, 75, 0.24),
            rgba(240, 198, 125, 0.11)
        );

    pointer-events: none;
}

.arrangement-section-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 100%;
    min-height: 58px;
    padding: 9px 10px;
}

.arrangement-section-content strong {
    display: block;

    overflow: hidden;

    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrangement-section-content small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.61rem;
    font-variant-numeric: tabular-nums;
}

.arrangement-section.active
.arrangement-section-content strong {
    color: var(--accent-color);
}

.arrangement-section:focus-visible {
    z-index: 3;

    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.arrangement-timeline-empty {
    margin: auto;
    padding: 16px;

    color: var(--text-muted);

    font-size: 0.75rem;
}

@media (max-width: 720px) {
    .arrangement-timeline {
        overflow-x: auto;
    }

    .arrangement-section {
        flex: 0 0 auto;
        min-width: 72px;
    }
}

@media (max-width: 480px) {
    .arrangement-timeline-header {
        align-items: flex-start;
    }

    .arrangement-timeline-hint {
        max-width: 110px;
        text-align: right;
    }

    .arrangement-section-content {
        padding: 8px;
    }
}
/* ==========================================================
   BUILD 12.1 — SONG ASSET MANAGEMENT
   ========================================================== */

.song-assets-panel {
    padding: 26px;
    border: 1px solid rgba(200, 167, 101, 0.16);
    border-radius: 4px;
    background: rgba(8, 10, 11, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 20px 55px rgba(0, 0, 0, 0.2);
}

.song-assets-header,
.song-assets-actions,
.song-asset-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.song-assets-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(200, 167, 101, 0.13);
}

.song-assets-header h3 {
    margin: 4px 0 8px;
    color: #e7ddce;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.song-assets-header p,
.song-assets-actions p,
.song-asset-heading p {
    margin: 0;
    color: #8e877d;
    line-height: 1.6;
}

.song-assets-counter {
    min-width: 130px;
    padding: 14px 16px;
    border: 1px solid rgba(200, 167, 101, 0.2);
    text-align: center;
    background: rgba(200, 167, 101, 0.05);
}

.song-assets-counter strong,
.song-assets-counter span {
    display: block;
}

.song-assets-counter strong {
    color: #ddb66e;
    font-size: 1.4rem;
}

.song-assets-counter span {
    margin-top: 4px;
    color: #8e877d;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.song-asset-card {
    padding: 18px;
    border: 1px solid rgba(200, 167, 101, 0.13);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(25, 25, 23, 0.76), rgba(13, 15, 16, 0.88));
}

.song-asset-card.is-linked {
    border-color: rgba(200, 167, 101, 0.34);
    background: linear-gradient(135deg, rgba(200, 167, 101, 0.07), transparent 50%), rgba(15, 16, 16, 0.9);
}

.song-asset-heading {
    align-items: flex-start;
    margin-bottom: 15px;
}

.song-asset-type {
    color: #d9c7aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.song-asset-heading p {
    margin-top: 5px;
    font-size: 0.72rem;
}

.song-asset-state {
    padding: 5px 8px;
    border: 1px solid rgba(200, 167, 101, 0.18);
    color: #827a70;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.song-asset-card.is-linked .song-asset-state {
    color: #e0b96f;
    background: rgba(200, 167, 101, 0.08);
}

.song-asset-card label {
    display: block;
    margin-top: 12px;
}

.song-asset-card label > span {
    display: block;
    margin-bottom: 6px;
    color: #81796f;
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-asset-card input {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid rgba(200, 167, 101, 0.15);
    border-radius: 2px;
    color: #d8cdbd;
    background: rgba(3, 4, 4, 0.68);
}

.song-asset-card input:focus {
    outline: none;
    border-color: rgba(211, 166, 89, 0.65);
    box-shadow: 0 0 0 3px rgba(200, 167, 101, 0.06);
}

.song-assets-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(200, 167, 101, 0.13);
}

@media (max-width: 900px) {
    .song-assets-grid { grid-template-columns: 1fr; }
    .song-assets-header, .song-assets-actions { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================
   BUILD 12.2 — SONG ASSET MANAGEMENT WORKFLOW
   ========================================================== */

.song-asset-summary {
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(200, 167, 101, 0.1);
    background: rgba(4, 5, 5, 0.38);
}

.song-asset-summary strong,
.song-asset-summary span,
.song-asset-summary small {
    display: block;
}

.song-asset-summary strong {
    overflow: hidden;
    color: #d9cdbd;
    font-size: 0.86rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-asset-summary span {
    overflow: hidden;
    margin-top: 6px;
    color: #81796f;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-asset-summary p {
    margin: 10px 0 0;
    color: #a39a8e;
    font-size: 0.75rem;
    line-height: 1.5;
}

.song-asset-summary small {
    margin-top: 10px;
    color: #70695f;
    font-size: 0.62rem;
}

.song-asset-toolbar,
.song-asset-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.song-asset-toolbar .button-secondary {
    flex: 1;
}

.song-asset-remove {
    color: #b98c7c;
}

.song-asset-editor {
    display: none;
    margin-top: 16px;
    padding-top: 4px;
    border-top: 1px solid rgba(200, 167, 101, 0.12);
}

.song-asset-card.is-editing .song-asset-summary,
.song-asset-card.is-editing .song-asset-toolbar {
    display: none;
}

.song-asset-card.is-editing .song-asset-editor {
    display: block;
}

.song-asset-editor textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px 11px;
    resize: vertical;
    border: 1px solid rgba(200, 167, 101, 0.15);
    border-radius: 2px;
    color: #d8cdbd;
    font: inherit;
    line-height: 1.45;
    background: rgba(3, 4, 4, 0.68);
}

.song-asset-editor textarea:focus {
    outline: none;
    border-color: rgba(211, 166, 89, 0.65);
    box-shadow: 0 0 0 3px rgba(200, 167, 101, 0.06);
}

.song-asset-editor-actions {
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .song-asset-toolbar,
    .song-asset-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ==========================================================
   BUILD 12.3 — SONG WORKSPACE
   ========================================================== */

.song-preview-artwork.has-artwork {
    background: rgba(7, 8, 8, 0.82);
}

.song-preview-artwork.has-artwork::before,
.song-preview-artwork.has-artwork::after {
    display: none;
}

.song-preview-artwork.has-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-workspace-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.song-workspace-summary-grid,
.song-workspace-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 20px;
}

.song-workspace-dashboard .panel {
    min-width: 0;
    padding: 24px;
}

.song-workspace-dashboard .panel h3 {
    margin: 5px 0 18px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.song-workspace-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.song-workspace-section-heading > div > p:last-child {
    margin: -8px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.song-workspace-completion {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(205, 157, 91, 0.25);
    border-radius: 999px;
    background: rgba(205, 157, 91, 0.08);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.song-workspace-core-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.song-workspace-description-block {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.song-workspace-description-block span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-workspace-description-block p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.65;
}

.song-workspace-action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-workspace-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.song-workspace-action:hover {
    border-color: rgba(205, 157, 91, 0.38);
    background: rgba(205, 157, 91, 0.07);
    transform: translateY(-1px);
}

.song-workspace-action.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.song-workspace-action strong,
.song-workspace-action small {
    display: block;
}

.song-workspace-action strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.song-workspace-action small {
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.45;
}

.song-workspace-action-arrow {
    flex: 0 0 auto;
    color: var(--accent-light);
    font-size: 1.15rem;
}

.song-workspace-assets-overview .song-workspace-section-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.song-workspace-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.song-workspace-asset {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(205, 157, 91, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.song-workspace-asset.is-linked {
    border-color: rgba(205, 157, 91, 0.3);
    background: linear-gradient(135deg, rgba(205, 157, 91, 0.07), transparent 58%), rgba(255, 255, 255, 0.018);
}

.song-workspace-asset-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.song-workspace-asset-heading small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.45;
}

.song-workspace-asset-name {
    display: block;
    margin-top: 16px;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-workspace-asset > p {
    min-height: 42px;
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.song-workspace-asset-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(205, 157, 91, 0.1);
}

.song-workspace-asset-actions .button-text {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-light);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.song-workspace-detail-facts {
    margin-top: 0;
}

@media (max-width: 980px) {
    .song-workspace-summary-grid,
    .song-workspace-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .song-workspace-core-facts,
    .song-workspace-assets-grid {
        grid-template-columns: 1fr;
    }

    .song-workspace-section-heading {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Build 12.4 — Practice Preparation */
.practice-preparation-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.practice-readiness-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.practice-readiness-badge.is-ready {
    border-color: rgba(117, 183, 132, 0.38);
    background: rgba(117, 183, 132, 0.1);
    color: #b7d9bd;
}

.practice-readiness-badge.is-partial {
    border-color: rgba(205, 157, 91, 0.35);
    background: rgba(205, 157, 91, 0.09);
    color: var(--accent-light);
}

.practice-readiness-badge.is-missing {
    border-color: rgba(181, 104, 96, 0.35);
    background: rgba(181, 104, 96, 0.09);
    color: #d9b0ab;
}

.practice-preparation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 18px;
    margin-top: 18px;
}

.practice-overview-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.practice-overview-fact,
.practice-readiness-panel,
.practice-focus-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.practice-overview-fact {
    padding: 13px 14px;
}

.practice-overview-fact span,
.practice-focus-card > span {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.practice-overview-fact strong {
    display: block;
    margin-top: 5px;
    color: var(--text-primary);
}

.practice-overview-fact.is-missing strong {
    color: var(--text-muted);
}

.practice-material-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.practice-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(205, 157, 91, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.practice-material.is-available {
    border-color: rgba(205, 157, 91, 0.28);
    background: linear-gradient(135deg, rgba(205, 157, 91, 0.06), transparent 62%), rgba(255, 255, 255, 0.018);
}

.practice-material > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.practice-material-status {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.practice-material.is-available .practice-material-status {
    border-color: rgba(205, 157, 91, 0.35);
    color: var(--accent-light);
}

.practice-material strong,
.practice-material small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.practice-material strong {
    color: var(--text-primary);
    font-size: 0.87rem;
}

.practice-material small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.practice-material .button-text,
.practice-focus-card .button-text {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-light);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.practice-readiness-panel {
    padding: 18px;
}

.practice-readiness-panel h4 {
    margin: 5px 0 8px;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.practice-readiness-panel > p:not(.eyebrow) {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.practice-missing-list,
.practice-focus-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.practice-complete-message {
    margin-top: 14px !important;
    color: #b7d9bd !important;
}

.practice-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.practice-focus-card {
    padding: 16px;
}

.practice-focus-card p {
    margin: 8px 0 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.practice-focus-card small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .practice-preparation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .practice-overview-facts,
    .practice-material-list,
    .practice-focus-grid {
        grid-template-columns: 1fr;
    }

    .practice-material {
        align-items: flex-start;
    }
}

/* ==========================================================
   BUILD 12.5 — WORKFLOW POLISH & CONSISTENCY
   Scoped to the Build 12 Song Workspace workflow.
   ========================================================== */

.song-workspace-view .button-primary,
.song-workspace-view .button-secondary,
.song-workspace-view .button-text {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-small, 4px);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition:
        color var(--transition-fast, 160ms ease),
        background var(--transition-fast, 160ms ease),
        border-color var(--transition-fast, 160ms ease),
        box-shadow var(--transition-fast, 160ms ease),
        transform var(--transition-fast, 160ms ease);
}

.song-workspace-view .button-primary {
    border: 1px solid rgba(223, 183, 108, 0.65);
    color: #17130d;
    background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
    box-shadow: 0 8px 20px rgba(200, 167, 101, 0.14);
}

.song-workspace-view .button-primary:hover:not(:disabled),
.song-workspace-view .button-primary:focus-visible {
    border-color: rgba(244, 210, 143, 0.9);
    background: linear-gradient(135deg, #e9ca8c, var(--accent-gold-bright));
    box-shadow: 0 10px 24px rgba(200, 167, 101, 0.2);
    transform: translateY(-1px);
}

.song-workspace-view .button-secondary {
    border: 1px solid rgba(200, 167, 101, 0.28);
    color: var(--text-primary);
    background: rgba(200, 167, 101, 0.055);
}

.song-workspace-view .button-secondary:hover:not(:disabled),
.song-workspace-view .button-secondary:focus-visible {
    border-color: rgba(200, 167, 101, 0.55);
    color: var(--accent-gold-bright);
    background: rgba(200, 167, 101, 0.11);
    box-shadow: 0 0 0 3px rgba(200, 167, 101, 0.07);
    transform: translateY(-1px);
}

.song-workspace-view .button-text {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    color: var(--accent-light, var(--accent-gold-bright));
    background: rgba(200, 167, 101, 0.035);
}

.song-workspace-view .button-text:hover:not(:disabled),
.song-workspace-view .button-text:focus-visible {
    border-color: rgba(200, 167, 101, 0.26);
    color: var(--accent-gold-bright);
    background: rgba(200, 167, 101, 0.09);
}

.song-workspace-view .button-primary:active:not(:disabled),
.song-workspace-view .button-secondary:active:not(:disabled),
.song-workspace-view .button-text:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.song-workspace-view .button-primary:focus-visible,
.song-workspace-view .button-secondary:focus-visible,
.song-workspace-view .button-text:focus-visible {
    outline: 2px solid rgba(229, 190, 116, 0.85);
    outline-offset: 3px;
}

.song-workspace-view .button-primary:disabled,
.song-workspace-view .button-secondary:disabled,
.song-workspace-view .button-text:disabled,
.song-workspace-view .button-primary[aria-disabled="true"],
.song-workspace-view .button-secondary[aria-disabled="true"],
.song-workspace-view .button-text[aria-disabled="true"] {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.song-workspace-view .song-asset-remove {
    color: #c89a89;
    background: rgba(157, 80, 59, 0.04);
}

.song-workspace-view .song-asset-remove:hover,
.song-workspace-view .song-asset-remove:focus-visible {
    border-color: rgba(190, 112, 91, 0.36);
    color: #e0ab98;
    background: rgba(157, 80, 59, 0.1);
}

.song-assets-actions [data-song-assets-status],
.song-workspace-feedback {
    min-height: 1.4em;
    overflow-wrap: anywhere;
}

.song-assets-actions [data-song-assets-status].is-error,
.song-workspace-feedback.is-error {
    color: #d8a08e;
}

.song-workspace-feedback {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 167, 101, 0.11);
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.song-asset-summary,
.song-workspace-asset,
.practice-material,
.practice-focus-card {
    min-width: 0;
}

.song-asset-summary strong,
.song-asset-summary span,
.song-workspace-asset-name,
.song-workspace-asset p,
.practice-material strong,
.practice-material small {
    overflow-wrap: anywhere;
}

.song-asset-summary strong,
.song-asset-summary span,
.practice-material strong,
.practice-material small {
    white-space: normal;
}

.song-asset-toolbar,
.song-asset-editor-actions,
.song-workspace-asset-actions {
    flex-wrap: wrap;
}

.song-asset-toolbar > *,
.song-asset-editor-actions > *,
.song-workspace-asset-actions > * {
    min-width: 0;
}

@media (max-width: 760px) {
    .song-assets-panel {
        padding: 18px;
    }

    .song-assets-counter {
        width: 100%;
        min-width: 0;
    }

    .song-asset-heading,
    .song-workspace-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .song-workspace-section-heading > .button-secondary {
        width: 100%;
    }

    .practice-material {
        gap: 12px;
    }

    .practice-material > .button-text {
        flex: 0 0 auto;
    }
}

@media (max-width: 520px) {
    .song-asset-toolbar,
    .song-asset-editor-actions,
    .song-workspace-asset-actions,
    .practice-material {
        align-items: stretch;
        flex-direction: column;
    }

    .song-workspace-view .button-primary,
    .song-workspace-view .button-secondary,
    .song-workspace-view .button-text,
    .practice-material > .button-text {
        width: 100%;
    }
}

/* ==========================================================
   BUILD 12.6 — SONG LIBRARY PRODUCTIVITY
   Scoped to the Song Library workflow.
   ========================================================== */

.song-filters-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(10, 9, 8, 0.72);
}

.song-filter-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
}

.song-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.song-filter-field > span,
.song-filter-group-label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.song-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.3);
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.song-filter-field select:hover {
    border-color: rgba(200, 167, 101, 0.34);
    background: rgba(0, 0, 0, 0.4);
}

.song-filter-field select:focus-visible,
.song-filter-button:focus-visible,
.song-active-filter-badge:focus-visible,
.song-clear-filters:focus-visible {
    outline: 0;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200, 167, 101, 0.14);
}

.song-filter-field select option {
    color: var(--text-primary);
    background: #171411;
}

.song-asset-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.song-active-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.song-active-filter-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.song-active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid rgba(200, 167, 101, 0.26);
    border-radius: 999px;
    color: var(--accent-light);
    background: rgba(200, 167, 101, 0.08);
    font-size: 10px;
    cursor: pointer;
}

.song-active-filter-badge span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-active-filter-badge:hover {
    border-color: rgba(200, 167, 101, 0.5);
    background: rgba(200, 167, 101, 0.14);
}

.song-filter-none {
    color: var(--text-muted);
    font-size: 11px;
}

.song-clear-filters {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(200, 167, 101, 0.3);
    border-radius: 8px;
    color: var(--accent-light);
    background: rgba(200, 167, 101, 0.08);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 120ms ease, opacity 160ms ease;
}

.song-clear-filters:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: rgba(200, 167, 101, 0.52);
    background: rgba(200, 167, 101, 0.15);
}

.song-clear-filters:active:not(:disabled) {
    transform: translateY(1px);
    background: rgba(200, 167, 101, 0.2);
}

.song-clear-filters:disabled,
.song-clear-filters[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
}

.song-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 14px;
}

.song-results-title {
    margin: 0;
}

.song-results-summary {
    margin: 0;
    text-align: right;
}

.song-results-summary strong {
    color: var(--accent-light);
}

.song-empty-state .primary-button {
    margin-top: 18px;
}

@media (max-width: 1180px) {
    .song-filter-controls {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 760px) {
    .song-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .song-active-filters,
    .song-results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .song-results-summary {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .song-filter-controls {
        grid-template-columns: 1fr;
    }

    .song-filter-buttons,
    .song-filter-button,
    .song-clear-filters {
        width: 100%;
    }

    .song-active-filter-badge {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================
   BUILD 12.7 — NAVIGATION & QUALITY OF LIFE
   Scoped to the Build 12 song workflow.
   ========================================================== */

.song-recent-context {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 22rem;
}

.song-recent-context span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-row--selected {
    border-color: rgba(211, 168, 86, 0.58);
    box-shadow: inset 3px 0 0 rgba(226, 180, 84, 0.88), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.song-row--selected::after {
    content: "Laatst geopend";
    align-self: center;
    color: var(--color-accent, #d8aa52);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-row--interactive:focus-visible,
.song-filter-button:focus-visible,
.song-active-filter-badge:focus-visible,
.song-recent-context:focus-visible,
.song-back-button:focus-visible,
.workspace-tab-button:focus-visible,
.song-workspace-action:focus-visible,
.song-workspace-asset-actions a:focus-visible,
.song-workspace-asset-actions button:focus-visible {
    outline: 2px solid rgba(236, 190, 92, 0.95);
    outline-offset: 3px;
}

.song-row--interactive:active {
    transform: translateY(1px);
}

[data-asset-form][data-busy="true"] {
    opacity: 0.78;
    pointer-events: none;
}

[data-asset-form] button:disabled,
[data-asset-remove]:disabled {
    cursor: wait;
    opacity: 0.58;
}

@media (max-width: 980px) {
    .song-recent-context {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .song-row--selected::after {
        display: none;
    }
}

/* ==========================================================
   BUILD 13.1 — SONG HERO EXPERIENCE
   ========================================================== */

.song-workspace-view .song-hero {
    --song-hero-glow: rgba(160, 104, 52, 0.12);
    --song-hero-highlight: rgba(195, 143, 75, 0.2);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.6fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(205, 157, 91, 0.2);
    border-radius: 24px;
    background:
        linear-gradient(105deg, rgba(8, 9, 9, 0.98) 0%, rgba(17, 15, 13, 0.95) 48%, rgba(23, 18, 14, 0.92) 100%),
        var(--panel-background);
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 214, 0.04),
        0 30px 70px rgba(0, 0, 0, 0.35);
}

.song-workspace-view .song-hero--ready {
    --song-hero-glow: rgba(214, 163, 83, 0.23);
    --song-hero-highlight: rgba(231, 186, 108, 0.34);
}

.song-workspace-view .song-hero--preparing {
    --song-hero-glow: rgba(159, 103, 55, 0.17);
    --song-hero-highlight: rgba(184, 127, 67, 0.24);
}

.song-workspace-view .song-hero--early {
    --song-hero-glow: rgba(112, 78, 50, 0.09);
    --song-hero-highlight: rgba(137, 94, 55, 0.13);
}

.song-workspace-view .song-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 25% 35%, var(--song-hero-glow), transparent 31%),
        radial-gradient(circle at 83% 12%, var(--song-hero-highlight), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%);
    pointer-events: none;
}

.song-hero__ambient {
    position: absolute;
    inset: auto -8% -52% 36%;
    height: 85%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--song-hero-glow), transparent 65%);
    filter: blur(38px);
    pointer-events: none;
}

.song-hero__artwork-stage {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 42px 20px 42px 42px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 54px);
}

.song-hero__vinyl {
    position: absolute;
    width: min(78%, 310px);
    aspect-ratio: 1;
    left: 22%;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    border-radius: 50%;
    background:
        radial-gradient(circle, #2a2118 0 5%, #b77b3d 5.5% 9%, #0a0b0c 9.5% 15%, transparent 15.5%),
        repeating-radial-gradient(circle, #171819 0 3px, #0b0c0d 4px 6px);
    opacity: 0.72;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

.song-workspace-view .song-hero .song-preview-artwork {
    width: min(74%, 285px);
    z-index: 1;
    border-radius: 9px;
    transform: translateX(-9%) rotate(-2.2deg);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.55),
        0 0 42px var(--song-hero-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.song-hero__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 52px 42px 38px;
}

.song-hero__topline,
.song-hero__meta,
.song-hero__actions,
.song-hero__asset-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.song-hero__topline {
    justify-content: space-between;
    gap: 14px;
}

.song-hero__readiness {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #a99d8c;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-hero__readiness-value {
    color: #d5ae68;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.song-hero__identity {
    margin: 34px 0 28px;
}

.song-hero__identity .eyebrow {
    margin-bottom: 10px;
}

.song-hero__identity h2 {
    max-width: 900px;
    margin: 0;
    color: #eee4d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.song-hero__artist {
    margin: 13px 0 0;
    color: #b4aa9c;
    font-size: 1.08rem;
    letter-spacing: 0.025em;
}

.song-hero__meta {
    gap: 10px;
}

.song-hero__fact {
    min-width: 126px;
    padding: 11px 14px;
    border: 1px solid rgba(205, 157, 91, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(9px);
}

.song-hero__fact span,
.song-hero__assets-label {
    display: block;
    color: #7f776c;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.song-hero__fact strong {
    display: block;
    margin-top: 4px;
    color: #d6cbbb;
    font-size: 0.88rem;
    font-weight: 600;
}

.song-hero__assets {
    margin-top: 22px;
}

.song-hero__asset-list {
    gap: 7px;
    margin-top: 9px;
}

.song-hero__asset-list span {
    padding: 6px 9px;
    border: 1px solid rgba(205, 157, 91, 0.18);
    border-radius: 999px;
    background: rgba(205, 157, 91, 0.055);
    color: #bca987;
    font-size: 0.68rem;
}

.song-hero__asset-list .is-empty {
    color: #746d64;
    background: rgba(255, 255, 255, 0.02);
}

.song-hero__actions {
    gap: 9px;
    margin-top: 27px;
}

.song-hero__action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(205, 157, 91, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: #c8b99f;
    font: inherit;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.song-hero__action:hover {
    transform: translateY(-1px);
    border-color: rgba(205, 157, 91, 0.42);
    background: rgba(205, 157, 91, 0.09);
    color: #eee1ca;
}

.song-hero__action.is-primary {
    border-color: rgba(205, 157, 91, 0.38);
    background: linear-gradient(180deg, rgba(205, 157, 91, 0.25), rgba(126, 77, 36, 0.2));
    color: #f0dfc0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.song-hero__action.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .song-workspace-view .song-hero {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    }

    .song-hero__artwork-stage {
        padding-left: 28px;
    }

    .song-hero__content {
        padding: 38px 32px 38px 24px;
    }
}

@media (max-width: 760px) {
    .song-workspace-view .song-hero {
        grid-template-columns: 1fr;
    }

    .song-hero__artwork-stage {
        min-height: 330px;
        padding: 34px;
    }

    .song-hero__vinyl {
        width: min(68%, 260px);
        left: 34%;
    }

    .song-workspace-view .song-hero .song-preview-artwork {
        width: min(62%, 230px);
        transform: translateX(-12%) rotate(-2deg);
    }

    .song-hero__content {
        padding: 34px;
    }

    .song-hero__identity {
        margin: 26px 0 24px;
    }
}

@media (max-width: 520px) {
    .song-hero__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .song-hero__content,
    .song-hero__artwork-stage {
        padding: 26px;
    }

    .song-hero__fact {
        flex: 1 1 100px;
    }

    .song-hero__action {
        flex: 1 1 calc(50% - 9px);
        justify-content: center;
    }
}

/* ==========================================================
   BUILD 13.2 — SONG PRACTICE HUB
   ========================================================== */

.song-practice-hub {
    position: relative;
    margin-top: 18px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(205, 157, 91, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(29, 24, 20, 0.94), rgba(14, 13, 12, 0.96)),
        rgba(18, 16, 14, 0.94);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
    scroll-margin-top: 24px;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.song-practice-hub::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 13% 0%, rgba(191, 132, 66, 0.08), transparent 30%);
}

.song-practice-hub.is-practice-highlighted,
.practice-hub-focus.is-practice-highlighted {
    border-color: rgba(218, 169, 98, 0.38);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), 0 0 32px rgba(190, 129, 62, 0.1);
}

.song-practice-hub__header,
.song-practice-hub__groups,
.song-practice-hub__lower,
.practice-hub-empty {
    position: relative;
    z-index: 1;
}

.song-practice-hub__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.song-practice-hub__header h3 {
    margin: 5px 0 7px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: #f0e5d2;
}

.song-practice-hub__header > div:first-child > p:last-child {
    max-width: 700px;
    margin: 0;
    color: rgba(232, 220, 200, 0.65);
    line-height: 1.6;
}

.song-practice-hub__readiness {
    min-width: 220px;
    max-width: 290px;
    padding: 14px 16px;
    border: 1px solid rgba(190, 139, 75, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.song-practice-hub__readiness span,
.song-practice-hub__readiness small {
    display: block;
}

.song-practice-hub__readiness span {
    margin-bottom: 4px;
    color: #e7d3b0;
    font-weight: 700;
}

.song-practice-hub__readiness small {
    color: rgba(225, 213, 193, 0.56);
    line-height: 1.45;
}

.song-practice-hub__readiness.is-ready {
    border-color: rgba(218, 169, 98, 0.32);
    background: rgba(201, 147, 75, 0.07);
}

.song-practice-hub__readiness.is-partial {
    border-color: rgba(166, 111, 60, 0.26);
    background: rgba(137, 88, 47, 0.055);
}

.song-practice-hub__readiness.is-missing {
    opacity: 0.8;
}

.song-practice-hub__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.practice-hub-group {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.022);
}

.practice-hub-group header {
    margin-bottom: 13px;
}

.practice-hub-group h4,
.practice-hub-focus h4,
.practice-hub-missing h4,
.practice-hub-empty h4 {
    margin: 4px 0 0;
    color: #eadcc4;
    font-size: 1rem;
}

.practice-hub-assets {
    display: grid;
    gap: 9px;
}

.practice-hub-asset {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 12px;
    background: rgba(6, 6, 6, 0.16);
}

.practice-hub-asset__type {
    min-width: 52px;
    padding: 5px 7px;
    border: 1px solid rgba(193, 143, 79, 0.18);
    border-radius: 999px;
    color: rgba(222, 188, 137, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.practice-hub-asset__content {
    min-width: 0;
}

.practice-hub-asset__content strong,
.practice-hub-asset__content small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.practice-hub-asset__content strong {
    color: #e6d8c0;
    font-size: 0.9rem;
}

.practice-hub-asset__content small {
    margin-top: 3px;
    color: rgba(220, 208, 188, 0.48);
}

.practice-hub-asset .button-text {
    white-space: nowrap;
}

.song-practice-hub__lower {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.8fr);
    gap: 16px;
    margin-top: 16px;
}

.practice-hub-focus,
.practice-hub-missing,
.practice-hub-empty {
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.022);
}

.practice-hub-focus {
    padding: 20px;
    scroll-margin-top: 24px;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.practice-hub-focus__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0;
}

.practice-hub-focus .practice-overview-fact {
    min-height: auto;
    padding: 11px 12px;
}

.practice-hub-focus .practice-focus-list {
    margin: 12px 0 0;
}

.practice-hub-notes {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.practice-hub-notes > span {
    display: block;
    margin-bottom: 7px;
    color: rgba(220, 188, 139, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.practice-hub-notes p {
    margin: 0 0 7px;
    color: rgba(231, 220, 202, 0.68);
    line-height: 1.55;
}

.practice-hub-missing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
}

.practice-hub-missing ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.practice-hub-missing li {
    position: relative;
    padding-left: 15px;
    color: rgba(222, 210, 191, 0.58);
    font-size: 0.86rem;
    line-height: 1.45;
}

.practice-hub-missing li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(177, 119, 62, 0.55);
}

.practice-hub-missing .button-secondary {
    margin-top: auto;
}

.practice-hub-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
}

.practice-hub-empty p:last-child {
    max-width: 660px;
    margin: 7px 0 0;
    color: rgba(225, 213, 193, 0.58);
    line-height: 1.55;
}

@media (max-width: 1120px) {
    .song-practice-hub__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .practice-hub-group:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .song-practice-hub__header,
    .practice-hub-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .song-practice-hub__readiness {
        min-width: 0;
        max-width: none;
    }

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

@media (max-width: 650px) {
    .song-practice-hub {
        padding: 20px;
        border-radius: 18px;
    }

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

    .practice-hub-group:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .practice-hub-asset {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .practice-hub-asset .button-text {
        grid-column: 2;
        justify-self: start;
    }

    .practice-hub-focus__facts {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   BUILD 13.2 REVIEW — INTEGRATED PRACTICE HUB
   ========================================================== */

.song-practice-hub__engine {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(210, 164, 92, 0.14);
}

.song-practice-hub__engine-heading {
    margin-bottom: 18px;
}

.song-practice-hub__engine-heading h3 {
    margin: 4px 0 6px;
}

.song-practice-hub__engine-heading p:last-child {
    margin: 0;
    color: var(--text-muted, rgba(239, 229, 211, 0.68));
}

.song-practice-hub__engine .practice-workspace {
    margin: 0;
}

.song-practice-hub__engine .practice-panel {
    margin: 0;
}


/* ==========================================================
   BUILD 13.3 — INSTRUMENT PRACTICE VIEWS
   ========================================================== */

.practice-instrument-card {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
        rgba(8, 7, 6, 0.18);
}

.practice-instrument-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 14% 0%, rgba(197, 143, 76, 0.055), transparent 38%);
}

.practice-instrument-card > header,
.practice-instrument-card > .practice-hub-assets {
    position: relative;
    z-index: 1;
}

.practice-instrument-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.practice-instrument-card__identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.practice-instrument-card__identity > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(196, 145, 79, 0.16);
    border-radius: 11px;
    background: rgba(211, 158, 88, 0.045);
    filter: saturate(0.62);
    font-size: 1.05rem;
}

.practice-instrument-card__identity h4 {
    margin-top: 2px;
}

.practice-instrument-card__count {
    flex: 0 0 auto;
    color: rgba(221, 205, 181, 0.42);
    font-size: 0.72rem;
    white-space: nowrap;
}

.practice-instrument-card .practice-hub-asset {
    background: rgba(4, 4, 4, 0.2);
}

.practice-instrument-card .practice-hub-asset:first-child {
    border-color: rgba(193, 143, 79, 0.105);
}

@media (max-width: 650px) {
    .practice-instrument-card > header {
        align-items: flex-start;
    }

    .practice-instrument-card__count {
        padding-top: 6px;
    }
}

/* ==========================================================
   BUILD 13.4 — SONG ASSET INTEGRATION
   ========================================================== */

.song-assets-grid {
    display: grid;
    gap: 1.25rem;
}

.song-asset-group {
    display: grid;
    gap: 0.8rem;
}

.song-asset-group__header {
    padding: 0 0.15rem;
}

.song-asset-group__header h4 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.song-asset-group__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.song-asset-group--identity .song-asset-group__grid,
.song-asset-group--audio .song-asset-group__grid {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 820px) {
    .song-asset-group__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Build 13.4 review — onbereikbare lokale assetpaden */
.song-asset-state.is-invalid {
    border-color: rgba(171, 124, 66, 0.45);
    color: rgba(225, 194, 150, 0.9);
}

.song-asset-invalid-path {
    color: rgba(225, 194, 150, 0.86);
}

.song-asset-editor label > small {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.56));
    font-size: 0.72rem;
    line-height: 1.45;
}

/* ==========================================================
   BUILD 13.5 — SONG WORKSPACE CONSOLIDATION
   ========================================================== */

.song-workspace-view > .workspace-tabs {
    margin-top: 16px;
    margin-bottom: 0;
}

.song-workspace-view > .workspace-tab-content {
    margin-top: 12px;
}

.song-workspace-view > .workspace-tab-content > .song-practice-hub {
    margin-top: 0;
}

.song-workspace-view .workspace-tab-button {
    min-height: 38px;
}

.song-practice-hub .practice-hub-empty,
.song-practice-hub .practice-hub-missing {
    border-radius: 14px;
}

@media (max-width: 820px) {
    .song-workspace-view > .workspace-tabs {
        margin-top: 12px;
    }

    .song-workspace-view > .workspace-tab-content {
        margin-top: 10px;
    }
}
