/**
 * ============================================================
 * shared/components/Header/Header.css — СТИЛИ ХЕДЕРА
 * ============================================================
 */

/* ============================================================
   1. КОНТЕЙНЕР
   ============================================================
   Три группы:
     .header-brand  — логотип, flex: 0 0 auto
     .chips         — чипы, flex: 1 1 auto, justify-content: center
     .right-nav     — правая группа, flex: 0 0 auto
   Благодаря flex: 1 1 auto у .chips, чипы занимают всё
   свободное место и центрируют своё содержимое.
   Логотип и правая группа держат свой размер.
   ============================================================ */

.app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    height: var(--header-height, 64px);
    padding: 0 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* ============================================================
   2. ЛОГОТИП
   ============================================================ */

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
    white-space: nowrap;
    padding-right: 24px;
}

.header-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1;
    flex-shrink: 0;
    transform-origin: center;
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-brand:hover .header-logo-mark {
    transform: rotate(-8deg) scale(1.06);
}

.header-brand:active .header-logo-mark {
    transform: rotate(-12deg) scale(0.98);
}

.header-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    line-height: 1;
}

/* ============================================================
   3. ЧИПЫ — ЦЕНТР ХЕДЕРА
   ============================================================ */

.chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                filter var(--transition-fast);
}

.chip:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
}

.chip:active {
    transform: translateY(0) scale(0.98);
}

.chip.active {
    box-shadow:
        inset 0 0 0 1.5px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 6px -2px rgba(15, 23, 42, 0.15);
}

.chip--peach  { background: var(--peach);  color: var(--peach-text); }
.chip--indigo { background: var(--indigo); color: var(--indigo-text); }
.chip--mint   { background: var(--mint);   color: var(--mint-text); }
.chip--sky    { background: var(--sky);    color: var(--sky-text); }

:root[data-theme="dark"] .chip {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 1px 2px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .chip.active {
    box-shadow:
        inset 0 0 0 1.5px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px -2px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   ЧИПЫ В ТЁМНОЙ ТЕМЕ — ИНВЕРСИЯ ЦВЕТОВ
   Фон = яркий цвет текста, текст = тёмный цвет фона
   ============================================================ */

:root[data-theme="dark"] .chip--peach  { background: var(--peach-text);  color: var(--peach);  }
:root[data-theme="dark"] .chip--indigo { background: var(--indigo-text); color: var(--indigo); }
:root[data-theme="dark"] .chip--mint   { background: var(--mint-text);   color: var(--mint);   }
:root[data-theme="dark"] .chip--sky    { background: var(--sky-text);    color: var(--sky);    }

/* ============================================================
   4. ПРАВАЯ ЧАСТЬ
   ============================================================ */

.right-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   5. КНОПКИ
   ============================================================ */

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.header-pill:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.header-pill:active {
    transform: scale(0.99);
}

:root[data-theme="dark"] .header-pill {
    background: #232429;
    border-color: #34363c;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .header-pill:hover {
    background: #2a2b31;
}

.header-pill--icon {
    width: 38px;
    padding: 0;
    justify-content: center;
}

.header-pill--user {
    border-radius: 999px;
    padding: 3px 14px 3px 3px;
    gap: 8px;
    height: 38px;
}

/* ============================================================
   6. ШЕВРОН И СЧЁТЧИК
   ============================================================ */

.header-pill__chevron {
    display: inline-flex;
    width: 13px;
    height: 13px;
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.header-pill__chevron svg {
    width: 100%;
    height: 100%;
    display: block;
}

.header-pill[aria-expanded="true"] .header-pill__chevron {
    transform: rotate(180deg);
}

.header-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease;
}

:root[data-theme="dark"] .header-pill__count {
    background: #2a2b31;
    border-color: #45474e;
    color: #f4f5f7;
}

#header-notifications-btn.is-open .header-pill__count {
    background: #17181c;
    border-color: #17181c;
    color: #ffffff;
}

:root[data-theme="dark"] #header-notifications-btn.is-open .header-pill__count {
    background: #f4f5f7;
    border-color: #f4f5f7;
    color: #17181c;
}

