/* 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-right { gap: 8px; }
.nav-toggle,
.user-avatar-btn { min-width: 44px; min-height: 44px; }

.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 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;
}

/* Home hero */
.dispatch-hero {
  position: relative;
  isolation: isolate;
  min-height: max(700px, calc(100dvh - var(--nav-height) - 156px));
  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: 58px 24px;
}

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

.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%;
  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-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 { min-width: 0; 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-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; }

.dispatch-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  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: 96px;
  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,
.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: 24px; }

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

.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: sticky;
  top: calc(var(--nav-height) + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.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);
  align-self: stretch;
  border-left: 1px solid var(--border);
}

.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;
}

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

.marketplace-card.catalog-product-card {
  display: grid;
  grid-template-columns: minmax(124px, 0.5fr) minmax(280px, 1.5fr) minmax(220px, 1fr) minmax(116px, 0.46fr) minmax(190px, 0.72fr);
  grid-template-areas: "status copy facts commercial actions";
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 178px;
  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::before { display: none; }

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

.catalog-product-card .pc-topline {
  grid-area: status;
  display: grid;
  min-height: 100%;
  padding: 22px 6px 22px 16px;
  align-content: center;
  align-items: start;
  justify-content: start;
  justify-items: start;
  gap: 12px;
}
.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; }
.marketplace-card .pc-copy {
  grid-area: copy;
  min-width: 0;
  padding: 22px 30px 22px 40px;
  border-left: 1px solid var(--border);
}
.marketplace-card .pc-name { margin-top: 0; color: var(--text); font-size: var(--font-card-title); line-height: 1.28; }
.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-bottom {
  grid-area: commercial;
  display: grid;
  min-height: 100%;
  margin: 0;
  padding: 22px;
  align-content: center;
  align-items: start;
  gap: 10px;
  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: 28px;
  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-card .compact-supply-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100%;
  gap: 8px;
  margin: 0;
  padding: 22px 0 22px 22px;
  align-content: center;
  border-left: 1px solid var(--border);
}
.catalog-empty { min-height: 200px; padding: 44px; border: 1px dashed var(--border-strong); font-size: 16px; }

.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(0, 1fr) minmax(300px, 420px); gap: 72px; }
.delivery-copy .lead { margin-top: 14px; }

.dispatch-steps {
  position: relative;
  margin-top: 30px;
  border-top: 0;
}

.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; }

.delivery-visual {
  width: 100%;
  max-width: 410px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  box-shadow: var(--shadow-md);
}

.delivery-visual img { width: 100%; border-radius: var(--radius-md); }
.delivery-visual figcaption { padding: 12px 4px 2px; color: var(--text-muted); font-size: 14px; }

.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-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; }

/* 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: 38px 42px 38px 0; align-self: center; }
.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-points { 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: stretch;
  padding: 32px 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 { color: #dce4df; }
.pdh-buybox .brand-disclaimer { color: #bfc9c2; }
.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) 300px; gap: 28px; }
.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,
.product-detail-main > .card-flat h3 { 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; }
.sticky-buy-card {
  top: calc(var(--nav-height) + 16px);
  padding: 22px;
  border-color: var(--border-strong);
  border-radius: 0;
  box-shadow: none;
}
.sticky-buy-card .pdh-receipt-label { color: var(--text-muted); }

/* Checkout, payment, auth and transactional forms */
.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);
}

.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 { 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-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; }

.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 {
  gap: 10px;
  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;
}

.supply-asset-grid { gap: 12px; }
.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; }

.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; }

