/* Shared design tokens for the server-rendered component system. */
:root {
  color-scheme: light;
  --background: #f5f0e6;
  --foreground: #30261f;
  --card: #fffbf3;
  --card-foreground: #30261f;
  --primary: #bf4727;
  --primary-hover: #9e371c;
  --primary-foreground: #ffffff;
  --secondary: #eee6d9;
  --secondary-foreground: #5f5041;
  --muted-background: #eee6d9;
  --muted-foreground: #716455;
  --accent: #f9e9da;
  --accent-foreground: #96391f;
  --border: #ddd1bd;
  --input: #c9bba6;
  --ring: #aa3d21;
  --success: #42704c;
  --success-background: #edf2e6;
  --destructive: #af382c;
  --destructive-background: #fae9df;
  --radius: 10px;
  --display-font: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --shadow-sm: 0 1px 2px rgb(60 42 24 / 3%), 0 3px 12px rgb(60 42 24 / 2%);
  --shadow-md: 0 8px 30px rgb(60 42 24 / 6%);
  --container: 1280px;
  /* Compatibility aliases used by the market surface and generated content. */
  --bg: var(--background);
  --ink: var(--foreground);
  --muted: var(--muted-foreground);
  --line: var(--border);
  --price: var(--primary);
  --btn: var(--primary);
  --stripe: #f8f3e9;
  --hover: var(--accent);
  --tape: #30261f;
  --tape-ink: #e6d8c4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--primary); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; scroll-margin-top: 130px; }
h1 { text-wrap: balance; }
main { scroll-margin-top: 100px; }
.ui-icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 10px 18px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); z-index: 40; }
.skip-link:focus { top: 12px; }

/* App shell and navigation. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--background); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--container); min-height: 72px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); font-size: 18px; font-weight: 730; letter-spacing: -.04em; white-space: nowrap; flex: none; }
.brand:hover { color: var(--foreground); }
.brand img { display: block; width: 58px; height: 58px; object-fit: contain; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; gap: 4px; }
.brand-name small { color: var(--muted-foreground); font-size: 9px; letter-spacing: .14em; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 13px; border-radius: 8px; color: var(--muted-foreground); font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .16s, color .16s; }
.site-nav a:hover { background: var(--muted-background); color: var(--foreground); }
.site-nav a[aria-current="page"], .site-nav a.is-active { background: transparent; color: var(--primary); box-shadow: inset 0 -2px var(--primary); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; margin-left: auto; }
.account-link:hover { background: var(--secondary); color: var(--foreground); }
.header-actions .account-link { margin-left: 0; }
.nav-context { color: var(--muted-foreground); font-size: 12px; }
.tape { display: flex; align-items: center; height: 28px; overflow: hidden; background: var(--tape); color: var(--tape-ink); }
.tape-track { display: flex; gap: 32px; width: max-content; animation: tape-move 50s linear infinite; font-size: 11px; font-variant-numeric: tabular-nums; }
.tape-track span { white-space: nowrap; }
.tape-pause { min-height: 30px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted-foreground); font-size: 11px; white-space: nowrap; }
@keyframes tape-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.page { max-width: var(--container); margin: 0 auto; padding: 32px 28px 64px; min-width: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; color: var(--muted-foreground); font-size: 12px; }
.breadcrumbs .ui-icon { width: 13px; height: 13px; }
.breadcrumbs a:hover { color: var(--primary); }

/* Composable button, badge, card and form primitives. */
.button, .plain-button, .offer-btn, .list-pager button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 14px; border: 1px solid var(--input); border-radius: 8px;
  background: var(--card); color: var(--foreground); font-size: 13px; font-weight: 550;
  line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.button:hover, .plain-button:hover, .list-pager button:not(:disabled):hover { background: var(--secondary); color: var(--foreground); border-color: var(--input); text-decoration: none; }
