:root {
  --brand-blue: #69bed6;
  --brand-blue-bright: #8ad5e8;
  --commerce-danger: #ef7f7f;
  --commerce-success: #71c9a0;
  --accent-text: var(--brand-blue-bright);
  --commerce-danger-text: var(--commerce-danger);
  --commerce-success-text: var(--commerce-success);
  --commerce-warning-text: #e8c880;
}

.brand-word,
.footer-brand > strong {
  color: #fff;
}

.brand-word {
  white-space: nowrap;
}

.brand-accent {
  color: var(--brand-blue);
}

.catalog-page .brand-word .brand-accent,
.product-page .brand-word .brand-accent,
.commerce-page .brand-word .brand-accent,
.catalog-page .footer-brand strong .brand-accent,
.product-page .footer-brand strong .brand-accent {
  color: var(--brand-blue);
}

.header-account-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 740;
  text-decoration: none;
  transition: color var(--fast) ease, background-color var(--fast) ease;
}

.header-account-link:hover,
.header-account-link:focus-visible {
  background: var(--graphite);
  color: var(--white);
}

.header-account-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.header-favorites-link svg path {
  fill: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-page .app-header,
.catalog-page .header-inner,
.product-page .app-header,
.product-page .header-inner {
  min-height: 100px;
}

.catalog-page .header-nav button,
.product-page .header-nav a {
  min-height: 100px;
  font-size: 1.06rem;
  font-weight: 790;
  letter-spacing: 0.012em;
}

.catalog-page .header-nav,
.product-page .header-nav {
  gap: 18px;
}

.catalog-page .brand-word,
.product-page .brand-word {
  font-size: 1.52rem;
  font-weight: 880;
  letter-spacing: 0.035em;
}

.catalog-page .catalog-intro h1 {
  font-feature-settings: "kern" 0;
  font-kerning: none;
  letter-spacing: 0.045em;
}

.cursor-glow {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 190, 214, 0.34) 0, rgba(105, 190, 214, 0.12) 38%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-300px, -300px, 0);
  translate: -50% -50%;
  transition: opacity 180ms ease;
  will-change: transform;
}

.cursor-glow.is-visible {
  opacity: 1;
}

:root[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(50, 156, 186, 0.28) 0, rgba(50, 156, 186, 0.1) 38%, transparent 72%);
}

@media (any-hover: hover) and (any-pointer: fine) {
  .cursor-glow {
    display: block;
  }
}

.footer-legal-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.catalog-page .footer-grid,
.product-page .footer-grid {
  grid-template-columns: 1.12fr 0.72fr 0.9fr 0.95fr 1fr;
}

.catalog-page .site-footer,
.product-page .site-footer {
  min-height: 0;
}

.catalog-page .site-footer {
  padding: 64px var(--catalog-gutter) 56px;
}

.catalog-page .site-footer::before,
.product-page .site-footer::before {
  content: none;
}

.commerce-page {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-ui);
  overflow-x: clip;
}

.commerce-page .app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--black) 95%, transparent);
  backdrop-filter: blur(12px);
}

.commerce-page .header-inner {
  display: flex;
  width: min(calc(100% - 48px), 1320px);
  min-height: 82px;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

.commerce-page .brand {
  margin-right: auto;
}

.commerce-page .brand-word {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 860;
  letter-spacing: 0.045em;
}

.commerce-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.commerce-nav a,
.commerce-nav button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.commerce-nav a:hover,
.commerce-nav button:hover {
  color: var(--white);
}

.commerce-main {
  width: min(calc(100% - 48px), 1180px);
  min-height: calc(100vh - 240px);
  flex: 1 0 auto;
  margin-inline: auto;
  padding: 64px 0 96px;
}

.commerce-kicker {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commerce-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 760;
  letter-spacing: 0.005em;
  line-height: 0.96;
}

.commerce-lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-layout {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.72fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
}

.auth-aside {
  align-self: stretch;
  padding: 54px;
  border: 1px solid var(--line);
  background: var(--graphite);
}

.auth-aside ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
}

.auth-aside li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  color: var(--muted);
}

.auth-aside li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--brand-blue);
  color: var(--accent-text);
  content: "✓";
  font-size: 0.72rem;
}

.commerce-panel {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--graphite);
}

.commerce-panel h1,
.commerce-panel h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.commerce-panel > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.commerce-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.commerce-field {
  display: grid;
  gap: 8px;
}

.commerce-field > span,
.commerce-field > label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.commerce-field input,
.commerce-field select,
.commerce-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: color-mix(in oklch, var(--void) 84%, var(--graphite));
  color: var(--white);
  font: inherit;
}

.commerce-field textarea {
  min-height: 120px;
  resize: vertical;
}

.commerce-field input:focus,
.commerce-field select:focus,
.commerce-field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(105, 190, 214, 0.12);
}

.commerce-field input:focus-visible,
.commerce-field select:focus-visible,
.commerce-field textarea:focus-visible {
  border-color: var(--focus-ring);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}

.commerce-field small {
  color: var(--subtle);
  font-size: 0.72rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-blue);
}

.checkbox-field a,
.auth-switch a,
.inline-link {
  color: var(--accent-text);
}

.commerce-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--brand-blue);
  border-radius: 0;
  background: var(--brand-blue);
  color: #061013;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: filter 160ms ease, background-color 160ms ease, color 160ms ease;
}

.commerce-button:hover {
  filter: brightness(1.08);
}

.commerce-button:disabled {
  cursor: wait;
  filter: grayscale(0.5);
  opacity: 0.62;
}

.commerce-button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--white);
}

.commerce-button.danger {
  border-color: color-mix(in oklch, var(--commerce-danger) 60%, var(--line));
  background: transparent;
  color: var(--commerce-danger-text);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--commerce-danger-text);
  font-size: 0.82rem;
}

