:root {
  --ink: #101217;
  --paper: #f1f0e9;
  --panel: #fffefa;
  --muted: #6d6b64;
  --line: #d7d4c8;
  --acid: #d5ff52;
  --violet: #6852f5;
  --blue: #1571d3;
  --green: #18724a;
  --amber: #9b5b00;
  --red: #a63d37;
  --shadow: 0 20px 48px rgba(20, 18, 12, .1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 Inter, ui-sans-serif, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 15px 18px;
  display: flex; flex-direction: column; border-right: 1px solid #cbc8bd;
  background: #e6e4dc; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 28px; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--acid); background: var(--ink); font-size: 1.35rem; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; color: #55534d; }
.nav-item:hover { background: rgba(255,255,255,.55); }
.nav-item.active { color: white; background: var(--ink); }
.nav-item span { width: 18px; font-size: 1.1rem; }
.nav-item b { margin-left: auto; min-width: 23px; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.15); font-size: .7rem; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #cbc8bd; color: var(--muted); }
.sidebar-foot p { margin: 10px 0 0; font-size: .75rem; }
.system-state { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .78rem; font-weight: 750; }
.system-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24,114,74,.12); }

main { min-width: 0; width: 100%; max-width: 1510px; margin: 0 auto; padding: 18px 26px 70px; }
.topbar { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.topbar > div:first-of-type { display: grid; }
.top-label { color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
.topbar strong { font-size: .95rem; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.mobile-nav { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.ghost-button, .primary-button, .text-button, .load-more { min-height: 44px; border-radius: 9px; padding: 9px 13px; font-weight: 800; }
.ghost-button { border: 1px solid var(--line); background: var(--panel); }
.primary-button { border: 1px solid var(--ink); background: var(--acid); box-shadow: 3px 3px 0 var(--ink); }
.primary-button:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-button { padding-inline: 2px; border: 0; background: transparent; color: var(--violet); }
.view { display: none; }
.view.active { display: block; }

.category-hero { position: relative; overflow: hidden; padding: clamp(26px,4vw,48px); border-radius: 23px; color: white; background: var(--ink); }
.category-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -170px; top: -165px; border: 58px solid var(--violet); border-radius: 50%; pointer-events: none; }
.category-hero-head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.55fr); gap: 36px; align-items: end; }
.category-hero-head h1 { margin: 8px 0 0; font: 500 clamp(2.35rem,4.8vw,4.85rem)/.98 Georgia,"Noto Serif SC",serif; letter-spacing: -.055em; }
.category-hero-head h1 em { color: var(--acid); font-weight: 500; }
.category-hero-head > p { max-width: 470px; margin: 0 0 7px; color: #bcbdb9; }
.family-tabs { position: relative; z-index: 1; display: flex; gap: 7px; overflow-x: auto; margin: 30px 0 13px; padding-bottom: 2px; scrollbar-width: thin; }
.family-tab { min-height: 44px; flex: 0 0 auto; padding: 9px 14px; border: 1px solid #3f4249; border-radius: 99px; color: #d5d6d2; background: #24262c; font-size: .875rem; font-weight: 750; }
.family-tab:hover { border-color: #777a83; }
.family-tab.active { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.quick-category-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.category-card { min-height: 132px; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #3d4047; border-radius: 13px; color: white; background: #202228; text-align: left; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.category-card:hover { transform: translateY(-2px); border-color: var(--acid); background: #272a30; }
.category-card.active { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.category-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--acid); background: #343740; font-size: 1.05rem; }
.category-count { color: #b9bbc0; font-size: .78rem; }
.category-card strong { display: block; font-size: 1rem; }
.category-card small { display: block; margin-top: 4px; color: #c2c3bf; font-size: .84rem; line-height: 1.45; }
.category-hero-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; }
.category-hero-foot > span { color: #b7b9bd; font-size: .82rem; }
.all-category-button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 14px; border: 1px solid #4a4d55; border-radius: 9px; color: white; background: transparent; font-weight: 800; }
.all-category-button:hover { border-color: var(--acid); color: var(--acid); }
.all-category-button b { font-size: 1.1rem; }
.refine-panel { display: grid; grid-template-columns: minmax(270px,.65fr) minmax(0,1.35fr); gap: 22px; align-items: center; margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.refine-copy h2 { margin: 4px 0 3px; font: 500 1.25rem Georgia,"Noto Serif SC",serif; }
.refine-copy p { margin: 0; color: var(--muted); font-size: .875rem; }
.refine-form { display: grid; gap: 8px; }
.refine-form textarea { width: 100%; min-height: 64px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #f8f7f2; line-height: 1.5; }
.refine-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(104,82,245,.1); }
.refine-form .mode-badge { color: var(--muted); }
.task-panel { margin-bottom: 10px; padding: 13px 15px; border: 1px solid #d6d0ff; border-radius: 12px; background: #f1efff; }
.task-panel > span { display: block; margin-bottom: 8px; color: #5a4aa5; font-size: .8rem; font-weight: 850; }
.task-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.task-chip { min-height: 44px; padding: 9px 12px; border: 1px solid #cbc3ff; border-radius: 8px; color: #473c83; background: white; font-size: .875rem; font-weight: 750; }
.task-chip:hover { border-color: var(--violet); background: #faf9ff; }
.task-chip { display: grid; gap: 2px; text-align: left; }
.task-chip small { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .02em; }
.task-chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.task-chip.active small { color: #cdd3e0; }

.decision-hero { position: relative; overflow: hidden; min-height: 485px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.72fr); grid-template-rows: 1fr auto; gap: 24px 40px; padding: clamp(28px,5vw,68px); border-radius: 23px; color: white; background: var(--ink); }
.decision-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -190px; top: -205px; border: 72px solid var(--violet); border-radius: 50%; }
.hero-copy { align-self: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--acid); font-size: .69rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.dark { color: var(--violet); }
.hero-copy h1, .view-intro h1 { margin: 9px 0 17px; font: 500 clamp(2.35rem,5vw,5.15rem)/.98 Georgia, "Noto Serif SC", serif; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--acid); font-weight: 500; }
.hero-copy p { max-width: 660px; margin: 0; color: #b9b9b6; font-size: 1rem; }
.ask-box { position: relative; z-index: 2; align-self: center; display: grid; gap: 10px; padding: 20px; border: 1px solid #3c3e45; border-radius: 16px; background: #202228; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.ask-box label { font-size: .78rem; font-weight: 800; }
.ask-box textarea { width: 100%; resize: vertical; min-height: 140px; padding: 14px; border: 0; border-radius: 10px; outline: 0; background: #fff; color: var(--ink); line-height: 1.55; }
.ask-box textarea:focus { box-shadow: 0 0 0 3px rgba(213,255,82,.25); }
.ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-badge { color: #babbb8; font-size: .7rem; }
.scenario-row { grid-column: 1/-1; position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.scenario-row::before { content: "快速开始"; align-self: center; margin-right: 4px; color: #777a82; font-size: .7rem; font-weight: 800; }
.scenario-row button { padding: 7px 11px; border: 1px solid #3e4148; border-radius: 99px; background: #24262c; color: #d7d7d4; font-size: .75rem; }
.scenario-row button:hover { border-color: var(--acid); color: var(--acid); }

.start-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 13px; }
.start-grid article { min-height: 145px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.start-grid article > span { color: var(--violet); font: 500 1.45rem Georgia,serif; }
.start-grid h3 { margin: 14px 0 5px; font-size: .95rem; }
.start-grid p { margin: 0; color: var(--muted); font-size: .79rem; }

.decision-workspace { margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 11px; }
.section-heading h2 { margin: 3px 0 0; font: 500 1.45rem Georgia,"Noto Serif SC",serif; }
.intent-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.intent-chip { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--line); }
.intent-chip:last-child { border: 0; }
.intent-chip span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .67rem; }
.intent-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.analysis-note { margin: 9px 3px 0; color: var(--muted); font-size: .76rem; }
.result-heading { margin-top: 29px; }
.result-count { color: var(--muted); font-size: .76rem; }
.recommendations { display: grid; gap: 10px; }
.recommendation { position: relative; display: grid; grid-template-columns: 170px minmax(0,1fr) 205px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: .18s ease; }
.recommendation:hover { border-color: #a8a59a; box-shadow: var(--shadow); transform: translateY(-2px); }
.verdict { display: flex; flex-direction: column; justify-content: space-between; padding: 17px; color: white; background: var(--ink); }
.verdict b { color: var(--acid); font-size: .67rem; letter-spacing: .1em; }
.verdict strong { font: 500 1.28rem/1.2 Georgia,serif; }
.rec-main { padding: 17px 19px; }
.rec-title { display: flex; align-items: center; gap: 9px; }
.rec-title h3 { margin: 0; font: 500 1.35rem Georgia,serif; }
.rec-main > p { margin: 7px 0 11px; color: #57544d; font-size: .8rem; }
.reason-row { display: flex; flex-wrap: wrap; gap: 6px; }
.reason { padding: 4px 7px; border-radius: 5px; background: #eceae3; font-size: .69rem; }
.reason.hit { color: #315e00; background: #e8f4cc; }
.limitation { margin-top: 10px; color: var(--amber); font-size: .72rem; }
.rec-side { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; border-left: 1px solid var(--line); background: #f8f7f2; }
.evidence-badge, .tier-badge { width: max-content; padding: 5px 8px; border-radius: 99px; background: #ece9ff; color: var(--violet); font-size: .68rem; font-weight: 850; }
.evidence-badge.indexed { color: var(--amber); background: #fff1d7; }
.evidence-badge.trusted { color: var(--green); background: #e1f2e8; }
.freshness { color: var(--muted); font-size: .68rem; }
.rec-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 3px; }
.rec-actions button, .rec-actions a { padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: .7rem; font-weight: 800; text-align: center; text-decoration: none; }
.rec-actions a { grid-column: 1/-1; color: white; background: var(--ink); border-color: var(--ink); }
.missing-callout { margin-top: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed #aba79b; border-radius: 13px; }
.missing-callout div { display: grid; }
.missing-callout span { color: var(--muted); font-size: .76rem; }
.sponsored { margin-top: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 13px; border: 1px solid #b8c5d8; border-radius: 11px; background: #f4f8ff; }
.sponsored > span { color: var(--blue); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.sponsored p { margin: 0; font-size: .77rem; }
.sponsored a { margin-left: auto; color: var(--blue); font-size: .75rem; font-weight: 800; }

.view-intro { min-height: 230px; display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: 32px 36px; border-radius: 19px; color: white; background: var(--ink); }
.view-intro h1 { max-width: 780px; margin-bottom: 0; font-size: clamp(2rem,4vw,3.8rem); }
.view-intro > p { max-width: 405px; margin: 0; color: #b8b9b6; }
.watch-intro { background: #19223a; }
.myai-intro { background: #332869; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--panel); }
.metric { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric strong { display: block; font: 500 1.65rem Georgia,serif; }
.metric span { color: var(--muted); font-size: .71rem; }
.catalog-mode-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 8px; }
.catalog-mode-switch button { display: grid; gap: 3px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); text-align: left; }
.catalog-mode-switch button strong { color: var(--ink); font-size: .82rem; }
.catalog-mode-switch button span { font-size: .68rem; }
.catalog-mode-switch button.active { border-color: #9fb1ea; background: var(--soft-blue); box-shadow: inset 0 0 0 1px rgba(50,87,213,.08); }
.filters { display: grid; grid-template-columns: minmax(220px,1.35fr) repeat(5,minmax(120px,.5fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.filters input, .filters select, .submit-form input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #f8f7f2; }
.filters input:focus, .filters select:focus, .submit-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(104,82,245,.1); }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 8px; color: var(--muted); font-size: .76rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.product-card { min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); transition: .17s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #aaa69a; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; }
.product-logo { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: white; font-weight: 900; }
.card-name { min-width: 0; flex: 1; }
.card-name h3 { overflow: hidden; margin: 0; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.card-name span { color: var(--muted); font-size: .68rem; }
.product-card > p { min-height: 3.5em; overflow: hidden; margin: 12px 0; color: #55524c; font-size: .78rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 6px; border-radius: 5px; background: #eeece5; font-size: .67rem; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.card-foot button { padding: 0; border: 0; background: transparent; color: var(--violet); font-size: .72rem; font-weight: 800; }
.card-foot a { color: var(--violet); font-size: .72rem; font-weight: 800; text-decoration: none; }
.directory-state { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.directory-state span { padding: 4px 7px; border-radius: 99px; color: #5f6775; background: #eef1f6; font-size: .62rem; font-weight: 750; }
.directory-state span.verified { color: #0d6d61; background: #e4f6f2; }
.directory-state span.warning { color: #915b00; background: #fff1d5; }
.catalog-loading { grid-column: 1/-1; padding: 35px; color: var(--muted); text-align: center; }
.load-more { width: 100%; margin-top: 10px; border: 1px solid var(--ink); background: transparent; }

.tier-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
.tier-card { min-height: 155px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.tier-card span { color: var(--muted); font-size: .7rem; }
.tier-card strong { display: block; margin: 8px 0 3px; font: 500 2.25rem Georgia,serif; }
.tier-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.tier-card i { display: block; height: 5px; margin-top: 14px; border-radius: 9px; background: var(--line); overflow: hidden; }
.tier-card i::after { content: ""; display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg,var(--violet),var(--acid)); }
.watch-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 11px; }
.panel { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 13px; }
.panel-head h2 { margin: 3px 0 0; font-size: 1rem; }
.panel-head > span { color: var(--muted); font-size: .7rem; }
.pipeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.pipe-stage { position: relative; min-width: 0; padding: 12px; border-radius: 10px; background: #f0efe9; }
.pipe-stage:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 17px; z-index: 2; color: var(--violet); font-weight: 900; }
.pipe-stage span { color: var(--muted); font-size: .64rem; }
.pipe-stage strong { display: block; margin: 6px 0 2px; font: 500 1.4rem Georgia,serif; }
.pipe-stage p { margin: 0; color: var(--muted); font-size: .68rem; }
.source-list { display: grid; }
.source-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.source-item:last-child { border: 0; }
.source-item a { overflow: hidden; font-size: .76rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.source-item span { color: var(--muted); font-size: .7rem; }
.monitor-panel { margin-top: 11px; }
.queue-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.queue-item { padding: 13px; border-radius: 10px; background: #f1f0ea; }
.queue-item span { color: var(--muted); font-size: .67rem; }
.queue-item strong { display: block; margin: 4px 0; font-size: 1rem; }
.queue-item p { margin: 0; color: var(--muted); font-size: .69rem; }

.stack-list { display: grid; gap: 9px; }
.stack-item { display: grid; grid-template-columns: minmax(0,1.3fr) 110px 110px 105px 150px 90px auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.stack-item h3 { margin: 0; font-size: .96rem; }
.stack-item p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.stack-item label { color: var(--muted); font-size: .68rem; }
.stack-item input { width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #f8f7f2; }
.stack-item button { border: 0; background: transparent; color: var(--red); }
.empty-state { padding: 45px 20px; border: 1px dashed #aaa69b; border-radius: 14px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }

.compare-dock { position: fixed; left: 50%; bottom: 18px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 13px; padding: 9px 10px 9px 15px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.compare-dock[hidden] { display: none; }
.compare-dock > button:not(.primary-button) { border: 0; background: transparent; color: #aaa; }
dialog { width: min(930px,calc(100% - 24px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 17px; color: var(--ink); background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(16,18,23,.76); backdrop-filter: blur(5px); }
.dialog-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 15px 19px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.96); font-weight: 850; }
.dialog-head button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eceae3; font-size: 1.2rem; }
.detail-layout { display: grid; grid-template-columns: 1.15fr .85fr; }
.detail-main, .detail-side { padding: 24px; }
.detail-side { border-left: 1px solid var(--line); background: #f5f4ef; }
.detail-main h1 { margin: 8px 0; font: 500 2.25rem Georgia,serif; }
.detail-main > p { color: var(--muted); }
.decision-block { margin-top: 22px; }
.decision-block h3 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.decision-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.decision-list li { position: relative; padding-left: 16px; font-size: .82rem; }
.decision-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--acid); border: 1px solid var(--ink); }
.fact-list { display: grid; gap: 0; }
.fact { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.fact span { color: var(--muted); }
.fact strong { text-align: right; }
.evidence-box { margin-top: 16px; padding: 13px; border-radius: 9px; background: white; }
.evidence-box p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.detail-actions a, .detail-actions button { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: .75rem; font-weight: 800; text-align: center; text-decoration: none; }
.detail-actions a { grid-column: 1/-1; color: white; background: var(--ink); border-color: var(--ink); }
.compare-content { padding: 20px; }
.compare-task { margin-bottom: 13px; padding: 12px 14px; border-radius: 9px; background: #eeebff; color: #4b4281; font-size: .78rem; }
.comparison-wrap { overflow-x: auto; }
.comparison { width: 100%; border-collapse: collapse; }
.comparison th, .comparison td { min-width: 150px; padding: 11px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .76rem; text-align: left; }
.comparison th:first-child, .comparison td:first-child { min-width: 110px; color: var(--muted); }
.ai-verdict { margin-top: 15px; padding: 15px; border-left: 3px solid var(--violet); border-radius: 0 9px 9px 0; background: #f0edff; }
.ai-verdict span { color: var(--violet); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.ai-verdict p { margin: 6px 0 0; font-size: .79rem; }
.submit-form { display: grid; gap: 13px; padding: 22px; }
.submit-form p { margin: 0; color: var(--muted); font-size: .78rem; }
.submit-form label { display: grid; gap: 5px; font-size: .76rem; font-weight: 800; }
.toast { position: fixed; right: 18px; top: 18px; z-index: 50; max-width: 350px; padding: 12px 15px; border-radius: 9px; color: white; background: var(--ink); transform: translateY(-160%); transition: .2s ease; box-shadow: var(--shadow); }
.toast.show { transform: translateY(0); }
.categories-dialog { width: min(1020px,calc(100% - 24px)); }
.all-categories-body { padding: 23px; }
.all-categories-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.all-categories-intro h2 { margin: 0; font: 500 1.7rem Georgia,"Noto Serif SC",serif; }
.all-categories-intro p { max-width: 450px; margin: 0; color: var(--muted); font-size: .875rem; }
.category-family-group { padding: 17px 0; border-top: 1px solid var(--line); }
.category-family-group:first-child { border-top: 0; }
.category-family-head { display: grid; grid-template-columns: 190px 1fr; gap: 18px; margin-bottom: 10px; }
.category-family-head h3 { margin: 0; font-size: 1rem; }
.category-family-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.all-category-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-left: 208px; }
.all-category-item { min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8f7f2; text-align: left; }
.all-category-item:hover { border-color: var(--violet); background: white; }
.all-category-item strong { display: block; font-size: .9rem; }
.all-category-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }

@media (max-width: 1180px) {
  .quick-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .decision-hero { grid-template-columns: 1fr; }
  .ask-box { max-width: 760px; width: 100%; }
  .recommendation { grid-template-columns: 145px minmax(0,1fr); }
  .rec-side { grid-column: 1/-1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; border-left: 0; border-top: 1px solid var(--line); }
  .rec-actions { display: flex; }
  .rec-actions a { grid-column: auto; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline { grid-template-columns: repeat(3,1fr); }
  .pipe-stage::after { display: none; }
}

@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 230px; transition: .2s ease; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: translateX(0); }
  main { padding: 12px 14px 60px; }
  .mobile-nav { display: block; }
  .topbar > div:first-of-type { margin-right: auto; }
  .top-actions .ghost-button { display: none; }
  .decision-hero { padding: 28px 21px; min-height: 0; }
  .category-hero { padding: 28px 21px; }
  .category-hero-head { grid-template-columns: 1fr; gap: 15px; align-items: start; }
  .category-hero-head h1 { font-size: clamp(2.4rem,10vw,4rem); }
  .quick-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .refine-panel { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy h1 { font-size: clamp(2.4rem,11vw,4rem); }
  .intent-strip { grid-template-columns: repeat(2,1fr); }
  .intent-chip { border-bottom: 1px solid var(--line); }
  .intent-chip:nth-child(even) { border-right: 0; }
  .recommendation { grid-template-columns: 1fr; }
  .verdict { min-height: 95px; }
  .rec-side { grid-template-columns: 1fr; }
  .view-intro { align-items: start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1/-1; }
  .watch-layout { grid-template-columns: 1fr; }
  .tier-board { grid-template-columns: 1fr; }
  .queue-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { border: 0; border-top: 1px solid var(--line); }
  .stack-item { grid-template-columns: 1fr 1fr; }
  .all-categories-intro { align-items: start; flex-direction: column; gap: 8px; }
  .category-family-head { grid-template-columns: 1fr; gap: 4px; }
  .all-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); margin-left: 0; }
}

@media (max-width: 580px) {
  .top-actions .primary-button, .top-label { display: none; }
  .decision-hero { border-radius: 16px; }
  .category-hero { border-radius: 16px; }
  .quick-category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 112px; }
  .category-hero-foot { align-items: stretch; flex-direction: column; }
  .all-category-button { width: 100%; }
  .ask-actions { align-items: stretch; flex-direction: column; }
  .scenario-row::before { width: 100%; }
  .start-grid, .catalog-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .intent-strip, .filters, .pipeline, .queue-grid { grid-template-columns: 1fr; }
  .intent-chip { border-right: 0; }
  .recommendation { display: block; }
  .view-intro { padding: 26px 22px; }
  .view-intro h1 { font-size: 2.25rem; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .compare-dock { width: calc(100% - 24px); justify-content: space-between; }
  .compare-dock span { font-size: .75rem; }
  .stack-item { grid-template-columns: 1fr; }
  .all-category-list { grid-template-columns: 1fr; }
  .all-categories-body { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 2026 visual refresh — independent product-intelligence identity */
:root {
  --ink: #14213d;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --muted: #667085;
  --line: #e2e7f0;
  --acid: #7de0d4;
  --violet: #3257d5;
  --blue: #3257d5;
  --green: #128577;
  --amber: #9a6100;
  --red: #bb4f50;
  --soft-blue: #edf2ff;
  --soft-teal: #e9f8f5;
  --shadow: 0 18px 45px rgba(31, 48, 86, .09);
}

body {
  background:
    radial-gradient(circle at 8% 5%, rgba(79, 112, 226, .07), transparent 25rem),
    var(--paper);
  color: var(--ink);
  letter-spacing: -.005em;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-color: #5172e5;
}

.app-shell { display: block; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1450px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
  border: 0;
  border-bottom: 1px solid rgba(211, 218, 232, .9);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 24px rgba(35, 49, 82, .04);
  backdrop-filter: blur(18px);
}
.brand { gap: 11px; padding: 0; letter-spacing: -.03em; }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2448c7, #5075eb);
  box-shadow: 0 8px 18px rgba(50, 87, 213, .24);
}
.brand-mark::before, .brand-mark::after, .brand-mark i {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid white;
  border-radius: 50%;
}
.brand-mark::after { inset: 15px; border: 0; background: var(--acid); }
.brand-mark i::before, .brand-mark i::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
}
.brand-mark i::before { width: 2px; height: 6px; left: 8px; top: -7px; box-shadow: 0 26px 0 rgba(255,255,255,.92); }
.brand-mark i::after { width: 6px; height: 2px; left: -7px; top: 8px; box-shadow: 26px 0 0 rgba(255,255,255,.92); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.03rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .62rem; font-weight: 650; letter-spacing: .08em; }
.nav-list { display: flex; justify-content: center; gap: 4px; }
.nav-item {
  width: auto;
  min-height: 42px;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  color: #5c6880;
  font-size: .86rem;
  font-weight: 720;
}
.nav-item:hover { color: var(--ink); background: #f1f4fa; }
.nav-item.active { color: #2749bf; background: var(--soft-blue); box-shadow: inset 0 0 0 1px rgba(50,87,213,.07); }
.nav-item span { width: auto; color: #8090ad; font-size: .88rem; }
.nav-item.active span { color: #3257d5; }
.nav-item b { color: #3257d5; background: white; box-shadow: 0 1px 4px rgba(50,87,213,.12); }
.sidebar-foot { margin: 0; padding: 0; border: 0; }
.sidebar-foot p { display: none; }
.system-state { padding: 8px 11px; border: 1px solid #dfe9e8; border-radius: 99px; color: #46615e; background: #f4fbfa; font-size: .7rem; }
.system-state i { width: 7px; height: 7px; background: #28a394; box-shadow: 0 0 0 4px rgba(40,163,148,.11); }

main { max-width: 1450px; padding: 16px 28px 80px; }
.topbar { min-height: 46px; margin-bottom: 14px; }
.top-label { color: #8490a7; letter-spacing: .15em; }
.topbar strong { color: #3c4962; }
.ghost-button, .primary-button, .text-button, .load-more { border-radius: 11px; }
.ghost-button { border-color: var(--line); background: rgba(255,255,255,.8); }
.ghost-button:hover { border-color: #c9d2e2; background: white; }
.primary-button {
  color: white;
  border: 1px solid #3257d5;
  background: #3257d5;
  box-shadow: 0 7px 16px rgba(50, 87, 213, .2);
}
.primary-button:hover { transform: translateY(-1px); background: #284ac1; box-shadow: 0 9px 20px rgba(50,87,213,.25); }
.text-button { color: #3257d5; }

.category-hero {
  padding: clamp(30px, 4.4vw, 62px);
  border: 1px solid #dfe6f4;
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 91% 5%, rgba(125,224,212,.48), transparent 18rem),
    radial-gradient(circle at 64% 0%, rgba(131,158,244,.2), transparent 24rem),
    linear-gradient(135deg, #f9fbff 0%, #edf3ff 58%, #effaf8 100%);
  box-shadow: 0 24px 65px rgba(54, 81, 142, .09);
}
.category-hero::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 7%;
  top: -105px;
  border: 1px solid rgba(50,87,213,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(50,87,213,.035), 0 0 0 68px rgba(50,87,213,.025);
}
.category-hero::after { display: none; }
.category-hero-head { grid-template-columns: minmax(0,1.1fr) minmax(290px,.48fr); align-items: center; }
.category-hero-head h1 {
  max-width: 760px;
  margin-top: 12px;
  font: 720 clamp(2.35rem,4.6vw,4.75rem)/1.02 Inter, ui-sans-serif, "PingFang SC", sans-serif;
  letter-spacing: -.065em;
}
.category-hero-head h1 em { color: #3257d5; font-style: normal; font-weight: 720; }
.hero-context { align-self: end; max-width: 490px; }
.hero-context > p { margin: 0; color: #63708a; font-size: .98rem; line-height: 1.75; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(159,177,215,.45);
  border-radius: 99px;
  color: #62708a;
  background: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 680;
  backdrop-filter: blur(8px);
}
.hero-proof strong { color: #294fc7; font-size: .8rem; }
.hero-proof i { width: 7px; height: 7px; border-radius: 50%; background: #28a394; box-shadow: 0 0 0 4px rgba(40,163,148,.1); }
.eyebrow { color: #237e73; letter-spacing: .13em; }
.eyebrow.dark { color: #3257d5; }
.family-tabs { margin-top: 34px; padding-bottom: 3px; }
.family-tab {
  border-color: rgba(82,103,144,.16);
  color: #596680;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(8px);
}
.family-tab:hover { border-color: #9cadd1; background: white; }
.family-tab.active { color: white; border-color: #3257d5; background: #3257d5; box-shadow: 0 7px 16px rgba(50,87,213,.19); }
.quick-category-grid { gap: 11px; }
.category-card {
  min-height: 142px;
  padding: 17px;
  border-color: rgba(187,199,221,.72);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.79);
  box-shadow: 0 8px 22px rgba(38,65,120,.055);
  backdrop-filter: blur(9px);
}
.category-card:hover { transform: translateY(-3px); border-color: #8da4e8; background: white; box-shadow: 0 14px 28px rgba(50,87,213,.12); }
.category-card.active { border-color: #3257d5; background: white; box-shadow: 0 0 0 2px rgba(50,87,213,.12), 0 14px 28px rgba(50,87,213,.11); }
.category-icon { color: #2b50c8; background: #edf2ff; border-radius: 11px; font-style: normal; }
.category-card:nth-child(3n+2) .category-icon { color: #117d70; background: #e8f8f4; }
.category-card:nth-child(3n) .category-icon { color: #aa6049; background: #fff0eb; }
.category-count { color: #7a879e; }
.category-card strong { color: #1c2944; }
.category-card small { color: #778298; }
.category-hero-foot > span { color: #758198; }
.all-category-button { color: #3153c5; border-color: #c9d5f5; background: rgba(255,255,255,.7); }
.all-category-button:hover { color: #2448bc; border-color: #8fa6e8; background: white; }

.refine-panel {
  margin-top: 14px;
  padding: 21px 23px;
  border-color: #e0e6f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(36,55,96,.045);
}
.refine-copy h2, .section-heading h2, .all-categories-intro h2 { font-family: Inter, ui-sans-serif, "PingFang SC", sans-serif; font-weight: 720; letter-spacing: -.025em; }
.refine-form textarea, .filters input, .filters select, .submit-form input { border-color: #dce3ee; background: #f8faff; }
.refine-form textarea:focus, .filters input:focus, .filters select:focus, .submit-form input:focus { border-color: #6f8be2; box-shadow: 0 0 0 4px rgba(50,87,213,.09); }
.task-panel { border-color: #d4def8; background: #f1f5ff; }
.task-panel > span { color: #3257d5; }
.task-chip { color: #2f4c9c; border-color: #d0daf3; border-radius: 10px; }
.task-chip:hover { border-color: #7390e5; background: #fbfcff; }

.intent-strip, .metrics { border-radius: 17px; box-shadow: 0 8px 25px rgba(38,55,91,.045); }
.recommendations { gap: 12px; }
.recommendation { border-radius: 18px; box-shadow: 0 7px 22px rgba(38,55,91,.04); }
.recommendation:hover { border-color: #b7c5df; }
.verdict { color: var(--ink); background: linear-gradient(150deg, #edf3ff, #e8f8f4); }
.recommendation:nth-child(2) .verdict { background: linear-gradient(150deg, #f3efff, #edf3ff); }
.recommendation:nth-child(3) .verdict { background: linear-gradient(150deg, #fff1eb, #fff8e9); }
.verdict b { color: #3257d5; }
.verdict strong, .rec-title h3 { font-family: Inter, ui-sans-serif, "PingFang SC", sans-serif; font-weight: 720; letter-spacing: -.025em; }
.rec-main > p, .product-card > p { color: #5f6b81; }
.reason { background: #f1f4f9; }
.reason.hit { color: #187467; background: #e8f7f3; }
.rec-side { background: #fafbfe; }
.evidence-badge, .tier-badge { color: #3154c7; background: #edf2ff; }
.rec-actions a, .detail-actions a { background: #24385f; border-color: #24385f; }

.view-intro {
  min-height: 245px;
  border: 1px solid #dfe6f4;
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(135deg, #eef3ff, #f8fbff 62%, #eaf8f5);
}
.view-intro h1 { font-family: Inter, ui-sans-serif, "PingFang SC", sans-serif; font-weight: 720; letter-spacing: -.055em; }
.view-intro > p { color: #68758d; }
.watch-intro { background: linear-gradient(135deg, #e9f7f4, #f8fbff 58%, #eef2ff); }
.myai-intro { background: linear-gradient(135deg, #f1edff, #fafbff 58%, #edf6ff); }
.catalog-grid { gap: 12px; }
.product-card { border-radius: 16px; box-shadow: 0 6px 20px rgba(38,55,91,.035); }
.product-card:hover { border-color: #b7c5df; }
.card-foot button { color: #3257d5; }
.tag { background: #f0f3f8; }
.tier-card, .panel { border-radius: 17px; box-shadow: 0 7px 23px rgba(38,55,91,.035); }
.tier-card strong, .metric strong, .pipe-stage strong { font-family: Inter, ui-sans-serif, sans-serif; font-weight: 720; }
.tier-card i::after { background: linear-gradient(90deg,#3257d5,#37b4a5); }
.pipe-stage, .queue-item { background: #f4f7fb; }
.pipe-stage:not(:last-child)::after { color: #5271d9; }
.compare-dock { border-color: #334c7c; background: #172744; box-shadow: 0 18px 50px rgba(20,33,61,.3); }
dialog { border-radius: 22px; box-shadow: 0 30px 90px rgba(20,33,61,.3); }
dialog::backdrop { background: rgba(25,35,57,.56); }
.dialog-head { background: rgba(255,255,255,.94); }
.dialog-head button { color: #47536a; background: #f0f3f8; }
.detail-side { background: #f7f9fc; }
.decision-list li::before { border: 0; background: #36ad9f; }
.compare-task, .ai-verdict { color: #304eab; background: #eef3ff; }
.all-category-item { border-radius: 12px; background: #f8faff; }
.all-category-item:hover { border-color: #829be3; }
.toast { background: #1b2a49; }

@media (prefers-reduced-motion: no-preference) {
  .view.active { animation: view-enter .42s cubic-bezier(.22,.8,.3,1) both; }
  .category-card { animation: card-enter .48s cubic-bezier(.22,.8,.3,1) both; }
  .category-card:nth-child(2) { animation-delay: 35ms; }
  .category-card:nth-child(3) { animation-delay: 70ms; }
  .category-card:nth-child(4) { animation-delay: 105ms; }
  .category-card:nth-child(5) { animation-delay: 140ms; }
  .category-card:nth-child(6) { animation-delay: 175ms; }
  .category-card:nth-child(7) { animation-delay: 210ms; }
  .category-card:nth-child(8) { animation-delay: 245ms; }
  .system-state i { animation: status-breathe 2.8s ease-in-out infinite; }
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes status-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(40,163,148,.1); }
  50% { box-shadow: 0 0 0 7px rgba(40,163,148,.04); }
}

.detail-layout.single-column { grid-template-columns: minmax(0, 1fr); }
.detail-layout.single-column .detail-main { max-width: 920px; }
.detail-block { padding: 20px 0; border-top: 1px solid #e8e0dc; }
.detail-block:first-child { padding-top: 0; border-top: 0; }
.section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.section-index { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #4b2b58; background: #f1ecf7; font-size: .72rem; font-weight: 900; }
.section-head h2 { margin: 0; font-size: .95rem; }
.section-note { margin-left: auto; color: #8b8492; font-size: .66rem; }
.fact-badge { padding: 3px 8px; border-radius: 99px; font-size: .6rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.fact-badge.official { color: #166f64; background: #ddf3ed; }
.fact-badge.analysis { color: #6446dd; background: #f0ecff; }
.fact-badge.pending { color: #8a641d; background: #fff0cd; }
.fact-badge.tested { color: #1e5aa8; background: #e4eeff; }
.fact-badge.discovery { color: #6b6670; background: #eceff4; }
.fact-badge.thirdParty { color: #8a4a1d; background: #ffeeda; }
.fact-badge.user { color: #a23f38; background: #fde8e4; }
.fact-badge.corrected { color: #6d4a1f; background: #f6ecdd; }
.overview-head { display: flex; gap: 16px; align-items: flex-start; }
.product-logo.large { width: 58px; height: 58px; border-radius: 15px; font-size: 1.3rem; }
.overview-title { min-width: 0; }
.overview-title h1 { margin: 6px 0; }
.overview-line { margin: 0 0 10px; color: #5f5562; font-size: .86rem; line-height: 1.6; }
.overview-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.overview-strip > div { padding: 10px 12px; border-radius: 10px; background: #faf6f3; }
.overview-strip span { display: block; color: #8b8492; font-size: .62rem; }
.overview-strip strong { display: block; margin: 3px 0 2px; font-size: .84rem; overflow-wrap: anywhere; }
.overview-strip small { color: #8b8492; font-size: .62rem; }
.overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.overview-actions a.primary-button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; font-weight: 850; text-decoration: none; }
.overview-actions button { min-height: 40px; padding: 8px 13px; border: 1px solid #e4dad7; border-radius: 10px; background: #fffdfb; font-size: .74rem; font-weight: 800; }
.why-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.block-verdict { flex: 1 1 320px; margin: 0; color: #4d4450; font-size: .84rem; line-height: 1.6; }
.block-note { margin: 10px 0 0; color: #7c7280; font-size: .74rem; line-height: 1.6; }
.block-note.stale { color: #9b5b00; font-weight: 800; }
.block-source { margin: 10px 0 0; color: #8b8492; font-size: .68rem; }
.block-source a { color: #6848e4; text-decoration: none; }
.why-grid, .choose-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.why-grid > div, .choose-grid > div { padding: 13px 14px; border: 1px solid #ece3e0; border-radius: 12px; background: #fffaf7; }
.why-grid strong, .choose-grid strong { display: block; margin-bottom: 7px; color: #514755; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.why-grid ul, .choose-grid ul { display: grid; gap: 6px; margin: 0; padding-left: 16px; color: #4d4450; font-size: .76rem; line-height: 1.5; }
.choose-grid .choose-if { border-color: #d9ecdf; background: #f7fdf9; }
.choose-grid .skip-if { border-color: #f2e0d9; background: #fff9f6; }
.capability-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pending-chip { padding: 5px 9px; border-radius: 99px; color: #8b8492; background: #f3f1ee; font-size: .68rem; }
.workflow-list { display: grid; gap: 6px; margin: 14px 0 0; padding-left: 20px; color: #4d4450; font-size: .78rem; line-height: 1.5; }
.workflow-list li::marker { color: #a08cd8; font-weight: 900; }
.io-flow { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px; border-radius: 12px; background: #faf6f3; }
.io-flow > div { flex: 1 1 0; min-width: 0; }
.io-flow span { display: block; margin-bottom: 6px; color: #8b8492; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.io-arrow { flex: 0 0 auto; color: #b6a8c9; font-size: 1.1rem; font-style: normal; }
.fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.fact-grid > div { padding: 11px 13px; border-radius: 10px; background: #faf6f3; }
.fact-grid span { display: block; color: #8b8492; font-size: .62rem; }
.fact-grid strong { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-summary { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 12px; }
.evidence-drawer summary { cursor: pointer; color: #6848e4; font-size: .76rem; font-weight: 850; }
.evidence-drawer-body { display: grid; gap: 14px; margin-top: 12px; padding: 15px; border: 1px solid #e8e0ee; border-radius: 12px; background: #fbf9ff; }
.evidence-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.evidence-meta span { display: block; color: #8b8492; font-size: .62rem; }
.evidence-meta strong { font-size: .74rem; }
.evidence-group { display: grid; gap: 5px; }
.evidence-group strong { color: #514755; font-size: .72rem; letter-spacing: .04em; }
.evidence-group a { overflow: hidden; color: #6848e4; font-size: .7rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.evidence-group p, .evidence-legend { margin: 0; color: #7c7280; font-size: .68rem; line-height: 1.6; }
.alternative-list { display: grid; gap: 8px; }
.alternative-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid #ece3e0; border-radius: 11px; background: #fffaf7; }
.alternative-item p { margin: 3px 0 0; color: #7c7280; font-size: .68rem; }
.alternative-item button { min-height: 34px; padding: 6px 10px; border: 1px solid #ded2ea; border-radius: 8px; color: #6848e4; background: white; font-size: .68rem; font-weight: 850; }
.change-list.compact .change-item { padding: 10px 12px; }

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    left: auto;
    transform: none;
    width: 100%;
    height: 68px;
    grid-template-columns: auto 1fr;
    padding: 0 16px;
    transition: none;
    box-shadow: 0 5px 25px rgba(31,48,86,.08);
  }
  .brand-copy small, .sidebar-foot { display: none; }
  .nav-list {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    top: 76px;
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 20px 60px rgba(25,39,70,.18);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
  }
  body.nav-open .nav-list { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-item { width: 100%; }
  main { padding: 10px 15px 60px; }
  .mobile-nav { display: block; }
  .category-hero-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

@media (max-width: 580px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-copy strong { font-size: .95rem; }
  .topbar { min-height: 42px; }
  .category-hero { padding: 27px 19px 21px; border-radius: 22px; }
  .category-hero-head h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
  .hero-context > p { font-size: .9rem; }
  .hero-proof { margin-top: 0; }
  .family-tabs { margin-top: 27px; }
  .category-card { min-height: 110px; }
  .refine-panel { padding: 18px; }
  .view-intro { border-radius: 22px; }
}

/* Signature palette — Twilight Coral */
:root {
  --ink: #24182f;
  --paper: #faf6f1;
  --panel: #fffdf9;
  --muted: #746b78;
  --line: #e8dfd8;
  --acid: #ffd08a;
  --violet: #6c4df6;
  --blue: #6c4df6;
  --green: #137f72;
  --amber: #9b5d18;
  --red: #bd493e;
  --soft-blue: #f1edff;
  --soft-teal: #eaf7f3;
  --shadow: 0 20px 50px rgba(70, 39, 73, .1);
}

body {
  background:
    radial-gradient(circle at 4% 4%, rgba(239,102,84,.09), transparent 24rem),
    radial-gradient(circle at 93% 12%, rgba(108,77,246,.065), transparent 26rem),
    var(--paper);
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #7b61ef; }
.sidebar { border-bottom-color: rgba(224,213,207,.94); box-shadow: 0 4px 24px rgba(74,45,71,.045); }
.brand-mark { background: linear-gradient(145deg, #6749ed 8%, #ef6654 96%); box-shadow: 0 9px 20px rgba(128,72,133,.24); }
.nav-item:hover { background: #f7f0ed; }
.nav-item.active { color: #b74338; background: #fff0ec; box-shadow: inset 0 0 0 1px rgba(218,79,64,.08); }
.nav-item.active span { color: #d65345; }
.nav-item b { color: #6c4df6; box-shadow: 0 1px 4px rgba(108,77,246,.12); }
.system-state { color: #46645e; border-color: #dce9e3; background: #f3faf7; }

.primary-button {
  border-color: #cf493c;
  background: #cf493c;
  box-shadow: 0 8px 18px rgba(207,72,58,.22);
}
.primary-button:hover { background: #b93b31; box-shadow: 0 10px 24px rgba(185,59,49,.27); }
.text-button, .card-foot button { color: #6848e4; }

.category-hero {
  border-color: #eadfdc;
  background:
    radial-gradient(circle at 91% 5%, rgba(255,190,151,.52), transparent 18rem),
    radial-gradient(circle at 66% 0%, rgba(155,132,249,.2), transparent 25rem),
    linear-gradient(135deg, #fffaf5 0%, #f7efff 57%, #fff1e9 100%);
  box-shadow: 0 25px 70px rgba(89,54,92,.1);
}
.category-hero::before {
  border-color: rgba(222,86,70,.14);
  box-shadow: 0 0 0 34px rgba(239,102,84,.045), 0 0 0 68px rgba(108,77,246,.025);
}
.category-hero-head h1 em { color: #de5646; }
.eyebrow { color: #a84339; }
.eyebrow.dark { color: #6848e4; }
.hero-proof span { border-color: rgba(157,126,164,.34); color: #716776; background: rgba(255,253,249,.62); }
.hero-proof strong { color: #6848e4; }
.family-tab { color: #665d6d; border-color: rgba(116,89,125,.16); background: rgba(255,253,249,.68); }
.family-tab:hover { border-color: #bdaabf; }
.family-tab.active { border-color: #382044; background: #382044; box-shadow: 0 8px 19px rgba(56,32,68,.2); }
.category-card { border-color: rgba(204,188,200,.76); background: rgba(255,253,249,.82); box-shadow: 0 8px 23px rgba(70,39,73,.055); }
.category-card:hover { border-color: #c49ab2; box-shadow: 0 15px 32px rgba(99,52,94,.12); }
.category-card.active { border-color: #6c4df6; box-shadow: 0 0 0 2px rgba(108,77,246,.12), 0 15px 30px rgba(82,53,136,.11); }
.category-icon { color: #6848e4; background: #f0ecff; }
.category-card:nth-child(3n+2) .category-icon { color: #b2483c; background: #fff0ea; }
.category-card:nth-child(3n) .category-icon { color: #117a6e; background: #e8f6f2; }
.all-category-button { color: #6949df; border-color: #d8cbf5; background: rgba(255,253,249,.7); }
.all-category-button:hover { color: #5839d4; border-color: #a992e7; }

.refine-panel, .intent-strip, .metrics, .recommendation, .product-card, .tier-card, .panel { border-color: var(--line); }
.refine-form textarea, .filters input, .filters select, .submit-form input { border-color: #e4dad7; background: #fdf9f6; }
.refine-form textarea:focus, .filters input:focus, .filters select:focus, .submit-form input:focus { border-color: #9a82ec; box-shadow: 0 0 0 4px rgba(108,77,246,.09); }
.task-panel { border-color: #ded3fa; background: #f4f0ff; }
.task-panel > span { color: #6848e4; }
.task-chip { color: #5c469f; border-color: #ddd2f3; }
.task-chip:hover { border-color: #947ee0; }

.verdict { background: linear-gradient(150deg, #f2edff, #fff1eb); }
.recommendation:nth-child(2) .verdict { background: linear-gradient(150deg, #fff0e9, #fff8ea); }
.recommendation:nth-child(3) .verdict { background: linear-gradient(150deg, #eaf7f3, #f3efff); }
.verdict b { color: #d65345; }
.reason.hit { color: #187267; background: #e7f6f1; }
.evidence-badge, .tier-badge { color: #6446dd; background: #f0ecff; }
.rec-actions a, .detail-actions a { background: #34213f; border-color: #34213f; }

.view-intro { border-color: #eadfdc; background: linear-gradient(135deg, #fff2eb, #faf4ff 58%, #fffaf3); }
.watch-intro { background: linear-gradient(135deg, #eaf7f3, #fffaf5 56%, #f2edff); }
.myai-intro { background: linear-gradient(135deg, #f2edff, #fff8f2 56%, #ffefea); }
.sync-state { display:inline-flex; align-items:center; gap:.45rem; margin-top:.8rem; color:var(--muted); font-size:.82rem; }
.sync-state::before { content:""; width:.48rem; height:.48rem; border-radius:50%; background:#8b8b83; }
.sync-state[data-state="synced"]::before { background:#177a50; }
.sync-state[data-state="syncing"]::before, .sync-state[data-state="pending"]::before { background:#ba7414; }
.sync-state[data-state="offline"]::before { background:#b24a3d; }
.product-card:hover, .recommendation:hover { border-color: #cdb8c5; }
.tag, .pipe-stage, .queue-item { background: #f7f1ee; }
.tier-card i::after { background: linear-gradient(90deg,#6c4df6,#ef6654); }
.pipe-stage:not(:last-child)::after { color: #7a59e8; }
.compare-dock { border-color: #50315e; background: #2d1c39; box-shadow: 0 18px 50px rgba(45,28,57,.32); }
dialog::backdrop { background: rgba(46,29,53,.56); }
.compare-task, .ai-verdict { color: #5d43c7; background: #f1edff; }
.all-category-item { background: #fdf9f6; }
.all-category-item:hover { border-color: #aa91d9; }
.toast { background: #34213f; }

/* Adaptive decision layer: performance, price and progressive expertise */
.result-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.adaptive-status { color: #776b79; font-size: .72rem; }
.preference-button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #dfd3dd;
  border-radius: 10px;
  color: #65466f;
  background: #fffdf9;
  font-size: .75rem;
  font-weight: 800;
}
.preference-button:hover { border-color: #a98bb4; background: #fff9f5; }
.preference-panel {
  display: grid;
  grid-template-columns: minmax(190px,.75fr) minmax(0,1.5fr) auto;
  gap: 16px;
  align-items: center;
  margin: -2px 0 13px;
  padding: 14px 16px;
  border: 1px solid #e6dadf;
  border-radius: 15px;
  background: linear-gradient(120deg,#fffaf6,#f8f3ff);
}
.preference-panel[hidden] { display: none; }
.preference-panel > div:first-child { display: grid; }
.preference-panel > div:first-child strong { font-size: .84rem; }
.preference-panel > div:first-child span { color: var(--muted); font-size: .7rem; }
.preference-options { display: flex; flex-wrap: wrap; gap: 6px; }
.preference-options button, .reset-profile {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #ded4df;
  border-radius: 9px;
  color: #66586b;
  background: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 750;
}
.preference-options button.active { color: white; border-color: #4b2b58; background: #4b2b58; }
.reset-profile { border: 0; color: #806f80; background: transparent; }

.decision-signals {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin: 13px 0 11px;
}
.signal {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e5dce4;
  border-radius: 11px;
  background: #fcfaf8;
}
.signal span, .detail-decision-grid span, .professional-grid span { display: block; margin-bottom: 4px; color: #827685; font-size: .64rem; font-weight: 800; letter-spacing: .04em; }
.signal strong, .detail-decision-grid strong, .professional-grid strong { display: block; color: var(--ink); font-size: .78rem; line-height: 1.35; }
.signal small, .detail-decision-grid small { display: block; margin-top: 4px; color: #887f8c; font-size: .63rem; line-height: 1.4; }
.signal.performance { border-color: #ded3fa; background: #f7f4ff; }
.signal.performance > span { color: #6c4df6; }
.signal.price { border-color: #f0d7ce; background: #fff7f2; }
.signal.price > span { color: #c34b3e; }
.signal.ease { border-color: #d3e9e3; background: #f2faf7; }
.signal.ease > span { color: #137f72; }
.pro-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 3px solid #6c4df6;
  border-radius: 0 9px 9px 0;
  color: #665d6d;
  background: #f5f1ff;
  font-size: .68rem;
}
.pro-snapshot b { color: #6042d1; }

.detail-decision-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 19px 0 8px;
}
.detail-decision-grid > div { padding: 12px; border: 1px solid #e5dce4; border-radius: 12px; background: #fcfaf8; }
.detail-decision-grid > div:nth-child(1) { background: #f7f4ff; }
.detail-decision-grid > div:nth-child(2) { background: #fff7f2; }
.detail-decision-grid > div:nth-child(3) { background: #f2faf7; }
.professional-details { margin-top: 20px; border: 1px solid #ded4e4; border-radius: 13px; background: #faf7ff; }
.professional-details summary { padding: 12px 14px; color: #5f4771; font-size: .78rem; font-weight: 850; cursor: pointer; }
.professional-details[open] summary { border-bottom: 1px solid #e4daeb; }
.professional-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 13px 14px 5px; }
.professional-grid > div { padding: 10px; border-radius: 9px; background: white; }
.professional-details > p { margin: 8px 14px 14px; color: var(--muted); font-size: .68rem; }

.performance-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #ded3fa;
  border-radius: 14px;
  background: linear-gradient(135deg,#faf8ff,#f5f1ff);
}
.performance-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.performance-panel-head span { color: #776987; font-size: .66rem; font-weight: 800; }
.performance-panel-head h3 { margin: 2px 0 0; color: #39254d; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.performance-state { padding: 5px 8px; border-radius: 99px; font-size: .65rem; white-space: nowrap; }
.performance-state.pending { color: #8b641d; background: #fff0cd; }
.performance-state.tested { color: #166f64; background: #ddf3ed; }
.performance-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.performance-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #e9e1f2; border-radius: 9px; background: rgba(255,255,255,.8); }
.performance-metrics span { color: #5f5667; font-size: .7rem; }
.performance-metrics strong { color: #765b28; font-size: .7rem; }
.performance-panel > p { margin: 10px 1px 0; color: #7b7180; font-size: .66rem; }

/* Evaluation, community submissions and clearly separated promotion */
.product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 8px 0 3px;
}
.rating-stars { display: inline-flex; gap: 1px; }
.rating-stars i { color: #d8ced1; font-size: .82rem; font-style: normal; }
.rating-stars i.filled { color: #e59b32; text-shadow: 0 1px 0 rgba(120,69,12,.12); }
.product-rating strong { color: #70441f; font-size: .78rem; }
.product-rating small { color: #847984; font-size: .64rem; }
.product-rating button { padding: 2px 0; border: 0; color: #6848e4; background: transparent; font-size: .64rem; font-weight: 850; }
.product-rating button:disabled { color: #9a8fa0; cursor: wait; }
.product-rating.pending .rating-stars i { color: #ddd4d7; }
.product-rating.compact { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #eee5e4; }
.product-rating.compact .rating-stars i { font-size: .76rem; }

.llm-evaluation { margin: 13px 0 16px; padding: 15px; border: 1px solid #dfd3fa; border-radius: 14px; background: linear-gradient(135deg,#faf7ff,#fffaf5); }
.llm-evaluation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.llm-evaluation-head span { color: #6c4df6; font-size: .64rem; font-weight: 850; }
.llm-evaluation-head h3 { margin: 4px 0 0; color: #33213f; font-size: .93rem; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.llm-evaluation-head > b { flex: 0 0 auto; padding: 5px 7px; border-radius: 99px; color: #187267; background: #e7f6f1; font-size: .62rem; }
.evaluation-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.evaluation-columns > div { padding: 10px 11px; border: 1px solid #ebe1eb; border-radius: 10px; background: rgba(255,255,255,.72); }
.evaluation-columns strong { color: #6a586d; font-size: .67rem; }
.evaluation-columns ul { margin: 6px 0 0; padding-left: 17px; color: #5f5562; font-size: .7rem; line-height: 1.65; }
.llm-evaluation > p { margin: 10px 0 7px; color: #5f5562; font-size: .7rem; }
.evaluation-sources { display: grid; gap: 3px; }
.evaluation-sources a { overflow: hidden; color: #6848e4; font-size: .64rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.llm-evaluation time { display: block; margin-top: 8px; color: #988e99; font-size: .6rem; }

.community-shelf {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(250px,.72fr);
  gap: 12px;
  margin: 12px 0;
}
.latest-submissions-panel, .explore-ad-slot {
  min-width: 0;
  border: 1px solid #e5dadd;
  border-radius: 17px;
  background: rgba(255,253,249,.86);
  box-shadow: 0 7px 23px rgba(62,40,67,.035);
}
.latest-submissions-panel { padding: 16px; }
.community-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.community-head span, .explore-ad-slot > span { color: #9b5148; font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.community-head h2 { margin: 2px 0 0; font-size: 1rem; }
.submit-app-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8c7ce;
  border-radius: 10px;
  color: #5d3f66;
  background: #fffaf7;
  font-size: .73rem;
  font-weight: 850;
}
.latest-submissions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.submission-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid #eee4e2;
  border-radius: 11px;
  color: inherit;
  background: #fffdfa;
  text-decoration: none;
}
.submission-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #6b4bd9; background: #f1ecff; font-weight: 900; }
.submission-item div { min-width: 0; display: grid; }
.submission-item strong, .submission-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submission-item strong { font-size: .75rem; }
.submission-item small { color: var(--muted); font-size: .64rem; }
.submission-item b { color: #9a722a; font-size: .6rem; }
.submission-empty { grid-column: 1/-1; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px dashed #d8c7ce; border-radius: 11px; color: #66576a; background: #fffaf7; }
.submission-empty span { color: #6c4df6; font-size: .72rem; font-weight: 850; }

.explore-ad-slot { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px; background: linear-gradient(145deg,#f4efff,#fff4ed); }
.explore-ad-slot strong { margin-top: 8px; color: #34213f; font-size: .95rem; }
.explore-ad-slot p { margin: 5px 0 13px; color: #786c7b; font-size: .7rem; line-height: 1.5; }
.explore-ad-slot a, .explore-ad-slot button { padding: 0; border: 0; color: #6848e4; background: transparent; font-size: .72rem; font-weight: 850; text-decoration: none; }

/* Account and verified submission workflow */
.account-button { min-height: 44px; padding: 9px 13px; border: 1px solid #dfd3d5; border-radius: 11px; color: #5d4664; background: rgba(255,255,255,.78); font-size: .76rem; font-weight: 850; }
.account-intro { background: linear-gradient(135deg,#f2edff,#fff8f2 58%,#eaf7f3); }
.account-guest { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 12px; padding: 25px; border: 1px solid #e5dadd; border-radius: 17px; background: #fffdfa; }
.account-guest h2 { margin: 4px 0 0; font-size: 1.15rem; }
.account-guest-actions { display: flex; gap: 8px; }
.account-dashboard { display: grid; gap: 12px; margin-top: 12px; }
.account-dashboard[hidden], .account-guest[hidden] { display: none; }
.account-profile-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid #e5dadd; border-radius: 16px; background: #fffdfa; }
.account-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg,#6c4df6,#ef6654); font-weight: 900; }
.account-profile-card > div:nth-child(2) { min-width: 0; display: grid; }
.account-profile-card strong { font-size: .9rem; }
.account-profile-card span { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-card button { border: 0; color: #8a5960; background: transparent; font-size: .7rem; font-weight: 800; }
.my-submissions { display: grid; gap: 8px; }
.my-submission { padding: 14px; border: 1px solid #eae0df; border-radius: 12px; background: #fffdfa; }
.submission-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.submission-summary > div { min-width: 0; display: grid; }
.submission-summary strong { font-size: .84rem; }
.submission-summary a { overflow: hidden; color: #766a77; font-size: .65rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.submission-status { padding: 5px 8px; border-radius: 99px; color: #8a641d; background: #fff0cd; font-size: .62rem; white-space: nowrap; }
.submission-status.approved { color: #166f64; background: #ddf3ed; }
.submission-status.verification_failed, .submission-status.rejected { color: #a23f38; background: #fde8e4; }
.submission-status.duplicate { color: #6446dd; background: #f0ecff; }
.my-submission > p { margin: 9px 0; color: #665d69; font-size: .72rem; }
.verification-track { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.verification-track span { position: relative; padding: 7px 5px; border-radius: 7px; color: #958b97; background: #f5f1f1; font-size: .62rem; text-align: center; }
.verification-track span.done { color: #166f64; background: #e5f5f0; }
.verification-track span.failed { color: #a23f38; background: #fde8e4; }
.my-submission time { display: block; margin-top: 8px; color: #9a909a; font-size: .6rem; }
.account-moderation[hidden] { display: none; }
.moderation-list { display: grid; gap: 8px; }
.moderation-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 13px; align-items: center; padding: 13px; border: 1px solid #eae0df; border-radius: 11px; background: #fffdfa; }
.moderation-item > div:first-child { min-width: 0; display: grid; }
.moderation-item strong { font-size: .8rem; }
.moderation-item a { overflow: hidden; color: #6848e4; font-size: .64rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.moderation-item p { margin: 5px 0 0; color: #716773; font-size: .68rem; }
.moderation-actions { display: flex; gap: 5px; }
.moderation-actions button { min-height: 34px; padding: 6px 9px; border: 1px solid #dfd3d8; border-radius: 8px; color: #60496a; background: white; font-size: .67rem; font-weight: 850; }
.moderation-actions button:first-child { color: white; border-color: #187267; background: #187267; }
.moderation-actions button:disabled { opacity: .4; }

.auth-dialog { width: min(450px,calc(100% - 24px)); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 14px 18px 0; }
.auth-tabs button { min-height: 40px; border: 1px solid #e2d7dc; border-radius: 9px; color: #786a7a; background: #fffaf7; font-size: .74rem; font-weight: 850; }
.auth-tabs button.active { color: white; border-color: #4b2b58; background: #4b2b58; }
.auth-form { display: grid; gap: 12px; padding: 18px; }
.auth-form label { display: grid; gap: 5px; color: #514755; font-size: .72rem; font-weight: 850; }
.auth-form input { width: 100%; padding: 11px 12px; border: 1px solid #e4dad7; border-radius: 9px; outline: 0; background: #fdf9f6; }
.auth-form input:focus { border-color: #9a82ec; box-shadow: 0 0 0 4px rgba(108,77,246,.09); }
.form-error { min-height: 1em; margin: 0; color: #b4463c; font-size: .68rem; }

.product-rating.stale { border-color: #f0d9a8; background: #fffaf0; }
.product-rating.stale small { color: #8a641d; }
.evaluation-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e2d8ef; }
.evaluation-foot time { margin: 0; }
.evaluation-foot span { color: #7c7280; font-size: .62rem; }
.evaluation-foot span.stale { color: #9b5b00; font-weight: 800; }
.evaluation-foot button { margin-left: auto; min-height: 30px; padding: 5px 9px; border: 1px solid #ded2ea; border-radius: 8px; color: #6848e4; background: white; font-size: .64rem; font-weight: 850; }
.evaluation-foot button:hover { border-color: #b9a4f3; background: #faf7ff; }

.change-panel { margin-top: 18px; }
.change-list { display: grid; gap: 8px; }
.change-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid #e6dcd9; border-radius: 11px; background: #fffaf7; }
.change-item strong { display: block; margin: 3px 0 2px; font-size: .82rem; }
.change-item p { margin: 0; color: #5f5562; font-size: .7rem; line-height: 1.5; }
.change-item small { display: block; margin-top: 4px; color: #8a8290; font-size: .64rem; }
.change-type, .report-type { display: inline-block; padding: 2px 6px; border-radius: 99px; color: #5c4a86; background: #f0ecff; font-size: .58rem; font-weight: 900; letter-spacing: .04em; }
.change-item.status .change-type { color: #a23f38; background: #fde8e4; }
.change-item.price .change-type { color: #8a641d; background: #fff0cd; }
.change-item.evaluation .change-type { color: #166f64; background: #ddf3ed; }
.change-item.evidence .change-type { color: #5b6470; background: #eceff4; }
.change-item.submission .change-type { color: #6446dd; background: #f0ecff; }
.change-meta { flex: 0 0 auto; display: grid; gap: 5px; justify-items: end; }
.change-meta a { color: #6848e4; font-size: .64rem; text-decoration: none; }
.change-meta time { color: #9a929c; font-size: .62rem; }

.report-product { margin: 0; color: #5f5562; font-size: .72rem; font-weight: 850; }
.submit-form select, .submit-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #e4dad7; border-radius: 9px; outline: 0; background: #fdf9f6; font: inherit; }
.submit-form textarea { resize: vertical; }
.submission-status.open { color: #8a641d; background: #fff0cd; }
.submission-status.accepted { color: #166f64; background: #ddf3ed; }
.submission-status.dismissed { color: #6b6670; background: #eceff4; }
.report-resolution { margin: 4px 0 0; color: #166f64; font-size: .66rem; }

.capability-group { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: start; gap: 10px; margin-top: 10px; }
.capability-group .capability-row { margin-top: 0; }
.capability-group-label { padding-top: 5px; color: #6b6076; font-size: .68rem; font-weight: 850; letter-spacing: .02em; }
.workflow-block { margin-top: 12px; }
.workflow-block > strong { display: block; margin-bottom: 6px; color: #3d3247; font-size: .72rem; }
.workflow-block .workflow-list { margin-top: 0; }
.pricing-variant { margin-top: 12px; }
.pricing-variant:first-of-type { margin-top: 0; }
.pricing-variant-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pricing-variant-head strong { color: #3d3247; font-size: .78rem; }
.pricing-variant-head a { color: #7a5cc4; font-size: .66rem; font-weight: 700; text-decoration: none; }
.plan-list { display: grid; gap: 6px; }
.plan-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 4px 10px; padding: 9px 11px; border: 1px solid #e9e1f2; border-radius: 9px; background: rgba(255,255,255,.82); }
.plan-row span { color: #4c4257; font-size: .74rem; font-weight: 750; }
.plan-row strong { color: #7a5cc4; font-size: .78rem; }
.plan-row small { grid-column: 1 / -1; color: #6f667a; font-size: .66rem; }
.fact-grid strong.pending-value { color: #8b8595; font-weight: 700; }
.block-note.task-note { padding: 9px 11px; border: 1px dashed #ddd2ea; border-radius: 9px; background: rgba(122,92,196,.05); }
.block-note.task-note span { color: #7d7488; font-size: .66rem; }
.quality-gate { margin: 10px 0; padding: 10px 11px; border: 1px solid #d9efe9; border-radius: 9px; background: rgba(22,111,100,.05); }
.quality-gate strong { display: block; color: #166f64; font-size: .72rem; }
.quality-gate ul { margin: 6px 0 0; padding-left: 16px; }
.quality-gate li, .quality-gate p { margin: 3px 0 0; color: #5c6b68; font-size: .68rem; }
.quality-gate.downgraded, .quality-gate.review { border-color: #f0dfb8; background: rgba(240,169,20,.07); }
.quality-gate.downgraded strong, .quality-gate.review strong { color: #7a5c14; }
.quality-gate.downgraded li, .quality-gate.review p, .quality-gate.downgraded p, .quality-gate.review li { color: #6b5c3c; }

/* Behavioral exploration */
.hero-context > p { max-width: 430px; margin: 0 0 14px; color: #6f6577; font-size: .9rem; line-height: 1.65; }
.current-intent-panel { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(240px,1fr) minmax(220px,1fr) auto; gap: 16px; align-items: center; margin-top: 24px; padding: 13px 15px; border: 1px solid rgba(255,208,138,.32); border-radius: 13px; background: rgba(255,255,255,.07); }
.current-intent-panel > div:first-child { display: grid; }
.current-intent-panel span, .current-intent-panel small { color: #d0c6d3; font-size: .68rem; }
.current-intent-panel strong { margin: 2px 0; color: white; font-size: .9rem; }
.current-intent-panel .text-button { color: var(--acid); white-space: nowrap; }
.intent-controls { display: grid; justify-items: end; }
.intent-controls .text-button { min-height: 28px; font-size: .68rem; }
.intent-live-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.intent-live-tags span { padding: 5px 8px; border-radius: 99px; color: #2d1c39; background: var(--acid); font-weight: 800; }
.adaptive-explore { margin-top: 22px; }
.explore-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.explore-lanes.ranked-browse { grid-template-columns: minmax(0,1fr); }
.explore-lane { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.explore-lane > span { color: var(--violet); font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.explore-lane h3 { margin: 5px 0 3px; font-size: 1rem; }
.explore-lane > p { min-height: 2.8em; margin: 0 0 12px; color: var(--muted); font-size: .72rem; }
.explore-product-list { display: grid; gap: 7px; }
.explore-product { width: 100%; min-height: 58px; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid #eee5e2; border-radius: 10px; background: #fffaf7; text-align: left; }
.explore-product:hover { border-color: #cbb7d9; transform: translateY(-1px); }
.explore-product .product-logo { width: 35px; height: 35px; border-radius: 9px; }
.explore-product div { min-width: 0; }
.explore-product strong, .explore-product small { display: block; overflow-wrap: anywhere; }
.explore-product strong { font-size: .78rem; }
.explore-product small { color: var(--muted); font-size: .63rem; }
.explore-product b { color: var(--violet); font-size: .9rem; }
.browse-anchors, .browse-more { padding: 20px; border: 1px solid #e1e6ef; border-radius: 18px; background: #fbfcfe; }
.browse-more { margin-top: 12px; }
.browse-subhead h3 { margin: 0; font-size: 1.05rem; }
.browse-subhead p { margin: 3px 0 14px; color: var(--muted); font-size: .76rem; }
.anchor-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.anchor-card { min-width: 0; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.anchor-card .card-head { align-items: flex-start; }
.anchor-card h3 { margin: 0; font-size: .88rem; }
.anchor-card p { flex: 1; margin: 12px 0; color: var(--muted); font-size: .72rem; line-height: 1.58; overflow-wrap: anywhere; }
.anchor-card .card-foot { margin-top: 12px; }
.anchor-grid.ranked { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ranked-anchor { position: relative; min-height: 218px; padding: 18px; border-color: #e1e7f0; border-radius: 15px; box-shadow: 0 5px 18px rgba(34,52,89,.045); }
.ranked-anchor:first-child { grid-column: 1/-1; min-height: 190px; border-color: #cbd9f3; background: linear-gradient(118deg,#fff 0%,#f7faff 72%,#edf4ff 100%); }
.ranked-anchor:hover { border-color: #9fb2da; box-shadow: 0 12px 28px rgba(34,52,89,.09); transform: translateY(-2px); }
.anchor-rank { position: absolute; right: 15px; top: 14px; padding: 4px 8px; border-radius: 99px; color: #3f5daa; background: #edf2ff; font-size: .65rem; font-weight: 900; letter-spacing: .06em; }
.ranked-anchor .card-head { padding-right: 34px; }
.ranked-anchor .card-head > div:nth-child(2) { min-width: 0; }
.ranked-anchor .card-head small { display: block; margin-top: 3px; color: #748096; font-size: .64rem; line-height: 1.45; overflow-wrap: anywhere; }
.ranked-anchor > p { flex: 0; margin: 13px 0 10px; color: #4f5b70; font-size: .78rem; line-height: 1.58; overflow-wrap: anywhere; }
.anchor-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.anchor-facts span { padding: 8px 9px; border-radius: 9px; color: #5f6b81; background: #f4f7fb; font-size: .68rem; line-height: 1.45; }
.anchor-facts b { display: block; margin-bottom: 2px; color: #8792a8; font-size: .59rem; letter-spacing: .05em; }
.browse-subhead-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.always-open-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d5def0; border-radius: 99px; color: #3456a5; background: #f0f4ff; font-size: .64rem; font-weight: 850; }
.browse-candidate-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.browse-candidate-card { min-width: 0; display: grid; grid-template-columns: 76px minmax(0,1fr) 138px; gap: 16px; align-items: stretch; padding: 14px; border: 1px solid #dfe5ef; border-radius: 13px; background: white; transition: border-color .15s ease,box-shadow .15s ease; }
.browse-candidate-card:hover { border-color: #a9b9d8; box-shadow: 0 7px 20px rgba(36,53,88,.065); }
.browse-candidate-rank { display: grid; align-content: center; justify-items: center; gap: 2px; padding-right: 13px; border-right: 1px solid #e7ebf2; }
.browse-candidate-rank span { color: #7b879c; font-size: .65rem; font-weight: 850; }
.browse-candidate-rank strong { color: #27468f; font: 760 1.55rem/1 Inter,ui-sans-serif,sans-serif; }
.browse-candidate-rank small { color: #9a7332; font-size: .58rem; }
.browse-candidate-body { min-width: 0; }
.browse-candidate-title { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; align-items: center; }
.browse-candidate-title .product-logo { width: 40px; height: 40px; }
.browse-candidate-title h4 { margin: 0; color: #1d2a44; font-size: .92rem; }
.browse-candidate-title small { display: block; margin-top: 2px; color: #758198; font-size: .65rem; line-height: 1.4; overflow-wrap: anywhere; }
.browse-candidate-body > p { margin: 10px 0; color: #4f5b70; font-size: .75rem; line-height: 1.55; overflow-wrap: anywhere; }
.browse-candidate-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.browse-candidate-facts span { padding: 7px 9px; border-radius: 8px; color: #5e6a80; background: #f5f7fb; font-size: .66rem; line-height: 1.45; overflow-wrap: anywhere; }
.browse-candidate-facts b { display: block; margin-bottom: 2px; color: #8792a8; font-size: .58rem; letter-spacing: .04em; }
.browse-candidate-actions { display: grid; align-content: center; gap: 7px; }
.browse-candidate-actions button { min-height: 40px; padding: 8px; border: 1px solid #d7dfec; border-radius: 9px; color: #294987; background: white; font-size: .68rem; font-weight: 850; }
.browse-candidate-actions button:first-child { color: white; border-color: #294cad; background: #3157c8; }
.public-rating { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0; }
.public-rating strong { white-space: nowrap; font-size: .92rem; }
.public-rating strong span { color: #e09a18; }
.public-rating small { color: var(--muted); font-size: .66rem; }
.public-rating.compact { margin: 0; }
.public-rating.compact strong { font-size: .76rem; }
@media (max-width: 1180px) { .anchor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .anchor-grid, .anchor-grid.ranked, .browse-candidate-grid { grid-template-columns: 1fr; } .ranked-anchor:first-child { grid-column: auto; min-height: 218px; } .browse-candidate-card { grid-template-columns: 56px minmax(0,1fr); gap: 11px; padding: 12px; } .browse-candidate-rank { padding-right: 9px; } .browse-candidate-actions { grid-column: 2/-1; grid-template-columns: 1fr 1fr; } .browse-candidate-facts { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .anchor-facts { grid-template-columns: 1fr; } }
@media (max-width: 580px) {
  .quick-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-card { min-height: 104px; padding: 13px; }
  .category-card small { font-size: .75rem; }
  .category-hero-head h1 { font-size: clamp(2.1rem,10.5vw,2.8rem); }
  .family-tabs { padding-right: 34px; }
}
.compare-intro { color: #fff; background: linear-gradient(140deg,#2d1c39,#513862); }
.compare-intro h1 { color: #fff; }
.compare-intro > p { color: #ddd1e7; }
#exploreView .view-intro { min-height: 185px; }
.compare-hub { margin-top: 12px; }
.compare-hub-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.compare-hub-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.compare-hub-head p { margin: 0; color: var(--muted); font-size: .76rem; }
.compare-selection { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 9px; margin-top: 16px; }
.compare-selection article { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fffaf7; }
.compare-selection h3 { margin: 0 0 5px; font-size: .9rem; }
.compare-selection p { margin: 0; color: var(--muted); font-size: .7rem; }
.compare-selection button { margin-top: 10px; padding: 5px 0; border: 0; color: var(--red); background: transparent; font-size: .68rem; }
.compare-empty-journey { padding: 36px 18px; text-align: center; }
.compare-empty-journey strong { display: block; margin-bottom: 6px; font: 500 1.3rem Georgia,serif; }
.compare-empty-journey p { color: var(--muted); font-size: .8rem; }
.myai-journey { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.journey-group { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.journey-group > div:first-child { display: grid; align-content: start; }
.journey-group span { font-weight: 850; }
.journey-group small, .journey-group em { color: var(--muted); font-size: .68rem; font-style: normal; }
.journey-group > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-group button { align-self: start; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fffaf7; font-size: .7rem; font-weight: 800; }
.stack-saved-head { margin: 24px 2px 9px; }
.stack-saved-head span { color: var(--violet); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.stack-saved-head h2 { margin: 2px 0 0; font-size: 1.1rem; }
.tradeoff-alternatives { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tradeoff-alternatives > div > span { display: block; margin-bottom: 6px; color: var(--violet); font-size: .68rem; font-weight: 850; }

@media (max-width: 900px) {
  .current-intent-panel { grid-template-columns: 1fr; }
  .explore-lanes { grid-template-columns: 1fr; }
  .myai-journey { grid-template-columns: 1fr; }
  .preference-panel { grid-template-columns: 1fr; gap: 10px; }
  .result-tools { justify-content: flex-start; }
  .community-shelf { grid-template-columns: 1fr; }
  .explore-ad-slot { min-height: 150px; }
  .account-guest { align-items: flex-start; flex-direction: column; }
  .moderation-item { grid-template-columns: 1fr auto; }
  .moderation-actions { grid-column: 1/-1; }
  .change-item { flex-direction: column; gap: 8px; }
  .change-meta { justify-items: start; }
  .overview-strip, .evidence-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .io-flow { flex-direction: column; align-items: stretch; }
  .io-arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 680px) {
  .compare-hub-head { align-items: stretch; flex-direction: column; }
  .journey-group { grid-template-columns: 1fr; }
  .tradeoff-alternatives { grid-template-columns: 1fr; }
  .result-heading { flex-direction: column; align-items: stretch; }
  .decision-signals, .detail-decision-grid, .professional-grid { grid-template-columns: 1fr; }
  .signal { padding: 11px 12px; }
  .preference-options { display: grid; grid-template-columns: 1fr 1fr; }
  .preference-options button:last-child { grid-column: 1/-1; }
  .performance-metrics { grid-template-columns: 1fr; }
  .latest-submissions { grid-template-columns: 1fr; }
  .evaluation-columns { grid-template-columns: 1fr; }
  .llm-evaluation-head { flex-direction: column; gap: 8px; }
  .verification-track { grid-template-columns: 1fr 1fr; }
  .account-guest-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .why-grid, .choose-grid, .fact-grid, .evidence-meta { grid-template-columns: 1fr; }
  .overview-head { flex-direction: column; gap: 10px; }
  .capability-group { grid-template-columns: 1fr; gap: 4px; }
  .capability-group-label { padding-top: 0; }
  .compare-block-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .why-evidence li { grid-template-columns: 1fr; gap: 4px; }
  .compare-title h2 { font-size: 1.3rem; }
}

/* Comparison: task-first decision view */
.compare-dialog { width: min(1180px,calc(100% - 24px)); }
.compare-head { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.compare-title h2 { margin: 4px 0 6px; font: 500 1.55rem Georgia,"Noto Serif SC",serif; }
.compare-title p { margin: 0; color: var(--muted); font-size: .8rem; }
.compare-title b { color: var(--ink); }
.compare-job-picker { display: grid; gap: 8px; padding: 13px 14px; border-radius: 11px; background: #f4f3ec; }
.compare-job-picker > span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.job-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.job-chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: .76rem; font-weight: 800; }
.job-chip:hover { border-color: var(--violet); }
.job-chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.compare-hint { margin: 0; padding: 12px 14px; border-left: 3px solid var(--amber); border-radius: 0 9px 9px 0; background: #fff8ea; color: #6b4a12; font-size: .78rem; }
.compare-hint .text-button { margin-left: 4px; color: #8a5a00; }
.compare-block { margin-top: 22px; }
.compare-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.compare-block-head h3 { margin: 0; font-size: 1rem; }
.compare-block-head > span { color: var(--muted); font-size: .7rem; }
.diff-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.comparison.quick-read th[scope="row"], .comparison.differences th[scope="row"] { color: var(--muted); font-weight: 800; }
.comparison thead th { position: sticky; top: 0; background: var(--panel); font-size: .72rem; letter-spacing: .04em; }
.comparison.differences tbody tr.diff-row > th { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.compare-cell { display: grid; gap: 5px; }
.compare-cell > * { justify-self: start; }
.compare-cell > span:first-child { font-size: .8rem; font-weight: 800; }
.compare-cell small { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.level-chip { padding: 3px 9px; border-radius: 99px; font-size: .68rem; font-weight: 900; }
.level-chip.core { color: #0f5137; background: #d9f3e6; }
.level-chip.support { color: #23477f; background: #e3ecfd; }
.level-chip.limited { color: #8a5a12; background: #fbefd5; }
.level-chip.absent { color: #6a6560; background: #edece7; }
.pending-value { color: var(--muted); }
.why-toggle { padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--violet); font-size: .64rem; font-weight: 900; }
.why-toggle[aria-expanded="true"] { color: white; background: var(--violet); border-color: var(--violet); }
.why-row td { background: #faf9f4; padding: 14px 16px; }
.why-meaning { margin: 0 0 6px; font-size: .74rem; font-weight: 800; }
.why-analysis { margin: 0 0 10px; color: var(--muted); font-size: .74rem; }
.why-evidence { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.why-evidence li { display: grid; grid-template-columns: 140px 110px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 8px; background: white; font-size: .7rem; }
.why-evidence li b { font-size: .72rem; }
.why-evidence li small { color: var(--muted); }
.why-evidence .why-source a { color: var(--violet); font-weight: 800; text-decoration: none; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 11px; }
.compare-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.compare-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: .86rem; }
.compare-card h4 small { color: var(--muted); font-size: .66rem; font-weight: 800; }
.compare-card .plan-row { grid-template-columns: 1fr auto; }
.analysis-lead { margin: 0 0 10px; font-size: .78rem; }
.analysis-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .72rem; }
.analysis-list li::before { margin-right: 6px; font-weight: 900; }
.analysis-list li.plus::before { content: "+"; color: var(--green); }
.analysis-list li.minus::before { content: "−"; color: var(--amber); }
.requirement-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.requirement-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: .74rem; font-weight: 800; }
.requirement-toggle input { accent-color: var(--violet); }
.requirement-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.requirement-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 8px; background: #f8f7f2; font-size: .72rem; }
.requirement-list li > span { font-weight: 900; }
.requirement-list li.yes > span { color: var(--green); }
.requirement-list li.no > span { color: var(--red); }
.requirement-list li.unknown > span { color: var(--amber); }
.requirement-list b { display: block; font-size: .74rem; }
.requirement-list small { color: var(--muted); font-size: .66rem; }
.compare-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.compare-actions button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .76rem; font-weight: 800; }
.compare-actions button:first-child { color: white; background: var(--ink); border-color: var(--ink); }
.compare-empty { padding: 16px; color: var(--muted); font-size: .76rem; text-align: center; }
.tag.muted { color: var(--muted); background: #f2f1ec; }
.product-analysis { display: grid; gap: 5px; margin-bottom: 12px; padding: 11px 12px; border-radius: 10px; background: #f7f5ff; }
.product-analysis p { margin: 0; font-size: .78rem; }
.product-analysis small { color: var(--muted); font-size: .66rem; }
.product-analysis .text-button { justify-self: start; padding: 0; font-size: .66rem; }
.analysis-badge { justify-self: start; padding: 2px 8px; border-radius: 99px; color: #4b3ac0; background: #e9e4ff; font-size: .6rem; font-weight: 900; letter-spacing: .05em; }
.analysis-badge.pending { color: #8a641d; background: #fff0cd; }
.product-analysis.pending { background: #fbf7ec; }
.product-analysis.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; background: #f7f5ff; }
.product-analysis.compact small { font-size: .64rem; }
.product-analysis.compact button { padding: 0; border: 0; background: transparent; color: var(--violet); font-size: .64rem; font-weight: 900; }
.product-analysis.stale { background: #fff8ea; }
.evidence-badge.completeness { color: #4a5568; background: #eef1f6; font-size: .58rem; }

.detail-compare-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(255,254,250,.97); font-size: .85rem; }
.detail-compare-bar[hidden] { display: none; }
.detail-compare-bar > span { flex: 1; color: var(--muted); }
.detail-compare-bar > span b { color: var(--ink); }
.detail-compare-bar em { color: var(--muted); font-style: normal; }
.detail-compare-bar .primary-button { padding: 8px 14px; font-size: .82rem; }
.detail-compare-bar .text-button { color: var(--muted); }

/* Search is a scanning surface, not a card wall. */
#exploreView { --search-border: #dedbd2; }
.search-intro { min-height: 160px; align-items: center; background: linear-gradient(118deg,#17191f,#252231); }
.search-intro h1 { color: white; font-size: clamp(1.9rem,3.1vw,3.1rem); }
.search-console { position: sticky; top: 8px; z-index: 12; display: grid; gap: 8px; margin: 12px 0 8px; padding: 11px; border: 1px solid var(--search-border); border-radius: 14px; background: rgba(255,254,250,.96); box-shadow: 0 8px 28px rgba(34,30,27,.08); backdrop-filter: blur(14px); }
.search-primary { display: grid; grid-template-columns: minmax(280px,1fr) minmax(170px,.28fr); gap: 8px; }
.search-field { min-width: 0; position: relative; display: flex; align-items: center; }
.search-field > span { position: absolute; left: 14px; z-index: 1; color: #736f69; font-size: 1.2rem; pointer-events: none; }
.search-field input, .search-primary select, .filter-advanced select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d8d5cc; border-radius: 9px; outline: 0; color: var(--ink); background: #fbfaf6; }
.search-field input { padding-left: 41px; font-size: .88rem; }
.search-field input:focus, .search-primary select:focus, .filter-advanced select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(104,82,245,.1); background: white; }
.filter-advanced { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.filter-toggle { display: none; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d8d5cc; border-radius: 9px; background: #fbfaf6; font-weight: 800; }
.filter-toggle b { min-width: 20px; padding: 2px 5px; border-radius: 99px; color: white; background: var(--violet); font-size: .66rem; }
#exploreView .catalog-mode-switch { display: flex; gap: 4px; width: fit-content; margin: 10px 0 8px; padding: 4px; border: 1px solid var(--search-border); border-radius: 10px; background: #eceae3; }
#exploreView .catalog-mode-switch button { min-width: 150px; padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; }
#exploreView .catalog-mode-switch button span { display: none; }
#exploreView .catalog-mode-switch button.active { background: white; box-shadow: 0 1px 4px rgba(20,18,16,.1); }
.search-metrics.metrics { display: flex; flex-wrap: wrap; margin: 8px 0; border-radius: 10px; overflow: visible; background: transparent; }
.search-metrics .metric { flex: 1 1 150px; display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-right: 1px solid var(--search-border); background: #f6f4ee; }
.search-metrics .metric:first-child { border-radius: 9px 0 0 9px; }
.search-metrics .metric:last-child { border-radius: 0 9px 9px 0; }
.search-metrics .metric strong { font: 750 1rem/1 system-ui,sans-serif; }
.search-metrics .metric span { font-size: .68rem; }
#exploreView .catalog-meta { margin: 14px 2px 7px; }
#exploreView .catalog-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.result-row { min-width: 0; display: grid; grid-template-columns: minmax(230px,.85fr) minmax(260px,1.3fr) 250px 205px; gap: 18px; align-items: center; padding: 13px 14px; border: 1px solid var(--search-border); border-radius: 11px; background: var(--panel); transition: border-color .15s ease,box-shadow .15s ease; }
.result-row:hover { border-color: #aaa69a; box-shadow: 0 5px 18px rgba(36,31,27,.07); }
.result-identity { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; align-items: center; }
.result-identity .product-logo { width: 42px; height: 42px; }
.result-title { min-width: 0; }
.result-title h3 { margin: 0 0 3px; font-size: .9rem; overflow-wrap: anywhere; }
.result-title > span { display: block; color: var(--muted); font-size: .65rem; line-height: 1.4; overflow-wrap: anywhere; }
.result-status { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.result-status span { padding: 3px 6px; border-radius: 99px; color: #626975; background: #eef1f6; font-size: .59rem; font-weight: 800; }
.result-status span.verified { color: #0d6d61; background: #e4f6f2; }
.result-status span.warning { color: #855800; background: #fff1d5; }
.result-summary { min-width: 0; }
.result-summary p { margin: 0; color: #55524c; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.result-summary span { display: block; margin-top: 6px; color: #7b756e; font-size: .63rem; line-height: 1.4; overflow-wrap: anywhere; }
.result-score { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.result-overall { display: grid; place-items: center; min-height: 58px; border-right: 1px solid var(--search-border); }
.result-overall strong { color: #6f461d; font: 700 1.45rem/1 Georgia,serif; }
.result-overall span { margin-top: 4px; color: #8b765f; font-size: .59rem; }
.result-evidence { display: grid; gap: 2px; text-align: center; }
.result-evidence b { color: #263f78; font-size: .82rem; }
.result-evidence span,.result-evidence small { color: var(--muted); font-size: .58rem; }
.result-subscores { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.result-subscores span { display: grid; gap: 2px; color: var(--muted); font-size: .57rem; text-align: center; }
.result-subscores b { color: var(--ink); font-size: .72rem; }
.result-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.result-actions button, .result-actions a { min-height: 38px; display: grid; place-items: center; padding: 7px 6px; border: 1px solid var(--search-border); border-radius: 8px; color: var(--ink); background: white; font-size: .67rem; font-weight: 850; text-align: center; text-decoration: none; }
.result-actions button:first-child { color: white; background: var(--ink); border-color: var(--ink); }
.result-actions a { color: var(--violet); }
#communityShelf { margin-top: 26px; }
#communityShelf[hidden] { display: none; }

@media (max-width: 1080px) {
  .result-row { grid-template-columns: minmax(210px,.9fr) minmax(240px,1.25fr) 220px; }
  .result-actions { grid-column: 1/-1; grid-template-columns: repeat(3,minmax(0,120px)); justify-content: end; margin-top: -4px; }
}

@media (max-width: 760px) {
  .search-intro { min-height: 105px; padding: 18px 22px; }
  .search-intro > p { display: none; }
  .search-console { top: 6px; padding: 8px; }
  .search-primary { grid-template-columns: minmax(0,1fr) 92px; }
  .search-primary select { grid-column: 1/2; grid-row: 2; }
  .filter-toggle { grid-column: 2/3; grid-row: 2; display: flex; }
  .filter-advanced { display: none; grid-template-columns: 1fr 1fr; }
  .filter-advanced.open { display: grid; }
  #exploreView .catalog-mode-switch { width: 100%; }
  #exploreView .catalog-mode-switch button { flex: 1; min-width: 0; text-align: center; }
  .search-metrics.metrics { display: grid; grid-template-columns: 1fr 1fr; border: 0; }
  .search-metrics .metric { border: 0; border-radius: 8px !important; }
  .result-row { grid-template-columns: minmax(0,1fr) 82px; gap: 11px; padding: 13px; }
  .result-identity { grid-column: 1/2; }
  .result-status { display: flex; }
  .result-summary { grid-column: 1/-1; grid-row: 2; }
  .result-score { grid-column: 2/3; grid-row: 1; display: block; }
  .result-overall { min-height: 42px; border: 0; }
  .result-overall strong { font-size: 1.3rem; }
  .result-subscores { grid-column: 1/-1; position: static; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--search-border); }
  .result-actions { grid-column: 1/-1; grid-row: 3; grid-template-columns: repeat(3,1fr); justify-content: stretch; margin: 0; }
  .result-actions button, .result-actions a { min-height: 44px; }
}

@media (max-width: 420px) {
  .filter-advanced { grid-template-columns: 1fr; }
  .search-metrics.metrics { display: none; }
  .result-row { border-radius: 10px; }
}

/* Decision ranking: five evidence-rich leaders, followed by a scan-friendly candidate pool. */
.ranking-method {
  display: grid;
  grid-template-columns: minmax(270px,.72fr) minmax(0,1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #cfdaef;
  border-radius: 16px;
  background: linear-gradient(120deg,#eef4ff,#f7fbff 58%,#edf9f6);
}
.ranking-method div { display: grid; gap: 4px; }
.ranking-method span { color: #53627e; font-size: .72rem; font-weight: 800; }
.ranking-method strong { color: #1f397f; font-size: .96rem; }
.ranking-method p { margin: 0; color: #5f6b81; font-size: .8rem; line-height: 1.65; }
.featured-candidates { display: grid; gap: 12px; }
.candidate-section-label { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 0; }
.candidate-section-label span { color: #182642; font-size: .92rem; font-weight: 850; }
.candidate-section-label b { color: #758198; font-size: .7rem; }
.featured-candidate { grid-template-columns: 112px minmax(0,1fr) 176px; border-color: #e0e6f0; border-radius: 16px; box-shadow: 0 4px 16px rgba(38,55,91,.045); transform: none; }
.featured-candidate:hover { border-color: #9fb0d5; box-shadow: 0 10px 26px rgba(38,55,91,.085); transform: none; }
.featured-candidate .verdict { min-height: 100%; padding: 18px 14px; color: #1c2944; background: #eef3ff; }
.featured-candidate:nth-of-type(3n+2) .verdict { background: #f3efff; }
.featured-candidate:nth-of-type(3n) .verdict { background: #fff3ed; }
.featured-candidate .verdict b { color: #3154c7; font-size: .7rem; letter-spacing: .13em; }
.rank-score { display: grid; gap: 3px; }
.rank-score strong { color: #172c65; font: 760 2rem/1 Inter,ui-sans-serif,sans-serif; letter-spacing: -.06em; }
.rank-score span { color: #5f6b81; font-size: .68rem; font-weight: 750; }
.featured-candidate .verdict > small { color: #68758d; font-size: .66rem; }
.featured-candidate .rec-main { padding: 17px 19px 15px; }
.featured-candidate .rec-title { align-items: center; }
.featured-candidate .rec-title > div:last-child { min-width: 0; }
.featured-candidate .rec-title h3 { font-size: 1.18rem; }
.featured-candidate .rec-title small { display: block; margin-top: 3px; color: #7a879e; font-size: .66rem; line-height: 1.45; overflow-wrap: anywhere; }
.ai-verdict-copy { margin: 9px 0 11px !important; color: #3d4960 !important; font-size: .8rem !important; line-height: 1.55; overflow-wrap: anywhere; }
.rec-decision-grid { display: grid; grid-template-columns: 1.15fr .85fr .72fr; overflow: hidden; margin-bottom: 10px; border: 1px solid #e3e8f1; border-radius: 10px; background: #fafbfe; }
.rec-decision-grid > div { min-width: 0; padding: 9px 11px; border-right: 1px solid #e3e8f1; }
.rec-decision-grid > div:last-child { border: 0; }
.rec-decision-grid span,.rec-decision-grid small { display: block; color: #8792a8; font-size: .6rem; }
.rec-decision-grid strong { display: block; margin-top: 3px; color: #34415a; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.featured-candidate .reason-row { gap: 5px; }
.featured-candidate .reason { padding: 4px 8px; border-radius: 99px; color: #5e6980; background: #f1f4f8; font-size: .64rem; }
.featured-candidate .reason.hit { color: #17695f; background: #e8f6f2; }
.rec-caveat { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; color: #8a641d; font-size: .66rem; }
.rec-caveat b { flex: 0 0 auto; padding: 2px 6px; border-radius: 99px; color: #8a641d; background: #fff2d8; font-size: .59rem; }
.rec-caveat span { line-height: 1.45; overflow-wrap: anywhere; }
.rec-caveat.verified { color: #68758d; }
.rec-caveat.verified b { color: #4d657d; background: #edf2f7; }
.evaluation-trace { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #e1e7f0; border-radius: 10px; background: white; }
.evaluation-trace span,.evaluation-trace small { color: #7a879e; font-size: .64rem; }
.evaluation-trace strong { color: #233f91; font-size: 1rem; }
.featured-candidate .rec-side { gap: 7px; padding: 13px; border-color: #e7ebf2; background: #fafbfe; }
.featured-candidate .evidence-badge { width: auto; overflow: hidden; padding: 5px 7px; text-overflow: ellipsis; white-space: nowrap; }
.featured-candidate .rec-actions { gap: 5px; }
.featured-candidate .rec-actions button,.featured-candidate .rec-actions a { min-height: 36px; }
.more-candidates { margin-top: 30px; }
.more-candidates-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.more-candidates-head h3 { margin: 3px 0 0; color: #1c2944; font-size: 1.18rem; }
.more-candidates-head p { max-width: 470px; margin: 0; color: #758198; font-size: .75rem; line-height: 1.55; text-align: right; }
.candidate-list { display: grid; gap: 6px; }
.candidate-row { display: grid; grid-template-columns: 42px minmax(190px,.75fr) minmax(260px,1.25fr) 70px 130px; gap: 14px; align-items: center; min-height: 76px; padding: 10px 12px; border: 1px solid #e0e6f0; border-radius: 12px; background: rgba(255,255,255,.88); transition: border-color .15s ease,box-shadow .15s ease; }
.candidate-row:hover { border-color: #aab9da; box-shadow: 0 6px 18px rgba(38,55,91,.06); }
.candidate-rank { color: #8591a8; font: 760 1.05rem Inter,ui-sans-serif,sans-serif; text-align: center; }
.candidate-identity { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
.candidate-identity .product-logo { width: 38px; height: 38px; }
.candidate-identity strong,.candidate-identity small { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.candidate-identity strong { color: #1c2944; font-size: .82rem; }
.candidate-identity small { margin-top: 3px; color: #7a879e; font-size: .64rem; }
.candidate-summary { min-width: 0; }
.candidate-summary p { margin: 0 0 4px; color: #4f5b70; font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }
.candidate-summary small { color: #8390a5; font-size: .62rem; }
.candidate-score { display: flex; align-items: baseline; justify-content: center; gap: 3px; color: #836024; }
.candidate-score strong { font: 760 1.24rem Inter,ui-sans-serif,sans-serif; }
.candidate-score span { font-size: .68rem; }
.candidate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.candidate-actions button { min-height: 38px; padding: 7px 6px; border: 1px solid #dbe2ee; border-radius: 8px; color: #2a477f; background: white; font-size: .68rem; font-weight: 800; }
.candidate-actions button:first-child { color: white; border-color: #294cad; background: #3157c8; }

@media (max-width: 1100px) {
  .featured-candidate { grid-template-columns: 102px minmax(0,1fr); }
  .featured-candidate .rec-side { grid-column: 1/-1; grid-template-columns: 160px minmax(0,1fr) auto; padding: 10px 13px; }
  .candidate-row { grid-template-columns: 38px minmax(180px,.8fr) minmax(220px,1.2fr) 62px; }
  .candidate-actions { grid-column: 2/-1; grid-row: 2; grid-template-columns: repeat(2,minmax(100px,130px)); justify-content: end; }
}

@media (max-width: 760px) {
  .ranking-method { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .featured-candidate { display: grid; grid-template-columns: 1fr; }
  .featured-candidate .verdict { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; }
  .featured-candidate .verdict b { align-self: center; }
  .featured-candidate .verdict > small { text-align: right; }
  .rank-score { display: flex; align-items: baseline; gap: 5px; }
  .rank-score strong { font-size: 1.8rem; }
  .featured-candidate .rec-main { padding: 15px; }
  .rec-decision-grid { grid-template-columns: 1fr 1fr; }
  .rec-decision-grid > div:nth-child(2) { border-right: 0; }
  .rec-decision-grid > div:last-child { grid-column: 1/-1; border-top: 1px solid #e3e8f1; }
  .featured-candidate .rec-side { grid-column: 1/-1; grid-template-columns: 1fr; }
  .more-candidates-head { align-items: start; flex-direction: column; gap: 5px; }
  .more-candidates-head p { text-align: left; }
  .candidate-row { grid-template-columns: 30px minmax(0,1fr) 58px; gap: 9px; padding: 11px 9px; }
  .candidate-summary { grid-column: 2/-1; }
  .candidate-actions { grid-column: 2/-1; grid-row: auto; grid-template-columns: 1fr 1fr; justify-content: stretch; }
}

@media (max-width: 460px) {
  .featured-candidate .verdict { grid-template-columns: auto 1fr; }
  .featured-candidate .verdict > small { display: none; }
  .candidate-section-label { align-items: start; flex-direction: column; gap: 3px; }
}

/* Cohesive presentation pass: one visual rhythm across every surface. */
.mobile-brand { display: none; }
body { background:
  radial-gradient(circle at 92% 4%,rgba(108,77,246,.055),transparent 25rem),
  radial-gradient(circle at 7% 92%,rgba(239,102,84,.045),transparent 28rem),
  var(--paper); }
main { max-width: 1440px; }
.topbar { position: relative; z-index: 24; }
.view-intro:not(.search-intro) { min-height: 210px; padding: 34px 38px; }
.view-intro:not(.search-intro) h1 { max-width: 900px; font-size: clamp(2.2rem,3.8vw,4rem); }
.panel, .account-guest, .journey-group, .empty-state { box-shadow: 0 10px 30px rgba(62,40,67,.045); }
.ghost-button, .primary-button, .account-button, .load-more { transition: transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease; }
.ghost-button:hover, .account-button:hover { border-color: #c6b6c4; background: white; }

/* Comparison empty state is instructional instead of visually vacant. */
.compare-hub { overflow: hidden; padding: 0; }
.compare-empty-journey { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 34px; background: linear-gradient(145deg,#fffdfa,#fbf7ff); }
.compare-empty-journey::before { content: "⇄"; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 18px; color: white; background: linear-gradient(135deg,#6c4df6,#ef6654); box-shadow: 0 12px 28px rgba(108,77,246,.22); font-size: 1.45rem; font-weight: 900; }
.compare-empty-journey strong { font-family: Inter,ui-sans-serif,"PingFang SC",sans-serif; font-size: 1.35rem; font-weight: 800; }
.compare-empty-journey p { max-width: 500px; margin: 0 0 8px; line-height: 1.7; }
.compare-empty-guide { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 1px 0 10px; }
.compare-empty-guide span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #e5dbe7; border-radius: 99px; color: #6f6374; background: white; font-size: .7rem; font-weight: 750; }
.compare-empty-guide b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: white; background: #6c4df6; font-size: .61rem; }
.compare-empty-journey .primary-button { min-width: 130px; color: white; border-color: #dd4d40; background: #dd4d40; box-shadow: 0 10px 24px rgba(221,77,64,.2); }

/* Changes become a readable feed rather than full-width sparse rows. */
.change-panel { padding: 22px; }
.change-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.change-item { min-height: 142px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: space-between; padding: 16px; border-radius: 14px; background: rgba(255,253,249,.9); }
.change-item > div:first-child { min-width: 0; }
.change-item strong { margin: 8px 0 4px; font-size: .9rem; }
.change-item p { font-size: .75rem; }
.change-item small { display: inline-block; margin: 8px 8px 0 0; }
.change-meta { height: 100%; align-content: space-between; }

/* My AI uses compact overview blocks and calmer empty states. */
#stackMetrics { margin-top: 12px; }
#stackMetrics .metric { min-height: 84px; display: grid; align-content: center; }
.myai-journey { margin-top: 12px; }
.journey-group { min-height: 105px; align-items: center; padding: 18px; border-radius: 16px; }
.journey-group > div:first-child span { font-size: .88rem; }
.journey-group > div:first-child small { margin-top: 3px; }
.stack-list > .empty-state, .stack-saved-head + .empty-state { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; }
.empty-state p { margin: 0; }

/* Account sign-in is a complete destination, not a loose callout. */
.account-guest { min-height: 220px; padding: 32px 36px; border-radius: 20px; background: linear-gradient(135deg,#fffdfa 0%,#fff8f2 54%,#f3efff 100%); }
.account-guest-copy { max-width: 620px; }
.account-guest-copy h2 { margin-top: 7px; font-size: clamp(1.35rem,2vw,1.8rem); }
.account-guest-copy > p { margin: 9px 0 17px; color: var(--muted); font-size: .84rem; }
.account-benefits { display: flex; flex-wrap: wrap; gap: 7px; }
.account-benefits span { padding: 6px 10px; border: 1px solid #e3d9e4; border-radius: 99px; color: #5f5067; background: rgba(255,255,255,.72); font-size: .7rem; font-weight: 800; }
.account-benefits span::before { content: "✓"; margin-right: 5px; color: var(--green); }
.account-guest-actions { flex: 0 0 auto; }
.account-guest-actions .primary-button { color: white; border-color: #dd4d40; background: #dd4d40; box-shadow: 0 10px 24px rgba(221,77,64,.2); }

/* Small interaction polish shared by browse surfaces. */
.family-tabs { scroll-snap-type: x proximity; }
.family-tab { scroll-snap-align: start; }
.category-card, .anchor-card, .explore-lane { box-shadow: 0 8px 24px rgba(62,40,67,.045); }

@media (max-width: 900px) {
  .sidebar { position: fixed; inset: 0 0 auto; width: 100%; height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; }
  .sidebar > .brand, .sidebar-foot { display: none; }
  body.nav-open .sidebar { pointer-events: auto; }
  .nav-list { top: 70px; }
  main { padding: 0 15px 60px; }
  .topbar { position: sticky; top: 0; min-height: 68px; margin: 0 -15px 12px; padding: 0 15px; border-bottom: 1px solid rgba(226,214,211,.9); background: rgba(255,253,250,.94); box-shadow: 0 5px 24px rgba(62,40,67,.06); backdrop-filter: blur(16px); }
  .mobile-nav { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
  .mobile-nav:hover { background: #f3ece9; }
  .mobile-brand { width: 36px; height: 42px; display: flex; align-items: center; flex: 0 0 auto; border: 0; padding: 0; background: transparent; text-decoration: none; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; }
  .topbar > div:first-of-type { margin-right: auto; }
  .top-label { display: none; }
  .topbar strong { font-size: .9rem; }
  .view-intro:not(.search-intro) { min-height: 190px; padding: 26px 24px; }
  .change-list { grid-template-columns: 1fr; }
  .change-item { min-height: 132px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .change-meta { justify-items: end; }
}

@media (max-width: 580px) {
  .topbar { gap: 7px; }
  .top-actions { gap: 0; }
  .account-button { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .view-intro:not(.search-intro) { min-height: 168px; padding: 22px 20px; }
  .view-intro:not(.search-intro) h1 { max-width: 330px; margin-top: 8px; font-size: clamp(2rem,9vw,2.5rem); line-height: 1.03; }
  .compare-intro > p { font-size: .8rem; line-height: 1.55; }
  .compare-empty-journey { min-height: 270px; padding: 28px 22px; }
  .change-panel { padding: 16px; }
  .change-item { min-height: 142px; padding: 14px; }
  #stackMetrics.metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #stackMetrics .metric { min-height: 82px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  #stackMetrics .metric:nth-child(even) { border-right: 0; }
  #stackMetrics .metric:nth-child(n+3) { border-bottom: 0; }
  .journey-group { min-height: 96px; padding: 15px; }
  .account-guest { min-height: 300px; padding: 25px 22px; }
  .account-guest-actions { grid-template-columns: 1fr; }
  .account-benefits { gap: 6px; }
  .account-benefits span { font-size: .66rem; }
}

/* Commercial layer: affiliate disclosure, vendor claims, savings steward and
   the public commercial audit. Promotions and affiliate marks deliberately
   look different from natural evidence badges. */
.affiliate-mark {
  margin-left: 6px; padding: 2px 6px; border-radius: 6px;
  background: #fff4d6; border: 1px solid #e8cf8f; color: #7a5200;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em; vertical-align: super;
}
.claim-badge {
  display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0;
  padding: 3px 9px; border-radius: 99px; background: rgba(24,114,74,.1);
  border: 1px solid rgba(24,114,74,.3); color: var(--green);
  font-size: .72rem; font-weight: 800;
}
.claim-note { margin: 0 0 6px; padding: 10px 12px; border-radius: 9px; background: rgba(104,82,245,.07); color: #4b4453; font-size: .78rem; line-height: 1.55; }

.savings-panel { margin: 16px 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.savings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.savings-head h2 { margin: 4px 0 6px; font-size: clamp(1.35rem,2.4vw,1.8rem); letter-spacing: -.02em; }
.savings-head p { margin: 0; max-width: 620px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.savings-stats { display: flex; gap: 10px; flex: 0 0 auto; }
.savings-stats > div { min-width: 86px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f1; text-align: center; }
.savings-stats strong { display: block; font-size: 1.25rem; }
.savings-stats span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.savings-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 14px; margin-top: 18px; }
.renewal-card, .overlap-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbf9f3; }
.renewal-card h3, .overlap-card h3 { margin: 0 0 12px; font-size: .95rem; }
.renewal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.renewal-row:last-child { border-bottom: 0; }
.renewal-row strong { display: block; font-size: .86rem; }
.renewal-row small { color: var(--muted); font-size: .74rem; }
.renewal-row.upcoming span { padding: 3px 8px; border-radius: 99px; background: rgba(155,91,0,.12); color: var(--amber); font-size: .68rem; font-weight: 800; }
.overlap-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.overlap-row:last-child { border-bottom: 0; }
.overlap-row strong { display: block; font-size: .88rem; }
.overlap-row small { color: var(--muted); font-size: .72rem; }
.overlap-keep { margin: 6px 0 4px; padding: 7px 10px; border-radius: 8px; background: rgba(24,114,74,.08); color: var(--green); font-size: .78rem; font-weight: 750; }
.overlap-drop { display: flex; flex-wrap: wrap; gap: 6px; }
.overlap-drop span { padding: 3px 8px; border: 1px dashed var(--line); border-radius: 99px; color: var(--muted); font-size: .7rem; text-decoration: line-through; }
.savings-note { margin: 14px 0 0; color: var(--muted); font-size: .74rem; }

.stack-item select, .stack-item input[type="date"], .stack-item input[type="number"] { width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.stack-item label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 750; }

.commercial-panel { margin-top: 18px; }
.commercial-charter { margin-top: 14px; }
.charter-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 14px; }
.charter-columns > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbf9f3; }
.charter-columns strong { display: block; margin-bottom: 8px; font-size: .85rem; }
.charter-columns strong.never { color: var(--red); }
.charter-columns ul, .isolation-list ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.isolation-list { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(104,82,245,.25); border-radius: 11px; background: rgba(104,82,245,.05); }
.isolation-list strong { display: block; margin-bottom: 6px; font-size: .85rem; }
.commercial-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 16px; margin-top: 16px; }
.commercial-column h3 { margin: 0 0 10px; font-size: .92rem; }
.audit-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.audit-row span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(24,114,74,.12); color: var(--green); font-size: .72rem; font-weight: 900; }
.audit-row.fail span { background: rgba(166,61,55,.12); color: var(--red); }
.audit-row strong { display: block; font-size: .82rem; }
.audit-row small { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.audit-stamp { margin: 12px 0 0; color: var(--muted); font-size: .72rem; font-weight: 750; }
.change-item.claim .change-type { color: var(--green); }
.change-item.promotion .change-type, .change-item.affiliate .change-type { color: var(--amber); }

@media (max-width: 580px) {
  .savings-panel { padding: 16px; }
  .savings-head { display: grid; }
  .savings-stats { justify-content: flex-start; }
  .commercial-columns { grid-template-columns: 1fr; }
}
