/* Shell layout styles */

.bulletin-banner {
  background: var(--hub-primary);
  color: var(--hub-brand-ink);
  text-align: center;
  padding: 1px 12px;
  font-size: 0.8rem;
  position: relative;
  z-index: 30;
}
.bulletin-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 400;
}
.bulletin-banner a:hover {
  text-decoration: underline;
  color: inherit;
  opacity: 0.92;
}

.alert-banner {
  text-align: center;
  padding: 0.45rem 12px;
  font-size: 0.9rem;
  position: relative;
  z-index: 40;
  font-weight: 600;
}
.alert-banner a {
  color: inherit;
  text-decoration: underline;
}
.alert-banner--emergency {
  background: #8b0000;
  color: #fff;
  animation: hub-alert-pulse 1.2s ease-in-out infinite alternate;
}
.alert-banner--warning {
  background: #b45309;
  color: #fff7ed;
}
.alert-banner--info {
  background: #1e3a5f;
  color: #e8f1ff;
}
@keyframes hub-alert-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--hub-space-xs) calc(0.65rem * var(--hub-density));
  align-items: center;
  padding: 0.05rem calc(0.85rem * var(--hub-density));
  border-bottom: 1px solid var(--hub-border);
  background: var(--hub-nav-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1020;
}

.site-header__spacer {
  min-width: 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--hub-space-xs) calc(0.65rem * var(--hub-density));
  min-width: 0;
}