.button[data-variant="primary"], .primary-action, .auth-card .plain-button, .bid-form > .plain-button, .form-actions > .plain-button {
  background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgb(60 42 24 / 8%);
}
.button[data-variant="primary"]:hover, .primary-action:hover, .auth-card .plain-button:hover, .bid-form > .plain-button:hover, .form-actions > .plain-button:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-foreground); }
.button[data-variant="secondary"] { background: var(--secondary); border-color: transparent; color: var(--secondary-foreground); }
.button[data-variant="ghost"] { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted-foreground); }
.button[data-variant="ghost"]:hover { background: var(--secondary); color: var(--foreground); }
.button .ui-icon, .plain-button .ui-icon, .offer-btn .ui-icon { width: 16px; height: 16px; }
.badge, .track-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--secondary-foreground); background: var(--secondary); font-size: 11px; line-height: 1.4; font-weight: 550; }
.badge[data-variant="primary"] { background: var(--accent); border-color: transparent; color: var(--primary); }
.badge[data-variant="success"] { background: var(--success-background); border-color: transparent; color: var(--success); }
.card, .channel-card, .recommend-card, .lane, .auth-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-sm); min-width: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.card-header h2, .card-header h3 { margin: 0 0 5px; }
.card-content { padding: 22px 24px; }
.card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
input, select, textarea { max-width: 100%; min-width: 0; border: 1px solid var(--input); border-radius: 8px; background: var(--card); color: var(--foreground); padding: 9px 11px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 2px rgb(60 42 24 / 2%); }
input:not([type="checkbox"]):not([type="radio"]), select { min-height: 40px; }
input::placeholder, textarea::placeholder { color: #857763; }
input:focus, select:focus, textarea:focus { border-color: var(--ring); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--primary); flex: none; }
textarea { resize: vertical; min-height: 94px; }
.field-group { display: grid; gap: 20px; }
.field, .auth-card label, .bid-form label, .lane label, .channel-card form label { display: flex; flex-direction: column; gap: 7px; color: var(--foreground); font-size: 13px; font-weight: 500; min-width: 0; }
.field input, .field select, .field textarea, .bid-form input, .bid-form select, .bid-form textarea { width: 100%; }
.field[data-invalid], [aria-invalid="true"] { border-color: var(--destructive); }
.field-description { color: var(--muted-foreground); font-size: 12px; font-weight: 400; margin: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-error, .alert { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--accent); color: var(--accent-foreground); font-size: 13px; line-height: 1.65; }
.form-error, .alert[data-variant="destructive"] { background: var(--destructive-background); border-color: #e9c3b5; color: var(--destructive); }
.empty-panel, .empty-state, .filter-empty { padding: 40px 24px; border: 1px dashed var(--input); border-radius: var(--radius); background: var(--card); text-align: center; color: var(--muted-foreground); line-height: 1.8; grid-column: 1 / -1; }
.empty-panel h3, .empty-state h3 { color: var(--foreground); margin: 12px 0 8px; font-size: 16px; }
.empty-state .ui-icon { width: 30px; height: 30px; color: var(--muted-foreground); }

/* Page titles and product identity. */
.hero, .page-heading { margin: 0 0 26px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.page-heading-main { min-width: 0; }
.hero h1, .page-heading h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.35; margin: 0 0 10px; }
.hero-sub { color: var(--muted-foreground); max-width: 76ch; margin: 0; line-height: 1.8; font-size: 13px; }
.stats { margin: 8px 0 0; color: var(--muted-foreground); font-size: 12px; }
.eyebrow, .page-kicker { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 9px; }
.page-kicker { color: var(--primary); letter-spacing: .06em; }
.page-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.product-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.product-monogram { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; font-weight: 700; font-size: 23px; background: var(--accent); color: var(--primary); }
.product-monogram[data-product="chatgpt"] { background: #e8f5ef; color: #13816b; }
.product-monogram[data-product="claude-code"] { background: #fff0e8; color: #b9663b; }
.product-monogram[data-product="gemini"], .product-monogram[data-product="google-cloud"] { background: #eef0ff; color: #6651cf; }
.product-monogram[data-product="grok"] { background: #e7e0d4; color: #30261f; }
.product-monogram[data-product="aws"] { background: #fff4e5; color: #b66c08; }
.product-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 24px; padding: 20px 24px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.product-stats > div { padding-left: 24px; border-left: 1px solid var(--border); min-width: 0; }
.product-stats > div:first-child { padding-left: 0; border-left: 0; }
.product-stats .ui-icon { color: var(--primary); width: 22px; height: 22px; }
.stat-number { display: block; font-size: 25px; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.product-stats small, .product-stats span:not(.stat-number) { display: block; color: var(--muted-foreground); font-size: 11px; margin-top: 5px; }
.product-tabs, .product-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; margin: 0 0 24px; }
.product-tabs .product-switch { margin-bottom: 0; }
.product-switch { width: fit-content; max-width: 100%; background: var(--secondary); padding: 5px; border-radius: 10px; }
.product-switch a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; min-height: 36px; color: var(--muted-foreground); border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .16s, color .16s; }
.product-switch a:hover { color: var(--foreground); }
.product-switch a.is-active, .product-switch a[aria-current="page"] { background: var(--foreground); color: var(--card); border-color: var(--foreground); box-shadow: var(--shadow-sm); }

/* Product filters and quote table. */
.filters, .filter-panel { padding: 20px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.filter-chips, .filter-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-label { min-width: 42px; padding: 7px 0; color: var(--muted-foreground); font-size: 12px; font-weight: 500; }
.filter-group-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 11px; background: transparent; color: var(--secondary-foreground); border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 500; line-height: 1.4; transition: background .16s, color .16s; }
.filter-chip:hover { background: var(--secondary); }
.filter-chip.is-active, .filter-chip[aria-pressed="true"] { background: var(--accent); color: var(--primary); border-color: #e7c1a6; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--border); }
.toolbar > input[type="search"], .toolbar > .input-group { flex: 1 1 220px; }
.toolbar input[type="search"] { width: 100%; min-width: 0; }
.toolbar input[type="number"] { width: 76px; }
.toolbar > span { color: var(--muted-foreground); font-size: 12px; }
.input-group { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; min-height: 40px; background: var(--card); border: 1px solid var(--input); border-radius: 8px; color: var(--muted-foreground); }
.input-group input { width: 100%; border: 0; box-shadow: none; background: transparent; padding: 8px 0; outline: none; }
.input-group:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px var(--accent); }
.price-range { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 12px; }
.price-range input { width: 76px; }
.stock-toggle, .toolbar > label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--secondary-foreground); white-space: nowrap; cursor: pointer; }
.filter-status { margin-left: auto; font-size: 12px; color: var(--muted-foreground); }
.filter-status strong { color: var(--foreground); font-weight: 650; }
.updated { margin: 0 0 12px; color: var(--muted-foreground); font-size: 11px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.results-heading h2 { font-size: 16px; margin: 0; font-weight: 650; }
.results-heading .updated { margin: 0; }
.results-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted-foreground); font-size: 12px; }
.sheet, .quote-sheet { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); overflow: clip; }
.sheet-head, .offer-card { display: grid; grid-template-columns: 112px 90px minmax(0, 1fr) 112px 100px; gap: 18px; align-items: center; padding: 18px 22px; }
.sheet-head { padding-top: 12px; padding-bottom: 12px; background: var(--muted-background); color: var(--muted-foreground); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 550; }
.offer-card { min-height: 106px; border-bottom: 1px solid var(--border); background: var(--card); transition: background .16s; }
.offer-card:last-child { border-bottom: 0; }
.offer-card.is-stripe { background: var(--stripe); }
.offer-card:hover { background: var(--accent); }
.col-price { text-align: left; min-width: 0; }
.num { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 650; }
.col-price .num { display: block; font-size: 22px; letter-spacing: -.04em; line-height: 1.2; }
.col-price .quote { font-size: 13px; letter-spacing: 0; line-height: 1.5; }
.col-price small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted-foreground); }
.stock-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground); }
.stock-label[data-stock="in_stock"], .stock-label[data-stock="low_stock"] { color: var(--success); }
.stock-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.col-plan { min-width: 0; color: var(--secondary-foreground); font-size: 12px; }
.col-plan .badge { white-space: normal; }
.col-body { min-width: 0; }
.offer-title { margin: 0 0 5px; font-size: 14px; font-weight: 600; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-title a { color: var(--foreground); }
.offer-title a:hover { color: var(--primary); }
.offer-sub { color: var(--muted-foreground); font-size: 11px; margin: 0; line-height: 1.7; }
.col-cat { color: var(--muted-foreground); font-size: 11px; overflow-wrap: anywhere; }
.offer-btn { min-height: 34px; width: 100px; padding: 7px 10px; color: var(--primary); background: var(--card); border-color: var(--input); font-size: 12px; }
.offer-btn:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.spark { display: block; width: 72px; height: 18px; margin-top: 5px; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 1.5; }
.source-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 7px; color: var(--muted-foreground); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.source-line a { color: inherit; text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 3px; }
.source-line .track-badge { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--muted-background); }
.cluster-more { color: var(--muted-foreground); font-size: 11px; margin-top: 7px; }
summary { cursor: pointer; }
.cluster-more summary { color: var(--primary); }
.cluster-more ul { margin: 8px 0 0; padding-left: 18px; }
.list-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted-foreground); font-size: 12px; }
.list-pager button { min-height: 34px; font-size: 12px; }