/* ============================================================
   7. АВАТАР
   ============================================================ */

.header-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.header-avatar--lg {
    width: 44px;
    height: 44px;
}

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

.header-avatar-initials {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
}

.header-user-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ============================================================
   8. DROPDOWN
   ============================================================ */

.header-info,
.header-user {
    position: relative;
    flex-shrink: 0;
}

.header-dropdown {
    position: fixed;
    top: calc(var(--header-height, 64px) + 12px);
    right: 24px;
    z-index: calc(var(--z-modal) + 1);
    background: var(--surface-strong);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: 0 16px 40px var(--shadow-color);
    padding: 8px;
}

/* --- 8.1. Информация --- */

.info-menu {
    min-width: 260px;
}

.info-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0;
}

.info-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.info-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.info-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.info-menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.info-menu-item:hover .info-menu-icon {
    color: var(--text-primary);
}

.info-menu-text {
    flex: 1 1 auto;
    line-height: 1.3;
}

.info-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 12px;
}

/* --- 8.2. Профиль --- */

.profile-menu {
    min-width: 280px;
    padding: 8px;
}

.profile-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

.profile-menu-head-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-menu-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-email {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.profile-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.profile-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.profile-menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.profile-menu-item:hover .profile-menu-icon {
    color: var(--text-primary);
}

.profile-menu-text {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-menu-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e0e3fb;
    color: #5a63cc;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    white-space: nowrap;
}

:root[data-theme="dark"] .profile-menu-badge {
    background: #333333;
    color: #f5e050;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 12px;
}

.profile-menu-logout,
.profile-menu-logout .profile-menu-icon {
    color: #dc2626;
}

.profile-menu-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.profile-menu-logout:hover .profile-menu-icon {
    color: #b91c1c;
}

:root[data-theme="dark"] .profile-menu-logout,
:root[data-theme="dark"] .profile-menu-logout .profile-menu-icon {
    color: #f08a80;
}

:root[data-theme="dark"] .profile-menu-logout:hover {
    background: #3a2a28;
    color: #f4a79e;
}

.profile-menu-admin,
.profile-menu-admin .profile-menu-icon {
    color: #dc2626;
}

.profile-menu-admin:hover {
    background: #fef2f2;
}

/* --- 8.3. Toggle-switch --- */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: var(--border-strong);
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.toggle-switch.active {
    background: #17181c;
}

.toggle-switch.active::after {
    transform: translateX(16px);
}

:root[data-theme="dark"] .toggle-switch {
    background: #45474e;
}

:root[data-theme="dark"] .toggle-switch.active {
    background: #f4f5f7;
}

:root[data-theme="dark"] .toggle-switch.active::after {
    background: #17181c;
}


/* ============================================================
   BACKDROP ПОД DROPDOWN'Ы (общий)
   ============================================================ */

.profile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: var(--z-modal);
}

.profile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   9. ГОСТЬ
   ============================================================ */

.header-auth-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.header-auth-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--accent-ink);
    border-radius: 10px;
    background: var(--accent-ink);
    color: var(--text-on-accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-auth-btn:hover {
    background: var(--accent-ink-hover);
    border-color: var(--accent-ink-hover);
}

/* ============================================================
   10. MASK-ИКОНКА
   ============================================================ */

.nav-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ============================================================
   11. ПАНЕЛЬ УВЕДОМЛЕНИЙ
   ============================================================ */

.notif-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg);
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: var(--z-modal);
}

