:root{
            --sw-primary:#17193c;
            --sw-primary-light:#25285a;
            --sw-primary-soft:#f1f2fa;
            --sw-accent:#6366f1;
            --sw-accent-light:#818cf8;
            --sw-text:#171a2e;
            --sw-muted:#6b7280;
            --sw-border:#e7e8ef;
            --sw-bg:#f7f8fc;
            --sw-white:#fff;
            --sw-success:#16a34a;
            --sw-container:1840px;
        }

        html,
        body{
            min-height:100%;
            width:100%;
            margin:0;
            padding:0;
            -webkit-text-size-adjust:100%;
            text-size-adjust:100%;
            -webkit-font-smoothing:antialiased;
            -moz-osx-font-smoothing:grayscale;
            text-rendering:optimizeLegibility;
        }

        body{
            background:var(--sw-bg);
            color:var(--sw-text);
            overflow-x:hidden;
        }

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

        img,
        svg{
            display:block;
        }

        img{
            max-width:100%;
            height:auto;
        }

        svg{
            flex-shrink:0;
        }

        a{
            -webkit-tap-highlight-color:transparent;
            -webkit-touch-callout:none;
        }

        button,
        input,
        textarea,
        select{
            font:inherit;
            -webkit-appearance:none;
            appearance:none;
        }

        button{
            -webkit-tap-highlight-color:transparent;
        }

        ::selection{
            background:rgba(99,102,241,.18);
            color:#111827;
        }

        .sw-container{
            width:min(94vw,var(--sw-container));
            max-width:var(--sw-container);
            margin-inline:auto;
        }

        /* =========================================
           NAVBAR
        ========================================= */

        .sw-navbar{
            position:sticky;
            position:-webkit-sticky;
            top:0;
            z-index:1000;
            width:100%;
            background:#17193c;
            border-bottom:1px solid rgba(255,255,255,.09);
            box-shadow:0 8px 28px rgba(10,12,35,.14);
            -webkit-backdrop-filter:blur(18px);
            backdrop-filter:blur(18px);
            transform:translateZ(0);
            -webkit-transform:translateZ(0);
        }

        .sw-navbar-inner{
            position:relative;
            min-height:76px;
            display:grid;
            grid-template-columns:auto minmax(0,1fr) auto;
            align-items:center;
            gap:clamp(20px,3vw,52px);
        }

        .sw-brand{
            display:inline-flex;
            align-items:center;
            gap:10px;
            min-width:max-content;
            color:#fff;
            text-decoration:none;
        }

        .sw-logo{
            display:block;
            width:auto;
            max-width:190px;
            max-height:46px;
            object-fit:contain;
        }

        .sw-logo-mark{
            width:37px;
            height:37px;
            display:grid;
            place-items:center;
            flex:none;
            color:#fff;
            font-size:16px;
            font-weight:800;
            border-radius:10px;
            background:linear-gradient(145deg,#6366f1,#4f46e5);
            box-shadow:0 7px 20px rgba(79,70,229,.28);
        }

        .sw-logo-text{
            color:#fff;
            font-size:clamp(18px,1.25vw,22px);
            font-weight:800;
            letter-spacing:-.025em;
            white-space:nowrap;
        }

        .sw-nav-links{
            display:flex;
            align-items:center;
            justify-content:center;
            gap:clamp(18px,2.1vw,36px);
            min-width:0;
        }

        .sw-nav-link{
            position:relative;
            display:inline-flex;
            align-items:center;
            min-height:42px;
            padding:5px 0;
            color:rgba(255,255,255,.68);
            font-size:clamp(13px,.9vw,15px);
            font-weight:550;
            letter-spacing:.005em;
            white-space:nowrap;
            text-decoration:none;
            transition:color .2s ease;
        }

        .sw-nav-link::after{
            content:"";
            position:absolute;
            left:50%;
            bottom:0;
            width:0;
            height:2px;
            transform:translateX(-50%);
            border-radius:999px;
            background:#818cf8;
            transition:width .22s ease;
        }

        .sw-nav-link:hover,
        .sw-nav-link.active{
            color:#fff;
        }

        .sw-nav-link:hover::after{
            width:18px;
        }

        .sw-nav-link.active::after{
            width:24px;
            background:#a5b4fc;
        }

        .sw-actions{
            display:flex;
            align-items:center;
            justify-content:flex-end;
            gap:4px;
            min-width:max-content;
        }

        .sw-icon-btn{
            position:relative;
            width:40px;
            height:40px;
            display:inline-flex;
            align-items:center;
            justify-content:center;
            padding:0;
            color:rgba(255,255,255,.72);
            text-decoration:none;
            background:transparent;
            border:1px solid transparent;
            border-radius:10px;
            transition:
                color .2s ease,
                background .2s ease,
                border-color .2s ease,
                transform .2s ease;
        }

        .sw-icon-btn:hover{
            color:#fff;
            background:rgba(255,255,255,.08);
            border-color:rgba(255,255,255,.08);
            transform:translateY(-1px);
        }

        .sw-icon-btn svg{
            width:18px;
            height:18px;
        }

        .sw-badge{
            position:absolute;
            top:0;
            right:-1px;
            min-width:17px;
            height:17px;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:0 4px;
            color:#fff;
            background:#6366f1;
            border:2px solid #17193c;
            border-radius:999px;
            font-size:8px;
            font-weight:800;
            line-height:1;
        }

        .sw-text-btn{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            min-height:40px;
            padding:7px 11px;
            color:rgba(255,255,255,.72);
            font-size:clamp(13px,.85vw,15px);
            font-weight:550;
            white-space:nowrap;
            text-decoration:none;
            background:transparent;
            border:0;
            border-radius:9px;
            cursor:pointer;
            transition:
                color .2s ease,
                background .2s ease;
        }

        .sw-text-btn:hover{
            color:#fff;
            background:rgba(255,255,255,.07);
        }

        .sw-actions form{
            margin:0;
        }

        .sw-burger{
            display:none;
            width:40px;
            height:40px;
            align-items:center;
            justify-content:center;
            flex-direction:column;
            gap:5px;
            padding:0;
            cursor:pointer;
            background:rgba(255,255,255,.06);
            border:1px solid rgba(255,255,255,.09);
            border-radius:10px;
        }

        .sw-burger span{
            width:18px;
            height:2px;
            display:block;
            background:#fff;
            border-radius:999px;
            transition:
                transform .22s ease,
                opacity .22s ease;
        }

        .sw-burger.open span:nth-child(1){
            transform:translateY(7px) rotate(45deg);
        }

        .sw-burger.open span:nth-child(2){
            opacity:0;
        }

        .sw-burger.open span:nth-child(3){
            transform:translateY(-7px) rotate(-45deg);
        }

        /* =========================================
           FLASH
        ========================================= */

        .sw-flash-wrap{
            padding-top:18px;
        }

        .sw-flash{
            position:relative;
            padding:14px 17px;
            border-radius:12px;
            font-size:clamp(13px,.9vw,15px);
            line-height:1.55;
            box-shadow:0 6px 20px rgba(30,41,59,.04);
            animation:swFlashIn .3s ease both;
        }

        .sw-flash::before{
            content:"";
            position:absolute;
            left:0;
            top:9px;
            bottom:9px;
            width:3px;
            border-radius:999px;
        }

        .sw-flash-ok{
            color:#166534;
            background:#f0fdf4;
            border:1px solid #dcfce7;
        }

        .sw-flash-ok::before{
            background:#22c55e;
        }

        .sw-flash-err{
            color:#991b1b;
            background:#fef2f2;
            border:1px solid #fee2e2;
        }

        .sw-flash-err::before{
            background:#ef4444;
        }

        @keyframes swFlashIn{
            from{
                opacity:0;
                transform:translateY(-5px);
            }

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

        /* =========================================
           MAIN
        ========================================= */

        .sw-main{
            width:100%;
            min-height:55vh;
            min-height:55dvh;
        }

        /* =========================================
           MODERN FOOTER
        ========================================= */

        .sw-footer{
            position:relative;
            width:100%;
            overflow:hidden;
            color:#fff;
            background:
                radial-gradient(
                    circle at 82% 18%,
                    rgba(99,102,241,.18),
                    transparent 30%
                ),
                radial-gradient(
                    circle at 10% 100%,
                    rgba(129,140,248,.10),
                    transparent 28%
                ),
                #17193c;
            border-top:1px solid rgba(255,255,255,.08);
        }

        .sw-footer-glow{
            position:absolute;
            top:-280px;
            right:-160px;
            width:620px;
            height:620px;
            border-radius:50%;
            background:radial-gradient(
                circle,
                rgba(129,140,248,.16) 0%,
                rgba(99,102,241,.07) 32%,
                transparent 70%
            );
            pointer-events:none;
        }

        .sw-footer-inner{
            position:relative;
            z-index:2;
            width:min(96vw,1840px);
            max-width:1840px;
            margin-inline:auto;
            padding:72px 0 28px;
        }

        /* Footer headline */

        .sw-footer-hero{
            display:grid;
            grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
            align-items:end;
            gap:70px;
            padding-bottom:62px;
        }

        .sw-footer-eyebrow{
            display:flex;
            align-items:center;
            gap:10px;
            margin-bottom:20px;
            color:#a5b4fc;
            font-size:10px;
            font-weight:700;
            letter-spacing:.18em;
            text-transform:uppercase;
        }

        .sw-footer-eyebrow::before{
            content:"";
            width:28px;
            height:1px;
            background:#818cf8;
        }

        .sw-footer-heading{
            max-width:900px;
            margin:0;
            color:#fff;
            font-size:clamp(42px,5.5vw,88px);
            font-weight:700;
            line-height:.98;
            letter-spacing:-.055em;
        }

        .sw-footer-heading span{
            color:rgba(255,255,255,.30);
        }

        .sw-footer-description{
            max-width:430px;
            margin:0 0 5px auto;
            color:rgba(255,255,255,.52);
            font-size:15px;
            line-height:1.75;
        }

        /* Footer identity */

        .sw-footer-identity{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:40px;
            padding:28px 0;
            border-top:1px solid rgba(255,255,255,.10);
            border-bottom:1px solid rgba(255,255,255,.10);
        }

        .sw-footer-brand{
            display:flex;
            align-items:center;
            gap:18px;
            min-width:0;
        }

        .sw-footer-brand .sw-brand{
            flex:none;
        }

        .sw-footer-brand .sw-logo{
            max-width:190px;
            max-height:46px;
        }

        .sw-footer-brand-text{
            padding-left:18px;
            border-left:1px solid rgba(255,255,255,.12);
            color:rgba(255,255,255,.42);
            font-size:11px;
            line-height:1.5;
        }

        /* Footer navigation */

        .sw-footer-links{
            display:flex;
            align-items:center;
            justify-content:flex-end;
            gap:34px;
            flex-wrap:wrap;
        }

        .sw-footer-list{
            display:flex;
            align-items:center;
            gap:26px;
            margin:0;
            padding:0;
            list-style:none;
        }

        .sw-footer-list a{
            position:relative;
            display:inline-block;
            color:rgba(255,255,255,.65);
            font-size:13px;
            font-weight:500;
            line-height:1.5;
            text-decoration:none;
            transition:
                color .2s ease,
                transform .2s ease;
        }

        .sw-footer-list a::after{
            content:"";
            position:absolute;
            left:0;
            bottom:-5px;
            width:0;
            height:1px;
            background:#a5b4fc;
            transition:width .2s ease;
        }

        .sw-footer-list a:hover{
            color:#fff;
            transform:translateY(-1px);
        }

        .sw-footer-list a:hover::after{
            width:100%;
        }

        /* Footer bottom */

        .sw-footer-bottom{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:30px;
            padding-top:24px;
        }

        .sw-footer-bottom p{
            margin:0;
            color:rgba(255,255,255,.32);
            font-size:11px;
            line-height:1.6;
        }

        .sw-footer-bottom-right{
            display:flex;
            align-items:center;
            gap:22px;
        }

        .sw-footer-bottom-right span{
            color:rgba(255,255,255,.26);
            font-size:10px;
            letter-spacing:.06em;
        }

        /* =========================================
           DESKTOP NAV
        ========================================= */

        @media (min-width:1081px){
            .sw-nav-links{
                position:static;
                display:flex !important;
                flex-direction:row;
                align-items:center;
                justify-content:center;
                background:transparent;
                border:0;
                box-shadow:none;
            }

            .sw-burger{
                display:none !important;
            }
        }

        /* =========================================
           TABLET / MOBILE NAV
        ========================================= */

        @media (max-width:1080px){
            .sw-navbar-inner{
                min-height:70px;
                gap:16px;
            }

            .sw-nav-links{
                position:absolute;
                top:calc(100% + 1px);
                left:0;
                right:0;
                display:none !important;
                flex-direction:column;
                align-items:stretch;
                justify-content:flex-start;
                gap:0;
                padding:8px 20px 16px;
                background:#17193c;
                border-top:1px solid rgba(255,255,255,.07);
                border-bottom:1px solid rgba(255,255,255,.08);
                box-shadow:0 18px 35px rgba(8,10,30,.25);
                -webkit-backdrop-filter:blur(18px);
                backdrop-filter:blur(18px);
            }

            .sw-nav-links.open{
                display:flex !important;
            }

            .sw-nav-link{
                width:100%;
                min-height:46px;
                justify-content:flex-start;
                padding:12px 2px;
                font-size:15px;
                border-bottom:1px solid rgba(255,255,255,.055);
            }

            .sw-nav-link:last-child{
                border-bottom:0;
            }

            .sw-nav-link::after{
                left:0;
                bottom:0;
                transform:none;
            }

            .sw-nav-link.active::after{
                width:24px;
            }

            .sw-burger{
                display:inline-flex;
            }
        }

        /* =========================================
           TABLET
        ========================================= */

        @media (max-width:1000px){
            .sw-container{
                width:min(92vw,1100px);
            }

            .sw-footer-inner{
                width:min(92vw,1100px);
                max-width:none;
            }

            .sw-footer-hero{
                grid-template-columns:1fr;
                gap:30px;
                padding-bottom:48px;
            }

            .sw-footer-description{
                margin:0;
                max-width:600px;
            }

            .sw-footer-identity{
                align-items:flex-start;
                flex-direction:column;
                gap:25px;
            }

            .sw-footer-links{
                justify-content:flex-start;
            }
        }

        /* =========================================
           MOBILE
        ========================================= */

        @media (max-width:650px){
            .sw-container{
                width:calc(100% - 30px);
            }

            .sw-navbar{
                padding-top:env(safe-area-inset-top);
            }

            .sw-navbar-inner{
                min-height:66px;
                gap:9px;
            }

            .sw-logo{
                max-width:150px;
                max-height:40px;
            }

            .sw-logo-text{
                font-size:18px;
            }

            .sw-logo-mark{
                width:34px;
                height:34px;
            }

            .sw-actions{
                gap:2px;
            }

            .sw-icon-btn{
                width:37px;
                height:37px;
            }

            .sw-actions .sw-text-btn,
            .sw-actions form{
                display:none;
            }

            .sw-actions .sw-icon-btn:nth-child(2),
            .sw-actions .sw-icon-btn:nth-child(3){
                display:none;
            }

            /* Footer */

            .sw-footer-inner{
                width:calc(100% - 30px);
                max-width:none;
                padding-top:50px;
                padding-bottom:calc(22px + env(safe-area-inset-bottom));
            }

            .sw-footer-hero{
                display:block;
                padding-bottom:38px;
            }

            .sw-footer-eyebrow{
                margin-bottom:16px;
                font-size:8px;
            }

            .sw-footer-eyebrow::before{
                width:20px;
            }

            .sw-footer-heading{
                font-size:clamp(39px,12vw,62px);
                line-height:.96;
                letter-spacing:-.06em;
            }

            .sw-footer-description{
                margin-top:25px;
                font-size:13.5px;
                line-height:1.7;
            }

            .sw-footer-identity{
                align-items:flex-start;
                gap:25px;
                padding:24px 0;
            }

            .sw-footer-brand{
                align-items:flex-start;
                flex-direction:column;
                gap:14px;
            }

            .sw-footer-brand .sw-logo{
                max-width:165px;
                max-height:42px;
            }

            .sw-footer-brand-text{
                padding-left:0;
                padding-top:12px;
                border-left:0;
                border-top:1px solid rgba(255,255,255,.12);
                font-size:10px;
            }

            .sw-footer-links{
                display:block;
                width:100%;
            }

            .sw-footer-list{
                display:flex;
                align-items:flex-start;
                justify-content:flex-start;
                flex-wrap:wrap;
                gap:12px 22px;
            }

            .sw-footer-list a{
                font-size:12px;
            }

            .sw-footer-bottom{
                align-items:flex-start;
                flex-direction:column;
                gap:9px;
                padding-top:20px;
            }

            .sw-footer-bottom p{
                font-size:10px;
            }

            .sw-footer-bottom-right{
                gap:15px;
                flex-wrap:wrap;
            }

            .sw-footer-bottom-right span{
                font-size:9px;
            }
        }

        /* =========================================
           SMALL MOBILE
        ========================================= */

        @media (max-width:420px){
            .sw-container{
                width:calc(100% - 24px);
            }

            .sw-logo{
                max-width:138px;
            }

            .sw-actions .sw-icon-btn:first-child{
                display:none;
            }

            .sw-footer-inner{
                width:calc(100% - 24px);
            }

            .sw-footer-heading{
                font-size:clamp(36px,12vw,52px);
            }

            .sw-footer-list{
                gap:11px 18px;
            }
        }

        /* =========================================
           EXTRA SMALL
        ========================================= */

        @media (max-width:360px){
            .sw-container{
                width:calc(100% - 20px);
            }

            .sw-logo{
                max-width:128px;
            }

            .sw-logo-text{
                font-size:17px;
            }

            .sw-icon-btn,
            .sw-burger{
                width:35px;
                height:35px;
            }

            .sw-footer-heading{
                font-size:36px;
            }

            .sw-footer-list a{
                font-size:11.5px;
            }
        }

        /* =========================================
           SAFARI / IOS
        ========================================= */

        @supports (-webkit-touch-callout:none){
            html{
                -webkit-text-size-adjust:100%;
            }

            body{
                width:100%;
                overflow-x:hidden;
            }

            input,
            textarea,
            select,
            button{
                -webkit-appearance:none;
                appearance:none;
            }

            input,
            textarea,
            select{
                font-size:16px;
            }

            .sw-navbar{
                -webkit-transform:translate3d(0,0,0);
                transform:translate3d(0,0,0);
            }

            .sw-nav-links{
                -webkit-overflow-scrolling:touch;
            }

            .sw-footer{
                padding-bottom:env(safe-area-inset-bottom);
            }
        }

        /* =========================================
           REDUCED MOTION
        ========================================= */

        @media (prefers-reduced-motion:reduce){
            *,
            *::before,
            *::after{
                animation-duration:.01ms !important;
                animation-iteration-count:1 !important;
                transition-duration:.01ms !important;
                scroll-behavior:auto !important;
            }
        }

/* Replacement for the one small utility previously supplied by Tailwind CDN. */
.mb-2 { margin-bottom: 0.5rem; }


/* Mobile account actions: keep authentication links visible inside the burger menu. */
.sw-mobile-auth-links{
    display:none;
}
@media (max-width:1080px){
    .sw-mobile-auth-links{
        display:flex;
        flex-direction:column;
        gap:9px;
        width:100%;
        padding:16px 0 4px;
        margin-top:8px;
        border-top:1px solid rgba(255,255,255,.12);
    }
    .sw-mobile-auth-link{
        display:flex;
        align-items:center;
        justify-content:center;
        width:100%;
        min-height:44px;
        box-sizing:border-box;
        padding:11px 16px;
        border:1px solid rgba(255,255,255,.18);
        border-radius:10px;
        background:rgba(255,255,255,.07);
        color:#fff !important;
        font:600 14px/1.2 inherit;
        text-align:center;
        text-decoration:none !important;
        cursor:pointer;
    }
    .sw-mobile-auth-login{
        background:#fff;
        border-color:#fff;
        color:#17193c !important;
    }
    .sw-mobile-auth-register{
        background:#6366f1;
        border-color:#6366f1;
        color:#fff !important;
    }
    .sw-mobile-auth-form{
        display:block !important;
        width:100%;
        margin:0;
    }
    .sw-mobile-auth-button{
        appearance:none;
        -webkit-appearance:none;
    }
}


/* Always-visible compact authentication buttons in the mobile header. */
.sw-mobile-header-auth{display:none;}
@media (max-width:650px){
    .sw-navbar-inner{display:flex;flex-wrap:nowrap;gap:7px;}
    .sw-mobile-header-auth{
        display:flex !important;
        align-items:center;
        justify-content:flex-end;
        flex:0 0 auto;
        gap:5px;
        margin-left:auto;
    }
    .sw-mobile-header-auth a{
        display:inline-flex !important;
        align-items:center;
        justify-content:center;
        min-height:34px;
        padding:0 9px;
        border:1px solid rgba(255,255,255,.25);
        border-radius:8px;
        color:#fff !important;
        background:rgba(255,255,255,.08);
        font-size:12px;
        font-weight:700;
        line-height:1;
        white-space:nowrap;
        text-decoration:none !important;
        visibility:visible !important;
        opacity:1 !important;
    }
    .sw-mobile-header-auth .sw-mobile-header-register{
        background:#6366f1;
        border-color:#6366f1;
    }
    .sw-actions{flex:0 0 auto;gap:3px;}
}
@media (max-width:380px){
    .sw-logo{max-width:100px;}
    .sw-mobile-header-auth a{padding:0 7px;font-size:11px;}
    .sw-navbar-inner{gap:5px;}
}


/* FINAL MOBILE AUTH VISIBILITY OVERRIDE */
@media (max-width:1080px){
    .sw-nav-links .sw-mobile-auth-links{
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:10px !important;
        width:100% !important;
        padding:16px 0 8px !important;
        margin:10px 0 0 !important;
        border-top:1px solid rgba(255,255,255,.22) !important;
        opacity:1 !important;
        visibility:visible !important;
    }
    .sw-nav-links .sw-mobile-auth-links a,
    .sw-nav-links .sw-mobile-auth-links button,
    .sw-nav-links .sw-mobile-auth-link{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:100% !important;
        min-height:46px !important;
        padding:12px 16px !important;
        box-sizing:border-box !important;
        background:#4f46e5 !important;
        color:#ffffff !important;
        border:1px solid #4f46e5 !important;
        border-radius:10px !important;
        font-size:15px !important;
        font-weight:700 !important;
        line-height:1.2 !important;
        text-align:center !important;
        text-decoration:none !important;
        opacity:1 !important;
        visibility:visible !important;
    }
    .sw-nav-links .sw-mobile-auth-links .sw-mobile-auth-login{
        background:#ffffff !important;
        color:#17193c !important;
        border-color:#ffffff !important;
    }
    .sw-nav-links .sw-mobile-auth-links form{
        display:block !important;
        width:100% !important;
        margin:0 !important;
    }
}
@media (max-width:650px){
    .sw-mobile-header-auth{
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        position:relative !important;
        z-index:30 !important;
    }
    .sw-mobile-header-auth a{
        background:#ffffff !important;
        color:#17193c !important;
        border:1px solid #ffffff !important;
        font-weight:800 !important;
    }
    .sw-mobile-header-auth a.sw-mobile-header-register{
        background:#4f46e5 !important;
        color:#ffffff !important;
        border-color:#4f46e5 !important;
    }
}

/* Explicit mobile auth visibility fallback */
@media screen and (max-width:1080px){
    nav#navbarLinks .sw-mobile-auth-links{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        visibility:visible !important;
        opacity:1 !important;
        position:static !important;
        transform:none !important;
        clip:auto !important;
    }
}

/* Compact horizontal mobile authentication buttons */
@media screen and (max-width:1080px){
    nav#navbarLinks .sw-mobile-auth-links{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:10px !important;
        width:100% !important;
        padding:12px 0 4px !important;
    }
    nav#navbarLinks .sw-mobile-auth-links > a{
        display:inline-flex !important;
        flex:0 1 auto !important;
        width:auto !important;
        min-width:104px !important;
        min-height:36px !important;
        padding:7px 16px !important;
        border-radius:7px !important;
        font-size:13px !important;
        font-weight:700 !important;
    }
}
@media screen and (max-width:360px){
    nav#navbarLinks .sw-mobile-auth-links{gap:7px !important;}
    nav#navbarLinks .sw-mobile-auth-links > a{
        min-width:94px !important;
        padding:7px 12px !important;
        font-size:12px !important;
    }
}

