/* ========== 全局基础结构与排版 Token ========== */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.18);

  --status-ok-bg: #ECFDF5;    --status-ok-fg: #047857;
  --status-warn-bg: #FFFBEB;  --status-warn-fg: #B45309; --status-warn-bd: #FDE68A;
  --status-err-bg: #FEF2F2;   --status-err-fg: #B91C1C;  --status-err-bd: #FECACA;
  --status-promo-bg: #DC2626; --status-promo-fg: #FFFFFF;
}

/* 1. gptyw.pro — 暖瓷白买手总馆（克制黑金高定） */
[data-site="main"] {
  --bg-canvas: #FAF9F6; --bg-surface: #FFFFFF; --bg-muted: #F3F1EC;
  --text-primary: #111315; --text-secondary: #525866; --text-tertiary: #868C98;
  --border-subtle: #E6E3DC; --border-strong: #D1CCC2;
  --accent: #111315; --accent-hover: #272A30; --accent-fg: #FFFFFF; --accent-soft: #F0EDE6;
  --topbar-bg: #F1EFEA; --topbar-fg: #3F3F46;
}

/* 2. gpt.gptyw.pro — 翡翠绿精密算力馆（金融级清爽白） */
[data-site="gpt"] {
  --bg-canvas: #F8FAFC; --bg-surface: #FFFFFF; --bg-muted: #F1F5F9;
  --text-primary: #0F172A; --text-secondary: #475569; --text-tertiary: #64748B;
  --border-subtle: #E2E8F0; --border-strong: #CBD5E1;
  --accent: #059669; --accent-hover: #047857; --accent-fg: #FFFFFF; --accent-soft: #ECFDF5;
  --topbar-bg: #ECFDF5; --topbar-fg: #065F46;
}

/* 3. gemini.gptyw.pro — 钴蓝影像工作室（纯白冷调，废除大紫块） */
[data-site="gemini"] {
  --bg-canvas: #F8FAFF; --bg-surface: #FFFFFF; --bg-muted: #EFF4FF;
  --text-primary: #0F172A; --text-secondary: #475569; --text-tertiary: #64748B;
  --border-subtle: #DFE7F6; --border-strong: #C7D7F5;
  --accent: #2563EB; --accent-hover: #1D4ED8; --accent-fg: #FFFFFF; --accent-soft: #EFF6FF;
  --topbar-bg: #EFF6FF; --topbar-fg: #1E40AF;
}

/* 4. claude.gptyw.pro — 暖羊皮纸编辑部书房（陶土棕+衬线标题） */
[data-site="claude"] {
  --bg-canvas: #F6F1E9; --bg-surface: #FCF9F4; --bg-muted: #EFE7DB;
  --text-primary: #1F1A16; --text-secondary: #5C5248; --text-tertiary: #8A7E72;
  --border-subtle: #E5DACB; --border-strong: #D2C2AE;
  --accent: #C25E3A; --accent-hover: #A64B2B; --accent-fg: #FFFFFF; --accent-soft: #F8EAE4;
  --topbar-bg: #ECE3D5; --topbar-fg: #4A3F35;
}

/* 5. grok.gptyw.pro — 纯曜石工业暗黑（100%深色零白块） */
[data-site="grok"] {
  --bg-canvas: #090A0D; --bg-surface: #12141A; --bg-muted: #1A1D26;
  --text-primary: #F8FAFC; --text-secondary: #A1A8B8; --text-tertiary: #6E7687;
  --border-subtle: #242834; --border-strong: #343A4A;
  --accent: #FFFFFF; --accent-hover: #E2E8F0; --accent-fg: #090A0D; --accent-soft: #1E222E;
  --topbar-bg: #12141A; --topbar-fg: #CBD5E1;
  --status-ok-bg: rgba(16, 185, 129, 0.14);   --status-ok-fg: #34D399;
  --status-warn-bg: rgba(245, 158, 11, 0.14); --status-warn-fg: #FBBF24; --status-warn-bd: rgba(245, 158, 11, 0.35);
}

