:root {
  color-scheme: light;
  --bg: #fff; --surface: #f7f7f8; --card: #fff; --border: #e5e7eb; --border-hover: #d1d5db;
  --text: #111827; --muted: #6b7280; --accent: #111827; --accent-fg: #fff;
  --btn-primary: #111827; --btn-primary-fg: #fff; --success: #06734e; --warning: #92400e;
  --shadow: 0 8px 24px rgba(17, 24, 39, .06);
  --gutter: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Inter", "Microsoft YaHei", sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 40px; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.32; letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.yw-container { width: min(1160px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.yw-muted, .yw-note { color: var(--muted); font-size: 13px; }
.yw-section { margin-block: 52px; }
.yw-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.yw-link { font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.yw-btn-sm, .yw-submit-btn, .yw-tab-btn, .yw-mobile-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-weight: 650; font-size: 13px; text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.yw-btn-sm:hover, .yw-tab-btn:hover { border-color: var(--border-hover); }
.yw-btn-sm.is-primary, .yw-submit-btn { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: transparent; }
.yw-submit-btn { width: 100%; min-height: 48px; }
.yw-brand-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.yw-brand-icon img { width: 26px; height: 26px; object-fit: contain; }
.yw-brand-icon.is-large { width: 56px; height: 56px; }
.yw-brand-icon.is-large img { width: 30px; height: 30px; }
.yw-brand-icon.is-product { width: 64px; height: 64px; }
.yw-brand-icon.is-product img { width: 36px; height: 36px; }
.yw-group-topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
#yw-group-topbar { position: sticky; top: 0; z-index: 20; min-height: 64px; }
.yw-topbar-inner { width: min(1160px, calc(100% - 2 * var(--gutter))); margin: auto; height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yw-brand-anchor { display: flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; font-weight: 650; }
.yw-brand-logo-wrap { width: 34px; height: 34px; background: #111827; color: #fff; border-radius: 9px; display: grid; place-items: center; font-weight: 740; letter-spacing: -.03em; font-size: 14px; }
.yw-mall-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(10px, 1.35vw, 20px); }
.yw-mall-pill { display: grid; place-items: center; position: relative; text-decoration: none; white-space: nowrap; color: var(--muted); font-size: 13px; }
.yw-mall-pill:hover, .yw-mall-pill.is-active { color: var(--text); }
.yw-mall-pill.is-active::after { position: absolute; content: ""; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
.yw-topbar-actions, .yw-actions { display: flex; align-items: center; gap: 8px; }
.yw-mobile-menu-btn { display: none; width: 40px; padding: 0; }
.yw-mobile-drawer { display: none; position: fixed; inset: 0; z-index: 75; }
.yw-mobile-drawer.is-open { display: block; }
.yw-mobile-drawer-backdrop, .yw-modal-backdrop { background: rgba(15, 23, 42, .58); }
.yw-mobile-drawer-backdrop { position: absolute; inset: 0; }
.yw-mobile-drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(320px, 90%); overflow: auto; background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.yw-drawer-links { display: grid; }
.yw-drawer-link { text-decoration: none; padding: 10px 6px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.yw-drawer-link.is-active { font-weight: 700; }
.yw-home-hero { padding: 36px 0 28px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.yw-home-hero p { margin: 9px 0 18px; color: var(--muted); }
.yw-home-hero .yw-actions { justify-content: center; flex-wrap: wrap; }
.yw-trust { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 15px 0 0; gap: 8px 24px; color: var(--muted); font-size: 13px; }
.yw-trust li::before { content: "✓"; color: var(--success); margin-right: 6px; }
.yw-category-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px 16px; }
.yw-category-header p { margin-top: 4px; color: var(--muted); }
.yw-heading-with-icon { display: flex; gap: 14px; align-items: center; }
.yw-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.yw-card, .yw-purchase-panel, .yw-product-panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.yw-card { display: flex; flex-direction: column; padding: 20px; gap: 12px; min-width: 0; text-decoration: none; transition: box-shadow 160ms ease, border-color 160ms ease; }
.yw-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.yw-card-top, .yw-card-price, .yw-delivery-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.yw-card p, .yw-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.yw-card p { min-height: 2.6em; font-size: 13px; color: var(--muted); }
.yw-card-price { margin-top: auto; min-height: 37px; }
.yw-price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.yw-price-now, .yw-from-price { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.15; }
.yw-price-now { font-size: 26px; }
.yw-from-price { font-size: 15px; }
.yw-price-del, .yw-compare-basis, .yw-pay-label { font-size: 12px; color: var(--muted); }
.yw-card .yw-actions { display: grid; grid-template-columns: 7fr 3fr; }
.yw-badge { background: var(--surface); color: var(--text); font-size: 12px; padding: 3px 7px; border-radius: 6px; }
.yw-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.yw-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.yw-filter .yw-tab-btn { background: transparent; border-color: transparent; }
.yw-filter .yw-tab-btn.is-active, .yw-tabs .yw-tab-btn.is-active { border-color: var(--border); background: var(--surface); }
.yw-search, .yw-field input, .yw-field select, .yw-field textarea { border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; min-height: 40px; background: var(--bg); color: var(--text); }
.yw-search { width: min(290px, 100%); }
.yw-steps { padding: 0; margin: 10px 0 0; list-style: none; counter-reset: steps; }
.yw-steps li { position: relative; counter-increment: steps; border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 12px 43px; margin: 0 0 8px; overflow-wrap: anywhere; }
.yw-steps li::before { position: absolute; content: counter(steps); left: 12px; top: 12px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 650; }
.yw-horizontal-steps .yw-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.yw-faq details, .yw-product-copy details { border-bottom: 1px solid var(--border); padding-block: 13px; }
.yw-faq details p { padding-top: 9px; color: var(--muted); }
summary { cursor: pointer; font-weight: 650; }
.yw-footer { border-top: 1px solid var(--border); padding-block: 22px; color: var(--muted); font-size: 13px; }
.yw-footer .yw-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.yw-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.yw-product-layout { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); grid-template-areas: "intro purchase" "copy purchase"; gap: 18px 38px; margin-block: 30px 54px; align-items: start; }
.yw-product-intro { grid-area: intro; min-width: 0; }
.yw-product-intro h1 { overflow-wrap: anywhere; }
.yw-product-copy { grid-area: copy; min-width: 0; }
.yw-product-copy section:first-child { margin-top: 0; }
.yw-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.yw-product-copy section { margin-top: 24px; }
.yw-product-copy h1 { overflow-wrap: anywhere; }
.yw-product-intro .yw-lead { margin-top: 10px; color: var(--muted); }
.yw-entitlements { padding: 0; list-style: none; margin: 10px 0 0; }
.yw-entitlements li { margin-bottom: 7px; display: flex; gap: 8px; }
.yw-entitlements li::before { content: "✓"; font-weight: 700; color: var(--success); }
.yw-purchase-panel { grid-area: purchase; position: sticky; top: 88px; padding: 22px; display: flex; flex-direction: column; gap: 13px; }
.yw-purchase-panel .yw-price-now { font-size: 34px; }
.yw-mobile-buy { display: none; }
.yw-product-panel { padding: 18px; }
.yw-skeleton { display: block; border-radius: 7px; background: var(--border); animation: yw-pulse 1.35s ease-in-out infinite; }
.yw-skeleton-card { min-height: 232px; }
.yw-skeleton-tile { width: 48px; height: 48px; }
.yw-skeleton-line { height: 12px; width: 77%; }
.yw-skeleton-line.is-short { width: 38%; }
.yw-skeleton-price { display: inline-block; width: 56px; height: 13px; vertical-align: middle; }
@keyframes yw-pulse { 50% { opacity: .55; } }
.yw-loaded { opacity: 1; visibility: visible; }
/* Catalog and product containers never fade: immediate, stable text contrast. */
.yw-modal-open { overflow: hidden; }
.yw-modal-backdrop { display: none; position: fixed; inset: 0; z-index: 85; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.yw-modal-backdrop.is-open { display: flex; }
.yw-modal-card { width: min(100%, 570px); max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding: 20px; border-radius: 16px; background: var(--card); color: var(--text); }
.yw-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.yw-close-btn { width: 44px; height: 44px; flex: none; border: 0; background: var(--surface); color: var(--text); border-radius: 8px; font-size: 21px; }
.yw-field { display: grid; gap: 5px; margin: 0 0 12px; font-size: 13px; }
.yw-field label { font-weight: 600; }
.yw-field input, .yw-field select, .yw-field textarea { width: 100%; }
.yw-tabs, .yw-pay-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.yw-payment-field { border: 0; padding: 0; min-width: 0; }
.yw-payment-field legend { font-weight: 600; margin-bottom: 5px; }
.yw-pay-opt { display: flex; align-items: center; gap: 8px; flex: 1 1 120px; min-width: 0; min-height: 60px; padding: 9px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); cursor: pointer; }
.yw-pay-opt.is-selected { border-color: var(--accent); background: var(--surface); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.yw-pay-opt input[type="radio"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--text); }
.yw-pay-opt:focus-within { outline: none; }
.yw-pay-opt:has(input:focus-visible) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.yw-pay-opt input:focus-visible { outline: none; }
.yw-pay-opt small { display: block; color: var(--muted); }
.yw-toast { position: fixed; bottom: 24px; left: 50%; z-index: 110; transform: translateX(-50%); background: #111827; color: white; border-radius: 10px; padding: 9px 15px; opacity: 0; pointer-events: none; max-width: calc(100% - 20px); transition: opacity 150ms ease; }
.yw-toast.is-visible, .yw-toast.is-show { opacity: 1; }
.yw-modal-footer { color: var(--muted); font-size: 13px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 15px; }
.yw-order-record, .yw-delivery-card { border: 1px solid var(--border); padding: 16px; margin: 10px 0; border-radius: 12px; background: var(--card); }
.yw-order-record code, .yw-delivery-meta { overflow-wrap: anywhere; }
.yw-delivery-status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.yw-delivery-check { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--success); color: #fff; flex: none; }
.yw-delivery-meta { color: var(--muted); font-size: 13px; margin: 3px 0 0 35px; }
.yw-delivery-row { display: grid; grid-template-columns: minmax(64px,auto) minmax(0,1fr) auto; align-items: center; gap: 8px; padding-block: 9px; border-bottom: 1px solid var(--border); }
.yw-delivery-row span { font-size: 13px; color: var(--muted); }
.yw-delivery-row code { font-size: 15px; font-weight: 650; color: var(--text); user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }
.yw-delivery-row.is-code code { font-size: 17px; }
.yw-delivery-links { display: flex; gap: 7px; flex-wrap: wrap; padding-block: 10px; }
.yw-delivery-card .yw-submit-btn { margin-top: 10px; }
.yw-delivery-actions { margin-top: 12px; }
.yw-recovery { margin-top: 10px; font-size: 12px; color: var(--muted); }
.yw-recovery button { border: 0; background: transparent; padding: 2px 4px; text-decoration: underline; color: inherit; }
.yw-recovery form { margin-top: 9px; }
.yw-cashier-content { padding: 13px 0; overflow-wrap: anywhere; }
html.site-grok .yw-modal-card [style*="color:#"], html.site-grok .yw-modal-card [style*="color: #"] { color: var(--text) !important; }
html.site-grok .yw-modal-card [style*="background:#"], html.site-grok .yw-modal-card [style*="background: #"] { background: var(--surface) !important; }
@media (max-width: 1000px) { .yw-mall-nav, .yw-desktop-only { display: none; } .yw-mobile-menu-btn { display: inline-flex; } }
@media (max-width: 840px) { .yw-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  h1 { font-size: 28px; } h2 { font-size: 20px; }
  .yw-category-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .yw-grid, .yw-horizontal-steps .yw-steps { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .yw-section { margin-block: 34px; }
  .yw-product-layout { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .yw-field input, .yw-field select, .yw-field textarea { font-size: 16px; min-height: 44px; }
  .yw-mobile-menu-btn { width: 44px; }
  .yw-modal-backdrop { align-items: flex-start; }
  .yw-purchase-panel { position: static; width: 100%; order: 1; padding: 14px; }
  .yw-product-copy { order: 2; }
  .yw-purchase-panel > .yw-desktop-buy { display: none; }
  .yw-mobile-buy { position: fixed; z-index: 21; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; height: calc(68px + env(safe-area-inset-bottom)); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: #fff; color: #111827; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .yw-mobile-buy .yw-price-now { color: #111827; }
  .yw-mobile-buy .yw-submit-btn { background: #111827; color: #fff; flex: 1; }
  .yw-delivery-row { grid-template-columns: minmax(0,1fr) auto; } .yw-delivery-row span { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
.yw-card h3 a { text-decoration: none; }
.yw-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
html.site-grok .yw-brand-icon { background: #f7f7f8; }
html.site-grok .yw-delivery-check { color: #0b0d10; }

@media (min-width: 841px) {
  .yw-brand-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .yw-brand-grid > .yw-card { grid-column: span 2; }
  .yw-brand-grid > .yw-card:nth-child(4) { grid-column: 2 / span 2; }
  .yw-brand-grid > .yw-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 620px) { .yw-brand-text { display: none; } }


/* YWGPT_BUYER_STABLE_CATALOG_20261125_V11 */
/* Keep pre-rendered reference cards crisp and normal-height at 0ms First Paint
   (never stretch cards into 1550px blank white pillars while catalog hydrates). */
[data-yw-catalog][aria-busy="true"] { min-height: 280px; }
[data-yw-featured][aria-busy="true"] { min-height: 240px; }
.yw-reference-grid { align-items: start !important; }
.yw-reference-card { min-height: 280px !important; height: auto !important; }
.yw-v7-check-ico { width: 15px !important; height: 15px !important; min-width: 15px !important; max-width: 15px !important; flex: none; display: inline-block; vertical-align: middle; }
.yw-card-bullets { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 7px; }
.yw-card-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: #5A606D; }


/* Native same-page Alipay QR: short primary action, screenshot-friendly on iOS. */
.yw-native-alipay {
  border:1px solid var(--border,#d9dfe5)!important;
  border-radius:16px;
  background:var(--modal-surface,#fff);
  margin:12px 0;
  padding:16px;
  text-align:center;
}
.yw-native-alipay h3{font-size:18px;line-height:1.4;margin:0 0 8px}
.yw-native-alipay-hint,.yw-native-alipay-guide {
  margin:6px auto 10px;max-width:350px;
  font-size:13px;line-height:1.55;color:var(--muted,#64748b);
}
.yw-native-alipay-qr {
  display:flex;align-items:center;justify-content:center;
  margin:10px auto 8px;min-height:240px;
}
.yw-native-alipay-qr img {
  box-sizing:border-box;
  width:240px;height:240px;max-width:100%;
  object-fit:contain;padding:8px;background:#fff;
  border:1px solid #e6ebf0;border-radius:12px;
}
.yw-native-alipay .yw-native-alipay-open{
  display:flex;align-items:center;justify-content:center;
  min-height:48px;font-weight:700;
  text-decoration:none;
}
.yw-native-alipay-status{font-size:12px;line-height:1.4;margin:8px 0;color:var(--muted,#64748b)}
.yw-native-alipay .yw-native-alipay-fallback {
  display:inline-block;margin:6px auto 0;padding:8px;
  font-size:12px;line-height:1.4;min-height:auto;
  color:var(--muted,#64748b);text-decoration:underline;
}
@media(max-width:600px){
 .yw-native-alipay{padding:12px;margin:8px 0}
 .yw-native-alipay-qr{min-height:220px;margin:7px auto}
 .yw-native-alipay-qr img{width:220px;height:220px}
}

.yw-native-alipay .yw-native-alipay-open{
  box-sizing:border-box;width:100%;padding:12px 16px;
  border:0;border-radius:12px;background:#111827!important;
  color:#fff!important;font-size:15px;letter-spacing:.01em;
  box-shadow:none;text-decoration:none!important;
}
.yw-native-alipay .yw-native-alipay-open:focus-visible{
  outline:3px solid #6ca6f5;outline-offset:2px;
}
.yw-native-alipay .yw-native-alipay-open[aria-disabled="true"]{
  opacity:.55;cursor:not-allowed;pointer-events:none;
}

.yw-unified-cashier .yw-native-alipay-qr[hidden] { display: none; }
.yw-unified-cashier .yw-native-alipay-qr { min-height: 0; }
.yw-unified-cashier .yw-native-alipay-qr img { max-width: 100%; height: auto; }
.yw-cashier-amount strong { font-size: clamp(1.5rem, 5vw, 2rem); }
#yw-cashier-summary code { overflow-wrap: anywhere; }

/* Conversion & support polish: tier badges, restock card, and WeCom support dialog. */
.yw-tier-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.4;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.yw-tier-badge.is-popular { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.yw-tier-badge.is-recommended { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.yw-tier-badge.is-power { background: #111827; color: #ffffff; border-color: #111827; }
html.site-grok .yw-tier-badge.is-power { background: #f8fafc; color: #0b0d10; border-color: #f8fafc; }

.yw-restock-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.yw-restock-card h2 { font-size: 18px; margin-bottom: 4px; }
.yw-restock-card .yw-actions { flex-wrap: wrap; }

.yw-footer-support-btn {
  border: 0; background: transparent; padding: 0; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.yw-footer-support-btn:hover { color: var(--text); }

.yw-support-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: #111827; color: #ffffff; font-size: 13px; font-weight: 650;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.yw-support-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15, 23, 42, .28); }
html.site-grok .yw-support-fab { background: #ffffff; color: #0b0d10; border-color: #e5e7eb; }
@media (max-width: 620px) {
  .yw-support-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 0 14px; }
}

.yw-support-dialog {
  width: min(380px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.yw-support-dialog::backdrop { background: rgba(15, 23, 42, .56); }
.yw-support-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.yw-support-qr-box {
  display: grid; place-items: center; margin: 14px auto 10px; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px; background: #ffffff;
}
.yw-support-qr-box img { width: 200px; height: 200px; object-fit: contain; }
.yw-support-tip { text-align: center; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.yw-support-alt { display: flex; justify-content: center; }
.yw-support-alt .yw-btn-sm { width: 100%; }

/* High-craft minimal elevation & interaction polish */
.yw-sku-card {
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, border-color 180ms ease;
}
.yw-sku-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong, #cbd5e1) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07) !important;
}
.yw-btn-sm.is-primary, .yw-submit-btn {
  transition: transform 140ms ease, opacity 140ms ease, background-color 140ms ease;
}
.yw-btn-sm.is-primary:hover:not(:disabled), .yw-submit-btn:hover:not(:disabled) {
  opacity: .92;
  transform: translateY(-1px);
}
.yw-faq details {
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-surface, #fff);
  transition: border-color 150ms ease;
}
.yw-faq details[open] {
  border-color: var(--border-strong, #cbd5e1);
}
.yw-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.yw-faq summary::-webkit-details-marker { display: none; }
.yw-faq summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--text-tertiary, #64748b);
  flex: none;
}
.yw-faq details[open] summary::after { content: "−"; }

/* High-value perk highlight pill & rotating top announcement bar */
.yw-perk-pill {
  margin: 0;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  background: var(--accent-soft, #ecfdf5);
  color: var(--accent, #047857);
  border: 1px solid color-mix(in srgb, var(--accent, #059669) 22%, transparent);
}
html[data-site="grok"] .yw-perk-pill {
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .18);
}
.yw-plan-benefits {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary, #475569);
}
.yw-plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.yw-plan-benefits li::before {
  content: "✓";
  color: var(--accent, #059669);
  font-weight: 700;
  flex: none;
}
@media (max-width: 700px) {
  .yw-perk-pill { padding: 4px 8px; font-size: 11px; }
  .yw-plan-benefits { gap: 2px; font-size: 11.5px; }
  .yw-plan-benefits li:nth-child(n+3) { display: none; }
}

.yw-bar-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent, #059669);
}
.yw-bar-text.is-switching {
  animation: yw-bar-fade 280ms ease;
}
.yw-bar-next {
  flex: none; border: 0; background: transparent; padding: 2px 6px;
  font-size: 11px; font-weight: 600; color: inherit; opacity: .78; cursor: pointer;
}
.yw-bar-next:hover { opacity: 1; }
@keyframes yw-bar-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 620px) {
  .yw-bar-next { display: none; }
}

/* Six-site storefront, activation and support. */
.yw-plan-links, .yw-restock-card, .yw-support-alt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.yw-plan-links, .yw-restock-card {
  padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff;
}
.yw-restock-card > div:first-child { flex: 1 1 280px; }
.yw-restock-card h2 { margin: 0 0 6px; }
.yw-plan-links > a { min-height: 44px; display: inline-flex; align-items: center; }
.yw-plan-benefits { font-size: 13px; line-height: 1.55; color: var(--muted); padding-inline-start: 18px; }
.yw-reference-card { gap: 8px; align-items: start; }
.yw-reference-card h3, .yw-reference-card p { margin: 0; }
.yw-reference-price { color: var(--muted); font-weight: 500; }
.yw-reference-price small { font-size: .82rem; }
.yw-quote-status { padding: 10px 14px; background: #eff6ff; color: #334155; border-radius: 10px; }
.yw-redeem-page { padding-block: 30px 90px; }
.yw-voucher-entry { display: grid; gap: 6px; }
.yw-voucher-entry input {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #94a3b8; border-radius: 8px; font: inherit;
}
.yw-delivery-redeem { display: inline-flex; justify-content: center; align-items: center; margin: 4px 0; }
.yw-footer-support {
  display: flex; align-items: center; text-align: left; gap: 12px; padding: 8px 12px;
  border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a;
  font: inherit; cursor: pointer;
}
.yw-footer-support img { flex: none; object-fit: contain; }
.yw-footer-support small { display: block; color: #475569; }
html:has(.yw-support-dialog[open]), body:has(.yw-support-dialog[open]) { overflow: hidden; }
.yw-support-dialog {
  position: fixed; max-height: calc(100dvh - 32px); overflow: auto;
  overscroll-behavior: contain; background: #fff; color: #0f172a; border-color: #e2e8f0;
}
.yw-support-dialog .yw-note { color: #475569; }
.yw-support-dialog .yw-close-btn { min-width: 44px; min-height: 44px; background: #f8fafc; color: #0f172a; }
.yw-support-qr-box { width: max-content; max-width: 100%; padding: 8px; }
.yw-support-qr-box img { width: 160px; height: 160px; }
.yw-support-alt a { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; color: #0f172a; text-align: center; }
.yw-support-dialog [hidden] { display: none; }

html body .yw-service-bar { padding-inline: 12px 0 !important; }
html body .yw-service-bar .yw-bar-close { position: static; transform: none; flex: 0 0 44px; }
html body .yw-service-bar a { text-decoration: underline; text-underline-offset: 2px; }
html[data-site] body[data-v5-site] .v6-reviews .v6-review-grid,
html body[data-v5-site] .v6-reviews .v6-review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; overflow: visible;
}
html body[data-v5-site] .v6-reviews .v6-review-grid article {
  min-width: 0; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px;
}
.v6-review-grid article[hidden] { display: none !important; }
.v6-review-grid h3 { font-size: 15px; margin: 0 0 6px; }
html body[data-v5-site] .v6-reviews .v6-review-grid p {
  margin: 0; color: #475569; white-space: normal; overflow: visible; display: block;
}
.yw-mobile-drawer-panel .yw-btn-sm { min-height: 44px; }
@media (max-width: 1000px) {
  #yw-group-topbar .yw-nav-redeem { display: none !important; }
  html body #yw-group-topbar .yw-brand-text { display: inline !important; }
  html body #yw-group-topbar #yw-nav-auth-btn { display: inline-flex !important; }
  #yw-group-topbar .yw-topbar-actions { gap: 6px; }
  #yw-group-topbar .yw-topbar-actions button { padding-inline: 8px; }
  #yw-group-topbar #yw-mobile-menu-open { width: 44px; }
}
@media (min-width: 1001px) {
  #yw-group-topbar .yw-mobile-menu-btn { display: none !important; }
}
@media (max-width: 620px) {
  .yw-support-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }
  html:has(.yw-support-fab) { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body:has(.yw-support-fab) .yw-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .yw-support-dialog {
    inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; box-sizing: border-box;
    max-height: calc(100dvh - 12px); padding: 16px 20px calc(12px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .yw-support-alt a { width: 100%; }
  .yw-topbar-actions #yw-nav-orders-btn, .yw-topbar-actions .yw-mobile-menu-btn,
  .yw-actions .yw-btn-sm, .yw-reference-card .yw-btn-sm, .yw-btn-sm.yw-nav-redeem { min-height: 44px; }
}
@media (min-width: 1001px) {
  html body #yw-group-topbar #yw-nav-auth-btn { display: inline-flex !important; }
}
@media (max-width: 700px) {
  html body .yw-home-hero .yw-actions .yw-btn-sm,
  html body .yw-category-header .yw-btn-sm,
  html body .yw-sku-card .yw-actions .yw-btn-sm,
  html body .yw-reference-card .yw-btn-sm { min-height: 44px !important; }
}

/* Shared light surfaces for the six homes, with each site's existing accent. */
html:has(body[data-v5-site]) {
  color-scheme: light;
  --bg-canvas: #f8fafc;
  --bg-surface: #fff;
  --bg-muted: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-subtle: #e2e8f0;
}
html.site-grok:has(body[data-v5-site]) {
  --bg: #f8fafc;
  --surface: #f1f5f9;
  --card: #fff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #1e293b;
  --accent-fg: #fff;
  --btn-primary: #1e293b;
  --btn-primary-fg: #fff;
}
html.site-grok body[data-v5-site] .yw-service-bar {
  background: #f1f5f9 !important; color: #334155 !important; border-color: #e2e8f0;
}
html.site-grok body[data-v5-site] .yw-sku-card,
html.site-grok body[data-v5-site] .yw-sku-card .yw-card-price,
html.site-grok body[data-v5-site] .yw-sku-card .yw-price-now { --text: #0f172a; color: #0f172a !important; }
html.site-grok body[data-v5-site] .yw-sku-card .yw-card-description { color: #475569; }
html.site-grok body[data-v5-site] .yw-qualified-zone:not(.yw-modal-card) {
  background: #fff !important; color: #0f172a !important; border-color: #e2e8f0;
}
html body[data-v5-site] .yw-sku-card.is-recommended { border-color: #93c5fd !important; }
html.site-grok body[data-v5-site],
html.site-grok body[data-v5-site] #yw-group-topbar .yw-brand-text,
html.site-grok body[data-v5-site] #yw-group-topbar .yw-mall-pill:not(.is-active) { color: #0f172a !important; }
html.site-grok body[data-v5-site] .yw-sku-card .yw-brand-icon { background: #f1f5f9; border-color: #e2e8f0; }
html body[data-v5-site="gpt"] .yw-gpt-hero .yw-trust,
html body[data-v5-site="main"] .yw-home-hero .yw-trust {
  display: flex !important; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; list-style: none;
}
html body[data-v5-site="gpt"] .yw-gpt-hero .yw-trust li,
html body[data-v5-site="main"] .yw-home-hero .yw-trust li {
  padding: 3px 8px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569;
}


/* Mobile carousel operability: preserve supplied copy without clipping controls */
@media (max-width: 620px) {
  html body .yw-service-bar {
    min-height: 48px !important;
    height: auto !important;
    align-items: center !important;
  }
  html body .yw-service-bar .yw-bar-text {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.75em;
    line-height: 1.35;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }
  html body .yw-service-bar .yw-bar-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    min-height: 40px;
    width: 36px;
    padding: 0 2px;
    font-size: 0;
  }
  html body .yw-service-bar .yw-bar-next::after {
    content: "›";
    font-size: 24px;
    line-height: 1;
  }
}
