/* Insight9 Dispatch Desk v3
   Full-site presentation layer. Business logic and route contracts remain unchanged. */

:root {
  --bg: #f3f5f2;
  --bg-subtle: #e9eeea;
  --surface: #ffffff;
  --surface-muted: #f7f9f7;
  --surface-strong: #17201b;
  --border: #d7dfd9;
  --border-strong: #aebbb2;
  --text: #17201b;
  --text-muted: #536159;
  --text-soft: #647169;
  --brand: #147a4b;
  --brand-dark: #0d5d39;
  --brand-soft: #e5f3eb;
  --info: #265ba6;
  --info-soft: #eaf0f9;
  --success: #147a4b;
  --success-soft: #e5f3eb;
  --warning: #925611;
  --warning-soft: #fff1dc;
  --danger: #ad3733;
  --danger-soft: #fdebea;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 27, 0.06);
  --shadow-md: 0 12px 34px rgba(23, 32, 27, 0.09);
  --shadow-lg: 0 24px 64px rgba(23, 32, 27, 0.14);
  --font-display: "Bahnschrift SemiCondensed", "Aptos Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-caption: 14px;
  --font-secondary: 15px;
  --font-body: 16px;
  --font-lead: 19px;
  --font-card-title: 22px;
  --font-section-title: 32px;
  --font-page-title: 38px;
  --font-hero-title: 56px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --nav-height: 68px;
  --max-width: 1280px;
  --t-fast: 140ms ease-out;
  --t-norm: 220ms ease-out;
}

