.studio-page {
    --studio-page-gutter: clamp(1rem, 4vw, 3rem);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 3%, var(--background-primary)), var(--background-primary) 30rem);
}

#space-filler-container {
    opacity: 0.2;
}

.studio-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0 max(5vw, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid var(--background-darker);
    background: color-mix(in srgb, var(--background-primary) 92%, transparent);
    backdrop-filter: blur(12px);
}

.studio-header .site-brand img {
    width: 30px;
    height: 30px;
}

.studio-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.studio-nav .nivix-primary-button,
.studio-nav .nivix-secondary-button {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    font-size: 0.77rem;
}

.studio-nav .settings-nav {
    width: 38px;
    padding: 0;
    font-size: 1.1rem;
}

.studio-main {
    position: relative;
    z-index: 1;
    width: min(1180px, 92%);
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 1rem 0 3.5rem;
}

.studio-tab.tab {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 200px);
    flex-direction: column;
    overflow: visible;
    scroll-margin-top: 90px;
}

.studio-tab.previsible-flex {
    display: flex;
}

.studio-tab.is-fading-in,
.studio-tab.is-fading-out {
    animation-duration: var(--transition);
}

.sub-tab-container .tab {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.sub-tab-container .tab.previsible-flex {
    display: flex;
}

.studio-welcome {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0.4rem 0 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--background-primary) 72%, var(--brand-primary));
}

.studio-welcome > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.studio-welcome h1, .page-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.7rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 1.03;
}

.studio-welcome > div:first-child > p:last-child,
.page-heading > p:last-child {
    max-width: 610px;
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    font-size: 0.91rem;
}

.welcome-symbol {
    position: relative;
    display: grid;
    width: 180px;
    height: 150px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, transparent);
    border-radius: 50%;
    color: var(--brand-darker);
    font-size: 1.7rem;
    transform: rotate(-11deg);
}

.welcome-symbol::before, .welcome-symbol::after,
.welcome-symbol i {
    position: absolute;
    inset: 5px -15px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, transparent);
    border-radius: 50%;
    content: "";
}

.welcome-symbol::after {
    inset: -9px 15px;
    transform: rotate(44deg);
}

.welcome-symbol i {
    inset: 12px -7px;
    transform: rotate(-39deg);
}

.welcome-symbol .nivix-accent {
    position: relative;
    z-index: 1;
    color: var(--brand-darker);
    font-size: 1.45rem;
}

.studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 50px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--background-darker);
}

.subnav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.studio-toolbar .nivix-secondary-button,
.download-subnav .nivix-secondary-button {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
}

.search-box {
    display: flex;
    width: min(255px, 43%);
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--background-darker);
    border-radius: var(--radius);
    background: var(--background-primary);
}

.search-box:focus-within {
    border-color: var(--brand-primary);
    box-shadow: var(--inset-shadow);
}

.search-box svg {
    width: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.7;
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 0.1rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.search-box kbd {
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--background-darker);
    border-radius: 3px;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.results-count {
    margin: 0.6rem 0 0.8rem;
    color: var(--text-secondary);
    font-size: 0.71rem;
}

.app-panels {
    min-height: 310px;
}

.content-tab {
    flex-direction: column;
    gap: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    align-items: start;
    gap: 1rem;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--background-darker);
    border-radius: var(--radius);
    background: var(--background-primary);
    box-shadow: var(--outset-shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--shade) 70%, transparent);
    transform: translateY(-2px);
}

.project-cover {
    position: relative;
    display: flex;
    min-height: 125px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--brand-primary) 16%, var(--background-primary));
}

.project-cover::after {
    position: absolute;
    right: -22px;
    bottom: -65px;
    width: 210px;
    height: 170px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
    border-radius: 50%;
    content: "";
    transform: rotate(-20deg);
}

.project-cover::before {
    position: absolute;
    right: 10px;
    bottom: -50px;
    width: 180px;
    height: 160px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
    border-radius: 50%;
    content: "";
    transform: rotate(23deg);
}

