[hidden] { display: none !important; }

[data-shared-header] {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}

[data-shared-header] > .px-header {
  position: relative;
  top: auto;
  z-index: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.px-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  color: var(--header-text);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: none;
  transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}

.px-header.scrolled { box-shadow: none; }

.px-debug-context {
  min-height: 1.8rem;
  padding: 0.28rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-warning) 22%, var(--header-border));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: color-mix(in srgb, var(--color-warning) 8%, var(--header-bg));
  color: var(--header-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

body[data-site-environment="debug_staging"]::before {
  --px-debug-watermark-visible: 1;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170' viewBox='0 0 260 170'%3E%3Ctext x='130' y='88' text-anchor='middle' font-family='Arial,sans-serif' font-size='22' font-weight='700' letter-spacing='3' fill='%230b0b0c' fill-opacity='.10' transform='rotate(-24 130 85)'%3EDEBUG MODE%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 170px;
  opacity: 0.34;
}

html[data-theme="dark"] body[data-site-environment="debug_staging"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170' viewBox='0 0 260 170'%3E%3Ctext x='130' y='88' text-anchor='middle' font-family='Arial,sans-serif' font-size='22' font-weight='700' letter-spacing='3' fill='%23ffffff' fill-opacity='.11' transform='rotate(-24 130 85)'%3EDEBUG MODE%3C/text%3E%3C/svg%3E");
  opacity: 0.3;
}

.px-debug-context__status { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--header-text); }
.px-debug-context__status i { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: var(--color-warning); box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-warning) 15%, transparent); }
.px-debug-context__status strong { font-size: inherit; letter-spacing: 0.08em; }

