:root {
  --site-header-height: 68px;
}

html {
  scrollbar-gutter: stable;
}

.site-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 220;
  padding: 9px 12px;
  color: #071314;
  background: #ffffff;
  border: 2px solid #0a817f;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform 140ms ease;
}

.site-skip-link:focus-visible {
  outline: 3px solid rgba(119, 216, 195, 0.72);
  outline-offset: 2px;
  transform: translateY(0);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef8f5;
  --ink-soft: #c0d1cd;
  --muted: #9bb0ac;
  --paper: #172223;
  --surface: #0f1718;
  --surface-strong: #243233;
  --line: #344847;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  min-height: var(--site-header-height);
  padding: 12px clamp(18px, 4vw, 56px);
  color: #f9fffd;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
  background: rgba(7, 17, 18, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition: background 180ms ease;
}

.site-header.is-scrolled,
.site-header[data-site-variant="solid"] {
  background: rgba(7, 17, 18, 0.94);
  box-shadow: none;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-width: max-content;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
}

.site-header .brand-logo-frame {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #071112;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.site-header .brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header .brand-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.site-header .brand-name {
  font-size: 18px;
  line-height: 1;
}

.site-header .brand-local {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.8vw, 28px);
  min-width: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

/* Keep shared navigation slots stable when page defaults use different Chinese variants. */
.site-nav > a[data-site-nav-key] {
  display: inline-flex;
  flex: 0 0 70px;
  justify-content: center;
}

.site-nav > a[data-site-nav-key="console"] {
  flex-basis: 70px;
}

.site-nav > a[data-site-nav-key="aboutVecto"] {
  flex-basis: 88px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-menu-toggle:focus-visible,
.site-mobile-menu-panel a:focus-visible {
  outline: 2px solid #77d8c3;
  outline-offset: 3px;
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: #77d8c3;
  border-radius: 2px;
  content: "";
}

.site-nav > a[data-site-nav-key]::after {
  right: 7px;
  left: 7px;
}

.site-nav > a[data-site-nav-key="console"]::after {
  right: 1px;
  left: 1px;
}

.site-nav a[aria-busy="true"] {
  opacity: 0.58;
  cursor: wait;
}

.site-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  color: #071314;
  background: #77d8c3;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.site-nav-badge[hidden] {
  display: none;
}

.site-header .header-actions,
.site-global-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-header[data-site-mode="public"][data-site-auth-state="pending"] .header-actions {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1241px) {
  .site-header[data-site-mode="public"] .header-actions {
    min-width: 274px;
    justify-content: flex-end;
  }

  /* Keep the console and public pages on the same grid anchor when a nav link navigates between them. */
  .site-header[data-site-page="console"] .header-actions {
    min-width: 274px;
    justify-content: flex-end;
  }
}

.site-global-controls {
  padding-right: 2px;
}

.site-icon-button,
.site-subscription-link,
.site-mobile-console,
.site-menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
}

.site-icon-button:hover,
.site-subscription-link:hover,
.site-mobile-console:hover,
.site-menu-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.site-icon-button svg,
.site-subscription-link svg,
.site-mobile-console svg,
.site-menu-toggle svg,
.site-user svg,
.site-account-popover svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-admin-entry[hidden] {
  display: none !important;
}

.site-header .mobile-nav-toggle {
  display: none;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.site-header .mobile-nav-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .site-header .mobile-nav-toggle {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
  }
}

@media (max-width: 820px) {
  .site-header .mobile-nav-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }
}

