/* Insight9 Dispatch Desk
   Presentation-only layer. Existing route, form, and data contracts stay intact. */

:root {
  --bg: #f4f6f3;
  --bg-subtle: #edf1ed;
  --surface: #ffffff;
  --surface-strong: #151a17;
  --border: #dce2dd;
  --border-strong: #bfc9c2;
  --text: #151a17;
  --text-muted: #59635d;
  --text-soft: #747f78;
  --brand: #147a4b;
  --brand-dark: #0d5d39;
  --brand-soft: #e9f5ee;
  --success: #147a4b;
  --success-soft: #e9f5ee;
  --warning: #9a5b13;
  --warning-soft: #fff4e5;
  --danger: #b93b37;
  --danger-soft: #fff0ef;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(21, 26, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 26, 23, 0.08);
  --shadow-lg: 0 24px 70px rgba(21, 26, 23, 0.14);
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --t-fast: 140ms ease-out;
  --t-norm: 220ms ease-out;
  --nav-height: 68px;
  --max-width: 1240px;
}

html {
  background: var(--bg);
  color-scheme: light;
  scroll-padding-top: calc(var(--nav-height) + 18px);
}

body {
  background: var(--bg);
  background-image: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.14;
}

h1 { font-size: 56px; }
h2 { font-size: 34px; }
h3 { font-size: 20px; }

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

button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}

button,
[role="button"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(20, 122, 75, 0.34);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 100000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: #fff;
}

.skip-link:focus { transform: translateY(0); }

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

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.lead { color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

.card,
.modal-card,
.feature-card,
.home-stat-card,
.trust-item,
.pipeline-card,
.doc-entry-card,
.recharge-entry-card,
.user-panel,
.faq-item,
.comparison-table-wrap,
.hero-console,
.market-strip,
.product-command-bar,
.cta {
  background: var(--surface);
  background-image: none;
  border-color: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  color: var(--text);
}

.card { padding: 24px; }
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  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:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: 14px 22px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 13px; }

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

.btn-primary:hover,
.marketplace-card .btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 122, 75, 0.18);
  filter: none;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--surface-strong);
  border-color: var(--surface-strong);
  color: #fff;
}

.btn-dark:hover { background: #2a312d; color: #fff; }

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

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: #87938b;
  color: var(--text);
}

.btn:disabled {
  background: #eef1ee;
  border-color: #dce2dd;
  color: #7b857f;
}

.badge {
  min-height: 24px;
  border-radius: var(--radius-full);
  border-color: var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.badge-brand,
.badge-success {
  background: var(--brand-soft);
  border-color: #c5e2d0;
  color: var(--brand-dark);
}

.badge-warning { background: var(--warning-soft); color: var(--warning); }

.input,
.textarea,
select {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.input:focus,
.textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 122, 75, 0.12);
  outline: 2px solid transparent;
}

.input:focus-visible,
.textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(20, 122, 75, 0.34);
  outline-offset: 2px;
}

/* Header */
.nav,
.footer {
  background: rgba(255, 255, 255, 0.96);
  background-image: none;
  border-color: var(--border);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.dispatch-nav { height: var(--nav-height); }
.dispatch-nav .nav-inner { max-width: var(--max-width); padding: 0 24px; gap: 28px; }
.dispatch-nav .nav-logo { flex: 0 0 auto; color: var(--text); }
.nav-logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.nav-brand-copy { display: grid; gap: 0; line-height: 1.1; }
.nav-brand-copy b { font-size: 15px; }
.nav-brand-copy small { color: var(--text-soft); font-size: 10px; text-transform: uppercase; }
.dispatch-nav-menu { justify-content: flex-start; gap: 2px; }
.nav-link { border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 650; }
.nav-link:hover { background: var(--bg-subtle); color: var(--text); }
.nav-right { margin-left: auto; }
.supply-box-nav { box-shadow: none; }
.supply-box-nav .ic { flex: 0 0 auto; }

/* Homepage: dispatch offer */
.dispatch-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dispatch-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 36px;
}

.dispatch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: 68px;
  align-items: center;
}

.dispatch-hero-copy { min-width: 0; padding: 18px 0; }

.dispatch-overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.live-dot,
.pulse-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(20, 122, 75, 0.11);
  animation: none;
}

.dispatch-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 60px;
  font-weight: 800;
  line-height: 1.07;
}

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

.dispatch-lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.72;
}

