@charset "UTF-8";

:root {
    --frontend-topbar-height: 62px;
    --frontend-topbar-blue: #3978f6;
    --frontend-topbar-blue-hover: #2f6de9;
}

.frontend-topbar,
.frontend-topbar * {
    box-sizing: border-box;
}

.frontend-topbar {
    position: sticky;
    z-index: 20000;
    top: 0;
    width: 100%;
    height: var(--frontend-topbar-height);
    min-height: var(--frontend-topbar-height);
    flex: 0 0 var(--frontend-topbar-height);
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #eceef3;
    border-radius: 0;
    background: #ffffff;
    color: #20242d;
    box-shadow: none;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.frontend-topbar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.frontend-topbar-search {
    width: clamp(300px, 40vw, 680px);
    min-width: 280px;
    max-width: 680px;
    height: 42px;
    display: flex;
    flex: 0 1 680px;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f4f5f7;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.frontend-topbar-search:focus-within {
    border-color: rgba(57, 120, 246, 0.54);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(57, 120, 246, 0.1);
}

.frontend-topbar-leading-search {
    width: 38px;
    height: 100%;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    color: #9297a2;
}

.frontend-topbar-leading-search svg,
.frontend-topbar-submit svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.frontend-topbar-search input {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 8px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    color: #30343d;
    box-shadow: none !important;
    font: inherit;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1;
}

.frontend-topbar-search input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.frontend-topbar-search input::-webkit-search-cancel-button {
    display: none;
}

.frontend-topbar-search input::placeholder {
    color: #4a4f57;
    font-weight: 700 !important;
    opacity: 1;
}

.frontend-topbar-submit {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: 0;
    background: #ffffff;
    color: #858b96;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.frontend-topbar-submit:hover {
    background: #fafafa;
    color: #4e5561;
    transform: translateY(-1px);
}

.frontend-topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    white-space: nowrap;
}

.frontend-topbar-auth-only {
    display: none !important;
}

.frontend-topbar-actions.is-authenticated .frontend-topbar-auth-only {
    display: inline-flex !important;
}

.frontend-topbar-actions.is-authenticated .frontend-topbar-icon-button.frontend-topbar-auth-only {
    display: inline-grid !important;
}

.frontend-topbar-control,
.frontend-topbar-icon-button,
.frontend-topbar-auth {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.frontend-topbar-control {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    outline: 0;
    font-size: 13px;
    font-weight: 750 !important;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.frontend-topbar-control:hover,
.frontend-topbar-icon-button:hover,
.frontend-topbar-auth:hover {
    transform: translateY(-1px);
}

.frontend-topbar-control:focus-visible,
.frontend-topbar-icon-button:focus-visible,
.frontend-topbar-auth:focus-visible,
.frontend-topbar-submit:focus-visible {
    outline: 3px solid rgba(57, 120, 246, 0.22);
    outline-offset: 2px;
}

.frontend-topbar-control svg,
.frontend-topbar-icon-button svg {
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.frontend-topbar-control svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.85;
}

.frontend-topbar-invite {
    min-width: 104px;
    height: 34px;
    gap: 6px;
    border: 1px solid #ffe7c8;
    border-radius: 7px;
    background: #fff6e9;
    color: #4a4a4a !important;
    font-weight: 800 !important;
}

.frontend-topbar-invite:hover {
    border-color: #ffd7a4;
    background: #ffedd7;
    color: #20242d !important;
}

.frontend-topbar-checkin {
    min-width: 108px;
    border-color: transparent;
    background: #eef2ff;
    color: #4f46e5;
}

.frontend-topbar-checkin:hover:not(:disabled) {
    border-color: transparent;
    background: #e2e7ff;
    color: #4338ca;
}

.frontend-topbar-checkin:disabled {
    cursor: default;
    opacity: 0.78;
    transform: none;
}

.frontend-topbar-checkin.is-checked {
    border-color: #e1e7e4;
    background: #f4f6f5;
    color: #7b857f;
}

.frontend-topbar-checkin.is-loading svg {
    animation: frontendTopbarSpin 0.8s linear infinite;
}

@keyframes frontendTopbarSpin {
    to { transform: rotate(360deg); }
}

.frontend-topbar-balance {
    min-width: 92px;
    border-color: transparent;
    background: #f0f0f0;
    color: #222222 !important;
}

.frontend-topbar-balance:hover {
    border-color: transparent;
    background: #e5e5e5;
    color: #111111 !important;
}

.frontend-topbar-balance svg {
    width: 18px;
    height: 18px;
    fill: #ffbd24;
    stroke: #ffbd24;
    stroke-width: 1.5;
}

.frontend-topbar-balance strong {
    max-width: 96px;
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
}

.frontend-topbar-balance span {
    color: #505661;
    font-size: 12px;
    font-weight: 750;
}

.frontend-topbar-icon-button {
    position: relative;
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: inline-grid;
    flex: 0 0 40px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: 0;
    background: #f6f7f9;
    color: #18202b;
    cursor: pointer;
}

.frontend-topbar-icon-button:hover {
    border-color: transparent;
    background: #eceef2;
    color: #111827;
}

.frontend-topbar-icon-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.85;
}

.frontend-topbar-notification > svg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.frontend-topbar-notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ff3d57;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.frontend-topbar-notification-badge[hidden] {
    display: none !important;
}

.frontend-topbar-theme-sun {
    display: none !important;
}

html[data-theme="dark"] .frontend-topbar-theme-moon,
body.profile-dashboard-dark .frontend-topbar-theme-moon {
    display: none !important;
}

html[data-theme="dark"] .frontend-topbar-theme-sun,
body.profile-dashboard-dark .frontend-topbar-theme-sun {
    display: block !important;
}

.frontend-topbar-auth {
    min-width: 92px;
    max-width: 180px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 16px;
    overflow: hidden;
    border: 1px solid var(--frontend-topbar-blue);
    border-radius: 9px;
    background: var(--frontend-topbar-blue);
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(57, 120, 246, 0.18);
    font-size: 13px;
    font-weight: 850 !important;
    line-height: 1;
    white-space: nowrap;
}

.frontend-topbar-auth:hover {
    border-color: var(--frontend-topbar-blue-hover);
    background: var(--frontend-topbar-blue-hover);
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(57, 120, 246, 0.24);
}

.frontend-topbar-auth-avatar {
    display: none;
}

.frontend-topbar-auth-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frontend-topbar-auth.is-authenticated {
    width: auto;
    min-width: 74px;
    max-width: 160px;
    height: 32px;
    gap: 6px;
    padding: 0 10px 0 4px;
    border: 0;
    border-radius: 999px;
    background: #f0f0f0;
    color: #222222 !important;
    box-shadow: none;
}

.frontend-topbar-auth.is-authenticated:hover {
    border-color: transparent;
    background: #e5e5e5;
    color: #111111 !important;
    box-shadow: none;
}

.frontend-topbar-auth.is-authenticated .frontend-topbar-auth-avatar {
    width: 26px;
    height: 26px;
    display: grid;
    flex: 0 0 26px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #4b7dff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.frontend-topbar-auth-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.frontend-topbar-auth.is-authenticated .frontend-topbar-auth-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.frontend-topbar-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html[data-theme="dark"] .frontend-topbar,
body.profile-dashboard-dark .frontend-topbar {
    border-bottom-color: #252833;
    background: #111219;
    color: #f2f3f7;
}

html[data-theme="dark"] .frontend-topbar-search,
body.profile-dashboard-dark .frontend-topbar-search {
    background: #1b1d25;
}

html[data-theme="dark"] .frontend-topbar-search:focus-within,
body.profile-dashboard-dark .frontend-topbar-search:focus-within {
    border-color: rgba(105, 151, 255, 0.58);
    background: #20232c;
}

html[data-theme="dark"] .frontend-topbar-search input,
body.profile-dashboard-dark .frontend-topbar-search input {
    color: #eceef4;
}

html[data-theme="dark"] .frontend-topbar-submit,
body.profile-dashboard-dark .frontend-topbar-submit {
    background: #282b35;
    color: #b7bbc6;
    box-shadow: none;
}

html[data-theme="dark"] .frontend-topbar-invite,
body.profile-dashboard-dark .frontend-topbar-invite {
    border-color: rgba(255, 142, 48, 0.22);
    background: rgba(255, 126, 19, 0.12);
    color: #ff983f !important;
}

html[data-theme="dark"] .frontend-topbar-checkin,
body.profile-dashboard-dark .frontend-topbar-checkin {
    border-color: rgba(52, 193, 117, 0.2);
    background: rgba(31, 169, 94, 0.12);
    color: #55d58f;
}

html[data-theme="dark"] .frontend-topbar-checkin.is-checked,
body.profile-dashboard-dark .frontend-topbar-checkin.is-checked {
    border-color: #30343d;
    background: #22252d;
    color: #8e949f;
}

html[data-theme="dark"] .frontend-topbar-balance,
body.profile-dashboard-dark .frontend-topbar-balance {
    border-color: #30333d;
    background: #22242c;
    color: #f1f2f5 !important;
}

html[data-theme="dark"] .frontend-topbar-balance span,
body.profile-dashboard-dark .frontend-topbar-balance span {
    color: #aeb3bd;
}

html[data-theme="dark"] .frontend-topbar-icon-button,
body.profile-dashboard-dark .frontend-topbar-icon-button {
    border-color: #2a2d36;
    background: #191b22;
    color: #e4e6eb;
}

html[data-theme="dark"] .frontend-topbar-icon-button:hover,
body.profile-dashboard-dark .frontend-topbar-icon-button:hover {
    border-color: #3b3f4b;
    background: #242730;
}

html[data-theme="dark"] .frontend-topbar-notification-badge,
body.profile-dashboard-dark .frontend-topbar-notification-badge {
    border-color: #111219;
}

html[data-theme="dark"] .frontend-topbar-auth.is-authenticated,
body.profile-dashboard-dark .frontend-topbar-auth.is-authenticated {
    border-color: #3a3e49;
    background: #20232b;
}

body.frontend-topbar-page .app-use-page {
    height: calc(100vh - var(--frontend-topbar-height)) !important;
    padding-top: 16px !important;
}

body.frontend-topbar-page .gen-shell,
body.frontend-topbar-page .share-shell {
    min-height: calc(100vh - var(--frontend-topbar-height));
}

@media (max-width: 1400px) and (min-width: 901px) {
    .community-header .frontend-topbar-actions {
        gap: 8px;
        margin-left: auto;
    }

    .community-header .frontend-topbar-checkin {
        width: 32px;
        min-width: 32px;
        padding: 0;
    }

    .community-header .frontend-topbar-checkin > span,
    .community-header .frontend-topbar-balance > span,
    .community-header .frontend-topbar-auth.is-authenticated .frontend-topbar-auth-label {
        display: none;
    }

    .community-header .frontend-topbar-balance {
        min-width: 66px;
        padding: 0 9px;
    }

    .community-header .frontend-topbar-auth.is-authenticated {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        gap: 0;
        padding: 0 3px;
    }
}

@media (max-width: 1180px) {
    .frontend-topbar .frontend-topbar-actions.is-authenticated .frontend-topbar-invite {
        display: none !important;
    }
}

@media (max-width: 980px) {
    body.frontend-topbar-page .app-use-page {
        height: auto !important;
        min-height: calc(100vh - var(--frontend-topbar-height)) !important;
    }

    .frontend-topbar-inner {
        gap: 10px;
        padding: 0 10px;
    }

    .frontend-topbar-search {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
}

@media (max-width: 900px) {
    .community-header .frontend-topbar-actions {
        gap: 6px;
        margin-left: auto;
    }

    .community-header .frontend-topbar-invite,
    .community-header .frontend-topbar-checkin > span,
    .community-header .frontend-topbar-balance > span,
    .community-header .frontend-topbar-auth.is-authenticated .frontend-topbar-auth-label {
        display: none !important;
    }

    .community-header .frontend-topbar-checkin {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .community-header .frontend-topbar-balance {
        min-width: 52px;
        padding: 0 8px;
    }

    .community-header .frontend-topbar-auth.is-authenticated {
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        gap: 0;
        padding: 0 5px;
    }
}

@media (max-width: 760px) {
    :root {
        --frontend-topbar-height: 56px;
    }

    .frontend-topbar-actions.is-authenticated .frontend-topbar-invite {
        display: none !important;
    }

    .frontend-topbar-inner {
        gap: 8px;
        padding: 0 8px;
    }

    .frontend-topbar-search {
        height: 38px;
    }

    .frontend-topbar-leading-search {
        width: 34px;
        flex-basis: 34px;
    }

    .frontend-topbar-submit {
        width: 32px;
        min-width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .frontend-topbar-actions.is-authenticated .frontend-topbar-checkin {
        display: none !important;
    }

    .frontend-topbar-actions {
        gap: 6px;
    }

    .frontend-topbar-control {
        height: 32px;
        padding: 0 9px;
    }

    .frontend-topbar-balance {
        min-width: 0;
    }

    .frontend-topbar-icon-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .frontend-topbar-auth {
        min-width: 84px;
        height: 32px;
        padding: 0 13px;
        font-size: 12px;
    }

    .frontend-topbar-auth.is-authenticated {
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
    }

    .frontend-topbar-auth.is-authenticated .frontend-topbar-auth-avatar {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 560px) {
    body.frontend-topbar-page .app-use-page {
        padding-top: 12px !important;
    }

    .frontend-topbar-search input {
        font-size: 13px;
    }

    .frontend-topbar-balance span {
        display: none;
    }

    .frontend-topbar-balance strong {
        max-width: 62px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .frontend-topbar-search {
        min-width: 88px;
    }

    .frontend-topbar-search input {
        padding-right: 2px;
    }

    .frontend-topbar-leading-search {
        width: 30px;
        flex-basis: 30px;
    }

    .frontend-topbar-submit {
        display: none;
    }

    .frontend-topbar-actions.is-authenticated {
        gap: 5px;
    }

    .frontend-topbar-balance {
        gap: 4px;
        padding: 0 7px;
    }

    .frontend-topbar-balance svg {
        width: 15px;
        height: 15px;
    }
}

/* Final dark-theme contrast layer shared by all standalone pages. */
html[data-theme="dark"] .frontend-topbar,
body.dark-mode .frontend-topbar,
body.profile-dashboard-dark .frontend-topbar {
    border-bottom-color: #2b2f3a;
    background: rgba(15, 16, 22, 0.98);
    color: #f5f6fa;
}

html[data-theme="dark"] .frontend-topbar-search,
body.dark-mode .frontend-topbar-search,
body.profile-dashboard-dark .frontend-topbar-search {
    border-color: #292d38;
    background: #1b1e27;
}

html[data-theme="dark"] .frontend-topbar-search:focus-within,
body.dark-mode .frontend-topbar-search:focus-within,
body.profile-dashboard-dark .frontend-topbar-search:focus-within {
    border-color: rgba(129, 140, 248, 0.72);
    background: #202431;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

html[data-theme="dark"] .frontend-topbar-leading-search,
body.dark-mode .frontend-topbar-leading-search,
body.profile-dashboard-dark .frontend-topbar-leading-search {
    color: #a9b0c0;
}

html[data-theme="dark"] .frontend-topbar-search input,
body.dark-mode .frontend-topbar-search input,
body.profile-dashboard-dark .frontend-topbar-search input {
    color: #f1f3f8;
    caret-color: #a5b4fc;
}

html[data-theme="dark"] .frontend-topbar-search input::placeholder,
body.dark-mode .frontend-topbar-search input::placeholder,
body.profile-dashboard-dark .frontend-topbar-search input::placeholder {
    color: #aeb4bf;
    opacity: 1;
}

html[data-theme="dark"] .frontend-topbar-submit,
body.dark-mode .frontend-topbar-submit,
body.profile-dashboard-dark .frontend-topbar-submit {
    background: #292d38;
    color: #d7dbe5;
    box-shadow: none;
}

html[data-theme="dark"] .frontend-topbar-submit:hover,
body.dark-mode .frontend-topbar-submit:hover,
body.profile-dashboard-dark .frontend-topbar-submit:hover {
    background: #343947;
    color: #ffffff;
}

html[data-theme="dark"] .frontend-topbar-invite,
body.dark-mode .frontend-topbar-invite,
body.profile-dashboard-dark .frontend-topbar-invite {
    border-color: #3a3e47;
    background: rgba(255, 255, 255, 0.07);
    color: #f4f6fa !important;
}

html[data-theme="dark"] .frontend-topbar-checkin,
body.dark-mode .frontend-topbar-checkin,
body.profile-dashboard-dark .frontend-topbar-checkin {
    border-color: transparent;
    background: rgba(129, 140, 248, 0.19);
    color: #a5b4fc;
}

html[data-theme="dark"] .frontend-topbar-checkin.is-checked,
body.dark-mode .frontend-topbar-checkin.is-checked,
body.profile-dashboard-dark .frontend-topbar-checkin.is-checked {
    border-color: #353a46;
    background: #242730;
    color: #a6acb8;
    opacity: 1;
}

html[data-theme="dark"] .frontend-topbar-balance,
body.dark-mode .frontend-topbar-balance,
body.profile-dashboard-dark .frontend-topbar-balance {
    border-color: transparent;
    background: #2a2f39;
    color: #f5f6fa !important;
}

html[data-theme="dark"] .frontend-topbar-balance:hover,
body.dark-mode .frontend-topbar-balance:hover,
body.profile-dashboard-dark .frontend-topbar-balance:hover {
    border-color: #484e5e;
    background: #2d313d;
    color: #ffffff !important;
}

html[data-theme="dark"] .frontend-topbar-balance span,
body.dark-mode .frontend-topbar-balance span,
body.profile-dashboard-dark .frontend-topbar-balance span {
    color: #b9bfcb;
}

html[data-theme="dark"] .frontend-topbar-icon-button,
body.dark-mode .frontend-topbar-icon-button,
body.profile-dashboard-dark .frontend-topbar-icon-button {
    border-color: transparent;
    background: #2a2b2f;
    color: #f3f4f6;
}

html[data-theme="dark"] .frontend-topbar-icon-button:hover,
body.dark-mode .frontend-topbar-icon-button:hover,
body.profile-dashboard-dark .frontend-topbar-icon-button:hover {
    border-color: #484d5b;
    background: #292d37;
    color: #ffffff;
}

html[data-theme="dark"] .frontend-topbar-notification-badge,
body.dark-mode .frontend-topbar-notification-badge,
body.profile-dashboard-dark .frontend-topbar-notification-badge {
    border-color: #0f1016;
    color: #ffffff;
}

html[data-theme="dark"] .frontend-topbar-auth.is-authenticated,
body.dark-mode .frontend-topbar-auth.is-authenticated,
body.profile-dashboard-dark .frontend-topbar-auth.is-authenticated {
    border-color: transparent;
    background: #2a2f39;
    color: #f5f6fa !important;
}

html[data-theme="dark"] :where(.frontend-topbar-control, .frontend-topbar-icon-button, .frontend-topbar-auth, .frontend-topbar-submit):focus-visible,
body.dark-mode :where(.frontend-topbar-control, .frontend-topbar-icon-button, .frontend-topbar-auth, .frontend-topbar-submit):focus-visible,
body.profile-dashboard-dark :where(.frontend-topbar-control, .frontend-topbar-icon-button, .frontend-topbar-auth, .frontend-topbar-submit):focus-visible {
    outline-color: rgba(165, 180, 252, 0.72);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