.form-message.success {
  color: var(--commerce-success-text);
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-layout--login {
  display: flex;
  width: min(100%, 460px);
  min-height: min(660px, calc(100svh - 210px));
  align-items: center;
  margin-inline: auto;
}

.auth-login-panel {
  width: 100%;
  padding: 40px;
}

.auth-login-heading {
  margin-bottom: 28px;
}

.auth-login-heading .auth-context {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 760;
}

.auth-login-heading h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 2.1rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.auth-login-heading > p:last-child {
  max-width: 42ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-login-panel .commerce-form {
  gap: 16px;
  margin-top: 0;
}

.auth-field-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-field-heading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
}

.auth-field-heading > a:hover,
.auth-field-heading > a:focus-visible,
.auth-switch a:hover,
.auth-switch a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-input-wrap {
  display: block;
  position: relative;
}

.password-input-wrap > input {
  padding-right: 96px;
}

.password-toggle {
  display: inline-flex;
  position: absolute;
  top: 0;
  right: 0;
  min-width: 88px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 760;
}

.password-toggle:hover {
  color: var(--white);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

.auth-login-panel .form-message:empty {
  display: none;
}

.auth-login-panel .form-message:not(:empty) {
  padding: 11px 12px;
  border: 1px solid color-mix(in oklch, var(--commerce-danger) 68%, var(--line));
  background: color-mix(in oklch, var(--commerce-danger) 8%, transparent);
  line-height: 1.45;
}

.auth-login-panel .auth-switch {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.auth-login-panel .auth-switch a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 760;
  text-decoration: none;
}

.auth-trust-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 0.74rem;
  line-height: 1.5;
}

.account-heading,
.admin-heading,
.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.account-heading h1,
.admin-heading h1,
.cart-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.account-layout,
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  margin-top: 34px;
  align-items: start;
}

.account-stack,
.admin-stack {
  display: grid;
  gap: 24px;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 0;
}

.profile-list div {
  display: grid;
  gap: 4px;
}

.profile-list dt {
  color: var(--subtle);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
}

.order-list,
.cart-list,
.admin-product-list {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 24px 0 0;
  background: var(--line);
  list-style: none;
}

.order-card,
.cart-item,
.admin-product-item {
  background: var(--void);
}

.order-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 24px;
  padding: 20px;
  align-items: center;
}

.order-card strong,
.order-card span {
  display: block;
}

.order-card small {
  color: var(--subtle);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge[data-status="new"] { border-color: var(--brand-blue); color: var(--accent-text); }
.status-badge[data-status="confirmed"],
.status-badge[data-status="completed"] { border-color: var(--commerce-success); color: var(--commerce-success-text); }
.status-badge[data-status="rejected"],
.status-badge[data-status="cancelled"] { border-color: var(--commerce-danger); color: var(--commerce-danger-text); }

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #fff;
}

.cart-item-info {
  display: grid;
  gap: 5px;
}

.cart-item-info span,
.cart-item-info small {
  color: var(--muted);
}

.quantity-control {
  display: grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.quantity-control button,
.quantity-control output {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--white);
}

.quantity-control button {
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-item-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-panel {
  position: sticky;
  top: 110px;
}

.checkout-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-total span { color: var(--muted); font-size: 0.8rem; }
.checkout-total strong { font-size: 1.6rem; }
.checkout-note { margin: 20px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.empty-state {
  padding: 58px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 { margin: 0; }
.empty-state p { max-width: 48ch; margin: 12px auto 24px; color: var(--muted); }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0;
  background: var(--line);
}

.admin-metric {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: var(--graphite);
}

.admin-metric span { color: var(--muted); font-size: 0.76rem; }
.admin-metric strong { font-size: 1.85rem; }

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 740;
}

.admin-tabs button.is-active {
  border-color: var(--brand-blue);
  color: var(--white);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.admin-table th,
.admin-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--subtle);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table td { font-size: 0.82rem; }

.admin-table select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--void);
  color: var(--white);
}

.template-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.template-picker button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.template-picker button.is-active {
  border-color: var(--brand-blue);
  color: var(--white);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.image-uploader {
  padding: 20px;
  border: 1px dashed var(--line-strong);
}

.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.image-preview-list li {
  position: relative;
}

.image-preview-list img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
}

.image-preview-list button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  cursor: pointer;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-content {
  max-width: 820px;
}

.legal-section {
  padding: 0 0 54px;
  margin: 0 0 54px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.legal-section h1,
.legal-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0.005em;
}

.legal-section h3 { margin: 34px 0 10px; font-size: 1rem; }
.legal-section p,
.legal-section li { color: var(--muted); line-height: 1.75; }
.legal-section ul { padding-left: 20px; }
.legal-date { color: var(--subtle); font-size: 0.78rem; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  margin-top: 70px;
}