html {
  font-size: 100%;
  color-scheme: light;
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.route-prerender {
  min-height: 100dvh;
}

.route-prerender .nav-logo {
  display: inline-flex;
  min-height: 44px;
  margin-bottom: var(--space-6);
  align-items: center;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.prerender-service-list {
  display: flex;
  margin-top: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.prerender-service-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

body::before,
.hero::after,
.hero-bg,
.marketplace-card::after {
  display: none;
}

*,
*::before,
*::after {
  letter-spacing: 0;
}

#app-main {
  min-height: calc(100dvh - var(--nav-height));
  outline: none;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.section { padding-block: 80px; }
.section-sm { padding-block: 52px; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
}

h1 { font-size: var(--font-page-title); }
h2 { font-size: var(--font-section-title); }
h3 { font-size: var(--font-card-title); }
h4 { font-size: 17px; }

p,
li,
dd,
dt,
label,
input,
textarea,
select,
button {
  font-size: var(--font-body);
}

p { text-wrap: pretty; }

small,
.small,
.form-hint,
.footer-bottom {
  font-size: var(--font-secondary);
  line-height: 1.55;
}

.lead {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: var(--font-lead);
  line-height: 1.62;
}

.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.kicker,
.section-index,
.detail-kicker,
.pc-brand-code {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-family: var(--font-sans);
  font-size: var(--font-caption);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid rgba(38, 91, 166, 0.42);
  outline-offset: 3px;
}

::selection {
  background: #cce6d7;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.nav.dispatch-nav {
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.dispatch-nav .nav-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: var(--nav-height);
  gap: 18px;
  padding-inline: 0;
}

.nav-logo {
  min-width: 146px;
  min-height: 48px;
  gap: 12px;
}

.nav-logo-mark,
.nav-logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.nav-brand-copy b {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}

.dispatch-nav-menu { gap: 2px; }
.nav-mobile-order { display: none; }

.nav-link {
  min-height: 44px;
  padding-inline: 13px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.nav-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-scrim { display: none; }

.nav-right { gap: 8px; }
.nav-toggle,
.user-avatar-btn { min-width: 44px; min-height: 44px; }

.user-avatar-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--surface);
  background: var(--bg-subtle);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.user-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform var(--t-fast);
}

.user-avatar-btn:hover { filter: none; }
.user-avatar-btn:hover .user-avatar-image { transform: scale(1.04); }

.user-dropdown {
  width: min(300px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.user-dropdown-email {
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: var(--font-secondary);
  overflow-wrap: anywhere;
}

.user-dropdown-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border);
}

.user-dropdown-identity img {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-dropdown-identity div { min-width: 0; }
.user-dropdown-identity span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.user-dropdown-identity strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
}

/* Buttons, badges, status and fields */
.btn {
  min-height: 44px;
  padding: 11px 18px;
  gap: 8px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.btn-lg { min-height: 50px; padding: 14px 22px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.btn:active { transform: translateY(1px); }

.btn-primary,
.marketplace-card .btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover,
.marketplace-card .btn-primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface-muted);
  color: var(--text);
}

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn:disabled { opacity: 0.52; }

.badge,
.supply-status,
.order-status-badge {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-caption);
  font-weight: 700;
  line-height: 1.25;
}

.badge-brand,
.badge-success,
.supply-status-stock { border-color: #b7d9c6; background: var(--success-soft); color: var(--brand-dark); }
.badge-warning,
.supply-status-deploy { border-color: #e8c895; background: var(--warning-soft); color: var(--warning); }
.supply-status-soldout { border-color: var(--border); background: var(--bg-subtle); color: var(--text-muted); }
.supply-status { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.badge-soft { border-color: var(--border); background: var(--surface-muted); color: var(--text-muted); }

.input,
.textarea,
select {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

.textarea { min-height: 118px; resize: vertical; }

.input:hover,
.textarea:hover,
select:hover { border-color: #839289; }

.input:focus,
.textarea:focus,
select:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(38, 91, 166, 0.13);
}

.form-group { margin-bottom: 24px; }
.form-label { margin-bottom: 8px; color: var(--text); font-size: 16px; font-weight: 700; }
.form-label .opt { color: var(--text-muted); font-size: var(--font-secondary); font-weight: 500; }
.form-hint { margin-top: 7px; color: var(--text-muted); }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.62;
}

.notice-info { border-color: #c8d6e9; background: var(--info-soft); color: #29486f; }
.notice-warning { border-color: #ead1a8; background: var(--warning-soft); color: #75440f; }
.notice-success { border-color: #b7d9c6; background: var(--success-soft); color: var(--brand-dark); }

/* Shared surfaces */
.card,
.modal-card,
.feature-card,
.home-stat-card,
.pipeline-card,
.doc-entry-card,
.user-panel,
.faq-item,
.comparison-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.card { padding: 24px; }

.page-header,
.doc-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.page-header .container,
.doc-hero { max-width: none; }

.page-header h1,
.doc-hero h1 {
  max-width: 24ch;
  font-size: var(--font-page-title) !important;
}

.page-header .lead,
.doc-hero > p {
  margin-top: 12px;
  max-width: 66ch;
}

.service-directory-header {
  padding-block: 34px 28px;
}
.service-directory-header h1 { margin-top: 14px; }
.service-directory-header .lead { margin-top: 8px; }
.service-directory-header + .dispatch-catalog { padding-top: 40px; }

/* Home hero */
.dispatch-hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #edf1ee;
  background-image: url("../img/visual/insight9-hero-desktop.png");
  background-image: image-set(
    url("../img/visual/insight9-hero-desktop-v2.webp") type("image/webp"),
    url("../img/visual/insight9-hero-desktop.png") type("image/png")
  );
  background-position: center center;
  background-size: cover;
}

.dispatch-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 54%;
  background: rgba(247, 249, 247, 0.72);
}

.dispatch-hero-inner {
  padding-block: 48px;
}

.dispatch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: 64px;
  align-items: start;
}

.dispatch-hero-copy {
  max-width: 640px;
  padding: 0;
}

.dispatch-overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.dispatch-hero h1 {
  max-width: 640px;
  color: var(--text);
  font-size: var(--font-hero-title);
  line-height: 1.04;
}

.dispatch-hero h1 > span { display: block; }

.dispatch-title-accent { color: var(--brand-dark); }

.dispatch-lead {
  max-width: 56ch;
  margin-top: 22px;
  color: #405048;
  font-size: var(--font-lead);
  line-height: 1.68;
}

.dispatch-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-supply-board {
  width: 100%;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(151, 163, 155, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px) saturate(108%);
  backdrop-filter: blur(10px) saturate(108%);
}

.hero-supply-header {
  min-height: 70px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 246, 243, 0.72);
}

.hero-supply-brand img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero-supply-brand small { color: var(--text-muted); font-size: var(--font-caption); }
.hero-supply-brand strong { color: var(--text); font-size: 16px; }
.hero-supply-sync { color: var(--brand-dark); font-size: var(--font-caption); }
.hero-supply-sync .live-dot { background: var(--success); box-shadow: none; }
.hero-supply-sync.is-syncing,
.hero-supply-sync.is-stale { color: var(--warning); }
.hero-supply-sync.is-syncing .live-dot,
.hero-supply-sync.is-stale .live-dot { background: var(--warning); }
.hero-supply-sync.is-error { color: var(--danger); }
.hero-supply-sync.is-error .live-dot { background: var(--danger); }

.hero-supply-list { background: transparent; }

.hero-supply-row {
  grid-template-columns: 16px minmax(0, 1fr) max-content max-content;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.hero-supply-row:hover { background: rgba(244, 246, 243, 0.9); }
.hero-supply-code {
  width: 10px;
  height: 34px;
  border-radius: 3px;
  background: var(--brand-accent, var(--brand));
}
.catalog-product-card .pc-brand-lockup {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.catalog-product-card .pc-category { display: block; width: auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hero-supply-name strong { color: var(--text); font-size: 15px; }
.hero-supply-name small { color: var(--text-muted); font-size: 14px; }
.hero-supply-metric {
  display: grid;
  gap: 1px;
  min-width: 48px;
  text-align: right;
  white-space: nowrap;
}
.hero-supply-metric small {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.hero-supply-metric strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.hero-supply-state:not(.is-soldout) strong { color: var(--brand-dark); }
.hero-supply-state.is-soldout strong { color: var(--text-muted); }
.hero-supply-state.is-unverified strong { color: var(--warning); }
.hero-supply-empty { color: var(--text-muted); font-size: 14px; }

.hero-supply-footer {
  min-height: 48px;
  padding: 10px 14px;
  background: rgba(244, 246, 243, 0.72);
  color: var(--text-muted);
  font-size: var(--font-caption);
}

.hero-board-action { min-height: 44px; color: var(--brand-dark); font-size: 14px; }
.hero-supply-footer-actions { display: inline-flex; align-items: center; gap: 8px; }
.hero-sync-retry {
  padding-inline: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--warning);
}

.dispatch-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(151, 163, 155, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px) saturate(105%);
  backdrop-filter: blur(8px) saturate(105%);
}

.dispatch-ledger .home-stat-card {
  min-height: 80px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.dispatch-ledger .home-stat-card:last-child { border-right: 0; }
.dispatch-ledger .home-stat-card span,
.dispatch-ledger .home-stat-card small { color: var(--text-muted); font-size: var(--font-caption); }
.dispatch-ledger .home-stat-card strong { margin-block: 3px; color: var(--text); font-size: 22px; }

.home-fulfillment-proof {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.fulfillment-proof-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  min-height: 82px;
  gap: 28px;
  padding-block: 14px;
}

.fulfillment-proof-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.fulfillment-proof-heading > span {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b9d8c6;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.fulfillment-proof-heading > div { display: grid; min-width: 0; gap: 2px; }
.fulfillment-proof-heading strong { color: var(--text); font-size: 15px; }
.fulfillment-proof-heading small,
.fulfillment-proof-empty { color: var(--text-muted); font-size: var(--font-caption); line-height: 1.55; }
.fulfillment-proof-empty { margin: 0; }

.fulfillment-proof-layout ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.fulfillment-proof-layout li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 2px 9px;
  padding: 4px 16px;
  border-left: 1px solid var(--border);
}

.fulfillment-proof-layout li strong,
.fulfillment-proof-layout li small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fulfillment-proof-layout li strong { color: var(--text); font-size: 14px; }
.fulfillment-proof-layout li small { grid-column: 2; color: var(--text-muted); font-size: var(--font-caption); }
.fulfillment-proof-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Catalog */
.dispatch-catalog { padding-top: 72px; background: var(--bg); }
.dispatch-hero + .dispatch-catalog { padding-top: 56px; }

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-heading-row > div { min-width: 0; }
.section-heading-row h2 { max-width: 22ch; margin-bottom: 8px; }
.section-heading-row p { max-width: 62ch; color: var(--text-muted); font-size: 16px; }

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}

.catalog-control-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.catalog-filter-panel { display: grid; min-width: 0; }
.catalog-filter-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.catalog-filter-header > div { display: grid; gap: 3px; min-width: 0; }
.catalog-filter-header strong { font-size: 17px; line-height: 1.35; }
.catalog-filter-header span { color: var(--text-muted); font-size: 14px; }
.catalog-filter-header .catalog-filter-kicker {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}
.catalog-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(132px, 1fr)) max-content minmax(190px, 1.25fr) minmax(145px, 1fr);
  align-items: end;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.catalog-filter-search,
.catalog-filter-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.catalog-filter-search > span,
.catalog-filter-field > span,
.catalog-price-range legend {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}
.catalog-filter-search input,
.catalog-filter-field select,
.catalog-price-range input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.catalog-filter-search input,
.catalog-price-range input { padding: 9px 11px; }
.catalog-filter-field select { padding: 8px 34px 8px 11px; }
.catalog-filter-search input:focus-visible,
.catalog-filter-field select:focus-visible,
.catalog-price-range input:focus-visible,
.catalog-stock-toggle:focus-within {
  border-color: var(--brand);
  outline: 2px solid color-mix(in srgb, var(--brand) 22%, transparent);
  outline-offset: 1px;
}
.catalog-stock-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.catalog-stock-toggle input { width: 17px; height: 17px; accent-color: var(--brand-dark); }
.catalog-price-range {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.catalog-price-range legend { grid-column: 1 / -1; margin-bottom: 6px; }
.catalog-price-range > span { color: var(--text-soft); }
.pc-price-pending { color: var(--text-muted); font-size: 14px; font-weight: 750; white-space: nowrap; }
.catalog-filter-reset {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
}
.catalog-filter-reset:disabled { color: var(--text-soft); cursor: default; opacity: 0.62; }
.catalog-filter-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.catalog-filter-row.is-primary {
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 68px;
  border-bottom: 0;
}
.catalog-filter-row.is-primary .catalog-filter-label {
  color: var(--text);
  font-size: 15px;
}
.catalog-filter-row.is-primary .catalog-filter-options { padding-block: 11px; }
.catalog-filter-row.is-primary .catalog-filter-option {
  min-width: 138px;
  justify-content: space-between;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.catalog-filter-row.is-primary .catalog-filter-option:hover:not(:disabled) { border-color: var(--border-strong); }
.catalog-filter-row.is-primary .catalog-filter-option.is-active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}
.catalog-filter-row.is-series-navigation {
  grid-template-columns: 118px minmax(0, 1fr);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface));
}
.catalog-filter-row.is-series-navigation .catalog-filter-options {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.catalog-filter-row.is-series-navigation .catalog-filter-option { flex: 0 0 auto; }
.catalog-filter-label { padding: 12px 18px; color: var(--text-muted); font-size: 14px; font-weight: 700; }
.catalog-filter-options { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; padding: 7px 12px; border-left: 1px solid var(--border); }
.catalog-filter-option {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.catalog-filter-option small {
  display: inline-grid;
  min-width: 23px;
  min-height: 23px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}
.catalog-filter-option:hover:not(:disabled) { border-color: var(--border); background: var(--surface-muted); color: var(--text); }
.catalog-filter-option.is-active { border-color: var(--text); background: var(--text); color: #ffffff; }
.catalog-filter-option.is-active small { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.catalog-filter-option:disabled { cursor: not-allowed; opacity: 0.42; }

.catalog-quote-count {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-filter-disclosure {
  border-top: 1px solid var(--border);
}
.catalog-filter-disclosure > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.catalog-filter-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-filter-disclosure > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.catalog-filter-disclosure > summary strong { font-size: 15px; }
.catalog-filter-disclosure > summary small { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.catalog-filter-disclosure-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.catalog-filter-disclosure-state::after {
  content: "＋";
  width: 20px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}
.catalog-filter-disclosure[open] .catalog-filter-disclosure-state::after { content: "−"; }
.catalog-filter-disclosure > summary:hover { background: var(--surface-muted); }
.catalog-filter-disclosure > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.catalog-filter-advanced { border-top: 1px solid var(--border); }
.catalog-filter-advanced .catalog-filter-row:last-child { border-bottom: 0; }

@media (max-width: 1180px) {
  .catalog-filter-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-filter-search { grid-column: span 2; }
  .catalog-price-range { grid-column: span 2; }
}

@media (max-width: 760px) {
  .catalog-filter-row.is-series-navigation {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-filter-row.is-series-navigation .catalog-filter-label {
    padding: 10px 12px 4px;
  }
  .catalog-filter-row.is-series-navigation .catalog-filter-options {
    padding: 6px 12px 12px;
    border-left: 0;
  }
  .catalog-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
  }
  .catalog-filter-search,
  .catalog-price-range { grid-column: 1 / -1; }
  .catalog-stock-toggle { justify-content: center; }
  .catalog-sort-field { grid-column: span 1; }
}

.category-rail {
  position: static;
  display: flex;
  min-width: 0;
  gap: 4px;
  margin: 0;
  padding: 7px;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
}

.category-rail .product-tab {
  min-height: 44px;
  padding: 9px 13px;
  border-color: transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.category-rail .product-tab:hover { border-color: var(--border); background: var(--surface-muted); color: var(--text); }
.category-rail .product-tab.active { border-color: var(--text); background: var(--text); color: #ffffff; }
.category-swatch { width: 9px; height: 9px; }

.catalog-manifest-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content) minmax(150px, max-content);
  align-self: stretch;
  justify-content: end;
  border-top: 1px solid var(--border);
  border-left: 0;
}

.catalog-manifest-meta > span {
  display: grid;
  min-width: 72px;
  padding: 8px 14px;
  align-content: center;
  border-left: 1px solid var(--border);
}

.catalog-manifest-meta > span:first-child { border-left: 0; }
.catalog-manifest-meta small { color: var(--text-muted); font-size: 14px; line-height: 1.2; }
.catalog-manifest-meta strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.catalog-manifest-meta .catalog-sync-fact {
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 9px;
  min-width: 164px;
}

.catalog-sync-fact small,
.catalog-sync-fact strong { grid-column: 1; }
.catalog-sync-fact strong { font-family: var(--font-sans); font-size: 14px; }
.catalog-sync-fact[data-state="stale"] strong,
.catalog-sync-fact[data-state="syncing"] strong { color: var(--warning); }
.catalog-sync-fact[data-state="error"] strong { color: var(--danger); }
.catalog-sync-retry {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-inline: 0;
  align-items: stretch;
  border-top: 1px solid var(--border-strong);
}
.catalog-table-head + .product-grid { border-top: 0; }

.catalog-remainder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  min-height: 88px;
  margin-inline: 0;
  padding: 18px 32px;
  align-items: center;
  border-top: 1px solid var(--border-strong);
  background: var(--surface-muted);
}
.catalog-remainder p { display: grid; gap: 3px; margin: 0; }
.catalog-remainder strong { color: var(--text); font-size: 16px; }
.catalog-remainder span { color: var(--text-muted); font-size: 15px; }
.catalog-remainder .btn { min-height: 44px; }

.marketplace-card.catalog-product-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(118px, 0.28fr) minmax(118px, 0.25fr) minmax(118px, 0.3fr) minmax(210px, 0.48fr);
  grid-template-areas: "copy status commercial updated actions";
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 86px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color var(--t-fast);
}

.marketplace-card.catalog-product-card.has-offers { grid-template-areas: "copy status commercial updated actions"; }

.marketplace-card.catalog-product-card::before { display: none; }

.marketplace-card.catalog-product-card:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  transform: none;
}

.marketplace-card.catalog-product-card.is-unverified {
  background: color-mix(in srgb, var(--warning-soft) 32%, transparent);
}

.catalog-product-card .pc-topline {
  grid-area: status;
  display: flex;
  min-height: 100%;
  padding: 16px 18px;
  align-items: center;
  border-left: 1px solid var(--border);
}
.pc-brand-code {
  width: 12px;
  height: 12px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: var(--brand-accent, var(--brand));
}
.marketplace-card .pc-category { color: var(--text-muted); font-size: 15px; font-weight: 700; }
.supply-status-unverified { border-color: #e8c895; background: var(--warning-soft); color: var(--warning); }
.pc-price-note { display: block; margin-top: 3px; color: var(--warning); font-family: var(--font-sans); font-size: 14px; font-weight: 700; }

.product-sync-guard {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #ead1a8;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--warning);
}
.product-sync-guard strong { font-size: 14px; }
.product-sync-guard span { font-size: 14px; line-height: 1.45; }
.checkout-sync-guard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.checkout-sync-guard > div { min-width: 0; }
.checkout-sync-guard p { margin-top: 3px; color: inherit; font-size: 14px; }
.checkout-sync-guard .btn { flex: 0 0 auto; }
.account-sync-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.account-sync-warning > div { min-width: 0; }
.account-sync-warning p { margin-top: 3px; color: inherit; font-size: 14px; }
.account-sync-warning .btn { flex: 0 0 auto; }
.marketplace-card .pc-copy {
  grid-area: copy;
  min-width: 0;
  padding: 18px 24px;
}
.marketplace-card .pc-name { margin: 0; color: var(--text); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.marketplace-card .pc-subtitle { margin-top: 6px; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.marketplace-card .pc-badges { margin-top: 13px; }
.marketplace-card .pc-desc {
  display: -webkit-box;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marketplace-card .pc-features {
  grid-area: facts;
  display: grid;
  gap: 8px;
  min-height: 100%;
  margin: 0;
  padding: 22px 26px;
  align-content: center;
  border: 0;
  border-left: 1px solid var(--border);
}

.marketplace-card .pc-features li {
  padding-left: 16px;
  color: #405048;
  font-size: 15px;
  line-height: 1.5;
}

.marketplace-card .pc-features li::before { width: 6px; height: 6px; top: 8px; }

.marketplace-card .pc-specs {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100%;
  margin: 0;
  padding: 18px 24px;
  align-content: center;
  border-left: 1px solid var(--border);
}

.marketplace-card .pc-specs > div {
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.marketplace-card .pc-specs > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--border); }
.marketplace-card .pc-specs > div:nth-child(even) { padding-right: 0; }
.marketplace-card .pc-specs > div:nth-last-child(-n + 2) { border-bottom: 0; }
.marketplace-card .pc-specs dt { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.marketplace-card .pc-specs dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.marketplace-card .pc-bottom {
  grid-area: commercial;
  display: flex;
  min-height: 100%;
  margin: 0;
  padding: 16px 18px;
  align-items: center;
  border: 0;
  border-left: 1px solid var(--border);
}

.marketplace-card .pc-price .now,
.pc-price .now {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.marketplace-card .pc-stock { justify-content: flex-start; color: var(--text-muted); font-size: 15px; white-space: nowrap; }
.catalog-product-updated {
  grid-area: updated;
  display: flex;
  min-height: 100%;
  padding: 16px 18px;
  align-items: center;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.catalog-product-card .compact-supply-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  gap: 8px;
  margin: 0;
  padding: 15px 16px;
  align-content: center;
  border-left: 1px solid var(--border);
}

.catalog-table-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(118px, 0.28fr) minmax(118px, 0.25fr) minmax(118px, 0.3fr) minmax(210px, 0.48fr);
  min-height: 44px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.catalog-table-head span {
  display: flex;
  padding: 11px 18px;
  align-items: center;
  border-left: 1px solid var(--border);
}

.catalog-table-head span:first-child { padding-left: 24px; border-left: 0; }

.catalog-product-card .pc-offers {
  grid-area: offers;
  min-width: 0;
  border-top: 1px solid var(--border-strong);
}

.catalog-offer-selector {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-offer-selector legend {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 11px 32px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.catalog-offer-selector legend span { color: var(--text); font-size: 15px; font-weight: 800; }
.catalog-offer-selector legend small { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.catalog-offer-rows { display: grid; min-width: 0; }

.catalog-offer-row {
  display: grid;
  grid-template-columns: 24px 88px minmax(260px, 1fr) minmax(96px, max-content) 24px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 32px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}

.catalog-offer-row:last-child { border-bottom: 0; }
.catalog-offer-row:hover { background: color-mix(in srgb, var(--brand-soft) 46%, var(--surface)); }
.catalog-offer-row:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--brand); }
.catalog-offer-row.is-selected { background: var(--brand-soft); }
.catalog-offer-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.catalog-offer-number { color: var(--text-muted); font-size: 14px; font-weight: 750; }
.catalog-offer-facts { display: grid; min-width: 0; gap: 3px; }
.catalog-offer-facts strong { color: var(--text); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-offer-facts small { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.catalog-offer-price {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.catalog-offer-choice {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: transparent;
}
.catalog-offer-row.is-selected .catalog-offer-choice { border-color: var(--brand); background: var(--brand); color: var(--surface); }
.catalog-offer-gate {
  display: grid;
  gap: 4px;
  padding: 20px 32px;
  background: var(--warning-soft);
  color: var(--warning);
}
.catalog-offer-gate strong { font-size: 15px; }
.catalog-offer-gate span { font-size: 14px; line-height: 1.5; }
.catalog-offer-more {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.catalog-offer-more > summary {
  display: flex;
  min-height: 48px;
  padding: 10px 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.catalog-offer-more > summary span { color: var(--text-muted); font-family: var(--font-mono); }
.catalog-offer-replenishing {
  margin: 0;
  padding: 10px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.catalog-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 44px;
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.catalog-empty strong { font-size: 20px; }
.catalog-empty span { color: var(--text-muted); font-size: 15px; }
.catalog-empty .btn { margin-top: 12px; }

.catalog-availability-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e2c695;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #75440f;
}
.catalog-availability-notice > span { padding-top: 2px; }
.catalog-availability-notice strong { font-size: 16px; }
.catalog-availability-notice p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }

.catalog-product-card .compact-supply-actions.is-single-action { grid-template-columns: 1fr; }

.storefront-disclaimer {
  border-block: 1px solid var(--border);
  background: var(--surface-muted);
}

.storefront-disclaimer .container { min-height: 94px; gap: 18px; }
.storefront-disclaimer strong { font-size: 16px; }
.storefront-disclaimer p { color: var(--text-muted); font-size: 15px; line-height: 1.58; }

/* Home operational bands */
.dispatch-delivery { border-bottom: 1px solid var(--border); background: var(--surface); }
.delivery-layout {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}
.delivery-intro { max-width: 430px; }
.delivery-intro h2 { max-width: 15ch; }
.delivery-intro .lead { margin-top: 14px; }
.delivery-order-action { margin-top: 24px; }

.dispatch-steps {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--border-strong);
}

.dispatch-steps::before,
.dispatch-steps::after {
  content: "";
  position: absolute;
  inset: 18px auto 18px 17px;
  width: 2px;
  transform-origin: center top;
}

.dispatch-steps::before { background: var(--border); }
.dispatch-steps::after {
  background: var(--brand);
  transform: scaleY(1);
}

.dispatch-step {
  position: relative;
  z-index: 1;
  grid-template-columns: 48px 1fr;
  min-height: 92px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}

.dispatch-step-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 14px;
}
.dispatch-step strong { font-size: 16px; }
.dispatch-step p { margin-top: 5px; color: var(--text-muted); font-size: 15px; }

.assurance-band { background: var(--surface-strong); color: #edf2ef; }
.assurance-band h2 { color: #ffffff; }
.assurance-intro p { color: #bfc9c2; font-size: 16px; }
.assurance-list { grid-template-columns: 1fr; border-top: 1px solid #3c4941; }
.assurance-row { min-height: 84px; padding: 16px 0; border-bottom: 1px solid #3c4941; }
.assurance-row strong { color: #ffffff; font-size: 16px; }
.assurance-row p { margin-top: 5px; color: #c5cec8; font-size: 15px; }

.account-tools { background: var(--bg); }
.utility-list { border-top: 1px solid var(--border); }
.utility-row { min-height: 96px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.utility-row strong { font-size: 16px; }
.utility-row p { color: var(--text-muted); font-size: 15px; }

.faq-section { border-top: 1px solid var(--border); background: var(--surface); }
.faq-layout { gap: 72px; }
.faq-layout > .faq-list { width: 100%; margin: 0; }
.faq-intro p { color: var(--text-muted); font-size: 16px; }
.faq-item { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.faq-q { min-height: 64px; padding: 16px 0; font-size: 16px; font-weight: 700; }
.faq-a .inner { padding: 0; color: var(--text-muted); font-size: 15px; line-height: 1.68; }
.faq-item.open .faq-a .inner { padding: 0 0 18px; }
.faq-a[hidden] { display: none; }

/* Product detail */
.product-detail-header { background: var(--bg); }
.doc-breadcrumb { margin-bottom: 18px; color: var(--text-muted); font-size: 14px; }
.doc-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--text-muted);
}

.product-detail-hero.card {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-width: 1px 0;
  border-color: var(--border-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-hero .pdh-main { padding: 34px 48px 34px 0; align-self: start; }
.product-detail-hero h1 { max-width: 19ch; font-size: 42px; }
.product-detail-hero .pc-category { font-size: 14px; }
.pdh-subtitle { margin-top: 8px; color: var(--text-muted); font-size: 16px; }
.product-detail-hero .lead { margin-top: 18px; font-size: 17px; }
.pdh-quickfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 700px;
  margin: 24px 0 0;
  border-block: 1px solid var(--border);
}
.pdh-quickfacts > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 13px 18px 13px 0;
}
.pdh-quickfacts > div + div { padding-left: 18px; border-left: 1px solid var(--border); }
.pdh-quickfacts dt { color: var(--text-muted); font-size: 14px; }
.pdh-quickfacts dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.pdh-points { display: flex; flex-wrap: wrap; margin-top: 20px; gap: 8px; }
.pdh-points span { padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-muted); font-size: 14px; }

.pdh-buybox {
  align-self: start;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: var(--surface-strong);
  color: #edf2ef;
  box-shadow: none;
}

.pdh-receipt-label { color: #bfc9c2; font-size: 14px; font-weight: 700; }
.pdh-buybox .pdh-price { color: #ffffff; }
.pdh-buybox .pdh-stock-line { align-items: center; justify-content: space-between; color: #dce4df; }
.pdh-buybox .pdh-stock-line > span:not(.pdh-stock-count) { background: rgba(255,255,255,.1); color: #f3f7f4; }
.pdh-buybox .brand-disclaimer { color: #bfc9c2; }
.pdh-buybox .btn-ghost { border-color: rgba(255,255,255,.24); background: transparent; color: #f3f7f4; }
.pdh-buybox .btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.pdh-stock-count {
  display: grid;
  gap: 2px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.pdh-stock-count small { color: #bfc9c2; font-size: 14px; line-height: 1.2; }
.pdh-stock-count strong { color: #ffffff; font-family: var(--font-mono); font-size: 17px; }

.pdh-price,
.supply-modal-price {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.pdh-stock-line { margin-block: 14px 22px; color: var(--text-muted); font-size: 14px; }
.brand-disclaimer { margin-top: 12px; color: var(--text-muted); font-size: var(--font-caption); line-height: 1.55; }

.product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.product-detail-main { min-width: 0; }

.product-summary-strip {
  padding: 0;
  overflow: hidden;
  border-color: var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 54px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--text-muted); font-size: 14px; }
.summary-row .v { min-width: 0; color: var(--text); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.summary-total { background: var(--surface-muted); }
.summary-total .v { color: var(--brand-dark); font-family: var(--font-mono); font-size: 22px; }

.detail-section-card,
.purchase-decision-card,
.product-detail-main > .card-flat {
  margin-top: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-section-card h3,
.detail-section-card h2,
.product-detail-main > .card-flat h3,
.product-detail-main > .card-flat h2 { margin-bottom: 16px; font-size: 23px; }
.detail-rich-text { max-width: 72ch; color: var(--text-muted); font-size: 16px; }
.detail-rich-text p + p { margin-top: 14px; }

.detail-bullet-list {
  display: grid;
  gap: 10px;
  max-width: 76ch;
}

.detail-bullet-list li { padding-left: 22px; color: #405048; font-size: 16px; line-height: 1.62; }
.detail-bullet-list li::before { top: 10px; width: 7px; height: 7px; }

.checklist-grid { gap: 12px; }
.product-detail-main .checklist-grid { gap: 0; border-top: 1px solid var(--border); }
.product-detail-main .checklist-item {
  min-width: 0;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.checklist-item strong { font-size: 15px; }
.checklist-item p { margin-top: 6px; color: var(--text-muted); font-size: 14px; line-height: 1.58; }
.product-mobile-buybar { display: none; }
.detail-confirmation,
.detail-faq-section { margin-top: 0 !important; }
.payment-qr-image {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Checkout, payment, auth and transactional forms */
.purchase-auth-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.8fr) minmax(210px, 0.55fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.purchase-auth-copy,
.purchase-auth-facts,
.purchase-auth-actions { padding: 30px; }

.purchase-auth-copy h2 { margin-top: 7px; font-size: 28px; }
.purchase-auth-copy p { max-width: 52ch; margin-top: 10px; color: var(--text-muted); }

.purchase-auth-facts {
  margin: 0;
  border-left: 1px solid var(--border);
}

.purchase-auth-facts > div {
  display: grid;
  gap: 3px;
  padding-block: 13px;
  border-bottom: 1px solid var(--border);
}

.purchase-auth-facts > div:first-child { padding-top: 0; }
.purchase-auth-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.purchase-auth-facts dt { color: var(--text-muted); font-size: 14px; }
.purchase-auth-facts dd { font-weight: 750; }

.purchase-auth-actions {
  display: grid;
  align-content: center;
  gap: 10px;
  border-left: 1px solid var(--border);
  background: var(--surface-muted);
}

.purchase-auth-actions .text-action { justify-self: start; margin-top: 4px; }

.form-wrap {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.checkout-total-note {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding-block: 15px;
  border-block: 1px solid var(--border);
}

.checkout-total-note strong { font-size: 16px; }
.checkout-total-note span { color: var(--text-muted); font-size: 15px; }

.transaction-feedback {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #d9a6a3;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #7d2522;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.transaction-feedback[hidden] { display: none; }

.form-wrap :is(input, textarea, select)[aria-invalid="true"],
.form-wrap input[type="checkbox"][aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173, 55, 51, 0.12);
}

.form-wrap > .summary-box {
  margin-inline: -30px;
  border-inline: 0;
  border-radius: 0;
  box-shadow: none;
}

.confirm-facts {
  display: grid;
  gap: 0;
  margin-block: 24px;
  border-top: 1px solid var(--border);
}

.confirm-facts li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}

.confirm-facts strong { font-size: 15px; }
.confirm-facts p { margin-top: 4px; color: var(--text-muted); font-size: 14px; }

.rule-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-size: 15px;
}

.rule-confirm input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }

.form-wrap > .card {
  padding: 24px 0;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.form-wrap > .card img { border: 1px solid var(--border); border-radius: var(--radius-md); }

.auth-section { min-height: calc(100dvh - var(--nav-height)); background: var(--bg); }
.auth-panel { margin: 0; padding-block: 48px; }
.auth-card,
.auth-single-card { width: min(100%, 520px); padding: 30px; border-radius: var(--radius-lg); }
.auth-card-head h1 { font-size: 34px; }
.auth-card-head p,
.auth-note,
.auth-switch-line { color: var(--text-muted); font-size: 15px; }

.auth-intent {
  display: grid;
  gap: 15px;
  margin-top: 24px;
  margin-inline: -30px;
  padding-block: 18px;
  padding-inline: 30px;
  border-block: 1px solid var(--border-strong);
  background: var(--surface-muted);
}

.auth-intent-head { display: grid; gap: 3px; }
.auth-intent-head span { color: var(--brand-dark); font-size: 14px; font-weight: 750; }
.auth-intent-head strong { font-size: 18px; }
.auth-intent-facts { display: grid; grid-template-columns: 0.75fr 1.25fr; margin: 0; }
.auth-intent-facts > div { display: grid; gap: 2px; padding-right: 14px; }
.auth-intent-facts > div + div { padding-left: 14px; border-left: 1px solid var(--border); }
.auth-intent-facts dt { color: var(--text-muted); font-size: 14px; }
.auth-intent-facts dd { font-size: 15px; font-weight: 700; }
.auth-intent p { color: var(--text-muted); font-size: 14px; }
.auth-intent + .auth-panel { padding-top: 30px; }
.auth-feedback {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #d9a6a3;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #7d2522;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}
.auth-feedback[hidden] { display: none; }
.auth-panel .input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173, 55, 51, 0.12);
}
.verification-resend-status {
  min-height: 22px;
  font-variant-numeric: tabular-nums;
}
.verification-resend-button {
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.verification-action-stack { display: grid; gap: 10px; }
.verification-field-error {
  margin-top: 7px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.verification-field-error[hidden] { display: none; }
.modal-card .input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173, 55, 51, 0.12);
}
.auth-switch-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-tabs { border-radius: var(--radius-md); }
.auth-tab { min-height: 44px; border-radius: var(--radius-sm); font-size: 15px; }

/* Delivery, order lookup and user center */
.redeem-shell,
.lookup-grid { gap: 20px; }

.redeem-card,
.redeem-entry { padding: 26px; }

.redeem-result { font-size: 15px; line-height: 1.62; }
.status-help-list { border-top: 1px solid var(--border); }
.status-help-row { min-height: 68px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.status-help-row strong { font-size: 15px; }
.status-help-row span { color: var(--text-muted); font-size: 14px; }

.user-hero-card { padding: 28px; border-color: var(--border-strong); }
.user-hero-card h1 { font-size: 34px; }
.balance-pill { min-height: 38px; padding: 8px 12px; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 15px; }
.user-quick-actions { gap: 10px; }

.account-section-nav {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  scrollbar-width: thin;
}
.account-section-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
.account-section-nav a:hover,
.account-section-nav a:focus-visible { color: var(--text); border-color: var(--border-strong); background: var(--surface); }

.user-panel { padding: 0; overflow: hidden; }
.user-panel > h3,
.user-panel > .compact-head { padding: 22px 24px 16px; }

.order-list { border-top: 1px solid var(--border); }
.order-row,
.order-row-rich,
.supply-order-row {
  min-width: 0;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--surface-muted); }
.order-main { min-width: 0; }
.order-main strong { font-size: 16px; }
.order-row p,
.order-meta { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.order-countdown { font-family: var(--font-mono); font-size: 14px; }

.order-detail-grid {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.order-detail-grid b { color: var(--text); font-size: var(--font-caption); }

.order-credential-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.order-credential-box span { min-width: 0; }
.order-credential-box b { display: block; margin-bottom: 4px; color: var(--text-muted); font-family: var(--font-sans); font-size: var(--font-caption); }

.supply-asset-grid { gap: 12px; margin: 18px 0 24px; }
.supply-asset-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; }
.supply-asset-card h3 { font-size: 18px; }

@media (max-width: 760px) {
  .user-hero-card { padding: 20px; }
  .account-section-nav { margin-inline: -2px; }
  .supply-asset-card { padding: 16px; }
  .supply-asset-card strong { font-size: 26px; }
  .order-credential-box { grid-template-columns: 1fr; }
}

/* Account center workspace (sidebar + main content) */
.account-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.account-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
.account-avatar {
  grid-row: 1 / span 2;
  display: block;
  width: 64px;
  height: 64px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
  object-fit: cover;
  image-rendering: auto;
}
.account-identity strong {
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.account-identity span {
  color: var(--text-muted);
  font-size: 13px;
}

.account-balance-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}
.account-balance-block span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.account-balance-block strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.account-balance-block small { color: var(--warning); font-size: 13px; }

.account-side-nav { display: flex; flex-direction: column; gap: 2px; }
.account-side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.account-side-nav a b {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.account-side-nav a:hover,
.account-side-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-muted);
}
.account-side-nav a.is-active {
  border-color: #b7d9c6;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.account-side-nav a.is-active b { background: #fff; color: var(--brand-dark); }

.account-logout { margin-top: 4px; }

.account-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.account-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}
.account-overview-copy { min-width: 0; }
.account-overview-copy h2 { margin-top: 4px; font-size: 22px; }
.account-overview-copy p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }
.account-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.account-todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.account-todo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.account-todo-item span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.account-todo-item strong { font-family: var(--font-mono); font-size: 26px; line-height: 1.15; }
.account-todo-item small { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.account-todo-item.has-action { border-color: #e8c895; background: var(--warning-soft); }
.account-todo-item.has-action strong { color: var(--warning); }

.account-main .account-sync-warning { margin: 0; }
.account-main .supply-asset-grid { margin: 0; }
.account-main .supply-asset-card { display: flex; flex-direction: column; gap: 4px; }
.account-main .supply-asset-card span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.account-main .supply-asset-card strong { font-family: var(--font-mono); font-size: 26px; line-height: 1.15; }
.account-main .supply-asset-card small { color: var(--text-muted); font-size: 13px; }

.account-main .user-panel { height: auto; }

.account-asset-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
}

.account-asset-line span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding-right: 22px;
}

.account-asset-line span + span {
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.account-asset-line b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.account-overview,
.account-panel { scroll-margin-top: calc(var(--nav-height) + 16px); }

.account-panel-head {
  display: grid;
  grid-template-areas: "icon heading meta";
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.account-panel-summary {
  list-style: none;
  cursor: pointer;
}

.account-panel-summary::-webkit-details-marker { display: none; }
.account-panel-summary:hover { background: var(--surface-muted); }
.account-panel-summary:focus-visible {
  outline: 3px solid rgba(20, 122, 75, 0.22);
  outline-offset: -3px;
}

.account-panel-summary-actions {
  grid-area: meta;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.account-panel-summary-actions .account-panel-meta {
  grid-area: auto;
  align-self: auto;
}

.account-panel-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast);
}

.account-disclosure-panel[open] .account-panel-disclosure { transform: rotate(180deg); }

.account-panel-icon {
  grid-area: icon;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4ddcf;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.account-panel-heading { grid-area: heading; min-width: 0; }
.account-panel-heading .kicker { margin-bottom: 5px; }
.account-panel-heading h2 { font-size: 23px; }
.account-panel-heading p {
  max-width: 62ch;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.account-panel-meta {
  grid-area: meta;
  align-self: start;
  min-width: max-content;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account-panel > .order-list { display: block; border-top: 0; }

.account-empty-state {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 24px;
  background: var(--surface-muted);
}

.account-empty-state strong,
.account-panel-footer strong,
.security-login-row strong { color: var(--text); font-size: 15px; }

.account-empty-state p,
.account-panel-footer p,
.security-login-row p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.account-empty-icon,
.account-row-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4ddcf;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.account-panel-footer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.security-login-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.recharge-record-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.recharge-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.recharge-record-meta { align-items: center; }

.recharge-record-main > div { min-width: 0; }
.recharge-record-main p {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.recharge-record-main time::before { content: "· "; }
.recharge-record-meta strong {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .account-workspace { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-side-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .account-side-nav a { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  .account-sidebar { padding: 18px; gap: 14px; }
  .account-side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }
  .account-side-nav a {
    min-width: 0;
    padding-inline: 10px;
  }
  .account-overview { padding: 18px; }
  .account-todo-grid { grid-template-columns: 1fr; }
  .account-quick-actions { width: 100%; }
  .account-quick-actions .btn { flex: 1 1 auto; }

  .account-asset-line { padding-inline: 14px; }
  .account-asset-line span { padding-right: 14px; }
  .account-asset-line span + span { padding-left: 14px; }

  .account-panel-head {
    grid-template-areas: "icon heading" ". meta";
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 14px;
    min-height: 0;
    padding: 18px;
  }
  .account-panel-heading h2 { font-size: 21px; }
  .account-panel-heading p { font-size: 14px; }
  .account-panel-meta { justify-self: start; }
  .account-panel-summary-actions { justify-self: start; }

  .account-empty-state,
  .account-panel-footer,
  .security-login-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 18px;
  }
  .account-empty-state .btn,
  .account-panel-footer .btn,
  .security-login-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .recharge-record-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

.recharge-panel { padding: 24px; }
.recharge-plan-grid { gap: 10px; }
.recharge-plan { min-height: 72px; border-radius: var(--radius-md); }
.recharge-plan span,
.recharge-plan em,
.recharge-footer-note { font-size: 14px; }

/* Guides, support and informational pages */
.section-head { max-width: 720px; margin-bottom: 34px; text-align: left; }
.section-head .lead { margin-top: 10px; }

.doc-entry-grid,
.feature-grid,
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doc-entry-card,
.feature-card,
.pipeline-card {
  min-width: 0;
  padding: 22px;
}

.doc-entry-card h3,
.feature-card h4,
.pipeline-card strong { font-size: 18px; }

.doc-entry-card p,
.feature-card p,
.pipeline-card p { margin-top: 8px; color: var(--text-muted); font-size: 15px; line-height: 1.62; }

.step { padding: 22px; border-radius: var(--radius-lg); }
.step .num { font-size: 16px; }
.step h4 { font-size: 18px; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.62; }
.notice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.feature-card .ic {
  display: inline-flex;
  width: auto;
  height: 28px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  background: transparent;
}

.pipeline-card span { color: var(--brand-dark); font-family: var(--font-mono); font-size: 14px; }

/* After-sales and support */
.after-sales-header .lead { max-width: 70ch; }
.after-sales-section {
  padding-top: 36px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.after-sales-section-head {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-bottom: 24px;
}

.after-sales-section-head h2 { font-size: 27px; }
.after-sales-section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.62; }
.after-sales-boundary-list { border-block: 1px solid var(--border-strong); }

.after-sales-boundary-row {
  display: grid;
  grid-template-columns: 44px minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.after-sales-boundary-row:last-child { border-bottom: 0; }
.after-sales-boundary-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  border: 1px solid #b8d9c6;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
  place-items: center;
}

.after-sales-boundary-row[data-state="review"] .after-sales-boundary-icon {
  border-color: #ead1a8;
  background: var(--warning-soft);
  color: var(--warning);
}

.after-sales-boundary-row[data-state="excluded"] .after-sales-boundary-icon {
  border-color: #e7c1bf;
  background: var(--danger-soft);
  color: var(--danger);
}

.after-sales-boundary-row h3 { font-size: 20px; line-height: 1.35; }
.after-sales-boundary-row p { color: var(--text-muted); font-size: 16px; line-height: 1.62; }
.after-sales-boundary-row small { display: block; margin-top: 5px; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.after-sales-query-action { min-width: 176px; margin-top: 24px; justify-content: center; }

.after-sales-warranty-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.after-sales-warranty-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.after-sales-warranty-copy > span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  border: 1px solid #ead1a8;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--warning);
  place-items: center;
}

.after-sales-warranty-copy h2 { max-width: 16ch; margin-top: 18px; font-size: 28px; line-height: 1.3; }
.after-sales-warranty-copy p { max-width: 48ch; margin-top: 10px; color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.after-sales-time-list { margin: 0; border-top: 1px solid var(--border-strong); }
.after-sales-time-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.after-sales-time-row dt { font-size: 16px; font-weight: 700; }
.after-sales-time-row dd { color: var(--text-muted); font-size: 16px; line-height: 1.65; }

.after-sales-next-section { background: var(--surface); }
.after-sales-next-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding-block: 30px;
  border-block: 1px solid var(--border-strong);
  align-items: center;
}

.after-sales-next-inner h2 { font-size: 27px; }
.after-sales-next-inner p { max-width: 62ch; margin-top: 8px; color: var(--text-muted); font-size: 16px; line-height: 1.62; }
.after-sales-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.after-sales-next-actions .btn { min-height: 48px; }

.support-page-header .lead { max-width: 70ch; }

.support-resolution-section {
  padding-top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.support-section-head {
  display: grid;
  max-width: 720px;
  gap: 8px;
  margin-bottom: 24px;
}

.support-section-head h2 { font-size: 26px; }
.support-section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.62; }
#support-contact-title { scroll-margin-top: 100px; }
#support-contact-title:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }

.support-resolution-list {
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--border-strong);
  list-style: none;
}

.support-resolution-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.support-resolution-step:last-child { border-bottom: 0; }
.support-resolution-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  border: 1px solid #b8d9c6;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
  place-items: center;
}

.support-resolution-copy { min-width: 0; }
.support-resolution-copy > span { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.support-resolution-copy h2 { margin-top: 3px; font-size: 20px; line-height: 1.32; }
.support-resolution-copy p { max-width: 66ch; margin-top: 5px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.support-resolution-action { min-width: 172px; justify-content: center; }

.support-intake-section { background: var(--bg); }
.support-qq-panel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px 20px;
  margin-bottom: 42px;
  padding: 22px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  align-items: center;
}
.support-qq-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid #b8d9c6;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  place-items: center;
}
.support-qq-copy { min-width: 0; }
.support-qq-copy > span { color: var(--brand-dark); font-size: 13px; font-weight: 750; }
.support-qq-copy h2 { margin-top: 2px; font-size: 27px; }
.support-qq-copy p { max-width: 68ch; margin-top: 4px; color: var(--text-muted); font-size: 14px; line-height: 1.58; }
.support-qq-panel .support-qq-actions { justify-content: flex-end; }
.support-intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: start;
}

.support-evidence-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.support-sync-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
}

.support-sync-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.support-sync-heading > div { display: grid; gap: 2px; }
.support-sync-heading span { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.support-sync-heading strong { color: var(--text); font-size: 16px; }
.support-sync-heading time { color: var(--text-muted); font-size: 12px; }

.support-sync-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 10px;
  padding: 0;
  list-style: none;
}

.support-sync-timeline li {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.support-sync-timeline li::before {
  position: absolute;
  top: 5px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: var(--border);
  content: "";
}

.support-sync-timeline li:first-child::before { left: 6px; }
.support-sync-timeline li:last-child::before { right: calc(100% - 7px); }
.support-sync-timeline li span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid var(--border-strong, #aeb9b2);
  border-radius: 50%;
  background: var(--surface, #fff);
}

.support-sync-timeline li.is-complete span,
.support-sync-timeline li.is-current span { border-color: var(--green, #147a4c); background: var(--green, #147a4c); }
.support-sync-timeline li.is-complete,
.support-sync-timeline li.is-current { color: var(--text); }
.support-sync-panel > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.support-sync-panel-compact { margin-top: 12px; padding: 12px; }
.admin-sync-note { margin-top: 6px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 640px) {
  .support-sync-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .support-sync-timeline { gap: 3px; }
  .support-sync-timeline li b { font-size: 11px; }
}

.support-evidence-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.support-evidence-item > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--brand-dark);
  place-items: center;
}

.support-evidence-item strong { display: block; font-size: 16px; }
.support-evidence-item p { margin-top: 4px; color: var(--text-muted); font-size: 15px; line-height: 1.58; }

.support-mail-panel {
  padding: 30px 0 30px 48px;
  border-left: 1px solid var(--border-strong);
}

.support-mail-label {
  display: inline-flex;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  align-items: center;
}

.support-mail-panel h2 { margin-top: 12px; font-size: 27px; }
.support-mail-panel > p { max-width: 54ch; margin-top: 10px; color: var(--text-muted); font-size: 16px; line-height: 1.64; }
.support-mail-facts { margin: 24px 0 0; border-top: 1px solid var(--border-strong); }
.support-mail-facts > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.support-mail-facts dt { color: var(--text-soft); font-size: 14px; }
.support-mail-facts dd { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 15px; font-weight: 600; }
.support-mail-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.support-mail-actions .btn { min-height: 48px; }
.support-mail-panel .support-sensitive-note {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #ead1a8;
  background: var(--warning-soft);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.support-sensitive-note strong { color: var(--text); }

.support-case-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.support-case-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-case-form .form-group { margin: 0; }
.support-case-form .input,
.support-case-form .textarea { width: 100%; }
.support-case-form .textarea { resize: vertical; }
.support-case-form [aria-invalid="true"] {
  border-color: var(--danger, #b42318);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.support-review-timing {
  padding-left: 12px;
  border-left: 2px solid var(--brand);
  font-size: 14px !important;
}

.support-evidence-upload {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  min-height: 82px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  cursor: pointer;
  align-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.support-evidence-upload:hover,
.support-evidence-upload:focus-within {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.support-evidence-upload-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-dark);
  place-items: center;
}

.support-evidence-upload strong,
.support-evidence-upload small { display: block; }
.support-evidence-upload strong { color: var(--text); font-size: 15px; }
.support-evidence-upload small { margin-top: 4px; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.support-evidence-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.support-sensitive-confirm {
  margin: 0;
  padding: 14px 15px;
  border: 1px solid #ead1a8;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  align-items: start;
}

.support-sensitive-confirm span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.support-submit-note {
  margin: -8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.support-case-status {
  margin-top: 14px;
}

.support-case-status-list {
  display: grid;
  gap: 10px;
}

.support-case-status-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.support-case-status-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-case-status-item p {
  margin: 8px 0 4px;
  color: var(--text-muted);
  line-height: 1.55;
}

.support-case-status-item small {
  color: var(--text-soft);
}

.support-mail-fallback {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.support-mail-fallback summary {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.support-mail-fallback > div { padding-top: 6px; }
.support-mail-fallback p { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.support-case-success {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  align-content: center;
  justify-items: start;
}
.support-case-success > span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  place-items: center;
}
.support-case-success h3 { font-size: 22px; }
.support-case-success p { color: var(--text-muted); line-height: 1.62; }

.doc-image,
.tutorial-card { border-radius: var(--radius-lg); }
.doc-image figcaption,
.tutorial-card figcaption { color: var(--text-muted); font-size: 14px; line-height: 1.58; }

.info-page .form-wrap,
.route-about .form-wrap,
.route-privacy .form-wrap,
.route-disclaimer .form-wrap,
.route-third-party-disclaimer .form-wrap { max-width: 760px; }

/* Usage guide */
.guide-page-header .lead,
.faq-page-header .lead { max-width: 72ch; }

.guide-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.guide-section-head h2 { max-width: 24ch; }
.guide-section-head p { max-width: 56ch; color: var(--text-muted); font-size: 16px; }

.guide-route-section {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.guide-route-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border-strong);
}

.guide-route-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-width: 0;
  min-height: 184px;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.guide-route-action:last-child { border-right: 0; }
.guide-route-action:hover { background: var(--surface-muted); }

.guide-route-icon {
  display: inline-grid;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-items: center;
  border: 1px solid #b8d9c6;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.guide-route-action:hover .guide-route-icon { border-color: #8fc4a6; background: #dff0e6; }
.guide-route-copy { display: grid; grid-column: 2; align-content: start; gap: 6px; }
.guide-route-copy strong { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.guide-route-copy > span { color: var(--text-muted); font-size: 15px; line-height: 1.58; }
.guide-route-link { display: inline-flex; grid-column: 2; align-items: center; gap: 7px; color: var(--brand-dark); font-size: 15px; font-weight: 700; }

.guide-process-section { border-bottom: 1px solid var(--border); background: var(--bg); }

.guide-process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
  align-items: start;
}

.guide-process-intro { max-width: 430px; }
.guide-process-intro p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.guide-process-intro .text-action { margin-top: 22px; }

.guide-process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.guide-process-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 96px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.guide-process-index { color: var(--brand-dark); font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.guide-process-step h3 { font-size: 20px; }
.guide-process-step p { margin-top: 6px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }

.guide-category-section { background: var(--surface); }
.guide-category-list { border-top: 1px solid var(--border-strong); }

.guide-category-row {
  border-bottom: 1px solid var(--border);
}

.guide-category-summary {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 104px;
  padding: 20px 0;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.guide-category-summary::-webkit-details-marker { display: none; }
.guide-category-summary:hover .guide-category-name > strong { color: var(--brand-dark); }
.guide-category-summary:focus-visible { outline-offset: 5px; }

.guide-category-toggle {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  padding-inline: 12px;
  align-items: center;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.guide-category-toggle .ic { transition: transform var(--t-fast); }
.guide-category-row[open] .guide-category-toggle .ic { transform: rotate(180deg); }
.guide-category-row[open] .guide-category-toggle > span { font-size: 0; }
.guide-category-row[open] .guide-category-toggle > span::after { content: "收起步骤"; font-size: 14px; }

.guide-category-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 30px;
  padding: 0 0 26px 32px;
  align-items: end;
}

.guide-category-mark {
  width: 8px;
  height: 58px;
  border-radius: 3px;
  background: var(--guide-accent, var(--brand));
}

.guide-category-name { min-width: 0; }
.guide-category-name > strong { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.guide-category-name span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.guide-category-first strong { display: block; color: var(--text); font-size: 14px; }
.guide-category-steps {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.guide-category-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.guide-category-steps li > span {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.guide-category-steps p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.guide-category-caution {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #71430f;
  font-size: 15px;
  line-height: 1.55;
}
.guide-category-caution b { color: var(--warning); }
.guide-category-panel .btn { justify-self: end; width: 170px; }

.guide-safety-band {
  border-block: 1px solid #39463e;
  background: var(--surface-strong);
  color: #dce4df;
}

.guide-safety-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.guide-safety-layout h2 { color: #ffffff; }
.guide-safety-layout > div > p { margin-top: 12px; color: #bfc9c2; font-size: 16px; }
.guide-safety-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #39463e; }

.guide-safety-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid #39463e;
  border-bottom: 1px solid #39463e;
}

.guide-safety-item:nth-child(2n) { border-right: 0; }
.guide-safety-item > span { color: #79d69e; }
.guide-safety-item strong { color: #ffffff; font-size: 16px; }
.guide-safety-item p { margin-top: 5px; color: #c5cec8; font-size: 15px; line-height: 1.58; }

.guide-exit-section { background: var(--surface-muted); }
.guide-exit-inner,
.faq-next-step-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.guide-exit-inner p,
.faq-next-step-inner p { margin-top: 8px; color: var(--text-muted); font-size: 16px; }
.guide-exit-actions,
.faq-next-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* FAQ knowledge base */
.faq-intro-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.text-action.is-secondary { color: var(--text-muted); }
.text-action.is-secondary:hover { color: var(--text); }

.faq-knowledge-section { background: var(--bg); }

.faq-knowledge-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  min-width: 0;
  align-items: start;
}

.faq-search-panel {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-filter-list {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.faq-filter {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.faq-filter:hover { border-color: var(--border); background: var(--surface-muted); color: var(--text); }
.faq-filter.active { border-color: #b7d9c6; background: var(--brand-soft); color: var(--brand-dark); }
.faq-results-panel { min-width: 0; }

.faq-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-strong);
}

.faq-results-head h2 { font-size: 30px; }
.faq-results-head p { margin-top: 7px; color: var(--text-muted); font-size: 15px; }
#help-faq-count { color: var(--text-muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.help-faq-list { display: grid; gap: 0; max-width: none; }
.help-faq-item { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.help-faq-item .faq-q { min-height: 82px; padding: 17px 0; }
.help-faq-question { display: grid; gap: 4px; min-width: 0; text-align: left; }
.help-faq-question small { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.help-faq-question > span { color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.45; }
.help-faq-item .faq-a .inner { padding: 0 44px 0 0; }
.help-faq-item.open .faq-a .inner { padding-bottom: 22px; }
.help-faq-item .faq-a .inner p { max-width: 76ch; color: var(--text-muted); font-size: 16px; line-height: 1.68; }

.faq-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.faq-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 250px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-content: center;
}

.faq-empty strong { font-size: 20px; }
.faq-empty p { color: var(--text-muted); font-size: 16px; }
.faq-empty .btn { margin-top: 8px; }
.faq-next-step { border-top: 1px solid var(--border); background: var(--surface); }

/* Admin */
.admin-panel { width: 100%; min-width: 0; padding: 22px; }
#admin-content { width: 100%; min-width: 0; }
.admin-key-row { gap: 12px; }
.admin-tabs { max-width: 100%; margin-block: 18px; }
.admin-import { gap: 12px; }
.admin-import > * { min-width: 0; }
.admin-fulfillment-editor {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}
.admin-fulfillment-editor .textarea { grid-column: span 2; }
.admin-order-filters { grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(170px, 0.8fr)) auto auto; }
.admin-refund-filters { grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.8fr) auto auto; }

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-block: 24px 12px;
}

.admin-section-heading:first-child { margin-block-start: 0; }
.admin-section-heading > div { min-width: 0; }
.admin-section-heading h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.admin-section-heading p { margin: 0; }
.admin-table code {
  display: inline-block;
  max-width: 240px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.admin-table .badge { white-space: nowrap; }

.admin-table-wrap,
.comparison-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.admin-table,
.comparison-table {
  min-width: 880px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-table th,
.comparison-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: var(--font-caption);
  font-weight: 700;
  white-space: nowrap;
}

.admin-table td,
.comparison-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  vertical-align: top;
}

/* Supplier change review workbench */
.supplier-review-workbench { min-width: 0; }
.supplier-review-heading { align-items: center; }
.supplier-review-heading .btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.supplier-review-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  margin: 0 0 18px;
  overflow-x: auto;
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.supplier-review-stat {
  display: grid;
  min-width: 112px;
  min-height: 106px;
  padding: 15px 14px;
  align-content: center;
  gap: 3px;
}

.supplier-review-stat + .supplier-review-stat { border-inline-start: 1px solid var(--border); }
.supplier-review-stat dt { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.supplier-review-stat dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.supplier-review-retry-notice {
  display: flex;
  margin: 0 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.supplier-review-retry-notice p { margin: 4px 0 0; color: inherit; }
.supplier-review-retry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.supplier-review-retry-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.supplier-review-stat small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.supplier-review-stat.is-attention dd { color: var(--warning); }
.supplier-review-stat.is-positive dd { color: var(--brand); }
.supplier-review-stat.is-warning { background: var(--warning-soft); }

.supplier-workspace-tabs {
  display: flex;
  gap: 0;
  margin: 4px 0 18px;
  border-bottom: 1px solid var(--border-strong);
}
.supplier-workspace-tabs button {
  display: grid;
  min-height: 54px;
  padding: 8px 18px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}
.supplier-workspace-tabs button span { margin-top: 2px; font-size: 11px; font-weight: 600; }
.supplier-workspace-tabs button.is-active { border-bottom-color: var(--brand); color: var(--brand-dark); }
.supplier-workspace-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.supplier-pool-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin: 0 0 18px;
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.supplier-source-copy-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
}
.supplier-source-copy-progress h3 { margin: 3px 0 5px; font-size: clamp(18px, 2vw, 24px); }
.supplier-source-copy-progress p { max-width: 760px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.supplier-source-copy-progress-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.supplier-source-copy-progress-actions > strong { color: var(--brand); font-size: 20px; font-variant-numeric: tabular-nums; }
.supplier-source-copy-progress-actions .input { width: min(320px, 100%); min-height: 42px; }
.supplier-source-copy-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; background: var(--border); }
.supplier-source-copy-progress-track > span { display: block; height: 100%; background: var(--brand); transition: width 180ms ease; }

.supplier-pool-coverage-panel { margin-bottom: 22px; border-block: 1px solid var(--border); }
.supplier-price-reference-panel { margin-bottom: 18px; border-block: 1px solid var(--border); }
.supplier-pool-coverage-panel > summary,
.supplier-price-reference-panel > summary,
.supplier-pool-candidate-review > summary {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.supplier-pool-coverage-panel > summary::-webkit-details-marker,
.supplier-price-reference-panel > summary::-webkit-details-marker,
.supplier-pool-candidate-review > summary::-webkit-details-marker { display: none; }
.supplier-pool-coverage-panel > summary > span,
.supplier-price-reference-panel > summary > span,
.supplier-pool-candidate-review > summary > span { font-weight: 780; }
.supplier-pool-coverage-panel > summary > small,
.supplier-price-reference-panel > summary > small,
.supplier-pool-candidate-review > summary > small { color: var(--text-muted); font-size: 12px; }
.supplier-pool-coverage-panel > summary::after,
.supplier-price-reference-panel > summary::after,
.supplier-pool-candidate-review > summary::after { content: "＋"; flex: 0 0 auto; color: var(--text-muted); font-size: 18px; }
.supplier-pool-coverage-panel[open] > summary::after,
.supplier-price-reference-panel[open] > summary::after,
.supplier-pool-candidate-review[open] > summary::after { content: "−"; }

.supplier-price-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
}
.supplier-price-reference-grid > div { min-width: 0; padding: 14px; border-inline-end: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.supplier-price-reference-grid > div:nth-child(4n) { border-inline-end: 0; }
.supplier-price-reference-grid dt { color: var(--text-muted); font-size: 12px; }
.supplier-price-reference-grid dd { margin: 5px 0 2px; font-family: var(--font-mono); font-size: 15px; font-weight: 780; font-variant-numeric: tabular-nums; }
.supplier-price-reference-grid small { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.supplier-price-reference-grid > div.is-advisory dd { color: var(--warning); }

.supplier-pool-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.supplier-pool-coverage {
  display: grid;
  min-width: 0;
  padding: 16px;
  gap: 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.supplier-pool-coverage:nth-child(3n) { border-right: 0; }
.supplier-pool-coverage header,
.supplier-pool-coverage footer { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.supplier-pool-coverage header div { min-width: 0; }
.supplier-pool-coverage header span,
.supplier-pool-coverage footer span { display: block; color: var(--text-muted); font-size: 12px; }
.supplier-pool-coverage header strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.supplier-pool-coverage header b { flex: 0 0 auto; font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.supplier-pool-coverage.is-gap header b { color: var(--warning); }
.supplier-pool-coverage.is-ready header b { color: var(--brand); }
.catalog-series-progress.is-attention header b { color: var(--danger); }
.catalog-series-progress.is-progress header b { color: var(--text); }
.supplier-pool-progress { height: 5px; overflow: hidden; background: var(--surface-muted); }
.supplier-pool-progress span { display: block; height: 100%; background: var(--brand); }
.supplier-pool-coverage.is-gap .supplier-pool-progress span { background: var(--warning); }
.catalog-series-progress.is-attention .supplier-pool-progress span { background: var(--danger); }
.catalog-series-progress-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--border);
}
.catalog-series-progress-facts > div { min-width: 0; padding-block: 9px; }
.catalog-series-progress-facts dt { color: var(--text-muted); font-size: 11px; }
.catalog-series-progress-facts dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: 14px; font-weight: 760; font-variant-numeric: tabular-nums; }
.supplier-pool-coverage footer { align-items: center; }
.supplier-pool-coverage footer button { min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: var(--brand-dark); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.catalog-series-progress-grid { margin-bottom: 24px; border-bottom: 1px solid var(--border); }

.supplier-pool-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(4, minmax(135px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
}
.supplier-pool-filters label { display: grid; min-width: 0; gap: 6px; }
.supplier-pool-filters label > span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.supplier-pool-filters .input { width: 100%; min-width: 0; }
.supplier-pool-filter-actions { display: flex; gap: 7px; }
.supplier-pool-filter-actions .btn { min-height: 46px; white-space: nowrap; }

.supplier-pool-register { border-top: 1px solid var(--border-strong); }
.supplier-pool-candidate { border-bottom: 1px solid var(--border-strong); background: var(--surface); }
.supplier-pool-candidate-main { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(460px, 1fr); gap: 24px; padding: 20px 0; }
.supplier-pool-candidate-title { min-width: 0; }
.supplier-pool-candidate-title > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.supplier-pool-candidate-title > div > span:not(.badge) { color: var(--text-muted); font-size: 12px; }
.supplier-pool-candidate-title h3 { margin: 12px 0 6px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-pool-candidate-title p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.supplier-pool-candidate-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-inline-start: 1px solid var(--border); }
.supplier-pool-candidate-facts > div { min-width: 0; padding: 7px 14px; border-bottom: 1px solid var(--border); }
.supplier-pool-candidate-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.supplier-pool-candidate-facts dt { color: var(--text-muted); font-size: 11px; }
.supplier-pool-candidate-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.supplier-pool-candidate-facts dd.is-danger { color: var(--danger); }
.supplier-classification-assist {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(190px, 0.7fr) minmax(280px, 1.3fr);
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.supplier-classification-assist > div { display: grid; min-width: 0; align-content: start; gap: 5px; padding: 14px 16px; border-inline-end: 1px solid var(--border); }
.supplier-classification-assist > div:last-of-type { border-inline-end: 0; }
.supplier-classification-assist span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.supplier-classification-assist strong { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-classification-assist small { color: var(--text-muted); font-size: 11px; }
.supplier-classification-assist small.is-positive { color: var(--brand-dark); }
.supplier-classification-assist small.is-attention { color: var(--warning); }
.supplier-classification-evidence p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.supplier-classification-warning { grid-column: 1 / -1; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.supplier-classification-warning strong { margin-inline-end: 8px; color: var(--warning); }
.supplier-classification-assist.is-conflict { border-inline-start: 3px solid var(--danger); }
.supplier-classification-assist.is-conflict .supplier-classification-warning strong { color: var(--danger); }
.supplier-pool-candidate-review { border-top: 1px solid var(--border); }
.supplier-pool-candidate-review > summary { padding: 0 2px; }
.supplier-pool-candidate-review > summary > small { margin-left: auto; }
.supplier-pool-review-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr); gap: 14px 18px; padding: 14px 0 20px; align-items: end; }
.supplier-pool-review-form label { display: grid; min-width: 0; gap: 6px; }
.supplier-pool-review-form label > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.supplier-exception-fields { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); gap: 12px; grid-column: 1 / -1; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--border)); background: color-mix(in srgb, var(--warning) 6%, transparent); border-radius: 10px; }
.supplier-pool-review-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }

.catalog-series-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.catalog-series-fieldset legend {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}
.supplier-pool-review-form .catalog-series-fieldset,
.catalog-review-grid .catalog-series-fieldset { grid-column: 1 / -1; }
.catalog-series-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border-strong);
  border-inline-start: 1px solid var(--border-strong);
}
.catalog-series-choice { position: relative; min-width: 0; }
.catalog-series-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.catalog-series-choice label {
  display: grid;
  min-height: 58px;
  padding: 10px 12px;
  align-content: center;
  gap: 3px;
  border-inline-end: 1px solid var(--border-strong);
  border-block-end: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.catalog-series-choice label span { font-size: 13px; font-weight: 780; line-height: 1.35; }
.catalog-series-choice label small { color: var(--text-muted); font-size: 11px; font-weight: 650; }
.catalog-series-choice.is-recommended label small { color: var(--brand-dark); }
.catalog-series-choice input:checked + label {
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
  color: var(--brand-dark);
}
.catalog-series-choice input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: -3px; }

.catalog-source-copy-evidence {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding-block: 14px;
  border-block: 1px solid var(--border-strong);
}
.supplier-pool-review-form .catalog-source-copy-evidence,
.catalog-review-grid .catalog-source-copy-evidence { grid-column: 1 / -1; }
.catalog-source-copy-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.catalog-source-copy-heading > div { display: grid; min-width: 0; gap: 3px; }
.catalog-source-copy-heading strong { font-size: 13px; }
.catalog-source-copy-heading small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.catalog-source-copy-heading .btn { flex: 0 0 auto; }
.catalog-source-copy-fields { display: grid; margin: 0; gap: 0; border: 1px solid var(--border); background: var(--surface); }
.catalog-source-copy-fields > div { display: grid; grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr); }
.catalog-source-copy-fields > div + div { border-top: 1px solid var(--border); }
.catalog-source-copy-fields dt,
.catalog-source-copy-fields dd { margin: 0; padding: 11px 12px; font-size: 13px; line-height: 1.65; }
.catalog-source-copy-fields dt { color: var(--text-muted); font-weight: 750; background: var(--surface-muted); }
.catalog-source-copy-fields dd { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.catalog-source-description { max-height: 260px; overflow: auto; }
.catalog-source-description.is-empty { color: var(--text-muted); font-style: italic; }
.catalog-source-copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.catalog-source-copy-actions span { color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.plus-copy-audit-panel {
  margin: 0 0 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.plus-copy-audit-panel.is-unavailable { padding: 16px; border-inline-start: 3px solid var(--warning); }
.plus-copy-audit-panel.is-unavailable p { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; }
.plus-copy-audit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.plus-copy-audit-heading > div { min-width: 0; }
.plus-copy-audit-heading span { color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.plus-copy-audit-heading h3 { margin: 4px 0 6px; font-size: 20px; }
.plus-copy-audit-heading p { max-width: 820px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.plus-copy-audit-heading .btn { flex: 0 0 auto; }
.catalog-copy-audit-series { display: grid; flex: 0 0 min(300px, 34vw); gap: 6px; }
.plus-copy-audit-heading .catalog-copy-audit-series > span { color: var(--text-muted); font-size: 12px; font-weight: 750; }
.catalog-copy-audit-series .input { width: 100%; min-height: 44px; background: var(--surface); }
.plus-copy-audit-panel:focus { outline: 3px solid color-mix(in srgb, var(--brand) 34%, transparent); outline-offset: 3px; }
.plus-copy-audit-standard {
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.plus-copy-audit-standard label { display: grid; min-width: 0; align-content: start; gap: 6px; }
.plus-copy-audit-standard label > span { color: var(--text-muted); font-size: 12px; font-weight: 750; }
.plus-copy-audit-standard .input,
.plus-copy-audit-standard .textarea { background: var(--surface); color: var(--text); cursor: text; opacity: 1; }
.plus-copy-audit-standard .textarea { min-height: 104px; resize: vertical; }
.catalog-copy-audit-boundary { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--border); background: var(--brand-soft); color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.catalog-copy-audit-boundary strong { color: var(--brand-dark); }
.plus-copy-audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.plus-copy-audit-metrics > div { min-width: 0; padding: 14px 18px; border-inline-end: 1px solid var(--border); }
.plus-copy-audit-metrics > div:last-child { border-inline-end: 0; }
.plus-copy-audit-metrics dt { color: var(--text-muted); font-size: 11px; }
.plus-copy-audit-metrics dd { margin: 3px 0; font-family: var(--font-mono); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plus-copy-audit-metrics small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.plus-copy-audit-facets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.plus-copy-audit-facets > div { display: grid; min-width: 0; gap: 3px; padding: 13px 18px; border-inline-end: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plus-copy-audit-facets > div:nth-child(3n) { border-inline-end: 0; }
.plus-copy-audit-facets > div:nth-last-child(-n+3) { border-bottom: 0; }
.plus-copy-audit-facets span { color: var(--text-muted); font-size: 11px; }
.plus-copy-audit-facets strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.plus-copy-audit-facets small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.plus-copy-audit-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plus-copy-audit-details details { min-width: 0; padding: 0 18px 16px; }
.plus-copy-audit-details details + details { border-inline-start: 1px solid var(--border); }
.plus-copy-audit-details summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 13px; font-weight: 800; }
.plus-copy-audit-details summary small { color: var(--text-muted); font-size: 11px; }
.plus-copy-audit-details ol,
.plus-copy-audit-details ul { display: grid; margin: 0; padding-inline-start: 20px; gap: 8px; }
.plus-copy-audit-details li { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.plus-copy-audit-details li strong,
.plus-copy-audit-details li span,
.plus-copy-audit-details li code { display: block; overflow-wrap: anywhere; }
.plus-copy-audit-details li strong { color: var(--text); }
.plus-copy-audit-details li code { margin-top: 2px; font-size: 11px; }

.plus-candidate-copy-audit {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--brand);
  background: var(--brand-soft);
}
.plus-candidate-copy-audit > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plus-candidate-copy-audit > header > div { display: grid; min-width: 0; gap: 3px; }
.plus-candidate-copy-audit > header strong { font-size: 13px; }
.plus-candidate-copy-audit > header small { color: var(--text-muted); font-size: 11px; }
.plus-candidate-copy-audit > header .btn { flex: 0 0 auto; }
.plus-candidate-copy-audit > dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid var(--border); background: var(--surface); }
.plus-candidate-copy-audit > dl > div { min-width: 0; padding: 10px; border-inline-end: 1px solid var(--border); }
.plus-candidate-copy-audit > dl > div:last-child { border-inline-end: 0; }
.plus-candidate-copy-audit dt { color: var(--text-muted); font-size: 10px; }
.plus-candidate-copy-audit dd { margin: 3px 0 0; font-size: 12px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.plus-candidate-copy-warnings { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--border)); background: var(--warning-soft); }
.plus-candidate-copy-warnings strong { color: var(--warning); font-size: 12px; }
.plus-candidate-copy-warnings ul { display: grid; margin: 7px 0 0; padding-inline-start: 18px; gap: 5px; }
.plus-candidate-copy-warnings li { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.plus-candidate-copy-ready { margin: 0; color: var(--brand-dark); font-size: 12px; }

.catalog-storefront-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border-inline-start: 3px solid var(--border-strong);
  background: var(--surface-muted);
}
.supplier-pool-review-form .catalog-storefront-copy,
.catalog-review-grid .catalog-storefront-copy { grid-column: 1 / -1; }
.catalog-storefront-copy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.catalog-storefront-copy-heading > div { display: grid; min-width: 0; gap: 3px; }
.catalog-storefront-copy-heading strong { font-size: 13px; }
.catalog-storefront-copy-heading small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.catalog-storefront-copy.is-recharge-template { border-inline-start-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 38%, var(--surface)); }
.catalog-publish-essential-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-publish-essential-fields > label { display: grid; min-width: 0; gap: 6px; }
.catalog-publish-essential-fields > label > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.catalog-recharge-advanced { border-top: 1px solid var(--border); }
.catalog-recharge-advanced > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.catalog-recharge-advanced > summary small { color: var(--text-muted); font-weight: 500; }
.catalog-recharge-advanced > div { display: grid; grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr); gap: 12px; padding-bottom: 4px; }
.catalog-recharge-advanced label { display: grid; gap: 6px; }
.catalog-coverage-confirm { grid-template-columns: auto minmax(0, 1fr) !important; align-items: start; padding: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.catalog-coverage-confirm input { inline-size: 18px; block-size: 18px; margin-top: 2px; accent-color: var(--brand); }
.catalog-coverage-confirm span { display: grid; gap: 3px; }
.catalog-coverage-confirm small { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.catalog-publication-strategy { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); background: var(--surface); }
.catalog-publication-strategy > span { font-size: 12px; font-weight: 700; }
.catalog-publication-strategy > small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.catalog-copy-toggle { display: inline-flex !important; min-height: 44px; align-items: center; grid-auto-flow: column; gap: 8px !important; color: var(--text) !important; cursor: pointer; }
.catalog-copy-toggle input { inline-size: 18px; block-size: 18px; accent-color: var(--brand); }
.catalog-storefront-copy .catalog-description-editor {
  min-height: 180px;
  resize: vertical;
  overflow-y: auto;
}
.catalog-storefront-copy .catalog-description-editor[readonly] {
  background: var(--surface);
  color: var(--text-muted);
  cursor: text;
  opacity: 1;
}
.catalog-storefront-copy :disabled { background: var(--surface); color: var(--text-muted); cursor: not-allowed; opacity: 0.72; }

.supplier-review-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(130px, 0.8fr)) auto;
  gap: 10px;
  margin-bottom: 12px;
  align-items: end;
}

.supplier-review-filters label { display: grid; min-width: 0; gap: 6px; }
.supplier-review-filters label > span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.supplier-review-filters .input { width: 100%; min-width: 0; }
.supplier-review-filter-actions { display: flex; gap: 7px; }
.supplier-review-filter-actions .btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }

.supplier-review-result-meta {
  display: flex;
  min-height: 40px;
  padding-block: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.supplier-review-workbench .admin-table { min-width: 1160px; }
.supplier-review-mobile-list { display: none; }
.supplier-review-row.is-reviewed { background: var(--surface-subtle); }
.supplier-review-row.is-quarantined { background: var(--warning-soft); }
.supplier-review-product { min-width: 260px; }
.supplier-review-product strong,
.supplier-review-product p,
.supplier-review-product small,
.supplier-review-cell-note { display: block; }
.supplier-review-product strong { max-width: 42ch; font-size: 14px; line-height: 1.45; }
.supplier-review-product p {
  display: -webkit-box;
  max-width: 52ch;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.supplier-review-product p.is-empty { font-style: italic; }
.supplier-review-product small,
.supplier-review-cell-note { margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }

.supplier-change-kind,
.supplier-health,
.supplier-review-state {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.supplier-change-kind.is-attention { border-color: #e5c99e; background: var(--warning-soft); color: #75440f; }
.supplier-change-kind.is-positive,
.supplier-health.is-healthy,
.supplier-review-state.is-complete { border-color: #b7d9c6; background: var(--success-soft); color: var(--brand-dark); }
.supplier-health.is-degraded,
.supplier-health.is-unavailable,
.supplier-review-state.is-warning { border-color: #e5c99e; background: var(--warning-soft); color: #75440f; }

.supplier-review-diff {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 18px minmax(90px, 1fr);
  min-width: 250px;
  align-items: start;
  gap: 7px;
}
.supplier-review-diff span,
.supplier-review-diff strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.supplier-review-diff span { color: var(--text-muted); }
.supplier-review-diff b { color: var(--text-muted); font-weight: 500; text-align: center; }

.supplier-review-empty {
  display: grid;
  min-height: 250px;
  padding: 42px 18px;
  place-items: center;
  align-content: center;
  border-block: 1px solid var(--border);
  text-align: center;
}
.supplier-review-empty strong { font-size: 18px; }
.supplier-review-empty p { max-width: 48ch; margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

html.supplier-review-open { overflow: hidden; }
.supplier-review-drawer-backdrop {
  position: fixed;
  z-index: 10040;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(21, 26, 23, 0.42);
  opacity: 1;
  transition: opacity 180ms ease-out;
}
.supplier-review-drawer-backdrop.hidden { display: none; }
.supplier-review-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(820px, 100%);
  min-width: 0;
  height: 100dvh;
  border-inline-start: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: -6px 0 18px rgba(28, 44, 35, 0.12);
  transform: translateX(0);
  transition: transform 220ms ease-out;
}
.supplier-review-drawer-head {
  display: flex;
  min-width: 0;
  padding: 22px 22px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}
.supplier-review-drawer-head > div { min-width: 0; }
.supplier-review-drawer-head h2 { margin: 10px 0 5px; font-size: 22px; line-height: 1.3; }
.supplier-review-drawer-head p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.supplier-review-drawer-head .modal-close { position: static; flex: 0 0 44px; }
.supplier-review-drawer-scroll { min-height: 0; padding: 0 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.supplier-review-drawer-loading {
  display: grid;
  min-height: 280px;
  padding: 32px 22px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}
.supplier-review-drawer-loading p { max-width: 38ch; margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.supplier-review-manifest,
.supplier-review-snapshot dl,
.supplier-review-record dl { margin: 0; }
.supplier-review-manifest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.supplier-review-manifest > div { min-width: 0; padding: 14px 12px 14px 0; }
.supplier-review-manifest > div:nth-child(even) { padding-inline: 12px 0; border-inline-start: 1px solid var(--border); }
.supplier-review-manifest dt,
.supplier-review-snapshot dt,
.supplier-review-record dt,
.supplier-review-evidence-list dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.supplier-review-manifest dd,
.supplier-review-snapshot dd,
.supplier-review-record dd,
.supplier-review-evidence-list dd { margin: 4px 0 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }

.supplier-review-evidence,
.supplier-review-product-source,
.supplier-review-snapshot,
.supplier-review-record,
.supplier-review-note { display: block; padding-block: 20px; border-bottom: 1px solid var(--border); }
.supplier-review-evidence h3,
.supplier-review-product-source h3,
.supplier-review-snapshot h3,
.supplier-review-record h3 { margin: 0 0 12px; font-size: 16px; }
.supplier-review-evidence-list { display: grid; margin: 0; gap: 9px; }
.supplier-review-evidence-list > div { display: grid; grid-template-columns: minmax(90px, 0.36fr) minmax(0, 1fr); gap: 12px; }
.supplier-review-product-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.supplier-review-product-source-heading > div { min-width: 0; }
.supplier-review-product-source-heading span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.supplier-review-product-source-heading h3 { margin: 4px 0 0; overflow-wrap: anywhere; }
.supplier-review-product-source-heading .btn { flex: 0 0 auto; min-height: 40px; }
.supplier-review-source-description {
  max-height: 320px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.supplier-review-source-description.is-empty { color: var(--text-muted); font-style: italic; }
.supplier-review-source-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; gap: 10px; }
.supplier-review-source-facts > div { min-width: 0; }
.supplier-review-source-facts dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.supplier-review-source-facts dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-review-empty-value { margin: 0; color: var(--text-muted); font-size: 14px; }
.supplier-review-snapshot dl,
.supplier-review-record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.supplier-review-snapshot .notice { margin: 14px 0 0; }
.supplier-review-record > p { margin: 14px 0 0; padding: 12px; background: var(--surface-muted); color: var(--text-muted); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.supplier-review-note > span { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.supplier-review-note .textarea { width: 100%; min-height: 108px; resize: vertical; }
.supplier-publication-editor { padding-block: 20px; border-bottom: 1px solid var(--border); }
.supplier-publication-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.supplier-publication-heading > div { min-width: 0; }
.supplier-publication-heading > div > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.supplier-publication-heading h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.4; }
.supplier-publication-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-publication-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.supplier-publication-state.is-published { border-color: #bfdec9; background: var(--success-soft); color: var(--brand-dark); }
.supplier-publication-state.is-candidate { border-color: #ead1a8; background: var(--warning-soft); color: var(--warning); }
.supplier-publication-form { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); gap: 14px; margin-top: 16px; }
.supplier-publication-form label { display: grid; min-width: 0; align-content: start; gap: 7px; }
.supplier-publication-form label > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 750; }
.supplier-publication-form label small { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.supplier-publication-form .textarea { min-height: 176px; line-height: 1.6; resize: vertical; }
.supplier-publication-preview { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border-strong); border-inline-start: 3px solid var(--brand); border-radius: 6px; background: var(--surface-subtle); }
.supplier-publication-preview > span { display: block; color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.supplier-publication-preview strong { display: block; margin-top: 5px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.supplier-publication-preview p { max-height: 160px; margin: 6px 0 0; overflow: auto; color: var(--text-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.supplier-publication-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--text-muted); font-size: 11px; }
.supplier-publication-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.supplier-publication-actions .btn { min-height: 44px; }
.supplier-publication-editor .transaction-feedback { margin-top: 12px; }
.supplier-publication-editor.is-unmatched .notice { margin: 14px 0; }
.supplier-publication-editor.is-unmatched > .btn { min-height: 44px; }
.supplier-review-drawer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.supplier-review-drawer-actions:has(> :only-child) { grid-template-columns: 1fr; }
.supplier-review-drawer-actions .btn { min-height: 46px; }

@media (max-width: 1120px) {
  .supplier-review-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-review-filter-actions { align-self: end; }
  .supplier-pool-coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-price-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-price-reference-grid > div:nth-child(4n) { border-inline-end: 1px solid var(--border); }
  .supplier-price-reference-grid > div:nth-child(2n) { border-inline-end: 0; }
  .supplier-pool-coverage:nth-child(3n) { border-right: 1px solid var(--border); }
  .supplier-pool-coverage:nth-child(2n) { border-right: 0; }
  .supplier-pool-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supplier-pool-candidate-main { grid-template-columns: 1fr; gap: 16px; }
  .supplier-pool-candidate-facts { border-inline-start: 0; }
  .supplier-classification-assist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-classification-evidence { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .supplier-pool-review-form { grid-template-columns: 1fr; }
  .supplier-exception-fields { grid-template-columns: 1fr; }
  .supplier-pool-review-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .catalog-series-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus-candidate-copy-audit > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus-candidate-copy-audit > dl > div { border-bottom: 1px solid var(--border); }
}

@media (max-width: 700px) {
  .supplier-review-heading { align-items: stretch; }
  .supplier-review-heading .btn { justify-content: center; }
  .supplier-review-stats { grid-template-columns: repeat(3, minmax(128px, 1fr)); }
  .supplier-review-retry-notice { align-items: stretch; flex-direction: column; }
  .supplier-review-retry-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .supplier-review-retry-actions .btn { justify-content: center; }
  .supplier-pool-metrics { grid-template-columns: repeat(2, minmax(128px, 1fr)); overflow-x: visible; }
  .supplier-source-copy-progress { grid-template-columns: 1fr; }
  .supplier-source-copy-progress-actions { align-items: stretch; justify-content: flex-start; }
  .supplier-source-copy-progress-actions > strong { flex: 1 0 100%; }
  .supplier-source-copy-progress-actions .input { flex: 1 0 100%; width: 100%; }
  .supplier-source-copy-progress-actions .btn { min-height: 44px; }
  .supplier-source-copy-progress-track { grid-column: 1; }
  .supplier-pool-metrics .supplier-review-stat:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--border); }
  .supplier-pool-metrics .supplier-review-stat:nth-child(4) { border-top: 1px solid var(--border); }
  .supplier-workspace-tabs button { flex: 1 1 0; padding-inline: 10px; }
  .supplier-pool-coverage-panel > summary { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 10px; }
  .supplier-price-reference-panel > summary { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 10px; }
  .supplier-pool-coverage-panel > summary::after,
  .supplier-price-reference-panel > summary::after { position: absolute; right: 0; }
  .supplier-price-reference-grid { grid-template-columns: 1fr; }
  .supplier-price-reference-grid > div,
  .supplier-price-reference-grid > div:nth-child(2n),
  .supplier-price-reference-grid > div:nth-child(4n) { border-inline-end: 0; }
  .supplier-pool-coverage-grid { grid-template-columns: 1fr; }
  .supplier-pool-coverage,
  .supplier-pool-coverage:nth-child(2n),
  .supplier-pool-coverage:nth-child(3n) { border-right: 0; }
  .catalog-series-progress-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-series-progress-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .supplier-pool-filters { grid-template-columns: 1fr; }
  .supplier-pool-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .supplier-pool-candidate-main { padding-block: 17px; }
  .supplier-pool-candidate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-pool-candidate-facts > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .supplier-pool-candidate-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .supplier-classification-assist { grid-template-columns: 1fr; }
  .supplier-classification-assist > div { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .supplier-classification-evidence { grid-column: auto; border-top: 0; }
  .supplier-pool-candidate-review > summary { align-items: flex-start; flex-direction: column; padding-block: 12px; gap: 3px; }
  .supplier-pool-candidate-review > summary > small { margin-left: 0; }
  .supplier-pool-candidate-review > summary::after { position: absolute; right: 0; }
  .supplier-pool-review-form { grid-template-columns: 1fr; }
  .supplier-pool-review-actions { display: grid; grid-column: auto; grid-template-columns: 1fr; }
  .supplier-pool-review-actions .btn { min-height: 44px; justify-content: center; }
  .catalog-series-choice-grid { grid-template-columns: 1fr; }
  .catalog-source-copy-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .catalog-source-copy-heading .btn { width: 100%; min-height: 44px; }
  .catalog-source-copy-fields > div { grid-template-columns: 1fr; }
  .catalog-source-copy-fields dt { border-bottom: 1px solid var(--border); }
  .catalog-source-copy-actions { align-items: stretch; flex-direction: column; }
  .catalog-source-copy-actions .btn { width: 100%; min-height: 44px; }
  .catalog-storefront-copy { padding: 12px 0 12px 12px; }
  .catalog-storefront-copy-heading { align-items: stretch; flex-direction: column; gap: 4px; }
  .catalog-publish-essential-fields,
  .catalog-recharge-advanced > div { grid-template-columns: 1fr; }
  .catalog-copy-toggle { justify-self: start; }
  .catalog-storefront-copy .input,
  .catalog-storefront-copy .textarea { font-size: 16px; }
  .plus-copy-audit-heading { align-items: stretch; flex-direction: column; }
  .plus-copy-audit-heading .btn { min-height: 44px; justify-content: center; }
  .catalog-copy-audit-series { flex-basis: auto; width: 100%; }
  .plus-copy-audit-standard { grid-template-columns: 1fr; }
  .plus-copy-audit-standard .input,
  .plus-copy-audit-standard .textarea { font-size: 16px; }
  .plus-copy-audit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus-copy-audit-metrics > div:nth-child(2n) { border-inline-end: 0; }
  .plus-copy-audit-metrics > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .plus-copy-audit-facets { grid-template-columns: 1fr; }
  .plus-copy-audit-facets > div,
  .plus-copy-audit-facets > div:nth-child(3n),
  .plus-copy-audit-facets > div:nth-last-child(-n+3) { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .plus-copy-audit-facets > div:last-child { border-bottom: 0; }
  .plus-copy-audit-details { grid-template-columns: 1fr; }
  .plus-copy-audit-details details + details { border-inline-start: 0; border-top: 1px solid var(--border); }
  .plus-candidate-copy-audit > header { align-items: stretch; flex-direction: column; }
  .plus-candidate-copy-audit > header .btn { min-height: 44px; justify-content: center; }
  .plus-candidate-copy-audit > dl { grid-template-columns: 1fr; }
  .plus-candidate-copy-audit > dl > div,
  .plus-candidate-copy-audit > dl > div:last-child { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .plus-candidate-copy-audit > dl > div:last-child { border-bottom: 0; }
  .supplier-review-filters { grid-template-columns: 1fr; }
  .supplier-review-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .supplier-review-result-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .supplier-review-desktop-table { display: none; }
  .supplier-review-mobile-list {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .supplier-review-mobile-row { padding: 16px; }
  .supplier-review-mobile-row + .supplier-review-mobile-row { border-top: 1px solid var(--border); }
  .supplier-review-mobile-row > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .supplier-review-mobile-row h3 { margin: 12px 0 5px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .supplier-review-mobile-row > .supplier-review-mobile-description {
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .supplier-review-mobile-row > .supplier-review-mobile-description.is-empty { font-style: italic; }
  .supplier-review-mobile-row > p { display: flex; margin: 0; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
  .supplier-review-mobile-row > p span { flex: 0 0 auto; font-family: var(--font-mono); }
  .supplier-review-mobile-diff {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 7px;
    margin-top: 13px;
    padding-block: 11px;
    border-block: 1px solid var(--border);
    align-items: start;
  }
  .supplier-review-mobile-diff span,
  .supplier-review-mobile-diff strong { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
  .supplier-review-mobile-diff span,
  .supplier-review-mobile-diff b { color: var(--text-muted); }
  .supplier-review-mobile-diff b { text-align: center; font-weight: 500; }
  .supplier-review-mobile-status { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; }
  .supplier-review-mobile-status small { color: var(--text-muted); font-size: 12px; }
  .supplier-review-mobile-row > .btn { width: 100%; min-height: 44px; }
  .supplier-review-drawer-head { padding: 18px 16px 15px; }
  .supplier-review-drawer-scroll { padding-inline: 16px; }
  .supplier-review-manifest,
  .supplier-review-snapshot dl,
  .supplier-review-record dl,
  .supplier-review-source-facts { grid-template-columns: 1fr; }
  .supplier-review-product-source-heading { align-items: stretch; flex-direction: column; }
  .supplier-review-product-source-heading .btn { width: 100%; min-height: 44px; justify-content: center; }
  .supplier-publication-heading { align-items: stretch; flex-direction: column; }
  .supplier-publication-state { width: max-content; }
  .supplier-publication-form { grid-template-columns: 1fr; }
  .supplier-publication-form .input,
  .supplier-publication-form .textarea { font-size: 16px; }
  .supplier-publication-actions { display: grid; grid-template-columns: 1fr; }
  .supplier-publication-actions .btn { width: 100%; }
  .supplier-review-manifest > div,
  .supplier-review-manifest > div:nth-child(even) { padding: 12px 0; border-inline-start: 0; border-bottom: 1px solid var(--border); }
  .supplier-review-manifest > div:last-child { border-bottom: 0; }
  .supplier-review-drawer-actions { grid-template-columns: 1fr; padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .supplier-review-drawer-backdrop,
  .supplier-review-drawer { transition-duration: 0.01ms; }
}

@media (max-width: 640px) {
  .admin-section-heading { align-items: stretch; flex-direction: column; }
  .admin-section-heading .btn { min-height: 44px; }
}

.admin-actions {
  display: flex;
  min-width: 220px;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-actions .btn-sm { min-height: 38px; }
.admin-pagination {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 14px;
}
.admin-pagination label { display: inline-flex; gap: 7px; align-items: center; }
.admin-pagination .input { width: 78px; min-height: 38px; padding-block: 6px; }
.admin-action-dialog { width: min(100%, 620px); }
.admin-action-dialog .kicker { display: block; margin-bottom: 6px; }
.admin-action-dialog h2 { margin: 0 0 18px; font-size: 24px; }
.admin-action-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
  border-block: 1px solid var(--border);
}
.admin-action-summary > div { min-width: 0; padding: 13px 12px 13px 0; }
.admin-action-summary > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.admin-action-summary dt { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.admin-action-summary dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.admin-action-field { display: grid; gap: 7px; margin-top: 16px; }
.admin-action-field > span { font-size: 14px; font-weight: 700; }
.admin-action-dialog .transaction-feedback { min-height: 24px; margin-top: 10px; color: var(--danger); font-size: 14px; }
.admin-action-dialog .transaction-feedback:empty { display: none; }
.admin-action-dialog-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.admin-action-dialog-actions .btn { min-width: 118px; }
.admin-support-captcha {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.admin-support-captcha-heading { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.admin-support-captcha-heading h3 { margin: 0; font-size: 17px; }
.admin-support-captcha > p { margin: 9px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.admin-support-captcha-panel { display: grid; gap: 12px; margin-top: 14px; }
.admin-support-captcha-panel > img {
  width: min(100%, 260px);
  min-height: 72px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.admin-support-captcha-panel .admin-action-field { margin-top: 0; }
.admin-support-captcha-panel > .btn { width: 100%; min-height: 44px; }
.empty-inline { padding: 36px; color: var(--text-muted); font-size: 15px; }

/* Modals, toasts, floating order action */
.modal-backdrop {
  padding: 20px;
  background: rgba(23, 32, 27, 0.66);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(100%, 540px);
  max-height: min(84dvh, 760px);
  padding: 28px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-card h2,
.modal-card h3 { padding-right: 44px; }

.supply-buy-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, 760px);
  max-width: 760px;
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: hidden;
  border-color: var(--border-strong);
  text-align: left;
}

.supply-modal-scroll {
  min-height: 0;
  padding: 30px 30px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.supply-modal-header { padding-right: 42px; }
.supply-modal-overline {
  display: flex;
  min-height: 28px;
  margin-bottom: 10px;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}
.supply-modal-header h2 {
  max-width: 22ch;
  margin: 0;
  padding-right: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}
.supply-modal-header > p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.supply-modal-summary {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  margin: 24px 0 0;
  border-block: 1px solid var(--border-strong);
}
.supply-modal-summary > div { min-width: 0; padding: 15px 16px; border-left: 1px solid var(--border); }
.supply-modal-summary > div:first-child { padding-left: 0; border-left: 0; }
.supply-modal-summary dt { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.supply-modal-summary dd { margin: 4px 0 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.supply-modal-summary > div:first-child dd { font-family: var(--font-mono); font-size: 24px; font-variant-numeric: tabular-nums; }
.supply-modal-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.supply-modal-section-head { display: grid; gap: 3px; margin-bottom: 14px; }
.supply-modal-section-head span { color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; }
.supply-modal-section-head h3 { margin: 0; padding-right: 0; font-size: 19px; }
.supply-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
}
.supply-modal-specs > div { min-width: 0; padding: 13px 14px; border-bottom: 1px solid var(--border); }
.supply-modal-specs > div:nth-child(even) { border-left: 1px solid var(--border); }
.supply-modal-specs dt { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.supply-modal-specs dd { margin: 4px 0 0; color: var(--text); font-size: 14px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.supply-modal-points > ul,
.supply-modal-description-sections ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.supply-modal-points li,
.supply-modal-description-sections li {
  position: relative;
  padding-left: 17px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.supply-modal-points li::before,
.supply-modal-description-sections li::before {
  content: "";
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.supply-modal-description { padding: 24px 0; }
.supply-modal-description > p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.supply-modal-description-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--border); }
.supply-modal-description-sections section { min-width: 0; padding: 16px 16px 0 0; }
.supply-modal-description-sections section:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.supply-modal-description-sections h4 { margin: 0 0 9px; font-size: 15px; }
.supply-modal-important { margin: 10px 0 0; color: var(--warning); font-size: 13px; line-height: 1.5; }
.supply-modal-actions {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(240px, 1fr);
  gap: 10px;
  padding: 16px 30px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-strong);
  background: var(--surface);
}

#password-modal .modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(calc(100dvh - 40px), 760px);
  padding: 0;
  overflow: hidden;
}

#password-modal .modal-card > h3 {
  margin: 0;
  padding: 24px 76px 18px 28px;
  border-bottom: 1px solid var(--border);
}

.password-change-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.password-change-fields {
  min-height: 0;
  padding: 22px 28px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.password-change-code-field { margin-top: 18px; }
.password-change-error-slot { display: grid; min-height: 56px; }
.password-change-fields > .form-group:last-child { margin-bottom: 12px; }

.password-change-actions {
  padding: 16px 28px max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.password-change-actions .btn { min-height: 48px; }

@media (max-width: 760px) {
  .supply-buy-card { max-height: calc(100dvh - 24px); }
  .supply-modal-scroll {
    padding: 22px 18px 4px;
    scrollbar-gutter: auto;
  }
  .supply-modal-header { padding-right: 34px; }
  .supply-modal-header h2 { max-width: none; font-size: 25px; }
  .supply-modal-summary { grid-template-columns: 1.1fr 1fr; }
  .supply-modal-summary > div { padding: 13px 12px; }
  .supply-modal-summary > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }
  .supply-modal-specs,
  .supply-modal-description-sections { grid-template-columns: 1fr; }
  .supply-modal-specs > div:nth-child(even) { border-left: 0; }
  .supply-modal-description-sections section:nth-child(even) { padding-left: 0; border-left: 0; }
  .supply-modal-description-sections section { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .supply-modal-actions {
    grid-template-columns: 1fr;
    padding: 12px 18px max(16px, env(safe-area-inset-bottom));
  }
  .supply-modal-actions .btn { min-height: 46px; }
  #password-modal .modal-card { max-height: calc(100dvh - 24px); }
  #password-modal .modal-card > h3 { padding: 20px 64px 16px 18px; }
  .password-change-fields {
    padding: 18px 18px 4px;
    scrollbar-gutter: auto;
  }
  .password-change-actions { padding: 14px 18px max(18px, env(safe-area-inset-bottom)); }
}

.modal-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 22px;
}

.toast {
  min-width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}

.supply-box-fixed {
  display: none;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  margin-top: 0;
  padding: 44px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #39463e;
  background: var(--surface-strong);
  color: #dce4df;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.footer-brand b,
.footer-col h4 { color: #ffffff; font-size: 16px; }
.footer-intro { max-width: 44ch; color: #bfc9c2; font-size: 15px; }
.footer-grid .footer-primary-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 12px;
  list-style: none;
}
.footer-grid > .footer-col:nth-child(3) ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}
.footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c7d1cb;
  font-size: 15px;
}
.footer-col ul a:hover { color: #ffffff; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-color: #39463e; color: #aebbb2; }

@media (max-width: 1100px) {
  :root {
    --font-hero-title: 48px;
    --font-page-title: 36px;
    --font-section-title: 30px;
  }

  .dispatch-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr); gap: 32px; }
  .product-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .catalog-remainder { margin-inline: 0; padding-inline: 20px; }
  .marketplace-card.catalog-product-card {
    grid-template-columns: minmax(250px, 1fr) minmax(108px, 0.35fr) minmax(105px, 0.3fr) minmax(108px, 0.34fr) minmax(190px, 0.55fr);
    grid-template-areas: "copy status commercial updated actions";
  }
  .catalog-table-head {
    grid-template-columns: minmax(250px, 1fr) minmax(108px, 0.35fr) minmax(105px, 0.3fr) minmax(108px, 0.34fr) minmax(190px, 0.55fr);
  }
  .marketplace-card .pc-features { display: none; }
  .product-final-action { display: block; }
  .delivery-layout,
  .assurance-layout,
  .faq-layout { gap: 48px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .purchase-auth-gate { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); }
  .purchase-auth-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr max-content;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .purchase-auth-actions .text-action { align-self: center; margin-top: 0; }
  .catalog-control-bar { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .catalog-manifest-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.3fr);
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 800px) and (min-width: 761px) {
  .marketplace-card.catalog-product-card {
    grid-template-columns: minmax(220px, 1fr) minmax(100px, 0.38fr) minmax(96px, 0.32fr) minmax(104px, 0.36fr) minmax(174px, 0.62fr);
  }
  .catalog-table-head {
    grid-template-columns: minmax(220px, 1fr) minmax(100px, 0.38fr) minmax(96px, 0.32fr) minmax(104px, 0.36fr) minmax(174px, 0.62fr);
  }
  .marketplace-card .pc-copy,
  .catalog-product-card .pc-topline,
  .marketplace-card .pc-bottom,
  .catalog-product-updated { padding-inline: 12px; }
  .catalog-product-card .compact-supply-actions { padding-inline: 10px; }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 62px;
    --font-hero-title: 38px;
    --font-page-title: 32px;
    --font-section-title: 28px;
    --font-card-title: 20px;
  }

  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .section { padding-block: 58px; }
  .section-sm { padding-block: 40px; }

  .dispatch-nav .nav-inner { width: calc(100% - 24px); min-height: var(--nav-height); gap: 8px; }
  .nav-logo { min-width: 0; }
  .nav-brand-copy small { display: none; }
  .nav-right .btn-ghost,
  .supply-box-nav { display: none; }
  .nav-right .btn-dark { min-height: 44px; font-size: 14px; }
  .nav-menu { top: var(--nav-height); padding: 8px 12px 14px; background: var(--surface); }
  .nav-menu .nav-link { width: 100%; justify-content: flex-start; }
  .nav-menu .nav-link.is-active { background: var(--brand-soft); }
  .nav-mobile-order { display: flex; gap: 8px; }

  .dispatch-hero {
    min-height: auto;
    background-image: url("../img/visual/insight9-hero-mobile.png");
    background-image: image-set(
      url("../img/visual/insight9-hero-mobile-v2.webp") type("image/webp"),
      url("../img/visual/insight9-hero-mobile.png") type("image/png")
    );
    background-position: center top;
    background-size: cover;
  }

  .dispatch-hero::before {
    inset: 0 0 auto;
    width: 100%;
    height: 48%;
    background: rgba(247, 249, 247, 0.64);
  }

  .dispatch-hero-inner { padding-block: 32px; }
  .dispatch-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .dispatch-hero-copy { max-width: 100%; }
  .dispatch-hero h1 { max-width: 100%; }
  .dispatch-hero h1 > span { overflow-wrap: anywhere; }
  .dispatch-overline { margin-bottom: 14px; }
  .dispatch-lead { max-width: 34ch; margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .dispatch-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .dispatch-hero .hero-actions .btn { padding-inline: 10px; }

  .hero-supply-board { max-width: 100%; box-shadow: var(--shadow-md); }
  .hero-supply-header { min-height: 58px; padding: 7px 10px; }
  .hero-supply-brand img { width: 40px; height: 40px; }
  .hero-supply-row { grid-template-columns: 10px minmax(0, 1fr) max-content max-content; gap: 8px; min-height: 62px; padding: 8px 10px; }
  .hero-supply-code { width: 8px; height: 30px; }
  .hero-supply-row:nth-child(n + 3) { display: none; }
  .hero-supply-footer,
  .dispatch-ledger { display: none; }
  .hero-supply-metric { min-width: 38px; }
  .hero-supply-metric small,
  .hero-supply-metric strong { font-size: 14px; }

  .fulfillment-proof-layout { grid-template-columns: 1fr; gap: 10px; padding-block: 14px 16px; }
  .fulfillment-proof-layout ul { grid-template-columns: 1fr; }
  .fulfillment-proof-layout li { min-height: 44px; padding: 7px 0; border-top: 1px solid var(--border); border-left: 0; }
  .fulfillment-proof-layout li:nth-child(n + 3) { display: none; }

  .section-heading-row { display: grid; gap: 8px; align-items: start; margin-bottom: 24px; }
  .service-directory-header { padding-block: 28px 22px; }
  .service-directory-header h1 { margin-top: 12px; }
  .service-directory-header + .dispatch-catalog { padding-top: 34px; }
  .catalog-control-bar {
    grid-template-columns: 1fr;
    gap: 0;
    margin-right: 0;
    border-right: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .catalog-filter-header {
    min-height: 0;
    padding: 14px;
    align-items: start;
  }
  .catalog-filter-header strong { font-size: 16px; }
  .catalog-filter-header span { font-size: 13px; }
  .catalog-filter-reset {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 10px;
  }
  .catalog-filter-row { grid-template-columns: 1fr; min-height: 0; align-items: stretch; }
  .catalog-filter-row.is-primary {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .catalog-filter-label { padding: 10px 14px 4px; }
  .catalog-filter-options {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px 12px;
    overflow-x: visible;
    border-left: 0;
  }
  .catalog-filter-row.is-primary .catalog-filter-options {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 6px 12px 14px;
  }
  .catalog-filter-row.is-primary .catalog-filter-option {
    min-width: max-content;
    padding-inline: 9px;
    scroll-snap-align: start;
  }
  .catalog-filter-option { flex: 0 0 auto; }
  .catalog-filter-disclosure > summary {
    min-height: 58px;
    padding-inline: 14px;
  }
  .catalog-filter-disclosure > summary small {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .category-rail { padding-right: 14px; }
  .catalog-manifest-meta {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .catalog-manifest-meta > span { min-width: 0; padding: 7px 12px; }
  .catalog-manifest-meta > span:not(:first-child) { border-left: 1px solid var(--border); }
  .catalog-manifest-meta .catalog-sync-fact {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .product-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .catalog-table-head { display: none; }
  .catalog-list-heading { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .catalog-remainder {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-inline: 0;
    padding-block: 18px 22px;
    padding-inline: 10px;
  }
  .catalog-remainder .btn { width: 100%; }
  .marketplace-card.catalog-product-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "copy commercial"
      "status updated"
      "actions actions";
    min-height: 0;
    padding: 0;
  }
  .marketplace-card.catalog-product-card.has-offers {
    grid-template-areas:
      "copy commercial"
      "status updated"
      "actions actions";
  }
  .catalog-product-card .pc-topline {
    display: flex;
    min-height: 0;
    padding: 0 10px 14px 16px;
    align-items: center;
    border-left: 0;
  }
  .marketplace-card .pc-copy { padding: 16px 10px 8px 16px; border-left: 0; }
  .marketplace-card .pc-name { font-size: 17px; }
  .marketplace-card .pc-desc { min-height: 0; -webkit-line-clamp: 1; }
  .marketplace-card .pc-features { display: none; }
  .marketplace-card .pc-specs {
    min-height: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .marketplace-card .pc-bottom {
    min-height: 0;
    padding: 18px 16px 8px 10px;
    align-items: flex-start;
    justify-content: flex-end;
    border-top: 0;
    border-left: 0;
  }
  .marketplace-card .pc-price .now { font-size: 20px; }
  .catalog-product-updated {
    min-height: 0;
    padding: 0 16px 14px 10px;
    justify-content: flex-end;
    border-left: 0;
    font-size: 13px;
  }
  .catalog-product-updated::before {
    content: "核验 ";
    margin-right: 4px;
    color: var(--text-soft);
    font-family: var(--font-sans);
  }
  .catalog-product-card .compact-supply-actions {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .catalog-product-card .compact-supply-actions.is-single-action { grid-template-columns: 1fr; }
  .catalog-offer-selector legend {
    display: grid;
    min-height: 0;
    padding: 12px 16px;
    gap: 3px;
  }
  .catalog-offer-row {
    grid-template-columns: 22px minmax(0, 1fr) max-content;
    min-height: 82px;
    padding: 11px 16px;
    gap: 10px;
  }
  .catalog-offer-number {
    grid-column: 2;
    grid-row: 1;
  }
  .catalog-offer-facts {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .catalog-offer-price {
    grid-column: 3;
    grid-row: 1;
    font-size: 18px;
  }
  .catalog-offer-choice { display: none; }
  .catalog-offer-gate { padding: 16px; }
  .checkout-sync-guard { display: grid; gap: 12px; }
  .checkout-sync-guard .btn { width: 100%; }
  .account-sync-warning { display: grid; gap: 12px; }
  .account-sync-warning .btn { width: 100%; }

  .storefront-disclaimer .container { grid-template-columns: 1fr; gap: 7px; padding-block: 18px; }
  .storefront-disclaimer .text-action { justify-self: start; }

  .delivery-layout,
  .assurance-layout,
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .assurance-list { grid-template-columns: 1fr; }
  .utility-row { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .utility-row .btn { grid-column: 2; width: 100%; }

  .page-header,
  .doc-hero { padding: 36px 0 26px; }
  .page-header h1,
  .doc-hero h1 { font-size: var(--font-page-title) !important; }

  .product-detail-header { padding-block: 20px 16px; }
  .product-detail-header .doc-breadcrumb { margin-bottom: 8px; }
  .product-detail-hero.card { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .product-detail-hero .pdh-main { padding: 20px 20px 22px; }
  .product-detail-hero h1 { font-size: 34px; }
  .product-detail-hero .lead { margin-top: 14px; }
  .pdh-quickfacts { margin-top: 18px; }
  .pdh-quickfacts > div { padding-block: 10px; }
  .pdh-quickfacts { grid-template-columns: 1fr; }
  .pdh-quickfacts > div { padding-inline: 0; }
  .pdh-quickfacts > div + div { border-top: 1px solid var(--border); border-left: 0; }
  .pdh-buybox { gap: 12px; padding: 20px; border: 0; }
  .pdh-buybox .pdh-stock-line { margin-block: 10px 16px; }
  .pdh-buybox .brand-disclaimer { margin-top: 6px; }
  .product-final-action-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 24px; }
  .product-final-action h2 { font-size: 24px; }
  .summary-row { grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr); gap: 12px; padding: 13px 14px; }
  .checklist-grid { grid-template-columns: 1fr; }

  .form-wrap { max-width: none; padding: 22px 18px; }
  .form-wrap > .summary-box { margin-inline: -18px; }
  .confirm-facts li { grid-template-columns: 24px minmax(0, 1fr); }
  .rule-confirm { grid-template-columns: 22px minmax(0, 1fr); }
  .purchase-auth-gate { grid-template-columns: 1fr; }
  .purchase-auth-copy,
  .purchase-auth-facts,
  .purchase-auth-actions { padding: 22px 20px; }
  .purchase-auth-facts,
  .purchase-auth-actions { border-top: 1px solid var(--border); border-left: 0; }
  .purchase-auth-actions { grid-template-columns: 1fr; }
  .purchase-auth-actions .btn { width: 100%; }
  .auth-intent-facts { grid-template-columns: 1fr; }
  .auth-intent-facts > div { padding-right: 0; }
  .auth-intent-facts > div + div { margin-top: 10px; padding-top: 10px; padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }

  .lookup-grid,
  .redeem-shell { grid-template-columns: 1fr; }
  .order-row,
  .order-row-rich,
  .supply-order-row { padding: 18px; }
  .order-row { grid-template-columns: 1fr; gap: 12px; }
  .order-row .btn { width: 100%; }
  .supply-asset-grid { grid-template-columns: 1fr; }
  .recharge-plan-grid { grid-template-columns: 1fr 1fr; }

  .doc-entry-grid,
  .feature-grid,
  .pipeline-grid { grid-template-columns: 1fr; }

  .after-sales-boundary-row { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
  .after-sales-boundary-icon { width: 42px; height: 42px; }
  .after-sales-boundary-row h3 { align-self: center; }
  .after-sales-boundary-row > div { grid-column: 2; }
  .after-sales-query-action { width: 100%; }
  .after-sales-time-row { grid-template-columns: 1fr; gap: 5px; }
  .after-sales-next-inner { grid-template-columns: 1fr; gap: 22px; }
  .after-sales-next-actions { display: grid; grid-template-columns: 1fr; }
  .after-sales-next-actions .btn { width: 100%; }

  .admin-panel { padding: 16px; }
  .admin-key-row { align-items: stretch; flex-direction: column; }
  .admin-key-row .btn { width: 100%; }
  .admin-actions .btn-sm { min-height: 44px; }
  .admin-order-filters,
  .admin-refund-filters { grid-template-columns: 1fr; }
  .admin-order-filters .btn,
  .admin-refund-filters .btn { width: 100%; }
  .admin-pagination { align-items: stretch; flex-wrap: wrap; justify-content: flex-start; }
  .admin-pagination > span { width: 100%; }
  .admin-pagination .btn { flex: 1; min-height: 44px; }
  .admin-action-summary { grid-template-columns: 1fr; }
  .admin-action-summary > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .admin-action-summary > div + div { border-top: 1px solid var(--border); }
  .admin-action-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .admin-action-dialog-actions .btn { width: 100%; min-height: 46px; }
  .admin-support-captcha-heading { align-items: stretch; flex-direction: column; }
  .admin-support-captcha-heading .btn { width: 100%; min-height: 44px; }

  .modal-card { padding: 24px 18px; }
  .modal-card.supply-buy-card { padding: 0; }
  .toast { min-width: calc(100vw - 28px); }
  .supply-box-fixed { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 46px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-grid .footer-primary-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .footer-grid > .footer-col:nth-child(3) ul { grid-template-columns: 1fr; }
  .footer-col a { max-width: 100%; overflow-wrap: anywhere; }
  .footer-bottom { display: grid; gap: 6px; }
}

@media (max-width: 480px) {
  .dispatch-hero h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.08;
  }
  .dispatch-hero h1 > span { overflow-wrap: anywhere; word-break: normal; }
  .dispatch-hero .hero-actions { grid-template-columns: 1fr; }
  .hero-supply-header { gap: 8px; }
  .hero-supply-sync { min-width: 0; font-size: 12px; white-space: nowrap; }
  .hero-supply-row {
    grid-template-columns: 8px minmax(0, 1fr) max-content;
    gap: 9px;
  }
  .hero-supply-price { display: none; }
  .hero-supply-state { min-width: 58px; }
  .hero-supply-state small,
  .hero-supply-state strong { font-size: 12px; }

  .service-directory-header h1,
  .service-directory-header .lead { max-width: 100%; overflow-wrap: anywhere; }
  .catalog-filter-header { display: grid; grid-template-columns: minmax(0, 1fr); }
  .catalog-filter-reset { width: 100%; }
  .catalog-filter-reset:disabled { display: none; }
  .catalog-filter-toolbar { grid-template-columns: minmax(0, 1fr); }
  .catalog-filter-search,
  .catalog-filter-field,
  .catalog-price-range,
  .catalog-sort-field { grid-column: 1; }
  .catalog-stock-toggle { justify-content: flex-start; }
  .catalog-manifest-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-manifest-meta > span:nth-child(3) { border-top: 1px solid var(--border); border-left: 0; }
  .catalog-manifest-meta > span:nth-child(4) { border-top: 1px solid var(--border); }
  .catalog-manifest-meta .catalog-sync-fact { grid-column: auto; border-left: 1px solid var(--border); }

  .catalog-list-heading p { max-width: 100%; overflow-wrap: anywhere; }
  .marketplace-card.catalog-product-card,
  .marketplace-card.catalog-product-card.has-offers {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "commercial"
      "status"
      "updated"
      "actions";
  }
  .marketplace-card .pc-copy { padding: 16px 16px 6px; }
  .marketplace-card .pc-name { overflow-wrap: anywhere; }
  .marketplace-card .pc-bottom {
    padding: 6px 16px 10px;
    justify-content: flex-start;
  }
  .catalog-product-card .pc-topline { padding: 0 16px 10px; }
  .catalog-product-updated { padding: 0 16px 14px; justify-content: flex-start; }
  .catalog-availability-notice { margin-bottom: 16px; padding: 14px; }
}

@media (max-width: 390px) {
  :root {
    --font-hero-title: 36px;
    --font-page-title: 30px;
    --font-section-title: 26px;
  }

  .category-rail .product-tab { padding-inline: 11px; }
  .recharge-plan-grid { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .dispatch-hero { min-height: auto; }
  .dispatch-hero-inner { padding-block: 32px; }
  .dispatch-ledger { display: none; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .dispatch-nav .nav-inner { width: calc(100% - 32px); gap: 8px; }
  .nav-logo { min-width: 0; flex: 1; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { width: 100%; min-height: 44px; justify-content: flex-start; }
  .nav-mobile-order { display: flex; gap: 8px; }
  .supply-box-nav { display: none; }
}

@media (max-width: 900px) {
  .after-sales-warranty-layout { grid-template-columns: 1fr; gap: 36px; }
  html.nav-menu-open { overflow: hidden; }
  .nav-scrim {
    position: fixed;
    inset: var(--nav-height) 0 0;
    z-index: 90;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(23, 32, 27, 0.38);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity var(--t-fast), visibility var(--t-fast);
  }
  html.nav-menu-open .nav-scrim { opacity: 1; visibility: visible; }
  .dispatch-nav { z-index: 100; }
  .nav-menu { z-index: 2; }
}

@media (max-width: 1100px) {
  .support-resolution-step {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }
  .support-resolution-action { grid-column: 2; width: max-content; }
  .support-intake-layout { grid-template-columns: 1fr; gap: 40px; }
  .support-qq-panel { grid-template-columns: 48px minmax(0, 1fr); }
  .support-qq-panel .support-qq-actions { grid-column: 2; justify-content: flex-start; }
  .support-mail-panel {
    padding: 34px 0 0;
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }
  .guide-route-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-route-action { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .guide-route-action:nth-child(2n) { border-right: 0; }
  .guide-route-action:nth-last-child(-n + 2) { border-bottom: 0; }
  .guide-category-panel { grid-template-columns: minmax(0, 1fr) 160px; }
  .guide-category-panel .btn { width: 160px; }
  .faq-knowledge-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .guide-process-layout,
  .guide-safety-layout { grid-template-columns: 1fr; gap: 38px; }
  .guide-process-intro { max-width: 620px; }
  .faq-knowledge-layout { grid-template-columns: 1fr; gap: 38px; }
  .faq-search-panel { position: static; }
  .faq-filter-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .faq-filter { text-align: center; }
}

@media (max-width: 760px) {
  .support-section-head { margin-bottom: 20px; }
  .support-section-head h2 { font-size: 24px; }
  .support-resolution-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding-block: 18px;
  }
  .support-resolution-icon { width: 42px; height: 42px; }
  .support-resolution-action { grid-column: 2; width: 100%; margin-top: 2px; }
  .support-intake-layout { gap: 32px; }
  .support-qq-panel { grid-template-columns: 42px minmax(0, 1fr); margin-bottom: 32px; padding: 18px; }
  .support-qq-mark { width: 42px; height: 42px; }
  .support-qq-copy h2 { font-size: 24px; }
  .support-qq-panel .support-qq-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .support-qq-panel .support-qq-actions .btn { width: 100%; }
  .support-mail-panel { padding-top: 28px; }
  .support-mail-panel h2 { font-size: 25px; }
  .support-case-fields { grid-template-columns: 1fr; gap: 14px; }
  .support-evidence-upload { min-height: 76px; padding: 14px; }
  .support-mail-facts > div { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
  .support-mail-actions { display: grid; grid-template-columns: 1fr; }
  .support-mail-actions .btn { width: 100%; }
  .guide-section-head { display: grid; gap: 8px; margin-bottom: 22px; }
  .guide-route-bar { grid-template-columns: 1fr; }
  .guide-route-action {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 7px 14px;
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .guide-route-action:nth-child(2n),
  .guide-route-action:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .guide-route-action:last-child { border-bottom: 0; }
  .guide-route-icon { grid-row: 1 / 3; width: 40px; height: 40px; }
  .guide-route-copy { grid-column: 2; }
  .guide-route-link { grid-column: 2; }
  .guide-process-step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .guide-category-summary { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 14px; min-height: 92px; }
  .guide-category-mark { height: 52px; }
  .guide-category-toggle { padding-inline: 4px; }
  .guide-category-toggle > span { display: none; }
  .guide-category-row[open] .guide-category-toggle > span::after { display: none; }
  .guide-category-panel { grid-template-columns: 1fr; gap: 18px; padding: 0 0 22px 22px; }
  .guide-category-panel .btn { width: 100%; justify-self: stretch; }
  .guide-safety-list { grid-template-columns: 1fr; }
  .guide-safety-item { min-height: 0; padding: 18px 0; border-right: 0; }
  .guide-exit-inner,
  .faq-next-step-inner { grid-template-columns: 1fr; gap: 24px; }
  .guide-exit-actions,
  .faq-next-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .guide-exit-actions .btn,
  .faq-next-actions .btn { width: 100%; }
  .faq-search-panel { padding: 18px; }
  .faq-filter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 14px 0 0;
    overflow: visible;
  }
  .faq-filter { width: 100%; padding-inline: 10px; text-align: center; white-space: normal; }
  .faq-filter:first-child { grid-column: 1 / -1; }
  .faq-results-head { display: grid; gap: 8px; align-items: start; }
  .help-faq-item .faq-q { min-height: 76px; }
  .help-faq-item .faq-a .inner { padding-right: 0; }
}

/* Scroll progress enhances visible content without gating it. */
.dispatch-catalog,
.dispatch-delivery {
  position: relative;
  view-timeline-axis: block;
  view-timeline-name: --dispatch-section;
}

.dispatch-catalog::before,
.dispatch-delivery::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: var(--brand);
  opacity: 0.72;
  transform: scaleX(1);
  transform-origin: left center;
}

@supports (animation-timeline: view()) {
  #hero-supply-board-slot {
    animation: hero-board-scroll linear both;
    animation-range: 0% 14%;
    animation-timeline: scroll(root block);
  }

  .dispatch-catalog::before,
  .dispatch-delivery::before {
    animation: section-progress linear both;
    animation-range: entry 0% cover 48%;
    animation-timeline: --dispatch-section;
  }

  .dispatch-steps {
    view-timeline-axis: block;
    view-timeline-name: --delivery-flow;
  }

  .dispatch-steps::after {
    animation: delivery-spine-progress linear both;
    animation-range: entry 5% cover 70%;
    animation-timeline: --delivery-flow;
  }
}

@keyframes hero-board-scroll {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0.94; transform: translateY(-14px); }
}

@keyframes section-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes delivery-spine-progress {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (hover: none), (pointer: coarse) {
  .marketplace-card.catalog-product-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #hero-supply-board-slot {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .dispatch-catalog::before,
  .dispatch-delivery::before,
  .dispatch-steps::after {
    animation: none !important;
  }
  .dispatch-catalog::before,
  .dispatch-delivery::before { transform: scaleX(1); }
  .dispatch-steps::after { transform: scaleY(1); }
}

/* Shared product purchase and payment flow */
.purchase-modal-open,
.account-modal-open { overflow: hidden; }

.detail-purchase-section,
.purchase-page-section,
#detail-purchase { scroll-margin-top: calc(var(--nav-height) + 16px); }

#product-detail-guide,
#product-detail-confirmation,
#product-detail-faq { scroll-margin-top: calc(var(--nav-height) + 72px); }

.product-detail-workspace-header {
  padding-block: 24px 0;
  border-bottom: 0;
}
.product-detail-workspace-header .doc-breadcrumb { margin-bottom: 16px; }

.warranty-variant-selector {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
  gap: 24px;
  margin-bottom: 18px;
  padding: 14px 16px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.warranty-variant-selector-copy { display: grid; gap: 3px; }
.warranty-variant-selector-copy span { color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.warranty-variant-selector-copy strong { font-size: 14px; line-height: 1.45; }
.warranty-variant-selector-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); }
.warranty-variant-option { display: grid; min-width: 0; min-height: 58px; padding: 8px 10px; place-content: center; gap: 2px; border-right: 1px solid var(--border); color: var(--text-muted); text-align: center; }
.warranty-variant-option:last-child { border-right: 0; }
.warranty-variant-option span { font-size: 13px; font-weight: 750; }
.warranty-variant-option strong { color: var(--text); font-family: var(--font-mono); font-size: 14px; }
.warranty-variant-option.is-active { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); color: var(--brand-dark); }
.warranty-variant-option:focus-visible { position: relative; outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }

.product-detail-section-nav {
  position: sticky;
  top: calc(var(--nav-height) - 1px);
  z-index: 19;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  width: 100%;
  margin: 0 auto 28px;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.product-detail-section-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.product-detail-section-link,
.product-detail-purchase-return {
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.product-detail-section-link { border-right: 1px solid var(--border); }
.product-detail-section-link:hover,
.product-detail-purchase-return:hover { background: var(--surface-muted); color: var(--brand-dark); }
.product-detail-section-link.is-active {
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
  color: var(--brand-dark);
}
.product-detail-purchase-return {
  gap: 8px;
  padding-inline: 18px;
  border-left: 1px solid var(--border-strong);
  color: var(--text);
}
.product-detail-section-link:focus-visible,
.product-detail-purchase-return:focus-visible { position: relative; outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: -3px; }
.product-detail-nav-label-short { display: none; }

.purchase-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
  width: min(100%, 1160px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.purchase-workspace.is-detail {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 901px) {
  .purchase-workspace.is-detail {
    align-items: start;
    overflow: visible;
  }

  .purchase-workspace.is-detail .purchase-form-pane {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    max-height: calc(100dvh - var(--nav-height) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-radius: 0;
    background: var(--surface);
  }
}

.purchase-overview,
.purchase-form-pane { min-width: 0; padding: 30px 32px; }

.purchase-overview {
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
}

.purchase-workspace.is-detail .purchase-overview {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.purchase-workspace.is-detail .purchase-form-pane {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.purchase-overview-header { padding-right: 34px; }

.purchase-overview :is(h1, h2, h3) {
  max-width: 22ch;
  margin-top: 9px;
  padding-right: 0;
  font-size: 28px;
  line-height: 1.26;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.purchase-workspace.is-detail .purchase-overview h1 { font-size: 32px; }

.purchase-intro-meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.purchase-intro-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--brand-accent, var(--brand)); }

.purchase-decision-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-block: 1px solid var(--border-strong);
}

.purchase-decision-facts > div {
  min-width: 0;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.purchase-decision-facts > div:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--border); }
.purchase-decision-facts > div:nth-child(even) { padding-left: 18px; }
.purchase-decision-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.purchase-decision-facts dt { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.purchase-decision-facts dd { margin: 4px 0 0; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.48; overflow-wrap: anywhere; }

.purchase-description-disclosure { border-bottom: 1px solid var(--border); }
.purchase-description-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  min-height: 52px;
  padding-block: 14px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.purchase-description-disclosure > summary::-webkit-details-marker { display: none; }
.purchase-description-disclosure > summary:focus-visible { outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }
.purchase-description-copy { display: grid; gap: 10px; padding: 0 0 18px; }
.purchase-description-copy p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.68; overflow-wrap: anywhere; text-wrap: pretty; }
.purchase-copy-sections { display: grid; }
.purchase-copy-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.purchase-copy-section:last-child { border-bottom: 0; }
.purchase-copy-section h3 { margin: 0 0 10px; color: var(--text); font-size: 14px; line-height: 1.4; }
.purchase-copy-section ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; }
.purchase-copy-section li { color: var(--text-muted); font-size: 14px; line-height: 1.62; overflow-wrap: anywhere; text-wrap: pretty; }
.purchase-copy-important { display: flex; margin: 11px 0 0; padding: 10px 12px; align-items: flex-start; gap: 8px; border-left: 3px solid var(--warning); background: var(--surface-subtle); color: var(--text); font-size: 13px; line-height: 1.55; }
.purchase-copy-important svg { flex: 0 0 auto; margin-top: 2px; }
.purchase-copy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.purchase-copy-links a { display: inline-flex; min-height: 44px; padding: 8px 0; align-items: center; gap: 6px; color: var(--brand-dark); font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.purchase-copy-links a:focus-visible { outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }
.purchase-description-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--brand-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.purchase-description-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.purchase-disclosure-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

.purchase-description-disclosure[open] > summary .purchase-disclosure-icon { transform: rotate(180deg); }

.purchase-form-header > h2 {
  margin-top: 6px;
  padding-right: 0;
  font-size: 25px;
  line-height: 1.3;
}
.purchase-form-header { padding-right: 34px; }
.purchase-checkout-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.purchase-checkout-receipt > div { display: grid; min-width: 0; gap: 3px; }
.purchase-checkout-receipt span { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.purchase-checkout-receipt strong { font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; }
.purchase-checkout-product > strong { font-size: 17px; }
.purchase-checkout-delivery {
  display: flex;
  min-width: 0;
  margin-top: 4px;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark) !important;
  font-size: 14px !important;
}
.purchase-checkout-amount { justify-items: end; text-align: right; }
.purchase-checkout-amount strong { color: var(--brand-dark); font-family: var(--font-mono); font-size: 29px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.purchase-checkout-amount small { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.purchase-checkout-receipt.is-crypto {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}
.purchase-checkout-receipt.is-crypto .purchase-checkout-amount strong { color: #75440f; }
.purchase-checkout-receipt.is-compact {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-right: 0;
  border-left-width: 3px;
  border-radius: 0;
}
.purchase-checkout-receipt.is-compact .purchase-checkout-product > strong { color: var(--brand-dark); font-size: 15px; }
.purchase-form-intro,
.purchase-auth-inline > p { margin-top: 7px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

.purchase-offer-fieldset {
  min-width: 0;
  margin: 18px 0 20px;
  padding: 0;
  border: 0;
}

.purchase-offer-fieldset > legend {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.purchase-offer-fieldset > legend small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
}

.purchase-offer-list {
  display: grid;
  gap: 8px;
}
.purchase-offer-more {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.purchase-offer-more > summary {
  display: flex;
  min-height: 46px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.purchase-offer-more > summary span { color: var(--text-muted); font-family: var(--font-mono); }
.purchase-offer-more .purchase-offer-list { padding: 0 8px 8px; }
.purchase-offer-replenishing {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.purchase-offer-option {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) max-content 20px;
  min-height: 68px;
  padding: 11px 12px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.purchase-offer-option:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.purchase-offer-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.purchase-offer-option:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent);
  outline-offset: 2px;
}

.purchase-offer-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.purchase-offer-index {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.purchase-offer-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.purchase-offer-copy strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.purchase-offer-copy small {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.38;
}

.purchase-offer-price {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.purchase-offer-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: transparent;
}

.purchase-offer-option:has(input:checked) .purchase-offer-check {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--surface);
}

.purchase-offer-privacy {
  display: flex;
  margin: 9px 0 0;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.purchase-offer-privacy svg { flex: 0 0 auto; margin-top: 1px; }

.purchase-offer-gate {
  display: grid;
  margin: 18px 0 20px;
  padding: 14px;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
}

.purchase-offer-gate > div { display: grid; gap: 4px; }
.purchase-offer-gate strong { color: var(--text); font-size: 15px; }
.purchase-offer-gate p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.purchase-overview-complete { margin-top: 0; }
.purchase-contract-details { margin: 0; }
.purchase-contract-details.is-critical {
  margin-top: 14px;
  padding-inline: 14px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
}
.purchase-contract-details > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding-block: 13px; border-bottom: 1px solid var(--border); }
.purchase-contract-details > div:last-child { border-bottom: 0; }
.purchase-contract-details dt { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.purchase-contract-details dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; text-wrap: pretty; }
.purchase-form { margin-top: 20px; }
.purchase-form .transaction-feedback { margin-bottom: 16px; }

.purchase-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.purchase-identity-row.is-single { grid-template-columns: minmax(0, 1fr); }
.purchase-identity-row .form-group { min-width: 0; }
.order-pin-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.order-pin-control .input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}
.order-pin-control .btn { min-width: 84px; }
.purchase-account-bound .account-bound-field {
  display: grid;
  min-height: 48px;
  gap: 4px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}
.purchase-account-bound .account-bound-field strong,
.purchase-account-bound .account-bound-field small { overflow-wrap: anywhere; }
.purchase-account-bound .account-bound-field small { color: var(--text-muted); font-size: 13px; line-height: 1.45; }

.purchase-note-disclosure {
  margin-block: 4px 20px;
  border-block: 1px solid var(--border);
}
.purchase-note-disclosure summary {
  min-height: 48px;
  padding-block: 13px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.purchase-note-disclosure summary span { color: var(--text-muted); font-weight: 500; }
.purchase-note-disclosure .form-group { margin: 0; padding-bottom: 16px; }

.purchase-payment-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.purchase-payment-fieldset legend { margin-bottom: 10px; color: var(--text); font-size: 15px; font-weight: 750; }
.purchase-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.purchase-payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  grid-template-areas: "mark copy check";
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}
.purchase-payment-option:hover { border-color: #8eb8a0; background: #f8fbf9; }
.purchase-payment-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.purchase-payment-option:has(input:focus-visible) { outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }
.purchase-payment-option.is-disabled { cursor: not-allowed; opacity: 0.56; }
.payment-method-availability { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.method-crypto .purchase-payment-mark { background: var(--warning-soft); color: var(--warning); }
.method-paypal .purchase-payment-mark {
  background: #edf5ff;
  color: #003087;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
}
.purchase-checkout-receipt.is-paypal {
  border-color: #b8cae4;
  background: #f7faff;
}
.crypto-payment-settings[hidden] { display: none; }
.crypto-payment-settings { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-strong); }
.crypto-payment-settings-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.crypto-payment-settings-head strong { font-size: 15px; }
.crypto-payment-settings-head span { color: var(--text-muted); font-size: 13px; text-align: end; }
.crypto-choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.crypto-choice-group + .crypto-choice-group { margin-top: 15px; }
.crypto-choice-group legend {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}
.crypto-choice-group legend span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
}
.crypto-choice-grid { display: grid; gap: 8px; }
.crypto-choice-grid.is-network { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crypto-choice-grid.is-asset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crypto-choice-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}
.crypto-choice-option:hover { border-color: #8eb8a0; background: #f8fbf9; }
.crypto-choice-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.crypto-choice-option:has(input:focus-visible) { outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }
.crypto-choice-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.crypto-choice-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.crypto-choice-grid.is-asset .crypto-choice-mark { background: var(--warning-soft); color: var(--warning); font-size: 17px; }
.crypto-choice-copy { min-width: 0; }
.crypto-choice-copy strong,
.crypto-choice-copy small { display: block; overflow-wrap: anywhere; }
.crypto-choice-copy strong { font-size: 14px; line-height: 1.35; }
.crypto-choice-copy small { margin-top: 2px; color: var(--text-muted); font-size: 14px; line-height: 1.35; }
.crypto-choice-check { display: none; color: var(--brand); }
.crypto-choice-option:has(input:checked) .crypto-choice-check { display: block; }
.crypto-preorder-quote {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-top: 16px;
  padding-block: 15px;
  align-items: center;
  border-block: 1px solid var(--border-strong);
}
.crypto-preorder-amount { display: grid; min-width: 0; gap: 3px; }
.crypto-preorder-amount span { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.crypto-preorder-amount strong {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.crypto-preorder-amount small { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.crypto-preorder-facts { min-width: 0; margin: 0; }
.crypto-preorder-facts > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding-block: 4px;
}
.crypto-preorder-facts dt { color: var(--text-muted); font-size: 14px; }
.crypto-preorder-facts dd { margin: 0; color: var(--text); font-family: var(--font-mono); font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.crypto-payment-settings-hint { margin: 10px 0 0; }
.purchase-payment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.purchase-payment-mark {
  grid-area: mark;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #eaf1ff;
  color: #1769aa;
  font-size: 14px;
  font-weight: 800;
}
.method-manual_wechat .purchase-payment-mark { background: #e8f6ed; color: #13763f; }
.method-balance .purchase-payment-mark { background: #f0efec; color: #3e4943; }
.purchase-payment-copy { grid-area: copy; min-width: 0; align-self: center; }
.purchase-payment-copy strong,
.purchase-payment-copy small { display: block; overflow-wrap: anywhere; }
.purchase-payment-copy strong { font-size: 14px; }
.purchase-payment-copy small { margin-top: 3px; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.purchase-payment-check { grid-area: check; display: none; color: var(--brand); }
.purchase-payment-option:has(input:checked) .purchase-payment-check { display: block; }

.purchase-rule-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  min-height: 58px;
  margin-top: 18px;
  padding: 13px 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
}
.purchase-rule-confirm:has(input:focus-visible) { outline: 3px solid rgba(20, 122, 75, 0.24); outline-offset: 2px; }
.purchase-rule-confirm input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); }
.purchase-rule-confirm.is-critical { border-color: var(--border-strong); border-left: 3px solid var(--warning); background: var(--warning-soft); }
.purchase-affiliation-note { margin-block: 12px 16px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.purchase-balance-shortage { margin-bottom: 14px; padding: 11px 12px; border: 1px solid #ead1a8; border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning); font-size: 14px; }
.purchase-submit-note { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.5; text-align: center; }
.purchase-form[aria-busy="true"] { cursor: progress; }

.purchase-auth-inline { display: grid; align-content: center; }
.purchase-auth-inline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

.product-detail-depth-section { padding-top: 0; }
.product-detail-depth-head { padding: 32px 0 24px; border-bottom: 1px solid var(--border); }
.product-detail-depth-head h2 { margin-top: 6px; font-size: 26px; }
.product-detail-depth-head p { max-width: 64ch; margin-top: 7px; color: var(--text-muted); font-size: 15px; }

.purchase-flow-backdrop { z-index: 10020; }
.purchase-flow-modal-card {
  width: min(calc(100vw - 48px), 1160px);
  max-height: min(92dvh, 920px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.purchase-flow-modal-card > .modal-close { z-index: 2; min-width: 44px; min-height: 44px; background: var(--surface); }
.purchase-flow-scroll-region {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.purchase-flow-modal-card .purchase-workspace { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
#purchase-flow-modal[data-mode="payment"] .purchase-flow-modal-card { width: min(100%, 620px); }
#purchase-flow-modal[data-mode="payment"] .purchase-flow-scroll-region { background: var(--surface); }
.purchase-dialog-loading { min-height: 260px; padding: 38px; align-content: center; display: grid; }
.purchase-dialog-loading h2 { margin-top: 7px; padding-right: 54px; font-size: 26px; }
.purchase-dialog-loading p { margin-top: 8px; color: var(--text-muted); }

.pending-payment-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pending-payment-shell.is-loading { min-height: 520px; }
.pending-loading-summary {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
}
.pending-loading-summary span {
  display: block;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent 0 8%, var(--surface-muted) 8% 42%, transparent 42% 56%, var(--surface-muted) 56% 92%, transparent 92%);
  background-size: 220% 100%;
  animation: pending-payment-shimmer 1.4s ease-in-out infinite;
}
.pending-payment-loading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: center;
  gap: 12px 14px;
  min-height: 520px;
}
.pending-payment-loading-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: pending-payment-spin 0.9s linear infinite;
}
.pending-payment-loading strong { display: block; font-size: 18px; line-height: 1.4; }
.pending-payment-loading p { max-width: 42ch; margin-top: 5px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.pending-payment-loading-qr {
  grid-column: 1 / -1;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 18px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
@keyframes pending-payment-spin { to { transform: rotate(360deg); } }
@keyframes pending-payment-shimmer { to { background-position: -220% 0; } }
.pending-order-summary { border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.order-spec-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.order-spec-rows > div { min-width: 0; }
.order-spec-rows span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}
.order-spec-rows strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.pending-order-specs {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.pending-order-specs > div { padding: 7px 12px 7px 0; }
.pending-order-specs > div:nth-child(even) { padding-right: 0; padding-left: 12px; border-left: 1px solid var(--border); }
.pending-payment-actions { min-width: 0; padding: 28px; }
.pending-payment-confirmed,
.delivery-status-banner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #b7d9c6;
  border-radius: var(--radius-md);
  background: var(--success-soft);
  color: var(--brand-dark);
}
.pending-payment-confirmed.hidden { display: none; }
.pending-payment-confirmed > span,
.delivery-status-banner > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.pending-payment-confirmed strong,
.delivery-status-banner strong { display: block; font-size: 16px; }
.pending-payment-confirmed p,
.delivery-status-banner p { margin-top: 3px; font-size: 14px; line-height: 1.5; }
.delivery-status-banner.is-progress { border-color: #e8c895; background: var(--warning-soft); color: var(--warning); }
.delivery-status-banner.is-warning { border-color: #d9a36c; background: var(--warning-soft); color: var(--warning); }
.delivery-success-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
  border-color: #c4d8cc;
  box-shadow: 0 18px 42px rgba(20, 54, 37, 0.11), 0 2px 8px rgba(20, 54, 37, 0.06);
}
.delivery-success-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand);
}
.delivery-success-shell > .delivery-status-banner { margin-top: 2px; }
.delivery-success-shell > .summary-box {
  margin-inline: 0;
  border: 1px solid #c7d9cf;
  border-radius: var(--radius-md);
}
.delivery-order-summary {
  margin-bottom: 18px;
  border-color: #c7d9cf;
  box-shadow: 0 8px 18px rgba(20, 54, 37, 0.06);
}
.delivery-order-more { border-bottom: 1px solid var(--border); }
.delivery-order-more summary {
  display: flex;
  min-height: 48px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.delivery-order-more summary::after { content: "+"; color: var(--brand); font-size: 18px; line-height: 1; }
.delivery-order-more[open] summary { border-bottom: 1px solid var(--border); }
.delivery-order-more[open] summary::after { content: "−"; }
.delivery-order-more .summary-row { border-bottom: 0; background: var(--surface-subtle); }
.delivery-order-more summary:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: -3px; }
.delivery-product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}
.delivery-product-specs > div { min-width: 0; padding: 7px 12px 7px 0; }
.delivery-product-specs > div:nth-child(even) { padding-right: 0; padding-left: 12px; border-left: 1px solid var(--border); }
.delivery-product-specs dt { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.delivery-product-specs dd { margin: 3px 0 0; font-size: 14px; font-weight: 700; line-height: 1.42; overflow-wrap: anywhere; }
.delivery-secret-card {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.delivery-secret-head {
  display: flex;
  min-height: 72px;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}
.delivery-secret-head > div { display: grid; gap: 2px; }
.delivery-secret-head span { color: var(--text-muted); font-size: 14px; }
.delivery-secret-head strong { font-size: 18px; }
.delivery-secret-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.delivery-copy-all { flex: 0 0 auto; min-height: 44px; }
.delivery-secret-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.delivery-credential-field { min-width: 0; padding: 16px; border-bottom: 1px solid var(--border); }
.delivery-credential-field:nth-child(even):not(.is-wide) { border-left: 1px solid var(--border); }
.delivery-credential-field.is-wide { grid-column: 1 / -1; }
.delivery-credential-field dt { color: var(--text-muted); font-size: 14px; font-weight: 650; }
.delivery-credential-field dd {
  display: flex;
  min-width: 0;
  margin: 7px 0 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.delivery-credential-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  user-select: all;
}
.delivery-credential-value.is-sensitive[data-revealed="false"] { letter-spacing: 0.08em; user-select: none; }
.delivery-credential-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.delivery-credential-actions button {
  min-width: 56px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.delivery-credential-actions button:hover { border-color: var(--brand); color: var(--brand-dark); }
.delivery-credential-actions button:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.delivery-security-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 13px 16px;
  align-items: start;
  background: var(--surface-subtle);
  color: var(--text-muted);
}
.delivery-security-note svg { margin-top: 2px; color: var(--brand); }
.delivery-security-note p { margin: 0; font-size: 13px; line-height: 1.6; }
.delivery-extra-note { margin-bottom: 16px; }
.delivery-extra-note p { margin: 4px 0 0; }
.delivery-secret-note { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.delivery-page-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.delivery-card-actions {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #c7d9cf;
  border-radius: var(--radius-md);
  background: #f7fbf8;
  box-shadow: 0 8px 20px rgba(20, 54, 37, 0.06);
}
.delivery-card-actions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.delivery-card-actions-head > div { display: grid; gap: 3px; }
.delivery-card-actions-head span:first-child { color: var(--text-muted); font-size: 13px; }
.delivery-card-actions-head strong { font-size: 17px; }
.delivery-card-actions-badge {
  padding: 4px 8px;
  border: 1px solid #b7d9c6;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.delivery-card-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.delivery-card-action {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.delivery-card-action:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(20, 122, 75, 0.11); }
.delivery-card-action:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.delivery-card-action-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}
.delivery-card-action > span:last-child { display: grid; gap: 3px; min-width: 0; }
.delivery-card-action strong { font-size: 14px; }
.delivery-card-action small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.delivery-card-action.is-disabled { cursor: default; opacity: 0.64; }
.delivery-card-action.is-disabled:hover { border-color: var(--border-strong); box-shadow: none; }
.cdk-delivery-card,
.cdk-redemption-site,
.cdk-redemption-guide {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.cdk-delivery-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); gap: 16px; }
.cdk-delivery-grid .cdk-delivery-card,
.cdk-delivery-grid .cdk-redemption-site { margin-bottom: 16px; }
.cdk-delivery-card-head,
.cdk-redemption-site-head,
.cdk-redemption-guide-head {
  display: flex;
  padding: 15px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}
.cdk-delivery-card-head > div,
.cdk-redemption-site-head > div,
.cdk-redemption-guide-head > div { display: grid; gap: 3px; }
.cdk-delivery-card-head span:first-child,
.cdk-redemption-site-head span:first-child,
.cdk-redemption-guide-head span:first-child { color: var(--text-muted); font-size: 13px; }
.cdk-delivery-card-head strong,
.cdk-redemption-site-head strong,
.cdk-redemption-guide-head strong { font-size: 18px; }
.cdk-redemption-site-head > span,
.cdk-redemption-guide-head > span { color: var(--brand-dark); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.cdk-delivery-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 18px 16px;
  align-items: center;
}
.cdk-delivery-code-row code {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cdk-redemption-site-body { display: grid; gap: 10px; padding: 18px 16px; }
.cdk-redemption-site-body .notice { margin: 0; }
.cdk-redemption-link { width: 100%; margin: 0; }
.cdk-external-domain { margin: 0; color: var(--text-muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.cdk-redemption-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.cdk-redemption-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 15px 16px; align-items: start; border-bottom: 1px solid var(--border); }
.cdk-redemption-steps li:last-child { border-bottom: 0; }
.cdk-redemption-steps li > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.cdk-redemption-steps strong { display: block; font-size: 15px; }
.cdk-redemption-steps p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.cdk-session-risk,
.cdk-delivery-warning { margin-bottom: 16px; }
.cdk-session-risk p,
.cdk-delivery-warning p { margin: 4px 0 0; }
@media (max-width: 640px) {
  .delivery-secret-head { align-items: stretch; flex-direction: column; }
  .delivery-copy-all { width: 100%; }
  .delivery-secret-fields { grid-template-columns: 1fr; }
  .delivery-credential-field,
  .delivery-credential-field.is-wide { grid-column: 1; border-left: 0; }
  .delivery-credential-field:nth-child(even):not(.is-wide) { border-left: 0; }
  .delivery-credential-field dd { align-items: stretch; flex-direction: column; }
  .delivery-credential-actions { width: 100%; }
  .delivery-credential-actions button { flex: 1; }
  .delivery-page-actions { grid-template-columns: 1fr; }
  .delivery-page-actions .btn { width: 100%; }
  .delivery-card-action-grid { grid-template-columns: 1fr; }
  .delivery-card-actions-head { align-items: flex-start; flex-direction: column; }
  .cdk-delivery-code-row { grid-template-columns: 1fr 1fr; }
  .cdk-delivery-code-row code { grid-column: 1 / -1; }
  .cdk-delivery-code-row .btn { width: 100%; }
  .cdk-redemption-guide-head { align-items: flex-start; flex-direction: column; }
  .order-spec-rows,
  .delivery-product-specs { grid-template-columns: 1fr; }
  .order-spec-rows > div,
  .order-spec-rows > div:nth-child(even),
  .delivery-product-specs > div,
  .delivery-product-specs > div:nth-child(even) {
    padding: 8px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .order-spec-rows > div:last-child,
  .delivery-product-specs > div:last-child { border-bottom: 0; }
}
.static-content-delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.static-content-delivery p { flex-basis: 100%; margin: 0; line-height: 1.65; }

@media (max-width: 900px) {
  .admin-fulfillment-editor { grid-template-columns: 1fr 1fr; }
  .admin-fulfillment-editor .textarea { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .admin-fulfillment-editor { grid-template-columns: 1fr; }
  .admin-fulfillment-editor .textarea { grid-column: auto; }
}
.pending-status-track { margin: 0; border-top: 1px solid var(--border); }
.pending-status-track li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}
.pending-status-track li > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--text-muted); }
.pending-status-track li.is-complete > span { background: var(--brand-soft); color: var(--brand); }
.pending-status-track li.is-current > span { background: var(--warning-soft); color: var(--warning); }
.pending-status-track strong { font-size: 15px; }
.pending-status-track p { margin-top: 3px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.pending-payment-notice { margin-block: 18px; }
.pending-cancel-order { margin-top: 10px; }
.pending-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

.payment-dialog-layout {
  --payment-channel: var(--text);
  --payment-channel-mark: var(--text);
  --payment-channel-soft: var(--surface-muted);
  min-width: 0;
  background: var(--surface);
}
.payment-dialog-layout.is-alipay { --payment-channel: #0057c2; --payment-channel-mark: #1677ff; --payment-channel-soft: #eef5ff; }
.payment-dialog-layout.is-wechat { --payment-channel: #006b35; --payment-channel-mark: #07a84f; --payment-channel-soft: #edf9f2; }
.payment-dialog-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 78px;
  padding: 17px 68px 17px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.payment-dialog-channel-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--payment-channel-mark);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.payment-dialog-channel-copy { min-width: 0; }
.payment-dialog-channel-copy h2 { margin: 0; padding: 0; font-size: 20px; line-height: 1.25; }
.payment-dialog-channel-copy p { margin-top: 3px; color: var(--text-muted); font-size: 13px; }
.payment-dialog-status {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--payment-channel) 30%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--payment-channel-soft);
  color: var(--payment-channel);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.payment-dialog-receipt { min-width: 0; }
.payment-dialog-priority {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 28px 24px 16px;
  text-align: center;
}
.payment-dialog-priority > span { color: var(--text-muted); font-size: 14px; }
.payment-dialog-priority > strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.payment-dialog-qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 4px 24px 24px;
}
.payment-dialog-qr-frame {
  --payment-qr-size: 250px;
  position: relative;
  display: grid;
  width: var(--payment-qr-size);
  height: var(--payment-qr-size);
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
}
.payment-dialog-qr-frame > .payment-qr-image {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(var(--payment-qr-size) - 12px);
  height: calc(var(--payment-qr-size) - 12px);
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.payment-dialog-qr p { color: var(--text-muted); font-size: 14px; text-align: center; }
.payment-dialog-qr p strong { margin-inline: 3px; color: var(--payment-channel); }
.payment-dialog-facts { margin: 0 28px; border-top: 1px solid var(--border); }
.payment-dialog-facts > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  min-height: 50px;
  padding-block: 11px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.payment-dialog-facts dt { color: var(--text-muted); font-size: 14px; }
.payment-dialog-facts dd { min-width: 0; margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.payment-dialog-reference { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.payment-dialog-order-id,
.order-reference-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.payment-dialog-order-id { min-width: 0; overflow-wrap: anywhere; }
.payment-dialog-item-name { color: var(--text); }
.payment-dialog-copy {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.payment-dialog-copy:hover { border-color: var(--payment-channel); color: var(--payment-channel); }
.payment-dialog-copy:focus-visible { outline: 3px solid color-mix(in srgb, var(--payment-channel) 24%, transparent); outline-offset: 2px; }
.payment-dialog-guidance { margin: 0 28px; padding: 17px 0 24px; }
.payment-dialog-guidance strong { font-size: 14px; }
.payment-dialog-guidance p { margin-top: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
#purchase-flow-modal[data-mode="crypto-payment"] .purchase-flow-modal-card { width: min(100%, 650px); }
.crypto-payment-dialog { min-width: 0; }
.crypto-payment-dialog-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.crypto-payment-dialog-head h2 { margin: 0; padding: 0; font-size: 20px; line-height: 1.25; }
.crypto-payment-dialog-head p { margin-top: 3px; color: var(--text-muted); font-size: 13px; }
.crypto-payment-dialog-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--warning-soft); color: var(--warning); font-weight: 800; }
.crypto-payment-inline {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.crypto-payment-inline.is-loading { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.crypto-payment-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.crypto-payment-inline-head > div { display: grid; min-width: 0; gap: 3px; }
.crypto-payment-inline-head strong { font-size: 16px; }
.crypto-payment-inline-head span:not(.payment-dialog-status) { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.crypto-payment-amount { display: grid; gap: 4px; justify-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); }
.crypto-payment-amount span,
.crypto-payment-amount small,
.crypto-payment-amount em { color: var(--text-muted); font-size: 14px; font-style: normal; }
.crypto-amount-value { font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
.crypto-copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; }
.crypto-payment-qr { display: grid; place-items: center; width: 260px; height: 260px; margin: 16px auto; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.crypto-payment-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.crypto-payment-qr-error { display: none; color: var(--danger); font-size: 13px; line-height: 1.45; text-align: center; }
.crypto-payment-qr.is-error img { display: none; }
.crypto-payment-qr.is-error .crypto-payment-qr-error { display: block; }
.crypto-payment-address-primary,
.crypto-payment-address-row { display: grid; gap: 8px; margin: 14px 28px 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.crypto-payment-address-primary > span,
.crypto-payment-address-row > span { color: var(--text-muted); font-size: 13px; }
.crypto-payment-address-primary > strong,
.crypto-payment-address-row code { overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.crypto-payment-facts { margin-top: 16px; }
.crypto-payment-inline .crypto-payment-qr { margin-block: 0; width: min(100%, 238px); height: auto; aspect-ratio: 1; }
.crypto-payment-inline .crypto-payment-address-primary,
.crypto-payment-inline .crypto-payment-address-row,
.crypto-payment-inline .payment-dialog-guidance,
.crypto-payment-inline .payment-dialog-facts { margin-inline: 0; }
.crypto-payment-inline .crypto-payment-facts { margin-top: 0; }
.crypto-transaction-link { color: var(--brand); font-size: 13px; }

/* Alipay provider handoff: render the verified order QR in the current page. */
.managed-checkout-panel {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.managed-checkout-handoff {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: stretch;
}
.managed-checkout-amount {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  text-align: center;
}
.managed-checkout-amount span,
.managed-checkout-amount small { color: var(--text-muted); font-size: 13px; }
.managed-checkout-amount strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.managed-checkout-action { display: grid; align-content: center; gap: 12px; min-width: 0; }
.managed-checkout-action h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.managed-checkout-action p { margin: 0 0 3px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.managed-checkout-action .btn { min-height: 48px; }
.managed-checkout-qr {
  display: grid;
  grid-template-columns: minmax(220px, 0.84fr) minmax(0, 1.16fr);
  gap: 24px;
  align-items: center;
}
.managed-checkout-qr-column {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}
.managed-checkout-qr-frame {
  display: grid;
  width: min(100%, 276px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 13px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}
.managed-checkout-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.managed-checkout-qr-caption { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.managed-checkout-qr-summary {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 8px;
}
.managed-checkout-qr-summary > span { color: var(--text-muted); font-size: 14px; }
.managed-checkout-qr-summary > strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.managed-checkout-qr-summary h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.3; }
.managed-checkout-qr-summary p { margin: 0 0 5px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.managed-checkout-qr-summary .btn { min-height: 48px; }
.managed-checkout-explanation {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
}
.managed-checkout-explanation svg { margin-top: 2px; }
.managed-checkout-explanation p { margin: 0; font-size: 14px; line-height: 1.6; }
.managed-checkout-explanation.is-compact { margin-top: 0; }
.managed-checkout-panel .payment-dialog-guidance { margin: 0; padding: 0; }

/* Focused crypto checkout */
.pending-payment-header.is-crypto {
  padding-block: 32px 24px;
  background: var(--surface);
}
.pending-payment-header.is-crypto h1 {
  max-width: none;
  font-size: 32px !important;
}
.pending-payment-header.is-crypto .lead {
  margin-top: 7px;
  font-size: 15px;
}
.pending-payment-shell.is-crypto {
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.68fr);
  width: 100%;
}
.pending-payment-shell.is-crypto .pending-payment-actions {
  order: 1;
  padding: 24px 28px 22px;
}
.pending-payment-shell.is-crypto .pending-order-summary {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--border);
  background: var(--surface-subtle);
}
.pending-summary-head {
  display: flex;
  min-height: 62px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.pending-summary-head > span {
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
}
.pending-summary-head > strong {
  padding: 5px 8px;
  border: 1px solid #e8c895;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 13px;
  white-space: nowrap;
}
.pending-payment-shell.is-crypto .pending-order-summary .summary-row {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
}
.pending-payment-shell.is-crypto .pending-order-summary .summary-row .v {
  font-size: 14px;
}
.pending-payment-shell.is-crypto .pending-order-summary .summary-total {
  background: transparent;
}
.pending-payment-shell.is-crypto .pending-order-summary .summary-total .v {
  font-size: 20px;
}
.pending-payment-shell.is-crypto .crypto-payment-inline {
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pending-payment-shell.is-paypal {
  grid-template-columns: minmax(290px, 0.78fr) minmax(390px, 1.22fr);
  width: 100%;
}
.pending-payment-shell.is-paypal .pending-payment-actions {
  padding: 28px;
}
.paypal-payment-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #c7d4e7;
  border-radius: var(--radius-md);
  background: #f8fbff;
}
.paypal-payment-panel.is-unavailable {
  border-color: var(--border);
  background: var(--surface-subtle);
}
.paypal-payment-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.paypal-payment-panel-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.paypal-payment-panel-head span:not(.paypal-wordmark) {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}
.paypal-payment-panel-head strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1.2;
}
.paypal-payment-panel-head small {
  color: var(--text-muted);
  font-size: 13px;
}
.paypal-wordmark {
  flex: 0 0 auto;
  color: #003087;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
}
.paypal-payment-trust {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #334e73;
}
.paypal-payment-trust svg { margin-top: 2px; }
.paypal-payment-trust p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.paypal-button-host {
  min-height: 48px;
  overflow: hidden;
}
.paypal-button-loading {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid #d6dee9;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
}
#paypal-payment-feedback {
  margin: 0;
}
#paypal-payment-feedback[data-type="progress"] {
  border-color: #b8cae4;
  background: #edf5ff;
  color: #244c80;
}
#paypal-payment-feedback[data-type="info"] {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
}
.pending-paypal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pending-paypal-actions .pending-cancel-link {
  grid-column: 1 / -1;
}
.crypto-payment-inline-head {
  min-height: 48px;
  padding-bottom: 14px;
}
.crypto-payment-inline-head > div {
  gap: 2px;
}
.crypto-payment-inline-head > div > span {
  order: 1;
}
.crypto-payment-inline-head > div > strong {
  order: 2;
  font-size: 19px;
}
.crypto-payment-core {
  display: grid;
  grid-template-areas: "qr transfer";
  grid-template-columns: minmax(190px, 218px) minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  align-items: start;
}
.crypto-payment-transfer {
  grid-area: transfer;
  display: grid;
  min-width: 0;
  gap: 16px;
}
.crypto-payment-inline .crypto-payment-amount {
  justify-items: stretch;
  gap: 7px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.crypto-payment-field-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crypto-payment-field-head > span {
  color: var(--text-muted);
  font-size: 13px;
}
.crypto-copy-action {
  display: inline-flex;
  min-width: 96px;
  min-height: 38px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.crypto-copy-action:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}
.crypto-copy-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 2px;
}
.crypto-copy-action.is-copied {
  border-color: #9fceb2;
  background: var(--success-soft);
  color: var(--brand-dark);
}
.crypto-payment-inline .crypto-amount-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
}
.crypto-payment-inline .crypto-payment-amount small {
  color: var(--text-muted);
  font-size: 13px;
}
.crypto-payment-inline .crypto-payment-address-primary {
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.crypto-payment-inline .crypto-payment-address-primary > strong {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}
.crypto-network-guard {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 12px;
  align-items: start;
  border: 1px solid #e8c895;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #75440f;
}
.crypto-network-guard > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}
.crypto-network-guard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.crypto-payment-inline .crypto-payment-qr {
  grid-area: qr;
  display: grid;
  width: 218px;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  padding: 10px;
  gap: 8px;
  place-items: center;
  border-color: var(--border-strong);
  border-radius: var(--radius-sm);
}
.crypto-payment-inline .crypto-payment-qr > span:first-child,
.crypto-payment-inline .crypto-payment-qr > small {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}
.crypto-payment-inline .crypto-payment-qr img {
  width: 190px;
  height: 190px;
}
.crypto-payment-inline .crypto-payment-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--border);
}
.crypto-payment-inline .crypto-payment-facts > div {
  display: block;
  min-height: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 0;
}
.crypto-payment-inline .crypto-payment-facts > div:first-child {
  padding-left: 0;
}
.crypto-payment-inline .crypto-payment-facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}
.crypto-payment-inline .crypto-payment-facts dt {
  font-size: 14px;
}
.crypto-payment-inline .crypto-payment-facts dd {
  margin-top: 4px;
  font-size: 13px;
}
.crypto-payment-live-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.crypto-payment-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 14%, transparent);
}
.crypto-payment-live-status.is-progress .crypto-payment-status-dot {
  background: #1677ff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}
.crypto-payment-live-status.is-success .crypto-payment-status-dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.crypto-payment-live-status.is-danger .crypto-payment-status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent);
}
.crypto-payment-live-status strong {
  display: block;
  font-size: 14px;
}
.crypto-payment-live-status p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.crypto-payment-live-status > small {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}
.pending-crypto-actions {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.pending-crypto-actions .btn {
  min-height: 42px;
}
.pending-cancel-link {
  justify-self: end;
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.pending-cancel-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pending-cancel-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--danger) 20%, transparent);
  outline-offset: 2px;
}

#purchase-flow-modal[data-mode="verification"] .purchase-flow-modal-card { width: min(100%, 640px); }
.login-verification-dialog { padding: 30px; }

.login-verification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-verification-head h2 { font-size: 21px; }
.login-verification-head p { margin-top: 5px; color: var(--text-muted); font-size: 14px; }

.login-verification-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.login-verification-instruction {
  max-width: 62ch;
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.login-verification-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 5px 14px;
  margin-top: 20px;
  padding: 15px 16px;
  align-items: center;
  border-block: 1px solid var(--border);
}
.login-verification-account > span { color: var(--text-muted); font-size: 14px; }
.login-verification-account > strong { grid-column: 1; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 16px; }
.login-verification-account > .btn { grid-column: 2; grid-row: 1 / span 2; }

.login-verification-steps,
.account-code-guide ol {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.login-verification-steps li,
.account-code-guide li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.login-verification-steps li > span,
.account-code-guide li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}
.login-verification-steps p,
.account-code-guide li p { padding-top: 3px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.login-verification-stage {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.login-verification-stage > span { color: var(--text-muted); font-size: 14px; }
.login-verification-stage > strong { font-size: 16px; line-height: 1.45; }
.login-verification-stage.is-ready { border-color: #b7d9c6; background: var(--success-soft); }
.login-verification-stage.is-error,
.login-verification-stage.is-expired { background: var(--danger-soft); }

.login-verification-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-verification-code-row code {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.login-verification-actions { display: grid; margin-top: 12px; }
.login-verification-actions .btn { width: 100%; }
.login-verification-boundary { margin-top: 11px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.account-code-summary { margin-bottom: 24px; }
.account-code-guide { padding-block: 20px; border-block: 1px solid var(--border); }
.account-code-guide > strong { font-size: 17px; }
.account-delivery-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.account-delivery-actions .btn { min-width: 0; padding-inline: 12px; }
.account-code-channel-warning { margin-top: 12px; color: var(--danger); font-size: 14px; line-height: 1.55; }

@media (max-width: 980px) {
  .purchase-workspace,
  .purchase-workspace.is-detail,
  .pending-payment-shell { grid-template-columns: 1fr; }
  .pending-payment-shell.is-loading { min-height: 0; }
  .pending-loading-summary { display: none; }
  .pending-payment-loading { min-height: 480px; }
  .purchase-workspace.is-detail { overflow: hidden; }
  .purchase-overview,
  .pending-order-summary { border-right: 0; border-bottom: 1px solid var(--border); }
  .purchase-workspace.is-detail .purchase-form-pane {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
  .purchase-workspace.is-detail .purchase-overview,
  .purchase-workspace.is-detail .purchase-form-pane { border-radius: 0; }
}

@media (max-width: 900px) {
  .purchase-checkout-receipt.is-modal { padding-right: 48px; }
  .purchase-workspace { grid-template-columns: 1fr; }
  .purchase-overview { border-right: 0; border-bottom: 1px solid var(--border); }
  .purchase-flow-modal-card { width: min(calc(100vw - 32px), 720px); }

  #app-main:has(.product-mobile-buybar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .product-mobile-buybar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 38vw);
    min-height: 76px;
    padding: 10px max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: 0 -8px 24px rgba(28, 39, 33, 0.12);
  }
  .product-mobile-buybar-summary { display: grid; min-width: 0; gap: 2px; }
  .product-mobile-buybar-summary span { overflow: hidden; color: var(--text-muted); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .product-mobile-buybar-summary strong { color: var(--brand-dark); font-family: var(--font-mono); font-size: 22px; font-variant-numeric: tabular-nums; }
  .product-mobile-buybar-control { min-width: 0; }
  .product-mobile-buybar-control .btn { min-height: 48px; padding-inline: 14px; font-size: 15px; }
}

@media (max-width: 600px) {
  .purchase-flow-backdrop { padding: 0; align-items: flex-end; }
  .purchase-flow-modal-card { width: 100%; max-height: 94dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .purchase-overview,
  .purchase-form-pane,
  .pending-payment-actions { padding: 20px 18px; }
  .purchase-overview :is(h1, h2, h3),
  .purchase-workspace.is-detail .purchase-overview h1 { font-size: 24px; }
  .purchase-form-header > h2 { font-size: 22px; }
  .purchase-overview-header,
  .purchase-form-header { padding-right: 38px; }
  .purchase-description-disclosure > summary { min-height: 48px; }
  .purchase-contract-details > div { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .purchase-decision-facts { grid-template-columns: 1fr; }
  .purchase-decision-facts > div,
  .purchase-decision-facts > div:nth-child(odd),
  .purchase-decision-facts > div:nth-child(even) { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .purchase-decision-facts > div:last-child { border-bottom: 0; }
  .purchase-decision-facts dt { font-size: 14px; }
  .purchase-decision-facts dd { font-size: 14px; }
  .product-detail-section-link,
  .product-detail-purchase-return { min-height: 48px; padding-inline: 10px; }
  .product-detail-nav-label-full { display: none; }
  .product-detail-nav-label-short { display: inline; }
  .product-detail-purchase-return { gap: 6px; padding-inline: 12px; }
  .purchase-identity-row,
  .purchase-auth-inline-actions,
  .pending-secondary-actions { grid-template-columns: 1fr; }
  .purchase-payment-options { grid-template-columns: 1fr; }
  .purchase-payment-option {
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    grid-template-areas: "mark copy check";
    min-height: 66px;
    padding: 10px 12px;
    align-items: center;
  }
  .purchase-payment-check { grid-area: check; }
  .payment-dialog-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 72px;
    padding: 15px 62px 15px 18px;
  }
  .payment-dialog-channel-mark { width: 40px; height: 40px; font-size: 19px; }
  .payment-dialog-channel-copy h2 { font-size: 18px; }
  .payment-dialog-priority { padding: 24px 18px 14px; }
  .payment-dialog-priority > strong { font-size: 34px; }
  .payment-dialog-qr { padding: 4px 18px 22px; }
  .payment-dialog-qr-frame { --payment-qr-size: min(64vw, 236px); }
  .payment-dialog-facts { margin-inline: 18px; }
  .payment-dialog-guidance { margin-inline: 18px; padding-bottom: 22px; }
  .crypto-payment-settings-head { display: grid; }
  .crypto-payment-settings-head span { text-align: start; }
  .crypto-preorder-quote { grid-template-columns: 1fr; gap: 12px; }
  .crypto-payment-dialog-head { grid-template-columns: 44px minmax(0, 1fr); }
  .crypto-payment-dialog-head .payment-dialog-status { grid-column: 1 / -1; justify-self: start; }
  .crypto-payment-qr { width: min(100%, 240px); height: auto; aspect-ratio: 1; }
  .crypto-payment-address-primary,
  .crypto-payment-address-row { margin-inline: 18px; }
  .pending-order-summary .summary-row { grid-template-columns: minmax(88px, 0.36fr) minmax(0, 1fr); }
  .login-verification-head { display: grid; gap: 10px; }
  .login-verification-badge { width: max-content; }
  .login-verification-code-row { align-items: stretch; flex-direction: column; }
  .login-verification-code-row .btn { width: 100%; }
  .account-delivery-actions { grid-template-columns: 1fr; }
  .login-verification-dialog { padding: 24px 18px; }
  .login-verification-account { grid-template-columns: 1fr; }
  .login-verification-account > .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
}

@media (max-width: 420px) {
  .purchase-checkout-receipt {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .purchase-checkout-amount {
    order: -1;
    padding-bottom: 12px;
    justify-items: start;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .purchase-checkout-amount strong { font-size: 27px; white-space: normal; }
  .purchase-offer-fieldset > legend { align-items: flex-start; flex-direction: column; gap: 3px; }
  .purchase-offer-option {
    grid-template-columns: minmax(0, 1fr) max-content 20px;
    min-height: 76px;
    padding: 11px;
  }
  .purchase-offer-index { grid-column: 1; }
  .purchase-offer-copy { grid-column: 1 / -1; grid-row: 2; padding-right: 4px; }
  .purchase-offer-price { grid-column: 2; grid-row: 1; font-size: 17px; }
  .purchase-offer-check { grid-column: 3; grid-row: 1; }
  .purchase-payment-option { padding-inline: 9px; gap: 7px; }
  .purchase-payment-copy small { font-size: 14px; }
  .crypto-choice-option {
    grid-template-columns: minmax(0, 1fr) 18px;
    min-height: 62px;
    padding: 9px;
  }
  .crypto-choice-mark { display: none; }
  .crypto-choice-copy strong { font-size: 14px; }
  .crypto-choice-copy small { font-size: 14px; }
  .crypto-preorder-amount strong { font-size: 23px; }
  .product-mobile-buybar { grid-template-columns: minmax(0, 1fr) minmax(148px, 44vw); gap: 10px; padding-inline: 14px; }
  .product-mobile-buybar-summary strong { font-size: 20px; }
  .payment-dialog-status { min-height: 28px; padding-inline: 7px; font-size: 14px; }
  .payment-dialog-facts > div { grid-template-columns: 1fr; gap: 4px; min-height: 0; padding-block: 10px; }
  .payment-dialog-reference { width: 100%; }
}

@media (max-width: 980px) {
  .pending-payment-shell.is-crypto {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }
  .pending-payment-shell.is-crypto .pending-order-summary {
    order: 2;
    border-top: 1px solid var(--border);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
  .pending-payment-shell.is-crypto .pending-payment-actions {
    order: 1;
  }
  .pending-payment-shell.is-paypal {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }
  .pending-payment-shell.is-paypal .pending-order-summary {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .pending-payment-header.is-crypto {
    padding-block: 24px 18px;
  }
  .pending-payment-header.is-crypto h1 {
    font-size: 28px !important;
  }
  .pending-payment-header.is-crypto .lead {
    max-width: 38ch;
    font-size: 14px;
  }
  .pending-payment-shell.is-crypto .pending-payment-actions {
    padding: 20px 18px;
  }
  .crypto-payment-core {
    grid-template-areas: "transfer" "qr";
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .crypto-payment-inline .crypto-payment-qr {
    justify-self: center;
  }
  .crypto-payment-live-status {
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
  }
  .crypto-payment-live-status > small {
    grid-column: 2;
  }
  .pending-crypto-actions {
    grid-template-columns: 1fr 1fr;
  }
  .pending-crypto-actions .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 10px;
  }
  .pending-cancel-link {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .managed-checkout-panel { padding: 16px; }
  .managed-checkout-handoff { grid-template-columns: 1fr; gap: 16px; }
  .managed-checkout-amount { min-height: 132px; }
  .managed-checkout-amount strong { font-size: 34px; }
  .managed-checkout-action h3 { font-size: 20px; }
  .managed-checkout-qr { grid-template-columns: 1fr; gap: 18px; }
  .managed-checkout-qr-frame { width: min(100%, 248px); }
  .managed-checkout-qr-summary { text-align: center; }
  .managed-checkout-qr-summary > strong { font-size: 34px; }
  .managed-checkout-qr-summary h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .pending-payment-shell.is-crypto {
    border-radius: var(--radius-md);
  }
  .pending-payment-shell.is-paypal {
    border-radius: var(--radius-md);
  }
  .pending-payment-shell.is-paypal .pending-payment-actions {
    padding: 18px;
  }
  .paypal-payment-panel {
    padding: 16px;
  }
  .paypal-payment-panel-head {
    gap: 12px;
  }
  .paypal-payment-panel-head strong {
    font-size: 24px;
  }
  .pending-paypal-actions {
    grid-template-columns: 1fr;
  }
  .pending-paypal-actions .pending-cancel-link {
    grid-column: auto;
  }
  .crypto-payment-inline-head {
    align-items: flex-start;
  }
  .managed-checkout-panel .crypto-payment-inline-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 12px;
  }
  .managed-checkout-panel .crypto-payment-inline-head .payment-dialog-status {
    grid-column: 2;
    justify-self: start;
  }
  .crypto-payment-inline-head > div > strong {
    font-size: 17px;
  }
  .crypto-payment-inline .crypto-amount-value {
    font-size: 29px;
  }
  .crypto-copy-action {
    min-width: 92px;
    min-height: 44px;
  }
  .crypto-payment-inline .crypto-payment-facts {
    grid-template-columns: 1fr;
  }
  .crypto-payment-inline .crypto-payment-facts > div,
  .crypto-payment-inline .crypto-payment-facts > div:first-child,
  .crypto-payment-inline .crypto-payment-facts > div:last-child {
    display: flex;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .crypto-payment-inline .crypto-payment-facts > div:last-child {
    border-bottom: 0;
  }
  .crypto-payment-inline .crypto-payment-facts dd {
    margin-top: 0;
    text-align: right;
  }
  .pending-payment-shell.is-crypto .pending-order-summary .summary-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* Guest checkout and order recovery */
.guest-checkout-assurance {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 13px 0;
  border-block: 1px solid var(--border);
  color: var(--text-muted);
}
.guest-checkout-assurance p { margin: 0; font-size: 14px; line-height: 1.55; }
.guest-checkout-assurance .text-action { white-space: nowrap; }
.guest-checkout-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.lookup-section { padding-bottom: 72px; }
.lookup-account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.lookup-account-banner > div { display: grid; gap: 3px; min-width: 0; }
.lookup-account-banner strong { overflow-wrap: anywhere; }
.lookup-account-banner span { color: var(--text-muted); font-size: 13px; }
.lookup-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.76fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.lookup-primary { min-width: 0; padding: 30px; }
.lookup-primary-head { margin-bottom: 22px; }
.lookup-primary-head h2,
.lookup-status-guide h2 { margin: 7px 0 8px; font-size: 23px; }
.lookup-primary-head p,
.lookup-status-guide > p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.lookup-form { display: grid; gap: 14px; }
.lookup-form .form-group,
.guest-reset-body .form-group { margin: 0; }
.lookup-privacy-note { margin: -2px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; text-align: center; }
.lookup-status-guide {
  min-width: 0;
  padding: 30px;
  border-left: 1px solid var(--border);
  background: var(--surface-subtle, #f7f8fa);
}
.lookup-status-guide .status-help-list { margin: 20px 0; }
.lookup-status-guide .status-help-row { grid-template-columns: 96px minmax(0, 1fr); }
.guest-reset-panel { margin-top: 20px; border-top: 1px solid var(--border); }
.guest-reset-panel > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.guest-reset-panel > summary::marker { color: var(--text-muted); }
.guest-reset-body { display: grid; gap: 14px; padding: 2px 0 8px; }
.guest-reset-body > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.guest-reset-request,
.guest-reset-confirm { display: grid; gap: 12px; }
.lookup-password-alternative { min-height: 44px; justify-self: center; }

@media (max-width: 820px) {
  .lookup-workspace { grid-template-columns: 1fr; }
  .lookup-status-guide { border-top: 1px solid var(--border); border-left: 0; }
}

@media (max-width: 560px) {
  .guest-checkout-assurance { grid-template-columns: 20px minmax(0, 1fr); }
  .guest-checkout-actions { grid-column: 2; justify-self: start; justify-content: flex-start; }
  .lookup-account-banner { align-items: stretch; flex-direction: column; }
  .lookup-account-banner .btn { width: 100%; }
  .lookup-primary,
  .lookup-status-guide { padding: 22px 18px; }
  .lookup-status-guide .status-help-row { grid-template-columns: 1fr; }
}

/* Paginated account orders and automatic wallet recharge */
.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;
}
.transaction-feedback.is-info { border-color: #c4ddcf; background: var(--brand-soft); color: var(--brand-dark); }
.transaction-feedback.is-warning { border-color: #e8c895; background: var(--warning-soft); color: var(--warning); }
.account-pending-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.account-pending-notice p { margin-top: 2px; }
.account-order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.account-order-search,
.guest-center-toolbar form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 560px;
}
.account-order-toolbar .input,
.account-order-toolbar select,
.guest-center-toolbar .input,
.guest-center-toolbar select { min-height: 44px; }
.account-order-filter,
.guest-center-toolbar > label,
.account-order-pagination > label,
.guest-center-pagination > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.account-order-filter select,
.account-order-pagination select,
.guest-center-toolbar select,
.guest-center-pagination select {
  min-width: 108px;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.account-order-item,
.guest-center-order-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.account-order-item:last-child,
.guest-center-order-item:last-child { border-bottom: 0; }
.account-order-summary,
.guest-center-order-item > summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 104px 104px 150px 24px;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 24px;
  list-style: none;
  cursor: pointer;
}
.account-order-summary::-webkit-details-marker,
.guest-center-order-item > summary::-webkit-details-marker { display: none; }
.account-order-summary:hover,
.guest-center-order-item > summary:hover { background: var(--surface-muted); }
.account-order-summary:focus-visible,
.guest-center-order-item > summary:focus-visible {
  outline: 3px solid rgba(20, 122, 75, 0.22);
  outline-offset: -3px;
}
.account-order-product,
.guest-center-order-item > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.account-order-product strong,
.guest-center-order-item > summary strong { overflow-wrap: anywhere; }
.account-order-product code,
.guest-center-order-item > summary code,
.account-order-references code,
.guest-center-order-details code,
.wallet-recharge-receipt code,
.wallet-recharge-result code {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.account-order-amount,
.guest-center-order-item > summary > strong {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.account-order-summary time,
.guest-center-order-item > summary time {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.account-order-disclosure,
.guest-center-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast);
}
.account-order-item[open] .account-order-disclosure,
.guest-center-order-item[open] .guest-center-disclosure { transform: rotate(180deg); }
.account-order-details {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.account-order-specs {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.account-order-specs > div { padding: 7px 12px 7px 0; }
.account-order-specs > div:nth-child(even) { padding-right: 0; padding-left: 12px; border-left: 1px solid var(--border); }
.account-order-references { display: grid; gap: 8px; }
.account-order-references > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}
.account-order-references span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.account-order-references button,
.wallet-recharge-receipt button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.account-order-references button:hover,
.wallet-recharge-receipt button:hover { border-color: var(--brand); color: var(--brand-dark); }
.account-order-updated { margin: 0; color: var(--text-muted); font-size: 13px; }
.account-order-actions { display: flex; justify-content: flex-end; }
.account-order-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.account-order-pagination,
.guest-center-pagination {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.account-pagination-actions,
.guest-center-pagination > div { display: flex; gap: 8px; }
.account-pagination-actions button,
.guest-center-pagination button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.account-pagination-actions button:disabled,
.guest-center-pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination-arrow { display: inline-flex; }
.pagination-arrow.is-prev { transform: rotate(180deg); }
.account-list-loading,
.account-list-error,
.guest-center-loading,
.guest-center-empty {
  padding: 28px 24px;
  color: var(--text-muted);
  text-align: center;
}
.account-list-error p,
.guest-center-empty p { margin: 6px 0 14px; }
.security-login-row { border-bottom: 0; }

.modal-card-wide {
  width: min(100%, 640px);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
}
.wallet-recharge-flow { margin-top: 16px; }
.wallet-recharge-stage { display: grid; gap: 16px; }
.wallet-recharge-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wallet-recharge-balance span { color: var(--text-muted); font-size: 14px; }
.wallet-recharge-balance strong { font-family: var(--font-mono); font-size: 22px; font-variant-numeric: tabular-nums; }
.wallet-recharge-stage-head h4 { margin: 0 0 5px; font-size: 18px; }
.wallet-recharge-stage-head p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.wallet-recharge-custom { margin: 0; }
.wallet-recharge-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #c4ddcf;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.wallet-recharge-summary span:nth-child(2) { text-align: center; }
.wallet-recharge-summary strong { text-align: right; }
.wallet-recharge-card-link { min-height: 44px; justify-self: center; }
.wallet-recharge-payment-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.wallet-recharge-qr {
  width: 220px;
  height: 220px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.wallet-recharge-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wallet-recharge-receipt { display: grid; }
.wallet-recharge-receipt > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
}
.wallet-recharge-receipt > div:last-child { border-bottom: 0; }
.wallet-recharge-receipt span { color: var(--text-muted); font-size: 13px; }
.wallet-recharge-receipt strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wallet-recharge-payment-status {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}
.wallet-recharge-payment-status span { color: var(--text-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wallet-recharge-result { display: grid; justify-items: center; gap: 12px; padding: 28px 12px 8px; text-align: center; }
.wallet-recharge-result-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.wallet-recharge-result.is-error .wallet-recharge-result-icon { background: var(--warning-soft); color: var(--warning); }
.wallet-recharge-result h4 { margin: 0; font-size: 21px; }
.wallet-recharge-result > strong { font-family: var(--font-mono); font-size: 28px; font-variant-numeric: tabular-nums; }
.wallet-recharge-result p { margin: 0; color: var(--text-muted); }
.wallet-recharge-result .btn { width: 100%; margin-top: 8px; }

/* Guest email order center */
.lookup-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}
.lookup-mode-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}
.lookup-mode-tabs button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(21, 26, 23, 0.08); }

/* ChatGPT Plus decision register */
.delivery-contract-band {
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.delivery-contract-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  padding-block: 26px;
  align-items: center;
}

.delivery-contract-layout h2 { max-width: 19ch; margin-top: 5px; font-size: 30px; line-height: 1.24; }
.delivery-contract-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid var(--border-strong);
}
.delivery-contract-facts > span { display: grid; gap: 4px; min-width: 0; padding: 4px 20px; }
.delivery-contract-facts b { font-size: 16px; line-height: 1.35; }
.delivery-contract-facts small { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.invoice-service-band {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  color: var(--text);
}

.invoice-service-layout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 96px;
  gap: 16px;
  align-items: center;
}

.invoice-service-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.invoice-service-layout strong { display: block; color: var(--text); font-size: 16px; }
.invoice-service-layout p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.58; }
.support-qq-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.support-qq-actions .btn { min-height: 44px; white-space: nowrap; }
.invoice-service-layout .support-qq-actions { justify-content: flex-end; }
.invoice-service-layout .support-qq-actions .btn-primary { border-color: var(--brand); background: var(--brand); color: #ffffff; }
.invoice-service-layout .support-qq-actions .btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }

@media (max-width: 640px) {
  .invoice-service-layout {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-block: 16px;
  }
  .invoice-service-layout .support-qq-actions { grid-column: 2; justify-content: flex-start; }
}

.catalog-architecture { display: grid; gap: 0; }

.catalog-unified-list { display: grid; min-width: 0; gap: 18px; }
.catalog-list-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
.catalog-list-heading > div { display: grid; gap: 4px; }
.catalog-list-heading span { color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.catalog-list-heading h3 { margin: 0; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.25; }
.catalog-list-heading p { max-width: 62ch; margin: 0; color: var(--text-muted); line-height: 1.62; }

.catalog-product-group { display: grid; min-width: 0; gap: 20px; }
.catalog-group-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  padding-top: 18px;
  align-items: end;
  border-top: 1px solid var(--border-strong);
}
.catalog-group-heading > div { display: grid; gap: 4px; }
.catalog-group-heading span { color: var(--brand-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.catalog-group-heading h3 { margin: 0; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.25; }
.catalog-group-heading p { max-width: 62ch; margin: 0; color: var(--text-muted); line-height: 1.62; }

.catalog-group-grid { padding: 0; }
.catalog-group-grid.is-quick,
.catalog-group-grid.is-recharge { grid-template-columns: minmax(0, 1fr); }

.warranty-matrix-axis {
  display: grid;
  grid-template-columns: minmax(150px, 0.44fr) repeat(2, minmax(0, 1fr));
  gap: 1px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}
.warranty-matrix-axis span { padding: 0 18px 8px; }
.warranty-matrix-axis span:not(:first-child) { border-left: 1px solid var(--border); }

.warranty-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.warranty-matrix-card {
  display: grid;
  min-width: 0;
  min-height: 232px;
  padding: clamp(18px, 2.3vw, 28px);
  align-content: start;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
}
.warranty-matrix-card[data-mailbox="icloud"][data-warranty-days="3"] { grid-column: 1; grid-row: 1; }
.warranty-matrix-card[data-mailbox="icloud"][data-warranty-days="7"] { grid-column: 2; grid-row: 1; }
.warranty-matrix-card[data-mailbox="gmail"][data-warranty-days="3"] { grid-column: 1; grid-row: 2; }
.warranty-matrix-card[data-mailbox="gmail"][data-warranty-days="7"] { grid-column: 2; grid-row: 2; }
.warranty-matrix-card.is-soldout { background: var(--surface-muted); }
.warranty-matrix-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.warranty-matrix-heading span { color: var(--text-muted); font-size: 14px; font-weight: 750; }
.warranty-matrix-heading strong { font-size: 20px; }
.warranty-matrix-card > p { margin: 11px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.warranty-matrix-commerce { display: flex; margin-top: 24px; align-items: baseline; justify-content: space-between; gap: 16px; }
.warranty-matrix-commerce > strong { color: var(--brand-dark); font-family: var(--font-mono); font-size: 28px; font-variant-numeric: tabular-nums; }
.warranty-matrix-commerce > span { color: var(--brand-dark); font-size: 13px; font-weight: 750; }
.warranty-matrix-commerce > span.is-soldout { color: var(--danger); }
.warranty-matrix-commerce > span.is-pending { color: var(--warning); }
.warranty-matrix-actions { display: grid; grid-template-columns: minmax(120px, 0.72fr) max-content; gap: 16px; margin-top: auto; padding-top: 24px; align-items: center; }
.warranty-matrix-actions .text-action { justify-self: end; }

.plus-decision-section {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.plus-decision-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.plus-decision-intro {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.plus-decision-intro h2 {
  max-width: 12ch;
}

.plus-decision-intro p {
  max-width: 43ch;
  margin: 18px 0 0;
  color: var(--text-muted);
}

.plus-choice-list {
  border-top: 1px solid var(--border-strong);
}

.plus-choice-row {
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.15fr) 92px 76px 24px;
  gap: 18px;
  align-items: center;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), padding var(--t-fast);
}

.plus-choice-row:hover,
.plus-choice-row:focus-visible {
  padding-inline: 12px;
  background: var(--surface-muted);
}

.plus-choice-question {
  color: var(--text-muted);
  font-size: var(--font-secondary);
}

.plus-choice-answer,
.plus-choice-price {
  display: grid;
  gap: 2px;
}

.plus-choice-answer strong,
.plus-choice-price strong {
  font-size: 17px;
}

.plus-choice-answer small,
.plus-choice-price small {
  color: var(--text-soft);
  font-size: 14px;
}

.plus-choice-price strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.plus-choice-state {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.plus-choice-state.is-soldout {
  color: var(--danger);
}

.plus-choice-state.is-pending {
  color: var(--warning);
}

.plus-choice-arrow {
  display: inline-flex;
  color: var(--text-soft);
}

.pc-position-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  margin: 8px 0 2px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, var(--brand)) 28%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand-accent, var(--brand)) 8%, var(--surface));
  color: color-mix(in srgb, var(--brand-accent, var(--brand)) 78%, var(--text));
  font-size: 14px;
  font-weight: 700;
}
.guest-center-auth,
.guest-center-code-fields { display: grid; gap: 14px; }
.guest-center-code-fields { margin-top: 4px; }
.guest-center-auth .form-group { margin: 0; }
.guest-pin-lookup {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.guest-pin-lookup > summary {
  min-height: 48px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 700;
}
.guest-pin-lookup[open] > summary { border-bottom: 1px solid var(--border); }
.guest-pin-lookup form {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.guest-pin-lookup .form-group { margin: 0; }
.guest-center-results { display: grid; gap: 0; }
.guest-center-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
}
.guest-center-results-head > div { display: grid; gap: 3px; min-width: 0; }
.guest-center-results-head strong { overflow-wrap: anywhere; }
.guest-center-results-head span { color: var(--text-muted); font-size: 13px; }
.guest-center-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.guest-center-order-list { border: 1px solid var(--border); border-top: 0; }
.guest-center-order-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.guest-center-order-details > div { display: grid; gap: 4px; min-width: 0; }
.guest-center-order-details span { color: var(--text-muted); font-size: 13px; }
.guest-center-pagination { padding-inline: 0; border-bottom: 0; }

@media (max-width: 900px) {
  .delivery-contract-layout { grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr); gap: 24px; }
  .delivery-contract-facts > span { padding-inline: 14px; }
  .invoice-service-layout { grid-template-columns: 40px minmax(0, 1fr); padding-block: 16px; }
  .invoice-service-layout .support-qq-actions { grid-column: 2; justify-content: flex-start; }
  .catalog-group-grid.is-recharge { grid-template-columns: 1fr; }
  .plus-decision-layout { grid-template-columns: 1fr; gap: 28px; }
  .plus-decision-intro { position: static; }
  .plus-decision-intro h2 { max-width: none; }
  .plus-choice-row { grid-template-columns: minmax(130px, 0.9fr) minmax(170px, 1.2fr) 88px 70px 22px; }
  .account-order-summary,
  .guest-center-order-item > summary { grid-template-columns: minmax(190px, 1fr) 92px 96px 24px; }
  .account-order-summary time,
  .guest-center-order-item > summary time { display: none; }
  .wallet-recharge-payment-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .wallet-recharge-qr { width: 200px; height: 200px; }
}

@media (max-width: 760px) {
  .warranty-variant-selector { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .warranty-variant-selector-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .warranty-variant-option { border-bottom: 1px solid var(--border); }
  .warranty-variant-option:nth-child(2) { border-right: 0; }
  .warranty-variant-option:nth-last-child(-n + 2) { border-bottom: 0; }
  .delivery-contract-layout { grid-template-columns: 1fr; gap: 18px; padding-block: 22px; }
  .delivery-contract-layout h2 { max-width: none; font-size: 26px; }
  .delivery-contract-facts { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border-strong); border-left: 0; }
  .delivery-contract-facts > span { grid-template-columns: minmax(116px, auto) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
  .catalog-group-heading { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .catalog-group-grid.is-quick { grid-template-columns: 1fr; }
  .warranty-matrix-axis { display: none; }
  .warranty-matrix { grid-template-columns: 1fr; }
  .warranty-matrix-card[data-mailbox][data-warranty-days] { grid-column: 1; grid-row: auto; min-height: 218px; }
  .warranty-matrix-card[data-mailbox="icloud"][data-warranty-days="3"] { order: 1; }
  .warranty-matrix-card[data-mailbox="gmail"][data-warranty-days="3"] { order: 2; }
  .warranty-matrix-card[data-mailbox="icloud"][data-warranty-days="7"] { order: 3; }
  .warranty-matrix-card[data-mailbox="gmail"][data-warranty-days="7"] { order: 4; }
  .warranty-matrix-actions { grid-template-columns: 1fr; gap: 12px; }
  .warranty-matrix-actions .text-action { min-height: 44px; justify-self: stretch; justify-content: center; }
  .plus-choice-row {
    grid-template-areas:
      "question state"
      "answer price";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 16px 4px;
  }
  .plus-choice-question { grid-area: question; }
  .plus-choice-answer { grid-area: answer; }
  .plus-choice-price { grid-area: price; justify-items: end; }
  .plus-choice-state { grid-area: state; }
  .plus-choice-arrow { display: none; }
  .account-order-toolbar,
  .guest-center-toolbar { grid-template-columns: 1fr; padding: 14px 18px; }
  .account-order-search,
  .guest-center-toolbar form { max-width: none; }
  .account-order-filter,
  .guest-center-toolbar > label { justify-content: space-between; }
  .account-order-filter select,
  .guest-center-toolbar select { flex: 1; }
  .account-order-summary,
  .guest-center-order-item > summary {
    grid-template-areas: "product disclosure" "amount status";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: 0;
    padding: 16px 18px;
  }
  .account-order-product,
  .guest-center-order-item > summary > span:first-child { grid-area: product; }
  .account-order-amount,
  .guest-center-order-item > summary > strong { grid-area: amount; justify-self: start; }
  .account-order-summary .badge,
  .guest-center-order-item > summary .badge { grid-area: status; justify-self: end; }
  .account-order-disclosure,
  .guest-center-disclosure { grid-area: disclosure; }
  .account-order-summary time,
  .guest-center-order-item > summary time { display: none; }
  .account-order-details { padding: 18px; }
  .account-order-references > div { grid-template-columns: 88px minmax(0, 1fr) 36px; }
  .account-order-actions .btn { width: 100%; }
  .account-order-pagination,
  .guest-center-pagination { justify-content: space-between; flex-wrap: wrap; padding-inline: 18px; }
  .wallet-recharge-payment-layout { grid-template-columns: 1fr; justify-items: center; }
  .wallet-recharge-receipt { width: 100%; }
  .guest-center-order-details { grid-template-columns: 1fr; }
  .guest-center-order-details .btn { width: 100%; }
}

@media (max-width: 480px) {
  .account-order-search,
  .guest-center-toolbar form { grid-template-columns: 1fr; }
  .account-order-search .btn,
  .guest-center-toolbar form .btn { width: 100%; }
  .account-order-pagination,
  .guest-center-pagination { align-items: stretch; flex-direction: column; }
  .account-order-pagination > label,
  .guest-center-pagination > label { justify-content: space-between; }
  .account-pagination-actions,
  .guest-center-pagination > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-pagination-actions button,
  .guest-center-pagination button { width: 100%; }
  .wallet-recharge-flow .recharge-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-recharge-summary { grid-template-columns: 1fr; }
  .wallet-recharge-summary span:nth-child(2),
  .wallet-recharge-summary strong { text-align: left; }
  .wallet-recharge-payment-status { align-items: flex-start; flex-direction: column; }
  .lookup-mode-tabs { grid-template-columns: 1fr; }
}

/* Catalog sourcing workbench */
.catalog-workbench {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.catalog-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.catalog-metrics > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 15px 18px;
  border-inline-end: 1px solid var(--border);
}

.catalog-metrics > div:last-child { border-inline-end: 0; }
.catalog-metrics span { color: var(--text-muted); font-size: 13px; }
.catalog-metrics strong { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }

.catalog-import {
  padding-block: 22px;
  border-block: 1px solid var(--border-strong);
}

.catalog-import > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.catalog-import > summary::-webkit-details-marker { display: none; }
.catalog-import > summary::after { content: "＋"; font-size: 18px; font-weight: 400; }
.catalog-import[open] > summary::after { content: "−"; }
.catalog-import > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.catalog-import-body { display: grid; gap: 12px; padding-top: 14px; }
.catalog-import p { margin: 0; color: var(--text-muted); }
.catalog-import-body > label { color: var(--text); font-size: 14px; font-weight: 700; }
.catalog-import .textarea {
  min-height: 156px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.catalog-import-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.catalog-filters {
  grid-template-columns: minmax(260px, 1.4fr) minmax(170px, 0.7fr) minmax(190px, 0.9fr) auto auto;
  margin: 0;
}

.catalog-register {
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.catalog-candidate {
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

.catalog-candidate:last-child { border-bottom: 0; }

.catalog-candidate-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.5fr);
  min-width: 0;
  gap: 24px;
  padding: 20px 4px 14px;
}

.catalog-candidate-title { min-width: 0; }
.catalog-candidate-title h3 {
  margin: 8px 0 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  text-wrap: pretty;
}

.catalog-candidate-title > a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-candidate-title > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-candidate-kicker { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; }
.catalog-candidate-kicker > span:not(.badge) { color: var(--text-muted); font-size: 12px; }

.catalog-candidate-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  min-width: 0;
  margin: 0;
  border-inline-start: 1px solid var(--border);
}

.catalog-candidate-facts > div {
  min-width: 0;
  padding: 4px 12px 10px;
  border-inline-end: 1px solid var(--border);
}

.catalog-candidate-facts dt { color: var(--text-muted); font-size: 12px; }
.catalog-candidate-facts dd { margin: 3px 0 0; color: var(--text); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.catalog-candidate-facts .catalog-value-danger { color: var(--danger); }
.catalog-candidate-alert {
  display: flex;
  gap: 10px;
  margin: 0 4px 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 13px;
  line-height: 1.45;
}
.catalog-candidate-alert strong { flex: 0 0 auto; }

.catalog-candidate-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 4px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.catalog-candidate-review { border-top: 1px solid var(--border); }
.catalog-candidate-review > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.catalog-candidate-review > summary::-webkit-details-marker { display: none; }
.catalog-candidate-review > summary::after { content: "＋"; font-size: 18px; font-weight: 400; }
.catalog-candidate-review[open] > summary::after { content: "−"; }
.catalog-candidate-review > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.catalog-candidate-review > summary > span {
  margin-inline-start: auto;
  margin-inline-end: 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.catalog-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  list-style: none;
}

.catalog-workflow-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  min-width: 0;
  align-items: center;
  padding: 8px 12px;
  border-inline-end: 1px solid var(--border);
}
.catalog-workflow-step:last-child { border-inline-end: 0; }
.catalog-workflow-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.catalog-workflow-step span:last-child { display: grid; min-width: 0; gap: 1px; }
.catalog-workflow-step small { color: var(--text-muted); font-size: 11px; }
.catalog-workflow-step strong { font-size: 13px; overflow-wrap: anywhere; }
.catalog-workflow-step.is-done .catalog-workflow-index {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}
.catalog-workflow-step.is-current { background: var(--brand-soft); }
.catalog-workflow-step.is-current .catalog-workflow-index { border-color: var(--brand); color: var(--brand-dark); }
.catalog-workflow-step.is-waiting { opacity: 0.62; }

.catalog-review-grid,
.catalog-verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.catalog-review-grid { grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.5fr) auto; }
.catalog-review-grid label,
.catalog-verification-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.catalog-review-actions {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.catalog-cost-override {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--border));
  border-inline-start: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
}

.catalog-cost-override-heading {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.catalog-cost-override-heading > div { display: grid; min-width: 0; gap: 3px; }
.catalog-cost-override-heading strong { color: var(--text); font-size: 14px; }
.catalog-cost-override-heading span:not(.badge) { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

.catalog-cost-override-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin: 0;
  border-block: 1px solid color-mix(in srgb, var(--warning) 24%, var(--border));
}

.catalog-cost-override-facts > div { padding: 9px 10px; border-inline-end: 1px solid color-mix(in srgb, var(--warning) 24%, var(--border)); }
.catalog-cost-override-facts > div:last-child { border-inline-end: 0; }
.catalog-cost-override-facts dt { color: var(--text-muted); font-size: 11px; }
.catalog-cost-override-facts dd { margin: 2px 0 0; color: var(--text); font-size: 14px; font-weight: 750; }
.catalog-cost-override .catalog-cost-override-reason { color: var(--text); }
.catalog-cost-override-reason textarea { min-height: 64px; resize: vertical; }
.catalog-cost-override .catalog-cost-override-check { color: var(--text); font-weight: 650; }
.catalog-cost-override > .btn { min-height: 44px; justify-self: start; }

@media (max-width: 760px) {
  .catalog-cost-override-heading { align-items: stretch; flex-direction: column; }
  .catalog-cost-override-heading .badge { align-self: start; }
  .catalog-cost-override-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-cost-override-facts > div:nth-child(2) { border-inline-end: 0; }
  .catalog-cost-override-facts > div:nth-child(-n + 2) { border-bottom: 1px solid color-mix(in srgb, var(--warning) 24%, var(--border)); }
  .catalog-cost-override > .btn { width: 100%; }
}

.catalog-parent-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.catalog-parent-search > div { display: grid; gap: 4px; }
.catalog-parent-search > div span { color: var(--text-muted); font-size: 12px; }
.catalog-parent-results:empty { display: none; }
.catalog-parent-results .admin-table-wrap,
.catalog-parent-results .notice,
.catalog-parent-results .empty-inline { margin: 0 16px 16px; }
.catalog-parent-conflict {
  display: grid;
  gap: 8px;
  margin: 0 16px 16px;
}
.catalog-parent-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-check-label {
  min-height: 44px;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  align-self: end;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text) !important;
}

.catalog-check-label input { width: 18px; height: 18px; accent-color: var(--brand); }

@media (max-width: 1080px) {
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters > :first-child { grid-column: 1 / -1; }
  .catalog-candidate-main { grid-template-columns: 1fr; gap: 14px; }
  .catalog-candidate-facts { border-inline-start: 0; }
  .catalog-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-review-actions { grid-column: 1 / -1; }
  .catalog-parent-search { grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr); }
  .catalog-parent-search .btn { grid-column: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .catalog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-metrics > div:nth-child(2) { border-inline-end: 0; }
  .catalog-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .catalog-import-footer { align-items: stretch; flex-direction: column; }
  .catalog-import-footer .btn { width: 100%; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-filters > :first-child { grid-column: auto; }
  .catalog-candidate-main { padding-inline: 0; }
  .catalog-candidate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-candidate-facts > div:nth-child(even) { border-inline-end: 0; }
  .catalog-review-grid,
  .catalog-verification-grid { grid-template-columns: 1fr; padding: 14px 0; }
  .catalog-workflow { grid-template-columns: 1fr; padding: 8px 0; }
  .catalog-workflow-step { min-height: 48px; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .catalog-workflow-step:last-child { border-bottom: 0; }
  .catalog-parent-search { grid-template-columns: 1fr; padding: 14px 0; }
  .catalog-parent-search .btn { grid-column: auto; width: 100%; min-height: 44px; }
  .catalog-parent-results .admin-table-wrap,
  .catalog-parent-results .notice,
  .catalog-parent-results .empty-inline { margin-inline: 0; }
  .catalog-parent-conflict { margin-inline: 0; }
  .catalog-parent-conflict-actions .btn { flex: 1 1 100%; min-height: 44px; }
  .catalog-review-actions { grid-column: auto; }
  .catalog-review-actions .btn,
  .catalog-verification-grid > .btn { width: 100%; min-height: 44px; }
  .catalog-list-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }
  .catalog-list-heading p { max-width: 36ch; }
}

/* Catalog inventory workbench */
.catalog-control-bar {
  margin-bottom: 16px;
  overflow: hidden;
  border-color: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.catalog-filter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  gap: 24px;
  padding: 18px 20px;
}

.catalog-filter-header > div:first-child { max-width: 760px; }
.catalog-filter-header strong { font-size: 18px; }

.catalog-filter-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.catalog-filter-header .catalog-active-count {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-filter-reset { min-height: 40px; }
.catalog-filter-reset:disabled { display: none; }

.catalog-filter-toolbar {
  grid-template-columns: minmax(260px, 2fr) minmax(150px, 0.9fr) max-content minmax(170px, 0.9fr);
  gap: 12px;
  padding: 14px 20px 16px;
  background: color-mix(in srgb, var(--surface-muted) 52%, var(--surface));
}

.catalog-stock-toggle { background: var(--surface); }

.catalog-filter-advanced-quick {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(300px, 420px);
  align-items: end;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.catalog-filter-advanced-quick:empty { display: none; }

.catalog-manifest-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface));
}

.catalog-manifest-meta > span {
  min-width: 0;
  min-height: 62px;
  padding: 9px 20px;
}

.catalog-manifest-meta small { font-size: 12px; font-weight: 700; }
.catalog-manifest-meta strong { font-size: 16px; }
.catalog-manifest-meta strong em {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.catalog-manifest-meta .catalog-result-fact strong { color: var(--brand-dark); }
.catalog-manifest-meta .catalog-sync-fact { min-width: 0; }

.catalog-empty {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 176px;
  place-items: initial;
  align-items: center;
  align-content: center;
  gap: 18px;
  padding: 30px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
}

.catalog-empty-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--brand-dark);
}

.catalog-empty-copy { display: grid; gap: 5px; max-width: 680px; }
.catalog-empty-kicker { color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.catalog-empty strong { font-size: 20px; line-height: 1.35; }
.catalog-empty p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.catalog-empty-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.catalog-empty-actions .btn { margin-top: 0; }

.catalog-unified-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.catalog-list-heading {
  padding: 18px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border-strong);
}

.catalog-list-heading h3 { font-size: clamp(21px, 2vw, 28px); }
.catalog-availability-notice {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e2c695;
  border-radius: 0;
}

.catalog-table-head { border-top: 0; }

@media (max-width: 900px) {
  .catalog-filter-header { gap: 16px; }
  .catalog-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-filter-search { grid-column: 1 / -1; }
  .catalog-stock-toggle { justify-content: center; }
  .catalog-sort-field { grid-column: 1 / -1; }
  .catalog-filter-advanced-quick {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .catalog-manifest-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-manifest-meta > span:nth-child(3),
  .catalog-manifest-meta > span:nth-child(4) { border-top: 1px solid var(--border); }
  .catalog-manifest-meta > span:nth-child(3) { border-left: 0; }
  .catalog-manifest-meta .catalog-sync-fact { grid-column: auto; border-left: 1px solid var(--border); }
  .catalog-empty {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .catalog-empty-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .catalog-filter-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .catalog-filter-header-actions { justify-content: space-between; }
  .catalog-filter-toolbar { padding: 12px 16px 16px; }
  .catalog-filter-advanced-quick {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px;
  }
  .catalog-manifest-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-manifest-meta > span:nth-child(3),
  .catalog-manifest-meta > span:nth-child(4) { border-top: 1px solid var(--border); }
  .catalog-manifest-meta > span:nth-child(3) { border-left: 0; }
  .catalog-manifest-meta .catalog-sync-fact { grid-column: auto; border-left: 1px solid var(--border); }
  .catalog-empty { padding: 24px 20px; }
  .catalog-list-heading { padding: 16px; }
}

@media (max-width: 480px) {
  .catalog-filter-header-actions { align-items: flex-start; }
  .catalog-filter-header .catalog-active-count { white-space: normal; }
  .catalog-filter-reset { flex: 0 0 auto; width: auto; }
  .catalog-filter-toolbar { grid-template-columns: minmax(0, 1fr); }
  .catalog-filter-search,
  .catalog-filter-field,
  .catalog-sort-field { grid-column: 1; }
  .catalog-stock-toggle { justify-content: flex-start; }
  .catalog-manifest-meta > span { min-height: 58px; padding: 8px 12px; }
  .catalog-empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }
  .catalog-empty-actions { grid-column: 1; flex-wrap: wrap; }
  .catalog-empty-actions .btn { width: 100%; }
  .catalog-unified-list { border-radius: var(--radius-sm); }
}

@media print {
  .nav,
  .footer,
  .supply-box-fixed,
  .product-mobile-buybar,
  .hero-actions,
  .btn { display: none !important; }
  body { background: #ffffff; }
  .card,
  .summary-box,
  .form-wrap { box-shadow: none; break-inside: avoid; }
}

/* Admin operations workspace */
.route-admin body { background: #eef2ee; }
.route-admin .dispatch-nav,
.route-admin .footer,
.route-admin .supply-box-fixed,
.route-admin .nav-scrim { display: none !important; }
.route-admin #app-main { min-height: 100dvh; outline: 0; }

.admin-app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 252px minmax(0, 1fr);
  background: #eef2ee;
  color: var(--text);
}

.admin-sidebar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  width: 252px;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  border-inline-end: 1px solid #cfd8d1;
  background: #f8faf8;
}

.admin-brand {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.admin-brand-mark,
.admin-brand-mark img { width: 36px; height: 36px; }
.admin-brand > span:last-child { display: grid; min-width: 0; gap: 1px; }
.admin-brand strong { font-size: 16px; line-height: 1.2; }
.admin-brand small { color: var(--text-muted); font-size: 12px; }

.admin-navigation {
  min-height: 0;
  padding: 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-nav-group + .admin-nav-group { margin-block-start: 18px; }
.admin-nav-group h2 {
  margin: 0 8px 7px;
  color: #7a857e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.admin-nav-item {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #48524c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.admin-nav-item:hover { background: #edf1ee; color: var(--text); }
.admin-nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px #c6dfd0;
}
.admin-nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-nav-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f7e6df;
  color: #9d352f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.admin-sidebar-foot {
  display: grid;
  gap: 4px;
  padding: 15px 20px 18px;
  border-top: 1px solid var(--border);
}
.admin-sidebar-foot span { color: var(--text-muted); font-size: 11px; }
.admin-sidebar-foot strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-foot a { margin-block-start: 7px; color: var(--brand-dark); font-size: 13px; font-weight: 700; text-decoration: none; }

.admin-workspace { min-width: 0; }
.admin-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(18px, 2.6vw, 36px);
  border-bottom: 1px solid #cfd8d1;
  background: rgba(248, 250, 248, 0.96);
  backdrop-filter: blur(10px);
}
.admin-page-heading { min-width: 0; }
.admin-page-heading > span { display: block; color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.admin-page-heading h1 { margin: 1px 0 2px; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.15; letter-spacing: 0; }
.admin-page-heading p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.35; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-site-switcher {
  display: grid;
  min-width: 220px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
}
.admin-site-switcher > span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-site-switcher select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-site-switcher small { grid-column: 1 / -1; color: var(--text-muted); font-size: 10px; line-height: 1.25; }
.admin-site-switcher:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(20, 122, 75, 0.14); }
.admin-sync-state { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.admin-mobile-nav { display: none; }
.admin-nav-scrim { display: none; }

.admin-main {
  width: 100%;
  min-width: 0;
  max-width: 1720px;
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 36px);
}
.admin-loading {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}
.admin-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid #cfd8d1;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-overview-warning { margin: 0 0 18px; }
.admin-overview-heading { margin-block: 0 14px; align-items: center; }
.admin-overview-metrics {
  display: grid;
  margin: 0 0 24px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: var(--surface);
}
.admin-overview-metric { min-width: 0; padding: 18px 20px; }
.admin-overview-metric + .admin-overview-metric { border-inline-start: 1px solid var(--border); }
.admin-overview-metric dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.admin-overview-metric dd { margin: 5px 0 2px; font-family: var(--font-mono); font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; line-height: 1; }
.admin-overview-metric small { color: var(--text-muted); font-size: 12px; }
.admin-overview-metric.is-positive dd { color: var(--brand-dark); }
.admin-overview-metric.is-warning { background: #fffaf2; }
.admin-overview-metric.is-warning dd { color: var(--warning); }
.admin-overview-metric.is-danger { background: #fff6f4; }
.admin-overview-metric.is-danger dd { color: var(--danger); }

.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); gap: 20px; }
.admin-task-queue,
.admin-recent-orders {
  min-width: 0;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: var(--surface);
}
.admin-task-queue > header,
.admin-recent-orders > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-task-queue h2,
.admin-recent-orders h2 { margin: 0 0 2px; font-size: 17px; }
.admin-task-queue header p,
.admin-recent-orders header p { margin: 0; color: var(--text-muted); font-size: 12px; }
.admin-task-queue header > span { color: var(--danger); font-family: var(--font-mono); font-size: 13px; font-weight: 800; }
.admin-recent-orders header button { min-height: 36px; border: 0; background: transparent; color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.admin-task-queue ul,
.admin-recent-orders ul { margin: 0; padding: 0; list-style: none; }
.admin-task-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.admin-task-row + .admin-task-row,
.admin-recent-orders li + li { border-top: 1px solid var(--border); }
.admin-task-signal { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.admin-task-row.is-danger .admin-task-signal { background: var(--danger); }
.admin-task-row div { display: grid; min-width: 0; gap: 3px; }
.admin-task-row strong { font-size: 14px; }
.admin-task-row small { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.admin-task-row > b { min-width: 30px; font-family: var(--font-mono); font-size: 16px; text-align: center; }
.admin-task-empty { display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 6px; padding: 24px; color: var(--text-muted); text-align: center; }
.admin-task-empty svg { color: var(--brand); }
.admin-task-empty strong { color: var(--text); font-size: 15px; }
.admin-task-empty span { max-width: 34ch; font-size: 13px; }
.admin-recent-orders li button {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}
.admin-recent-orders li button:hover { background: var(--surface-muted); }
.admin-recent-orders li button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.admin-recent-orders li button > span { display: grid; min-width: 0; gap: 3px; }
.admin-recent-orders li button > span:last-child { justify-items: end; }
.admin-recent-orders li strong,
.admin-recent-orders li time { font-family: var(--font-mono); }
.admin-recent-orders li strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-recent-orders li small,
.admin-recent-orders li time { color: var(--text-muted); font-size: 11px; }

.admin-main .admin-section-heading:first-child { margin-block-start: 0; }
.admin-main .admin-table-wrap { border-radius: 7px; box-shadow: none; }
.admin-main .admin-table { min-width: 980px; }
.admin-main .admin-table-wrap:has(th:nth-child(10)) .admin-table { min-width: 1360px; }
.admin-main .admin-table-wrap:has(th:nth-child(12)) .admin-table { min-width: 1560px; }
.admin-main .admin-table th,
.admin-main .admin-table td { overflow-wrap: normal; word-break: normal; }
.admin-main .admin-table th:first-child,
.admin-main .admin-table td:first-child { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); }
.admin-main .admin-table th:first-child { z-index: 3; background: var(--surface-muted); }
.admin-main .admin-table tbody tr:hover td { background: #f8faf8; }
.admin-main .admin-table tbody tr:hover td:first-child { background: #f8faf8; }

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(170px, 0.75fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-block-end: 14px;
  padding: 14px;
  border: 1px solid #cfd8d1;
  border-radius: 7px;
  background: var(--surface);
}
.admin-filter-bar label { display: grid; min-width: 0; gap: 5px; }
.admin-filter-bar label > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.admin-filter-bar .btn { min-height: 44px; }

.admin-connected-category-editor {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  max-width: 220px;
}

.admin-connected-category-editor > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-connected-category-editor .input {
  min-height: 40px;
  padding-block: 7px;
}

.admin-inventory-filters {
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.8fr) minmax(190px, 0.8fr) auto auto;
  margin-block: 16px 10px;
}

.admin-order-desktop .admin-table { min-width: 1080px; table-layout: auto; }
.admin-order-desktop .admin-table th:last-child,
.admin-order-desktop .admin-table td:last-child { position: sticky; inset-inline-end: 0; z-index: 2; background: var(--surface); box-shadow: -1px 0 0 var(--border); }
.admin-order-desktop .admin-table th:last-child { z-index: 3; background: var(--surface-muted); }
.admin-order-identity,
.admin-order-customer { min-width: 190px; }
.admin-order-identity strong,
.admin-order-identity small,
.admin-order-customer strong,
.admin-order-customer small,
.admin-order-amount { display: block; }
.admin-order-identity strong,
.admin-order-amount { font-family: var(--font-mono); }
.admin-order-identity small,
.admin-order-customer small { margin-block-start: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.admin-order-customer small { max-width: 32ch; }
.admin-order-progress { display: grid; min-width: 142px; gap: 7px; }
.admin-order-progress strong { font-size: 13px; }
.admin-order-progress > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.admin-order-progress > div span { height: 3px; border-radius: 2px; background: #dce2dd; }
.admin-order-progress > div span.is-complete { background: var(--brand); }
.admin-order-progress.is-attention strong { color: var(--danger); }
.admin-order-progress.is-attention > div span.is-complete { background: var(--warning); }
.admin-order-progress.is-terminal { opacity: 0.68; }
.admin-attention-label { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #fff0ed; color: var(--danger); font-size: 12px; font-weight: 700; }
.admin-order-row-attention td { background: #fffbfa; }
.admin-order-actions-cell { min-width: 190px; }
.admin-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.admin-order-mobile-list { display: none; }

html.admin-order-drawer-open { overflow: hidden; }
.admin-order-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 25, 20, 0.38);
}
.admin-order-drawer {
  display: grid;
  width: min(620px, 94vw);
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
  box-shadow: -8px 0 24px rgba(35, 52, 42, 0.12);
}
.admin-order-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-order-drawer > header > div { min-width: 0; }
.admin-order-drawer > header span { color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.admin-order-drawer > header h2 { margin: 5px 0 4px; font-family: var(--font-mono); font-size: 20px; overflow-wrap: anywhere; }
.admin-order-drawer > header p { margin: 0; color: var(--text-muted); font-size: 13px; }
.admin-order-drawer > header .modal-close { position: static; flex: 0 0 44px; }
.admin-order-drawer-scroll { min-height: 0; padding: 0 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.admin-order-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.admin-order-detail-status > div { min-width: 180px; }
.admin-order-detail-section { padding-block: 19px; border-bottom: 1px solid var(--border); }
.admin-order-detail-section h3 { margin: 0 0 13px; font-size: 15px; }
.admin-order-detail-section > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.admin-order-source-actions { display: flex; gap: 8px; margin-block-start: 16px; flex-wrap: wrap; }
.admin-order-source-actions + p { margin-block-start: 10px; }
.admin-order-detail-grid { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.admin-order-detail-grid div { min-width: 0; }
.admin-order-detail-grid dt { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-order-detail-grid dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.admin-order-detail-grid dd.is-mono { font-family: var(--font-mono); font-size: 12px; }
.admin-order-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.admin-order-timeline li { position: relative; display: grid; min-height: 52px; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; }
.admin-order-timeline li:not(:last-child)::after { content: ""; position: absolute; inset-block-start: 16px; inset-block-end: -2px; inset-inline-start: 6px; width: 1px; background: var(--border-strong); }
.admin-order-timeline li > span { position: relative; z-index: 1; width: 13px; height: 13px; margin-block-start: 2px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); }
.admin-order-timeline li.is-complete > span { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.admin-order-timeline div { display: grid; gap: 2px; }
.admin-order-timeline strong { font-size: 13px; }
.admin-order-timeline small { color: var(--text-muted); font-size: 12px; }
.admin-order-drawer > footer { display: flex; min-height: 72px; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid var(--border); background: #f8faf8; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-overview-metric:nth-child(4) { border-inline-start: 0; }
  .admin-overview-metric:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .admin-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-search { grid-column: 1 / -1; }
  .admin-inventory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .admin-app-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 60;
    transform: translateX(-102%);
    transition: transform 220ms ease-out;
  }
  .admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    border: 0;
    background: rgba(17, 25, 20, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-out;
  }
  .admin-nav-open .admin-nav-scrim { opacity: 1; pointer-events: auto; }
  .admin-topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .admin-mobile-nav { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); }
  .admin-mobile-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .admin-site-switcher { min-width: 190px; }
}

@media (max-width: 760px) {
  .admin-topbar { min-height: 68px; gap: 10px; padding: 10px 14px; }
  .admin-page-heading > span,
  .admin-page-heading p,
  .admin-sync-state,
  .admin-topbar-actions .btn span { display: none; }
  .admin-page-heading h1 { margin: 0; font-size: 19px; }
  .admin-site-switcher { min-width: 132px; padding: 7px 8px; }
  .admin-site-switcher > span,
  .admin-site-switcher small { display: none; }
  .admin-site-switcher select { font-size: 12px; }
  .admin-topbar-actions .btn { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
  .admin-main { padding: 14px; }
  .admin-overview-heading { align-items: stretch; }
  .admin-overview-heading .btn { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .admin-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-metric { padding: 15px; }
  .admin-overview-metric + .admin-overview-metric { border-inline-start: 0; }
  .admin-overview-metric:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .admin-overview-metric:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .admin-overview-metric:last-child { grid-column: 1 / -1; border-inline-start: 0; }
  .admin-task-row { grid-template-columns: 9px minmax(0, 1fr) auto; padding: 14px; }
  .admin-task-row > b { min-width: 26px; }
  .admin-task-row .btn { grid-column: 2 / -1; width: 100%; min-height: 42px; }
  .admin-filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .admin-filter-search { grid-column: auto; }
  .admin-filter-bar .btn { width: 100%; }
  .admin-inventory-filters { grid-template-columns: 1fr; }
  .admin-order-desktop { display: none; }
  .admin-order-mobile-list { display: grid; gap: 10px; }
  .admin-order-mobile-card { display: grid; gap: 11px; padding: 15px; border: 1px solid #cfd8d1; border-radius: 7px; background: var(--surface); }
  .admin-order-mobile-card.is-attention { background: #fffbfa; }
  .admin-order-mobile-card header,
  .admin-order-mobile-card p { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .admin-order-mobile-card header > strong { min-width: 0; overflow: hidden; font-family: var(--font-mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-order-mobile-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
  .admin-order-mobile-card p { margin: 0; color: var(--text-muted); font-size: 12px; }
  .admin-order-mobile-card p b { color: var(--text); font-family: var(--font-mono); font-size: 15px; }
  .admin-order-mobile-card .btn { width: 100%; min-height: 44px; }
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .admin-pagination .btn { min-height: 44px; }
  .admin-order-drawer { width: 100%; }
  .admin-order-drawer > header { padding: 17px 16px 15px; }
  .admin-order-drawer-scroll { padding: 0 16px 20px; }
  .admin-order-detail-grid { grid-template-columns: 1fr; }
  .admin-order-detail-status { align-items: stretch; flex-direction: column; }
  .admin-order-drawer > footer { display: grid; grid-template-columns: 1fr; padding: 12px 16px; }
  .admin-order-drawer > footer .btn { width: 100%; min-height: 44px; }
  .admin-main .admin-import,
  .admin-main .admin-fulfillment-editor,
  .admin-main .admin-refund-filters,
  .admin-main .admin-audit-filters { grid-template-columns: 1fr; }
  .admin-main .admin-fulfillment-editor .textarea { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-nav-scrim { transition-duration: 0.01ms !important; }
  .admin-loading span { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .pending-payment-loading-mark,
  .pending-loading-summary span { animation: none !important; }
}
.admin-connected-goods-heading { align-items: center; }
.admin-connected-goods-summary {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cfd8d1;
  border-radius: 7px;
  background: var(--surface);
}
.admin-connected-goods-summary > div { min-width: 0; padding: 15px 18px; }
.admin-connected-goods-summary > div + div { border-inline-start: 1px solid var(--border); }
.admin-connected-goods-summary dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.admin-connected-goods-summary dd { margin: 5px 0 0; font-family: var(--font-mono); font-size: 24px; font-weight: 800; line-height: 1.1; }
.admin-connected-goods-summary dd.is-time { font-family: inherit; font-size: 14px; line-height: 1.45; }
.admin-connected-goods-filterbar {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(150px, 0.75fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-block-end: 12px;
  padding: 14px;
  border: 1px solid #cfd8d1;
  border-radius: 7px;
  background: var(--surface);
}
.admin-connected-goods-filterbar label { display: grid; min-width: 0; gap: 5px; }
.admin-connected-goods-filterbar label > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.admin-connected-goods-filterbar .input,
.admin-connected-goods-filterbar .btn { min-height: 44px; }
.admin-connected-goods-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
.admin-connected-goods-product,
.admin-connected-goods-supplier,
.admin-connected-goods-sync { display: grid; min-width: 180px; gap: 4px; }
.admin-connected-goods-product strong { max-width: 48ch; line-height: 1.45; white-space: normal; }
.admin-connected-goods-product small,
.admin-connected-goods-supplier small,
.admin-connected-goods-sync small { color: var(--text-muted); font-size: 12px; }
.admin-connected-goods-supplier a { width: fit-content; color: var(--brand-dark); font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.admin-connected-goods-price,
.admin-connected-goods-stock { font-family: var(--font-mono); white-space: nowrap; }
.admin-connected-goods-stock { color: var(--brand-dark); }

@media (max-width: 1360px) {
  .admin-connected-goods-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-connected-goods-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .admin-connected-goods-heading { align-items: stretch; }
  .admin-connected-goods-heading .btn { width: 100%; }
  .admin-connected-goods-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-connected-goods-summary > div + div { border-inline-start: 0; }
  .admin-connected-goods-summary > div:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .admin-connected-goods-summary > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .admin-connected-goods-filterbar { grid-template-columns: 1fr; padding: 12px; }
  .admin-connected-goods-search { grid-column: auto; }
  .admin-connected-goods-filterbar .btn { width: 100%; }
  .admin-connected-goods-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.admin-source-trace {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 6px 10px;
  min-width: 210px;
}

.admin-source-trace span {
  font-weight: 700;
}

.admin-source-trace code {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-source-trace a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-source-trace small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-source-trace-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-source-trace-actions .btn {
  min-height: 34px;
}

.admin-order-supplier {
  min-width: 150px;
}

.admin-order-supplier strong,
.admin-order-supplier small {
  display: block;
}

.admin-order-supplier small {
  max-width: 22ch;
  margin-block-start: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.admin-order-shop-link {
  display: inline-flex;
  margin-block-start: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.admin-order-shop-link:hover {
  text-decoration: underline;
}

.admin-supplier-relations-drawer {
  width: min(720px, 96vw);
}

/* Product operations workbench */
.admin-product-workbench { min-width: 0; }
.admin-product-origin {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 16px;
  padding: 12px 14px;
  border: 1px solid #d9b778;
  border-inline-start: 4px solid var(--warning);
  border-radius: 7px;
  background: #fffaf1;
}
.admin-product-origin > div { display: grid; min-width: 0; gap: 3px; }
.admin-product-origin strong { font-size: 14px; }
.admin-product-origin span { color: var(--text-muted); font-size: 12px; }
.admin-product-heading-actions { display: flex; align-items: center; gap: 8px; }
.admin-product-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 4px 14px;
  border-bottom: 1px solid var(--border-strong);
}
.admin-product-tabs { display: flex; min-width: 0; gap: 22px; overflow-x: auto; }
.admin-product-tab,
.admin-product-history {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-product-tab b,
.admin-product-history b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}
.admin-product-tab:hover,
.admin-product-history:hover { color: var(--text); }
.admin-product-tab.active,
.admin-product-history.active { border-bottom-color: var(--brand); color: var(--brand-dark); }
.admin-product-tab.active b,
.admin-product-history.active b { background: var(--success-soft); color: var(--brand-dark); }
.admin-product-tab:focus-visible,
.admin-product-history:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-product-history { flex: 0 0 auto; }
.admin-product-filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, .8fr) minmax(200px, .9fr) auto;
  align-items: end;
  gap: 12px;
  margin-block-end: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.admin-product-filterbar label { display: grid; min-width: 0; gap: 6px; }
.admin-product-filterbar label > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-product-filterbar .btn { min-height: 42px; }
.admin-product-filter-help {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-block: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.admin-product-filter-help strong { flex: 0 0 auto; color: var(--text); font-size: 11px; }
.admin-product-result-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-block-end: 10px;
}
.admin-product-result-summary strong { font-family: var(--font-mono); font-size: 13px; }
.admin-product-result-summary span { color: var(--text-muted); font-size: 12px; text-align: end; }
.admin-product-workbench .admin-table { min-width: 1120px; table-layout: auto; }
.admin-product-workbench .admin-table th:first-child,
.admin-product-workbench .admin-table td:first-child { min-width: 220px; }
.admin-product-workbench .admin-table th:nth-child(3),
.admin-product-workbench .admin-table td:nth-child(3) { min-width: 210px; }
.admin-product-workbench .admin-table th:last-child,
.admin-product-workbench .admin-table td:last-child { min-width: 250px; }
.admin-product-row-attention td { background: #fffbf6; }
.admin-product-row-attention:hover td { background: #fff8ee !important; }
.admin-product-name,
.admin-product-source,
.admin-product-stock { display: grid; min-width: 0; gap: 4px; }
.admin-product-name { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.admin-product-name-link {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.admin-product-name-link:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.admin-product-name-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.admin-product-name > small { grid-column: 1 / -1; }
.admin-product-name small,
.admin-product-source small,
.admin-product-stock small { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.admin-product-source strong,
.admin-product-source small { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-price { font-family: var(--font-mono); font-size: 15px; }
.admin-product-risk {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-product-risk.is-success { border-color: #bfdec9; background: var(--success-soft); color: var(--brand-dark); }
.admin-product-risk.is-warning { border-color: #ead1a8; background: var(--warning-soft); color: var(--warning); }
.admin-product-risk.is-danger { border-color: #e9bcb5; background: #fff0ed; color: var(--danger); }
.admin-product-risk.is-muted { border-color: var(--border); background: var(--surface-muted); color: var(--text-muted); }
.admin-product-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-product-delete { color: var(--danger); }
.admin-product-delete:hover { border-color: var(--danger); color: var(--danger); }
.admin-product-archive-submit {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--surface);
}
.admin-product-archive-submit:hover { filter: brightness(.94); }
.admin-product-archive-submit:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.admin-product-detail-drawer { width: min(760px, 96vw); }
.admin-product-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}
.admin-product-detail-facts div { min-width: 0; }
.admin-product-detail-facts dt { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-product-detail-facts dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.admin-product-detail-facts .admin-product-cost { font-family: var(--font-mono); }
.admin-product-detail-facts .admin-product-cost.is-danger { color: var(--danger); }
.admin-product-detail-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-product-detail-section-heading h3 { margin-block-end: 3px; }
.admin-product-detail-section-heading p { margin: 0; color: var(--text-muted); font-size: 12px; }
.admin-product-contract-editor { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.admin-product-contract-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-product-contract-heading h4 { margin: 0; font-size: 16px; }
.admin-product-contract-heading p { max-width: 58ch; margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-product-contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.admin-product-contract-grid > label { display: grid; min-width: 0; gap: 7px; }
.admin-product-contract-grid > label > span,
.admin-product-audience-field legend { color: var(--text); font-size: 13px; font-weight: 750; }
.admin-product-contract-grid small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.admin-product-contract-grid .is-wide { grid-column: 1 / -1; }
.admin-toggle-line { display: flex; min-height: 42px; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.admin-toggle-line input { width: 18px; height: 18px; accent-color: var(--brand); }
.admin-product-name-builder { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-subtle); }
.admin-product-name-builder legend { padding: 0 6px; color: var(--text); font-size: 13px; font-weight: 800; }
.admin-product-name-builder legend small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.admin-product-name-builder > div { display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr .8fr 1fr; gap: 10px; }
.admin-product-name-builder label { display: grid; min-width: 0; gap: 6px; }
.admin-product-name-builder .is-wide { grid-column: 1 / -1; }
.admin-product-name-builder label > span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-product-name-builder label > small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.admin-product-redeem-url-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.admin-product-redeem-url-field > div { display: flex; max-width: 420px; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-product-redeem-url-field small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.admin-product-name-builder output { display: block; margin-top: 12px; padding: 10px 12px; border-top: 1px solid var(--border); color: var(--brand-dark); font-size: 15px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.admin-product-copy-editor label > small { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.admin-product-audience-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-product-audience-field > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.admin-product-audience-field label { display: flex; min-height: 44px; padding: 8px 10px; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; }
.admin-product-audience-field label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.admin-product-audience-field input { width: 17px; height: 17px; accent-color: var(--brand); }
.admin-product-audience-field span { font-size: 12px; font-weight: 700; }
.admin-product-contract-preview { margin-top: 18px; padding: 16px; border: 1px solid var(--border-strong); border-left: 3px solid var(--brand); border-radius: 6px; background: var(--surface-subtle); }
.admin-product-contract-preview-head { display: grid; gap: 5px; }
.admin-product-contract-preview-head > span { color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.admin-product-contract-preview-head > strong { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.admin-product-contract-preview-head > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; white-space: pre-line; }
.admin-product-contract-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--border); }
.admin-product-contract-preview dl > div { min-width: 0; padding: 11px 10px 10px 0; border-bottom: 1px solid var(--border); }
.admin-product-contract-preview dl > div:nth-child(even) { padding-right: 0; padding-left: 10px; border-left: 1px solid var(--border); }
.admin-product-contract-preview dt { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-product-contract-preview dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.admin-product-copy-section { display: grid; gap: 14px; }
.admin-product-copy-editor { display: grid; gap: 13px; }
.admin-product-copy-editor label { display: grid; gap: 6px; }
.admin-product-copy-editor label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-product-copy-editor label > span small { color: var(--text-muted); font-family: var(--font-mono); font-weight: 500; }
.admin-product-copy-editor .textarea { min-height: 190px; line-height: 1.65; resize: vertical; }
.admin-product-upstream-copy { border: 1px solid var(--border); background: var(--surface-muted); }
.admin-product-upstream-copy summary { padding: 12px 14px; font-size: 12px; font-weight: 800; cursor: pointer; }
.admin-product-upstream-copy > div { display: grid; gap: 5px; padding: 12px 14px; border-top: 1px solid var(--border); }
.admin-product-upstream-copy span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-product-upstream-copy strong,
.admin-product-upstream-copy p { margin: 0; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-product-copy-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--text-muted); font-size: 11px; }
.admin-product-copy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-product-source-detail { display: grid; gap: 5px; margin-block-start: 13px; padding: 13px; border: 1px solid var(--border); background: var(--surface-muted); }
.admin-product-source-detail span { color: var(--text-muted); font-size: 12px; }
.admin-product-source-detail a { width: max-content; color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.admin-pricing-section { display: grid; gap: 16px; }
.admin-pricing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.admin-pricing-summary > div { display: grid; min-width: 0; gap: 5px; padding: 13px 14px; }
.admin-pricing-summary > div + div { border-left: 1px solid var(--border); }
.admin-pricing-summary span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-pricing-summary strong { font-family: var(--font-mono); font-size: 15px; overflow-wrap: anywhere; }
.admin-pricing-editor small { color: var(--text-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.admin-pricing-editor .admin-toggle-line { align-self: end; min-height: 44px; padding: 0 2px; }
.admin-pricing-preview {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  background: var(--surface-muted);
}
.admin-pricing-preview strong { font-size: 13px; }
.admin-pricing-preview span { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.admin-pricing-preview.is-success { border-left-color: var(--brand); background: var(--success-soft); }
.admin-pricing-preview.is-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.admin-pricing-preview.is-danger { border-left-color: var(--danger); background: #fff0ed; }
.admin-pricing-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-product-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-product-editor label,
.admin-inventory-import label { display: grid; min-width: 0; gap: 6px; }
.admin-product-editor label > span,
.admin-inventory-import label > span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-product-editor .is-wide { grid-column: 1 / -1; }
.admin-product-editor .textarea { min-height: 100px; resize: vertical; }
.admin-inventory-import { grid-template-columns: minmax(220px, .65fr) minmax(360px, 1.35fr) auto; align-items: end; }
.admin-inventory-import .textarea { min-height: 100px; resize: vertical; }

/* Connected supplier source register */
.admin-source-workbench { min-width: 0; }
.admin-source-heading { align-items: flex-start; }
.admin-source-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
  border-block: 1px solid var(--border-strong);
}
.admin-source-summary > div {
  min-width: 0;
  padding: 13px 15px;
  border-inline-end: 1px solid var(--border);
}
.admin-source-summary > div:last-child { border-inline-end: 0; }
.admin-source-summary dt { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-source-summary dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 22px; font-weight: 800; }
.admin-source-summary .is-attention dd { color: var(--danger); }
.admin-source-tabs {
  display: flex;
  gap: 20px;
  margin-block-end: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-strong);
}
.admin-source-tab {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-source-tab b {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.admin-source-tab.active { border-bottom-color: var(--brand); color: var(--brand-dark); }
.admin-source-tab.active b { background: var(--success-soft); color: var(--brand-dark); }
.admin-source-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-source-filterbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(220px, .8fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-block-end: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.admin-source-filterbar label { display: grid; min-width: 0; gap: 6px; }
.admin-source-filterbar label > span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-source-filterbar .btn { min-height: 42px; }
.admin-source-result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 9px;
  color: var(--text-muted);
  font-size: 11px;
}
.admin-source-workbench .admin-table { min-width: 1180px; table-layout: auto; }
.admin-source-workbench .admin-table th:first-child,
.admin-source-workbench .admin-table td:first-child { min-width: 205px; }
.admin-source-workbench .admin-table th:nth-child(2),
.admin-source-workbench .admin-table td:nth-child(2) { min-width: 285px; }
.admin-source-workbench .admin-table th:last-child,
.admin-source-workbench .admin-table td:last-child { min-width: 235px; }
.admin-source-row-attention td { background: #fffbf6; }
.admin-source-product,
.admin-source-upstream,
.admin-source-money,
.admin-source-stock,
.admin-source-sync { display: grid; min-width: 0; gap: 4px; }
.admin-source-product strong,
.admin-source-upstream strong { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-source-product small,
.admin-source-upstream small,
.admin-source-money small,
.admin-source-stock small,
.admin-source-sync small,
.admin-source-health { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.admin-source-error { max-width: 42ch; color: var(--danger) !important; overflow-wrap: anywhere; white-space: normal; }
.admin-source-health { display: block; margin-block-start: 6px; }
.admin-source-money strong { font-family: var(--font-mono); font-size: 14px; }
.admin-source-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-source-actions .btn { min-height: 34px; }
.admin-source-empty {
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.admin-source-empty strong { display: block; font-size: 16px; }
.admin-source-empty p { margin: 7px 0 0; color: var(--text-muted); font-size: 12px; }

@media (max-width: 760px) {
  .admin-product-origin,
  .admin-product-result-summary { align-items: stretch; flex-direction: column; }
  .admin-product-origin .btn { width: 100%; }
  .admin-product-heading-actions { width: 100%; }
  .admin-product-heading-actions .btn { flex: 1 1 0; min-height: 44px; }
  .admin-product-viewbar { align-items: stretch; flex-direction: column; }
  .admin-product-filterbar { grid-template-columns: 1fr; }
  .admin-product-filterbar .btn { width: 100%; }
  .admin-product-filter-help { align-items: flex-start; flex-direction: column; gap: 3px; }
  .admin-product-history { width: max-content; }
  .admin-product-result-summary span { text-align: start; }
  .admin-product-detail-drawer { width: 100%; }
  .admin-product-detail-facts,
  .admin-product-editor,
  .admin-inventory-import { grid-template-columns: 1fr; }
  .admin-pricing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-pricing-summary > div:nth-child(odd) { border-left: 0; }
  .admin-pricing-summary > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .admin-pricing-actions .btn { width: 100%; min-height: 44px; }
  .admin-product-editor .is-wide { grid-column: auto; }
  .admin-product-detail-section-heading { align-items: stretch; flex-direction: column; }
  .admin-product-contract-heading { align-items: stretch; flex-direction: column; }
  .admin-product-contract-grid,
  .admin-product-contract-preview dl { grid-template-columns: 1fr; }
  .admin-product-name-builder > div { grid-template-columns: 1fr; }
  .admin-product-redeem-url-field { grid-template-columns: 1fr; }
  .admin-product-redeem-url-field > div { max-width: none; align-items: stretch; flex-direction: column; }
  .admin-product-redeem-url-field .btn { width: 100%; min-height: 44px; }
  .admin-product-contract-grid .is-wide { grid-column: auto; }
  .admin-product-audience-field > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-contract-preview dl > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .admin-product-copy-actions .btn { width: 100%; min-height: 44px; }
  .admin-product-copy-editor .input,
  .admin-product-copy-editor .textarea { font-size: 16px; }
  .admin-product-name-link { min-height: 44px; }
  .admin-source-heading { align-items: stretch; flex-direction: column; }
  .admin-source-heading .btn { width: 100%; }
  .admin-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-source-summary > div:nth-child(2) { border-inline-end: 0; }
  .admin-source-summary > div:nth-child(-n + 2) { border-block-end: 1px solid var(--border); }
  .admin-source-filterbar { grid-template-columns: 1fr; }
  .admin-source-filterbar .btn { width: 100%; }
  .admin-source-result-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.admin-supplier-relations-drawer .admin-order-detail-status p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-supplier-relationship-list {
  display: grid;
  gap: 12px;
}

.admin-supplier-relationship {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
}

.admin-supplier-relationship.is-current {
  border-inline-start: 3px solid var(--brand);
}

.admin-supplier-relationship.is-history {
  background: var(--surface-muted);
}

.admin-supplier-relationship > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-supplier-relationship > header > div {
  min-width: 0;
}

.admin-supplier-relationship h4 {
  margin: 9px 0 3px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-supplier-relationship > header p,
.admin-supplier-relationship-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-supplier-relationship > header > strong {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
}

.admin-supplier-relationship-facts {
  display: grid;
  margin: 15px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.admin-supplier-relationship-facts div {
  min-width: 0;
}

.admin-supplier-relationship-facts dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-supplier-relationship-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-supplier-relationship-facts code {
  font-size: 11px;
}

.admin-supplier-relationship > footer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-block-start: 14px;
  flex-wrap: wrap;
}

.admin-supplier-profile-editor {
  flex: 1 1 320px;
}

.admin-supplier-profile-editor summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  width: max-content;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-supplier-profile-editor summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.admin-supplier-profile-editor > div {
  display: grid;
  margin-block-start: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  border-block-start: 1px solid var(--border);
}

.admin-supplier-profile-editor label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.admin-supplier-profile-editor label > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-supplier-profile-editor .is-wide {
  grid-column: 1 / -1;
}

.admin-supplier-profile-editor .textarea {
  min-height: 88px;
  resize: vertical;
}

@media (max-width: 760px) {
  .admin-supplier-relations-drawer { width: 100%; }
  .admin-supplier-relationship { padding: 14px; }
  .admin-supplier-relationship > header { gap: 10px; }
  .admin-supplier-relationship-facts,
  .admin-supplier-profile-editor > div { grid-template-columns: 1fr; }
  .admin-supplier-profile-editor .is-wide { grid-column: auto; }
  .admin-supplier-relationship > footer > .btn,
  .admin-supplier-profile-editor,
  .admin-supplier-profile-editor summary { width: 100%; }
  .admin-supplier-profile-editor summary { min-height: 44px; }
  .admin-order-source-actions .btn { width: 100%; min-height: 44px; }
}

/* Isolated self-operated acceptance console */
.admin-acceptance-workbench { display: grid; min-width: 0; gap: 22px; }
.admin-acceptance-heading { align-items: flex-start; }
.admin-acceptance-heading .btn { min-height: 44px; }
.admin-acceptance-warning {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-inline-start: 4px solid var(--brand);
  border-radius: 7px;
  background: var(--success-soft);
}
.admin-acceptance-warning strong { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-dark); font-size: 13px; }
.admin-acceptance-warning span { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-acceptance-config,
.admin-acceptance-list { min-width: 0; padding-block-start: 18px; border-top: 1px solid var(--border-strong); }
.admin-acceptance-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-block-end: 14px;
}
.admin-acceptance-section-heading > div { min-width: 0; }
.admin-acceptance-section-heading h3 { margin: 0 0 4px; font-size: 16px; }
.admin-acceptance-section-heading p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-acceptance-current {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-acceptance-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.admin-acceptance-form label { display: grid; min-width: 0; gap: 6px; }
.admin-acceptance-form label > span:first-child { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.admin-acceptance-form .is-wide { grid-column: 1 / -1; }
.admin-acceptance-help { min-height: 34px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.admin-acceptance-enable {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.admin-acceptance-enable input { width: 18px; height: 18px; margin-block-start: 2px; }
.admin-acceptance-enable > span { display: grid; gap: 3px; }
.admin-acceptance-enable strong { color: var(--text); font-size: 12px; }
.admin-acceptance-enable small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.admin-acceptance-form-actions,
.admin-acceptance-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-acceptance-form-actions { justify-content: space-between; }
.admin-acceptance-form-actions .btn { min-height: 44px; }
.admin-acceptance-form-actions > span { font-size: 11px; }
.admin-acceptance-list .admin-table { min-width: 900px; table-layout: auto; }
.admin-acceptance-list .admin-table td:first-child strong,
.admin-acceptance-list .admin-table td:first-child small,
.admin-acceptance-list .admin-table td:nth-child(2) small,
.admin-acceptance-list .admin-table td:nth-child(3) small,
.admin-acceptance-list .admin-table td:nth-child(4) small { display: block; }
.admin-acceptance-list .admin-table td small { margin-block-start: 5px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.admin-acceptance-list .admin-table td .badge + small,
.admin-acceptance-list .admin-table td strong + .badge { margin-block-start: 6px; }
.admin-acceptance-link {
  display: block;
  max-width: 36ch;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-acceptance-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-acceptance-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.admin-acceptance-row-active td { background: var(--success-soft); }
.admin-acceptance-row-attention td { background: var(--warning-soft); }
.admin-acceptance-list .is-mono { font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 760px) {
  .cdk-delivery-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-acceptance-heading,
  .admin-acceptance-section-heading,
  .admin-acceptance-form-actions { align-items: stretch; flex-direction: column; }
  .admin-acceptance-heading .btn,
  .admin-acceptance-section-heading .btn,
  .admin-acceptance-form-actions .btn { width: 100%; }
  .admin-acceptance-warning,
  .admin-acceptance-form { grid-template-columns: 1fr; }
  .admin-acceptance-form .is-wide { grid-column: auto; }
  .admin-acceptance-form .input,
  .admin-acceptance-form select { font-size: 16px; }
  .admin-acceptance-current { width: max-content; max-width: 100%; overflow-wrap: anywhere; }
  .admin-acceptance-actions .btn { min-height: 44px; }
}

/* Exact linked-product import follows the existing dispatch-desk form rhythm. */
.linked-product-import {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.linked-product-import-heading,
.linked-product-inspection-heading,
.linked-product-inspection-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.linked-product-import-heading h2,
.linked-product-import-heading p { margin: 0; }
.linked-product-import-heading h2 { font-size: 18px; }
.linked-product-import-heading p,
.linked-product-import-help { color: var(--text-muted); }
.linked-product-import-heading p { margin-top: 4px; }
.linked-product-import-form {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(190px, .35fr) auto;
  align-items: end;
  gap: 12px;
}
.linked-product-import-form label { display: grid; min-width: 0; gap: 6px; }
.linked-product-import-form label > span { color: var(--text); font-size: 13px; font-weight: 700; }
.linked-product-import-form .btn { min-height: 44px; }
.linked-product-import-help { margin: -4px 0 0; font-size: 13px; }
.linked-product-inspection {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}
.linked-product-inspection-heading { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.linked-product-inspection-heading > div { display: grid; min-width: 0; gap: 3px; }
.linked-product-inspection-heading span:first-child { color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.linked-product-inspection-heading strong { overflow-wrap: anywhere; }
.linked-product-inspection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.linked-product-inspection-grid > div {
  padding: 13px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.linked-product-inspection-grid > div:nth-child(3n) { border-right: 0; }
.linked-product-inspection-grid dt { color: var(--text-muted); font-size: 12px; }
.linked-product-inspection-grid dd { margin: 4px 0 0; color: var(--text); font-weight: 700; }
.linked-product-inspection-actions { padding: 14px 16px; }
.linked-product-inspection-actions span { color: var(--text-muted); font-size: 13px; }
.linked-product-inspection-actions code { color: var(--text); }

@media (max-width: 760px) {
  .linked-product-import-heading,
  .linked-product-inspection-heading,
  .linked-product-inspection-actions { align-items: stretch; flex-direction: column; }
  .linked-product-import-form,
  .linked-product-inspection-grid { grid-template-columns: 1fr; }
  .linked-product-inspection-grid > div,
  .linked-product-inspection-grid > div:nth-child(3n) { border-right: 0; }
  .linked-product-inspection-actions .btn { width: 100%; }
}

/* Platform-first catalog navigation and the matching admin workbench controls. */
.catalog-filter-row.is-platform-navigation {
  border-bottom-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-muted) 42%, var(--surface));
}
.catalog-filter-row.is-platform-navigation .catalog-filter-group-label {
  color: var(--brand-dark);
  font-weight: 800;
}
.catalog-filter-row.is-platform-navigation .catalog-filter-option {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 14px;
}
.catalog-filter-row.is-platform-navigation .catalog-filter-option.is-active {
  box-shadow: inset 0 -2px 0 var(--brand);
}
.catalog-filter-toolbar {
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, .9fr) max-content minmax(150px, .8fr) minmax(170px, .9fr);
}
.catalog-filter-toolbar .catalog-filter-search { min-width: 0; }
.catalog-manifest-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-manifest-meta > span { min-width: 0; }
.admin-product-platformbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-block: 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-product-platformbar > span {
  flex: 0 0 auto;
  margin-inline-end: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-product-platformbar button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-product-platformbar button:hover { border-color: var(--border-strong); color: var(--text); }
.admin-product-platformbar button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.admin-product-platformbar button b {
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
}

@media (max-width: 1000px) {
  .catalog-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filter-toolbar .catalog-filter-search { grid-column: 1 / -1; }
  .catalog-filter-toolbar .catalog-sort-field { grid-column: 1 / -1; }
  .catalog-manifest-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .catalog-filter-row.is-platform-navigation { overflow-x: auto; }
  .catalog-filter-row.is-platform-navigation .catalog-filter-options { min-width: max-content; }
  .catalog-manifest-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-manifest-meta > span { padding-inline: 12px; }
  .admin-product-platformbar { margin-inline: 0; }
  .admin-product-platformbar > span { position: sticky; left: 0; padding-inline-end: 4px; background: var(--surface); }
}

@media (max-width: 520px) {
  .catalog-manifest-meta { grid-template-columns: 1fr; }
  .catalog-manifest-meta > span,
  .catalog-manifest-meta > span:nth-child(3),
  .catalog-manifest-meta > span:nth-child(4) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .catalog-manifest-meta > span:first-child { border-top: 0; }
  .admin-product-platformbar { border-radius: 5px; }
}

/* Keep purchase verification and support in one visual rail. The existing
   inner IDs/classes remain unchanged so refresh and support actions keep
   their current behavior on both storefronts. */
.home-assurance-rail {
  border-block: 1px solid var(--border-strong);
  background: var(--surface);
}

.home-assurance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.home-assurance-grid > * {
  min-width: 0;
  border: 0;
  background: transparent;
}

.home-assurance-grid > .home-fulfillment-proof { border-right: 1px solid var(--border); }
.home-assurance-grid > .delivery-contract-band { border-left: 0; }
.home-assurance-grid > .invoice-service-band {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
}

.home-assurance-grid > * > .container {
  width: auto;
  max-width: none;
  margin-inline: 0;
}

.home-assurance-rail .fulfillment-proof-layout {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 14px;
  padding: 22px 24px;
}

.home-assurance-rail .fulfillment-proof-layout ul { grid-template-columns: 1fr; gap: 8px; }
.home-assurance-rail .fulfillment-proof-layout li {
  padding: 6px 0 6px 14px;
  border-left: 0;
  border-top: 1px solid var(--border);
}

.home-assurance-rail .delivery-contract-layout {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px 24px;
}

.home-assurance-rail .delivery-contract-layout h2 {
  max-width: none;
  font-size: 24px;
  text-wrap: balance;
}

.home-assurance-rail .delivery-contract-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-left: 0;
  padding-top: 10px;
}

.home-assurance-rail .delivery-contract-facts > span { padding: 4px 12px 0 0; }
.home-assurance-rail .invoice-service-layout { min-height: 0; padding-block: 18px; }
.home-assurance-rail .invoice-service-layout p { text-wrap: pretty; }
.home-assurance-rail + .dispatch-catalog { padding-top: 52px; }

@media (max-width: 900px) {
  .home-assurance-grid { grid-template-columns: 1fr; }
  .home-assurance-grid > .home-fulfillment-proof { border-right: 0; }
  .home-assurance-grid > .delivery-contract-band,
  .home-assurance-grid > .invoice-service-band { border-top: 1px solid var(--border); }
  .home-assurance-rail .delivery-contract-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-assurance-rail .fulfillment-proof-layout,
  .home-assurance-rail .delivery-contract-layout { padding-inline: 16px; }
  .home-assurance-rail .delivery-contract-facts { grid-template-columns: 1fr; }
  .home-assurance-rail .delivery-contract-facts > span {
    grid-template-columns: minmax(116px, auto) minmax(0, 1fr);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .home-assurance-rail .invoice-service-layout { padding-block: 16px; }
  .home-assurance-rail + .dispatch-catalog { padding-top: 40px; }
}