@media (max-width: 560px) {
  .site-header .mobile-nav-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

.site-theme-icon-moon,
:root[data-theme="dark"] .site-theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .site-theme-icon-moon {
  display: block;
}

.site-language-button {
  width: 46px;
  grid-template-columns: 18px auto;
  gap: 3px;
}

.site-subscription-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.site-subscription-link[aria-current="page"] {
  color: #77d8c3;
  background: rgba(119, 216, 195, 0.18);
  border-color: #77d8c3;
}

.site-language-state {
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.site-mobile-console {
  display: none;
}

.site-mobile-menu {
  display: none;
}

.site-menu-toggle {
  grid-template-columns: 18px auto;
  gap: 5px;
  width: auto;
  min-width: 40px;
  padding: 0 9px;
  list-style: none;
  user-select: none;
}

.site-menu-toggle::-webkit-details-marker {
  display: none;
}

.site-menu-toggle span {
  font-size: 12px;
  font-weight: 800;
}

.site-mobile-menu-panel {
  position: fixed;
  top: calc(var(--site-header-height) + 8px);
  right: 10px;
  left: 10px;
  z-index: 150;
  display: grid;
  max-height: calc(100dvh - var(--site-header-height) - 18px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #eff8f5;
  background: rgba(7, 17, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.site-mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: inherit;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-mobile-menu-panel a:hover,
.site-mobile-menu-panel a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-mobile-menu-extra {
  margin-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .header-login,
.site-header .header-action,
.site-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.site-header .header-login {
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.site-header .header-login:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header .header-action {
  padding: 0 15px;
  color: #041210;
  background: #e8fff4;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.site-header .header-action:hover {
  background: #ffffff;
}

.site-user {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  max-width: 40px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(119, 216, 195, 0.1);
  border: 1px solid rgba(119, 216, 195, 0.36);
  border-radius: 50%;
  cursor: pointer;
}

.site-user .site-user-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.site-user-avatar svg,
.site-account-avatar svg {
  width: 20px;
  height: 20px;
}

.site-user-avatar img,
.site-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.site-user [data-site-account-name],
.site-user .site-user-chevron {
  display: none;
}

.site-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.site-user:hover,
.site-account-menu.is-open .site-user {
  color: #ffffff;
  background: rgba(119, 216, 195, 0.2);
  border-color: #77d8c3;
  box-shadow: 0 0 0 4px rgba(119, 216, 195, 0.12);
}

.site-user .site-user-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.site-account-menu.is-open .site-user-chevron {
  transform: rotate(180deg);
}

.site-account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 155;
  display: grid;
  width: min(328px, calc(100vw - 20px));
  height: auto;
  max-height: calc(100dvh - var(--site-header-height) - 16px);
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #1d2a2a;
  background: #ffffff;
  border: 1px solid #d4dfdd;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(21, 45, 42, 0.18);
}

.site-account-popover::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}

.site-account-popover[hidden] {
  display: none;
}

.site-account-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e8e6;
}

.site-account-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #087f72;
  background: #eff9f6;
  border: 1px solid #c9e9df;
  border-radius: 50%;
}

.site-account-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.site-account-identity strong,
.site-account-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account-identity strong {
  color: #142122;
  font-size: 14px;
}

.site-account-identity span {
  color: #687877;
  font-size: 12px;
}

.site-account-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #14745e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.site-account-status i {
  width: 7px;
  height: 7px;
  background: #5bd4ad;
  border-radius: 50%;
}

.site-account-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  color: #687877;
  font-size: 12px;
}

.site-account-detail strong {
  color: #142122;
  font-size: 12px;
}

.site-account-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 0;
  border-top: 1px solid #e1e8e6;
}

.site-account-profile-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 68px;
  padding: 8px;
  background: #f6faf9;
  border: 1px solid #dfe8e6;
  border-radius: 6px;
}

.site-account-profile-label {
  color: #687877;
  font-size: 10px;
  font-weight: 750;
}

.site-account-profile-field p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #314140;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-account-profile-field .is-placeholder,
.site-account-placeholder {
  color: #8a9897;
  font-weight: 500;
}

.site-account-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-account-tags[hidden] {
  display: none;
}

.site-account-tags span {
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  color: #087f72;
  background: #eff9f6;
  border: 1px solid #c9e9df;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account-billing {
  display: grid;
  gap: 7px;
  padding: 9px 0 2px;
  border-top: 1px solid #e1e8e6;
}

.site-account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-account-billing-state {
  color: #687877;
  font-size: 10px;
}

.site-account-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.site-account-billing-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  background: #f6faf9;
  border: 1px solid #dfe8e6;
  border-radius: 6px;
}

.site-account-billing-card span {
  overflow: hidden;
  color: #687877;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account-billing-card strong {
  overflow: hidden;
  color: #142122;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-account-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.site-account-action-row button {
  min-height: 34px;
  padding: 0 8px;
  color: #087f72;
  background: #f2fbf8;
  border: 1px solid #c9e9df;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.site-account-action-row button:hover,
.site-account-action-row button:focus-visible {
  color: #071314;
  background: #77d8c3;
  border-color: #77d8c3;
}

.site-account-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0 12px;
  border-top: 1px solid #e1e8e6;
}

.site-account-section-label {
  margin-right: auto;
  color: #687877;
  font-size: 11px;
  font-weight: 800;
}

.site-account-preference {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: #314140;
  background: #f3f7f6;
  border: 1px solid #dbe5e3;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-account-preference:hover {
  color: #087f72;
  background: #eaf7f3;
  border-color: #b7dfd5;
}

.site-account-preference-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #087f72;
}

.site-account-preference-icon svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

.site-account-preference .site-language-state {
  font-size: 8px;
}

.site-account-preference strong {
  color: #687877;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.site-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: #a63535;
  background: #fff7f7;
  border: 1px solid #efcccc;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-account-logout:hover {
  color: #8f2d2d;
  background: #fff0f0;
  border-color: #e4bcbc;
}

