.ss-global-header {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(300px, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.8rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e7edf8;
    box-shadow: 0 10px 28px rgba(31, 45, 90, 0.06);
    position: sticky;
    top: 0;
    z-index: 80;
}

.ss-brand-block {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #17213d;
    text-decoration: none;
}

.ss-brand-logo-img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(49, 89, 245, 0.2);
}

.ss-brand-copy {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.ss-brand-copy strong {
    font-size: 1.46rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #101936;
}

.ss-brand-copy small {
    font-size: 0.78rem;
    color: #66728f;
    line-height: 1.2;
    white-space: nowrap;
}

.ss-global-search {
    max-width: 660px;
    width: 100%;
    height: 48px;
    justify-self: center;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border: 1px solid #dce4f3;
    border-radius: 1rem;
    background: #fbfcff;
    color: #66728f;
}

.ss-global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #25304d;
    font-size: 0.98rem;
}

.ss-search-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.ss-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.ss-new-post-btn,
.ss-icon-btn,
.ss-header-pill {
    border: 1px solid #dfe7f5;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease, transform 0.18s ease;
}

.ss-new-post-btn {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2367ff, #3159f5);
    border-color: #3159f5;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(49, 89, 245, 0.24);
}

.ss-new-post-btn svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ss-icon-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: #f8faff;
    color: #2f3a59;
    position: relative;
}

.ss-icon-btn svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ss-new-post-btn:hover,
.ss-icon-btn:hover {
    transform: translateY(-1px);
}

.ss-icon-btn:hover,
.ss-icon-btn.active {
    background: #eef3ff;
    border-color: #cbd8ff;
    color: #3159f5;
}

.ss-new-post-btn:focus-visible,
.ss-icon-btn:focus-visible,
.ss-profile-trigger:focus-visible,
.ss-header-pill:focus-visible,
.ss-mobile-search-btn:focus-visible {
    outline: 3px solid rgba(49, 89, 245, 0.22);
    outline-offset: 3px;
}

.ss-header-disabled {
    cursor: pointer;
}

.ss-header-badge {
    min-width: 1.28rem;
    height: 1.28rem;
    padding: 0 0.28rem;
    display: grid;
    place-items: center;
    position: absolute;
    top: -0.45rem;
    right: -0.35rem;
    border-radius: 999px;
    background: #ff5165;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    border: 2px solid #ffffff;
}

.ss-profile-menu-wrap {
    position: relative;
}

.ss-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ss-profile-photo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background: #eef3ff;
    color: #101936;
    font-weight: 900;
    overflow: hidden;
    border: 1px solid #dfe7f5;
}