/* ARGEMS shared tokens: the blue shell matches Footer R4. */
.ag-header {
  --agh-primary: var(--argems-primary, #064787);
  --agh-link: var(--argems-link, #07509e);
  --agh-ink: var(--argems-text, #172b46);
  --agh-surface: var(--argems-surface, #fff);
  --agh-line: var(--argems-line, #e2e7ee);
  --agh-tint: var(--argems-tint, #eaf1fb);
  --agh-inverse: #edf3fc;
  --agh-muted: #c6d6ea;
  --agh-blue-line: #ffffff24;
  position: relative;
  z-index: 30;
  background: var(--agh-primary);
  color: var(--agh-inverse);
  font: 400 14px/1.5 var(--argems-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-align: left;
  color-scheme: light;
  border-bottom: 1px solid var(--agh-blue-line);
}
.ag-header *, .ag-header *::before, .ag-header *::after {
  box-sizing: border-box;
}
.ag-header [hidden], .ag-header dialog:not([open]) {
  display: none !important;
}
.ag-header :where(button, input, select) {
  font: inherit;
  color: inherit;
  margin: 0;
}
.ag-header :where(a, button, input, select, summary) {
  -webkit-tap-highlight-color: transparent;
}
.ag-header :where(button, summary) {
  cursor: pointer;
}
.ag-header a {
  color: inherit;
  text-decoration: none;
}
.ag-header :where(h2, h3, p, form) {
  margin: 0;
}
.ag-header summary {
  list-style: none;
}
.ag-header summary::-webkit-details-marker {
  display: none;
}
.ag-header :where(a, button, input, select, summary):focus-visible {
  outline: 2px solid #9ac8f7;
  outline-offset: 3px;
}
.ag-header :where(a, button, input, select, summary):focus:not(:focus-visible) {
  outline: none;
}
.ag-header__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.ag-header__top {
  display: grid;
  grid-template-columns: 248px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 76px;
  padding: 12px 48px;
}
.ag-header__brand {
  display: block;
  width: 238px;
  max-width: 100%;
}
.ag-header__brand img {
  display: block;
  width: 100%;
  height: auto;
}
.ag-header__logo {
  mix-blend-mode: screen;
}
.ag-header__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ag-header__search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 3px;
  border: 1px solid #ffffff50;
  border-radius: 7px;
  background: var(--agh-surface);
  color: var(--agh-ink);
}
.ag-header__search-bar:has(input[type="search"]:focus-visible) {
  border-color: #83a9ce;
}
.ag-header__search input[type="search"] {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  line-height: normal;
}
.ag-header__search input[type="search"]:focus-visible {
  outline: none;
  box-shadow: none;
}
.ag-header[data-enhanced] input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
  display: none;
}
.ag-header__search input[type="search"]::placeholder {
  color: #596b80;
  opacity: 1;
}
.ag-header__search-clear {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 100%;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #596b80;
}
.ag-header__search-clear .ag-header__icon {
  width: 16px;
  height: 16px;
}
.ag-header__search-clear:hover {
  background: #f1f4f7;
}
.ag-header__search :is(button, summary):focus-visible {
  outline: 2px solid #596b80;
  outline-offset: -2px;
}
.ag-header__search .ag-header__search-submit:focus-visible {
  outline-color: #fff;
}
.ag-header__scope {
  position: relative;
  flex: 0 0 136px;
  min-width: 0;
  border-left: 1px solid var(--agh-line);
  font-size: 12px;
}
.ag-header__scope > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  border-radius: 4px;
}
.ag-header__scope > summary:hover {
  background: #f3f5f8;
}
.ag-header__scope > summary:focus-visible {
  outline: 1px solid #596b80;
  outline-offset: -2px;
}
.ag-header__scope [data-scope-label] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-header__scope summary > .ag-header__icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.ag-header__scope .ag-header__panel {
  width: 252px;
  min-width: 0;
  margin: 0;
  top: calc(100% + 10px);
}
.ag-header__scope-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
}
.ag-header__scope-option:hover, .ag-header__scope-option:has(:checked) {
  background: #f1f4f7;
}
.ag-header__scope-option:has(:focus-visible) {
  outline: 2px solid #596b80;
  outline-offset: -2px;
}
.ag-header__scope-option input[type="radio"] {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #8a99aa;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.ag-header__scope-option input:checked {
  border: 5px solid var(--agh-primary);
}
.ag-header input[type="radio"]::after {
  content: none;
  display: none;
}
.ag-header__scope-option input:focus-visible {
  outline: none;
}
.ag-header__search-submit {
  display: grid;
  place-items: center;
  width: 42px;
  height: 36px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #1462b5;
}
.ag-header__search-submit:hover {
  background: var(--agh-primary);
}
.ag-header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ag-header__tool {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}
.ag-header__tool .ag-header__icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}
.ag-header__tool:hover, .ag-header__popover[open] > .ag-header__tool {
  background: #ffffff10;
}
.ag-header__tool-label {
  font-size: 13px;
}
.ag-header__badge {
  position: absolute;
  top: 0;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  color: #fff;
  background: #cc2638;
  box-shadow: 0 0 0 2px var(--agh-primary);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
}
.ag-header__badge--inline {
  position: static;
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 11px;
}
.ag-header__account {
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--agh-blue-line);
}
.ag-header__account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 7px;
}
.ag-header__account-trigger > span:nth-child(2) {
  display: grid;
  gap: 1px;
}
.ag-header__account-trigger small {
  color: var(--agh-muted);
  font-size: 10px;
}
.ag-header__account-trigger strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.ag-header__account-trigger > .ag-header__icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.ag-header__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--agh-blue-line);
  border-radius: 50%;
  background: #ffffff08;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.ag-header__avatar .ag-header__icon {
  width: 17px;
  height: 17px;
}
.ag-header__avatar--photo {
  border: 0;
}
.ag-header__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  background: #fff;
  transform: scale(1.08);
}
.ag-header__nav-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  padding: 0 48px;
  border-top: 1px solid var(--agh-blue-line);
}
.ag-header__categories {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}
.ag-header__categories a {
  display: flex;
  align-items: center;
  min-height: 43px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
}
.ag-header__categories a:hover, .ag-header__nav-bar a[aria-current="page"] {
  border-bottom-color: #9ac8f7;
}
.ag-header__popover {
  position: relative;
}
.ag-header__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100dvh - 96px));
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--agh-line);
  border-radius: 10px;
  background: var(--agh-surface);
  color: var(--agh-ink);
  box-shadow: 0 12px 32px #172b4624;
  z-index: 4;
}
.ag-header__panel :focus-visible {
  outline-color: var(--agh-link);
}
.ag-header__panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
.ag-header__panel-heading strong {
  font-size: 14px;
  font-weight: 600;
}
.ag-header__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.ag-header__row > span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ag-header__row > .ag-header__icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  opacity: .8;
}
.ag-header__row:hover, .ag-header__row[aria-current="true"], .ag-header__row[aria-current="page"] {
  background: var(--agh-tint);
  color: var(--agh-primary);
}
.ag-header__row small {
  color: #596b80;
  font-size: 11px;
}
button.ag-header__row {
  color: inherit;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}
