@charset "UTF-8";

:root {
    --frontend-mobile-nav-height: 70px;
}

.frontend-mobile-nav-root,
.frontend-mobile-nav,
.frontend-mobile-nav-backdrop,
.frontend-mobile-nav-sheet {
    display: none;
}

@media (max-width: 768px) {
    body.frontend-mobile-nav-page {
        padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }

    body.frontend-mobile-nav-page .gen-content,
    body.frontend-mobile-nav-page .app-use-page {
        padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
    }

    html.frontend-mobile-nav-sheet-open,
    body.frontend-mobile-nav-sheet-open {
        overscroll-behavior: none;
    }

    body.frontend-mobile-nav-sheet-open {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
        overflow: hidden !important;
    }

    .frontend-mobile-nav-root {
        display: block;
    }

    .frontend-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 74;
        min-height: calc(var(--frontend-mobile-nav-height) + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        gap: 2px;
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        overflow: visible;
        border-top: 1px solid rgba(148, 163, 184, .24);
        background: rgba(255, 255, 255, .95);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
        backdrop-filter: blur(22px) saturate(145%);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
        transition: opacity 150ms ease, transform 150ms ease;
    }

    .frontend-mobile-nav-item {
        min-width: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 5px 2px 4px;
        border-radius: 14px;
        color: #94a3b8;
        font-size: 10.5px;
        font-weight: 650 !important;
        line-height: 1;
        text-decoration: none !important;
        white-space: nowrap;
        touch-action: manipulation;
        transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .16s ease;
    }

    .frontend-mobile-nav-item svg {
        width: 22px;
        height: 22px;
        display: block;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.85;
        transition: transform .18s ease, stroke-width .18s ease, box-shadow .18s ease;
    }

    .frontend-mobile-nav-item.is-active {
        background: rgba(79, 70, 229, .1);
        box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .12);
        color: #4f46e5;
        font-weight: 800 !important;
    }

    .frontend-mobile-nav-item.is-active svg {
        stroke-width: 2.15;
        transform: translateY(-1px);
    }

    .frontend-mobile-nav-item.is-creative {
        position: relative;
        margin-top: -16px;
        color: #4f46e5;
    }

    .frontend-mobile-nav-item.is-creative svg {
        box-sizing: content-box;
        width: 25px;
        height: 25px;
        padding: 9px;
        border: 4px solid rgba(255, 255, 255, .98);
        border-radius: 18px;
        background: linear-gradient(145deg, #6366f1, #4f46e5);
        box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
        color: #ffffff;
        stroke-width: 1.9;
    }

    .frontend-mobile-nav-item.is-creative.is-active {
        background: transparent;
        box-shadow: none;
        color: #4338ca;
    }

    .frontend-mobile-nav-item.is-creative.is-active svg {
        box-shadow: 0 12px 28px rgba(79, 70, 229, .36), 0 0 0 3px rgba(99, 102, 241, .14);
        transform: translateY(-2px);
    }

    .frontend-mobile-nav-item:active {
        transform: scale(.94);
    }

    .frontend-mobile-nav-item:focus-visible,
    .frontend-mobile-nav-tool:focus-visible,
    .frontend-mobile-nav-sheet-close:focus-visible {
        outline: 2px solid rgba(79, 70, 229, .82);
        outline-offset: 2px;
    }

    .frontend-mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 72;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, .4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .frontend-mobile-nav-sheet {
        position: fixed;
        bottom: calc(var(--frontend-mobile-nav-height) + env(safe-area-inset-bottom) + 12px);
        left: 50%;
        z-index: 73;
        width: min(calc(100vw - 20px), 520px);
        max-height: 68vh;
        max-height: min(68dvh, 560px);
        display: block;
        padding: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 24px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 18px) scale(.98);
        transform-origin: center bottom;
        transition: opacity .2s ease, visibility .2s ease, transform .22s ease;
        -webkit-overflow-scrolling: touch;
    }

    .frontend-mobile-nav-root.is-sheet-open .frontend-mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .frontend-mobile-nav-root.is-sheet-open .frontend-mobile-nav-sheet {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
    }

    .frontend-mobile-nav-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 14px;
    }

    .frontend-mobile-nav-sheet-head > div {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .frontend-mobile-nav-sheet-head strong {
        color: #111827;
        font-size: 17px;
        font-weight: 850;
        line-height: 1.2;
    }

    .frontend-mobile-nav-sheet-head span {
        color: #64748b;
        font-size: 11px;
        line-height: 1.4;
    }

    .frontend-mobile-nav-sheet-close {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 12px;
        background: #f8fafc;
        color: #64748b;
        cursor: pointer;
    }

    .frontend-mobile-nav-sheet-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .frontend-mobile-nav-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .frontend-mobile-nav-tool {
        min-width: 0;
        min-height: 66px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 10px;
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 16px;
        background: #f8fafc;
        color: #334155;
        font-size: 12px;
        font-weight: 760;
        line-height: 1.35;
        text-decoration: none !important;
        touch-action: manipulation;
        transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .16s ease;
    }

    .frontend-mobile-nav-tool-icon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: rgba(99, 102, 241, .1);
        color: #4f46e5;
    }

    .frontend-mobile-nav-tool-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
    }

    .frontend-mobile-nav-tool.is-active {
        border-color: rgba(79, 70, 229, .28);
        background: rgba(79, 70, 229, .09);
        color: #4338ca;
    }

    .frontend-mobile-nav-tool.is-active .frontend-mobile-nav-tool-icon {
        background: #4f46e5;
        color: #ffffff;
    }

    .frontend-mobile-nav-tool:active {
        transform: scale(.97);
    }

    html[data-theme="dark"] .frontend-mobile-nav,
    body.dark-mode .frontend-mobile-nav,
    body.profile-dashboard-dark .frontend-mobile-nav {
        border-top-color: rgba(255, 255, 255, .1);
        background: rgba(16, 18, 24, .97);
        box-shadow: 0 -12px 34px rgba(0, 0, 0, .34);
    }

    html[data-theme="dark"] .frontend-mobile-nav-item,
    body.dark-mode .frontend-mobile-nav-item,
    body.profile-dashboard-dark .frontend-mobile-nav-item {
        color: #aeb5c4;
    }

    html[data-theme="dark"] .frontend-mobile-nav-item.is-active,
    body.dark-mode .frontend-mobile-nav-item.is-active,
    body.profile-dashboard-dark .frontend-mobile-nav-item.is-active {
        background: rgba(99, 102, 241, .2);
        box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .26);
        color: #aebcff;
    }

    html[data-theme="dark"] .frontend-mobile-nav-item.is-creative,
    body.dark-mode .frontend-mobile-nav-item.is-creative,
    body.profile-dashboard-dark .frontend-mobile-nav-item.is-creative {
        color: #aebcff;
    }

    html[data-theme="dark"] .frontend-mobile-nav-item.is-creative svg,
    body.dark-mode .frontend-mobile-nav-item.is-creative svg,
    body.profile-dashboard-dark .frontend-mobile-nav-item.is-creative svg {
        border-color: rgba(16, 18, 24, .98);
    }

    html[data-theme="dark"] .frontend-mobile-nav-item.is-creative.is-active,
    body.dark-mode .frontend-mobile-nav-item.is-creative.is-active,
    body.profile-dashboard-dark .frontend-mobile-nav-item.is-creative.is-active {
        background: transparent;
        box-shadow: none;
        color: #c7d2fe;
    }

    html[data-theme="dark"] .frontend-mobile-nav-sheet,
    body.dark-mode .frontend-mobile-nav-sheet,
    body.profile-dashboard-dark .frontend-mobile-nav-sheet {
        border-color: rgba(255, 255, 255, .1);
        background: rgba(20, 22, 29, .98);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    }

    html[data-theme="dark"] .frontend-mobile-nav-sheet-head strong,
    body.dark-mode .frontend-mobile-nav-sheet-head strong,
    body.profile-dashboard-dark .frontend-mobile-nav-sheet-head strong {
        color: #f8fafc;
    }

    html[data-theme="dark"] .frontend-mobile-nav-sheet-head span,
    body.dark-mode .frontend-mobile-nav-sheet-head span,
    body.profile-dashboard-dark .frontend-mobile-nav-sheet-head span {
        color: #94a3b8;
    }

    html[data-theme="dark"] .frontend-mobile-nav-sheet-close,
    body.dark-mode .frontend-mobile-nav-sheet-close,
    body.profile-dashboard-dark .frontend-mobile-nav-sheet-close,
    html[data-theme="dark"] .frontend-mobile-nav-tool,
    body.dark-mode .frontend-mobile-nav-tool,
    body.profile-dashboard-dark .frontend-mobile-nav-tool {
        border-color: rgba(255, 255, 255, .09);
        background: #272a33;
        color: #d5d9e2;
    }

    html[data-theme="dark"] .frontend-mobile-nav-tool.is-active,
    body.dark-mode .frontend-mobile-nav-tool.is-active,
    body.profile-dashboard-dark .frontend-mobile-nav-tool.is-active {
        border-color: rgba(129, 140, 248, .36);
        background: rgba(99, 102, 241, .18);
        color: #c7d2fe;
    }

    html.community-mobile-sidebar-open .frontend-mobile-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }
}

@media (max-width: 360px) {
    .frontend-mobile-nav {
        padding-right: max(5px, env(safe-area-inset-right));
        padding-left: max(5px, env(safe-area-inset-left));
    }

    .frontend-mobile-nav-item {
        font-size: 10px;
    }

    .frontend-mobile-nav-sheet {
        width: calc(100vw - 14px);
        padding: 14px;
        border-radius: 21px;
    }

    .frontend-mobile-nav-tools {
        gap: 8px;
    }

    .frontend-mobile-nav-tool {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
        min-height: 62px;
        padding: 8px;
        font-size: 11px;
    }

    .frontend-mobile-nav-tool-icon {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frontend-mobile-nav,
    .frontend-mobile-nav-item,
    .frontend-mobile-nav-backdrop,
    .frontend-mobile-nav-sheet,
    .frontend-mobile-nav-tool {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}