.lc-mobile-navigation {
    display: none;
}

@media (max-width: 991.98px) {
    :root {
        --lc-mobile-bg: #0d1629;
        --lc-mobile-surface: #18243a;
        --lc-mobile-surface-2: #111a2c;
        --lc-mobile-text: #f7f8fb;
        --lc-mobile-muted: #9aa6ba;
        --lc-mobile-accent: #f6b21a;
        --lc-mobile-border: rgba(255, 255, 255, 0.09);
        --lc-mobile-nav-height: 72px;
        --lc-mobile-tap: 48px;
    }

    body {
        padding-bottom: calc(var(--lc-mobile-nav-height) + env(safe-area-inset-bottom)) !important;
    }

    .lc-mobile-navigation {
        display: block;
        color: var(--lc-mobile-text);
        font-family: inherit;
    }

    .lc-mobile-nav {
        position: fixed;
        z-index: 10000;
        inset: auto 0 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(48px, 1fr));
        align-items: stretch;
        min-height: var(--lc-mobile-nav-height);
        padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        background: rgba(13, 22, 41, 0.98);
        border-top: 1px solid var(--lc-mobile-border);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(12px);
    }

    .lc-mobile-navigation--count-1 .lc-mobile-nav {
        grid-template-columns: minmax(48px, 1fr);
    }

    .lc-mobile-navigation--count-2 .lc-mobile-nav {
        grid-template-columns: repeat(2, minmax(48px, 1fr));
    }

    .lc-mobile-navigation--count-3 .lc-mobile-nav {
        grid-template-columns: repeat(3, minmax(48px, 1fr));
    }

    .lc-mobile-navigation--count-5 .lc-mobile-nav {
        /* Longer labels receive more width while every item keeps a large touch target. */
        grid-template-columns: minmax(48px, 0.88fr) minmax(48px, 1fr) minmax(48px, 1.10fr) minmax(48px, 1.36fr) minmax(48px, 0.88fr);
        column-gap: 0;
        padding-left: max(2px, env(safe-area-inset-left));
        padding-right: max(2px, env(safe-area-inset-right));
    }

    .lc-mobile-navigation--count-5 .lc-mobile-nav__item {
        padding-left: 0;
        padding-right: 0;
    }

    .lc-mobile-navigation--count-5 .lc-mobile-nav__item span {
        overflow: visible;
        max-width: none;
        text-overflow: clip;
        letter-spacing: 0;
        font-size: clamp(8.75px, 2.4vw, 10px);
    }

    .lc-mobile-nav__item {
        appearance: none;
        border: 0;
        background: transparent;
        color: var(--lc-mobile-muted) !important;
        min-width: 0;
        min-height: var(--lc-mobile-tap);
        padding: 7px 2px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none !important;
        cursor: pointer;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .lc-mobile-nav__item svg {
        width: 27px;
        height: 27px;
        flex: 0 0 auto;
    }

    .lc-mobile-nav__item span {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.15px;
    }

    .lc-mobile-nav__item.is-active {
        color: var(--lc-mobile-accent) !important;
    }

    .lc-mobile-nav__item:focus-visible,
    .lc-mobile-card:focus-visible,
    .lc-mobile-tool-card:focus-visible,
    .lc-mobile-tool-card__summary:focus-visible,
    .lc-mobile-menu-row:focus-visible,
    .lc-mobile-dialog__close:focus-visible {
        outline: 3px solid var(--lc-mobile-accent);
        outline-offset: 2px;
    }

    /* A modal full-screen must not expose controls from the page behind it. */
    html.lc-mobile-dialog-open,
    body.lc-mobile-dialog-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    html.lc-mobile-dialog-open .lc-mobile-nav {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    @media (hover: hover) {
        .lc-mobile-nav__item:hover {
            color: var(--lc-mobile-text) !important;
            background: rgba(255, 255, 255, 0.05);
        }

        .lc-mobile-nav__item.is-active:hover {
            color: var(--lc-mobile-accent) !important;
        }
    }

    .lc-mobile-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        color: var(--lc-mobile-text);
        background: var(--lc-mobile-bg);
        overflow: hidden;
        box-sizing: border-box;
    }

    .lc-mobile-dialog::backdrop {
        background: rgba(0, 0, 0, 0.58);
        backdrop-filter: blur(2px);
    }

    .lc-mobile-dialog--menu,
    .lc-mobile-dialog--hub {
        width: 100vw;
        min-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
    }

    .lc-mobile-dialog__surface {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: var(--lc-mobile-bg);
        overflow: hidden;
    }

    .lc-mobile-dialog__header {
        flex: 0 0 auto;
        min-height: calc(70px + env(safe-area-inset-top));
        padding: calc(16px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid var(--lc-mobile-border);
    }

    .lc-mobile-dialog__header h2 {
        margin: 0;
        color: var(--lc-mobile-text);
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.1;
        font-weight: 800;
    }

    .lc-mobile-dialog__header p {
        margin: 9px 0 0;
        color: var(--lc-mobile-muted);
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.2px;
    }

    .lc-mobile-dialog__close {
        appearance: none;
        border: 0;
        background: transparent;
        color: var(--lc-mobile-muted);
        width: var(--lc-mobile-tap);
        height: var(--lc-mobile-tap);
        flex: 0 0 var(--lc-mobile-tap);
        display: grid;
        place-items: center;
        border-radius: 50%;
        cursor: pointer;
    }

    .lc-mobile-dialog__close svg {
        width: 25px;
        height: 25px;
    }

    .lc-mobile-dialog__body {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 22px max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }

    .lc-mobile-cards {
        display: grid;
        gap: 14px;
        max-width: 720px;
        margin-inline: auto;
    }

    .lc-mobile-card {
        min-height: 92px;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) 28px;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.035);
        border-radius: 18px;
        color: var(--lc-mobile-text) !important;
        background: linear-gradient(110deg, #19243a, #172238);
        text-decoration: none !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
        touch-action: manipulation;
    }

    .lc-mobile-card.is-active {
        border-color: rgba(246, 178, 26, 0.55);
        box-shadow: 0 0 0 1px rgba(246, 178, 26, 0.12);
    }

    .lc-mobile-card__icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.035);
    }

    .lc-mobile-card__icon img {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .lc-mobile-card__text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .lc-mobile-card__text strong {
        color: var(--lc-mobile-text);
        font-size: 19px;
        line-height: 1.18;
        font-weight: 800;
    }

    .lc-mobile-card__text small {
        color: var(--lc-mobile-muted);
        font-size: 14px;
        line-height: 1.25;
    }

    .lc-mobile-card__chevron {
        color: var(--lc-mobile-muted);
        display: grid;
        place-items: center;
    }

    .lc-mobile-card__chevron svg {
        width: 24px;
        height: 24px;
    }

    .lc-mobile-tools {
        display: grid;
        gap: 14px;
        max-width: 720px;
        margin-inline: auto;
    }

    .lc-mobile-tool-card {
        min-height: 92px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 28px;
        align-items: center;
        gap: 14px;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, 0.035);
        border-radius: 18px;
        color: var(--lc-mobile-text) !important;
        background: linear-gradient(110deg, #19243a, #172238);
        text-decoration: none !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        touch-action: manipulation;
    }

    .lc-mobile-tool-card.is-active {
        border-color: rgba(246, 178, 26, 0.55);
        box-shadow: 0 0 0 1px rgba(246, 178, 26, 0.12);
    }

    a.lc-mobile-tool-card,
    .lc-mobile-tool-card__summary {
        padding: 14px 16px;
    }

    .lc-mobile-tool-card--disclosure {
        display: block;
        min-height: 0;
    }

    .lc-mobile-tool-card__summary {
        min-height: 92px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 28px;
        align-items: center;
        gap: 14px;
        box-sizing: border-box;
        list-style: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .lc-mobile-tool-card__summary::-webkit-details-marker {
        display: none;
    }

    .lc-mobile-tool-card__icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: var(--lc-mobile-accent);
        background: rgba(255, 255, 255, 0.035);
    }

    .lc-mobile-tool-card__icon svg {
        width: 30px;
        height: 30px;
    }

    .lc-mobile-tool-card__text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .lc-mobile-tool-card__text strong {
        color: var(--lc-mobile-text);
        font-size: 19px;
        line-height: 1.18;
        font-weight: 800;
    }

    .lc-mobile-tool-card__text small {
        color: var(--lc-mobile-muted);
        font-size: 14px;
        line-height: 1.25;
    }

    .lc-mobile-tool-card__chevron {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        color: var(--lc-mobile-muted);
        transition: transform 160ms ease;
    }

    .lc-mobile-tool-card__chevron svg {
        width: 24px;
        height: 24px;
    }

    .lc-mobile-tool-card--disclosure[open] > .lc-mobile-tool-card__summary .lc-mobile-tool-card__chevron {
        transform: rotate(90deg);
        color: var(--lc-mobile-accent);
    }

    .lc-mobile-tool-card__children {
        border-top: 1px solid var(--lc-mobile-border);
        background: rgba(0, 0, 0, 0.12);
    }

    .lc-mobile-tool-card--disabled {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 14px 16px;
        opacity: 0.65;
    }

    .lc-mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .lc-mobile-menu-list__item {
        margin: 0;
        border-bottom: 1px solid var(--lc-mobile-border);
    }

    .lc-mobile-menu-list__item:last-child {
        border-bottom: 0;
    }

    .lc-mobile-menu-list__item.is-active > .lc-mobile-menu-row,
    .lc-mobile-menu-list__item.is-active > .lc-mobile-disclosure > .lc-mobile-menu-row {
        color: var(--lc-mobile-accent) !important;
    }

    .lc-mobile-menu-row {
        width: 100%;
        min-height: 56px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        color: var(--lc-mobile-text) !important;
        background: transparent;
        text-decoration: none !important;
        cursor: pointer;
        list-style: none;
    }

    summary.lc-mobile-menu-row::-webkit-details-marker {
        display: none;
    }

    .lc-mobile-menu-row--disabled {
        color: var(--lc-mobile-muted) !important;
        cursor: default;
    }

    .lc-mobile-menu-row .lc-mobile-card__icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 8px;
    }

    .lc-mobile-menu-row .lc-mobile-card__icon img {
        width: 28px;
        height: 28px;
    }

    .lc-mobile-menu-row__title {
        min-width: 0;
        flex: 1;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 550;
    }

    .lc-mobile-menu-row__chevron {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        color: var(--lc-mobile-muted);
        transition: transform 160ms ease;
    }

    .lc-mobile-menu-row__chevron svg {
        width: 18px;
        height: 18px;
    }

    .lc-mobile-disclosure[open] > .lc-mobile-menu-row .lc-mobile-menu-row__chevron {
        transform: rotate(90deg);
        color: var(--lc-mobile-accent);
    }

    .lc-mobile-menu-list--child {
        background: rgba(0, 0, 0, 0.13);
    }

    .lc-mobile-menu-list--child .lc-mobile-menu-row {
        padding-left: 62px;
        min-height: 50px;
    }

    .lc-mobile-navigation__empty {
        margin: 0;
        padding: 28px 20px;
        color: var(--lc-mobile-muted);
        text-align: center;
        font-size: 15px;
    }

    @media (hover: hover) {
        .lc-mobile-card:hover,
        a.lc-mobile-tool-card:hover,
        .lc-mobile-tool-card__summary:hover,
        .lc-mobile-menu-row:hover,
        .lc-mobile-dialog__close:hover {
            background-color: rgba(255, 255, 255, 0.055);
        }
    }

    @media (max-width: 360px) {
        .lc-mobile-navigation:not(.lc-mobile-navigation--count-5) .lc-mobile-nav__item span {
            font-size: 9px;
        }

        .lc-mobile-card {
            grid-template-columns: 48px minmax(0, 1fr) 24px;
            gap: 11px;
            padding-inline: 13px;
        }

        .lc-mobile-card__icon {
            width: 46px;
            height: 46px;
        }

        .lc-mobile-card__icon img {
            width: 39px;
            height: 39px;
        }

        .lc-mobile-tool-card,
        .lc-mobile-tool-card__summary {
            grid-template-columns: 46px minmax(0, 1fr) 24px;
            gap: 11px;
        }

        a.lc-mobile-tool-card,
        .lc-mobile-tool-card__summary,
        .lc-mobile-tool-card--disabled {
            padding-inline: 13px;
        }

        .lc-mobile-tool-card__icon {
            width: 46px;
            height: 46px;
        }

        .lc-mobile-tool-card__icon svg {
            width: 27px;
            height: 27px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .lc-mobile-menu-row__chevron,
        .lc-mobile-tool-card__chevron {
            transition: none;
        }
    }
}