/* 6. ai.gptyw.pro — 高密度数字效率市集（极简冷灰） */
[data-site="ai"] {
  --bg-canvas: #F7F8FA; --bg-surface: #FFFFFF; --bg-muted: #EEF0F4;
  --text-primary: #111827; --text-secondary: #4B5563; --text-tertiary: #6B7280;
  --border-subtle: #E5E7EB; --border-strong: #D1D5DB;
  --accent: #111827; --accent-hover: #374151; --accent-fg: #FFFFFF; --accent-soft: #F3F4F6;
  --topbar-bg: #EEF0F4; --topbar-fg: #374151;
}

*{box-sizing:border-box}html{scroll-padding-top:64px}body{margin:0;font-family:var(--font-sans);background:var(--bg-canvas)!important;color:var(--text-primary)!important;-webkit-font-smoothing:antialiased}a{color:inherit}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.yw-container{width:min(1160px,100%);padding:0 20px;margin:auto}.yw-group-topbar{background:var(--bg-surface)!important;border-bottom:1px solid var(--border-subtle)}.yw-topbar-inner{min-height:52px!important;padding:6px 20px!important;gap:12px}.yw-brand-text{font-size:16px!important}.yw-topbar-actions{flex-shrink:0;gap:8px}.yw-home-hero,.yw-category-header,.yw-world-hero{padding:24px 0!important;margin:0!important;background:none!important;min-height:0!important;display:block!important}.yw-home-hero:before,.yw-home-hero:after,.yw-world-hero:before,.yw-world-hero:after{display:none!important}.yw-pavilion-layout{display:block!important;min-height:0!important}.yw-hero-copy{padding:0!important;max-width:900px!important}.yw-home-hero h1,.yw-category-header h1{font-size:36px!important;line-height:1.2!important;letter-spacing:-.03em;text-align:left!important;margin:8px 0!important;max-width:none!important;color:var(--text-primary)!important}.yw-lead,.yw-hero-description{font-size:15px!important;line-height:1.6!important;color:var(--text-secondary)!important;margin:8px 0!important}.yw-eyebrow{font-size:11px;color:var(--text-secondary);margin:0}.v5-carousel,.v5-trust,.yw-compare-jump,.yw-trust-hook,.yw-plan-jumps{display:none!important}.yw-trust{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:6px 16px!important;margin:10px 0 0!important;padding:0;list-style:none;font-size:12px;color:var(--text-secondary)}@media(max-width:700px){.yw-trust{display:none!important}}
.yw-section{padding:24px 0!important;margin:0!important}.yw-section-head{margin-bottom:12px!important}.yw-section-head h2,.yw-catalog-section h2{font-size:18px!important;margin:0 0 10px!important}.yw-section-head p{margin:4px 0!important}.yw-grid,.yw-ready-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}.yw-catalog-section{margin:0 0 24px!important}.yw-catalog-section>.yw-section-head{display:block!important}.yw-sku-card{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0;min-height:250px!important;padding:16px!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-card)!important;background:var(--bg-surface)!important;color:var(--text-primary)!important}.yw-sku-card.is-plus{border-top:2px solid var(--accent)!important}.yw-card-heading{display:flex;gap:12px;align-items:flex-start}.yw-card-heading>div{min-width:0;flex:1}.yw-brand-icon{width:44px!important;height:44px!important;flex:0 0 44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:9px!important;border-radius:11px;background:var(--bg-muted)!important;border:1px solid var(--border-subtle);overflow:hidden;position:static!important;transform:none!important}.yw-brand-icon img,.yw-brand-icon svg{display:block!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain;object-position:center;margin:0!important;position:static!important;transform:none!important}.yw-sku-card h3{font-size:16px!important;line-height:1.4!important;margin:0!important;word-break:normal;overflow-wrap:anywhere;text-wrap:balance}.yw-sku-card h3 a{text-decoration:none}.yw-card-description{font-size:12px!important;line-height:1.5!important;margin:5px 0 0!important;color:var(--text-secondary)!important;display:block!important;min-height:0!important}.yw-card-chips{display:flex;gap:6px;flex-wrap:wrap}.yw-card-chips span{font-size:11px;line-height:20px;padding:0 7px;background:var(--accent-soft);border-radius:5px;color:var(--text-secondary)}.yw-card-purchase{margin-top:auto!important;padding:0!important;display:block!important}.yw-card-price{margin:0!important;display:flex!important;align-items:center;min-height:34px}.yw-price-now{font-size:28px!important;line-height:1.2;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.yw-stock-line{font-size:12px;color:var(--text-secondary);margin:4px 0!important}.yw-price-time{font-size:10px;color:var(--text-secondary)}.yw-sku-card .yw-actions{display:flex!important;gap:8px!important;margin:10px 0 0!important}.yw-sku-card .yw-actions>button{flex:1}.yw-sku-card .yw-actions>a{flex:0 0 64px}.yw-btn-sm,.yw-submit-btn{border-radius:8px!important;box-shadow:none!important;text-decoration:none!important}.yw-sku-card .yw-btn-sm{min-height:44px!important;display:inline-flex;justify-content:center;align-items:center}.yw-btn-sm.is-primary,.yw-submit-btn{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:var(--accent)!important}.yw-btn-sm:not(.is-primary){background:var(--bg-surface)!important;color:var(--text-primary)!important;border:1px solid var(--border-subtle)!important}button:disabled{opacity:.55;cursor:not-allowed}.yw-qualification-warning,.yw-supplier-risk{background:var(--status-warn-bg)!important;color:var(--status-warn-fg)!important;border:1px solid var(--status-warn-bd)!important;border-radius:8px;padding:8px;font-size:12px}.yw-fulfillment-facets{display:grid!important;grid-template-columns:1fr 1fr;gap:8px 12px;margin:16px 0!important;padding:16px;background:var(--bg-muted);border-radius:12px}.yw-fulfillment-facets dt{font-weight:600;font-size:12px}.yw-fulfillment-facets dd{margin:0!important;font-size:13px;line-height:1.7}.yw-supplier-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.8}.yw-supplier-detail section{padding:16px 0;border-bottom:1px solid var(--border-subtle)}.yw-supplier-detail h2{font-size:18px}.yw-product-layout{display:grid;grid-template-columns:minmax(0,64fr) minmax(0,36fr);gap:24px}.yw-product-intro{grid-column:1/-1}.yw-purchase-panel{align-self:start;position:sticky;top:72px;background:var(--bg-surface)!important;border-color:var(--border-subtle)!important}.yw-unavailable{margin:24px 0}.yw-unavailable summary{padding:12px;cursor:pointer}.yw-catalog-status{padding:16px;border:1px solid var(--status-warn-bd);background:var(--status-warn-bg);color:var(--status-warn-fg);display:flex;gap:12px;align-items:center}
[data-site=claude] h1,[data-site=claude] h2{font-family:var(--font-serif)}[data-site=grok] .yw-modal-card,[data-site=grok] .yw-mobile-drawer-panel,[data-site=grok] .v6-rescue,[data-site=grok] .v6-progress,[data-site=grok] .v6-reviews,[data-site=grok] .v6-lightbox,[data-site=grok] .v6-review-grid article,[data-site=grok] .yw-card,[data-site=grok] .yw-article-card{background:var(--bg-surface)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}[data-site=grok] input,[data-site=grok] textarea,[data-site=grok] select{background:var(--bg-muted)!important;color:var(--text-primary)!important}[data-site=grok] .yw-note,[data-site=grok] .v6-reviews p{color:var(--text-secondary)!important}
.yw-filter-row,.yw-filter-tabs,.yw-category-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:none}.yw-filter-row>*{flex-shrink:0}.yw-pdp-title,h1,h3{overflow-wrap:anywhere}img{max-width:100%}
@media(max-width:700px){.yw-container{padding:0 16px}.yw-topbar-inner{height:52px;min-height:52px!important;padding:6px 16px!important}.yw-home-hero,.yw-category-header,.yw-world-hero{padding:16px 0!important}.yw-home-hero h1,.yw-category-header h1{font-size:25px!important;line-height:1.25!important}.yw-lead,.yw-hero-description{font-size:12px!important;margin:6px 0!important}.yw-home-hero .yw-actions{margin:8px 0 0!important;gap:8px}.yw-home-hero .yw-btn-sm,.yw-category-header>.yw-btn-sm{font-size:12px!important;min-height:30px!important;padding:6px 10px!important}.yw-section{padding:12px 0!important}.yw-grid,.yw-ready-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.yw-sku-card{min-height:235px!important;max-height:none;padding:14px!important;gap:8px!important}.yw-section-head{margin-bottom:8px!important}.yw-catalog-section h2{font-size:15px!important}.yw-catalog-section .yw-brand-mark{display:none}.yw-product-layout{display:block}.yw-product-copy{min-width:0}.yw-purchase-panel{position:static}.yw-mobile-buy{background:var(--bg-surface)!important}.yw-catalog-toolbar{margin:8px 0!important;padding:0!important}.yw-mall-nav{display:none!important}.yw-desktop-only{display:none!important}}

