html {
            scroll-behavior: smooth;
        }
        body {
            background-color: #050505;
            color: #e5e2e1;
            overflow-x: hidden;
        }
        .glass-panel {
            background: rgba(10, 15, 30, 0.6);
            backdrop-filter: blur(24px);
            border: 0.5px solid rgba(255, 255, 255, 0.1);
        }
        .glow-hover:hover {
            box-shadow: 0 0 40px rgba(173, 198, 255, 0.25);
            border-color: rgba(77, 142, 255, 0.5);
            transform: scale(1.02);
            backdrop-filter: blur(32px);
        }
        .text-gradient {
            background: linear-gradient(135deg, #adc6ff 0%, #d0bcff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .custom-scrollbar::-webkit-scrollbar {
            height: 4px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #4d8eff;
            border-radius: 10px;
        }

        /* Animations */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulseSlow {
            0%, 100% { opacity: 0.7; transform: scale(1.1); }
            50% { opacity: 0.9; transform: scale(1.15); }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
            50% { transform: translateY(-15px) rotate(var(--rot, 0deg)); }
        }

        .animate-fade-up {
            opacity: 0;
            animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        .delay-100 { animation-delay: 100ms; }
        .delay-200 { animation-delay: 200ms; }
        .delay-300 { animation-delay: 300ms; }

        .parallax-bg {
            will-change: transform;
            transform: translateY(var(--parallax-y, 0));
        }

        .hero-overlay {
            background: linear-gradient(to bottom, transparent 0%, rgba(5, 5, 5, 0.4) 52%, #050505 100%);
        }

        html.light body {
            background-color: #f5f7fb;
            color: #18202f;
        }

        html.light nav {
            background: rgba(245, 247, 251, 0.88);
            border-color: rgba(36, 90, 196, 0.16);
            box-shadow: 0 8px 32px rgba(20, 35, 70, 0.08);
        }

        html.light .glass-panel {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(36, 90, 196, 0.16);
        }

        html.light .text-gradient {
            background: linear-gradient(135deg, #245ac4 0%, #7657c7 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        html.light .text-on-surface {
            color: #18202f !important;
        }

        html.light .text-on-surface-variant {
            color: #526071 !important;
        }

        html.light .text-primary {
            color: #245ac4 !important;
        }

        html.light .text-tertiary {
            color: #00768c !important;
        }

        html.light .text-secondary {
            color: #7657c7 !important;
        }

        html.light .bg-background {
            background-color: rgba(245, 247, 251, 0.88) !important;
        }

        html.light .bg-surface-container-lowest,
        html.light .bg-surface-container-low {
            background-color: #edf2f8 !important;
        }

        html.light .bg-primary {
            background-color: #245ac4 !important;
        }

        html.light .text-on-primary {
            color: #ffffff !important;
        }

        html.light [class~="border-white/10"],
        html.light [class*="border-outline-variant"] {
            border-color: rgba(36, 90, 196, 0.16) !important;
        }

        html.light #mastery .bg-black\/60 {
            background-color: rgba(255, 255, 255, 0.72) !important;
        }

        html.light .mobile-menu-panel {
            background: rgba(245, 247, 251, 0.96);
            border-color: rgba(36, 90, 196, 0.16);
            box-shadow: 0 18px 48px rgba(20, 35, 70, 0.16);
        }

        html.light .hero-overlay {
            background: linear-gradient(
                to bottom,
                rgba(245, 247, 251, 0) 0%,
                rgba(245, 247, 251, 0) 58%,
                rgba(245, 247, 251, 0.16) 76%,
                rgba(245, 247, 251, 0.62) 100%
            );
        }

        html.light #top .hero-lead {
            color: #18202f !important;
        }

        .mobile-menu-panel {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            transform: translateY(-8px);
            transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
        }

        .mobile-menu-panel:not(.is-open) {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            border-width: 0 !important;
        }

        .mobile-menu-panel.is-open {
            height: 320px !important;
            max-height: none !important;
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            border-width: 1px !important;
        }

        #mobile-menu.mobile-menu-panel.is-open {
            height: 320px !important;
            max-height: none !important;
        }

        .mobile-menu-panel a {
            display: block;
            padding-top: 12px;
            padding-bottom: 12px;
        }

        @media (max-width: 640px) {
            #mouse-glow {
                width: 360px !important;
                height: 360px !important;
                filter: blur(90px) !important;
                opacity: 0.3 !important;
            }

            .px-margin-desktop {
                padding-left: 16px !important;
                padding-right: 16px !important;
            }

            .py-32 {
                padding-top: 64px !important;
                padding-bottom: 64px !important;
            }

            .mb-16 {
                margin-bottom: 32px !important;
            }

            .mb-12 {
                margin-bottom: 24px !important;
            }

            .gap-gutter {
                gap: 16px !important;
            }

            nav > div {
                height: 56px !important;
                padding-left: 16px !important;
                padding-right: 16px !important;
                gap: 10px !important;
            }

            nav > div > div:first-child {
                min-width: 0;
                gap: 8px !important;
            }

            nav img {
                height: 24px !important;
            }

            nav span.font-headline-sm {
                font-size: 18px !important;
                line-height: 1.15 !important;
                letter-spacing: 0 !important;
            }

            nav > div > div:last-child {
                flex-shrink: 0;
                gap: 10px !important;
            }

            nav button.material-symbols-outlined {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 28px;
                height: 28px;
                font-size: 20px !important;
            }

            nav button:not(.material-symbols-outlined) {
                padding: 8px 14px !important;
                font-size: 12px !important;
                line-height: 1.2 !important;
            }

            .mobile-menu-panel {
                display: block;
            }

            body > section:first-of-type {
                min-height: 100svh;
                padding-top: 56px !important;
            }

            body > section:first-of-type > .relative {
                gap: 0 !important;
            }

            body > section:first-of-type .flex.flex-col.gap-8 {
                gap: 20px !important;
                max-width: 100%;
            }

            body > section:first-of-type h1 {
                max-width: 100%;
                font-size: 32px !important;
                line-height: 1.1 !important;
                letter-spacing: 0 !important;
                overflow-wrap: anywhere;
            }

            body > section:first-of-type p {
                max-width: 100%;
                font-size: 15px !important;
                line-height: 1.55 !important;
            }

            body > section:first-of-type .flex.flex-wrap.gap-4 {
                gap: 12px !important;
                padding-top: 4px !important;
            }

            body > section:first-of-type .flex.flex-wrap.gap-4 button {
                flex: 0 1 auto;
                padding: 10px 12px !important;
                border-radius: 10px !important;
                font-size: 12px !important;
                line-height: 1.2 !important;
                text-align: center;
                white-space: nowrap;
            }

            section h2 {
                font-size: 28px !important;
                line-height: 1.2 !important;
                letter-spacing: 0 !important;
            }

            #disciplines .flex.flex-col.gap-4,
            #why .flex.flex-col.gap-6 {
                gap: 16px !important;
            }

            #disciplines .absolute.bottom-0 {
                padding: 20px !important;
                transform: none !important;
            }

            #mastery > div > .flex.justify-between.items-end {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 20px !important;
                margin-bottom: 28px !important;
            }

            #mastery > div > .flex.justify-between.items-end > div {
                width: 100%;
            }

            #mastery > div > .flex.justify-between.items-end > .flex {
                flex-wrap: wrap !important;
                gap: 8px !important;
                max-width: 100%;
            }

            #mastery > div > .flex.justify-between.items-end > .flex span {
                max-width: 100%;
                padding: 8px 12px !important;
                white-space: normal;
                overflow-wrap: anywhere;
            }

            #mastery .space-y-gutter > :not([hidden]) ~ :not([hidden]) {
                margin-top: 16px !important;
            }

            #why .glass-panel {
                padding: 20px !important;
            }

            #showcase {
                padding-top: 64px !important;
                padding-bottom: 48px !important;
            }

            #showcase > div:first-child {
                margin-bottom: 24px !important;
            }

            #showcase > div:nth-child(2) {
                gap: 16px !important;
                padding-bottom: 28px !important;
                scroll-padding-left: 16px;
            }

            #showcase .flex-none {
                width: 260px !important;
            }

            footer {
                padding-top: 32px !important;
                padding-bottom: 32px !important;
            }

            footer > div {
                gap: 20px !important;
                text-align: center;
            }

            footer p {
                max-width: 300px;
                font-size: 12px !important;
                line-height: 1.5 !important;
            }

            footer > div > div:nth-child(2) {
                flex-wrap: wrap !important;
                justify-content: center !important;
                gap: 12px 18px !important;
                max-width: 100%;
            }

            footer a {
                font-size: 12px !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .animate-fade-up, .pulse-bg, .animate-float {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
            .glow-hover:hover {
                transform: none !important;
            }
        }
#mouse-glow {
    transform: translate(195px, 4570px);
}

