/* 노트북 실시간 최저가관 — 스타일 (라이트 기본 + 다크, 모바일 2열 / 데스크톱 사이드바 레이아웃) */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #eef1f8; --surface-3: #e6eaf4;
  --ink: #111827; --ink-2: #374151; --muted: #667085; --line: #e3e7ef;
  --brand: #3451e0; --brand-ink: #ffffff; --brand-soft: #e9edff; --brand-2: #7c3aed;
  --cta: #3451e0; --cta-hover: #2a42c0;
  --good: #067647; --good-bg: #e7f7ee; --warn: #b54708; --warn-bg: #fff4e0; --danger: #d92d20;
  --ai-s: #7c3aed; --ai-a: #2563eb; --ai-b: #0f9aa8; --ai-c: #64748b; --ai-d: #94a3b8;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 2px 8px rgba(16,24,40,.06);
  --shadow-lg: 0 14px 40px rgba(16,24,40,.16);
  --r: 12px; --r-sm: 8px; --maxw: 1480px;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171b24; --surface: #212631; --surface-2: #2a303d; --surface-3: #343b4a;
    --ink: #eef1f7; --ink-2: #cfd5e2; --muted: #9aa4b8; --line: #343b4a;
    --brand: #8aa0ff; --brand-ink: #0c1230; --brand-soft: #2a3358; --brand-2: #b794ff;
    --cta: #7f97ff; --cta-hover: #9fb0ff;
    --good: #5fd39a; --good-bg: #1d3a2e; --warn: #ffb866; --warn-bg: #3d3020; --danger: #ff8a80;
    --ai-s: #b794ff; --ai-a: #7fa6ff; --ai-b: #52d1dc; --ai-c: #a5b0c4; --ai-d: #7b869a;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.22);
    --shadow-lg: 0 14px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171b24; --surface: #212631; --surface-2: #2a303d; --surface-3: #343b4a;
  --ink: #eef1f7; --ink-2: #cfd5e2; --muted: #9aa4b8; --line: #343b4a;
  --brand: #8aa0ff; --brand-ink: #0c1230; --brand-soft: #2a3358; --brand-2: #b794ff;
  --cta: #7f97ff; --cta-hover: #9fb0ff;
  --good: #5fd39a; --good-bg: #1d3a2e; --warn: #ffb866; --warn-bg: #3d3020; --danger: #ff8a80;
  --ai-s: #b794ff; --ai-a: #7fa6ff; --ai-b: #52d1dc; --ai-c: #a5b0c4; --ai-d: #7b869a;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.22);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none !important; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-cta { background: var(--cta); color: var(--brand-ink); width: 100%; padding: 11px 12px; font-size: .95rem; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