.yw-service-bar{min-height:32px!important;padding:4px 12px!important;display:flex!important;gap:8px!important;align-items:center;background:var(--topbar-bg)!important;color:var(--topbar-fg)!important;border-color:var(--border-subtle)!important}.yw-service-bar p{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;font-size:12px}.yw-service-bar a{flex:0 0 auto;font-size:12px}.yw-service-bar .yw-bar-close{position:static!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;margin:0!important;line-height:1!important;font-size:16px!important;color:inherit!important;background:transparent!important;border:0!important;cursor:pointer!important;align-self:center!important}.yw-bar-pause{display:none!important}.yw-featured-gallery{overflow:visible!important;scroll-snap-type:none!important}.yw-fulfillment-facets>div{padding:10px;border:1px solid var(--border-subtle);border-radius:8px}.yw-modal-card,.yw-mobile-drawer-panel{background:var(--bg-surface);color:var(--text-primary)}

#yw-nav-auth-btn{display:none!important}#yw-nav-orders-btn{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:var(--accent)!important}.yw-promo-banner{display:none!important}@media(min-width:701px){.yw-grid:has(>.yw-sku-card:only-child){grid-template-columns:minmax(0,1fr)!important;max-width:720px}.yw-grid:has(>.yw-sku-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.yw-filter{display:flex;gap:8px;overflow-x:auto;flex-wrap:nowrap!important;max-width:100%;scrollbar-width:none}.yw-filter button{flex:0 0 auto}.yw-market-layout{display:flex!important;flex-direction:column!important;gap:16px!important}.yw-market-layout>aside{order:-1!important;width:100%!important}.yw-market-controls{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 14px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:14px}.yw-market-controls>[data-yw-search-clear]{position:absolute;top:16px;right:14px;width:32px;padding:4px!important;min-height:28px!important}.yw-market-controls .yw-search{padding-right:48px}.yw-market-strip{padding:8px!important;margin:8px 0!important}.yw-stock-switch{font-size:12px}@media(max-width:700px){.yw-market-layout{display:block!important}.yw-market-controls{display:block!important;margin:0!important;padding:0!important}.yw-market-controls .yw-filter{height:44px;margin:4px 0!important}.yw-market-controls .yw-filter img{width:16px;height:16px}.yw-market-controls .yw-filter button{display:inline-flex!important;gap:4px;align-items:center}.yw-market-strip{display:none!important}}

