/* ==========================================================================
   DM STUDIO AI
   PREMIUM NAVIGATION
   ==========================================================================

   Desktop:
   [brand] | Home Courses Toolkit Showcase About | Login | Get Started

   Logged in:
   [brand] | Home Courses Toolkit Showcase About | Logout | Dashboard

   Tablet / mobile:
   [brand]                                                     ☰

   The mobile navigation opens as a premium dark panel.

   This stylesheet intentionally uses strong selectors because DM Studio AI
   has older shared stylesheets that may still contain legacy header rules.
   ========================================================================== */


/* ==========================================================================
   HEADER SHELL
   ========================================================================== */

html body .dm-header {
    position: relative !important;
    z-index: 1000 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 10px 14px !important;

    background:
        linear-gradient(
            180deg,
            #09163f 0%,
            #0c1848 100%
        ) !important;

    border: 0 !important;

    box-shadow:
        0 7px 24px rgba(7, 18, 61, .14) !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}


/* Subtle top glow */
html body .dm-header::before {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;
    left: 8% !important;
    right: 8% !important;

    height: 1px !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(61, 205, 255, .48),
            rgba(118, 86, 255, .52),
            transparent
        ) !important;

    pointer-events: none !important;
}


/* ==========================================================================
   INNER PREMIUM BAR
   ========================================================================== */

html body .dm-header .dm-header-inner {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;

    width: min(100%, 1560px) !important;
    max-width: 1560px !important;
    min-height: 72px !important;

    margin: 0 auto !important;
    padding: 0 20px !important;

    gap: 18px !important;

    border:
        1px solid rgba(111, 122, 255, .18) !important;

    border-radius: 22px !important;

    background:
        linear-gradient(
            135deg,
            rgba(16, 29, 80, .96),
            rgba(10, 24, 71, .94)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 16px 34px rgba(4, 10, 39, .18) !important;

    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    box-sizing: border-box !important;
}


/* ==========================================================================
   BRAND
   ========================================================================== */

html body .dm-header .logo {
    display: inline-flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: max-content !important;

    margin: 0 !important;
    padding: 0 24px 0 3px !important;

    border-right:
        1px solid rgba(255, 255, 255, .11) !important;

    font-family: inherit !important;
    font-size: 1.48rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    overflow: visible !important;

    z-index: 1002 !important;
}


html body .dm-header .logo {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

html body .dm-header .logo > span:first-child {
    color: #4da3ff !important;
    -webkit-text-fill-color: transparent !important;

    background:
        linear-gradient(
            135deg,
            #4f8cff 0%,
            #25c4d9 100%
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    font: inherit !important;
    font-weight: 850 !important;
}

/* Everything after DM stays pure white. */
html body .dm-header .logo:not(:hover) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* Keep the logo clean and text-led. */
html body .dm-header .logo::before,
html body .dm-header .logo::after {
    display: none !important;
    content: none !important;
}


/* ==========================================================================
   DESKTOP NAVIGATION LAYOUT
   ========================================================================== */

html body .dm-header .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;

    width: auto !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 16px !important;

    position: static !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;

    transform: none !important;
}


html body .dm-header .nav-primary-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    flex: 1 1 auto !important;

    gap: 4px !important;
}


html body .dm-header .nav-account-actions {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    gap: 9px !important;

    margin-left: 5px !important;
    padding-left: 15px !important;

    border-left:
        1px solid rgba(255, 255, 255, .11) !important;
}


/* ==========================================================================
   STANDARD NAVIGATION LINKS
   ========================================================================== */

html body .dm-header .nav-link {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 10px 14px !important;

    border: 0 !important;
    border-radius: 13px !important;

    background: transparent !important;

    color: #cfd8ff !important;
    -webkit-text-fill-color: #cfd8ff !important;

    font-family: inherit !important;

    font-size: .95rem !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    transition:
        color .20s ease,
        background .20s ease,
        transform .20s ease !important;
}


html body .dm-header .nav-link:hover,
html body .dm-header .nav-link:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    background:
        rgba(255, 255, 255, .065) !important;

    transform:
        translateY(-1px) !important;

    outline: none !important;
}


