/* Shared by the public pages and the library. Keep header geometry here. */
.product-header {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  min-height: 80px;
  flex-shrink: 0;
  margin: 0 auto;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  gap: 36px;
  color: #242725;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: normal;
}
.header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-logo { display: block; width: 134px; height: 40px; }
.header-navigation, .header-auth { display: flex; align-items: center; gap: 29px; font-size: 13px; font-weight: 500; }
.header-navigation { margin-left: auto; }
.header-auth { margin-left: 20px; gap: 25px; }
.product-header a { color: inherit; text-decoration: none; }
.product-header .header-navigation [aria-current="page"] { color: #c9443b; }
.product-header .header-navigation .header-library { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; padding: 0 16px; border-radius: 7px; background: #c9443b; color: #fff; font-weight: 600; transition: background 180ms ease, transform 180ms ease; }
.header-library svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.product-header .header-navigation .header-library:hover,
.product-header .header-navigation .header-library[aria-current="page"] { background: #b7352e; color: #fff; }
.product-header .header-navigation .header-library:hover { transform: translateY(-2px); }
.product-header .header-navigation .header-library:active { transform: translateY(0); }
.product-header .header-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.product-header .header-outline { min-height: 41px; padding: 0 17px; border: 1px solid #dedfd9; font-weight: 600; letter-spacing: -.15px; }
.product-header a:hover, .product-header .header-action:hover { color: #c9443b; }
.product-header .header-outline:hover { border-color: #242725; color: #242725; transform: translateY(-2px); }
.product-header .header-action:disabled { cursor: wait; opacity: .7; transform: none; }
.product-header :focus-visible { outline: 3px solid #df6e65; outline-offset: 5px; }
.header-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .product-header { gap: 14px; }
  .header-navigation { gap: 14px; }
  .header-auth { gap: 15px; margin-left: 0; }
}
@media (max-width: 700px) {
  .product-header { min-height: 130px; flex-wrap: wrap; justify-content: space-between; padding: 18px 6%; gap: 20px 10px; }
  .header-logo { width: 128px; height: auto; }
  .header-navigation { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px clamp(10px, 3vw, 26px); font-size: 12px; margin: 0; padding-top: 3px; }
  .product-header .header-navigation .header-library { min-height: 35px; padding-inline: 13px; }
  .header-auth { font-size: 12px; gap: 14px; margin: 0; }
  .product-header .header-outline { font-size: 11px; padding: 0 12px; min-height: 37px; }
}
@media (max-width: 359px) {
  .product-header { padding-inline: 16px; }
  .header-logo { width: 114px; }
  .header-auth { gap: 10px; }
  .product-header .header-outline { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-header a, .product-header .header-action { transition: none; }
  .product-header .header-navigation .header-library { transition: none; }
  .product-header .header-navigation .header-library:hover { transform: none; }
}