.dispatch-hero .hero-actions { justify-content: flex-start; margin-top: 32px; }

.hero-supply-board {
  overflow: hidden;
  border: 1px solid #303a34;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: #fff;
  box-shadow: 0 24px 64px rgba(21, 26, 23, 0.18);
}

.hero-supply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 13px 16px;
  border-bottom: 1px solid #354039;
}

.hero-supply-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hero-supply-brand img { width: 48px; height: 48px; border-radius: var(--radius-md); background: #fff; }
.hero-supply-brand > span { display: grid; gap: 2px; }
.hero-supply-brand small { color: #97a49c; font-family: var(--font-mono); font-size: 10px; font-weight: 800; }
.hero-supply-brand strong { color: #fff; font-size: 16px; }
.hero-supply-sync { display: inline-flex; align-items: center; gap: 8px; color: #b9c4bd; font-size: 11px; font-weight: 700; }
.hero-supply-sync .live-dot { background: #5bd58c; box-shadow: 0 0 0 4px rgba(91, 213, 140, 0.11); }
.hero-supply-sync.is-pending .live-dot { background: #d5a04e; box-shadow: 0 0 0 4px rgba(213, 160, 78, 0.12); }

.hero-supply-list { display: grid; }
.hero-supply-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content 48px;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 9px 16px;
  border: 0;
  border-bottom: 1px solid #303a34;
  background: transparent;
  color: #fff;
  text-align: left;
  transition: background-color var(--t-fast);
}
.hero-supply-row:hover { background: #202722; }
.hero-supply-row:focus-visible { position: relative; z-index: 1; outline-color: #79d69e; outline-offset: -3px; }
.hero-supply-code {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 65%, #49554d);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand-accent) 18%, #151a17);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}
.hero-supply-name { display: grid; min-width: 0; }
.hero-supply-name strong { overflow: hidden; color: #f5f7f5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hero-supply-name small { color: #8f9c94; font-size: 10px; }
.hero-supply-price { color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 800; white-space: nowrap; }
.hero-supply-state { color: #86dda9; font-size: 10px; font-weight: 800; text-align: right; white-space: nowrap; }
.hero-supply-state.is-soldout { color: #a8b1ab; }
.hero-supply-empty { min-height: 180px; display: grid; place-items: center; color: #a8b1ab; font-size: 13px; }

.hero-supply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 9px 16px;
  color: #8f9c94;
  font-size: 10px;
}
.hero-board-action { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #dbe3de; font: inherit; font-size: 11px; font-weight: 800; }
.hero-board-action:hover { color: #fff; }

.dispatch-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  margin-top: 48px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.dispatch-ledger .home-stat-card {
  min-width: 0;
  padding: 18px 20px;
  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 { color: var(--text-muted); font-size: 12px; }
.dispatch-ledger .home-stat-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.dispatch-ledger .home-stat-card small { display: block; margin-top: 3px; color: var(--text-soft); font-size: 11px; }

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

.section-heading-row.compact { margin-bottom: 24px; }
.section-heading-row h2 { margin: 8px 0 10px; }
.section-heading-row p { max-width: 680px; color: var(--text-muted); }

.section-index {
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.text-action:hover { color: var(--brand-dark); }

/* Catalogue */
.dispatch-catalog { background: var(--bg); }
.category-rail {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-rail .product-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.category-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: var(--brand-accent, var(--text));
}

.category-rail .product-tab:hover {
  border-color: #87938b;
  background: var(--surface);
  color: var(--text);
}

.category-rail .product-tab.active,
.category-rail .product-tab[class*="brand-"].active,
.category-rail .product-tab[class*="brand-"]:hover {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  background-image: none;
  color: #fff;
  box-shadow: none;
}

.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.marketplace-card.catalog-product-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand-accent) 3%, var(--surface));
  background-image: none;
  box-shadow: none;
  color: var(--text);
  cursor: default;
  filter: none;
  transition: border-color var(--t-norm), box-shadow var(--t-norm), transform var(--t-norm);
}

.marketplace-card.catalog-product-card::before {
  inset: 0 0 auto;
  width: auto;
  height: 4px;
  background: var(--brand-accent);
}

.brand-google-mail.marketplace-card::before { background: #4285f4; }
.brand-google-mail.marketplace-card .pc-category,
.brand-google-mail.marketplace-card .badge-soft {
  border-color: var(--border);
  background: transparent;
  background-image: none;
  color: var(--text-muted);
}

.marketplace-card.catalog-product-card:hover,
.product-card.is-recommended:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  filter: none;
  transform: translateY(-2px);
}

.marketplace-card.catalog-product-card.is-soldout {
  opacity: 0.72;
  filter: none;
}

.catalog-product-card .pc-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0;
}

.pc-brand-lockup { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.pc-brand-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 48%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand-accent) 9%, #fff);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.marketplace-card .pc-category {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.supply-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  background-image: none;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

.supply-status-stock { border-color: #c3dfcd; background: var(--success-soft); color: var(--brand-dark); }
.supply-status-deploy { border-color: #eed3ad; background: var(--warning-soft); color: var(--warning); }
.supply-status-soldout { border-color: var(--border); background: var(--bg-subtle); color: var(--text-muted); }

.marketplace-card.catalog-product-card .pc-name {
  margin-top: 22px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.marketplace-card .pc-subtitle { margin: 5px 0 0; color: var(--brand-dark); font-size: 12px; }
.marketplace-card .pc-badges { justify-content: flex-start; max-width: none; margin-top: 10px; }
.marketplace-card .pc-desc { min-height: 68px; margin: 12px 0 16px; color: var(--text-muted); line-height: 1.65; }
.marketplace-card .pc-features { gap: 6px; margin-bottom: 16px; }
.marketplace-card .pc-features li { color: var(--text-muted); font-size: 12px; }
.marketplace-card .pc-features li::before { background: var(--brand-accent); }

.marketplace-card .pc-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.marketplace-card .pc-price { margin: 0; }
.marketplace-card .pc-price .now {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
.marketplace-card .pc-stock { justify-content: flex-end; margin: 0; color: var(--text-soft); font-size: 11px; }
.marketplace-card .pc-stock .pc-badges { display: none; }
.compact-supply-actions { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.catalog-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
}

.storefront-disclaimer {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #eef4f1;
}

.storefront-disclaimer .container {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding-block: 14px;
}

.storefront-disclaimer strong { color: var(--text); font-size: 13px; }
.storefront-disclaimer p { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.storefront-disclaimer .text-action { white-space: nowrap; }

/* Delivery and proof */
.dispatch-delivery { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.delivery-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 90px; align-items: center; }
.delivery-copy h2 { margin: 9px 0 14px; }
.delivery-copy > .lead { max-width: 680px; }
.dispatch-steps { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.dispatch-step { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.dispatch-step-index { color: var(--brand-dark); font-family: var(--font-mono); font-size: 12px; font-weight: 800; }
.dispatch-step strong { color: var(--text); font-size: 15px; }
.dispatch-step p { margin-top: 3px; color: var(--text-muted); font-size: 13px; }
.delivery-visual { justify-self: center; width: min(100%, 360px); margin: 0; }
.delivery-visual img { width: 100%; max-height: 430px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); object-fit: cover; object-position: top; }
.delivery-visual figcaption { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; color: var(--text-muted); font-size: 12px; }

.assurance-band { background: var(--surface-strong); color: #e8ece9; }
.assurance-band h2 { color: #fff; }
.assurance-band .section-index { color: #8ed3aa; }
.assurance-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.assurance-intro p { max-width: 430px; margin-top: 14px; color: #aeb8b1; }
.assurance-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #3b443e; border-left: 1px solid #3b443e; }
.assurance-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; min-height: 132px; padding: 20px; border-right: 1px solid #3b443e; border-bottom: 1px solid #3b443e; }
.assurance-row > span { color: #8ed3aa; }
.assurance-row strong { color: #fff; font-size: 14px; }
.assurance-row p { margin-top: 5px; color: #aeb8b1; font-size: 12px; line-height: 1.6; }

/* Utilities and FAQ */
.account-tools { background: var(--bg); }
.utility-list { border-top: 1px solid var(--border-strong); }
.utility-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.utility-row > span { color: var(--brand-dark); }
.utility-row strong { color: var(--text); }
.utility-row p { margin-top: 3px; color: var(--text-muted); font-size: 13px; }

.faq-section { border-top: 1px solid var(--border); background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 90px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--nav-height) + 28px); }
.faq-intro h2 { margin: 9px 0 14px; }
.faq-intro p { max-width: 360px; color: var(--text-muted); }
.faq-intro .text-action { margin-top: 20px; }
.faq-list { max-width: none; }
.faq-item { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.faq-q { min-height: 66px; padding: 18px 0; color: var(--text); font-size: 15px; }
.faq-a .inner { padding: 0 42px 20px 0; color: var(--text-muted); }

/* Product detail and transactional pages */
.page-header,
.doc-hero {
  padding: 52px 0 30px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
}

.page-header h1,
.doc-hero h1 { font-size: 42px; }
.doc-breadcrumb { color: var(--text-soft); }
.doc-breadcrumb a { color: var(--text-muted); }

.product-detail-hero.card {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  gap: 54px;
  padding: 38px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pdh-main h1 { margin-top: 18px; }
.pdh-points span { border-radius: var(--radius-sm); background: var(--bg-subtle); }
.pdh-buybox,
.sticky-buy-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.pdh-price { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.product-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.product-detail-main { gap: 14px; }
.product-detail-main .card { border-radius: var(--radius-lg); }
.brand-disclaimer {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.summary-box { border-color: var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.summary-row { border-color: var(--border); }
.detail-kicker,
.kicker { color: var(--brand-dark); letter-spacing: 0; }
.checklist-item { border-color: var(--border); border-radius: var(--radius-md); background: var(--bg); }

.auth-section { background: var(--bg); }
.auth-card,
.auth-single-card,
.form-wrap { border-radius: var(--radius-lg); }
.auth-tabs,
.recharge-tabs { border-radius: var(--radius-md); background: var(--bg-subtle); }
.auth-tab,
.recharge-tab { border-radius: var(--radius-sm); }
.notice { border-radius: var(--radius-md); }
.notice-info { background: #eef4f1; color: #315343; }
.notice-warning { background: var(--warning-soft); color: var(--warning); }
.checkout-affiliation-note { margin-bottom: 18px; font-size: 13px; }

.confirm-facts {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

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

.confirm-facts li > span { color: var(--brand-dark); }
.confirm-facts strong { color: var(--text); font-size: 14px; }
.confirm-facts p { margin-top: 3px; color: var(--text-muted); font-size: 12px; }

.confirm-trust-grid,
.feature-grid,
.trust-grid { gap: 12px; }
.feature-card,
.trust-item { border-radius: var(--radius-lg); }
.feature-card .ic,
.trust-item .ic { color: var(--brand-dark); background: transparent; }

.user-hero-card,
.user-panel,
.order-row,
.admin-panel { border-color: var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; }
.balance-pill { border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-dark); }
.order-row { transition: border-color var(--t-fast), background-color var(--t-fast); }
.order-row:hover { border-color: var(--border-strong); background: #fbfcfb; }
.order-credential-box { border-color: var(--border); border-radius: var(--radius-md); background: var(--bg); }
.order-credential-box code { color: var(--text); }
.order-credential-box code b { color: var(--brand-dark); }
.supply-asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.supply-asset-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  background-image: none;
  box-shadow: none;
}
.supply-asset-card span { color: var(--brand-dark); }
.supply-asset-card strong { display: block; margin: 8px 0 2px; color: var(--text); font-family: var(--font-mono); font-size: 30px; line-height: 1; }
.supply-asset-card small { color: var(--text-muted); }
.redeem-header { background: var(--surface); background-image: none; }

.comparison-table-wrap { overflow-x: auto; }
.comparison-table th { background: var(--bg-subtle); color: var(--text); }
.comparison-table td { color: var(--text-muted); }
.comparison-table th,
.comparison-table td { border-color: var(--border); }

/* Dialogs and feedback */
.modal-backdrop { background: rgba(21, 26, 23, 0.64); backdrop-filter: blur(3px); }
.modal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.modal-close { border-radius: var(--radius-sm); color: var(--text-muted); }
.modal-close:hover { background: var(--bg-subtle); color: var(--text); }
.supply-buy-card { border-color: var(--border); box-shadow: var(--shadow-lg); }
.supply-modal-price { margin: 20px 0 24px; color: var(--text); font-family: var(--font-mono); font-size: 44px; text-shadow: none; }

.toast-container { z-index: 10000; }
.toast { border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-strong); color: #fff; box-shadow: var(--shadow-md); }
.toast-success { background: var(--brand-dark); }
.toast-error { background: #7f2926; }

.supply-box-fixed {
  right: 18px;
  top: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #2f3933;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  background-image: none;
  color: #fff;
  box-shadow: var(--shadow-md);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}
.supply-box-fixed:hover { background: #2a312d; transform: translateY(-1px); }

.footer { padding: 56px 0 max(28px, env(safe-area-inset-bottom)); margin-top: 0; }
.footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
.footer-intro { max-width: 380px; font-size: 13px; }
.footer-bottom { border-color: var(--border); }

@media (max-width: 1024px) {
  h1,
  .dispatch-hero h1 { font-size: 48px; }
  h2 { font-size: 30px; }
  .dispatch-hero { min-height: 620px; }
  .dispatch-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 34px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-layout { gap: 48px; }
  .assurance-layout,
  .faq-layout { gap: 48px; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-side { display: none; }
}

@media (max-width: 760px) {
  :root { --nav-height: 60px; }
  body { font-size: 16px; }
  h1,
  .dispatch-hero h1,
  .page-header h1,
  .doc-hero h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }
  .container { width: min(100% - 32px, var(--max-width)); }
  .section { padding: 62px 0; }
  .section-sm { padding: 46px 0; }

  .dispatch-nav .nav-inner { padding: 0 14px; gap: 8px; }
  .nav-brand-copy small { display: none; }
  .nav-right .btn-ghost { display: none; }
  .supply-box-nav { display: none; }
  .nav-menu {
    top: var(--nav-height);
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .dispatch-hero { min-height: 0; }
  .dispatch-hero-inner { padding-top: 34px; padding-bottom: 24px; }
  .dispatch-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .dispatch-hero-copy { padding: 0; }
  .dispatch-overline { max-width: 260px; margin-bottom: 18px; }
  .dispatch-lead { margin-top: 18px; font-size: 16px; }
  .dispatch-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-supply-header { min-height: 58px; padding: 8px 12px; }
  .hero-supply-brand img { width: 40px; height: 40px; }
  .hero-supply-brand strong { font-size: 14px; }
  .hero-supply-row { grid-template-columns: 36px minmax(0, 1fr) max-content; min-height: 54px; padding: 8px 12px; }
  .hero-supply-row:nth-child(n + 3) { display: none; }
  .hero-supply-state { display: none; }
  .hero-supply-footer { display: none; }
  .dispatch-ledger { display: none; }

  .section-heading-row { display: grid; gap: 8px; align-items: start; margin-bottom: 26px; }
  .section-heading-row h2 { margin-bottom: 8px; }
  .category-rail { margin-right: -16px; padding-right: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .marketplace-card.catalog-product-card { min-height: 0; padding: 20px; }
  .marketplace-card .pc-desc { min-height: 0; }
  .compact-supply-actions { grid-template-columns: 1fr; }

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

  .delivery-layout,
  .assurance-layout,
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .delivery-visual { width: min(82%, 340px); }
  .assurance-list { grid-template-columns: 1fr; }
  .assurance-row { min-height: 112px; }
  .faq-intro { position: static; }

  .utility-row { grid-template-columns: 28px 1fr; gap: 12px; }
  .utility-row .btn { grid-column: 2; width: 100%; }
  .supply-asset-grid { grid-template-columns: 1fr; }
  .product-detail-hero.card { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .pdh-buybox { padding: 18px; }
  .page-header,
  .doc-hero { padding: 36px 0 24px; }
  .form-wrap { max-width: none; }
  .input,
  .textarea,
  select { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; }
  .supply-box-fixed { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  h1,
  .dispatch-hero h1,
  .page-header h1,
  .doc-hero h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .container { width: min(100% - 28px, var(--max-width)); }
  .dispatch-ledger .home-stat-card { padding: 15px 12px; }
  .dispatch-ledger .home-stat-card strong { font-size: 19px; }
  .catalog-product-card .pc-topline { align-items: flex-start; }
  .supply-status { white-space: nowrap; }
}

@media (min-width: 761px) and (max-height: 720px) {
  .dispatch-hero { min-height: 0; }
  .dispatch-hero-inner { padding-top: 32px; padding-bottom: 28px; }
  .dispatch-ledger { display: none; }
  .hero-supply-header { min-height: 64px; padding-block: 8px; }
  .hero-supply-row { min-height: 52px; padding-block: 7px; }
  .hero-supply-footer { min-height: 42px; }
}

@media (max-width: 760px) and (max-height: 720px) {
  #hero-supply-board-slot { display: 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;
  }
}

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