.px-header__inner {
  width: calc(100% - 2rem);
  min-height: 4.5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.px-brand {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: var(--brand-lockup-gap);
  color: inherit;
  text-decoration: none;
  border-radius: var(--control-radius);
  justify-self: start;
  line-height: 0;
  box-shadow: none;
  text-shadow: none;
}

.px-brand__icon {
  width: auto;
  height: var(--brand-lockup-header-icon-height);
  aspect-ratio: 1 / 1;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.px-brand__icon img { width: 100%; height: 100%; object-fit: contain; display: block; transform: none; }

.auth-brand-icon {
  width: var(--brand-lockup-auth-icon-height);
  height: var(--brand-lockup-auth-icon-height);
  aspect-ratio: 1 / 1;
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-brand-icon img {
  width: var(--brand-lockup-auth-icon-height);
  height: var(--brand-lockup-auth-icon-height);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transform: none;
}

.px-brand__wordmark {
  position: relative;
  width: auto;
  height: var(--brand-lockup-header-wordmark-height);
  aspect-ratio: 1848 / 252;
  flex: none;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.px-brand__wordmark img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-brand-wordmark {
  width: auto;
  height: var(--brand-lockup-auth-wordmark-height);
  aspect-ratio: 1848 / 252;
  flex: none;
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.auth-brand-wordmark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.px-primary {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--header-surface) 72%, transparent);
}

.px-primary a {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--header-muted);
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

.px-primary a:hover { color: var(--header-text); background: var(--header-hover); }
.px-primary a:is([aria-current="page"], [aria-current="location"]) { color: var(--header-text); background: var(--header-surface-strong); box-shadow: 0 4px 12px rgba(17, 21, 33, 0.075); }

.px-tools { justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; }

.px-auth-actions { display: inline-flex; align-items: center; gap: 0.4rem; }
.px-auth-action { min-width: 4.65rem; }

.px-tool {
  width: 2.75rem;
  flex: none;
  padding: 0;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.px-tool svg,
.px-credit svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.px-credit {
  padding: 0 0.75rem 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
}

.px-credit__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  box-shadow: 0 6px 16px rgba(85, 59, 229, 0.22);
}

.px-credit strong { font-size: var(--type-caption); font-variant-numeric: tabular-nums; }
.px-credit__label { color: var(--header-muted); font-size: var(--type-caption); font-weight: 600; }

.px-credit-menu {
  --credit-progress: 100%;
  width: 16.5rem;
  padding: 1rem;
}
.px-credit-menu__value {
  margin: 0;
  color: var(--header-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}
.px-credit-menu__value strong { color: var(--header-text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.px-credit-menu__copy {
  margin: 0.4rem 0 0;
  color: var(--header-muted);
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}
.px-credit-menu > .px-menu__action { margin-top: 0.75rem; }
.px-credit-menu .px-menu__action .label { white-space: nowrap; }
.px-credit-menu__usage {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.3rem;
}
.px-credit-meter {
  position: relative;
  height: 0.58rem;
  margin: 0 0 0.2rem;
  overflow: hidden;
  border-radius: var(--control-radius);
  border: 1px solid color-mix(in srgb, var(--header-border) 76%, transparent);
  background: color-mix(in srgb, var(--header-text) 8%, transparent);
  box-shadow: inset 0 1px 2px rgba(17, 21, 33, 0.08);
}
.px-credit-meter span {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(105deg, #087F73 0%, #176CFF 34%, #713CFF 62%, #20BFA3 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 0.85rem rgba(49, 87, 213, 0.2);
  transform: scaleX(var(--credit-progress-scale, 1));
  transform-origin: left center;
  animation: pxCreditAurora 7.2s ease-in-out infinite;
}
.px-credit-meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.42) 48%, transparent 72%);
  background-size: 240% 100%;
  animation: pxCreditLight 4.8s ease-in-out infinite;
}
.px-credit-menu__meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--header-muted);
  font-size: var(--type-caption);
  font-weight: 600;
}
.px-credit-menu__meta strong { color: var(--header-text); font-variant-numeric: tabular-nums; }

@keyframes pxCreditAurora {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pxCreditLight {
  0%, 16% { background-position: 140% 50%; opacity: 0; }
  32% { opacity: 0.72; }
  54% { background-position: -80% 50%; opacity: 0; }
  100% { background-position: -80% 50%; opacity: 0; }
}

.px-popover-wrap { position: relative; }

.px-language {
  width: auto;
  min-width: 4.65rem;
  padding-inline: 0.7rem;
  display: inline-flex;
  gap: 0.38rem;
  font-size: var(--type-caption);
  font-weight: 500;
}

.px-language > svg:first-child {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.35;
}

.px-chevron { width: 0.85rem !important; height: 0.85rem !important; transition: transform 160ms ease-out; }
[aria-expanded="true"] > .px-chevron { transform: rotate(180deg); }

.px-control.px-profile {
  height: auto;
  min-height: var(--action-height-standard);
  padding: 0 0.55rem 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.px-avatar {
  width: 2rem;
  height: 2rem;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(135deg, #192747, #583CCB);
  font-size: var(--type-caption);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.px-avatar--large { width: 2.65rem; height: 2.65rem; font-size: var(--type-caption); }
.px-profile__copy { min-width: 5rem; display: grid; align-content: center; gap: 0.125rem; white-space: nowrap; }
.px-profile__copy strong { font-size: var(--type-caption); line-height: 1.1; }
.px-profile__copy small { color: var(--header-muted); font-size: var(--type-caption); line-height: 1.1; }

.px-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 120;
  width: 16.5rem;
  padding: 0.55rem;
  border: 1px solid var(--header-border);
  border-radius: 1rem;
  background: var(--header-surface-strong);
  box-shadow: var(--header-shadow);
  animation: pxMenuIn 160ms ease-out both;
}

.px-account-menu {
  display: grid;
  gap: 0.375rem;
}

@keyframes pxMenuIn {
  from { opacity: 0; transform: translateY(-0.4rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.px-language-menu { width: 13.5rem; display: grid; gap: 0.5rem; }
.px-language-menu button {
  width: 100%;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.px-language-menu button span:first-child { display: grid; gap: 0.1rem; }
.px-language-menu strong { font-size: 0.75rem; font-weight: 500; line-height: 1.1; }
.px-language-menu small { font-size: var(--type-menu-description); line-height: 1; color: var(--header-muted); }
.px-language-menu__status {
  color: var(--header-muted);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}
.px-language-menu .px-menu-button:disabled {
  border-color: var(--header-border);
  color: var(--header-muted);
  background: var(--header-surface);
}
.px-language-menu .px-menu-button[aria-checked="true"] {
  border-color: #0B0B0C;
  background: #0B0B0C;
  color: #FFFFFF;
  box-shadow: none;
}
.px-language-menu .px-menu-button[aria-checked="true"] small { color: rgba(255, 255, 255, 0.72); }
.px-language-menu .px-menu-button[aria-checked="true"]:not(:disabled):hover { border-color: #0B0B0C; background: #0B0B0C; color: #FFFFFF; }

.px-account-menu__head {
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.px-account-menu__head > span:last-child { display: grid; gap: 0.12rem; }
.px-account-menu__head strong { font-size: var(--type-caption); }
.px-account-menu__head small { color: var(--header-muted); font-size: var(--type-caption); }
.px-account-menu__credits {
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(23, 108, 255, 0.09), rgba(113, 60, 255, 0.10));
  font-size: var(--type-caption);
}

.px-account-menu__credits span { color: var(--header-muted); }
.px-account-menu__credits strong span { color: inherit; }
.px-account-menu__links {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.px-account-menu__link {
  width: 100%;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--header-text);
  font-family: inherit;
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.px-account-menu__link { background: color-mix(in srgb, var(--header-hover) 58%, transparent); }
.px-account-menu > .px-menu__action {
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  border-radius: var(--radius-pill);
}
.px-account-menu__link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.px-account-menu__link > span:last-child { color: var(--header-muted); }
.px-account-menu__plan-badge {
  max-width: 6.5rem;
  overflow: hidden;
  color: #FFFFFF;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  box-shadow: 0 3px 10px rgba(67, 97, 238, 0.20);
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-account-menu__link > .px-account-menu__plan-badge:last-child { color: #FFFFFF; }
.px-account-menu__plan-badge.is-admin {
  padding-inline: 0.55rem;
  border: 1px solid rgba(128, 96, 28, 0.24);
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(112deg, #D6B04F 0%, #8A6315 28%, #BE9639 52%, #6D4A08 74%, #CFA944 100%);
  background-size: 220% 100%, 220% 100%;
  color: #4D3911;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 3px 10px rgba(108, 78, 16, 0.16);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  animation: pxAdminChampagneAurora 6s ease-in-out infinite;
}
@keyframes pxAdminChampagneAurora {
  0%, 100% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 100% 50%, 100% 50%; }
}
.px-account-menu__link:hover {
  border-color: var(--header-border);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--header-text) 6%, transparent);
}
.px-account-menu__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.px-generation svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.px-header .px-mobile-toggle { display: none; }
.px-mobile-panel { display: none; }

html[data-theme="dark"] .px-primary a:is([aria-current="page"], [aria-current="location"]) { box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24); }
html[data-theme="dark"] .px-brand__wordmark img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .auth-brand-wordmark img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .px-credit-meter { background: rgba(245, 247, 252, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22); }
html[data-theme="dark"] .px-theme__sun { display: none; }
html:not([data-theme="dark"]) .px-theme__moon { display: none; }

.px-mfa-dialog {
  width: min(calc(100% - 2rem), 31rem);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-5);
  overflow: visible;
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
}
.px-mfa-dialog::backdrop {
  background: rgba(7, 10, 16, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.px-mfa-dialog__form {
  position: relative;
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.px-mfa-dialog__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--color-border-default);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.px-mfa-dialog__close:hover { border-color: var(--color-text-primary); }
.px-mfa-dialog__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.px-mfa-dialog__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
  color: var(--color-success);
}
.px-mfa-dialog__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.px-mfa-dialog__heading { padding-right: 2.75rem; display: grid; gap: var(--space-2); }
.px-mfa-dialog__heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--type-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.px-mfa-dialog__heading h2 { margin: 0; font-size: var(--type-subsection-title); line-height: 1.1; }
.px-mfa-dialog__heading span,
.px-mfa-dialog__help {
  color: var(--color-text-muted);
  font-size: var(--type-body-small);
  line-height: var(--line-body);
}
.px-mfa-dialog__form > label { font-size: var(--type-control); font-weight: 700; }
.px-mfa-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.px-mfa-dialog__actions input,
.px-mfa-dialog__actions .px-button {
  width: 100%;
  min-width: 0;
  height: 3rem;
  min-height: 3rem;
  box-sizing: border-box;
}
.px-mfa-dialog__actions input {
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: var(--type-control);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.px-mfa-dialog__actions input:focus-visible {
  border-color: var(--focus-ring);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 18%, transparent);
}
.px-mfa-dialog__status { min-height: 1.25rem; margin: 0; color: var(--color-error); font-size: var(--type-caption); font-weight: 650; }
.px-mfa-dialog__help { margin: 0; }
.px-mfa-notice {
  position: fixed;
  z-index: 250;
  right: var(--space-5);
  bottom: var(--space-5);
  width: min(calc(100% - 2rem), 28rem);
  padding: var(--space-4) var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-warning) 35%, var(--color-border-default));
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
  font-size: var(--type-body-small);
  font-weight: 650;
  line-height: var(--line-body);
}

@media (max-width: 1279px) {
  .px-header__inner { grid-template-columns: auto 1fr; }
  .px-primary { display: none; }
  .px-tools { grid-column: 2; }
  .px-header .px-mobile-toggle { display: inline-grid; }
  .px-header .px-generation { display: none; }
  .px-mobile-panel:not([hidden]) {
    width: min(calc(100% - 2rem), 40rem);
    margin: 0 auto 0.8rem;
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--header-border);
    border-radius: 1rem;
    background: var(--header-surface-strong);
    box-shadow: var(--header-shadow);
    animation: pxMenuIn 0.24s ease-out both;
  }
  .px-mobile-panel nav {
    position: static;
    top: auto;
    z-index: auto;
    height: auto;
    padding: 0;
    border: 0;
    display: grid;
    gap: 0.25rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .px-mobile-panel nav a {
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--control-radius);
    color: var(--header-text);
    font-size: var(--type-caption);
    font-weight: 600;
    text-decoration: none;
  }
  .px-mobile-panel nav a:hover { background: var(--header-hover); }
  .px-mobile-panel nav a[aria-current="location"] { background: var(--header-hover); box-shadow: inset 0 0 0 1px var(--header-border); }
  .px-mobile-panel__status {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: var(--header-hover);
  }
  .px-mobile-panel__status > span { display: grid; gap: 0.14rem; }
  .px-mobile-panel__status small { color: var(--header-muted); font-size: var(--type-caption); }
  .px-mobile-panel__status strong { font-size: var(--type-caption); }
  .px-mobile-signin {
    padding-inline: 1rem;
  }
  .px-mobile-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .px-mobile-auth-actions .px-button { min-height: 3rem; }
  .px-mobile-generation,
  .px-mobile-signin { width: 100%; min-height: 3rem; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  .px-credit__label { display: none; }
  .px-tools { gap: 0.18rem; }
  .px-credit { padding-right: 0.65rem; }
  .px-language { min-width: 3.8rem; padding-inline: 0.4rem; }
  .px-profile { gap: 0.35rem; }
  .px-generation { padding-inline: 0.7rem; }
}

@media (min-width: 1280px) and (max-width: 1455px) {
  .px-control.px-profile { width: 2.75rem; height: var(--action-height-compact); min-height: var(--action-height-compact); padding: 0; justify-content: center; }
  .px-profile__copy,
  .px-profile > .px-chevron { display: none; }
}

@media (max-width: 760px) {
  .px-language-wrap { display: none; }
  .px-header__inner > .px-tools > .px-auth-actions { display: none; }
  .px-header__inner { width: calc(100% - 1.5rem); }
  .px-credit-menu { position: fixed; top: 4.75rem; right: 0.75rem; left: 0.75rem; width: auto; }
}

@media (max-width: 560px) {
  .px-header__inner { min-height: 4rem; gap: 0.65rem; }
  .px-tools { gap: 0.32rem; }
  .px-control.px-profile { width: 2.75rem; height: var(--action-height-compact); min-height: var(--action-height-compact); padding: 0; justify-content: center; }
  .px-profile__copy,
  .px-profile > .px-chevron { display: none; }
  .px-credit { padding-right: 0.6rem; }
  .px-mobile-panel:not([hidden]) { width: calc(100% - 1.5rem); }
  .px-debug-context { padding-inline: 0.75rem; gap: 0.45rem; font-size: 0.62rem; }
  .px-debug-context > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 520px) {
  .px-mfa-dialog__form { padding: var(--space-6) var(--space-5); }
  .px-mfa-dialog__actions { grid-template-columns: 1fr; }
  .px-mfa-notice { right: 1rem; bottom: 1rem; }
}

@media (max-width: 600px) {
  .px-brand__wordmark { display: none; }
}

@media (max-width: 420px) {
  .px-credit__label { display: none; }
  .px-credit { padding-right: 0.65rem; }
  .px-account-menu { position: fixed; top: 4.75rem; right: 0.75rem; left: 0.75rem; width: auto; }
}

@media (max-width: 350px) {
  .px-header__inner { width: calc(100% - 1rem); }
  .px-tools { gap: 0.2rem; }
  .px-credit__mark { width: 1.75rem; height: 1.75rem; }
  .px-credit { padding-inline: 0.3rem 0.5rem; }
  .px-mobile-panel__status { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .px-header__inner { min-height: 58px; gap: 16px; }
  .px-brand { min-width: 35px; min-height: 35px; }
  .px-primary { gap: 3px; padding: 3px; }
  .px-primary a { min-height: 35px; padding: 7px 12px; }
  .px-tools { gap: 6px; }
  .px-credit { padding-right: 10px; padding-left: 5px; gap: 5px; }
  .px-credit__mark { width: 26px; height: 26px; }
  .px-profile { padding-right: 7px; padding-left: 4px; gap: 7px; }
  .px-avatar { width: 26px; height: 26px; }
  .px-avatar--large { width: 34px; height: 34px; }
  .px-credit-menu { width: 211px; padding: 13px; }
  .px-credit-menu__value { font-size: 12px; }
  .px-credit-menu__value strong { font-size: 13px; }
  .px-credit-meter { height: 7px; }
  .px-credit-menu__foot { gap: 13px; font-size: 12px; }
  .px-language-menu { width: 173px; gap: 6px; }
  .px-language-menu button { padding: 0 10px; }
  .px-language-menu strong { font-size: 12px; }
  .px-account-menu { width: 244px; padding: 7px; }
  .px-account-menu__head { padding: 8px; gap: 9px; }
  .px-account-menu { gap: 6px; }
  .px-account-menu__credits { height: 40px; min-height: 40px; margin: 0; padding: 8px 10px; gap: 13px; }
  .px-account-menu__links { gap: 6px; }
  .px-account-menu__link,
  .px-account-menu > .px-menu__action { height: 40px; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .px-header *, .px-header *::before, .px-header *::after { animation: none !important; transition: none !important; }
}