/* Premium active state */
html body .dm-header .nav-link.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    background:
        linear-gradient(
            180deg,
            rgba(111, 85, 255, .15),
            rgba(67, 88, 229, .08)
        ) !important;

    box-shadow:
        inset 0 0 0 1px rgba(119, 109, 255, .06) !important;
}


html body .dm-header .nav-link.active::after {
    content: "" !important;

    position: absolute !important;

    left: 24% !important;
    right: 24% !important;
    bottom: 2px !important;

    height: 3px !important;

    border-radius: 999px !important;

    background:
        linear-gradient(
            90deg,
            #6e5bff,
            #4ca8ff
        ) !important;

    box-shadow:
        0 0 14px rgba(95, 101, 255, .70) !important;
}


/* ==========================================================================
   LOGIN BUTTON
   ========================================================================== */

html body .dm-header .nav-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;

    padding: 10px 18px !important;

    border:
        1px solid rgba(194, 206, 255, .20) !important;

    border-radius: 13px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .025)
        ) !important;

    color: #e6ebff !important;
    -webkit-text-fill-color: #e6ebff !important;

    font-size: .94rem !important;
    font-weight: 750 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04) !important;

    transition:
        background .20s ease,
        border-color .20s ease,
        transform .20s ease !important;
}


html body .dm-header .nav-login:hover,
html body .dm-header .nav-login:focus-visible,
html body .dm-header .nav-login.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    border-color:
        rgba(126, 126, 255, .42) !important;

    background:
        rgba(109, 87, 255, .11) !important;

    transform:
        translateY(-1px) !important;
}


/* ==========================================================================
   GET STARTED / DASHBOARD PREMIUM CTA
   ========================================================================== */

html body .dm-header .nav-get-started,
html body .dm-header a.nav-dashboard-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: auto !important;

    min-width: 138px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 11px 18px !important;

    gap: 10px !important;

    border:
        1px solid rgba(148, 203, 255, .30) !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            120deg,
            #29bcf7 0%,
            #4c78ff 44%,
            #7d43f6 100%
        ) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-family: inherit !important;

    font-size: .94rem !important;
    font-weight: 800 !important;

    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;

    white-space: nowrap !important;

    box-shadow:
        0 9px 22px rgba(55, 95, 230, .30),
        inset 0 1px 0 rgba(255, 255, 255, .30) !important;

    transition:
        transform .20s ease,
        filter .20s ease,
        box-shadow .20s ease !important;
}


html body .dm-header .nav-get-started:hover,
html body .dm-header .nav-get-started:focus-visible,
html body .dm-header a.nav-dashboard-button:hover,
html body .dm-header a.nav-dashboard-button:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    transform:
        translateY(-2px) !important;

    filter:
        brightness(1.08) saturate(1.05) !important;

    box-shadow:
        0 13px 28px rgba(55, 95, 230, .38),
        inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}


html body .dm-header .nav-get-started.active {
    box-shadow:
        0 13px 30px rgba(76, 87, 255, .45),
        0 0 0 3px rgba(99, 93, 255, .15),
        inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}


html body .dm-header .nav-cta-arrow {
    display: inline-block !important;

    font-size: 1.15rem !important;
    line-height: 1 !important;

    transition:
        transform .20s ease !important;
}


html body .dm-header .nav-get-started:hover .nav-cta-arrow,
html body .dm-header a.nav-dashboard-button:hover .nav-cta-arrow {
    transform:
        translateX(3px) !important;
}


/* ==========================================================================
   LOGOUT
   ========================================================================== */

html body .dm-header .nav-logout-form {
    display: inline-flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


html body .dm-header .nav-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;

    margin: 0 !important;
    padding: 10px 16px !important;

    border:
        1px solid rgba(255, 136, 158, .16) !important;

    border-radius: 13px !important;

    background:
        rgba(255, 255, 255, .025) !important;

    color: #ff9aac !important;
    -webkit-text-fill-color: #ff9aac !important;

    font-family: inherit !important;

    font-size: .92rem !important;
    font-weight: 750 !important;

    cursor: pointer !important;

    white-space: nowrap !important;

    transition:
        color .20s ease,
        background .20s ease,
        border-color .20s ease !important;
}