/* Home discovery and recommendations. */
.home-market-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: center; gap: 64px; padding: 42px 0; }
.home-hero-surface { padding: 28px 8px 38px; border: 0; background: transparent; }
.home-intro h1 { font-family: var(--display-font); max-width: 11em; white-space: pre-line; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.2; font-weight: 730; letter-spacing: -.05em; margin: 18px 0; }
.home-intro .hero-sub { max-width: 42ch; font-size: 14px; line-height: 1.9; }
.home-intro .eyebrow { color: var(--primary); }
.home-hero { display: flex; align-items: center; gap: 18px; }
.home-logo { width: 80px; height: 80px; flex: none; border-radius: 18px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button, .hero-actions .plain-button { min-height: 42px; padding: 10px 17px; }
.hero-footnote { color: var(--muted-foreground); font-size: 11px; margin-top: 18px; }
.home-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted-foreground); font-size: 11px; font-weight: 500; }
.home-status .badge { border-radius: 5px; padding: 6px 8px; background: var(--accent); color: var(--primary); border-color: transparent; }
.market-note { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 22px 22px 22px 6px; background: var(--muted-background); }
.brand-note-head { display: flex; align-items: center; gap: 18px; }
.brand-note-head .brand-mark { width: 112px; height: 112px; }
.brand-note-head h2 { font-size: 20px; margin: 0 0 5px; font-weight: 650; }
.brand-note-head p { margin: 0; }
.market-note > strong { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin: 22px 0 16px; font-variant-numeric: tabular-nums; }
.market-note > strong small { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); margin-top: 8px; }
.market-note p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }
.market-note > .card-header, .market-note > .card-content { padding: 0; }
.market-note > .card-footer { padding: 16px 0 0; font-size: 12px; color: var(--primary); }
.market-note .metric-row small { display: block; color: var(--muted-foreground); font-size: 11px; margin-top: 3px; }
.market-note .metric-row b { color: var(--foreground); font-size: 13px; font-weight: 600; }
.market-note .metric-row > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.market-note > a { color: var(--primary); font-size: 12px; font-weight: 550; }
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.metric-row strong { color: var(--foreground); font-size: 15px; font-variant-numeric: tabular-nums; }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 34px; }
.lanes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lane { display: block; padding: 24px; min-height: 158px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.lane:hover { color: var(--foreground); border-color: var(--ring); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lane-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-foreground); margin-bottom: 12px; }
.lane-kicker > .ui-icon:last-child:not(:first-child) { margin-left: auto; color: var(--muted-foreground); }
.lane strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 8px; color: var(--foreground); font-variant-numeric: tabular-nums; }
.lane p { margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }
.lane .ui-icon { color: var(--primary); }
.home-section { margin: 42px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h2 { margin: 4px 0 0; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.section-heading > a { font-size: 12px; font-weight: 550; color: var(--primary); white-space: nowrap; }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.recommend-card { display: flex; flex-direction: column; padding: 24px; transition: border-color .18s, box-shadow .18s; }
.recommend-card > .card-header { padding: 0; align-items: center; }
.recommend-card > .card-content { padding: 0; flex: 1; display: flex; flex-direction: column; }
.recommend-card > .card-footer { padding: 14px 0 0; margin-top: 18px; font-size: 12px; color: var(--primary); }
.recommend-card .card-content > p:not(.recommend-price):not(.recommend-reason):not(.source-line) { font-size: 12px; color: var(--muted-foreground); }
.recommend-card:hover { border-color: var(--ring); box-shadow: var(--shadow-md); }
.recommend-card h3 { margin: 12px 0 0; font-size: 15px; line-height: 1.7; font-weight: 600; }
.recommend-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recommend-card > p:not(.recommend-price):not(.recommend-reason):not(.source-line) { font-size: 12px; color: var(--muted-foreground); }
.recommend-price { color: var(--primary); font-size: 29px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 22px 0 8px; }
.recommend-price small { display: block; margin-top: 6px; color: var(--muted-foreground); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.recommend-reason { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border); color: var(--secondary-foreground); font-size: 11px; line-height: 1.8; }
.closing-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--accent); }
.closing-strip h2 { margin: 0 0 8px; font-size: 21px; }
.closing-strip p { color: var(--muted-foreground); font-size: 13px; margin: 0; }
.site-announcement { padding: 15px 20px; margin: 20px 0; border: 1px solid #e7c1a6; border-radius: 10px; background: var(--accent); color: var(--accent-foreground); font-size: 13px; white-space: pre-line; }

/* Inquiry, account and merchant workspaces. */
.channel-group { margin-top: 32px; }
.channel-group h2 { font-size: 19px; margin: 0 0 16px; }
.channel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.channel-card { padding: 24px; margin-bottom: 16px; overflow-wrap: anywhere; }
.channel-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; line-height: 1.5; }
.channel-card p { font-size: 13px; }
.channel-card dl { display: grid; gap: 8px; margin: 18px 0; }
.channel-card dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.channel-card dt { color: var(--muted-foreground); font-size: 12px; }
.channel-card dd { margin: 0; color: var(--secondary-foreground); font-size: 13px; }
.channel-card > summary { font-size: 14px; line-height: 1.5; }
.channel-card > summary::marker { color: var(--muted-foreground); }
.channel-card[open] > summary { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.channel-card .channel-card { background: var(--background); box-shadow: none; }
.channel-card form { display: grid; gap: 16px; margin: 18px 0; }
.channel-card button, .bid-form button { justify-self: start; }
.reference-panel { padding: 16px 18px; border-radius: 9px; background: var(--muted-background); margin: 18px 0; color: var(--secondary-foreground); font-size: 12px; }
.reference-panel strong { font-size: 12px; }
.reference-panel p { font-size: 12px; margin: 5px 0 0; }
.bid-form, .channel-card form.bid-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; padding: 0; margin: 22px 0; border: 0; }
.bid-form h2, .bid-form .form-wide, .bid-form > .hero-sub, .bid-form > .form-actions { grid-column: 1 / -1; }
.bid-form > button { align-self: end; }
.auth-page { display: grid; place-items: center; min-height: calc(100vh - 150px); padding-top: 48px; padding-bottom: 64px; }
.auth-card { display: grid; gap: 20px; width: min(440px, 100%); padding: 32px; box-shadow: var(--shadow-md); }
.auth-card h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.auth-card > .hero-sub { margin-top: -8px; }
.auth-card input { width: 100%; }
.auth-card fieldset { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 9px; margin: 0; }
.auth-card legend { color: var(--muted-foreground); font-size: 12px; padding: 0 6px; }
.auth-card fieldset label { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; }
.auth-card input[type="radio"] { width: 16px; height: 16px; }
.auth-card .plain-button { min-height: 42px; width: 100%; }
.auth-card > p { margin: 0; color: var(--muted-foreground); font-size: 12px; }
.auth-card > p a { color: var(--primary); font-weight: 550; }