/* Shared header control chrome (Feedback / Site / Profile / Modules). */
.hub-chrome-btn,
.feedback-launch,
.site-switcher__toggle,
.profile-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem 0 0.35rem;
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  background: var(--hub-surface);
  color: var(--hub-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.hub-chrome-btn:hover,
.feedback-launch:hover,
.site-switcher__toggle:hover,
.profile-menu__toggle:hover,
.site-switcher__toggle[aria-expanded="true"],
.profile-menu__toggle[aria-expanded="true"],
.hub-chrome-btn[aria-expanded="true"] {
  border-color: var(--hub-primary, var(--hub-border));
  background: var(--hub-hover, var(--hub-surface));
}

.hub-public-nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--hub-border, rgba(255, 255, 255, 0.25));
  border-radius: 6px;
  background: transparent;
  color: var(--hub-nav-link, var(--hub-text));
  cursor: pointer;
  flex: 0 0 auto;
}
.hub-public-nav-burger__bars,
.hub-public-nav-burger__bars::before,
.hub-public-nav-burger__bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hub-public-nav-burger__bars::before,
.hub-public-nav-burger__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.hub-public-nav-burger__bars::before { top: -5px; }
.hub-public-nav-burger__bars::after { top: 5px; }
.hub-public-nav-burger[aria-expanded="true"] .hub-public-nav-burger__bars {
  background: transparent;
}
.hub-public-nav-burger[aria-expanded="true"] .hub-public-nav-burger__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.hub-public-nav-burger[aria-expanded="true"] .hub-public-nav-burger__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hub-public-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}
.hub-public-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 0.55rem;
}
.hub-public-nav__item {
  position: relative;
}
.hub-public-nav__toggle {
  border: 0;
  background: transparent;
  color: var(--hub-nav-link, var(--hub-text));
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.25rem 0.45rem;
  min-height: 0;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.15;
}
.hub-public-nav__toggle:hover,
.hub-public-nav__item.is-open .hub-public-nav__toggle {
  background: var(--hub-hover, rgba(0, 0, 0, 0.06));
}
.hub-public-nav__menu {
  list-style: none;
  margin: 4px 0 0;
  padding: calc(6px * var(--hub-density)) 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--hub-dropdown-bg, var(--hub-surface, #fff));
  border: 1px solid var(--hub-border, #dee2e6);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 1040;
}
.hub-public-nav__menu a {
  display: block;
  padding: calc(8px * var(--hub-density)) calc(12px * var(--hub-density));
  font-size: 0.95rem;
  color: var(--hub-text, #212529);
  text-decoration: none;
}
.hub-public-nav__menu a:hover {
  background: var(--hub-hover, #f0f0f0);
  color: inherit;
}
.hub-public-nav__group {
  display: block;
  font-size: 0.75rem;
  color: var(--hub-muted, #6c757d);
  border-top: 1px solid var(--hub-border-subtle, #eee);
  margin-top: 4px;
  padding: calc(6px * var(--hub-density)) calc(12px * var(--hub-density)) calc(2px * var(--hub-density));
  font-weight: 400;
}
.hub-public-nav__search-wrap {
  position: relative;
  margin-left: 0.35rem;
}
.hub-public-nav__search {
  width: 150px;
  padding: var(--hub-pad-chrome-y) var(--hub-pad-chrome-x);
  min-height: var(--hub-control-xs);
  font-size: 0.82rem;
  line-height: 1.25;
  border-radius: 6px;
  border: 1px solid var(--hub-border, #dee2e6);
  background: var(--hub-input-bg, var(--hub-surface, #fff));
  color: var(--hub-text, #212529);
}
.hub-public-nav__results {
  list-style: none;
  margin: 4px 0 0;
  padding: 8px;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--hub-dropdown-bg, var(--hub-surface, #fff));
  border: 1px solid var(--hub-border, #dee2e6);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1041;
}
.hub-public-nav__results[hidden] {
  display: none !important;
}
.hub-public-nav__menu[hidden] {
  display: none !important;
}
.hub-public-nav__results a {
  display: block;
  padding: 10px 12px;
  color: var(--hub-nav-link, var(--hub-text));
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 4px;
}
.hub-public-nav__results a:hover {
  background: var(--hub-hover, #f0f0f0);
  color: inherit;
}
/* Collapse public link menus before they wrap under search. */
@media (max-width: 1100px) {
  .site-header:has(.hub-public-nav-burger) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
  .hub-public-nav-burger {
    display: inline-flex;
    justify-self: end;
  }
  .hub-public-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.85rem 0.75rem;
    background: var(--hub-nav-bg, var(--hub-surface, #fff));
    border-bottom: 1px solid var(--hub-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    z-index: 1035;
  }
  .hub-public-nav.is-open {
    display: flex;
  }
  .hub-public-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
  }
  .hub-public-nav__item {
    width: 100%;
  }
  .hub-public-nav__toggle {
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    padding: 0.55rem 0.5rem;
  }
  .hub-public-nav__menu {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: none;
    margin: 0 0 0.35rem;
    border-radius: 6px;
    box-shadow: none;
  }
  .hub-public-nav__search-wrap {
    margin: 0.35rem 0 0;
    width: 100%;
  }
  .hub-public-nav__search {
    width: 100%;
  }
  .hub-public-nav__results {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.35rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 1.45rem;
  width: auto;
  object-fit: contain;
}
.brand-mark {
  font-family: var(--hub-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--hub-primary);
}

.site-nav-secondary {
  --site-nav-gap: 1rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem var(--site-nav-gap);
  justify-content: flex-start;
  align-items: center;
  padding: 0.35rem 1.25rem;
  border-bottom: 1px solid var(--hub-border);
  background: color-mix(in srgb, var(--hub-surface-muted) 96%, transparent);
  position: relative;
  z-index: 1015;
  overflow: visible;
}
.site-nav-secondary__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem var(--site-nav-gap);
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.site-nav-secondary__link {
  color: var(--hub-muted);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.2rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-nav-secondary__link.is-active,
.site-nav-secondary__link:hover {
  color: var(--hub-text);
  border-bottom-color: var(--hub-primary);
}
.site-nav-secondary__more {
  position: relative;
  flex: 0 0 auto;
}
.site-nav-secondary__more[hidden] {
  display: none;
}
.site-nav-secondary__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--hub-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.2rem 0.15rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.15;
}
.site-nav-secondary__more-toggle:hover,
.site-nav-secondary__more-toggle[aria-expanded="true"] {
  color: var(--hub-text);
  border-bottom-color: var(--hub-primary);
}
.site-nav-secondary__more-chevron {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0.1rem 0.15rem 0;
  opacity: 0.7;
}
.site-nav-secondary__more-menu {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
  padding: 0.35rem;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  box-shadow: var(--hub-shadow);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.site-nav-secondary__more-menu[hidden] {
  display: none;
}
.site-nav-secondary__more-menu .site-nav-secondary__link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border-bottom: 0;
  color: var(--hub-text);
  font-size: 0.88rem;
}
.site-nav-secondary__more-menu .site-nav-secondary__link:hover,
.site-nav-secondary__more-menu .site-nav-secondary__link.is-active {
  background: var(--hub-hover);
  border-bottom-color: transparent;
}

@media (max-width: 1200px) {
  .site-nav-secondary {
    --site-nav-gap: 0.75rem;
    padding: 0.3rem 0.85rem;
  }
}

.site-user {
  display: flex;
  gap: calc(0.45rem * var(--hub-density));
  align-items: center;
  font-size: 0.9rem;
  justify-self: end;
}
.site-label { color: var(--hub-muted); }

.site-switcher {
  position: relative;
}
.site-switcher__toggle {
  max-width: 14rem;
  justify-content: flex-start;
}
.site-switcher__toggle--static {
  cursor: default;
}
.site-switcher__badge {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #0b1f3a;
}
.site-switcher__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--hub-primary);
  color: var(--hub-brand-ink, #fff);
  font-size: 0.65rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.site-switcher__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.site-switcher__chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0.15rem 0.15rem 0;
  opacity: 0.65;
  flex: 0 0 auto;
}
.site-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 14rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
  padding: 0.35rem;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  box-shadow: var(--hub-shadow);
  z-index: 1100;
}
.site-switcher__item-form {
  margin: 0;
}
.site-switcher__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hub-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-switcher__item:hover:not(:disabled) {
  background: var(--hub-hover);
}
.site-switcher__item.is-active,
.site-switcher__item:disabled {
  background: color-mix(in srgb, var(--hub-primary) 12%, transparent);
  cursor: default;
  opacity: 1;
}
.site-switcher__item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.site-switcher__item-name {
  font-weight: 600;
  font-size: 0.85rem;
}
.site-switcher__item-code {
  font-size: 0.72rem;
  color: var(--hub-muted);
}

.notify-badge {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  padding: calc(0.1rem * var(--hub-density)) calc(0.4rem * var(--hub-density));
  border-radius: 999px;
  background: var(--hub-accent);
  color: var(--hub-brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.notify-badge:hover {
  color: var(--hub-brand-ink);
  opacity: 0.92;
}

.prefs-fieldset {
  border: 1px solid var(--hub-border);
  margin: var(--hub-space-lg) 0 0;
  padding: var(--hub-space-md) var(--hub-space-lg) var(--hub-space-lg);
}
.prefs-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.prefs-mobile__actions {
  margin: var(--hub-space-xs) 0 var(--hub-space-sm);
}
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.profile-menu {
  position: relative;
}
.profile-menu__toggle {
  justify-content: flex-start;
  font-size: 0.85rem;
}
.profile-menu__avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-primary);
  color: var(--hub-brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}
.profile-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-profile-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--hub-surface-muted, #dee2e6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--hub-border, #adb5bd);
  text-decoration: none;
  color: var(--hub-muted, #495057);
  font-size: 0.9rem;
  line-height: 1;
}
.hub-profile-avatar:hover {
  background: var(--hub-hover, #ced4da);
  color: var(--hub-text);
}
.hub-profile-avatar svg {
  width: 14px;
  height: 14px;
}

/* Landing keeps a roomier primary header */
.shell--landing .site-header {
  padding: 0.45rem 1.4rem;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.shell--landing .site-header__spacer {
  gap: 0.75rem 1rem;
}
.shell--landing .brand-logo {
  height: 2.5rem;
}
.shell--landing .hub-public-nav__toggle {
  font-size: 0.95rem;
  padding: 0.4rem 0.65rem;
}
.shell--landing .hub-public-nav__search {
  width: 180px;
  padding: 6px 10px;
  font-size: 0.9rem;
}
.shell--landing .hub-profile-avatar {
  width: 2.1rem;
  height: 2.1rem;
}
.shell--landing .hub-profile-avatar svg {
  width: 18px;
  height: 18px;
}
.shell--landing .hub-chrome-btn,
.shell--landing .feedback-launch,
.shell--landing .site-switcher__toggle,
.shell--landing .profile-menu__toggle {
  min-height: 2.4rem;
  height: 2.4rem;
}
.shell--landing .profile-menu__avatar,
.shell--landing .site-switcher__badge,
.shell--landing .site-switcher__code {
  width: 1.7rem;
  height: 1.7rem;
}
.shell--landing .profile-menu__avatar {
  font-size: 0.85rem;
}
.prefs-avatar {
  display: flex;
  gap: calc(0.85rem * var(--hub-density));
  align-items: center;
}
.prefs-avatar__preview {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-primary);
  color: var(--hub-brand-ink);
  font-weight: 700;
  font-size: 1.4rem;
}
.prefs-avatar__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prefs-avatar .prefs-field {
  flex: 1 1 auto;
}
.prefs-avatar small.muted {
  color: var(--hub-muted);
  font-size: 0.78rem;
}
.profile-menu__name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  box-shadow: var(--hub-shadow);
  padding: calc(0.4rem * var(--hub-density));
  z-index: 40;
}
.profile-menu__meta {
  margin: 0;
  padding: calc(0.45rem * var(--hub-density)) calc(0.6rem * var(--hub-density));
  color: var(--hub-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--hub-border);
}
.profile-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--hub-text);
  text-decoration: none;
  font: inherit;
  min-height: var(--hub-control-min);
  padding: var(--hub-pad-cell-y) calc(0.65rem * var(--hub-density));
  border-radius: 8px;
  cursor: pointer;
}
.profile-menu__item:hover {
  background: var(--hub-hover);
  color: var(--hub-text);
}

.prefs-dialog {
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: 0;
  background: var(--hub-surface);
  color: var(--hub-text);
  width: min(520px, calc(100vw - 2rem));
  max-height: min(90vh, 720px);
  box-shadow: var(--hub-shadow);
}
.prefs-dialog::backdrop {
  background: rgba(20, 24, 22, 0.45);
}
.prefs-dialog__header,
.prefs-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hub-space-md);
  padding: calc(0.9rem * var(--hub-density)) var(--hub-space-lg);
  border-bottom: 1px solid var(--hub-border);
}
.prefs-dialog__footer {
  border-bottom: 0;
  border-top: 1px solid var(--hub-border);
  justify-content: flex-end;
}
.prefs-dialog__header h2 {
  margin: 0;
  font-size: 1.15rem;
}
.prefs-dialog__close {
  border: 0;
  background: transparent;
  color: var(--hub-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.prefs-dialog__body {
  padding: var(--hub-space-lg);
  display: grid;
  gap: calc(0.9rem * var(--hub-density));
  overflow-y: auto;
}
.prefs-field {
  display: grid;
  gap: var(--hub-space-xs);
  font-size: 0.92rem;
}
.prefs-field select,
.prefs-field textarea {
  width: 100%;
}

.site-main {
  width: calc(100% - 2rem);
  max-width: min(1680px, 100%);
  margin: 0.85rem auto;
  flex: 1 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

.shell--auth .site-main {
  width: min(480px, calc(100% - 2rem));
  max-width: min(480px, 100%);
}

.site-footer {
  width: 100%;
  margin: 0;
  margin-top: auto;
  padding: calc(0.45rem * var(--hub-density)) var(--hub-space-lg);
  border-top: 1px solid var(--hub-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(0.65rem * var(--hub-density)) calc(1.1rem * var(--hub-density));
  color: var(--hub-muted);
  font-size: 0.85rem;
  background: var(--hub-nav-bg, #fff);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.site-footer__mail {
  color: inherit;
  text-decoration: none;
}
.site-footer__mail:hover {
  color: var(--hub-primary);
  text-decoration: underline;
}
.site-footer__date,
.site-footer__meta {
  color: var(--hub-muted);
}

.shell--landing .site-footer {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.error-page {
  padding: 2rem 0;
}
.error-page .lead {
  margin-bottom: 1.25rem;
}

@media (max-width: 860px) {
  /* Keep one row: brand | spacer | user | burger (far right) */
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .site-header:has(.hub-public-nav-burger) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
  .site-header__spacer {
    justify-content: flex-start;
    min-width: 0;
  }
  .hub-search {
    min-width: 0;
  }
  .profile-menu__name,
  .site-switcher__label,
  .feedback-launch__label { display: none; }
  .site-switcher__chevron { display: none; }
  /* Matching icon-only chips (burger keeps its own square style). */
  .feedback-launch,
  .site-switcher__toggle,
  .profile-menu__toggle {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    justify-content: center;
    max-width: none;
  }
}