html body .dm-header .nav-logout:hover,
html body .dm-header .nav-logout:focus-visible {
    color: #ffc2cc !important;
    -webkit-text-fill-color: #ffc2cc !important;

    background:
        rgba(255, 101, 129, .08) !important;

    border-color:
        rgba(255, 136, 158, .28) !important;

    outline: none !important;
}


/* ==========================================================================
   DASHBOARD VISIBILITY
   ========================================================================== */

html body .dm-header .nav-dashboard-mobile {
    display: none !important;
}


html body .dm-header .nav-dashboard-desktop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   HAMBURGER
   ========================================================================== */

html body .dm-header .hamburger {
    display: none !important;

    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;

    flex: 0 0 auto !important;

    width: 46px !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 8px !important;

    gap: 5px !important;

    border:
        1px solid rgba(255, 255, 255, .12) !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .075),
            rgba(255, 255, 255, .035)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035) !important;

    cursor: pointer !important;

    z-index: 10002 !important;
}


html body .dm-header .hamburger-line {
    display: block !important;

    width: 24px !important;
    height: 2.5px !important;

    margin: 0 !important;

    border-radius: 999px !important;

    background:
        #ffffff !important;

    transform-origin: center !important;

    transition:
        transform .22s ease,
        opacity .22s ease !important;
}


html body .dm-header .hamburger.active .hamburger-line:nth-child(1) {
    transform:
        rotate(45deg)
        translate(5px, 6px) !important;
}


html body .dm-header .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}


html body .dm-header .hamburger.active .hamburger-line:nth-child(3) {
    transform:
        rotate(-45deg)
        translate(5px, -6px) !important;
}


/* ==========================================================================
   DESKTOP / LARGE SCREEN
   ========================================================================== */

@media (min-width: 1101px) {

    html body .dm-header .nav-menu {
        display: flex !important;
        flex-direction: row !important;

        position: static !important;

        width: auto !important;
        height: auto !important;

        right: auto !important;
        left: auto !important;
    }


    html body .dm-header .nav-dashboard-desktop {
        display: flex !important;
    }


    html body .dm-header .nav-dashboard-mobile,
    html body .dm-header .hamburger {
        display: none !important;
    }
}


/* ==========================================================================
   COMPACT DESKTOP
   ========================================================================== */