.btn-xs { padding: 5px 10px; font-size: .78rem; width: auto; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: 0 0 auto; }
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; color: var(--brand); font-size: .85rem; padding: 0; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: none; margin-left: 18px; gap: 4px; }
.top-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.top-nav a:hover { background: var(--surface-2); }
.top-nav a.on { color: var(--brand); background: var(--brand-soft); }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; }
.bn-short { display: none; }
@media (max-width: 479px) { .bn-long { display: none; } .bn-short { display: inline; } }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none !important; line-height: 1.2; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip-more { background: var(--surface-2); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.share-wrap { position: relative; }
.share-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 70; }
.share-menu.open { display: block; }
.share-menu a, .share-menu button { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.share-menu a:hover, .share-menu button:hover { background: var(--surface-2); }

/* ---------- search ---------- */
.search-layer { position: fixed; inset: 0; z-index: 120; background: rgba(10,14,25,.55); display: flex; justify-content: center; padding: 64px 12px 12px; }
.search-layer[hidden] { display: none; }
.search-box { width: 100%; max-width: 680px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; max-height: calc(100vh - 80px); overflow: auto; align-self: flex-start; }
.search-box form { display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.search-box input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.search-results { margin-top: 10px; }
.sr { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; border: 1px solid transparent; }
.sr:hover { background: var(--surface-2); }
.sr img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; flex: 0 0 auto; }
.sr-b { min-width: 0; flex: 1; }
.sr-t { font-size: .9rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-s { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.sr-p { font-weight: 800; white-space: nowrap; }
.s-hint { font-size: .78rem; margin: 10px 4px 0; }
.sr-msg { padding: 18px 8px; text-align: center; color: var(--muted); }

/* ---------- layout / sidebar ---------- */
.layout { display: block; padding-top: 16px; padding-bottom: 40px; }
.main { min-width: 0; }
.scrim { position: fixed; inset: 0; background: rgba(10,14,25,.5); z-index: 80; }
.scrim[hidden] { display: none; }
.side { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--surface); transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto; padding: 14px 16px 90px; box-shadow: var(--shadow-lg); }
.side.open { transform: none; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.f-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.f-sort { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.f-sort select { font: inherit; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.f-group { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.f-group legend { font-size: .82rem; font-weight: 800; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.f-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .9rem; cursor: pointer; }
.f-opt input { width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
.f-opt span { flex: 1; min-width: 0; }
.f-opt em { font-style: normal; font-size: .76rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 7px; }
.show-result { position: sticky; bottom: 0; margin-top: 10px; }
.side-nav a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.side-home { font-weight: 700; }
.side-group { margin-top: 12px; }
.side-gtitle { font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: .02em; padding: 0 8px 4px; }

@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 28px; padding-top: 22px; }
  .side { position: sticky; top: 76px; align-self: start; transform: none; width: auto; max-height: calc(100vh - 92px); padding: 16px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; }
  .side-head, .scrim, .show-result, .menu-btn, .chips-row, .filter-open { display: none !important; }
  .top-nav { display: flex; }
  .wrap { padding: 0 24px; }
  .hdr-in { height: 66px; }
}

/* ---------- hero (home) ---------- */
.hero { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-2) 12%, var(--surface)) 55%, var(--surface)); border-bottom: 1px solid var(--line); }
.hero-in { padding-top: 34px; padding-bottom: 34px; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.8rem, 5.2vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.18; }
.hero-sub { max-width: 640px; margin-top: 14px; color: var(--ink-2); font-size: 1.04rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-2); }
.pill b { color: var(--ink); }
.pill.soft { background: transparent; color: var(--muted); }

/* ---------- sections ---------- */
.sec { margin-top: 30px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.sec-h h2 { font-size: 1.28rem; font-weight: 800; }
.sec-h h2 small { font-size: .78rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.sec-h p { margin: 2px 0 0; font-size: .86rem; }
.more-link { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.disc-inline { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--muted); }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
.hero-top h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; letter-spacing: -.03em; }
.hero-top h1 small { font-size: .55em; color: var(--muted); font-weight: 700; margin-left: 4px; }
.h1-emoji { margin-right: 2px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.hero-card .lead { color: var(--ink-2); margin: 12px 0 8px; font-size: 1rem; }
.datanote { font-size: .9rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); margin: 8px 0; }
.empty { margin-top: 24px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; background: var(--surface); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--brand); }
.tile-e { grid-row: 1 / span 2; font-size: 1.6rem; line-height: 1; }
.tile strong { font-size: .95rem; line-height: 1.25; }
.tile small { color: var(--muted); font-size: .74rem; line-height: 1.3; }

.picks { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pick { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.pick:hover { border-color: var(--brand); }
.pick-k { position: absolute; top: -9px; left: 12px; background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.pick img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; }
.pick-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-b strong { font-size: .92rem; line-height: 1.35; }
.pick-b small { color: var(--muted); font-size: .76rem; }
.pick-s { font-size: .78rem; color: var(--ink-2); }
.pick-b em { font-style: normal; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow-lg); }
.card.is-hidden { display: none; }
.cmp { position: absolute; top: 8px; left: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; background: rgba(17,24,39,.72); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px 3px 6px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px); }
.cmp input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.card.is-cmp { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.card-media { position: relative; display: block; margin: 8px 8px 0; border-radius: 8px; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rank { position: absolute; right: 8px; top: 8px; background: #ff4757; color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.ai-badge { position: absolute; right: 8px; bottom: 8px; font-size: .72rem; font-weight: 900; padding: 2px 9px; border-radius: 999px; color: #fff; letter-spacing: .02em; white-space: nowrap; line-height: 1.5; }
.ai-badge.ai-s { background: var(--ai-s); } .ai-badge.ai-a { background: var(--ai-a); } .ai-badge.ai-b { background: var(--ai-b); }
.ai-badge.ai-c { background: var(--ai-c); } .ai-badge.ai-d { background: var(--ai-d); }
.ai-badge.ai-q { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.cmp-tbl .ai-badge, .pick .ai-badge, .sr .ai-badge, .d-ai .ai-badge { position: static; display: inline-block; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.brandline { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 700; min-height: 1.1em; }
.rk { color: #e03131; background: #fff0f0; border-radius: 999px; padding: 0 7px; font-size: .68rem; }
.rk2 { color: var(--good); background: var(--good-bg); }
.c-title { font-size: .86rem; font-weight: 700; line-height: 1.38; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.c-title a { color: var(--ink); text-decoration: none; }
.specs { list-style: none; padding: 0; margin: 2px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.specs li { display: flex; gap: 6px; font-size: .74rem; line-height: 1.35; align-items: baseline; min-width: 0; }
.specs i { font-style: normal; color: var(--muted); width: 3.6em; flex: 0 0 3.6em; font-weight: 600; }
.specs b { font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs b.na { color: var(--muted); font-weight: 600; }
.specs .more { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.llm { font-size: .72rem; color: var(--ai-a); font-weight: 700; }
.price-row { margin-top: auto; padding-top: 4px; }
.price { font-size: 1.22rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.price small { font-size: .72em; font-weight: 700; margin-left: 1px; }
.price-note { font-size: .72rem; color: var(--muted); }
.detail-btn { width: 100%; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .picks { grid-template-columns: repeat(2, 1fr); }
  .specs li { font-size: .78rem; }
  .specs .more { display: flex; }
  .c-title { font-size: .92rem; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1360px) {
  .grid, .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picks { grid-template-columns: repeat(4, 1fr); }
  .pick { grid-template-columns: 1fr; }
  .pick img { width: 100%; height: 150px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { padding: 14px 14px; }
}

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tbl { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--surface-2); font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.cmp-tbl { min-width: 860px; }
.cmp-tbl .m a { color: var(--ink); font-weight: 600; }
.cmp-tbl .pr { font-weight: 800; white-space: nowrap; }
.cmp-tbl .n { font-weight: 900; color: var(--brand); }
.cmp-tbl td.na { color: var(--muted); }

/* ---------- criteria / faq / guide cards ---------- */
.crit { display: grid; grid-template-columns: 1fr; gap: 10px; }
.crit-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.crit-i h3 { font-size: 1rem; margin-bottom: 4px; }
.crit-i p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; color: var(--brand); }
.faq p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.guide-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gcard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.gcard strong { font-size: .98rem; line-height: 1.35; }
.gcard small { color: var(--muted); font-size: .82rem; }
.gcard em { font-style: normal; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.g-emoji { font-size: 1.5rem; }
@media (min-width: 720px) { .crit { grid-template-columns: repeat(3, 1fr); } .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- article ---------- */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
.art-h h1 { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 900; letter-spacing: -.03em; }
.art-meta { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.toc { background: var(--surface-2); border-radius: var(--r); padding: 12px 16px; margin: 16px 0; font-size: .92rem; }
.toc ol { margin: 6px 0 0; padding-left: 0; list-style: none; }
.toc li { padding: 2px 0; }
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin: 28px 0 10px; color: var(--ink); padding-top: 8px; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.08rem; margin: 20px 0 6px; color: var(--ink); }
.prose p, .prose li { line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 4px; }
.prose .lead-p { font-size: 1.1rem; color: var(--ink); background: var(--brand-soft); border-radius: var(--r); padding: 14px 16px; }
.prose .note { font-size: .84rem; color: var(--muted); }
.prose strong { color: var(--ink); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 90px; margin-top: 20px; }
.ftr-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ftr ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: .86rem; }
.ftr li { padding: 2px 0; }
.ftr a { color: var(--ink-2); }
.disclosure { margin: 20px 0 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: .82rem; color: var(--ink-2); }
@media (min-width: 720px) { .ftr-grid { grid-template-columns: 1.4fr 1.2fr 1.6fr 1fr; } }

/* ---------- compare bar / dialogs ---------- */
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16,24,40,.14); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.cmp-bar[hidden] { display: none; }
.dlg { border: 0; padding: 0; border-radius: 18px; width: min(94vw, 600px); max-height: 90vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(10,14,25,.58); }
.dlg-wide { width: min(96vw, 940px); }
.dlg-in { padding: 18px; position: relative; }
.dlg-x { position: sticky; top: 0; float: right; margin: -4px -4px 0 8px; z-index: 2; }
@media (max-width: 639px) { .dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; max-height: 92vh; } }
.d-top { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.d-top img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 12px; }
.d-title { font-size: 1.02rem; font-weight: 800; line-height: 1.4; }
.d-price { font-size: 1.4rem; font-weight: 900; margin-top: 4px; }
.d-sub { font-size: .8rem; color: var(--muted); }
.d-ai { margin: 14px 0; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.d-ai-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-ai-h strong { font-size: 1rem; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ai-b), var(--ai-a), var(--ai-s)); }
.d-llm { font-weight: 800; }
.d-why { margin: 8px 0 0; padding-left: 1.1em; font-size: .84rem; color: var(--ink-2); }
.d-specs { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; }
.d-specs th { text-align: left; width: 28%; color: var(--muted); font-weight: 600; padding: 8px 8px 8px 0; vertical-align: top; white-space: nowrap; }
.d-specs td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.d-specs tr:last-child td { border-bottom: 0; }
.src { display: inline-block; font-size: .68rem; font-weight: 700; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted); vertical-align: middle; }
.src.official { background: var(--brand-soft); color: var(--brand); }
.src.title { background: var(--good-bg); color: var(--good); }
.d-note { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.d-cta { margin-top: 14px; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: fixed; }
.cmp-t th { width: 22%; text-align: left; color: var(--muted); font-weight: 700; padding: 8px 6px; vertical-align: top; }
.cmp-t td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.cmp-t thead td { border-top: 0; text-align: center; }
.cmp-t thead img { width: 90px; height: 90px; margin: 0 auto 6px; object-fit: contain; background: #fff; border-radius: 10px; }
.cmp-t .win { background: var(--good-bg); font-weight: 800; border-radius: 6px; }
.cmp-t .nm { font-weight: 800; font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-legend { font-size: .76rem; color: var(--muted); margin: 8px 0 0; }

@media print { .hdr, .side, .cmp-bar, .ftr { display: none; } }
