.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.site-header__brand {
    min-width: 220px;
    flex-shrink: 0;
}

.site-header__logo {
    width: 33px;
    height: 33px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
    overflow: hidden;
    flex: 0 0 33px;
}

.site-header__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header__title {
    display: block;
    color: #212529;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
}

.site-header__slogan {
    display: block;
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.15;
}

.site-header__search {
    flex: 1 1 360px;
    max-width: 460px;
}

.site-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    min-width: 220px;
    justify-content: flex-end;
}

.site-header__user {
    color: #6c757d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.site-header__username {
    color: #212529;
    font-weight: 600;
}

.site-header__discord-button {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.site-header__auth-icon {
    font-size: 0.95rem;
}

.site-header__discord-button:hover,
.site-header__discord-button:focus {
    color: #5865f2;
    border-color: #5865f2;
    background: #eef1ff;
}

@media (max-width: 767.98px) {
    .site-header__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 0.65rem;
    }

    .site-header__brand {
        flex: 1 1 0;
        min-width: 0;
        order: 1;
    }

    .site-header__slogan {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 230px;
    }

    .site-header__search {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .site-header__actions {
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        order: 2;
    }

    .site-header__user,
    .site-header__logout-text,
    .site-header__discord-text {
        display: none;
    }

    .site-header__logout-button,
    .site-header__discord-button {
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        justify-content: center;
        border-radius: 0.55rem;
    }
}

@media (max-width: 991.98px) {
    .site-header__brand {
        min-width: 0;
    }

    .site-header__actions {
        min-width: 170px;
    }
}