.archive-cover {
    background: color-mix(in srgb, #8b76ad 13%, var(--background-primary));
}

.archive-cover::before, .archive-cover::after {
    border-color: color-mix(in srgb, #8b76ad 30%, transparent);
}

.project-monogram {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
    border-radius: var(--radius);
    background: var(--background-primary);
    color: var(--brand-darker);
    font-size: 1.8rem;
    font-weight: 700;
}

.project-monogram-image {
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.project-monogram-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archive-cover .project-monogram {
    border-color: #c8bdda;
    color: #72539d;
}

.cover-label, .cover-version {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
}

.cover-version {
    margin-left: auto;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--background-primary) 75%, transparent);
}

.project-content {
    padding: 1.2rem;
}

.project-title-row, .release-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.project-title-row .eyebrow, .release-heading .eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.62rem;
}

.project-title-row h2, .release-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.project-state {
    flex: 0 0 auto;
    padding: 0.22rem 0.48rem;
    border: 1px solid color-mix(in srgb, #24844e 30%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, #24844e 8%, var(--background-primary));
    color: #267544;
    font-size: 0.65rem;
    font-weight: 700;
}

.project-state i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: #37a66a;
}

.state-archived {
    border-color: #c8bdda;
    background: #f7f4fb;
    color: #72539d;
}

.project-content > p {
    min-height: 55px;
    margin: 0.6rem 0 0.8rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-row span {
    padding: 0.18rem 0.4rem;
    border-radius: 3px;
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-size: 0.62rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--background-darker);
}

.project-actions .nivix-primary-button, .project-actions .nivix-secondary-button {
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    text-decoration: none;
}

.project-actions .project-source {
    margin-left: auto;
}

.availability-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.availability-note > span {
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--background-darker);
    border-radius: 50%;
    color: var(--brand-darker);
    font-weight: 700;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--background-darker);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-align: center;
}

.page-heading {
    margin: 1rem 0 1.5rem;
}

.page-heading h1 {
    max-width: 760px;
}

.page-heading > p:last-child {
    margin-top: 0.5rem;
}

.studio-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.staff-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 220px;
    padding: 1.4rem;
    border: 1px solid var(--background-darker);
    border-radius: var(--radius);
    background: var(--background-primary);
    box-shadow: var(--outset-shadow);
}

.staff-photo, .staff-monogram {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--background-darker);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 12%, var(--background-primary));
    color: var(--brand-darker);
    font-size: 1.2rem;
    font-weight: 700;
}

.staff-photo {
    object-fit: cover;
}

.staff-details {
    min-width: 0;
}

.staff-details .eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.staff-details h2 {
    margin: 0;
    font-size: 1.2rem;
}

.staff-details > p:not(.eyebrow) {
    margin: 0.4rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.staff-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin-top: 0.85rem;
}

.staff-links a, .staff-links .contact-unlisted {
    font-size: 0.7rem;
}

.staff-links a {
    color: var(--brand-darker);
    text-decoration: none;
}

.staff-links a:hover {
    text-decoration: underline;
}

.contact-note {
    display: flex;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 8%, var(--background-primary));
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.contact-note strong {
    flex: 0 0 auto;
    color: var(--text-primary);
}

.download-subnav {
    margin: 1rem 0;
    border-bottom: 1px solid var(--background-darker);
}

.download-panels {
    min-height: 340px;
}

.release-card {
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid var(--background-darker);
    border-radius: var(--radius);
    background: var(--background-primary);
    box-shadow: var(--outset-shadow);
}

.release-heading {
    flex-wrap: wrap;
}

.release-heading h2 span {
    margin-left: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.68em;
    font-weight: 400;
}

.release-heading .project-source {
    font-size: 0.75rem;
}

.release-card > p {
    margin: 0.8rem 0 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.release-list {
    border-top: 1px solid var(--background-darker);
}

.release-list > a {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--background-darker);
    text-decoration: none;
    transition: background var(--transition);
}

.release-list > a:hover {
    background: color-mix(in srgb, var(--brand-primary) 5%, var(--background-primary));
}

.release-platform {
    width: fit-content;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius);
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
}

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

.release-list strong {
    font-size: 0.8rem;
}

.release-list small {
    margin-top: 0.12rem;
    color: var(--text-secondary);
    font-size: 0.67rem;
}

.release-download {
    color: var(--brand-darker);
    font-size: 0.7rem;
    font-weight: 700;
}

.toolkit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    align-items: start;
    gap: 1rem;
}