.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));
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-route-action {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
  min-height: 206px;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  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-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.guide-route-copy { display: grid; align-content: start; gap: 5px; }
.guide-route-copy small { color: var(--brand-dark); font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.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; 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 {
  display: grid;
  grid-template-columns: 10px minmax(210px, 0.58fr) minmax(420px, 1.42fr) 154px;
  gap: 22px;
  min-height: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

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

.guide-category-name h3 { font-size: 20px; }
.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-row .btn { justify-self: end; width: 154px; margin-top: 24px; }

.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 { padding: 22px; }
.admin-key-row { gap: 12px; }
.admin-tabs { margin-block: 18px; }
.admin-import { gap: 12px; }

.admin-table-wrap,
.comparison-table-wrap {
  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;
}

.admin-actions { min-width: 240px; }
.admin-actions .btn-sm { min-height: 38px; }
.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; }

.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: 58px 0 max(28px, 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: 1.35fr 0.8fr 0.8fr; gap: 48px; }
.footer-brand b,
.footer-col h4 { color: #ffffff; font-size: 16px; }
.footer-intro { max-width: 44ch; color: #bfc9c2; font-size: 15px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dce4df;
  font-size: 15px;
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom { padding-top: 22px; 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: 20px; }
  .marketplace-card.catalog-product-card {
    grid-template-columns: minmax(116px, 0.5fr) minmax(220px, 1fr) minmax(112px, 0.46fr) minmax(174px, 0.7fr);
    grid-template-areas: "status copy commercial actions";
  }
  .marketplace-card .pc-copy { padding-left: 32px; }
  .marketplace-card .pc-features { display: none; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-side { display: none; }
  .delivery-layout,
  .assurance-layout,
  .faq-layout { gap: 48px; }
}

@media (max-width: 800px) and (min-width: 761px) {
  .catalog-product-card .pc-topline { padding-inline: 10px 6px; }
  .catalog-product-card .pc-brand-lockup {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 5px;
  }
  .catalog-product-card .pc-brand-code { width: 8px; height: 8px; }
  .catalog-product-card .pc-category { font-size: 14px; }
}

@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-menu { top: var(--nav-height); padding: 8px 12px 14px; background: var(--surface); }
  .nav-menu .nav-link { width: 100%; justify-content: flex-start; }
  .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 20px; }
  .dispatch-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .dispatch-hero-copy { max-width: 100%; }
  .dispatch-hero h1 { max-width: 100%; }
  .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; }

  .section-heading-row { display: grid; gap: 8px; align-items: start; margin-bottom: 24px; }
  .catalog-control-bar {
    top: calc(var(--nav-height) + 4px);
    grid-template-columns: 1fr;
    gap: 0;
    margin-right: -14px;
    border-right: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .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); }
  .product-grid { grid-template-columns: 1fr; padding-inline: 10px; }
  .marketplace-card.catalog-product-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "status" "copy" "facts" "commercial" "actions";
    min-height: 0;
    padding: 0;
  }
  .catalog-product-card .pc-topline {
    display: flex;
    min-height: 0;
    padding: 18px 16px 12px;
    align-items: center;
    justify-content: space-between;
  }
  .marketplace-card .pc-copy { padding: 0 16px 16px; border-left: 0; }
  .marketplace-card .pc-desc { min-height: 0; -webkit-line-clamp: 3; }
  .marketplace-card .pc-features {
    display: grid;
    min-height: 0;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .marketplace-card .pc-features li:nth-child(n + 2) { display: none; }
  .marketplace-card .pc-bottom {
    grid-template-columns: 1fr max-content;
    min-height: 0;
    padding: 14px 16px;
    align-items: end;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .catalog-product-card .compact-supply-actions {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: 0 16px 18px;
    border-left: 0;
  }

  .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; }
  .delivery-visual { width: min(90%, 380px); }
  .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-hero.card { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .product-detail-hero .pdh-main { padding: 28px 20px; }
  .product-detail-hero h1 { font-size: 34px; }
  .pdh-buybox { padding: 24px 20px; border: 0; }
  .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); }

  .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; }

  .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; }

  .modal-card { padding: 24px 18px; }
  .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: 1fr; gap: 32px; }
  .footer-bottom { display: grid; gap: 6px; }
}

@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: 590px; }
  .dispatch-hero-inner { padding-top: 34px; }
  .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: 1100px) {
  .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-row { grid-template-columns: 10px minmax(180px, 0.58fr) minmax(320px, 1.42fr) 150px; gap: 18px; }
  .guide-category-row .btn { width: 150px; }
  .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; }
  .guide-category-row { grid-template-columns: 10px minmax(190px, 0.72fr) minmax(0, 1.28fr); }
  .guide-category-mark { grid-row: 1 / 3; }
  .guide-category-name { grid-row: 1 / 3; }
  .guide-category-row .btn { grid-column: 3; width: auto; justify-self: start; }
  .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) {
  .guide-section-head { display: grid; gap: 8px; margin-bottom: 22px; }
  .guide-route-bar { grid-template-columns: 1fr; }
  .guide-route-action {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 14px;
    min-height: 0;
    padding: 18px;
    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; }
  .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-row {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 20px 0;
  }
  .guide-category-mark { grid-row: 1 / 5; }
  .guide-category-name,
  .guide-category-first,
  .guide-category-row .btn { grid-column: 2; grid-row: auto; }
  .guide-category-row .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: flex;
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .faq-filter { flex: 0 0 auto; padding-inline: 14px; white-space: nowrap; }
  .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;
  }

  .delivery-visual {
    animation: delivery-evidence-scroll linear both;
    animation-range: entry 10% exit 85%;
    animation-timeline: view(block);
  }

  .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-evidence-scroll {
  from { transform: translateY(10px); }
  to { transform: translateY(-10px); }
}

@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,
  .delivery-visual {
    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); }
}

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