.about-principles {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.about-principles article {
  padding: 26px;
  background: var(--graphite);
}

.about-principles h2 { margin: 0; font-size: 1rem; }
.about-principles p { margin: 10px 0 0; color: var(--muted); font-size: 0.86rem; }

.about-catalog-link { margin-top: 28px; }

.commerce-footer {
  width: 100%;
  flex: 0 0 auto;
  padding: 30px 24px;
  border-top: 1px solid var(--line);
  margin: 0;
  background: var(--black);
  color: #fff;
  box-shadow: 0 2px 0 var(--black);
}

.commerce-footer-inner {
  display: flex;
  width: min(100%, 1320px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-inline: auto;
}

.commerce-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.commerce-footer a { color: rgba(255,255,255,.68); font-size: .76rem; text-decoration: none; }

@media (max-width: 1320px) {
  .catalog-page .header-nav,
  .product-page .header-nav { gap: 14px; }
  .catalog-page .header-nav button,
  .product-page .header-nav a { font-size: 0.84rem; }
  .header-account-link [data-account-label],
  .header-account-link [data-favorites-label],
  .unified-header .selection-button > span { display: none; }
  .catalog-page .footer-grid,
  .product-page .footer-grid { grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 960px) {
  .auth-layout,
  .account-layout,
  .cart-layout,
  .legal-layout,
  .about-grid { grid-template-columns: 1fr; }
  .auth-layout { gap: 32px; }
  .auth-aside { min-height: 360px; }
  .checkout-panel,
  .legal-nav { position: static; }
  .legal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-page .footer-grid,
  .product-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-page .footer-brand,
  .product-page .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 740px) {
  .catalog-page .app-header,
  .catalog-page .header-inner,
  .product-page .app-header,
  .product-page .header-inner { min-height: 70px; }
  .catalog-page .header-nav,
  .product-page .header-nav { top: 70px; }
  .catalog-page .brand-word,
  .product-page .brand-word {
    font-size: 0.94rem;
    letter-spacing: 0.01em;
  }
  .header-account-link { width: 38px; padding: 0; justify-content: center; }
  .commerce-page .header-inner,
  .commerce-main { width: calc(100% - 30px); }
  .commerce-page .header-inner { min-height: 70px; gap: 10px; }
  .commerce-page .brand-word { font-size: 1rem; }
  .commerce-nav a { padding: 0 6px; font-size: 0.78rem; }
  .commerce-nav a[data-mobile-hide] { display: none; }
  .commerce-main { padding: 42px 0 70px; }
  .auth-aside,
  .commerce-panel { padding: 24px; }
  .auth-layout > .commerce-panel { order: -1; }
  .auth-layout--login { min-height: 0; }
  .auth-login-panel .auth-switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .form-grid,
  .profile-list,
  .spec-grid { grid-template-columns: 1fr; }
  .account-heading,
  .admin-heading,
  .cart-heading { align-items: flex-start; flex-direction: column; }
  .order-card { grid-template-columns: 1fr; gap: 10px; }
  .cart-item { grid-template-columns: 86px minmax(0, 1fr); }
  .cart-item img { width: 86px; height: 86px; }
  .cart-item-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .legal-nav { grid-template-columns: 1fr; }
  .commerce-footer-inner { align-items: center; flex-direction: row; justify-content: center; }
  .catalog-page .site-footer,
  .product-page .site-footer { min-height: 0; }
  .catalog-page .site-footer { padding: 48px var(--catalog-gutter) 44px; }
}

@media (max-width: 460px) {
  .admin-metrics { grid-template-columns: 1fr; }
  .catalog-page .footer-grid,
  .product-page .footer-grid { grid-template-columns: 1fr; }
  .catalog-page .footer-column,
  .product-page .footer-column { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) .cursor-glow { display: none; }
}

/* gamimarket commerce flow */
.brand-word,
.commerce-footer strong,
.footer-brand > strong {
  letter-spacing: 0.018em;
  text-transform: none;
}

.account-heading p,
.admin-heading p,
.cart-heading p,
.admin-orders-heading p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.account-heading h2,
.admin-orders-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  line-height: 1.08;
}

.checkout-skeleton,
.account-skeleton {
  display: grid;
  gap: 32px;
  margin-top: 34px;
}

.checkout-skeleton {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.checkout-skeleton-list,
.checkout-skeleton-summary,
.account-skeleton > div,
.detail-skeleton {
  display: grid;
  gap: 12px;
}

.checkout-skeleton span,
.account-skeleton span,
.detail-skeleton span {
  display: block;
  min-height: 92px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--graphite) 84%, var(--white) 16%);
  animation: commerce-skeleton 1.05s ease-in-out infinite alternate;
}

.checkout-skeleton-summary span,
.detail-skeleton span {
  min-height: 48px;
}

.checkout-skeleton-summary span:first-child,
.account-skeleton > div:first-child span:first-child {
  min-height: 128px;
}

@keyframes commerce-skeleton {
  to { opacity: 0.48; }
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 34px;
}

.cart-products {
  min-width: 0;
}

.checkout-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.checkout-section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.checkout-section-heading > span,
.checkout-section-heading h2 span {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 500;
}

.checkout-layout .cart-list {
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.checkout-layout .cart-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.cart-item-info a {
  color: var(--white);
  font-weight: 760;
  text-decoration: none;
}

.cart-item-info a:hover {
  color: var(--accent-text);
}

.checkout-panel {
  top: 108px;
  padding: 28px;
  border-color: var(--line-strong);
}

.checkout-summary-heading {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-heading > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.checkout-summary-heading span,
.checkout-summary-heading small {
  color: var(--muted);
}

.checkout-summary-heading strong {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
}

.checkout-fieldset {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 0;
  margin: 0;
  border: 0;
}

.checkout-fieldset legend,
.order-manage-form h4 {
  padding: 0;
  margin: 0 0 2px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
}

.delivery-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.delivery-method {
  display: grid;
  min-height: 68px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklch, var(--void) 76%, var(--graphite));
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.delivery-method:hover,
.delivery-method:has(input:checked) {
  border-color: var(--brand-blue);
  background: color-mix(in oklch, var(--graphite) 84%, var(--brand-blue) 16%);
}

.delivery-method input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.delivery-method span,
.delivery-method b,
.delivery-method small {
  display: block;
}

.delivery-method b {
  color: var(--white);
  font-size: 0.79rem;
}

.delivery-method small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.68rem;
}

.delivery-map-slot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line-strong);
}

.delivery-map-slot > svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 1.5;
}

.delivery-map-slot strong,
.delivery-map-slot span {
  display: block;
}

.delivery-map-slot strong {
  font-size: 0.78rem;
}

.delivery-map-slot span {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.68rem;
  line-height: 1.35;
}