/* Shared workflow layouts compose the same cards and fields. */
.auth-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); width: min(960px, 100%); border: 1px solid var(--border); border-radius: 18px; overflow: clip; background: var(--card); box-shadow: var(--shadow-md); }
.auth-aside { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 42px; background: var(--tape); color: var(--primary-foreground); min-width: 0; }
.auth-aside h1, .auth-aside h2 { font-size: 30px; line-height: 1.5; letter-spacing: -.04em; margin: 0; }
.auth-aside p, .auth-aside li { font-size: 13px; color: var(--tape-ink); line-height: 1.9; }
.auth-aside .eyebrow { color: var(--tape-ink); }
.auth-aside .brand { color: var(--primary-foreground); }
.auth-aside ul { padding-left: 18px; display: grid; gap: 12px; }
.auth-form-panel { padding: 36px; min-width: 0; }
.auth-layout .auth-card { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.auth-form-panel > h1 { margin-top: 0; font-size: 26px; }
.channel-card > .card-header { padding: 0 0 16px; }
.channel-card > .card-content { padding: 0; }
.channel-card > .card-footer { padding: 16px 0 0; }
.channel-card.card-header { align-items: center; padding: 24px; }
.channel-card form.form-actions { display: flex; }
.auth-card > .card-header { padding: 0 0 4px; }
.auth-aside .page-kicker { color: #e7b57a; }
.auth-aside .workflow-stack .ui-icon { margin-right: 9px; color: #e7b57a; }
.quote-note { white-space: pre-wrap; }
.workflow-stack { display: flex; flex-direction: column; gap: 20px; }
.workflow-stack > .channel-card { margin-bottom: 0; }
.request-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.request-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.reference-panel { border: 1px solid var(--border); }
.order-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--muted-background); }
.order-summary > div { min-width: 0; }
.order-summary dt, .order-summary small { color: var(--muted-foreground); font-size: 12px; }
.order-summary dd { margin: 6px 0 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.order-summary p { margin: 6px 0; }
.order-timeline { padding: 0 0 0 6px; margin: 24px 0 0; list-style: none; }
.order-timeline > li { position: relative; padding: 0 0 24px 24px; border-left: 1px solid var(--border); font-size: 13px; }
.order-timeline > li::before { content: ''; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--card); }
.order-timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.order-timeline p { color: var(--muted-foreground); margin: 5px 0; font-size: 12px; }
.role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; border: 0; min-width: 0; }
.auth-card fieldset.role-options { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border: 0; }
.role-options legend { margin-bottom: 10px; }
.role-options label { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.role-options label:has(input:checked) { border-color: var(--ring); background: var(--accent); }
.role-options label input { margin-top: 3px; }
.role-options small { display: block; color: var(--muted-foreground); margin-top: 4px; font-size: 11px; }
.form-wide { grid-column: 1 / -1; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-avatar { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--accent); color: var(--primary); font-size: 22px; font-weight: 650; flex: none; }
.account-identity h1 { margin-bottom: 6px; }

/* Tables, editorial pages and supplier directories. */
.official-section { margin-top: 40px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.official-section h2, .markdown-body h2 { font-size: 20px; margin-top: 0; font-weight: 650; }
.official-section h3 { margin-top: 28px; font-size: 15px; }
.price-table, .store-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 16px 0 24px; background: var(--card); }
.price-table th, .price-table td, .store-table th, .store-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table th, .store-table th { background: var(--muted-background); color: var(--muted-foreground); font-size: 11px; font-weight: 550; }
.price-table td:last-child, .store-table td.num { text-align: right; }
.store-table td { overflow-wrap: anywhere; }
.line-list, .guide-list { padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: clip; }
.line-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 13px; }
.line-row:last-child { border-bottom: 0; }
.line-row .soon { color: var(--muted-foreground); font-size: 12px; }
.guide-list { list-style: none; }
.guide-list a { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.guide-list li:last-child a { border-bottom: 0; }
.guide-list a:hover { background: var(--accent); }
.rank-teaser { padding: 24px; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.rank-teaser h2 { font-size: 18px; margin: 0 0 16px; }
.rank-teaser ol { margin: 0 0 16px; padding: 0; list-style: none; }
.rank-teaser li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.markdown-body { max-width: 76ch; margin: 20px auto; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: 15px; line-height: 1.95; }
.markdown-body h1 { font-size: 28px; letter-spacing: -.04em; }
.markdown-body h2 { margin-top: 30px; }
.markdown-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cms-article { max-width: 820px; margin: 24px auto; padding: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.cms-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.95; font-size: 15px; padding: 20px 0; }
.site-footer { max-width: var(--container); margin: 0 auto; padding: 28px 28px 38px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 11px; line-height: 1.8; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--foreground); font-size: 13px; font-weight: 650; }
.footer-brand p { margin: 0; color: var(--muted-foreground); font-size: 11px; font-weight: 400; }
.footer-brand .brand { font-size: 14px; }
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.footer-brand .ui-icon { width: 16px; height: 16px; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.disclaimer { max-width: 90ch; margin: 16px 0; }

/* Responsive layouts retain real overflow only in explicitly scrollable regions. */
@media (max-width: 1100px) {
  .header-inner { gap: 22px; }
  .site-nav a { padding-left: 9px; padding-right: 9px; }
  .nav-context { display: none; }
  .sheet-head, .offer-card { grid-template-columns: 98px 74px minmax(0, 1fr) 90px; gap: 15px; padding-left: 18px; padding-right: 18px; }
  .col-cat, .sheet-head > span:nth-child(4) { display: none; }
  .offer-btn { width: 90px; }
  .home-market-hero { gap: 32px; }
  .product-stats { gap: 16px; }
  .product-stats > div { padding-left: 16px; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
  .header-actions, .account-link { margin-left: auto; }
  .site-nav { order: 3; width: 100%; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-height: 38px; padding-left: 12px; padding-right: 12px; }
  .tape-pause { display: none; }
  .page { padding-top: 26px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .page-heading h1, .hero h1 { font-size: 26px; }
  .product-stats { width: 100%; padding: 18px; gap: 14px; }
  .product-stats > div:first-child { padding-left: 0; border-left: 0; }
  .home-market-hero { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); gap: 24px; }
  .home-hero-surface { padding: 24px 4px; }
  .home-intro h1 { font-size: 36px; }
  .market-note { padding: 22px; }
  .market-note > strong { font-size: 28px; }
  .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes-3 { gap: 12px; }
  .lane { padding: 20px; }
  .lane strong { font-size: 20px; }
  .bid-form, .channel-card form.bid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { gap: 10px; }
  .toolbar > input[type="search"], .toolbar > .input-group { flex-basis: 100%; }
  .channel-list { grid-template-columns: 1fr; }
  .store-table { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
  .header-inner, .page, .site-footer { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 22px; padding-bottom: 40px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name small { font-size: 8px; }
  .header-actions { gap: 7px; }
  .header-actions .button, .account-link { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .page-heading, .hero { margin-bottom: 22px; }
  .page-heading h1, .hero h1 { font-size: 23px; margin-bottom: 7px; }
  .hero-sub { font-size: 12px; }
  .product-identity { gap: 12px; align-items: flex-start; }
  .product-monogram { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
  .product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 20px 16px; }
  .product-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-number { font-size: 21px; }
  .breadcrumbs { margin-bottom: 18px; font-size: 11px; }
  .product-switch { gap: 3px; padding: 4px; margin-bottom: 20px; }
  .product-switch a { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .filters, .filter-panel { padding: 16px; margin-bottom: 20px; }
  .filter-chips, .filter-row { gap: 6px; margin-bottom: 12px; }
  .filter-label { min-width: 100%; padding: 0 0 3px; font-size: 11px; }
  .filter-group-options { gap: 5px; }
  .filter-chip { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .toolbar { gap: 10px; padding-top: 16px; }
  .toolbar input, .toolbar .input-group, .toolbar .plain-button, .toolbar .button { min-height: 40px; }
  .toolbar input[type="number"], .price-range input { width: 64px; }
  .toolbar > span, .price-range { font-size: 11px; }
  .price-range { gap: 6px; }
  .stock-toggle, .toolbar > label { min-height: 40px; font-size: 11px; }
  .toolbar .filter-status { margin-left: 0; }
  .results-heading { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
  .results-heading h2 { font-size: 15px; }
  .results-meta, .updated { font-size: 11px; }
  .sheet-head { display: none; }
  .offer-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body body" "price action" "plan action"; gap: 8px 14px; padding: 18px 16px; min-height: 0; }
  .col-body { grid-area: body; margin-bottom: 6px; }
  .col-price { grid-area: price; }
  .col-plan { grid-area: plan; }
  .col-cat { display: none; }
  .offer-btn { grid-area: action; align-self: end; min-height: 38px; width: auto; min-width: 90px; }
  .offer-title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .col-price .num { font-size: 23px; }
  .col-price .quote { font-size: 13px; }
  .col-price small { display: inline-block; font-size: 11px; margin-top: 5px; }
  .source-line { font-size: 11px; }
  .spark { display: none; }
  .list-pager { gap: 10px; font-size: 11px; }
  .list-pager button { min-height: 40px; padding: 8px 12px; }
  .home-market-hero { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 24px; gap: 24px; }
  .home-hero-surface { padding: 12px 0 24px; }
  .home-intro h1 { font-size: 36px; margin: 16px 0; }
  .home-intro .hero-sub { font-size: 13px; }
  .market-note { padding: 24px; }
  .market-note > strong { font-size: 28px; margin: 18px 0; }
  .home-section { margin: 32px 0; }
  .lanes, .lanes-3, .recommend-grid { grid-template-columns: 1fr; gap: 12px; }
  .lane { min-height: 0; padding: 22px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading > a { font-size: 11px; padding-top: 5px; }
  .recommend-card { padding: 22px; }
  .closing-strip { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .channel-card, .channel-card.card-header { padding: 20px; }
  .channel-card.card-header { flex-wrap: wrap; gap: 16px; }
  .channel-card h3 { font-size: 16px; }
  .bid-form, .channel-card form.bid-form { grid-template-columns: 1fr; gap: 18px; }
  .bid-form input, .bid-form select, .auth-card input, .auth-card select { min-height: 44px; font-size: 16px; }
  .bid-form .plain-button, .form-actions .button { min-height: 42px; }
  .auth-page { padding-top: 32px; min-height: 0; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px; gap: 12px; }
  .auth-aside h1, .auth-aside h2 { font-size: 24px; }
  .auth-aside ul { display: none; }
  .auth-form-panel { padding: 28px 22px; }
  .order-summary { padding: 18px; gap: 14px; }
  .order-summary dd { font-size: 20px; }
  .role-options label { padding: 10px; }
  .auth-card { padding: 26px 22px; gap: 19px; }
  .auth-card h1 { font-size: 25px; }
  .auth-card input[type="radio"] { min-height: 16px; }
  .card-header { padding: 20px 20px 0; }
  .card-content { padding: 20px; }
  .card-footer { padding: 16px 20px; }
  .official-section { margin-top: 28px; padding: 20px 16px; }
  .price-table th, .price-table td, .store-table th, .store-table td { padding: 11px 8px; font-size: 11px; }
  .line-row { grid-template-columns: 1fr auto; gap: 8px; padding: 18px; }
  .line-row > :nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .guide-list a { padding: 18px; }
  .markdown-body, .cms-article { padding: 24px 20px; margin-top: 0; }
  .markdown-body h1 { font-size: 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav { gap: 16px; }
  .site-footer { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lane:hover { transform: none; }
}
