/* Shared site header. Geometry lives here only, so page stylesheets cannot shift it. */
html:has(header.site-header) { scrollbar-gutter: stable; }
header.site-header, header.site-header * { box-sizing: border-box; }
header.site-header {
  --header-pad: max(24px, calc((100% - 1320px) / 2));
  box-sizing: border-box;
  height: 72px;
  min-height: 0;
  max-height: 72px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 26px;
  padding: 0 var(--header-pad);
  background: #0a0e1a;
  border-bottom: 1px solid #30364a;
  color: #f5efdd;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: normal;
  font-synthesis: none;
}
header.site-header .brand,
header.site-header .site-tagline { flex: none; }
header.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: #f5efdd;
  text-decoration: none;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.7px;
  line-height: 1.5;
}
header.site-header .brand-mark {
  display: block;
  width: 29px;
  height: 29px;
  color: #e8443a;
  flex: none;
}
header.site-header .brand-wordmark,
header.site-header .brand-product { display: inline; }
header.site-header .brand-wordmark {
  color: #f5efdd;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.7px;
  line-height: 1.5;
}
header.site-header .brand-product { color: #e8443a; font: inherit; letter-spacing: inherit; }
header.site-header .site-tagline {
  color: #b1b4bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  line-height: 1.5;
  white-space: nowrap;
}
header.site-header .header-actions {
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
header.site-header .header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}
header.site-header .header-link,
header.site-header nav a:first-child {
  display: inline;
  margin: 0;
  color: #f5efdd;
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: normal;
  line-height: 1.2;
  white-space: nowrap;
}
header.site-header button.header-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5efdd;
  min-height: 0;
  cursor: pointer;
}
header.site-header a.account-link,
header.site-header nav a:first-child.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0;
  color: #f5efdd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: normal;
  line-height: 1.2;
  white-space: nowrap;
}
header.site-header .account-avatar {
  display: block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid #3d4356;
  background: #17203a;
  color: #f5efdd;
  flex: none;
}
header.site-header .account-label {
  display: inline;
  color: #b1b4bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  line-height: 1.2;
}
@media (max-width: 600px) {
  header.site-header {
    height: 62px;
    min-height: 0;
    max-height: 62px;
    flex-wrap: nowrap;
    gap: 15px;
    --header-pad: 18px;
    padding: 0 18px;
  }
  header.site-header .site-tagline,
  header.site-header .account-label { display: none; }
  header.site-header .brand { gap: 7px; font-size: 20px; }
  header.site-header .brand-wordmark { display: inline; font-size: 20px; }
  header.site-header .header-actions,
  header.site-header .header-links { gap: 10px; }
}

/*
  Paint lock. Page sheets still target this bar: billing.css sets
  .site-header { background:#fcfcf8 } and recolors its links, and the
  invoice and consent pages set a and button colors. An 8-digit navy
  also lets a light page show through. !important is only used for
  paint, so print can still hide the bar with display:none !important.
*/
header.site-header {
  background-color: #0a0e1a !important;
  background-image: none !important;
  border-bottom: 1px solid #30364a !important;
  color: #f5efdd !important;
  color-scheme: dark !important;
}
header.site-header .brand,
header.site-header .brand-wordmark,
header.site-header .header-link,
header.site-header .account-link,
header.site-header button.header-link {
  color: #f5efdd !important;
  background-color: transparent !important;
  background-image: none !important;
}
header.site-header .brand-mark,
header.site-header .brand-product {
  color: #e8443a !important;
}
header.site-header .site-tagline,
header.site-header .account-label {
  color: #b1b4bd !important;
}
header.site-header .account-avatar {
  background-color: #17203a !important;
  background-image: none !important;
  border-color: #3d4356 !important;
  color: #f5efdd !important;
}