/* Gate 2: AI refinements stay available, with one disclosure before the first card. */
[data-site=ai] .yw-market-refinements>summary{display:none}
[data-site=ai] .yw-market-refinements:not([open])>*:not(summary){display:block}
[data-site=ai] .yw-market-refinements:not([open])>.yw-filter,
[data-site=ai] .yw-market-refinements:not([open])>.yw-scenario-filter{display:flex}
@media(max-width:700px){
 [data-site=ai] .yw-category-header{padding:8px 0!important}
 [data-site=ai] .yw-category-header h1{margin:4px 0!important}
 [data-site=ai] .yw-category-header .yw-lead{margin:4px 0!important}
 [data-site=ai] .yw-category-header .yw-btn-sm{display:none!important}
 [data-site=ai] .yw-market-controls>label{display:flex;align-items:center;gap:8px;font-size:14px}
 [data-site=ai] .yw-market-controls>label>.yw-note{flex:0 0 auto;font-size:14px}
 [data-site=ai] .yw-market-controls .yw-search{min-height:44px;padding:8px 48px 8px 10px;border-radius:8px}
 [data-site=ai] .yw-market-controls>[data-yw-search-clear]{top:6px!important}
 [data-site=ai] .yw-market-refinements{margin:4px 0 8px}
 [data-site=ai] .yw-market-refinements>summary{display:list-item;min-height:44px;padding:12px 0;font-size:14px;cursor:pointer}
 [data-site=ai] .yw-market-refinements:not([open])>*:not(summary){display:none!important}
 [data-site=ai] .yw-market-refinements[open] .yw-stock-switch{display:flex;align-items:center;gap:8px}
 [data-site=ai] .yw-market-refinements input[type=checkbox]{width:20px;min-height:20px;height:20px;padding:0}
 [data-site=ai] .yw-market-refinements .yw-filter{flex-direction:row!important}
 [data-site=ai] .yw-market-refinements .yw-scenario-filter{margin-top:4px}
}
/* Gemini V2 partial audit: dark Codex band must not leak legacy white text into light cards. */
[data-site=gpt] .yw-codex-zone .yw-sku-card{--text:#0F172A;--muted:#475569;--card:#FFFFFF;--surface:#FFFFFF;color:var(--text-primary)!important}
[data-site=gpt] .yw-codex-zone .yw-sku-card .yw-price-now{color:var(--text-primary)!important}
[data-site=gpt] .yw-codex-zone .yw-sku-card .yw-stock-line{color:var(--text-secondary)!important}

/* Gate 3 final Gemini V2: target the rendered price leaf and real grid classes. */
html[data-site=grok] .yw-sku-card{--text:#F8FAFC}
html[data-site=grok] .yw-sku-card .yw-price-now,
html[data-site=grok] .yw-sku-card .yw-card-price{color:#F8FAFC!important}
html[data-site=grok] .yw-mobile-menu-btn{color:#F8FAFC!important;background:#20232B!important;align-items:center;justify-content:center;min-height:44px}
html[data-site=grok] .yw-mobile-menu-btn svg{stroke:#F8FAFC!important}
html[data-site=grok] .yw-brand-icon img[src$="/apple.svg"]{filter:brightness(0) invert(1)}
html[data-site=grok] .yw-topbar-actions{align-items:center}
html[data-site=grok] .yw-bar-close{display:inline-flex;align-items:center;justify-content:center;line-height:1;margin:0!important;align-self:center}
html[data-site=gpt] .yw-codex-zone .yw-sku-card{background:#FFFFFF!important;--text-primary:#0F172A;--text-secondary:#475569;--text:#0F172A;--muted:#475569;color:#0F172A!important}
html[data-site=gpt] .yw-codex-zone .yw-sku-card .yw-price-now{color:#0F172A!important}
html[data-site=gpt] .yw-codex-zone .yw-sku-card .yw-stock-line{color:#475569!important}
html .yw-sku-card .yw-stock-low{color:#92400E!important;font-weight:600}
html[data-site=grok] .yw-sku-card .yw-stock-low{color:#FBBF24!important}
html .yw-card-risk-banner{margin:0;padding:6px 8px;border:1px solid #FDE68A;border-radius:8px;background:#FFFBEB;color:#92400E;font-size:12px;line-height:1.5}
html body .yw-category-header .yw-eyebrow,html body .yw-home-hero .yw-eyebrow{display:block!important;font-size:11px!important;line-height:16px!important;letter-spacing:0!important;margin:0!important;white-space:nowrap}
html .v6-expand-reviews{display:block;margin:16px auto;padding:10px 18px;min-height:44px;border:1px solid var(--border-subtle);border-radius:999px;background:var(--bg-muted);color:var(--text-primary);cursor:pointer}
html .v6-expand-reviews[hidden]{display:none!important}
html .v6-filters{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:6px}
html .v6-filters:after{content:'滑动查看更多 →';flex:0 0 auto;align-self:center;font-size:11px;color:var(--text-secondary)}
html .yw-filter{scrollbar-width:thin;padding-bottom:4px}
html[data-site=ai] input[type=search]::-webkit-search-cancel-button,html[data-site=ai] input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
html[data-site=ai] .yw-market-controls>[data-yw-search-clear]{top:20px!important;height:32px;width:32px;min-height:32px!important;display:flex;align-items:center;justify-content:center}
@media(min-width:1024px){
 html[data-site=main] .yw-grid.yw-brand-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:none}
 html[data-site=main] .yw-brand-grid>.yw-card:nth-child(n){grid-column:auto!important}
 html[data-site=main] .yw-grid.yw-featured-gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html[data-site=gpt] #qualified>.yw-grid{margin-inline:auto;width:100%;max-width:720px}
 html[data-site=claude] #claude>.yw-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none}
 html[data-site=grok] .yw-catalog-section>.yw-grid{grid-template-columns:repeat(auto-fit,minmax(280px,420px))!important;max-width:none;margin-inline:0}
 html[data-site=grok] .yw-catalog-section>.yw-section-head{max-width:none;margin-inline:0}
}
@media(max-width:700px){
 html[data-site]:not([data-site=ai]) .yw-home-hero,html[data-site]:not([data-site=ai]) .yw-category-header{padding:8px 0!important}
 html[data-site=ai] .yw-market-controls>[data-yw-search-clear]{top:6px!important}
}
@media(max-width:375px){
 html[data-site=gemini] .yw-category-header{padding:4px 0!important}
 html[data-site=gemini] .yw-category-header h1{font-size:23px!important;margin:4px 0!important}
 html[data-site=gemini] .yw-category-header .yw-lead{margin:4px 0!important}
 html[data-site=gemini] .yw-tier-choice{margin:4px 0 6px!important;display:flex;flex-wrap:nowrap!important;overflow-x:auto;gap:6px}
 html[data-site=gemini] .yw-tier-choice a{flex:0 0 auto}
}
html[data-site=gpt] .yw-codex-zone .yw-sku-card .yw-stock-low{color:#92400E!important}
html[data-site=grok] #yw-mobile-drawer-close{display:inline-flex;align-items:center;justify-content:center;color:#F8FAFC!important;min-height:44px;line-height:1;margin:0}

/* Pending live verification must remain readable on narrow product cards. */
.yw-sku-card .yw-actions>button.is-verifying{white-space:normal!important;height:auto!important;min-width:0;line-height:1.5;padding-top:8px;padding-bottom:8px}

/* Gate6: bounded reading surfaces, inherited Gate3 tokens. */
.yw-card-heading>div,.yw-product-intro,.yw-product-copy,.yw-tool-result{min-width:0;overflow-wrap:anywhere}
.yw-supplier-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.yw-blog-container table,.yw-tool table{display:block;max-width:100%;overflow-x:auto}
.yw-blog-container h1,.yw-tool h1{overflow-wrap:anywhere}
.yw-blog-container .btn,.yw-blog-container .btn-primary{background:var(--accent-primary,var(--text-primary));color:var(--bg-surface);border-color:var(--border-subtle)}

.yw-blog-container .yw-prose table{touch-action:pan-x pan-y}
.yw-blog-container .yw-prose table::after{content:"表格可左右滑动查看";display:block;font-size:12px;color:var(--text-secondary)}

/* Gate6.3: apply existing site tokens to the documentation shell. */
.yw-blog-container .btn-primary{background:var(--accent)!important;color:var(--accent-fg)!important;border-color:var(--accent)!important}
.yw-blog-container .btn-secondary{background:var(--bg-surface)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.yw-blog-container,.yw-blog-container .yw-prose,.yw-blog-container .table-wrap{min-width:0;max-width:100%}
.yw-blog-container .table-wrap{overflow-x:auto;touch-action:pan-x pan-y}
.yw-tool .yw-actions>a{white-space:normal;word-break:keep-all;min-width:5em}

/* Gate6.3 Polish FIX 1: Grok Stepper Buttons */
html[data-site="grok"] .v6-stepper button,
.site-grok .v6-stepper button {
  background: #20232B !important;
  color: #F8FAFC !important;
  border: 1px solid #343A4A !important;
}
html[data-site="grok"] .v6-stepper button:hover,
html[data-site="grok"] .v6-stepper button:active,
.site-grok .v6-stepper button:hover,
.site-grok .v6-stepper button:active {
  background: #2D3340 !important;
  color: #FFFFFF !important;
  border-color: #4B5563 !important;
}
html[data-site="grok"] .v6-stepper input,
.site-grok .v6-stepper input {
  background: #12141A !important;
  color: #F8FAFC !important;
  border: 1px solid #343A4A !important;
}

/* Gate6.3 Polish FIX 2: Grok Close Buttons */
html[data-site="grok"] #yw-mobile-drawer-close,
html[data-site="grok"] .yw-close-btn,
html[data-site="grok"] .yw-modal-close,
html[data-site="grok"] .yw-drawer-close,
.site-grok #yw-mobile-drawer-close,
.site-grok .yw-close-btn,
.site-grok .yw-modal-close,
.site-grok .yw-drawer-close {
  background: #242834 !important;
  color: #F8FAFC !important;
  border: 1px solid #343A4A !important;
}
html[data-site="grok"] #yw-mobile-drawer-close:hover,
html[data-site="grok"] .yw-close-btn:hover,
.site-grok #yw-mobile-drawer-close:hover,
.site-grok .yw-close-btn:hover {
  background: #32384A !important;
  color: #FFFFFF !important;
}

/* Gate6.3 Polish FIX 3: Grok Blog & Help Theme Contrast */
html[data-site="grok"],
.site-grok {
  --yw-fg: #F8FAFC !important;
  --yw-card-bg: #14161D !important;
  --yw-card-border: #232733 !important;
  --yw-muted: #94A3B8 !important;
  --yw-text-primary: #F8FAFC !important;
  --yw-text-secondary: #94A3B8 !important;
}
html[data-site="grok"] body,
.site-grok body {
  color: #F8FAFC !important;
}
html[data-site="grok"] .yw-brand-text,
html[data-site="grok"] .section-heading,
html[data-site="grok"] .yw-blog-list-hero h1,
html[data-site="grok"] .yw-blog-list-hero p,
html[data-site="grok"] .yw-blog-card-new,
html[data-site="grok"] .yw-blog-card-new h2,
html[data-site="grok"] .yw-blog-card-new h3,
html[data-site="grok"] .yw-blog-card-new p,
html[data-site="grok"] .yw-article-breadcrumbs,
html[data-site="grok"] .yw-article-breadcrumbs a,
html[data-site="grok"] .yw-article-breadcrumbs span,
html[data-site="grok"] .yw-help-section h2,
html[data-site="grok"] .yw-help-card h3,
html[data-site="grok"] .yw-help-card p,
html[data-site="grok"] .yw-faq-item summary,
html[data-site="grok"] .yw-faq-item p,
html[data-site="grok"] .yw-article-content,
html[data-site="grok"] .yw-article-content p,
html[data-site="grok"] .yw-article-content h2,
html[data-site="grok"] .yw-article-content h3,
html[data-site="grok"] .yw-article-content li,
.site-grok .yw-brand-text,
.site-grok .section-heading,
.site-grok .yw-blog-list-hero h1,
.site-grok .yw-blog-list-hero p,
.site-grok .yw-blog-card-new,
.site-grok .yw-blog-card-new h2,
.site-grok .yw-blog-card-new h3,
.site-grok .yw-blog-card-new p,
.site-grok .yw-article-breadcrumbs,
.site-grok .yw-article-breadcrumbs a,
.site-grok .yw-help-section h2,
.site-grok .yw-help-card h3,
.site-grok .yw-help-card p,
.site-grok .yw-faq-item summary,
.site-grok .yw-faq-item p {
  color: #F8FAFC !important;
}
html[data-site="grok"] .yw-blog-card-new,
html[data-site="grok"] .yw-help-card,
html[data-site="grok"] .yw-faq-item,
.site-grok .yw-blog-card-new,
.site-grok .yw-help-card,
.site-grok .yw-faq-item {
  background: #14161D !important;
  border: 1px solid #232733 !important;
}
html[data-site="grok"] .yw-article-breadcrumbs a,
.site-grok .yw-article-breadcrumbs a {
  color: #94A3B8 !important;
}
html[data-site="grok"] .yw-article-breadcrumbs a:hover,
.site-grok .yw-article-breadcrumbs a:hover {
  color: #60A5FA !important;
}

/* Gate6.3 Polish FIX 4: AI Market Search Clear */
[data-yw-search-clear][hidden],
html[data-site=ai] .yw-market-controls > [data-yw-search-clear][hidden] {
  display: none !important;
}
html[data-site=ai] .yw-market-controls .yw-search {
  padding-right: 44px !important;
}



/* Gemini 2026-11-23: real fallback card grid remains usable while catalog refreshes */
html[data-site="grok"] .yw-grid.yw-reference-grid,
html[data-site="grok"] .yw-grouped-catalog > .yw-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px)) !important;
  max-width: none !important;
  justify-content: start !important;
}
html[data-site="ai"] .yw-grid > .yw-reference-grid {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
@media (max-width: 700px) {
  html[data-site="grok"] .yw-grid.yw-reference-grid,
  html[data-site="grok"] .yw-grouped-catalog > .yw-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