.payment-preview {
  padding: 16px;
  border-left: 2px solid var(--brand-blue);
  background: color-mix(in oklch, var(--graphite) 78%, var(--brand-blue) 7%);
}

.payment-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.payment-preview span {
  color: var(--muted);
  font-size: 0.75rem;
}

.payment-preview strong {
  font-size: 0.78rem;
}

.payment-preview p {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.55;
}

.checkout-submit {
  width: 100%;
  justify-content: space-between;
}

.order-success {
  margin-top: 34px;
}

.success-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--commerce-success);
  color: var(--commerce-success-text);
  font-size: 1.2rem;
}

.account-orders-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4vw, 48px);
}

.account-order-list {
  gap: 14px;
  margin-top: 0;
  background: transparent;
}

.account-order-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--graphite);
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-card-top strong,
.order-card-top small {
  display: block;
}

.order-card-top small {
  margin-top: 5px;
  color: var(--subtle);
}

.order-card-meta,
.inspector-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-card-meta div,
.inspector-facts div {
  min-width: 0;
}

.order-card-meta dt,
.inspector-facts dt {
  margin-bottom: 5px;
  color: var(--subtle);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.order-card-meta dd,
.inspector-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 0.77rem;
  line-height: 1.45;
}

.order-card-meta dd small,
.inspector-facts dd small {
  display: block;
  margin-top: 4px;
  color: var(--accent-text);
  font-size: 0.68rem;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 20px 0 18px;
  margin: 0;
  list-style: none;
}

.order-progress li {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--subtle);
  font-size: 0.64rem;
}

.order-progress li::after {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 0;
  left: 12px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.order-progress li:last-child::after {
  display: none;
}

.order-progress i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--graphite);
}

.order-progress li.is-complete,
.order-progress li.is-current {
  color: var(--white);
}

.order-progress li.is-complete::after {
  background: var(--brand-blue);
}

.order-progress li.is-complete i,
.order-progress li.is-current i {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.order-state-message {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  margin: 18px 0;
  border-top: 1px solid color-mix(in oklch, var(--commerce-danger) 55%, var(--line));
  border-bottom: 1px solid color-mix(in oklch, var(--commerce-danger) 55%, var(--line));
  color: var(--commerce-danger-text);
}

.order-state-message span {
  color: var(--muted);
  font-size: 0.78rem;
}

.tracking-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 0;
  font-size: 0.78rem;
}

.tracking-line span {
  color: var(--subtle);
}

.order-details-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
}

.account-orders-layout > aside .profile-list {
  grid-template-columns: 1fr;
}

.order-details {
  padding-top: 20px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.order-detail-grid h3,
.inspector-section h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
}

.order-detail-items,
.order-history {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-detail-items li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
}

.order-item-media {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.order-detail-items img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
}

.order-detail-items strong,
.order-detail-items span,
.order-item-link {
  display: block;
}

.order-detail-items span {
  margin-top: 3px;
  color: var(--subtle);
}

.order-item-link {
  color: var(--white);
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.order-item-link:hover,
.order-item-link:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-item-media:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.order-comment {
  margin-top: 18px;
  padding: 14px;
  background: color-mix(in oklch, var(--void) 70%, var(--graphite));
}

.order-comment span {
  color: var(--subtle);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.order-comment p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.order-history-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-history-item i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.order-history-item strong,
.order-history-item span,
.order-history-item small {
  display: block;
}

.order-history-item span {
  margin-top: 3px;
}

.order-history-item small {
  margin-top: 4px;
  color: var(--subtle);
}

.status-badge[data-status="processing"],
.status-badge[data-status="awaiting"],
.status-badge[data-status="pending"] {
  border-color: #d7b36a;
  color: var(--commerce-warning-text);
}

.status-badge[data-status="accepted"],
.status-badge[data-status="shipped"],
.status-badge[data-status="delivered"],
.status-badge[data-status="paid"] {
  border-color: var(--commerce-success);
  color: var(--commerce-success-text);
}

.admin-orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}

.admin-page .commerce-main {
  width: min(calc(100% - 48px), 1440px);
}

.admin-orders-layout > div {
  min-width: 0;
}

.admin-orders-heading {
  align-items: end;
  padding-top: 6px;
}

.admin-orders-heading .commerce-field {
  width: min(240px, 100%);
}

.admin-orders-table {
  min-width: 0;
  table-layout: fixed;
}

.admin-orders-layout .admin-table-wrap {
  overflow-x: hidden;
}

.admin-orders-table th,
.admin-orders-table td {
  padding-inline: 10px;
  overflow-wrap: anywhere;
}

.admin-orders-table th:nth-child(1) { width: 18%; }
.admin-orders-table th:nth-child(2) { width: 24%; }
.admin-orders-table th:nth-child(3) { width: 21%; }
.admin-orders-table th:nth-child(4) { width: 15%; }
.admin-orders-table th:nth-child(5) { width: 22%; }

.admin-order-row {
  cursor: pointer;
  transition: background-color 140ms ease, outline-color 140ms ease;
}

.admin-order-row:hover,
.admin-order-row.is-selected {
  background: color-mix(in oklch, var(--graphite) 80%, var(--brand-blue) 9%);
}

.admin-order-row.is-selected td:first-child {
  box-shadow: inset 2px 0 var(--brand-blue);
}

.admin-order-row:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
}

.order-inspector {
  position: sticky;
  top: 108px;
  min-height: 300px;
  padding: 24px;
  overflow-anchor: none;
}

.order-inspector-empty {
  display: grid;
  min-height: 250px;
  place-content: center;
  text-align: center;
}

.order-inspector-empty p {
  max-width: 32ch;
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.55;
}

