:root {
  color-scheme: light;
  --ink: #302E35;
  --sage: #C2B4D6;
  --surface: #F7F5F9;
  --paper: #FFFFFF;
  --line: #E5E5E5;
  --muted: #57648C;
  --alert: #D94359;
  --accent: #934A5F;
  --accent-secondary: #57648C;
  --shadow: 0 14px 38px color-mix(in srgb, var(--ink) 10%, transparent);
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ambient { display: none; }
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(1180px, calc(100% - 40px)); height: 68px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; width: max-content; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 16px; letter-spacing: -.03em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.desktop-nav { display: flex; gap: 4px; align-items: center; }
.nav-link { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 9px 12px; font-size: 13px; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--surface); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 4px; border-radius: 20px; background: var(--sage); font-size: 11px; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.main-account-label { max-width: 112px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.main-logout { cursor: pointer; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 30px; padding: 6px 10px; background: var(--surface); font-size: 11px; }
.demo-pill i, .pulse-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--sage); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.icon-btn svg { width: 18px; height: 18px; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 32px auto 80px; }
.hero-panel { display: grid; justify-items: center; gap: 20px; padding: 20px 0 24px; }
.hero-copy { max-width: 760px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; padding: 7px 12px; background: var(--surface); font-size: 13px; }
.hero-copy h1 { margin: 16px 0 10px; font-size: 36px; line-height: 1.25; letter-spacing: 0; }
.hero-copy h1 span { color: var(--accent); }
@media (max-width: 600px) {
  .hero-copy h1 { font-size: 28px; }
  .hero-copy h1 span { display: block; font-size: 26px; }
}
.hero-copy p { max-width: 660px; margin: auto; color: var(--muted); }
.search-card { width: min(900px, 100%); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.search-title-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 11px; }
.search-title-row strong { font-size: 14px; }
.search-title-row #dataMode { color: var(--muted); font-size: 12px; }
.search-status { display: flex; align-items: center; gap: 10px; }
.live-toggle { border: 1px solid var(--line); border-radius: 30px; background: var(--paper); padding: 5px 9px; font-size: 11px; }
.live-toggle.on { background: var(--sage); }
.live-toggle:disabled { cursor: default; opacity: .7; }
.search-row { display: flex; gap: 9px; }
.search-input-wrap { min-width: 0; height: 54px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.search-input-wrap:focus-within { outline: 2px solid var(--sage); outline-offset: 2px; }
.search-input-wrap svg { width: 19px; height: 19px; flex: 0 0 auto; }
.search-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-input-wrap input::placeholder { color: var(--muted); }
.search-input-wrap kbd { border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; font-size: 11px; white-space: nowrap; }
.primary-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--paper); font-weight: 650; }
.primary-btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.primary-btn svg { width: 16px; height: 16px; stroke: var(--paper); }
.primary-btn.small { min-height: 36px; padding: 0 13px; font-size: 13px; }
.category-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.category-row-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.category-row-label svg { width: 15px; height: 15px; }
.category-selects { display: flex; flex-wrap: wrap; gap: 6px; }
.category-select { appearance: none; min-height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px; }
.category-scope { margin-left: auto; color: var(--muted); font-size: 12px; font-style: normal; }
.search-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.search-hints > span:first-child { color: var(--muted); font-size: 12px; }
#hintSlot { display: contents; }
.hint { border: 0; border-radius: 20px; padding: 5px 9px; background: var(--paper); font-size: 12px; }
.hint:hover { background: var(--sage); }
.exact-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
#gpuOnlyControl[hidden] { display: none; }
.exact-toggle input, .check-row input, .switch-row input { accent-color: var(--ink); }
.source-health { display: flex; align-items: stretch; gap: 0; overflow: hidden; margin: 18px 0 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.source-intro, .source-card { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-right: 1px solid var(--line); }
.source-intro { flex: 1.2; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.source-intro strong, .source-card b { font-size: 13px; }
.source-intro small, .source-card small { color: var(--muted); font-size: 11px; }
.source-card { flex: 1; }
.source-card:last-child { border-right: 0; }
.source-card > div { display: flex; flex-direction: column; line-height: 1.3; }
.source-logo { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--paper); font-size: 12px; font-weight: 700; }
.status { margin-left: auto; border-radius: 20px; padding: 4px 7px; background: var(--paper); font-size: 11px; font-style: normal; white-space: nowrap; }
.status.live, .status.ready { background: var(--sage); }
.status.blocked { background: var(--ink); color: var(--paper); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--line); }
.metric-card { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); }
.metric-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--surface); }
.metric-icon svg { width: 16px; height: 16px; }
.metric-card div { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 7px; }
.metric-card small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.metric-card strong { font-size: 17px; }
.metric-card p { display: none; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 18px; align-items: start; }
.filter-panel { position: fixed; z-index: 75; inset: 50% auto auto 50%; width: min(440px, calc(100vw - 28px)); max-height: min(82vh, 760px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%,-47%); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.filter-panel.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%); }
.filter-head { display: flex; justify-content: space-between; align-items: center; }
.filter-head h2 { margin: 0 auto 0 0; }
.filter-close { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 6px; background: var(--surface); font-size: 22px; line-height: 1; }
.filter-close:hover { background: var(--sage); }
.category-chips { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.category-chip-btn { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; font-size: 12px; }
.category-chip-btn span { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.category-chip-btn b { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 4px; background: var(--surface); font-size: 11px; font-weight: 600; }
.category-chip-btn:hover, .category-chip-btn:focus-visible { border-color: var(--accent); outline: none; }
.category-chip-btn.active { border-color: var(--accent); background: color-mix(in srgb, var(--sage) 45%, #fff); color: var(--ink); }
.category-chip-btn.active b { background: var(--sage); }
.filter-head h2, .safety-sidebar h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.025em; }
.section-kicker { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.text-btn, .safety-link { padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.filter-block { padding: 15px 0; border-top: 1px solid var(--line); }
.filter-block:first-of-type { margin-top: 14px; }
.filter-title { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.filter-label-row { display: flex; justify-content: space-between; align-items: center; }
.filter-label-row .filter-title { margin-bottom: 8px; }
.check-row, .switch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.check-row > span { display: flex; align-items: center; gap: 8px; }
.market-count { min-width: 24px; text-align: center; border-radius: 20px; background: var(--surface); font-size: 12px; }
.text-input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.text-input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.filter-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.price-range { width: 100%; accent-color: var(--ink); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row b { font-size: 13px; font-weight: 600; }
.switch-row small { color: var(--muted); font-size: 12px; }
.alert-cta { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.alert-cta > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--sage); }
.alert-cta svg { width: 17px; }
.alert-cta div { display: flex; flex: 1; flex-direction: column; }
.alert-cta b { font-size: 13px; }
.alert-cta small { color: var(--muted); font-size: 11px; }
.alert-cta > i { font-size: 20px; font-style: normal; }
.results-panel { min-width: 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 14px; }
.results-head h2 { margin: 4px 0 0; font-size: 21px; }
.results-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.results-tools { display: flex; align-items: center; gap: 12px; }
.mobile-filter-btn { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12px; }
.mobile-filter-btn svg { width: 16px; height: 16px; }
.sync-state { display: flex; align-items: center; gap: 7px; }
.sync-state > div { display: flex; flex-direction: column; line-height: 1.3; }
.sync-state b { font-size: 12px; }
.sync-state small { color: var(--muted); font-size: 11px; }
.select-wrap { position: relative; }
.select-wrap select { min-height: 38px; padding: 0 30px 0 10px; appearance: none; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.select-wrap svg { position: absolute; top: 50%; right: 8px; width: 14px; transform: translateY(-50%); pointer-events: none; }
.market-tabs { display: flex; align-items: center; gap: 4px; min-height: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-tab { position: relative; height: 46px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.market-tab.active { color: var(--ink); font-weight: 700; }
.market-tab.active::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 3px; border-radius: 3px; background: var(--ink); content: ""; }
.market-tab span { margin-left: 3px; font-size: 11px; }
.view-switch { display: flex; gap: 3px; margin-left: auto; }
.view-switch button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.view-switch button.active { background: var(--surface); }
.view-switch svg { width: 16px; height: 16px; }
.search-progress { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.search-progress:not(.show) { display: none; }
.progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.progress-head span { display: flex; align-items: center; gap: 7px; }
.progress-head em { font-style: normal; }
.spinner { width: 13px; height: 13px; border: 2px solid var(--sage); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { height: 5px; overflow: hidden; margin: 9px 0; border-radius: 9px; background: var(--paper); }
.progress-track i { display: block; height: 100%; background: var(--ink); }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.progress-steps span.active { font-weight: 700; }
.results-list { padding-top: 4px; }
.listing-card { position: relative; display: grid; grid-template-columns: 92px minmax(0,1fr) 170px; align-items: center; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.listing-card:last-child { border-bottom: 0; }
.compare-check { position: absolute; top: 10px; left: 0; z-index: 2; }
.compare-check input { accent-color: var(--ink); }
.listing-visual { position: relative; height: 84px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface); }
.listing-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tile-monogram { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; background: var(--sage); font-size: 15px; font-weight: 700; }
.market-badge { position: absolute; bottom: 5px; left: 5px; padding: 3px 6px; border-radius: 5px; background: var(--paper); font-size: 10px; font-weight: 600; }
.image-count { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 5px; background: var(--paper); font-size: 10px; }
.image-count svg { width: 12px; height: 12px; }
.listing-main { min-width: 0; }
.listing-title-row { display: flex; justify-content: space-between; gap: 8px; }
.live-status { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.title { overflow: hidden; margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-btn { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; }
.bookmark-btn svg { width: 18px; height: 18px; }
.bookmark-btn.active { background: var(--surface); }
.listing-meta-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.category-chip, .brand-chip { padding: 3px 7px; border-radius: 20px; background: var(--surface); font-size: 11px; }
.spec-line { margin-top: 5px; color: var(--muted); font-size: 12px; }
.trust-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.trust-grid > div { display: flex; gap: 5px; font-size: 11px; }
.trust-grid small { color: var(--muted); }
.trust-grid strong { font-weight: 550; }
.analysis-line { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; font-size: 12px; }
.analysis-icon { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; background: var(--surface); font-size: 10px; font-weight: 700; }
.listing-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 15px; border-left: 1px solid var(--line); }
.price-block small { color: var(--muted); font-size: 11px; }
.price-block strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.price-vs { display: block; color: var(--muted); font-size: 11px; }
.score-row-mini { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.score-row-mini span, .score-row-mini b { font-size: 11px; }
.mini-track { height: 5px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.risk-badge { width: max-content; padding: 4px 8px; border-radius: 20px; background: var(--surface); font-size: 11px; font-weight: 650; }
.risk-low { background: var(--sage); }
.risk-mid { background: var(--surface); }
.risk-high { background: var(--alert); color: #FFF7EA; }
/* 경고 띠: 안내 문구가 아니라 카드 위에 색과 테두리로 서 있는 표시. */
.risk-alert { display: grid; gap: 3px; margin-top: 8px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--alert) 42%, transparent); border-left: 4px solid var(--alert); border-radius: 10px; background: color-mix(in srgb, var(--alert) 8%, var(--paper)); }
.risk-alert b { color: var(--alert); font-size: 12.5px; letter-spacing: -.02em; }
.risk-alert span { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.risk-alert.is-drawer { margin: 12px 0 0; padding: 12px 14px; }
.risk-alert.is-drawer b { font-size: 13.5px; }
.risk-alert.is-drawer span { font-size: 12px; }
.suspect-btn { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--alert) 50%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--alert) 10%, var(--surface)); color: var(--alert); font-size: 12px; font-weight: 650; }
.suspect-btn svg { width: 16px; height: 16px; }
.suspect-btn[disabled] { opacity: .6; cursor: progress; }
.toast.is-alert { background: var(--alert); color: #FFF7EA; }
.card-actions { display: flex; gap: 6px; width: 100%; }
.card-actions button { min-height: 34px; flex: 1; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 11px; font-weight: 600; }
.card-actions .open-btn { background: var(--ink); color: var(--paper); }
.card-actions .open-btn span { color: var(--paper); }
.safety-sidebar { position: sticky; top: 86px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.safety-sidebar h2 { margin: 5px 0 12px; font-size: 19px; }
.safety-sidebar ul { display: grid; gap: 13px; margin: 0; padding-left: 19px; }
.safety-sidebar li { padding-left: 2px; }
.safety-sidebar li b, .safety-sidebar li span { display: block; }
.safety-sidebar li b { margin-bottom: 2px; font-size: 13px; }
.safety-sidebar li span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.safety-note { margin-top: 14px; padding: 11px; border-radius: 10px; background: var(--paper); font-size: 12px; }
.safety-link { margin-top: 14px; padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { margin: 18px 0; padding: 28px 12px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; }
.error-state { margin: 18px 0; padding: 20px; border-radius: 12px; background: var(--surface); }
.error-state strong { display: block; margin-bottom: 6px; }
.compare-tray { position: fixed; z-index: 60; right: 50%; bottom: 16px; display: none; align-items: center; gap: 12px; width: min(760px,calc(100% - 24px)); padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); transform: translateX(50%); }
.compare-tray.show { display: flex; }
.compare-tray > div:first-child { display: flex; flex-direction: column; white-space: nowrap; }
.compare-tray small { color: var(--muted); }
.compare-items { display: flex; flex: 1; gap: 5px; overflow: hidden; }
.compare-chip { overflow: hidden; max-width: 180px; padding: 5px 8px; border-radius: 8px; background: var(--surface); text-overflow: ellipsis; white-space: nowrap; }
.ghost-btn { border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 7px 10px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.drawer.open, .modal.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop, .modal-backdrop, .filter-scrim { position: absolute; inset: 0; background: color-mix(in srgb,var(--ink) 32%,transparent); opacity: 0; transition: opacity .16s ease; }
.drawer.open .drawer-backdrop, .modal.open .modal-backdrop, .filter-scrim.show { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(560px,100vw); height: 100%; overflow: auto; padding: 22px; background: var(--paper); transform: translateX(100%); transition: transform .2s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.drawer-head h2 { margin: 5px 0; }
.modal { display: grid; place-items: center; padding: 18px; }
.modal-card { position: relative; width: min(700px,100%); max-height: 86vh; overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transform: translateY(10px); transition: transform .16s ease; }
.modal.open .modal-card { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 20px; }
.modal-card h2 { margin: 8px 36px 16px 0; }
.modal-note { color: var(--muted); font-size: 13px; }
.detail-hero { padding: 16px; border-radius: 12px; background: var(--surface); }
.detail-market { font-size: 13px; }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 8px; }
.detail-price-row strong { font-size: 22px; }
.detail-price-row span { color: var(--muted); font-size: 13px; }
.detail-category { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 9px; background: var(--surface); }
.detail-category small { color: var(--muted); }
.detail-category em { margin-left: auto; font-style: normal; }
.analysis-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }
.analysis-summary > div { padding: 10px; border-radius: 9px; background: var(--surface); }
.analysis-summary small, .analysis-summary strong { display: block; }
.analysis-summary small { color: var(--muted); }
.section-title { margin: 18px 0 8px; font-size: 15px; }
.score-breakdown { display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.score-bar { height: 6px; border-radius: 10px; background: var(--surface); }
.score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.signal-list { display: grid; gap: 7px; }
.signal-item { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; background: var(--surface); }
.signal-item:has(.signal-dot.bad) { border-left: 3px solid var(--ink); }
.signal-item:has(.signal-dot.warn) { border-left: 3px solid var(--sage); }
.signal-item div { display: flex; flex-direction: column; }
.signal-item small { color: var(--muted); }
.signal-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--sage); }
.detail-note { margin-top: 13px; padding: 12px; border-radius: 9px; background: var(--surface); font-size: 12px; line-height: 1.65; }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.verify-result { margin-top: 9px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 9px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { font-weight: 650; }
.best-cell { background: var(--surface); }
.toast { position: fixed; z-index: 100; right: 50%; bottom: 22px; max-width: calc(100% - 24px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); opacity: 0; pointer-events: none; transform: translate(50%,12px); transition: opacity .18s,transform .18s; }
.toast.show { opacity: 1; transform: translate(50%,0); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0 34px; }
.footer-inner { width: min(1180px,calc(100% - 40px)); display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 22px; align-items: start; margin: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; align-content: start; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: none; font-size: 12px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact { display: grid; gap: 4px; font-size: 12px; }
.footer-contact span, .footer-contact small { color: var(--muted); }
.footer-brand, .footer-status { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { font-size: 14px; }
.footer-brand small, .footer-principles, .footer-status small { color: var(--muted); font-size: 12px; }
.footer-principles { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.pill-sample { width: max-content; padding: 4px 8px; border-radius: 20px; background: var(--paper); font-size: 11px; }
.filter-scrim { z-index: 70; visibility: hidden; }
.filter-scrim.show { visibility: visible; }
.safety-guide ol { display: grid; gap: 12px; padding-left: 22px; }
.safety-guide li b, .safety-guide li span { display: block; }
.safety-guide li span { color: var(--muted); font-size: 13px; }
@media(max-width:980px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .workspace { grid-template-columns: minmax(0,1fr) 230px; gap: 12px; }
  .safety-sidebar { padding: 14px; }
  .listing-card { grid-template-columns: 76px minmax(0,1fr) 150px; gap: 11px; }
  .listing-visual { height: 76px; }
  .tile-monogram { width: 50px; height: 50px; }
}
@media(max-width:720px) {
  .page-shell { width: min(100% - 24px,1180px); margin-top: 18px; }
  .topbar-inner { width: calc(100% - 24px); height: 60px; }
  .demo-pill { display: none; }
  .hero-panel { gap: 15px; padding: 10px 0 18px; }
  .hero-copy h1 { margin-top: 12px; font-size: 30px; }
  .search-card { padding: 13px; }
  .search-title-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .search-status { width: 100%; justify-content: space-between; }
  .search-row { flex-direction: column; }
  .search-input-wrap { height: 48px; }
  .search-input-wrap kbd { display: none; }
  .category-scope { margin-left: 0; }
  .source-health { display: grid; grid-template-columns: 1fr 1fr; }
  .source-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .source-card { padding: 9px; border-bottom: 1px solid var(--line); }
  .source-card:nth-child(3) { border-right: 0; }
  .source-card:last-child { grid-column: 1 / -1; }
  .source-card small { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 9px; }
  .metric-icon { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .results-panel { padding: 13px; }
  .safety-sidebar { position: static; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .results-tools { width: 100%; flex-wrap: wrap; }
  .market-tabs { overflow-x: auto; }
  .market-tab { padding: 0 8px; white-space: nowrap; }
  .listing-card { grid-template-columns: 64px minmax(0,1fr); gap: 10px; padding: 12px 0; }
  .listing-visual { height: 64px; }
  .tile-monogram { width: 44px; height: 44px; font-size: 12px; }
  .listing-side { grid-column: 2; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); }
  .price-block strong { font-size: 18px; }
  .trust-grid { gap: 6px 10px; }
  .analysis-line { align-items: flex-start; }
  .title { white-space: normal; }
  .footer-inner { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; }
  .sync-state { margin-left: auto; }
  .modal-card { padding: 18px; }
  .analysis-summary { grid-template-columns: 1fr; }
  .compare-tray { flex-wrap: wrap; justify-content: space-between; }
  .compare-items { display: none; }
  .score-row { grid-template-columns: 100px 1fr auto; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}