@media (min-width: 1101px) and (max-width: 1260px) {

    html body .dm-header .dm-header-inner {
        padding-left: 14px !important;
        padding-right: 14px !important;

        gap: 12px !important;
    }


    html body .dm-header .logo {
        padding-right: 14px !important;

        gap: 9px !important;
    }

    html body .dm-header .dm-logo-wordmark strong,
    html body .dm-header .dm-logo-wordmark em {
        font-size: 1.22rem !important;
    }


    html body .dm-header .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;

        font-size: .89rem !important;
    }


    html body .dm-header .nav-account-actions {
        padding-left: 10px !important;

        gap: 7px !important;
    }


    html body .dm-header .nav-login,
    html body .dm-header .nav-logout {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }


    html body .dm-header .nav-get-started,
    html body .dm-header a.nav-dashboard-button {
        min-width: 124px !important;

        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* ==========================================================================
   VERY WIDE DISPLAY
   ========================================================================== */

@media (min-width: 1800px) {

    html body .dm-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    html body .dm-header .dm-header-inner {
        max-width: 1640px !important;

        padding-left: 25px !important;
        padding-right: 25px !important;
    }


    html body .dm-header .nav-primary-links {
        gap: 7px !important;
    }


    html body .dm-header .nav-link {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ==========================================================================
   TABLET / MOBILE
   ========================================================================== */

@media (max-width: 1100px) {

    html body .dm-header {
        position: sticky !important;

        top: 0 !important;

        z-index: 9999 !important;

        padding:
            8px 10px !important;

        overflow: visible !important;
    }


    html body .dm-header .dm-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        max-width: 100% !important;

        min-height: 66px !important;

        margin: 0 !important;
        padding: 0 13px !important;

        gap: 10px !important;

        border-radius: 18px !important;
    }


    html body .dm-header .logo {
        flex: 1 1 auto !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 60px) !important;

        padding-right: 0 !important;

        border-right: 0 !important;
    }

    html body .dm-header .dm-logo-wordmark strong,
    html body .dm-header .dm-logo-wordmark em {
        font-size: 1.25rem !important;
    }


    html body .dm-header .nav-dashboard-desktop {
        display: none !important;
    }


    html body .dm-header .hamburger {
        display: flex !important;
    }


    html body .dm-header .nav-menu {
        position: fixed !important;

        top: 82px !important;
        right: -100% !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        width:
            min(390px, calc(100vw - 20px)) !important;

        max-width: 390px !important;

        height:
            calc(100dvh - 90px) !important;

        max-height:
            calc(100dvh - 90px) !important;

        margin: 0 10px 0 0 !important;

        padding:
            18px 16px 20px !important;

        gap: 16px !important;

        border:
            1px solid rgba(105, 119, 255, .20) !important;

        border-radius:
            22px !important;

        background:
            linear-gradient(
                160deg,
                rgba(13, 27, 77, .985),
                rgba(7, 20, 63, .995)
            ) !important;

        box-shadow:
            -16px 24px 50px rgba(2, 8, 35, .38),
            inset 0 1px 0 rgba(255, 255, 255, .035) !important;

        backdrop-filter:
            blur(20px) !important;

        -webkit-backdrop-filter:
            blur(20px) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior: contain !important;

        transform: none !important;

        z-index: 10000 !important;

        transition:
            right .25s ease !important;
    }


    html body .dm-header .nav-menu.active,
    html body .dm-header .nav-menu.open {
        right: 0 !important;
    }


    html body .dm-header .nav-primary-links {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        gap: 5px !important;
    }


    html body .dm-header .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-height: 51px !important;

        padding:
            12px 15px !important;

        border-radius:
            13px !important;

        color:
            #edf2ff !important;

        -webkit-text-fill-color:
            #edf2ff !important;

        font-size:
            .98rem !important;

        text-align:
            left !important;
    }


    html body .dm-header .nav-link:hover,
    html body .dm-header .nav-link:focus-visible {
        background:
            rgba(255, 255, 255, .055) !important;
    }


    html body .dm-header .nav-link.active {
        background:
            linear-gradient(
                90deg,
                rgba(91, 81, 245, .23),
                rgba(68, 128, 249, .08)
            ) !important;
    }


    html body .dm-header .nav-link.active::after {
        top: 17% !important;
        bottom: 17% !important;

        left: 3px !important;
        right: auto !important;

        width: 3px !important;
        height: auto !important;
    }


    html body .dm-header .nav-account-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;

        margin: 0 !important;
        padding:
            16px 0 0 !important;

        gap: 9px !important;

        border-left: 0 !important;

        border-top:
            1px solid rgba(255, 255, 255, .10) !important;
    }


    html body .dm-header .nav-login,
    html body .dm-header .nav-get-started,
    html body .dm-header .nav-logout-form,
    html body .dm-header .nav-logout,
    html body .dm-header .nav-dashboard-mobile {
        width: 100% !important;
    }


    html body .dm-header .nav-login,
    html body .dm-header .nav-get-started,
    html body .dm-header .nav-logout,
    html body .dm-header .nav-dashboard-mobile {
        min-height: 50px !important;
    }


    html body .dm-header .nav-dashboard-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    html body .dm-header .nav-dashboard-mobile.nav-dashboard-button {
        display: flex !important;

        max-width: none !important;

        margin: 0 !important;
    }


    html body .dm-header .nav-logout-form {
        display: block !important;
    }


    html body .dm-header .nav-logout {
        justify-content: center !important;
    }
}