.order-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.order-inspector-head span:first-child {
  color: var(--subtle);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.order-inspector-head h3 {
  margin: 5px 0 0;
  font-size: 1.15rem;
}

.inspector-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.inspector-facts a {
  color: var(--accent-text);
}

.inspector-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.inspector-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.order-manage-form {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.order-manage-actions {
  display: grid;
  gap: 10px;
}

.commerce-footer a:hover,
.commerce-footer a:focus-visible {
  color: var(--accent-text);
}

@media (max-width: 1200px) {
  .admin-orders-layout {
    grid-template-columns: 1fr;
  }

  .order-inspector {
    position: static;
  }
}

@media (max-width: 1120px) {
  .checkout-layout,
  .checkout-skeleton {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 30px;
  }

  .admin-orders-layout {
    grid-template-columns: 1fr;
  }

  .order-inspector {
    position: static;
  }
}

@media (max-width: 960px) {
  .checkout-layout,
  .checkout-skeleton,
  .account-orders-layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }

  .account-orders-layout > aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .catalog-page .theme-toggle,
  .catalog-page .motion-toggle,
  .product-page .theme-toggle,
  .product-page .motion-toggle {
    width: 36px;
    flex-basis: 36px;
  }

  .catalog-page .header-actions,
  .product-page .header-actions,
  .preference-controls {
    gap: 0;
  }

  .checkout-section-heading,
  .order-card-top {
    align-items: flex-start;
  }

  .checkout-section-heading {
    flex-direction: column;
    gap: 6px;
  }

  .checkout-panel,
  .account-order-card,
  .order-inspector {
    padding: 20px;
  }

  .delivery-methods,
  .account-orders-layout > aside,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .delivery-method {
    min-height: 60px;
  }

  .delivery-map-slot {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .delivery-map-slot .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .order-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-progress li span {
    max-width: 9ch;
    font-size: 0.58rem;
  }

  .admin-orders-heading .commerce-field {
    width: 100%;
  }

  .admin-orders-table,
  .admin-orders-table tbody,
  .admin-orders-table tr,
  .admin-orders-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-orders-table thead {
    display: none;
  }

  .admin-orders-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .admin-orders-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border: 0;
    text-align: right;
  }

  .admin-orders-table td[data-label]::before {
    color: var(--subtle);
    content: attr(data-label);
    font-size: 0.68rem;
    text-align: left;
    text-transform: uppercase;
  }

  .admin-order-row.is-selected td:first-child {
    box-shadow: none;
  }
}

@media (max-width: 460px) {
  .order-card-top {
    flex-direction: column;
  }

  .order-card-meta,
  .inspector-facts {
    grid-template-columns: 1fr;
  }

  .order-progress li span {
    overflow: hidden;
    width: 7ch;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-skeleton span,
  .account-skeleton span,
  .detail-skeleton span {
    animation: none;
  }
}

:root[data-motion="off"] .checkout-skeleton span,
:root[data-motion="off"] .account-skeleton span,
:root[data-motion="off"] .detail-skeleton span {
  animation: none;
}

/* One site-wide header. The equal side columns keep the wordmark on the
   geometric centre line even when navigation and account controls differ. */
.app-header.unified-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: 100px;
  border-bottom: 1px solid rgba(105, 190, 214, 0.22);
  background: rgba(0, 0, 0, 0.96);
  color: #f5f7f8;
  color-scheme: dark;
  backdrop-filter: blur(14px);
}

.unified-header .header-inner {
  display: grid;
  position: relative;
  width: min(calc(100% - 60px), 1860px);
  min-height: 100px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}

.unified-header .brand {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  color: #f5f7f8;
}

.unified-header .brand-word {
  color: #f5f7f8;
  font-size: 1.52rem;
  font-weight: 880;
  letter-spacing: 0.035em;
  line-height: 1;
}

.unified-header .header-nav {
  display: flex;
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
  gap: 16px;
}

.unified-header .header-nav a,
.unified-header .header-nav button {
  display: inline-flex;
  position: relative;
  min-height: 100px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 248, 0.72);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.unified-header .header-nav a:hover,
.unified-header .header-nav a:focus-visible,
.unified-header .header-nav button:hover,
.unified-header .header-nav button:focus-visible,
.unified-header .header-nav .is-current {
  color: #f5f7f8;
}

.unified-header .header-nav .is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand-blue);
  content: "";
}

.unified-header .header-nav .header-mobile-only {
  display: none;
}

.unified-header .header-actions {
  display: flex;
  min-width: 0;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.unified-header .header-search-link {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  color: rgba(245, 247, 248, 0.72);
  cursor: pointer;
}

.unified-header .header-search-link:hover,
.unified-header .header-search-link:focus-visible,
.unified-header .header-search-link[aria-expanded="true"] {
  background: #091113;
  color: #f5f7f8;
}

.unified-header .header-search-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.unified-header .header-account-link:not(.header-favorites-link) {
  color: rgba(245, 247, 248, 0.72);
}

.unified-header .header-favorites-link,
.unified-header .selection-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 7px 0 11px;
  border: 1px solid rgba(105, 190, 214, 0.34);
  border-radius: 0;
  background: transparent;
  color: #f5f7f8;
  font-size: 0.84rem;
  font-weight: 740;
  text-decoration: none;
  transition:
    border-color var(--fast) ease,
    background-color var(--fast) ease,
    color var(--fast) ease;
}

.unified-header .header-favorites-link:hover,
.unified-header .header-favorites-link:focus-visible,
.unified-header .selection-button:hover,
.unified-header .selection-button:focus-visible {
  border-color: var(--brand-blue);
  background: #091113;
  color: #f5f7f8;
}

.unified-header .header-favorites-link svg,
.unified-header .selection-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.unified-header .header-favorites-link strong,
.unified-header .selection-button strong {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding-inline: 5px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--brand-blue);
  color: #010304;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.favorites-page .unified-header .header-favorites-link,
