.app-shell-bar {
    top: 0.75rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(1280px, calc(100% - 1.5rem)) !important;
    border-radius: 18px;
    border: 1px solid var(--mud-palette-lines-default, rgba(15, 23, 42, 0.12));
    box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.app-main-shell {
    padding-top: 6.25rem !important;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow-x: clip;
}

.app-main-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(1.8px);
    -webkit-backdrop-filter: blur(1.8px);
    pointer-events: none;
    z-index: 1;
}

.app-main-shell--blog::before {
    display: none;
}

.blog-article-surface {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-shell-bar .app-brand {
    white-space: nowrap;
    line-height: 1.1;
}

.app-shell-bar .app-nav-link {
    margin: 0 0.2rem;
    min-width: auto !important;
    padding: 0.75rem 0.65rem !important;
    color: var(--mud-palette-text-primary, #374151);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent !important;
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.6rem;
}

.app-shell-bar .app-nav-link:hover {
    text-decoration-line: underline;
    text-decoration-color: rgba(33, 150, 243, 0.55);
}

.app-shell-bar .app-nav-link-active,
.app-shell-bar .app-nav-link.active {
    color: var(--mud-palette-primary-darken, #1e88e5);
    text-decoration-line: underline;
    text-decoration-color: var(--mud-palette-primary, #2196f3);
}

.app-bg-geometry {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 0.065) 0%,
        rgba(33, 150, 243, 0.028) 34%,
        rgba(2, 136, 209, 0.012) 68%,
        rgba(2, 136, 209, 0) 100%
    );
}

.app-bg-geometry::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 3%, rgba(33, 150, 243, 0.065), transparent 44%),
        radial-gradient(circle at 52% 12%, rgba(2, 136, 209, 0.04), transparent 48%),
        linear-gradient(180deg, rgba(33, 150, 243, 0.03), transparent 64%);
    opacity: 0.6;
}

.app-bg-code-cloud {
    position: absolute;
    inset: 0 0 auto 0;
    height: min(50vh, 30rem);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.68) 52%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.68) 52%, rgba(0, 0, 0, 0) 100%);
}

.app-bg-code-cloud::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(112deg, rgba(33, 150, 243, 0.045), transparent 70%),
        repeating-linear-gradient(0deg, rgba(33, 150, 243, 0.02) 0 1px, transparent 1px 42px);
    opacity: 0.34;
}

.app-bg-code {
    position: absolute;
    font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: rgba(33, 150, 243, 0.085);
    text-shadow: 0 1px 0 rgba(33, 150, 243, 0.02);
    user-select: none;
}

.app-bg-code--1 { top: 2.8rem; left: 4%; transform: rotate(-5deg); }
.app-bg-code--2 { top: 1.8rem; left: 20%; transform: rotate(4deg); }
.app-bg-code--3 { top: 5.2rem; left: 10%; transform: rotate(-3deg); }
.app-bg-code--4 { top: 7.1rem; left: 34%; transform: rotate(3deg); }
.app-bg-code--5 { top: 3.8rem; left: 52%; transform: rotate(-4deg); }
.app-bg-code--6 { top: 1.9rem; left: 67%; transform: rotate(2deg); }
.app-bg-code--7 { top: 8.3rem; left: 57%; transform: rotate(-2deg); }
.app-bg-code--8 { top: 6.2rem; left: 78%; transform: rotate(4deg); }
.app-bg-code--9 { top: 10rem; left: 22%; transform: rotate(-3deg); }
.app-bg-code--10 { top: 3.1rem; left: 86%; font-size: 1.15rem; }
.app-bg-code--11 { top: 9.4rem; left: 45%; font-size: 1.05rem; }
.app-bg-code--12 { top: 5rem; left: 92%; font-size: 1.1rem; }
.app-bg-code--13 { top: 7.6rem; left: 3%; font-size: 1.02rem; }
.app-bg-code--14 { top: 11.1rem; left: 70%; font-size: 1.02rem; }
.app-bg-code--15 { top: 12rem; left: 54%; font-size: 1.05rem; }
.app-bg-code--16 { top: 11.4rem; left: 88%; font-size: 1.02rem; }

.app-bg-code-cloud::after {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 6.4rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.02), rgba(33, 150, 243, 0.14) 50%, rgba(33, 150, 243, 0.02));
    box-shadow:
        0 2.1rem 0 0 rgba(33, 150, 243, 0.045),
        0 4.2rem 0 0 rgba(33, 150, 243, 0.038),
        0 6.3rem 0 0 rgba(33, 150, 243, 0.03);
}

.app-main-shell > :not(.app-bg-geometry) {
    position: relative;
    z-index: 2;
}

@media (max-width: 959px) {
    .app-shell-bar {
        top: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        border-radius: 14px;
    }

    .app-main-shell {
        padding-top: 5.5rem !important;
    }

    .app-bg-code-cloud {
        height: min(34vh, 17rem);
    }

    .app-bg-code {
        font-size: 0.72rem;
    }

    .app-bg-code--2 {
        left: 14%;
        top: 2.2rem;
    }

    .app-bg-code--3 {
        left: 6%;
        top: 5.2rem;
    }

    .app-bg-code--4 {
        left: 30%;
        top: 6.1rem;
    }

    .app-bg-code--5 {
        left: 50%;
        top: 4.2rem;
    }

    .app-bg-code--6 {
        left: 66%;
        top: 2.4rem;
    }

    .app-bg-code--7 {
        left: 54%;
        top: 6.9rem;
    }

    .app-bg-code--8 {
        left: 75%;
        top: 5.7rem;
    }

    .app-bg-code--9 {
        top: 8.1rem;
        left: 20%;
    }

    .app-bg-code--10 {
        top: 2.8rem;
        left: 85%;
        font-size: 0.9rem;
    }

    .app-bg-code--11 {
        top: 7.6rem;
        left: 42%;
        font-size: 0.86rem;
    }

    .app-bg-code--12 {
        top: 4.7rem;
        left: 90%;
        font-size: 0.88rem;
    }

    .app-bg-code--13 {
        top: 7rem;
        left: 3%;
        font-size: 0.84rem;
    }

    .app-bg-code--14 {
        top: 8.9rem;
        left: 67%;
        font-size: 0.84rem;
    }

    .app-bg-code--15 {
        top: 9.8rem;
        left: 51%;
        font-size: 0.86rem;
    }

    .app-bg-code--16 {
        top: 9.4rem;
        left: 86%;
        font-size: 0.84rem;
    }

    .app-bg-code-cloud::after {
        top: 5rem;
        left: 4%;
        right: 4%;
        box-shadow:
            0 1.7rem 0 0 rgba(33, 150, 243, 0.07),
            0 3.4rem 0 0 rgba(33, 150, 243, 0.05);
    }

    .app-main-shell::before {
        background: rgba(255, 255, 255, 0.025);
        backdrop-filter: blur(1.3px);
        -webkit-backdrop-filter: blur(1.3px);
    }
}
