.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    min-height: 56px;
    margin: -20px -20px 12px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e8eef5;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
    color: #172033;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

a.site-header__brand:hover,
a.site-header__brand:focus-visible {
    color: #1a2a6c;
    text-decoration: none;
}

.site-header__brand-icon {
    font-size: 22px;
    line-height: 1;
    color: #0d6efd;
}

.site-header__brand-icon--collect {
    color: #198754;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.site-header__actions .site-hints-toggle {
    flex-shrink: 0;
}

body.auth-page .site-header {
    justify-content: center;
    margin: -12px -12px 12px;
    padding: 0 12px;
}

@media (max-width: 900px) {
    .site-header {
        min-height: 52px;
        gap: 12px;
    }

    .site-header__brand {
        font-size: 16px;
    }

    .site-header__brand-icon {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .site-header {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
    }

    .site-header__actions {
        width: 100%;
        justify-content: stretch;
    }

    .site-header__actions .robot-activity-summary,
    .site-header__actions .site-hints-toggle {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    body.auth-page .site-header {
        margin: -8px -10px 10px;
        padding: 0 10px;
        min-height: 48px;
    }
}