.checkout-page .unified-header .selection-button {
  border-color: var(--brand-blue);
}

.unified-header .header-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.unified-header .header-menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: #f5f7f8;
  transition: opacity 160ms ease, transform 160ms ease;
}

.unified-header .header-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.unified-header .header-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.unified-header .header-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.unified-header .header-search-panel {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 16px max(30px, calc((100vw - 1860px) / 2));
  border-bottom: 1px solid rgba(105, 190, 214, 0.22);
  background: #000;
}

.unified-header .header-search-panel[hidden] { display: none; }

.unified-header .header-search-form,
.unified-header .product-header-search-form {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 12px;
  margin: 0;
}

.unified-header .header-search-form .search-field,
.unified-header .product-header-search-form .search-field {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  border: 1px solid rgba(105, 190, 214, 0.42);
  border-radius: 0;
  background: #091113;
}

.unified-header .header-search-panel input { color: #f5f7f8; }
.unified-header .header-search-panel input::placeholder { color: rgba(245, 247, 248, 0.62); }

.unified-header .header-search-close,
.unified-header .header-search-submit {
  min-height: 48px;
  border-radius: 0;
  cursor: pointer;
}

.unified-header .header-search-close {
  width: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid rgba(105, 190, 214, 0.42);
  background: transparent;
  color: #f5f7f8;
  font-size: 1.6rem;
}

.unified-header .header-search-submit {
  min-width: 82px;
  padding: 0 16px;
  border: 1px solid var(--brand-blue);
  background: var(--brand-blue);
  color: #010304;
  font-weight: 780;
}

.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1440px) {
  .unified-header .header-inner {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .unified-header .header-menu-toggle {
    display: block;
    grid-column: 1;
  }

  .unified-header .brand {
    position: absolute;
    left: 50%;
    grid-column: auto;
    translate: -50% 0;
  }

  .unified-header .header-actions { grid-column: 3; }

  .unified-header .header-nav {
    display: none;
    position: absolute;
    z-index: 2;
    top: 100px;
    right: -30px;
    left: -30px;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 12px 30px 18px;
    border-bottom: 1px solid rgba(105, 190, 214, 0.22);
    background: #000;
  }

  .unified-header .header-nav.is-open { display: grid; }

  .unified-header .header-nav a,
  .unified-header .header-nav button {
    min-height: 52px;
    border-bottom: 1px solid rgba(105, 190, 214, 0.18);
    font-size: 0.92rem;
    text-align: left;
  }

  .unified-header .header-nav .is-current::after { display: none; }
  .unified-header .header-nav .header-mobile-only { display: inline-flex; }
}

@media (max-width: 740px) {
  .app-header.unified-header,
  .unified-header .header-inner { min-height: 70px; }

  .unified-header .header-inner { width: calc(100% - 30px); }
  .unified-header .brand-word { font-size: 0.94rem; letter-spacing: 0.015em; }
  .unified-header .header-nav { top: 70px; right: -15px; left: -15px; padding-inline: 15px; }
  .unified-header .header-actions,
  .unified-header .preference-controls { gap: 0; }
  .unified-header .theme-toggle,
  .unified-header .motion-toggle { width: 36px; flex-basis: 36px; }
  .unified-header .header-account-link { width: 38px; padding: 0; justify-content: center; }
  .unified-header .header-account-link [data-account-label],
  .unified-header .header-account-link [data-favorites-label],
  .unified-header .selection-button > span { display: none; }
  .unified-header .header-favorites-link,
  .unified-header .selection-button {
    width: auto;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 4px;
    padding-inline: 5px;
    border: 0;
  }
  .unified-header .header-favorites-link strong,
  .unified-header .selection-button strong { min-width: 22px; height: 22px; padding-inline: 3px; }
  .unified-header .header-search-panel { min-height: 74px; padding: 12px 15px; }
  .heading-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .unified-header .header-account-link { display: none; }

  .unified-header .header-nav > .preference-controls {
    display: flex;
    min-height: 58px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(105, 190, 214, 0.18);
  }

  .unified-header .header-nav .preference-controls > .theme-toggle,
  .unified-header .header-nav .preference-controls > .motion-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    place-items: center;
    background: transparent;
  }
}

@media (max-width: 360px) {
  .unified-header .brand-word { font-size: 0.78rem; }
  .unified-header .header-search-link { width: 36px; flex-basis: 36px; }
}

/* Keep every desktop footer column aligned to the same top edge. The older
   footer-notes utility intentionally pushed its content to the bottom. */
.catalog-page .footer-contacts,
.product-page .footer-contacts {
  align-self: start;
  justify-content: flex-start;
  padding-top: 0;
  margin-top: 0;
}

/* Product results get a calmer bottom-up entrance without slowing unrelated
   page, form and navigation motion. */
@keyframes gamimarket-product-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html[data-motion="on"] .catalog-page .product-card.reveal-inserted {
  animation: gamimarket-product-rise 390ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-order, 0) * 34ms);
}

@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] .catalog-page .product-card.reveal-inserted {
    animation: none;
  }
}

/* Account workspace */
.account-page .commerce-main {
  width: min(calc(100% - 56px), 1380px);
  padding-top: 52px;
}