.hero-bg {
    --parallax-y: 0px;
    background-image: url("assets/background.png");
    animation: pulseSlow 15s ease-in-out infinite;
}

html.light .hero-bg {
    background-image: url("assets/background_white.png");
}

html.light nav a:hover,
html.light nav button:hover {
    color: #245AC4 !important;
}

#disciplines .absolute.bottom-0 h3,
#disciplines .absolute.bottom-0 p {
    color: #f6f8ff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.author-photo-wrap img {
    display: block;
}


.float-card-prompt {
    --rot: -3deg;
    animation: float 6s ease-in-out infinite;
}

.float-card-model {
    --rot: 2deg;
    animation: float 8s ease-in-out infinite;
}

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

.mastery-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mastery-card:hover,
.mastery-card:focus-visible {
    border-color: rgba(173, 198, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(173, 198, 255, 0.36), 0 22px 60px rgba(77, 142, 255, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.mastery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.mastery-card:hover img,
.mastery-card:focus-visible img {
    filter: brightness(0.5);
    transform: scale(1.04);
}

.mastery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 28px;
    opacity: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mastery-card:hover .mastery-card-overlay,
.mastery-card:focus-visible .mastery-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.mastery-card-kicker {
    color: #4cd7f6;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mastery-card h3 {
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.mastery-card-prompt {
    color: #f3f5ff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4;
    max-width: 680px;
}

.mastery-card-tags,
.prompt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mastery-card-tags span,
.prompt-card-tags span {
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(229, 226, 225, 0.16);
    color: #e5e2e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prompt-page {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    min-height: calc(100vh - 96px);
    margin: 0 auto;
    padding: 128px 64px 96px;
}

.prompt-hero {
    display: grid;
    gap: 24px;
    margin-bottom: 72px;
    padding: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(173, 198, 255, 0.1), rgba(76, 215, 246, 0.05));
}

.prompt-hero h1 {
    max-width: 900px;
}

.prompt-hero p {
    max-width: 760px;
}

.prompt-style-list {
    display: grid;
    gap: 56px;
}

.prompt-style-section {
    display: grid;
    gap: 24px;
}

.prompt-style-header {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.prompt-style-header h2 {
    color: #e5e2e1;
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.prompt-style-header p {
    color: #c2c6d6;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.prompt-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.prompt-sample-card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.prompt-sample-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.prompt-sample-content {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.prompt-sample-title {
    color: #adc6ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.prompt-sample-prompt {
    color: #f3f5ff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4;
}

/* Artists page */
.artists-page {
    min-height: calc(100vh - 96px);
}

.artists-hero {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.artists-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artists-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    padding: 28px 0 56px;
}

.artists-filter {
    position: relative;
    z-index: 20;
}

.artists-filter.is-open {
    z-index: 40;
}

.artists-filter-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(173, 198, 255, 0.22);
    background: rgba(10, 15, 30, 0.62);
    color: #adc6ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.artists-filter-button:hover,
.artists-filter.is-open .artists-filter-button {
    border-color: rgba(173, 198, 255, 0.72);
    background: rgba(20, 29, 55, 0.86);
    color: #e5e2e1;
}

.artists-filter-button .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 20px;
    transition: transform 180ms ease;
}

.artists-filter.is-open .artists-filter-button .material-symbols-outlined {
    transform: rotate(180deg);
}

.artists-filter-menu {
    width: 100%;
    margin-top: 8px;
    max-height: 312px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(173, 198, 255, 0.25);
    background: rgba(8, 11, 20, 0.96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px);
}

.artists-filter.is-open .artists-filter-menu {
    display: grid;
}

.artists-filter-option {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid rgba(173, 198, 255, 0.16);
    background: rgba(18, 24, 42, 0.78);
    color: #c2c6d6;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.artists-filter-option:hover,
.artists-filter-option.is-selected {
    border-color: rgba(173, 198, 255, 0.78);
    background: rgba(77, 142, 255, 0.18);
    color: #e5e2e1;
}

@media (hover: none) {
    .artists-filter-option:hover:not(.is-selected) {
        border-color: rgba(173, 198, 255, 0.16);
        background: rgba(18, 24, 42, 0.78);
        color: #c2c6d6;
    }
}

.artists-action-button {
    min-height: 48px;
    align-self: start;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(173, 198, 255, 0.44);
    background: rgba(77, 142, 255, 0.18);
    color: #d8e2ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.artists-action-button:not(:disabled):hover,
.artists-action-button:not(:disabled):focus-visible {
    border-color: rgba(173, 198, 255, 0.78);
    background: rgba(77, 142, 255, 0.28);
    color: #ffffff;
    outline: none;
}

.artists-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.artists-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.artist-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.artist-card:hover,
.artist-card:focus-visible {
    border-color: rgba(173, 198, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(173, 198, 255, 0.45), 0 18px 48px rgba(77, 142, 255, 0.18);
    transform: translateY(-2px);
    outline: none;
}

.artist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 360ms ease, filter 360ms ease;
}

.artist-card:hover img,
.artist-card:focus-visible img {
    transform: scale(1.04);
    filter: brightness(0.52);
}

.artist-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px;
    opacity: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.84));
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.artist-card:hover .artist-card-overlay,
.artist-card:focus-visible .artist-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.artist-card-title {
    color: #adc6ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.artist-card-prompt {
    color: #f3f5ff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
}

.artist-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.artist-card-tags span {
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(229, 226, 225, 0.16);
    color: #e5e2e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.artists-empty {
    color: #c2c6d6;
    font-size: 16px;
    padding: 32px 0;
}

.artist-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.artist-modal.is-open {
    display: flex;
}

.artist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.artist-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(760px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(173, 198, 255, 0.38);
    background: rgba(8, 11, 20, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(173, 198, 255, 0.12);
}

.artist-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(173, 198, 255, 0.28);
    background: rgba(8, 11, 20, 0.82);
    color: #e5e2e1;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.artist-modal-close:hover,
.artist-modal-close:focus-visible {
    border-color: rgba(173, 198, 255, 0.82);
    background: rgba(77, 142, 255, 0.22);
    color: #adc6ff;
    outline: none;
}

.artist-modal-media {
    min-height: 360px;
    background: #050505;
}

.artist-modal-media img {
    width: 100%;
    height: 100%;
    max-height: min(760px, calc(100vh - 64px));
    display: block;
    object-fit: contain;
}

.artist-modal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 56px 32px 32px;
    overflow-y: auto;
}

.artist-modal-content h2 {
    color: #adc6ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.artist-modal-content p {
    color: #e5e2e1;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}

.artist-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.artist-modal-tags span {
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(173, 198, 255, 0.14);
    color: #e5e2e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.light .artists-hero {
    border-color: rgba(36, 90, 196, 0.16);
}

html.light .hero-lead {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

html.light .artists-filter-button,
html.light .artists-filter-menu,
html.light .artists-filter-option,
html.light .artist-card,
html.light .mastery-card,
html.light .prompt-hero,
html.light .prompt-sample-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(36, 90, 196, 0.18);
}

html.light .artists-filter-button,
html.light .artists-filter-option {
    color: #245ac4;
}

html.light .artists-filter-button:hover,
html.light .artists-filter-button:focus-visible,
html.light .artists-filter.is-open .artists-filter-button {
    background: rgba(36, 90, 196, 0.1);
    border-color: rgba(36, 90, 196, 0.5);
    color: #12325f;
}

html.light .artists-filter.has-selection .artists-filter-button {
    background: #245ac4;
    border-color: #245ac4;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(36, 90, 196, 0.2);
}

html.light .artists-filter-option:hover,
html.light .artists-filter-option:focus-visible {
    background: rgba(36, 90, 196, 0.1);
    border-color: rgba(36, 90, 196, 0.5);
    color: #12325f;
    outline: none;
}

html.light .artists-filter-option.is-selected {
    background: #245ac4;
    border-color: #245ac4;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 90, 196, 0.18);
}

html.light .artists-action-button {
    background: #245ac4;
    border-color: #245ac4;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(36, 90, 196, 0.18);
}

html.light .artists-action-button:not(:disabled):hover,
html.light .artists-action-button:not(:disabled):focus-visible {
    background: #123f91;
    border-color: #123f91;
    color: #ffffff;
}

html.light .artists-action-button:disabled {
    background: rgba(36, 90, 196, 0.12);
    border-color: rgba(36, 90, 196, 0.22);
    color: #526071;
    box-shadow: none;
}

html.light .artist-card-overlay {
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.04), rgba(8, 16, 32, 0.78));
}

html.light .mastery-card-overlay {
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.04), rgba(8, 16, 32, 0.82));
}

html.light .prompt-style-header h2,
html.light .prompt-sample-prompt {
    color: #18202f;
}

html.light .prompt-style-header p {
    color: #526071;
}

html.light .artist-modal-dialog {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(36, 90, 196, 0.22);
}

html.light .artist-modal-content p,
html.light .artist-modal-tags span {
    color: #18202f;
}

html.light .artist-modal-close {
    background: rgba(255, 255, 255, 0.88);
    color: #245ac4;
}

@media (max-width: 900px) {
    .mastery-grid,
    .prompt-samples {
        grid-template-columns: 1fr;
    }

    .prompt-page {
        padding-right: 32px;
        padding-left: 32px;
    }

    .prompt-hero {
        margin-bottom: 48px;
        padding: 32px;
    }

    .artists-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 36px;
    }

    .artists-filter-menu {
        width: 100%;
        margin-top: 8px;
    }

    .artist-modal-dialog {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 48px);
    }

    .artist-modal-media {
        min-height: 0;
        height: min(58vh, 520px);
    }

    .artist-modal-media img {
        max-height: min(58vh, 520px);
    }

    .artist-modal-content {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .mastery-grid {
        gap: 16px;
    }

    .mastery-card {
        aspect-ratio: 4 / 5;
    }

    .mastery-card-overlay {
        padding: 18px;
    }

    .mastery-card h3 {
        font-size: 22px;
    }

    .mastery-card-prompt {
        font-size: 12px;
        -webkit-line-clamp: 4;
    }

    .prompt-page {
        padding: 88px 20px 56px;
    }

    .prompt-hero {
        padding: 24px;
        margin-bottom: 40px;
    }

    .prompt-hero h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .prompt-hero p,
    .prompt-style-header p {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .prompt-style-list {
        gap: 44px;
    }

    .prompt-style-header h2 {
        font-size: 24px;
    }

    .artists-page {
        padding-top: 88px !important;
        padding-bottom: 56px !important;
    }

    .artists-hero {
        padding-bottom: 28px;
    }

    .artists-hero h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .artists-hero p {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

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

    .artist-card-overlay {
        padding: 12px;
        gap: 7px;
    }

    .artist-card-title {
        font-size: 12px;
    }

    .artist-card-prompt {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .artist-card-tags span {
        font-size: 8px;
        padding: 3px 5px;
    }

    .artist-modal {
        padding: 12px;
    }

    .artist-modal-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 8px;
    }

    .artist-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .artist-modal-media {
        height: 48vh;
    }

    .artist-modal-media img {
        max-height: 48vh;
    }

    .artist-modal-content {
        gap: 12px;
        padding: 18px;
    }

    .artist-modal-content h2 {
        padding-right: 42px;
        font-size: 16px;
    }

    .artist-modal-content p {
        font-size: 13px;
        line-height: 1.5;
    }

    .artist-modal-tags span {
        font-size: 8px;
        padding: 4px 6px;
    }
}




