/* №150: the existing Smmuzi palette and Manrope, arranged into three supported rows. */
.header.header-layout { position: relative; z-index: 120; margin: 8px auto 24px; padding: 0; background: transparent; }
.header-layout > .main-container { position: relative; background: transparent; }
.header-layout__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 4px 6px; }
.header-layout__links ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.header-layout__links a, .header-layout__auth a { color: var(--site-text, #444); font-size: 13px; white-space: nowrap; text-decoration: none; }
.header-layout__links a:hover, .header-layout__auth a:hover { color: var(--site-mark, #fd5a3c); }
.header-layout__settings { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--site-text, #444); font-size: 13px; }
.header-layout__settings .theme-switch { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; width: auto; height: 30px; padding: 5px; border: 0; background: transparent; border-radius: 8px; white-space: nowrap; font-size: 12px; }
.header-layout__settings .theme-switch svg { flex: 0 0 18px; }
.header-layout__settings .header-preferences--desktop { gap: 10px; flex-direction: row; }
.header-layout__settings .header-preferences__toggle { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; }
.header-layout__settings .header-user-label { max-width: 150px; min-height: 0; padding: 0; font-size: 13px; }
.header-layout__balance { white-space: nowrap; color: var(--site-title, #222); font-weight: 600; }
.header-layout__balance-label { color: var(--site-text-dim, #666); font-weight: 400; }
.header-layout__auth { display: flex; gap: 14px; }
.header-layout__main { display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 14px 18px; background: var(--site-card, #fff); border-radius: 15px; }
.header-layout__logo { display: flex; flex: 0 0 150px; max-width: 150px; color: var(--site-title, #222); }
.header-layout__logo img { width: 100%; height: 52px; object-fit: contain; }
.header-layout .header-discovery { flex: 1; min-width: 0; padding: 0; }
.header-layout .header-catalog-toggle, .header-layout .header-search__field { height: 48px; min-height: 48px; border-radius: 10px; }
.header-layout .header-catalog-toggle { padding: 0 16px; font-size: 15px; font-weight: 600; }
.header-layout .header-search__field { background: var(--site-surface, #f7f5f6); }
.header-layout .header-search input { height: 46px; font-size: 14px; }
.header-layout__actions { display: flex; align-items: center; flex: 0 0 auto; gap: 16px; }
.header-layout__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--site-text, #444); font-size: 11px; text-decoration: none; white-space: nowrap; }
.header-layout__action-icon { width: 25px; height: 25px; fill: currentColor; }
.header-layout__action:hover { color: var(--site-mark, #fd5a3c); }
.header-layout__badge { display: inline-flex; justify-content: center; align-items: center; min-width: 17px; height: 17px; padding: 0 4px; background: var(--site-mark, #fd5a3c); color: #fff; border-radius: 20px; font-size: 10px; line-height: 1; }
.header-layout__badge[hidden] { display: none; }
.header-layout__action > .header-layout__badge { position: absolute; top: -5px; right: 8px; }
.header-layout__mobile-tools { display: flex; align-items: center; gap: 12px; }
.header-layout__mobile-tools .header-mobile-menu-toggle { display: none; }
.header-layout__mobile-tools .client-notification-bell { margin: 0; }
.header-layout .header-catalog-directions { padding: 10px 4px 0; gap: 4px; overflow: visible; justify-content: space-between; background: transparent; }
.header-layout .header-catalog-directions > button { border-radius: 10px; }
.header-layout .header-catalog-directions > button:hover { color: var(--site-mark, #fd5a3c); }
.header-layout .header-catalog-directions .header-direction-icon { color: var(--site-mark, #fd5a3c); }
.header-layout:has(.header-search__dropdown:not([hidden])) .header-catalog-directions { z-index: 1; }
.header-layout .header-catalog-toggle__open svg { display: block; }
.header-layout .header-catalog-directions > button { display: flex; align-items: center; gap: 7px; padding: 10px 8px; font-size: 12px; white-space: nowrap; }
.header-layout a:focus-visible, .header-layout button:focus-visible { outline: 2px solid var(--site-accent, #ffbe40); outline-offset: 3px; }
@media (min-width: 1024px) and (max-width: 1240px) {
 .header-layout__top { gap: 10px; padding: 0 8px; }
 .header-layout__links ul { gap: 12px; }
 .header-layout__settings { gap: 8px; font-size: 12px; }
 .header-layout__settings .header-user-label { max-width: 90px; font-size: 12px; }
 .header-layout__balance-label { display: none; }
 .header-layout__logo { flex-basis: 120px; max-width: 120px; }
 .header-layout__main { gap: 12px; padding: 14px 8px; }
 .header-layout__actions { gap: 10px; }
 .header-layout .header-catalog-directions > button { font-size: 11px; gap: 4px; padding: 10px 4px; white-space: normal; text-align: left; }
}
@media (max-width: 1023px) {
 .header.header-layout { margin: 12px 0 0; }
 .header-layout > .main-container { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 12px; align-items: center; background: transparent; border-radius: 0; }
 .header-layout__top, .header-layout__settings, .header-layout__main { display: contents; }
 .header-layout__links, .header-layout__auth, .header-layout__actions, .header-layout .header-user-label { display: none; }
 .header-layout__settings .theme-switch { position: static; grid-column: 3; grid-row: 1; width: 30px; height: 30px; }
 .header-layout__settings .theme-switch span { display: none; }
 .header-layout__settings .theme-switch .header-spec-theme-light, .header-layout__settings .theme-switch .header-spec-theme-dark { display: none !important; }
 .header-layout__balance { position: static; grid-column: 2; grid-row: 1; font-size: 12px; }
 .header-layout__balance-label { display: none; }
 .header-layout__logo { grid-column: 1; grid-row: 1; width: 120px; max-width: 120px; }
 .header-layout__logo img { height: 42px; }
 .header-layout .header-discovery { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 0 0 12px; }
 .header-layout__mobile-tools { grid-column: 4; grid-row: 1; gap: 12px; }
 .header-layout__mobile-tools .header-mobile-menu-toggle { display: flex; width: 30px; height: 30px; }
 .header-layout .header-catalog-toggle, .header-layout .header-search__field { height: 44px; min-height: 44px; }
 .header-layout .header-search input { height: 42px; }
 .header-layout .header-catalog-toggle { padding: 0 12px; font-size: 14px; }
 .header-layout .header-catalog-directions { display: none; }
}
@media (max-width: 400px) {
 .header-layout > .main-container { gap: 10px; }
 .header-layout__logo { width: 100px; max-width: 100px; }
 .header-layout__balance { font-size: 11px; }
 .header-layout__mobile-tools { gap: 10px; }
}
.header-layout__action.active, .header-layout__links a.active { color: var(--site-mark, #fd5a3c); }
.header-spec-theme-light { display: none; }
:root[data-theme="dark"] .header-spec-theme-dark { display: none; }
:root[data-theme="dark"] .header-spec-theme-light { display: inline; }
