/* Shared site header contract. Every customer-facing page uses this layout. */
.site-header .site-theme-switcher[data-icon-replaced] { display:none!important; }
.site-header .site-header-actions .site-theme-cycle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--sf-line,var(--vs-line,var(--theme-line,#DFE3EB)));
  border-radius:10px;
  background:var(--sf-panel,var(--vs-surface,var(--theme-panel,#FFFFFF)));
  color:var(--sf-text,var(--vs-text,var(--theme-text,#191D27)));
  cursor:pointer;
  transition:border-color .16s,background .16s;
}
.site-header .site-theme-cycle svg { display:block; width:20px; height:20px; }
.site-header .site-header-actions .site-theme-cycle:hover { border-color:currentColor; }
.site-header .site-theme-cycle:focus-visible { outline:3px solid var(--sf-focus,#6689E0); outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .site-header .site-header-actions .site-theme-cycle { transition:none; } }
/* Paint the scrollbar gutter with the active page surface as well. The body
   reserves a stable 15px gutter on narrow viewports; without an explicit html
   background the legacy cream document surface leaked through as a vertical
   strip beside dark pages. */
html {
  scrollbar-gutter: stable;
  background-color: #f7f7f5;
}
html[data-theme="dark"] { background-color: #080808; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] { background-color: #080808; }
}

/* Independent document and payment routes use the same theme contract as the
   home, order and partner pages. Their templates still contain legacy cream
   colors, so keep those values scoped and override them here instead of
   maintaining a second page background implementation. */
.visual-sync-page .doc,
.visual-sync-page .success-main {
  color: var(--vs-text) !important;
}

.visual-sync-page .doc-eyebrow,
.visual-sync-page .doc-meta {
  color: var(--vs-muted) !important;
}

.visual-sync-page .doc-card {
  background: var(--vs-surface) !important;
  border-color: var(--vs-line) !important;
  color: var(--vs-text) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.08);
}

.visual-sync-page .doc-card h2 {
  color: var(--vs-text) !important;
  border-bottom-color: var(--vs-line) !important;
}

.visual-sync-page .doc-card h3,
.visual-sync-page .doc-card strong {
  color: var(--vs-text) !important;
}

.visual-sync-page .doc-card p,
.visual-sync-page .doc-card li,
.visual-sync-page .doc-tip {
  color: var(--vs-muted) !important;
}

.visual-sync-page .doc-tip {
  background: var(--vs-surface-2) !important;
  border-color: var(--vs-line) !important;
}

/* The success route contains several legacy cream sections and cards. Keep
   those surfaces on the same light/dark background scale while preserving
   its intentionally strong order-aside and service panels. */
.visual-sync-page .hero,
.visual-sync-page .offers,
.visual-sync-page .reviews,
.visual-sync-page .workflow,
.visual-sync-page .cta {
  background-color: var(--vs-bg) !important;
  background-image: none !important;
  border-color: var(--vs-line) !important;
}

.visual-sync-page .grid-bg {
  background-image: linear-gradient(rgba(var(--vs-pixel-rgb),.09) 1px,transparent 1px), linear-gradient(90deg,rgba(var(--vs-pixel-rgb),.09) 1px,transparent 1px) !important;
}

.visual-sync-page .feat-card,
.visual-sync-page .mini-btn,
.visual-sync-page .plan-card,
.visual-sync-page .review-card,
.visual-sync-page .step-card,
.visual-sync-page .svc-card,
.visual-sync-page details.faq-item,
.visual-sync-page .kefu-panel,
.visual-sync-page .bookmark-tip,
.visual-sync-page .pay-modal {
  background: var(--vs-surface) !important;
  border-color: var(--vs-line) !important;
  color: var(--vs-text) !important;
  box-shadow: none !important;
}

.visual-sync-page .feat-card h2,
.visual-sync-page .feat-card p,
.visual-sync-page .sec-head h2,
.visual-sync-page .sec-head p,
.visual-sync-page .hero h1,
.visual-sync-page .hero-sub,
.visual-sync-page .plan-name,
.visual-sync-page .plan-price,
.visual-sync-page .plan-sum,
.visual-sync-page .review-user,
.visual-sync-page .review-text,
.visual-sync-page .step-title,
.visual-sync-page .step-desc,
.visual-sync-page .svc-card h3,
.visual-sync-page .svc-card p,
.visual-sync-page .faq-left h2,
.visual-sync-page .faq-left p,
.visual-sync-page details.faq-item summary,
.visual-sync-page .faq-ans,
.visual-sync-page .cta-inner h2,
.visual-sync-page .kp-title,
.visual-sync-page .kp-copy .c-id,
.visual-sync-page .pay-modal h3,
.visual-sync-page .pay-modal p {
  color: var(--vs-text) !important;
}

.visual-sync-page .feat-card p,
.visual-sync-page .sec-head p,
.visual-sync-page .hero-sub,
.visual-sync-page .plan-sum,
.visual-sync-page .review-text,
.visual-sync-page .step-desc,
.visual-sync-page .svc-card p,
.visual-sync-page .faq-left p,
.visual-sync-page .faq-ans,
.visual-sync-page .kp-copy .c-label,
.visual-sync-page .kp-qr p,
.visual-sync-page .pay-modal p {
  color: var(--vs-muted) !important;
}

.visual-sync-page .plan-card:hover,
.visual-sync-page .plan-card.active,
.visual-sync-page .mini-btn.active {
  background: var(--vs-surface-2) !important;
  border-color: var(--vs-text) !important;
}

.visual-sync-page .plan-dot,
.visual-sync-page .step-icon,
.visual-sync-page .svc-icon,
.visual-sync-page .avatar,
.visual-sync-page .kp-close,
.visual-sync-page .kp-qr,
.visual-sync-page .kp-copy,
.visual-sync-page .pay-modal {
  background: var(--vs-surface-2) !important;
  border-color: var(--vs-line) !important;
  color: var(--vs-text) !important;
}

/* Shared page surface for the older document/dashboard templates. The home,
   order and registration views already expose these tokens through
   visual-sync.css; keeping the same contract here removes the old cream
   background that otherwise leaked into independent function pages. */
body:not(.visual-sync-page) {
  --theme-bg: #f7f7f5;
  --theme-surface: #ffffff;
  --theme-surface-2: #f0f0ee;
  --theme-control: #fbfbfa;
  --theme-text: #171717;
  --theme-muted: #707070;
  --theme-line: #d8d8d4;
  --theme-grid: rgba(17,17,17,.08);
  --theme-strong: #111111;
  --theme-strong-text: #f5f5f5;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--theme-bg) !important;
  /* Keep the legacy home/dashboard routes on the same quiet pixel surface as
     visual-sync pages. A square grid here used to reappear underneath the
     footer, creating a hard background seam after the hash sections. */
  background-image: radial-gradient(circle at center, var(--theme-grid) 0 1px, transparent 1.25px) !important;
  background-size: 20px 20px !important;
  color: var(--theme-text) !important;
}

/* The hash-routed home sections draw their own animated background. Do not
   let the generic document grid leak through the CTA/footer after a section
   ends, which creates a hard grid seam under #faq and #workflow. */
body[data-page-view] {
  background-image: none !important;
}

html[data-theme="dark"] body:not(.visual-sync-page) {
  --theme-bg: #080808;
  --theme-surface: #121212;
  --theme-surface-2: #1b1b1b;
  --theme-control: #0e0e0e;
  --theme-text: #f4f4f4;
  --theme-muted: #a0a0a0;
  --theme-line: #303030;
  --theme-grid: rgba(255,255,255,.10);
  --theme-strong: #f4f4f4;
  --theme-strong-text: #0b0b0b;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body:not(.visual-sync-page) {
    --theme-bg: #080808;
    --theme-surface: #121212;
    --theme-surface-2: #1b1b1b;
    --theme-control: #0e0e0e;
    --theme-text: #f4f4f4;
    --theme-muted: #a0a0a0;
    --theme-line: #303030;
    --theme-grid: rgba(255,255,255,.10);
    --theme-strong: #f4f4f4;
    --theme-strong-text: #0b0b0b;
  }
}

html[data-theme] body:not(.visual-sync-page) .site-header {
  background: rgba(247,247,245,.84) !important;
  border-bottom-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] body:not(.visual-sync-page) .site-header {
  background: rgba(10,10,10,.76) !important;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body:not(.visual-sync-page) .site-header { background: rgba(10,10,10,.76) !important; }
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] body:not(.visual-sync-page) .site-header { background: rgba(247,247,245,.84) !important; }
}

/* Document content remains a readable surface while following the same
   light/dark palette as the page around it. */
html[data-theme] body:not(.visual-sync-page) .doc-card,
html[data-theme] body:not(.visual-sync-page) .sc-card,
html[data-theme] body:not(.visual-sync-page) .sc-step,
html[data-theme] body:not(.visual-sync-page) .kefu-panel,
html[data-theme] body:not(.visual-sync-page) .bookmark-tip,
html[data-theme] body:not(.visual-sync-page) .pay-modal {
  background: var(--theme-surface) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
}

html[data-theme] body:not(.visual-sync-page) .doc h1,
html[data-theme] body:not(.visual-sync-page) .doc-card h2,
html[data-theme] body:not(.visual-sync-page) .doc-card h3,
html[data-theme] body:not(.visual-sync-page) .doc-card strong,
html[data-theme] body:not(.visual-sync-page) .sc-title,
html[data-theme] body:not(.visual-sync-page) .sc-delivery-title,
html[data-theme] body:not(.visual-sync-page) .sc-row b,
html[data-theme] body:not(.visual-sync-page) .sc-step-title,
html[data-theme] body:not(.visual-sync-page) .kp-title,
html[data-theme] body:not(.visual-sync-page) .bm-title {
  color: var(--theme-text) !important;
}

html[data-theme] body:not(.visual-sync-page) .doc-eyebrow,
html[data-theme] body:not(.visual-sync-page) .doc-meta,
html[data-theme] body:not(.visual-sync-page) .doc-card p,
html[data-theme] body:not(.visual-sync-page) .doc-card li,
html[data-theme] body:not(.visual-sync-page) .doc-tip,
html[data-theme] body:not(.visual-sync-page) .sc-sub,
html[data-theme] body:not(.visual-sync-page) .sc-hint,
html[data-theme] body:not(.visual-sync-page) .sc-step-sub,
html[data-theme] body:not(.visual-sync-page) .sc-card-safe,
html[data-theme] body:not(.visual-sync-page) .kp-copy .c-label,
html[data-theme] body:not(.visual-sync-page) .bm-text {
  color: var(--theme-muted) !important;
}

html[data-theme] body:not(.visual-sync-page) .doc-card h2 {
  border-bottom-color: var(--theme-line) !important;
}

html[data-theme] body:not(.visual-sync-page) .doc-tip,
html[data-theme] body:not(.visual-sync-page) .sc-delivery-guide,
html[data-theme] body:not(.visual-sync-page) .sc-code-box {
  background: var(--theme-surface-2) !important;
  border-color: var(--theme-line) !important;
}

/* The affiliate dashboard uses its own component names, but the page surface
   and controls should still read as one theme. */
html[data-theme] body:not(.visual-sync-page) .panel,
html[data-theme] body:not(.visual-sync-page) .metric {
  background: var(--theme-surface) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
  box-shadow: none !important;
}

html[data-theme] body:not(.visual-sync-page) .share input,
html[data-theme] body:not(.visual-sync-page) .withdraw input,
html[data-theme] body:not(.visual-sync-page) .withdraw-method,
html[data-theme] body:not(.visual-sync-page) .password-form input {
  background: var(--theme-control) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
}

html[data-theme] body:not(.visual-sync-page) .button,
html[data-theme] body:not(.visual-sync-page) .tier-pill {
  background: var(--theme-strong) !important;
  color: var(--theme-strong-text) !important;
}

/* The standalone document and payment-result pages now share the pixel-field
   shell too. Their legacy component rules still contain the former green /
   cream palette, so map only those content surfaces to the shared tokens. */
html[data-theme] .visual-sync-page .doc-card,
html[data-theme] .visual-sync-page .sc-card,
html[data-theme] .visual-sync-page .sc-step,
html[data-theme] .visual-sync-page .kefu-panel,
html[data-theme] .visual-sync-page .bookmark-tip,
html[data-theme] .visual-sync-page .pay-modal {
  background: var(--vs-surface) !important;
  border-color: var(--vs-line) !important;
  color: var(--vs-text) !important;
}

html[data-theme] .visual-sync-page .doc,
html[data-theme] .visual-sync-page .success-main { color: var(--vs-text) !important; }
html[data-theme] .visual-sync-page .doc h1,
html[data-theme] .visual-sync-page .doc-card h2,
html[data-theme] .visual-sync-page .doc-card h3,
html[data-theme] .visual-sync-page .doc-card strong,
html[data-theme] .visual-sync-page .sc-title,
html[data-theme] .visual-sync-page .sc-delivery-title,
html[data-theme] .visual-sync-page .sc-row b,
html[data-theme] .visual-sync-page .sc-step-title,
html[data-theme] .visual-sync-page .kp-title,
html[data-theme] .visual-sync-page .bm-title { color: var(--vs-text) !important; }

html[data-theme] .visual-sync-page .doc-eyebrow,
html[data-theme] .visual-sync-page .doc-meta,
html[data-theme] .visual-sync-page .doc-card p,
html[data-theme] .visual-sync-page .doc-card li,
html[data-theme] .visual-sync-page .doc-tip,
html[data-theme] .visual-sync-page .sc-sub,
html[data-theme] .visual-sync-page .sc-hint,
html[data-theme] .visual-sync-page .sc-step-sub,
html[data-theme] .visual-sync-page .sc-card-safe,
html[data-theme] .visual-sync-page .kp-copy .c-label,
html[data-theme] .visual-sync-page .bm-text { color: var(--vs-muted) !important; }

html[data-theme] .visual-sync-page .doc-card h2 { border-bottom-color: var(--vs-line) !important; }
html[data-theme] .visual-sync-page .doc-tip,
html[data-theme] .visual-sync-page .sc-delivery-guide,
html[data-theme] .visual-sync-page .sc-code-box {
  background: var(--vs-surface-2) !important;
  border-color: var(--vs-line) !important;
}
html[data-theme] .visual-sync-page .sc-icon { color: var(--vs-text) !important; stroke: var(--vs-text) !important; }

/* Success-page actions used to keep the legacy green buttons even after the
   shared shell moved to a monochrome theme. Keep primary, ghost and redeem
   actions on the same strong/text pairing as the other customer routes. */
.visual-sync-page .sc-btn {
  border-color: var(--vs-strong) !important;
  background: var(--vs-strong) !important;
  color: var(--vs-strong-text) !important;
}
.visual-sync-page .sc-btn-ghost {
  border: 1px solid var(--vs-line) !important;
  background: transparent !important;
  color: var(--vs-text) !important;
}
.visual-sync-page .sc-btn-redeem {
  border-color: var(--vs-strong) !important;
  background: var(--vs-strong) !important;
  color: var(--vs-strong-text) !important;
}

/* One Token Connect mark for every customer-facing header and footer. This
   replaces the legacy T/OpenAI glyphs embedded in individual templates. */
.logo-mark {
  position: relative;
  overflow: hidden;
  background: #111111 !important;
  color: transparent !important;
}
.logo-mark svg,
.logo-mark::before,
.logo-mark .site-logo-letter {
  display: none !important;
  content: none !important;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 15%;
  display: block;
  background: url('img/token-connect-mark.png') center / contain no-repeat;
}

/* Theme-specific page styles used to turn the mark white in dark mode. Keep
   the shared Token Connect mark contract stronger than those legacy rules. */
html[data-theme="dark"] .logo-mark,
html[data-theme="dark"] .logo-mark.inverted {
  background: #111111 !important;
  background-color: #111111 !important;
  color: transparent !important;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .logo-mark,
  html[data-theme="system"] .logo-mark.inverted {
    background: #111111 !important;
    background-color: #111111 !important;
    color: transparent !important;
  }
}

/* visual-sync.css has a more specific legacy footer rule that intentionally
   made `.logo-mark.inverted` white.  The footer is part of the shared brand
   surface too, so keep the same dark mark there when the effective theme is
   dark (including system-dark). */
html[data-theme="dark"] .visual-sync-page .footer .logo-mark.inverted,
html[data-theme="system"] .visual-sync-page .footer .logo-mark.inverted {
  background: #111111 !important;
  background-color: #111111 !important;
  color: transparent !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40;
  height: 60px !important;
  --site-header-text: #181818;
  --site-header-muted: #707070;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  line-height: 1.6 !important;
}

html[data-theme="dark"] .site-header { --site-header-text: #f4f4f4; --site-header-muted: #a0a0a0; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .site-header { --site-header-text: #f4f4f4; --site-header-muted: #a0a0a0; }
}

.site-header-inner {
  width: min(1320px, 100%);
  max-width: 1320px;
  height: 60px !important;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid !important;
  border: 0 !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  column-gap: 20px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
}

.site-header-brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 25.6px !important;
}

.site-header-brand .logo-mark {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #111111 !important;
  color: transparent !important;
  box-shadow: none !important;
}
.site-header-brand .logo-mark::after { inset: 14%; }
.site-brand-copy { min-width: 0; display: block; }
.site-brand-copy .logo-name,
.site-brand-copy .logo-sub { display: block; }
.site-brand-copy .logo-name {
  margin: 0;
  font-family: Georgia, ui-serif, serif;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1 !important;
}
.site-brand-copy .logo-sub {
  margin-top: 4px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1 !important;
  letter-spacing: .12em;
  white-space: nowrap;
}
.site-header-brand .logo-name { color: var(--theme-text, var(--vs-text, var(--site-header-text))) !important; }
.site-header-brand .logo-sub { color: var(--theme-muted, var(--vs-muted, var(--site-header-muted))) !important; }

.site-main-nav {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  font-family: inherit !important;
  line-height: 25.6px !important;
}

.site-main-nav .site-nav-link {
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--theme-muted, var(--vs-muted, var(--site-header-muted))) !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.site-main-nav .site-nav-link:hover,
.site-main-nav .site-nav-link[aria-current="page"] {
  color: var(--theme-text, var(--vs-text, var(--site-header-text))) !important;
  background: var(--theme-panel-2, var(--vs-surface-2, #1b1b1b)) !important;
}

.site-main-nav .site-nav-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  overflow: visible;
}

.site-main-nav .site-nav-order {
  border: 0;
  outline: 0;
}

.site-header-actions {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: inherit !important;
  line-height: 25.6px !important;
}

/* Order-center's contextual action is a real primary action. Keep it in the
   same visual language as the shared nav while letting the page theme decide
   whether the filled surface is dark (light mode) or light (dark mode). */
.site-header .site-header-actions .site-recharge-action {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--vs-strong, var(--theme-strong, var(--theme-text, var(--site-header-text)))) !important;
  border-radius: 10px;
  background: var(--vs-strong, var(--theme-strong, var(--theme-text, var(--site-header-text)))) !important;
  color: var(--vs-strong-text, var(--theme-strong-text, #fff)) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.site-header .site-header-actions .site-recharge-action:hover {
  opacity: 1 !important;
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.site-header .site-header-actions .site-recharge-action:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.site-recharge-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
}

/* Theme controls are created for the older document routes as well as the
   newer visual-sync templates. Keeping one class contract prevents a route
   from falling back to unstyled browser buttons when its header is rebuilt. */
.site-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--vs-line, var(--theme-line, rgba(127,127,127,.24)));
  border-radius: 10px;
  background: var(--vs-soft, var(--theme-surface-2, rgba(127,127,127,.10)));
}

.site-theme-switcher button {
  min-width: 27px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vs-muted, var(--theme-muted, #707070));
  font: 700 11px/1 inherit;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.site-theme-switcher button:hover { color: var(--vs-text, var(--theme-text, #171717)); transform: translateY(-1px); }
.site-theme-switcher button.active {
  background: var(--vs-strong, var(--theme-strong, var(--theme-text, #171717)));
  color: var(--vs-strong-text, var(--theme-strong-text, #f5f5f5));
}

/* The index had a second mobile drawer. The shared horizontal row is the
   single source of navigation on narrow screens as well. */
@media (max-width: 960px) {
  /* Keep the shared navigation visible while a route restores a hash
     position (for example index.html#offers). The scroll padding keeps
     auto-scrolled controls clear of the fixed header. */
  html { scroll-padding-top: 112px; }
  .site-header.site-header { position: sticky !important; top: 0 !important; height: auto !important; }
  body .site-header .site-header-inner {
    width: calc(100% - 20px);
    height: auto !important;
    min-height: 60px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .site-header-brand { grid-column: 1; }
  .site-header-actions { grid-column: 2; grid-row: 1; }
  .site-main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid var(--theme-line, var(--vs-line, rgba(255,255,255,.16)));
    scrollbar-width: none;
  }

  .site-main-nav::-webkit-scrollbar { display: none; }
  .site-main-nav .site-nav-link { flex: 0 0 auto; height: 34px; padding: 0 9px; font-size: 12px; }
  .site-main-nav .site-nav-link svg { width: 15px; height: 15px; flex-basis: 15px; }
  /* Playwright and native focus scrolling can bring a mobile card flush to
     the viewport top. Keep it clear of the sticky shared header so the
     header's nav cannot intercept the card's controls. */
  .mini-grid,
  .mini-btn { scroll-margin-top: 112px; }
  .site-header .btn-menu { display: none !important; }
  .site-header .mobile-nav { display: none !important; }
  .site-header .site-header-actions .site-recharge-action { min-height: 34px; padding: 0 11px; font-size: 12px; }
  .site-recharge-action-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .site-theme-switcher button { min-width: 22px; height: 26px; padding: 0 4px; font-size: 11px; }
}

@media (max-width: 420px) {
  body .site-header .site-header-inner { width: calc(100% - 12px); padding-left: 6px; padding-right: 6px; }
  .site-main-nav { gap: 2px; }
  .site-main-nav .site-nav-link { padding: 0 8px; }
}

/* Shared footer contract -------------------------------------------------
   Keep the footer on the same visual plane as each page instead of ending
   the content with a heavy dark block.  These rules sit after the legacy
   per-page footer styles so every customer-facing route gets the same type
   scale, rhythm and theme-aware surfaces. */
.footer {
  --footer-cta-text: #f5f5f5;
  display: block !important;
  position: relative;
  margin-top: clamp(44px, 7vw, 76px);
  /* Keep the page surface and its background texture continuous behind the
     footer instead of painting a separate bar. */
  border-top: 1px solid transparent !important;
  background: transparent !important;
  color: var(--theme-text, var(--vs-text, var(--theme-body-text, inherit))) !important;
  box-shadow: none !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.footer-inner {
  max-width: 1320px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 32px 16px 24px !important;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px !important;
}

.footer .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto !important;
}

.footer .logo-mark {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.footer .logo > div { min-width: 0; }

/* Some older function pages do not reset paragraph margins globally. Keep
   the injected/shared footer deterministic on those routes as well. */
.footer p { margin: 0 !important; }

@media (min-width: 640px) {
  .footer-inner { padding: 36px 24px 26px !important; }
}

.footer-partner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin-bottom: 26px !important;
  /* The partner invitation is part of the footer content rail, not a
     separate card. Keeping the CTA itself as the only filled control lets
     the footer continue directly into the page surface on every route. */
  padding: 18px 0 !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.footer-partner > div { min-width: 0; }

.footer-partner small {
  display: block !important;
  margin-bottom: 4px !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.footer-partner h2 {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  color: var(--theme-text, var(--vs-text, inherit)) !important;
}

.footer-partner p {
  margin-top: 5px !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.footer-partner a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 9px 14px !important;
  border-radius: 9px !important;
  background: var(--theme-text, var(--vs-text, #171717)) !important;
  color: var(--footer-cta-text) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.footer-partner a:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.footer-partner a:active { transform: translateY(0); filter: brightness(.96); }
.footer-partner a:focus-visible { outline: 3px solid var(--theme-accent, #c9f24d); outline-offset: 3px; }

.footer-top {
  gap: 24px !important;
}

.footer .logo-name {
  color: var(--theme-text, var(--vs-text, inherit)) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.footer .logo-sub {
  display: block !important;
  margin-top: 3px !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

.footer-legal {
  max-width: 520px !important;
  margin-top: 14px !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px !important;
}

/* Footer links must form a vertical list inside each column. The legacy
   templates reset anchors to inline flow, which collapses every link into a
   single run (and makes the four columns appear to overlap). */
.footer-cols > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-cols h3 {
  margin: 0 !important;
  color: var(--theme-text, var(--vs-text, inherit)) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.footer-cols a {
  display: block !important;
  width: fit-content;
  margin-top: 6px !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  border-radius: 5px;
  transition: background-color .18s ease, color .18s ease;
}

.footer-cols a:hover {
  /* Keep the label tone stable across routes; the surface change carries the
     hover signal and matches the legacy visual-sync footer contract. */
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  /* Keep footer links visibly interactive on the hash-routed home views as
     well as on the legacy visual-sync pages. The latter already had this
     surface in visual-sync.css, while the home footer only changed text
     color, which made hover feedback effectively disappear. */
  background: var(--theme-surface-2, var(--theme-panel-2, var(--vs-surface-2, rgba(127, 127, 127, .12)))) !important;
}

.footer-cols a:focus-visible {
  outline: 2px solid var(--theme-text, var(--vs-text, #171717)) !important;
  outline-offset: 3px !important;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--theme-line, var(--vs-line, rgba(127,127,127,.16))) !important;
  border-top-color: var(--theme-line, var(--vs-line, rgba(127,127,127,.16))) !important;
  color: var(--theme-muted, var(--vs-muted, #777)) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

/* The home page previously hid this shared footer for its hash views. Keep
   the footer present so offers, workflow and FAQ have the same ending as
   standalone function pages. */
body[data-page-view="offers"] .footer,
body[data-page-view="workflow"] .footer,
body[data-page-view="faq"] .footer {
  display: block !important;
  margin-top: 0 !important;
}

/* visual-sync.css has theme selectors with higher specificity than the
   generic footer contract above. Re-assert the same surface at that level so
   order and registration pages do not fall back to a separate dark block. */
html[data-theme] .visual-sync-page .footer {
  background: transparent !important;
  color: var(--vs-text, inherit) !important;
  border-top-color: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .footer {
  --footer-cta-text: #111111;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .footer {
    --footer-cta-text: #111111;
  }
}

html[data-theme] .visual-sync-page .footer .logo-name,
html[data-theme] .visual-sync-page .footer-cols h3 {
  color: var(--vs-text, inherit) !important;
}

/* Keep the footer brand lockup identical on legacy visual-sync pages and the
   home page. Their older styles used a brighter subtitle and hid it on some
   mobile breakpoints, which made otherwise shared footers visibly diverge. */
html[data-theme] .visual-sync-page .footer .logo-sub {
  display: block !important;
  color: var(--vs-muted, #777) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}

html[data-theme] .visual-sync-page .footer-legal,
html[data-theme] .visual-sync-page .footer-cols a,
html[data-theme] .visual-sync-page .footer-bottom {
  color: var(--vs-muted, #777) !important;
}

html[data-theme] .visual-sync-page .footer-bottom {
  border-top-color: var(--vs-line, rgba(127,127,127,.16)) !important;
}

@media (max-width: 639px) {
  /* Keep the mobile footer compact while preserving a readable rhythm. */
  .footer-inner { padding: 22px 12px 16px !important; }
  .footer-partner { align-items: flex-start !important; flex-direction: column !important; margin-bottom: 18px !important; padding: 14px 0 !important; }
  .footer-partner h2 { font-size: 15px !important; }
  .footer-partner p { margin-top: 4px !important; font-size: 11px !important; line-height: 1.5 !important; }
  .footer-partner a { width: 100%; text-align: center; padding: 8px 12px !important; }
  .footer-top { gap: 18px !important; }
  .footer-legal { margin-top: 10px !important; font-size: 11px !important; line-height: 1.55 !important; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px !important; }
  .footer-cols h3 { font-size: 12px !important; }
  .footer-cols a { margin-top: 4px !important; font-size: 11px !important; line-height: 1.45 !important; }
  .footer-bottom { gap: 5px !important; margin-top: 16px !important; padding-top: 10px !important; font-size: 10px !important; line-height: 1.45 !important; }
}

@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 1.1fr 1.4fr; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Final cross-route visual lock. A few legacy selectors use `.header-inner`,
   `.brand` and `.top` with higher specificity than the shared contract. Keep
   the rendered header surface, typography and spacing identical after those
   templates have been normalized by site-header.js. */
.site-header .site-header-inner {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  line-height: 25.6px !important;
}

@media (min-width: 961px) {
  .site-header .site-header-inner {
    width: min(1320px, 100%) !important;
    max-width: 1320px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

.site-header .site-header-brand,
.site-header .site-header-brand.brand {
  gap: 8px !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 25.6px !important;
}

.site-header .site-brand-copy,
.site-header .site-main-nav,
.site-header .site-header-actions {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.site-header .site-brand-copy .logo-sub {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.site-header .site-theme-switcher {
  border-radius: 10px !important;
  background: var(--vs-soft, var(--theme-surface-2, rgba(127,127,127,.10))) !important;
}

.site-header .site-theme-switcher button {
  border-radius: 7px !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.site-header .site-theme-switcher button.active {
  background: var(--vs-strong, var(--theme-strong, var(--theme-text, #171717))) !important;
  color: var(--vs-strong-text, var(--theme-strong-text, #f5f5f5)) !important;
}

html[data-theme="dark"] .site-header .site-theme-switcher,
html[data-theme="system"] .site-header .site-theme-switcher {
  background: #1b1b1b !important;
}

html[data-theme="light"] .site-header .site-theme-switcher {
  background: #f0f0ee !important;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .site-header .site-theme-switcher { background: #1b1b1b !important; }
}
@media (prefers-color-scheme: light) {
  html[data-theme="system"] .site-header .site-theme-switcher { background: #f0f0ee !important; }
}

/* The floating support control is shared chrome too. Use the same strong
   text/surface pairing as the recharge action instead of the old green/cream
   variant that only survived on the order template. */
.kefu-btn {
  background: var(--theme-text, var(--vs-text, #171717)) !important;
  color: var(--theme-strong-text, var(--vs-strong-text, #f5f5f5)) !important;
  border-color: var(--theme-line, var(--vs-line, rgba(127,127,127,.24))) !important;
  /* Canonical support control: legacy index/order used a green halo and
     success.html used a 64px circle, so the same control changed shape and
     visual weight when navigating between otherwise shared pages. */
  width: 102px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  flex-direction: row !important;
  justify-content: center !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.kefu-btn .kefu-icon { fill: currentColor !important; }
.kefu-btn .kefu-txt { color: currentColor !important; }
.kefu-btn .kefu-icon,
.kefu-btn > svg { width: 20px !important; height: 20px !important; flex: 0 0 20px; }
.kefu-btn .kefu-txt,
.kefu-btn .kefu-text {
  color: currentColor !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
}
.kefu-btn .kefu-halo { display: none !important; }
.kefu-btn.footer-kefu-off { display: none !important; }

/* The affiliate shells do not carry the older inline widget stylesheet.
   Keep the support control itself fixed to the viewport on every route. */
.kefu-btn {
  position: fixed !important;
  z-index: 80 !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  border: 1px solid var(--theme-line, rgba(127,127,127,.24)) !important;
  font: inherit !important;
}
.kefu-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  background: transparent;
  cursor: default;
}
.kefu-panel.hidden,
.kefu-mask.hidden { display: none !important; }
.kefu-panel {
  position: fixed !important;
  z-index: 70 !important;
  right: 12px;
  bottom: 84px;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  border: 1px solid var(--theme-line, #d8d8d4);
  border-radius: 10px;
  background: var(--theme-surface, #fff) !important;
  color: var(--theme-text, #171717);
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.kp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.kp-eyebrow { margin:0; font-size:12px; font-weight:800; letter-spacing:.22em; color:var(--theme-muted,#707070); }
.kp-title { margin:4px 0 0; font-size:20px; font-weight:600; color:var(--theme-text,#171717); }
.kp-close { width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:1px solid var(--theme-line,#d8d8d4); border-radius:8px; background:var(--theme-surface-2,#f0f0ee); color:var(--theme-muted,#707070); cursor:pointer; }
.kp-qr { margin-top:16px; padding:12px; border:1px solid var(--theme-line,#d8d8d4); border-radius:8px; background:var(--theme-surface-2,#f0f0ee); }
.kp-qr .qr-box { width:176px; height:176px; margin:0 auto; overflow:hidden; display:flex; align-items:center; justify-content:center; border-radius:8px; background:#fff; }
.kp-qr p { margin:12px 0 0; text-align:center; font-size:12px; line-height:1.4; color:var(--theme-muted,#707070); }
.kp-copy { width:100%; margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--theme-line,#d8d8d4); border-radius:8px; background:var(--theme-surface-2,#f0f0ee); color:var(--theme-text,#171717); text-align:left; cursor:pointer; }
.kp-copy .c-label { display:block; font-size:12px; font-weight:600; color:var(--theme-muted,#707070); }
.kp-copy .c-id { display:block; font-family:ui-monospace,Consolas,monospace; font-size:14px; font-weight:700; color:var(--theme-text,#171717); }

@media (min-width: 640px) and (max-width: 1439px) {
  .kefu-panel { left: 16px; right: auto; bottom: 84px; }
}
@media (min-width: 1400px) {
  .kefu-panel { top: 50%; right: 112px; bottom: auto; transform: translateY(-50%); }
}
@media (max-width: 639px) {
  .kefu-panel { right: 12px; bottom: 68px; }
}

@media (min-width: 640px) and (max-width: 1439px) {
  .kefu-btn {
    left: 16px !important;
    right: auto !important;
    top: auto !important;
    bottom: 20px !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    transform: none !important;
    justify-content: center !important;
  }
  .kefu-btn:hover { transform: none !important; }
  .kefu-btn .kefu-txt,
  .kefu-btn .kefu-text { display: none !important; }
}

@media (min-width: 1400px) {
  .kefu-btn {
    left: auto !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    width: 102px !important;
    height: 48px !important;
    min-height: 48px !important;
    transform: translateY(-50%) !important;
  }
  .kefu-btn:hover { transform: translateY(calc(-50% - 2px)) !important; }
}

@media (max-width: 639px) {
  .kefu-btn {
    left: auto !important;
    right: 12px !important;
    top: auto !important;
    bottom: 16px !important;
    width: 102px !important;
    height: 44px !important;
    min-height: 44px !important;
    transform: none !important;
  }
  .kefu-btn:hover { transform: translateY(-2px) !important; }
  .success-page .kefu-btn { bottom: 32px !important; }
}

/* Keep the footer on the same continuous page surface on every route. The
   older templates added a route-specific top margin, which created a visible
   empty band before the otherwise shared footer. */
.footer { margin-top: 0 !important; }

/* Hash-routed home views use the same full-document pixel field as the
   standalone order and registration pages. Keep the canvas behind every
   section so its dots continue through the CTA and footer without a visible
   color seam when a section ends. */
body[data-page-view] .pixel-field-global,
body.visual-sync-page .pixel-field-global {
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:auto!important;
  bottom:auto!important;
  z-index:0!important;
  display:block;
  width:100vw!important;
  min-height:100%!important;
  pointer-events:none;
  /* The canvas paints dark particles in the light theme, so multiply is the
     visible interaction mode there.  Screen would render black over a white
     surface as pure white and make the pointer halo disappear. */
  opacity:.62;
  mix-blend-mode:multiply;
}
html[data-theme="dark"] body[data-page-view] .pixel-field-global,
html[data-theme="dark"] body.visual-sync-page .pixel-field-global {
  opacity:.86;
  mix-blend-mode:screen;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body[data-page-view] .pixel-field-global,
  html[data-theme="system"] body.visual-sync-page .pixel-field-global {
    opacity:.86;
    mix-blend-mode:screen;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-view] .pixel-field-global,
  body.visual-sync-page .pixel-field-global { opacity:.38!important; }
}
body[data-page-view] > header,
body[data-page-view] > main,
body[data-page-view] > section,
body[data-page-view] > footer,
body[data-page-view] > .site-notice,
body[data-page-view] > .svc-section,
body[data-page-view] > .cta {
  position:relative;
  z-index:1;
}
/* The local per-section canvases predate the shared document canvas. Keep
   them out of the paint stack so stars are not doubled at section edges. */
body[data-page-view] > section > .pixel-field { display:none!important; }

/* Let the shared canvas show through the active hash section as well. The
   legacy section rules use an opaque #080808 background, which hid the
   document-wide dots until the footer and produced the exact horizontal seam
   seen when scrolling to the bottom of 首页/帮助/教程. */
body[data-page-view="offers"] .offers,
body[data-page-view="workflow"] .workflow,
body[data-page-view="faq"] .faq-section {
  background-color:transparent!important;
}

html[data-theme] body:not(.visual-sync-page) .site-header,
html[data-theme] .visual-sync-page .site-header {
  background: var(--vs-bg, var(--theme-bg, #080808)) !important;
  border-bottom: 1px solid var(--vs-line, var(--theme-line, rgba(127,127,127,.24))) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Keep the shared sticky header above catalogue cards while scrolling. The
   document-wide canvas/section layer is intentionally z-index:1; assigning
   the header its own higher layer prevents product cards from painting over
   the nav when a light-theme page is scrolled. */
body[data-page-view] > header.site-header,
body.visual-sync-page > header.site-header,
.site-header {
  z-index:50 !important;
}

/* The standalone templates still declare Inter/normal in their inline
   styles. Keep body copy on the same system stack and rhythm as the home so
   labels, cards and footer links do not jump when navigating between routes. */
body.visual-sync-page {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  line-height: 1.6 !important;
}

@media (min-width: 961px) {
  /* Align the home product grid with the shared footer content rail. */
  body[data-page-view="offers"] .offers > .container {
    max-width: 1320px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 960px) {
  .site-main-nav { gap: 1px !important; }
  .site-main-nav .site-nav-link { padding-left: 5px !important; padding-right: 5px !important; }

  /* The mobile product view used the desktop centering rule for the left
     column, leaving a large unexplained gap between filters and cards. Let
     the catalogue flow from the filter row while keeping the section's
     background and footer rhythm intact. */
  body[data-page-view="offers"] .offers .offers-left { justify-content: flex-start !important; }
  body[data-page-view="offers"] .offers .offers-layout { flex: 0 0 auto !important; }
}

@media (max-width: 639px) {
  /* The mobile workflow view inherited both section and container top padding,
     leaving an empty band above its heading. Keep one 64px content inset. */
  body[data-page-view="workflow"] .workflow { padding-top: 0 !important; }

  /* On small screens the catalogue content is taller than a viewport by
     itself. Remove the desktop viewport filler so the shared footer follows
     the cards instead of leaving a second empty screen. */
  body[data-page-view="offers"] .offers,
  body[data-page-view="offers"] .offers .container {
    min-height: auto !important;
  }
}

@media (max-width: 360px) {
  .site-main-nav { gap: 0 !important; }
  .site-main-nav .site-nav-link { padding-left: 4px !important; padding-right: 4px !important; }
}

@media (max-width: 330px) {
  /* Five compact nav items still need to fit on 320px devices without
     clipping the order entry. Keep the labels legible while reducing only
     the icon/text rhythm at this extreme width. */
  .site-main-nav .site-nav-link {
    gap: 3px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    font-size: 11px !important;
  }
  .site-main-nav .site-nav-link svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Keep the fixed support control on the same rail on every route. The
   canonical responsive rule above already provides enough clearance from
   page content, so the old offers-only right:0 override is intentionally gone. */