/* ==========================================================================
   PHONE
   ========================================================================== */

@media (max-width: 600px) {

    html body .dm-header {
        padding:
            7px 7px !important;
    }


    html body .dm-header .dm-header-inner {
        min-height: 62px !important;

        padding:
            0 11px !important;

        border-radius:
            16px !important;
    }

    html body .dm-header .dm-logo-wordmark strong,
    html body .dm-header .dm-logo-wordmark em {
        font-size:
            1.13rem !important;
    }


    html body .dm-header .hamburger {
        width: 42px !important;
        height: 42px !important;

        border-radius:
            12px !important;
    }


    html body .dm-header .nav-menu {
        top: 76px !important;

        width:
            calc(100vw - 14px) !important;

        max-width:
            calc(100vw - 14px) !important;

        height:
            calc(100dvh - 83px) !important;

        max-height:
            calc(100dvh - 83px) !important;

        margin-right:
            7px !important;

        padding:
            16px 14px 18px !important;

        border-radius:
            18px !important;
    }
}


/* ==========================================================================
   VERY SMALL PHONE
   ========================================================================== */

@media (max-width: 380px) {

    html body .dm-header .dm-header-inner {
        padding-left:
            9px !important;

        padding-right:
            9px !important;
    }


    html body .dm-header .dm-logo-wordmark strong,
    html body .dm-header .dm-logo-wordmark em {
        font-size:
            1.04rem !important;
    }


    html body .dm-header .nav-link {
        min-height:
            48px !important;

        padding:
            11px 12px !important;
    }
}


/* ==========================================================================
   SHORT LANDSCAPE SCREENS
   ========================================================================== */

@media (max-width: 1100px) and (max-height: 600px) {

    html body .dm-header .nav-menu {
        padding-top:
            12px !important;

        padding-bottom:
            14px !important;

        gap:
            10px !important;
    }


    html body .dm-header .nav-link {
        min-height:
            44px !important;

        padding-top:
            9px !important;

        padding-bottom:
            9px !important;
    }


    html body .dm-header .nav-account-actions {
        padding-top:
            10px !important;
    }
}



@media (max-width: 1100px) {
    html body .dm-header .logo {
        font-size: 1.34rem !important;
        padding-right: 0 !important;
        border-right: 0 !important;
    }
}

@media (max-width: 600px) {
    html body .dm-header .logo {
        font-size: 1.24rem !important;
    }
}

@media (max-width: 380px) {
    html body .dm-header .logo {
        font-size: 1.15rem !important;
    }
}

/* ==========================================================================
   KEYBOARD ACCESSIBILITY
   ========================================================================== */

html body .dm-header a:focus-visible,
html body .dm-header button:focus-visible {
    outline:
        3px solid rgba(103, 232, 249, .72) !important;

    outline-offset:
        3px !important;
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html body .dm-header *,
    html body .dm-header *::before,
    html body .dm-header *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   FINAL RESPONSIVE AUTHORITY
   ========================================================================== */

@media (max-width: 1100px) {

    html body header.dm-header .nav-dashboard-desktop {
        display: none !important;
    }


    html body header.dm-header .hamburger {
        display: flex !important;
    }


    html body header.dm-header .nav-menu .nav-dashboard-mobile {
        display: flex !important;
    }
}


@media (min-width: 1101px) {

    html body header.dm-header .hamburger,
    html body header.dm-header .nav-dashboard-mobile {
        display: none !important;
    }


    html body header.dm-header .nav-dashboard-desktop {
        display: flex !important;
    }


    html body header.dm-header .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        position: static !important;

        width: auto !important;
        height: auto !important;

        right: auto !important;
        left: auto !important;
    }
}

/* ==========================================================================
   FINAL MOBILE MENU FIX
   Prevents any part of the off-canvas menu from remaining visible and
   guarantees that only one premium navigation panel is shown.
   ========================================================================== */

