.fq-site-header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Creator pages add large content cards below the header. Keep nav dropdowns
   above those cards when they overlap the first section. */
.fq-site-header .dropdown-menu,
.fq-site-header .lang-dropdown-content {
    z-index: 1100;
}

.fq-account-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.fq-site-header .fq-account-bar-inner {
    min-height: 40px;
    max-width: 1200px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    gap: 1rem;
}

/* Global search lives in the secondary header alongside play/account links.
   Its field styling matches the creator-library search control. */
.fq-account-bar .fq-header-search {
    flex: 0 1 240px;
    display: flex;
    align-items: center;
    height: 36px;
    margin: 0 auto 0 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.fq-account-bar .fq-header-search input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: .55rem .2rem .55rem .9rem;
    border: 0;
    outline: 0;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: .88rem;
    line-height: 1.35;
}

.fq-account-bar .fq-header-search input::placeholder { color: #64748b; opacity: 1; }
.fq-account-bar .fq-header-search:focus-within { outline: 3px solid rgba(124,58,237,.16); border-color: #7c3aed; }
.fq-account-bar .fq-header-search button {
    flex: 0 0 auto;
    border: 0;
    padding: .25rem .7rem;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.fq-account-links {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.fq-account-links::-webkit-scrollbar {
    display: none;
}

.fq-account-link,
.fq-account-button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.fq-account-link:hover,
.fq-account-button:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fq-account-link.is-primary {
    background: #ede9fe;
    color: #6d28d9;
}

.fq-account-link.is-primary:hover {
    border-color: #a78bfa;
}

.fq-account-link.is-account {
    background: #ecfdf5;
    color: #0f766e;
}

.fq-account-link.is-account:hover {
    border-color: #6ee7b7;
}

.fq-main-header-row {
    min-height: 68px;
}

.fq-label-mobile { display: none; }

.fq-account-link .fq-label-desktop[aria-hidden="true"] {
    margin-right: 0.28rem;
}
.mobile-account-actions { display: none; }

@media (max-width: 768px) {
    .fq-site-header .fq-account-bar-inner {
        padding: 0.3rem 0.65rem !important;
        gap: .35rem;
    }

    .fq-account-links {
        justify-content: flex-start;
        flex: 0 0 auto;
        width: auto;
        gap: .25rem;
        overflow: visible;
    }

    .fq-account-bar .fq-header-search {
        flex: 0 1 168px;
        width: 168px;
        min-width: 78px;
        height: 34px;
    }

    html[lang="sv"] .fq-account-bar .fq-header-search {
        flex-basis: 200px;
        width: 200px;
    }

    html:not([lang="sv"]) .fq-account-bar .fq-header-search {
        flex-basis: 200px;
        width: 200px;
    }

    .fq-account-bar .fq-header-search input {
        padding-left: .65rem;
        font-size: .8rem;
    }

    .fq-account-bar .fq-header-search button {
        padding-inline: .45rem;
    }

    .fq-account-link,
    .fq-account-button {
        min-height: 30px;
        font-size: 0.75rem;
        padding-inline: 0.5rem;
    }

    .fq-account-links > * { display: none !important; }
    .fq-account-links > .is-primary,
    .fq-account-links > .fq-account-link--creator { display: inline-flex !important; }
    .fq-account-link .fq-label-desktop { display: none !important; }
    .fq-account-link .fq-label-mobile { display: inline !important; }
    .mobile-account-actions {
        display: grid;
        gap: .65rem;
        margin: 0 0 1.5rem;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid #e2e8f0;
    }
    .mobile-account-actions .mobile-account-action {
        margin: 0;
        padding: .9rem 1rem;
        font-size: 1rem;
        border-radius: 14px;
        box-shadow: none;
    }
    .mobile-account-action--login {
        background: #ecfdf5;
        color: #0f766e;
    }
    .mobile-account-action--join {
        background: #ede9fe;
        color: #6d28d9;
    }
}
.code-hunt-mobile-nav-item {
    margin-bottom: .35rem !important;
}