.notif-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.notif-panel {
    position: absolute;
    top: calc(var(--header-height, 64px) + 12px);
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - var(--header-height, 64px) - 24px);
    background: var(--surface-strong);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.notif-backdrop.open .notif-panel {
    transform: translateY(0);
    opacity: 1;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.notif-heading {
    font-size: 1.07rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.notif-version {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* Кнопка «Отметить все прочитанными» */
.notif-mark-all {
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
    border: none;
    border-radius: 12px;
    background: #17181c;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.18s ease,
                color 0.18s ease,
                opacity 0.15s ease,
                transform 0.15s ease;
}

.notif-mark-all:hover {
    opacity: 0.92;
}

.notif-mark-all:active {
    transform: scale(0.99);
}

.notif-mark-all:disabled,
.notif-mark-all.done {
    background: var(--bg-muted);
    color: var(--text-tertiary);
    cursor: default;
    opacity: 1;
    transform: none;
}

:root[data-theme="dark"] .notif-mark-all {
    background: #f4f5f7;
    color: #17181c;
}

:root[data-theme="dark"] .notif-mark-all:disabled,
:root[data-theme="dark"] .notif-mark-all.done {
    background: #2a2b31;
    color: #71747c;
}

.notif-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -8px;
    padding: 0 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.notif-scroll::-webkit-scrollbar {
    width: 6px;
}

.notif-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.date-divider {
    padding: 12px 4px 6px;
}

.date-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: var(--bg-hover);
}

/* Квадратная иконка со скруглением */
.notif-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow: hidden;
}

.notif-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notif-icon--peach  { background: var(--peach);  color: var(--peach-text); }
.notif-icon--indigo { background: var(--indigo); color: var(--indigo-text); }
.notif-icon--mint   { background: var(--mint);   color: var(--mint-text); }
.notif-icon--sky    { background: var(--sky);    color: var(--sky-text); }
.notif-icon--pink   { background: var(--pink);   color: var(--pink-text); }

/* Брендовая иконка "2b" — тёмная плашка с квадратным скруглением,
   как .header-logo-mark в хедере. Растягивается по родителю .notif-icon. */
.notif-icon--brand {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1;
}

.notif-content {
    flex: 1 1 auto;
    min-width: 0;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 2px;
    word-break: break-word;
}

.notif-preview {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-meta {
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.unread-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 16px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.notif-item.unread .unread-dot {
    opacity: 1;
}

.notif-scroll .empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-tertiary);
}

.notif-scroll .empty-state.visible {
    display: flex;
}

.notif-scroll .empty-icon {
    width: 32px;
    height: 32px;
    opacity: 0.4;
}

.notif-scroll .empty-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.notif-scroll .empty-state p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ============================================================
   12. АДАПТИВ
   ============================================================ */

@media (max-width: 1280px) {
    .app-header { padding: 0 16px; }
    .header-brand { padding-right: 12px; }
    .chips { padding: 0 12px; }
    .chip { padding: 0 12px; font-size: 0.85rem; }
    .header-pill { font-size: 0.86rem; padding: 0 12px; }
    .header-user-login { max-width: 120px; }
}

@media (max-width: 1100px) {
    .header-pill__text { display: none; }
    .header-pill { padding: 0 12px; }
    .header-pill--user .header-user-login { display: none; }
    .header-pill--user { padding: 3px; }
    .header-pill--info .header-pill__chevron { display: none; }
}

@media (max-width: 1024px) {
    .app-header { padding: 0 12px; }
    .chips {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .chips::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
    .app-header {
        height: var(--mobile-header-height, 60px);
        padding: 0 10px;
    }
    .header-brand { padding-right: 6px; }
    .header-logo-mark { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 8px; }
    .header-logo-text { font-size: 1rem; }
    .chip { height: 32px; padding: 0 10px; font-size: 0.78rem; border-radius: 9px; }
    .header-pill { height: 34px; font-size: 0.82rem; padding: 0 10px; }
    .header-pill--icon { width: 34px; }
    .header-pill--user { padding: 3px; }
    .header-avatar { width: 26px; height: 26px; }
    .header-auth-link,
    .header-auth-btn { height: 34px; padding: 0 10px; font-size: 0.78rem; }

    .notif-panel {
        right: 8px;
        left: 8px;
        width: auto;
        padding: 14px;
    }
    .notif-mark-all { height: 38px; font-size: 0.84rem; }
}