/* Add breathing room above compact mobile account links */
@media screen and (max-width:1080px){
    nav#navbarLinks .sw-mobile-auth-links{
        margin-top:18px !important;
        padding-top:16px !important;
    }
}


/* Clear separation between navigation links and account actions on mobile */
@media screen and (max-width:1080px){
    nav#navbarLinks .sw-mobile-auth-links{
        margin-top:24px !important;
        padding-top:16px !important;
        border-top:1px solid rgba(255,255,255,.16) !important;
        box-sizing:border-box !important;
    }
}


/* Account actions belong only inside the expanded mobile navigation menu. */
@media screen and (max-width:1080px){
    .sw-mobile-header-auth{display:none !important;}
}


/* Mobile navigation: include cart in the dropdown and prevent account actions overflowing. */
.sw-mobile-cart-link{display:none;}
@media screen and (max-width:1080px){
    .sw-mobile-cart-link{
        display:flex !important;
        align-items:center;
        justify-content:space-between;
        gap:10px;
    }
    .sw-actions > a[aria-label="Shopping cart"]{display:none !important;}
    nav#navbarLinks{
        box-sizing:border-box;
        max-height:calc(100vh - 105px);
        max-height:calc(100dvh - 105px);
        overflow-y:auto;
        overflow-x:hidden;
        overscroll-behavior:contain;
    }
    nav#navbarLinks .sw-mobile-auth-links{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:stretch;
        gap:9px !important;
        width:100%;
        min-width:0;
        box-sizing:border-box;
    }
    nav#navbarLinks .sw-mobile-auth-links > a,
    nav#navbarLinks .sw-mobile-auth-links > form{
        display:flex !important;
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        box-sizing:border-box !important;
        margin:0 !important;
    }
    nav#navbarLinks .sw-mobile-auth-links > form{
        grid-column:1 / -1;
    }
    nav#navbarLinks .sw-mobile-auth-links > form button{
        width:100% !important;
        min-width:0 !important;
        box-sizing:border-box !important;
    }
    nav#navbarLinks .sw-mobile-auth-links > a{
        justify-content:center;
        text-align:center;
        white-space:normal !important;
        overflow-wrap:anywhere;
    }
    nav#navbarLinks .sw-mobile-auth-links .sw-mobile-auth-button{
        justify-content:center;
        text-align:center;
    }
    .sw-mobile-cart-count{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-width:21px;
        height:21px;
        padding:0 6px;
        border-radius:999px;
        background:#4f46e5;
        color:#fff;
        font-size:11px;
        font-weight:700;
        box-sizing:border-box;
    }
}
@media screen and (max-width:360px){
    nav#navbarLinks .sw-mobile-auth-links{
        grid-template-columns:minmax(0,1fr);
    }
    nav#navbarLinks .sw-mobile-auth-links > form{
        grid-column:auto;
    }
}


/* Final mobile header alignment and full-bleed dropdown */
@media screen and (max-width:1080px){
    .sw-navbar-inner{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        position:relative !important;
        gap:12px !important;
    }
    .sw-brand{
        flex:0 1 auto !important;
        min-width:0 !important;
        margin-right:auto !important;
    }
    .sw-actions{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        flex:0 0 auto !important;
        width:auto !important;
        margin-left:auto !important;
        gap:0 !important;
    }
    .sw-actions .sw-burger{
        margin-left:auto !important;
        flex:0 0 40px !important;
    }
    nav#navbarLinks{
        position:absolute !important;
        top:100% !important;
        left:50% !important;
        right:auto !important;
        width:100vw !important;
        max-width:100vw !important;
        margin:0 !important;
        padding:10px 20px 18px !important;
        box-sizing:border-box !important;
        transform:translateX(-50%) !important;
        border-radius:0 !important;
        z-index:1000 !important;
    }
}
@media screen and (max-width:650px){
    .sw-navbar-inner{min-height:66px !important;}
    .sw-brand{max-width:calc(100% - 58px) !important;}
    .sw-actions{margin-left:auto !important;}
    .sw-actions .sw-burger{margin-left:auto !important;}
}