.site-account-logout:disabled {
  opacity: 0.58;
  cursor: wait;
}

.site-account-logout svg {
  width: 17px;
  height: 17px;
}

.site-account-message {
  min-height: 0;
  color: #a63535;
  font-size: 11px;
  line-height: 1.4;
}

.site-account-message:empty {
  display: none;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-header > .site-nav {
    display: none;
  }

  .site-header .header-actions {
    justify-self: end;
  }

  .site-mobile-menu {
    display: block;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 14px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand-name,
  .site-header .brand-local {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .header-actions {
    min-width: 0;
    justify-self: end;
  }

  .site-header .site-mobile-menu,
  .site-header .site-account-menu {
    flex: 0 0 auto;
  }

  .site-header .site-menu-toggle {
    grid-template-columns: 18px;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
  }

  .site-header .site-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-header .site-guest-action,
  .site-header .header-action {
    display: none;
  }

  .site-user {
    width: 40px;
    max-width: 40px;
    padding: 0;
  }

  .site-user [data-site-account-name],
  .site-user .site-user-chevron {
    display: none;
  }

  .site-account-popover {
    position: fixed;
    top: calc(var(--site-header-height) + 8px);
    bottom: auto;
    right: 14px;
    left: auto;
    height: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --site-header-height: calc(64px + env(safe-area-inset-top));
  }

  .site-header {
    padding: max(10px, env(safe-area-inset-top)) 10px 10px;
  }

  .site-header .brand-local {
    display: none;
  }

  .site-header .brand-name {
    font-size: 16px;
  }

  .site-header .brand-logo-frame,
  .site-icon-button,
  .site-subscription-link,
  .site-mobile-console,
  .site-user {
    width: 38px;
    height: 38px;
  }

  .site-menu-toggle {
    min-width: 38px;
    height: 38px;
    padding-inline: 8px;
  }

  .site-language-button {
    width: 43px;
  }

  .site-header .header-login,
  .site-header .header-action {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .site-header .header-actions,
  .site-global-controls {
    gap: 5px;
  }

  .site-account-popover {
    right: 10px;
  }
}

@media (max-width: 390px) {
  .site-header .brand-text {
    display: none;
  }

  .site-header .header-login {
    padding-inline: 8px;
  }

  .site-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav a,
  .site-skip-link {
    transition: none;
  }
}

@media (max-width: 820px) {
  .site-header :is(
    button,
    .brand,
    .site-icon-button,
    .site-subscription-link,
    .site-menu-toggle,
    .site-mobile-console,
    .site-user,
    .site-language-button,
    .header-login,
    .header-action
  ),
  .site-mobile-menu :is(a, button),
  .site-skip-link {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(35, 134, 111, 0.16);
  }

  .site-header :is(
    .site-icon-button,
    .site-subscription-link,
    .site-menu-toggle,
    .site-mobile-console,
    .site-user,
    .site-language-button
  ) {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  /* Mobile icon controls are square buttons; keep their SVGs on the true center axis. */
  .site-header :is(.site-menu-toggle, .site-language-button) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-inline: 0;
  }

  .site-header .site-global-controls .site-language-state {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-header :is(.header-actions, .site-global-controls) {
    gap: 8px;
  }

  .site-account-action-row button,
  .site-account-preference,
  .site-account-logout {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline-start: max(10px, env(safe-area-inset-left));
    padding-inline-end: max(10px, env(safe-area-inset-right));
  }

  .site-mobile-menu-panel {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
  }

  .site-account-popover {
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
  }
}

/* Keep the shared mobile navigation compact; the console owns the dense workspace below it. */
@media (max-width: 820px) {
  .site-header :is(
    button,
    .brand,
    .site-icon-button,
    .site-subscription-link,
    .site-menu-toggle,
    .site-mobile-console,
    .site-user,
    .site-language-button,
    .header-login,
    .header-action
  ) {
    min-height: 36px;
  }

  .site-header :is(
    .site-icon-button,
    .site-subscription-link,
    .site-menu-toggle,
    .site-mobile-console,
    .site-user,
    .site-language-button
  ) {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .site-header .site-menu-toggle {
    min-width: 36px;
  }

  .site-header :is(.header-actions, .site-global-controls) {
    gap: 5px;
  }
}

@media (max-width: 560px) {
  :root {
    --site-header-height: calc(56px + env(safe-area-inset-top));
  }

  .site-header {
    min-height: var(--site-header-height);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .site-header .brand-logo-frame,
  .site-icon-button,
  .site-subscription-link,
  .site-mobile-console,
  .site-user,
  .site-menu-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .site-header .site-menu-toggle {
    min-width: 34px;
  }
}