.toolkit-list, .toolkit-aside, .settings-card {
    padding: 1.35rem;
    border: 1px solid var(--background-darker);
    border-radius: var(--radius);
    background: var(--background-primary);
    box-shadow: var(--outset-shadow);
}

.toolkit-list h2, .toolkit-aside h2, .settings-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
}

.toolkit-list > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--background-darker);
    color: var(--brand-darker);
    text-decoration: none;
}

.toolkit-list > a:hover strong {
    text-decoration: underline;
}

.toolkit-list > a > span:nth-child(2) {
    flex: 1;
}

.toolkit-mark {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--brand-primary) 13%, var(--background-primary));
    color: var(--brand-darker);
    font-size: 0.72rem;
    font-weight: 700;
}

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

.toolkit-list strong {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.toolkit-list small {
    margin-top: 0.08rem;
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.toolkit-aside {
    position: sticky;
    top: 88px;
    background: color-mix(in srgb, var(--brand-primary) 7%, var(--background-primary));
}

.toolkit-aside .eyebrow {
    margin-bottom: 0.25rem;
}

.toolkit-aside > p:not(.eyebrow) {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.toolkit-aside .nivix-primary-button, .toolkit-aside .nivix-secondary-button {
    width: 100%;
    margin-top: 0.45rem;
    text-decoration: none;
}

.settings-card {
    max-width: 740px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--background-darker);
    cursor: pointer;
}

.setting-row input {
    flex: 0 0 auto;
}

.setting-row span strong, .setting-row span small {
    display: block;
}

.setting-row strong {
    font-size: 0.82rem;
}

.setting-row small {
    margin-top: 0.1rem;
    color: var(--text-secondary);
    font-size: 0.71rem;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.8rem;
    border-top: 1px solid var(--background-darker);
}

.studio-footer {
    position: relative;
    z-index: 1;
}

.studio-footer .footer-brand img {
    width: 27px;
    height: 27px;
}

.notification-box {
    left: auto;
    right: 20px;
    width: min(370px, calc(100vw - 40px));
}

.popup-container .popup {
    width: min(420px, calc(100vw - 30px));
    max-width: none;
}

@media (max-width: 760px) {
    .studio-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding-top: 0.5rem;
        padding-bottom: 0.45rem;
    }

    .studio-header .site-brand {
        min-height: 36px;
    }

    .studio-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.2rem;
    }

    .studio-nav .nivix-primary-button {
        min-height: 34px;
        padding: 0.35rem 0.5rem;
        font-size: 0.69rem;
    }

    .studio-nav .settings-nav {
        width: 34px;
    }

    .studio-main {
        width: 92%;
        padding-top: 0.55rem;
    }

    .welcome-symbol {
        width: 110px;
        height: 100px;
        font-size: 1.1rem;
    }

    .welcome-symbol .nivix-accent {
        font-size: 1.05rem;
    }

    .studio-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .studio-team-grid, .toolkit-layout {
        grid-template-columns: 1fr;
    }

    .toolkit-aside {
        position: static;
    }
}

@media (max-width: 480px) {
    .studio-welcome {
        min-height: 200px;
        align-items: flex-start;
        padding: 1.2rem;
    }

    .studio-welcome h1, .page-heading h1 {
        font-size: 2rem;
    }

    .studio-welcome > div:first-child > p:last-child {
        max-width: 245px;
        font-size: 0.79rem;
    }

    .welcome-symbol {
        position: absolute;
        right: 0.3rem;
        bottom: 0.6rem;
        width: 82px;
        height: 70px;
        opacity: 0.55;
    }

    .welcome-symbol .nivix-accent {
        font-size: 0.8rem;
    }

    .subnav {
        width: 100%;
    }

    .studio-toolbar .nivix-secondary-button {
        flex: 1;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0.7rem;
    }

    .project-title-row {
        align-items: flex-start;
    }

    .project-content {
        padding: 0.95rem;
    }

    .staff-card {
        gap: 0.7rem;
        padding: 1rem;
    }

    .staff-photo, .staff-monogram {
        width: 54px;
        height: 54px;
    }

    .contact-note {
        flex-direction: column;
    }

    .release-list > a {
        grid-template-columns: 62px 1fr;
        gap: 0.55rem;
    }

    .release-download {
        grid-column: 2;
    }

    .release-heading .project-source {
        padding: 0.35rem 0.55rem;
        font-size: 0.67rem;
    }
}