@media (max-width: 1100px) {

    html body header.dm-header {
        overflow: visible !important;
    }

    html body header.dm-header .nav-menu {
        position: fixed !important;

        top: 82px !important;
        right: 10px !important;
        left: auto !important;

        width: min(390px, calc(100vw - 20px)) !important;
        max-width: 390px !important;

        height: auto !important;
        max-height: calc(100dvh - 92px) !important;

        margin: 0 !important;
        padding: 18px 16px 20px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 16px !important;

        border: 1px solid rgba(105, 119, 255, .20) !important;
        border-radius: 22px !important;

        background:
            linear-gradient(
                160deg,
                rgba(13, 27, 77, .995),
                rgba(7, 20, 63, .995)
            ) !important;

        box-shadow:
            -16px 24px 50px rgba(2, 8, 35, .38),
            inset 0 1px 0 rgba(255, 255, 255, .035) !important;

        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        /* CLOSED STATE */
        transform: translateX(calc(100% + 30px)) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        z-index: 10000 !important;

        transition:
            transform .25s ease,
            opacity .20s ease,
            visibility .20s ease !important;
    }

    html body header.dm-header .nav-menu.active,
    html body header.dm-header .nav-menu.open {
        /* OPEN STATE */
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body header.dm-header .nav-primary-links,
    html body header.dm-header .nav-account-actions {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body header.dm-header .nav-primary-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    html body header.dm-header .nav-account-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body header.dm-header .nav-link,
    html body header.dm-header .nav-login,
    html body header.dm-header .nav-get-started,
    html body header.dm-header .nav-logout,
    html body header.dm-header .nav-dashboard-mobile {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Make sure no desktop Dashboard control can appear beside the hamburger. */
    html body header.dm-header .nav-dashboard-desktop {
        display: none !important;
    }

    html body header.dm-header .hamburger {
        display: flex !important;
    }
}


@media (max-width: 600px) {

    html body header.dm-header .nav-menu {
        top: 76px !important;
        right: 7px !important;

        width: calc(100vw - 14px) !important;
        max-width: calc(100vw - 14px) !important;

        max-height: calc(100dvh - 83px) !important;

        padding: 16px 14px 18px !important;

        border-radius: 18px !important;
    }
}

/* ==========================================================================
   FINAL LOGO COLOUR AUTHORITY
   Keep this at the very end of the file so legacy shared styles cannot
   turn "Studio AI" blue or transparent.
   ========================================================================== */

html body header.dm-header a.logo {
    background: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

html body header.dm-header a.logo > span.dm-logo-blue {
    display: inline !important;

    color: #4da3ff !important;
    -webkit-text-fill-color: transparent !important;

    background:
        linear-gradient(
            135deg,
            #4f8cff 0%,
            #25c4d9 100%
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    font: inherit !important;
    font-weight: 850 !important;
}

html body header.dm-header a.logo > span.dm-logo-white {
    display: inline !important;

    margin-left: 0 !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    font: inherit !important;
    font-weight: 850 !important;

    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}

/* ==========================================================================
   FINAL MOBILE ACCOUNT BUTTON ALIGNMENT
   Login and Get Started use the exact same width, left edge and right edge.
   ========================================================================== */

@media (max-width: 1100px) {

    html body header.dm-header .nav-account-actions {
        align-items: stretch !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body header.dm-header .nav-account-actions > .nav-login,
    html body header.dm-header .nav-account-actions > .nav-get-started {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        align-self: stretch !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        min-height: 56px !important;

        margin: 0 !important;
        padding: 0 18px !important;

        box-sizing: border-box !important;
    }

    html body header.dm-header .nav-account-actions > .nav-login {
        border-radius: 14px !important;
    }

    html body header.dm-header .nav-account-actions > .nav-get-started {
        border-radius: 14px !important;
    }
}

@media (max-width: 600px) {

    html body header.dm-header .nav-account-actions > .nav-login,
    html body header.dm-header .nav-account-actions > .nav-get-started {
        min-height: 56px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =====================================================
   CS-19S-05C
   Character Studio navigation button spacing
   ===================================================== */

html body.route-character-studio .dm-header .nav-dashboard-desktop {
    gap: 12px !important;
}