/* Cart and notifications share one compact panel layout. */
.ag-header__activity-panel {
  display: flex;
  flex-direction: column;
  width: 380px;
  padding: 0;
  overflow: hidden;
}
.ag-header__activity-heading {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--agh-line);
}
.ag-header__activity-heading > strong {
  font-size: 15px;
  font-weight: 600;
}
.ag-header__status {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--agh-tint);
  color: var(--agh-primary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.ag-header__status--unread {
  background: #fff0f1;
  color: #a92e3b;
}
.ag-header__panel-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596b80;
}
.ag-header__panel-close .ag-header__icon {
  width: 17px;
  height: 17px;
}
.ag-header__panel-close:hover {
  background: var(--agh-tint);
  color: var(--agh-primary);
}
.ag-header__activity-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ag-header__cart .ag-header__activity-panel {
  width: 400px;
}
.ag-header__notice-link {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
}
.ag-header__notice { position: relative; }
.ag-header__notice-link::after { content: ""; position: absolute; inset: 0; }
.ag-header__notice-link:focus-visible::after { outline: 2px solid var(--agh-primary); outline-offset: -2px; }
.ag-header__read-notice { position: relative; z-index: 1; }
.ag-header__cart-category {
  margin: 0;
  padding: 12px 16px 0;
  color: #596b80;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .03em;
}
.ag-header__cart-item + .ag-header__cart-item,
.ag-header__cart-group + .ag-header__cart-group,
.ag-header__notice + .ag-header__notice {
  border-top: 1px solid var(--agh-line);
}
.ag-header__cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 12px 16px;
}
.ag-header__cart-item--removable {
  grid-template-columns: minmax(0, 1fr) 36px;
}
.ag-header__cart-product {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.ag-header__cart-remove {
  justify-self: end;
}
.ag-header__cart-remove-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a92e3b;
}
.ag-header__cart-remove-button .ag-header__icon {
  width: 14px;
  height: 14px;
}
.ag-header__cart-remove-button:hover {
  background: #fff2f3;
}
.ag-header__cart-confirm {
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--agh-line);
  border-radius: 10px;
  background: var(--agh-surface);
  color: var(--agh-ink);
  box-shadow: 0 16px 48px #172b4630;
}
.ag-header__cart-confirm::backdrop {
  background: #102b4666;
}
.ag-header__cart-confirm h2 {
  font-size: 17px;
  font-weight: 600;
}
.ag-header__cart-confirm p {
  margin-top: 10px;
  color: #596b80;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ag-header__confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.ag-header__confirm-actions button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--agh-line);
  border-radius: 7px;
  background: var(--agh-surface);
  color: var(--agh-ink);
  font-size: 13px;
  font-weight: 500;
}
.ag-header__confirm-actions button:hover {
  background: var(--agh-tint);
}
.ag-header__confirm-actions .ag-header__confirm-remove {
  border-color: #a92e3b;
  background: #a92e3b;
  color: #fff;
}
.ag-header__confirm-actions .ag-header__confirm-remove:hover {
  border-color: #8d2530;
  background: #8d2530;
}
.ag-header__cart-confirm :focus-visible {
  outline-color: var(--agh-link);
  outline-offset: -3px;
}
.ag-header__confirm-remove:focus-visible {
  outline-color: #fff;
}
.ag-header__product-image {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid var(--agh-line);
  border-radius: 7px;
  background: #f7f9fc;
  color: var(--agh-primary);
}
.ag-header__product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ag-header__product-reference {
  display: block;
  margin-top: 3px;
  color: #67778b;
  font-size: 11px;
}
.ag-header__product-total, .ag-header__cart-subtotal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.ag-header__product-total {
  grid-column: 1 / -1;
  margin-left: 72px;
  color: #596b80;
  font-size: 12px;
}
.ag-header__product-total strong {
  margin-left: auto;
  color: var(--agh-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.ag-header__cart-subtotal {
  margin-bottom: 4px;
  font-size: 13px;
}
.ag-header__cart-subtotal strong {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ag-header__cart-note {
  margin: 0 0 10px;
  color: #67778b;
  font-size: 11px;
  line-height: 1.5;
}
.ag-header__item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--agh-primary);
}
.ag-header__item-icon .ag-header__icon {
  width: 20px;
  height: 20px;
}
.ag-header__item-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ag-header__item-copy > strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.ag-header__item-description {
  display: block;
  margin-top: 3px;
  color: #596b80;
  font-size: 12px;
  line-height: 1.5;
}
.ag-header__item-time {
  display: block;
  color: #67778b;
  font-size: 11px;
}
.ag-header__notice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  padding: 3px 16px;
  border-bottom: 1px solid var(--agh-line);
  color: #67778b;
  font-size: 11px;
}
.ag-header__notice-link {
  align-items: flex-start;
  padding-bottom: 3px;
}
.ag-header__notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 8px;
  min-height: 38px;
  padding: 0 16px 8px 50px;
}
.ag-header__read-notice {
  margin-left: auto;
}
.ag-header__read-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--agh-link);
  font-size: 11px;
  font-weight: 500;
}
.ag-header__read-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ag-header__read-button .ag-header__icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.ag-header__notice--unread {
  background: #f7f9fc;
}
.ag-header__notice:not(.ag-header__notice--unread) .ag-header__item-copy > strong {
  font-weight: 500;
}
.ag-header__notice-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #cc2638;
}
.ag-header__cart-item:hover, .ag-header__notice:hover {
  background: var(--agh-tint);
}
.ag-header__activity-panel :focus-visible {
  outline-offset: -2px;
}
.ag-header__activity-footer {
  flex: 0 0 auto;
  padding: 6px 16px;
  border-top: 1px solid var(--agh-line);
}
.ag-header__cart .ag-header__activity-footer {
  padding-block: 10px;
}
.ag-header .ag-header__panel-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--agh-link);
  font-size: 13px;
  font-weight: 600;
}
.ag-header__panel-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ag-header .ag-header__panel-action--primary {
  padding-inline: 14px;
  border-radius: 7px;
  background: var(--agh-primary);
  color: #fff;
}
.ag-header__panel-action--primary:hover {
  background: var(--agh-link);
  text-decoration: none;
}
.ag-header__activity-panel .ag-header__panel-action--primary:focus-visible {
  outline-color: #fff;
  outline-offset: -4px;
}
.ag-header__panel-action .ag-header__icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.ag-header__activity-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  text-align: center;
}
.ag-header__activity-empty .ag-header__item-icon {
  margin-bottom: 4px;
}
.ag-header__activity-empty strong {
  font-size: 14px;
  font-weight: 600;
}
.ag-header__activity-empty p, .ag-header__activity-message {
  color: #596b80;
  font-size: 12px;
  line-height: 1.6;
}
.ag-header__activity-message {
  padding: 16px 12px;
}
.ag-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
}
.ag-header__identity > div {
  min-width: 0;
}
.ag-header__identity strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}
.ag-header__identity h2 {
  color: #596b80;
  font-size: 11px;
  font-weight: 400;
}
.ag-header__identity .ag-header__avatar {
  background: var(--agh-tint);
  color: var(--agh-primary);
  border-color: var(--agh-line);
}
.ag-header__logout .ag-header__row {
  color: #a92e3b;
}
.ag-header .ag-header__logout .ag-header__row:is(:hover, :focus-visible, :active) {
  background: transparent;
  outline: none;
}
.ag-header__logout .ag-header__row:is(:hover, :focus-visible) > span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ag-header__logout .ag-header__row:focus-visible > span {
  text-decoration-thickness: 2px;
}
.ag-header__locale > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 12px;
}
.ag-header__locale > summary .ag-header__icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.ag-header__locale > summary .ag-header__icon:last-child {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}
.ag-header__locale .ag-header__panel {
  width: 210px;
  top: calc(100% + 1px);
}
.ag-header__support > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  color: var(--agh-muted);
  font-size: 12px;
  white-space: nowrap;
}
.ag-header__support > summary .ag-header__icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}
.ag-header__support .ag-header__panel {
  top: calc(100% + 1px);
}
.ag-header__mobile-menu, .ag-header__mobile-workspace, .ag-header__menu-footer {
  display: none;
}
.ag-header__menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, calc(100vw - 32px));
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: var(--agh-primary);
  color: var(--agh-inverse);
  font: inherit;
  box-shadow: 0 20px 60px #031d3d4d;
  overflow: hidden;
}
.ag-header__menu[open] {
  display: flex;
  flex-direction: column;
}
.ag-header__menu::backdrop {
  background: #051b3659;
}
.ag-header__menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--agh-blue-line);
}
.ag-header__menu-heading .ag-header__identity {
  flex: 1;
  min-width: 0;
  padding: 4px;
  margin: 0;
}
.ag-header__menu-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
}
.ag-header__menu-close .ag-header__icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.ag-header__menu-close:hover {
  background: #ffffff10;
}
.ag-header__menu-body {
  flex: 1;
  padding: 8px 8px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.ag-header__menu-section {
  border-top: 1px solid var(--agh-blue-line);
  padding-top: 18px;
  margin-top: 14px;
}
.ag-header__menu-section h3 {
  margin: 0 0 8px 12px;
  color: #a9c6e6;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.ag-header__contact {
  padding-top: 8px;
}
.ag-header__contact > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  color: #a9c6e6;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.ag-header__contact > summary .ag-header__icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.ag-header__contact[open] > summary .ag-header__icon {
  transform: rotate(180deg);
}
.ag-header__category {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  border-radius: 7px;
}
.ag-header__category strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.ag-header__category small {
  display: block;
  color: var(--agh-muted);
  font-size: 11px;
  margin-top: 3px;
}
.ag-header__category > .ag-header__icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: #c1d9f1;
}
.ag-header__category > .ag-header__icon:last-child {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  margin-left: auto;
}
.ag-header__menu .ag-header__row {
  min-height: 44px;
}
.ag-header__menu .ag-header__row:hover, .ag-header__menu .ag-header__row[aria-current="page"], .ag-header__category:hover {
  background: #ffffff0e;
  color: #fff;
}
.ag-header__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Optional diamond filters reuse the search GET form and popover behavior. */
.ag-header__diamond-filters {
  position: static;
  flex: 0 0 44px;
}
.ag-header__diamond-filters > summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--agh-blue-line);
  border-radius: 7px;
  background: #ffffff0a;
  color: var(--agh-inverse);
}
.ag-header__diamond-filters > summary:hover, .ag-header__diamond-filters[open] > summary {
  background: #ffffff18;
}
.ag-header__diamond-filters > summary:has([data-filter-count]:not(:empty))::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--agh-inverse);
}
.ag-header__search .ag-header__diamond-filters > summary:focus-visible {
  outline-color: #9ac8f7;
}
.ag-header__filter-panel {
  display: flex;
  flex-direction: column;
  width: max(100%, 680px);
  top: calc(100% + 8px);
  max-height: min(540px, calc(100dvh - 84px));
  padding: 0;
  overflow: hidden;
}
.ag-header__filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 0;
}
.ag-header__filter-field, .ag-header__filter-range, .ag-header__offer-filter {
  flex: 1 1 calc((100% - 32px) / 3);
  min-width: 140px;
  margin: 0;
  padding: 0;
  border: 0;
}
.ag-header__filter-field > span, .ag-header__filter-range > legend, .ag-header__offer-filter > legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}
.ag-header__filter-range > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ag-header__filter-range label {
  flex: 1;
  min-width: 0;
}
.ag-header__filter-fields :is(select, input[type="number"]) {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  background: var(--agh-surface);
  color: var(--agh-ink);
  font-size: 14px;
}
.ag-header__filter-fields :is(select, input[type="number"]):focus-visible {
  outline: 1px solid var(--agh-primary);
  outline-offset: -1px;
}
.ag-header__offer-filter {
  min-width: min-content;
}
.ag-header__offer-filter > div {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--agh-line);
  border-radius: 6px;
  background: #f5f7f9;
}
.ag-header__offer-filter label {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
  cursor: pointer;
}
.ag-header__offer-filter input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ag-header__offer-filter span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.ag-header__offer-filter :checked + span {
  border-color: #cbd5e0;
  background: var(--agh-surface);
  font-weight: 600;
}
.ag-header__offer-filter :focus-visible + span {
  outline: 1px solid var(--agh-primary);
  outline-offset: -1px;
}
.ag-header__filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--agh-line);
}
.ag-header__filter-actions button {
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
}
.ag-header__filter-actions [data-reset-filters] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ag-header__filter-actions [data-reset-filters] .ag-header__icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.ag-header__filter-actions [data-reset-filters]:hover {
  text-decoration: underline;
}
.ag-header__filter-actions .ag-header__filter-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 14px;
  background: var(--agh-primary);
  color: #fff;
}
.ag-header__filter-actions .ag-header__filter-submit:focus-visible {
  outline-color: #fff;
}
@media (max-width: 1439px) and (min-width: 1200px) {
  .ag-header__top {
    grid-template-columns: 220px minmax(200px, 1fr) auto;
    gap: 24px;
  }
  .ag-header__tools {
    gap: 8px;
  }
  .ag-header__nav-bar {
    gap: 20px;
  }
  .ag-header__categories {
    gap: 18px;
  }
  .ag-header__categories a {
    font-size: 12px;
  }
}
@media (max-width: 1199px) {
  .ag-header__filter-panel {
    width: 100%;
    max-height: calc(100dvh - 132px);
  }
  .ag-header__filter-fields {
    gap: 16px 12px;
    padding: 16px;
  }
  .ag-header__filter-fields > :is(label, fieldset) {
    flex-basis: calc((100% - 12px) / 2);
  }
  .ag-header__filter-fields :is(select, input[type="number"]) {
    font-size: 16px;
  }
  .ag-header__filter-actions {
    padding: 12px 16px;
  }

  .ag-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 8px 24px 12px;
  }
  .ag-header__mobile-menu {
    display: flex;
  }
  .ag-header__brand {
    grid-column: 1;
    grid-row: 1;
    width: 210px;
  }
  .ag-header__tools {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }
  .ag-header__search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .ag-header__search-bar {
    height: 48px;
  }
  .ag-header__search-submit {
    height: 40px;
  }
  .ag-header__search input[type="search"] {
    font-size: 16px;
  }
  .ag-header__search input[type="search"]::placeholder {
    font-size: 13px;
  }
  .ag-header__scope {
    flex-basis: 104px;
  }
  .ag-header[data-enhanced] .ag-header__nav-bar, .ag-header[data-enhanced] .ag-header__account {
    display: none;
  }
  .ag-header__tool-label {
    display: none;
  }
  .ag-header__tools > .ag-header__popover {
    position: static;
  }
  .ag-header__tools > .ag-header__popover .ag-header__panel {
    top: 61px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 82px);
  }
  .ag-header__mobile-workspace:not(:empty) {
    display: block;
  }
  .ag-header__menu .ag-header__identity h2 {
    color: var(--agh-muted);
  }
  .ag-header__menu .ag-header__identity .ag-header__avatar {
    background: #ffffff0e;
    border-color: var(--agh-blue-line);
    color: #fff;
  }
  .ag-header__menu-footer:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    min-height: 60px;
    padding: 6px 20px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--agh-blue-line);
  }
  .ag-header__menu-footer .ag-header__logout .ag-header__row {
    padding-inline: 0;
    gap: 8px;
    color: #ff9f9f;
    font-weight: 500;
  }
  .ag-header__menu-footer .ag-header__locale {
    margin-left: auto;
  }
  .ag-header__menu-footer .ag-header__locale .ag-header__panel {
    top: auto;
    bottom: calc(100% + 8px);
    left: auto;
    right: 0;
    max-height: min(300px, calc(100dvh - 100px));
  }
  .ag-header__menu .ag-header__panel .ag-header__row:hover, .ag-header__menu .ag-header__panel .ag-header__row[aria-current="true"] {
    background: var(--agh-tint);
    color: var(--agh-primary);
  }
  .ag-header:not([data-enhanced]) .ag-header__nav-bar {
    flex-wrap: wrap;
    padding: 8px 24px;
    gap: 12px;
  }
  .ag-header:not([data-enhanced]) .ag-header__categories {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ag-header:not([data-enhanced]) .ag-header__account {
    padding-left: 8px;
    margin: 0;
  }
  .ag-header:not([data-enhanced]) .ag-header__account-trigger > span:nth-child(2), .ag-header:not([data-enhanced]) .ag-header__account-trigger > .ag-header__icon {
    display: none;
  }
}
@media (max-width: 599px) {
  .ag-header__top {
    padding-inline: 16px;
    column-gap: 6px;
  }
  .ag-header__brand {
    width: 190px;
  }
  .ag-header__tools {
    gap: 2px;
  }
  .ag-header__scope {
    flex-basis: 78px;
  }
  .ag-header__scope > summary {
    padding-left: 8px;
  }
  .ag-header__scope .ag-header__panel {
    right: -44px;
  }
  .ag-header__tools > .ag-header__popover .ag-header__panel {
    right: 16px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 359px) {
  .ag-header__top {
    padding-inline: 12px;
    column-gap: 2px;
  }
  .ag-header__tool {
    width: 40px;
    min-width: 40px;
    padding: 9px;
  }
  .ag-header__scope {
    flex-basis: 64px;
  }
}