.account-page .account-heading {
  display: block;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.account-identity {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.account-avatar {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--graphite);
  color: var(--accent-text);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
}

.account-eyebrow,
.account-section-kicker {
  display: block;
  color: var(--accent-text);
  font-size: 0.67rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-page .account-heading h1 {
  margin-top: 7px;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.account-page .account-heading p {
  max-width: none;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.account-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(38px, 5vw, 66px);
  align-items: start;
  margin-top: 36px;
}

.account-navigation {
  position: sticky;
  top: 124px;
  min-width: 0;
}

.account-tabs {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 0;
}

.account-tabs button {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 22px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.account-tabs button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.account-tabs button > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-tabs button strong {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 780;
}

.account-tabs button small {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 520;
  line-height: 1.35;
}

.account-tabs button > i {
  color: var(--subtle);
  font-size: 1.15rem;
  font-style: normal;
  line-height: 1;
  transition: transform 160ms ease;
}

.account-tabs button:hover,
.account-tabs button:focus-visible,
.account-tabs button.is-active {
  color: var(--white);
}

.account-tabs button:hover {
  background: color-mix(in oklch, var(--graphite) 78%, transparent);
}

.account-tabs button.is-active {
  border-color: var(--line);
  background: var(--graphite);
  box-shadow: inset 2px 0 var(--brand-blue);
}

.account-tabs button.is-active > i {
  color: var(--accent-text);
  transform: translateX(2px);
}

.account-tabs button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.account-sidebar-actions {
  display: grid;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.account-nav-action {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 680;
  text-align: left;
  text-decoration: none;
}

.account-nav-action:hover,
.account-nav-action:focus-visible {
  background: var(--graphite);
  color: var(--white);
}

.account-nav-action:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.account-panels {
  min-width: 0;
  margin: 0;
}

.account-tab-panel[hidden] {
  display: none;
}

.account-content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.account-content-heading h2,
.account-panel-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.account-content-heading h2 small {
  display: inline;
  margin-left: 8px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0;
  white-space: nowrap;
}

.account-content-heading > p {
  max-width: 39ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.account-order-list {
  margin-top: 0;
}

.account-page .account-order-card {
  padding: clamp(20px, 2.5vw, 28px);
}

.account-page .order-card-top > div > strong {
  font-size: 1rem;
}

.account-page .order-card-top small {
  font-size: 0.72rem;
}

.account-page .order-progress li {
  font-size: 0.7rem;
}

.order-progress-summary {
  display: none;
}

.order-next-step {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.order-next-step > div {
  display: grid;
  gap: 4px;
}

.order-next-step span {
  color: var(--accent-text);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.order-next-step strong {
  max-width: 64ch;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 660;
  line-height: 1.5;
}

.order-next-step > small {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 0.66rem;
  white-space: nowrap;
}

.account-page .order-card-meta dd {
  font-size: 0.81rem;
}

.order-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 16px;
}

.order-card-actions > a,
.order-card-actions .order-details-toggle {
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 680;
  text-decoration: none;
}

.order-card-actions > a:hover,
.order-card-actions > a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-card-actions .order-details-toggle {
  width: auto;
  gap: 10px;
  padding: 0;
}

.order-details-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.order-details-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.account-inline-error {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  border: 1px solid color-mix(in oklch, var(--commerce-danger) 54%, var(--line));
  background: color-mix(in oklch, var(--graphite) 94%, var(--commerce-danger) 6%);
}

.account-inline-error strong {
  font-size: 0.92rem;
}

.account-inline-error p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.account-orders-error {
  min-height: 220px;
  align-content: center;
}

.account-empty-state {
  min-height: 320px;
  align-content: center;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.account-settings-panel {
  padding: clamp(26px, 4vw, 44px);
}

.account-panel-heading {
  display: block;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.account-panel-heading > p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.account-settings-panel .commerce-form {
  margin-top: 30px;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-confirmation {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.account-confirmation > div {
  align-self: start;
}

.account-confirmation > div > strong {
  font-size: 0.84rem;
}

.account-confirmation > div > p {
  max-width: 42ch;
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 0.73rem;
  line-height: 1.55;
}

.account-confirm-field {
  max-width: none;
}

.account-form-actions {
  display: flex;
  padding-top: 4px;
}

.account-form-actions .commerce-button {
  min-width: 210px;
}

.account-security-panel {
  max-width: none;
}

.account-security-panel .commerce-form {
  max-width: 620px;
}

@media (max-width: 900px) {
  .account-page .commerce-main {
    width: calc(100% - 30px);
  }

  .account-workspace {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .account-navigation {
    position: static;
  }

  .account-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
  }

  .account-tabs button {
    min-height: 66px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    background: var(--void);
  }

  .account-tabs button.is-active {
    background: var(--graphite);
    box-shadow: inset 0 -2px var(--brand-blue);
  }

  .account-tabs button > i {
    display: none;
  }

  .account-sidebar-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    margin-top: 10px;
  }

  .account-nav-action {
    width: auto;
    min-width: 150px;
  }
}

@media (max-width: 740px) {
  .account-page .commerce-main {
    padding-top: 36px;
  }

  .account-page .account-heading {
    padding-bottom: 24px;
  }

  .account-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .account-avatar {
    width: 54px;
    height: 54px;
    font-size: 1.25rem;
  }

  .account-page .account-heading h1 {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .account-tabs button {
    min-height: 58px;
    padding: 10px;
  }

  .account-tabs button small {
    display: none;
  }

  .account-content-heading {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .account-content-heading h2 small {
    display: block;
    margin: 6px 0 0;
  }

  .account-settings-panel {
    padding: 24px 20px;
  }

  .account-profile-grid,
  .account-confirmation {
    grid-template-columns: 1fr;
  }

  .account-confirmation {
    gap: 18px;
  }

  .order-next-step {
    display: grid;
    gap: 8px;
  }

  .order-next-step > small {
    white-space: normal;
  }

  .order-card-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .order-card-actions .order-details-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .order-card-actions > a {
    align-self: flex-start;
  }

  .account-form-actions .commerce-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .account-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    font-size: 0.74rem;
    text-align: center;
  }

  .account-tabs button svg {
    display: none;
  }

  .account-tabs button strong {
    overflow: visible;
    font-size: 0.7rem;
    text-overflow: clip;
    white-space: normal;
  }

  .account-sidebar-actions {
    justify-content: stretch;
  }

  .account-nav-action {
    width: 100%;
    min-width: 0;
  }

  .account-page .order-progress {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .order-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 16px;
  }

  .order-progress-summary span {
    color: var(--subtle);
    font-size: 0.68rem;
  }

  .order-progress-summary strong {
    color: var(--white);
    font-size: 0.78rem;
  }

  .order-next-step {
    border-top: 0;
  }
}

/* Promo-code management stays inline so admins can compare the form and the
   existing codes without opening nested modals. */
.promo-admin-layout {
  display: grid;
  gap: 24px;
}

.promo-editor-panel {
  width: 100%;
  max-width: 920px;
  justify-self: center;
}

.promo-panel-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.promo-panel-heading h2,
.promo-panel-heading p {
  margin: 0;
}

.promo-panel-heading p {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.promo-active-field {
  width: fit-content;
  align-items: start;
}

.promo-active-field > span {
  display: grid;
  gap: 3px;
}

.promo-active-field strong {
  color: var(--white);
  font-size: 0.82rem;
}

.promo-active-field small {
  color: var(--subtle);
  font-size: 0.72rem;
}

.promo-rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.promo-rule-grid .promo-active-field {
  width: 100%;
  min-height: 76px;
  padding-top: 10px;
}

.promo-form-actions,
.promo-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-table {
  min-width: 980px;
}

.promo-table td small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.promo-code-value {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.promo-rule-summary {
  display: block;
  max-width: 22ch;
  color: var(--muted-strong);
  font-size: 0.76rem;
  line-height: 1.45;
}

.promo-row-actions {
  justify-content: flex-end;
}

.promo-row-actions .commerce-button {
  min-height: 40px;
  padding-inline: 13px;
  font-size: 0.74rem;
}

.status-badge[data-status="active"] {
  border-color: var(--commerce-success);
  color: var(--commerce-success-text);
}

.status-badge[data-status="expired"],
.status-badge[data-status="exhausted"] {
  border-color: var(--commerce-danger);
  color: var(--commerce-danger-text);
}

.status-badge[data-status="inactive"] {
  color: var(--subtle);
}

/* Pricing controls keep the global rule and the one-product override visible
   together, so an admin can understand which rule wins before saving. */
.pricing-admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-global-panel,
.pricing-editor-panel,
.pricing-list-panel {
  min-width: 0;
}

.pricing-list-panel {
  grid-column: 1 / -1;
}

.pricing-preview {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--brand-blue);
  background: color-mix(in oklch, var(--graphite) 88%, var(--brand-blue) 6%);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.markup-table {
  min-width: 760px;
}

.markup-table td small {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.markup-product-link {
  display: inline-block;
  max-width: 42ch;
  font-weight: 760;
}

.markup-value {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .pricing-admin-layout {
    grid-template-columns: 1fr;
  }

  .pricing-list-panel {
    grid-column: auto;
  }
}

/* Partners entry is deliberately secondary to cart and account actions. */
.header-partners-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 247, 248, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.header-partners-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-partners-button:hover,
.header-partners-button:focus-visible,
.header-partners-button[aria-expanded="true"] {
  border-color: rgba(105, 190, 214, 0.42);
  background: #091113;
  color: #f5f7f8;
}

.header-partners-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.partners-dialog {
  width: min(520px, calc(100vw - 30px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--graphite);
  color: var(--white);
  color-scheme: inherit;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}

.partners-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.partners-dialog[open] {
  animation: partners-dialog-in 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes partners-dialog-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.partners-dialog-shell {
  display: grid;
}

.partners-dialog-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.partners-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.partners-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  place-items: center;
}

.partners-dialog-close:hover,
.partners-dialog-close:focus-visible {
  border-color: var(--brand-blue);
  color: var(--white);
}

.partners-dialog-close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.partners-empty-state {
  display: grid;
  min-height: 230px;
  align-content: center;
  justify-items: center;
  padding: 38px 28px 44px;
  text-align: center;
}

.partners-empty-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(105, 190, 214, 0.46);
  color: var(--accent-text);
  font-size: 1.1rem;
  font-weight: 820;
  place-items: center;
}

.partners-empty-state strong {
  font-size: 1.08rem;
}

.partners-empty-state p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 740px) {
  .header-partners-button {
    width: 40px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
  }

  .header-partners-button span {
    display: none;
  }

  .promo-editor-panel,
  .promo-list-panel,
  .pricing-global-panel,
  .pricing-editor-panel,
  .pricing-list-panel {
    padding: 20px;
  }

  .promo-form-actions {
    display: grid;
  }

  .promo-rule-grid {
    grid-template-columns: 1fr;
  }

  .promo-table-wrap {
    overflow: hidden;
  }

  .promo-table,
  .promo-table tbody,
  .promo-table tr,
  .promo-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .promo-table thead {
    display: none;
  }

  .promo-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .promo-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border: 0;
    text-align: right;
  }

  .promo-table td[data-label]::before {
    color: var(--subtle);
    content: attr(data-label);
    font-size: 0.68rem;
    text-align: left;
    text-transform: uppercase;
  }

  .promo-table td:last-child,
  .promo-row-actions,
  .promo-row-actions .commerce-button {
    width: 100%;
  }

  .markup-table-wrap {
    overflow: hidden;
  }

  .markup-table,
  .markup-table tbody,
  .markup-table tr,
  .markup-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .markup-table thead {
    display: none;
  }

  .markup-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .markup-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border: 0;
    text-align: right;
  }

  .markup-table td[data-label]::before {
    color: var(--subtle);
    content: attr(data-label);
    font-size: 0.68rem;
    text-align: left;
    text-transform: uppercase;
  }

  .markup-table td:last-child {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-dialog[open] { animation: none; }
}

:root[data-motion="off"] .partners-dialog[open] {
  animation: none;
}
