@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0b0e14;
  --bg-2: #0f131b;
  --panel: #141925;
  --panel-2: #19202e;
  --panel-hi: #1f2839;
  --ink: #e6ecf5;
  --ink-soft: #b6c0d2;
  --muted: #7a8699;
  --border: #232c3d;
  --border-soft: #1a2231;
  --rule: #28324a;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --brand-1: #5eead4;
  --brand-2: #38bdf8;
  --logo-inset: #0b0e14;
  --accent-glow: rgba(94, 234, 212, 0.18);
  --highlight: rgba(56, 189, 248, 0.08);

  --good: #4ade80;
  --good-bg: rgba(74, 222, 128, 0.10);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.10);
  --marginal: #f59e0b;
  --marginal-bg: rgba(245, 158, 11, 0.10);
  --bad: #f87171;

  --gpu: #f472b6;
  --cpu: #60a5fa;
  --ram: #34d399;
  --storage: #fbbf24;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

html[data-theme="light"] {
  --bg: #eef1f6;
  --bg-2: #e7ebf2;
  --panel: #ffffff;
  --panel-2: #f5f7fa;
  --panel-hi: #eef2f7;
  --ink: #11192a;
  --ink-soft: #3c4862;
  --muted: #697587;
  --border: #d9e0ea;
  --border-soft: #e6ebf2;
  --rule: #dde4ed;
  --accent: #0f9a8d;
  --accent-2: #0284c7;
  --accent-glow: rgba(94, 234, 212, 0.22);
  --highlight: rgba(2, 132, 199, 0.06);
  --good: #16a34a;
  --good-bg: rgba(22, 163, 74, 0.09);
  --warn: #b8860b;
  --warn-bg: rgba(184, 134, 11, 0.10);
  --marginal: #c2740a;
  --marginal-bg: rgba(194, 116, 10, 0.10);
  --bad: #dc2626;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink-soft);
  cursor: pointer;
  flex: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(circle at 12% -10%, rgba(94, 234, 212, 0.08), transparent 40%),
    radial-gradient(circle at 92% 6%, rgba(56, 189, 248, 0.07), transparent 45%);
  background-attachment: fixed;
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

/* ============ top nav banner ============ */

header.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 18px var(--accent-glow);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: var(--logo-inset);
  border: 1.5px solid var(--brand-1);
}

.brand-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.brand-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-group {
  display: flex;
  gap: 2px;
}

.nav-group a {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-group a:hover {
  color: var(--ink);
  background: var(--panel-2);
}

.nav-group a.active {
  color: var(--ink);
  background: var(--panel-hi);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-group.primary a {
  font-weight: 600;
  color: var(--ink);
}
.nav-group.primary a:hover { background: rgba(94, 234, 212, 0.08); }
.nav-group.primary a.active { background: rgba(94, 234, 212, 0.12); color: var(--accent); }

.nav-group.secondary a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.nav-group.secondary a:hover { color: var(--ink); }
.nav-group.secondary a.active { color: var(--accent-2); background: rgba(56, 189, 248, 0.08); }

.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 1px;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
}

main.content {
  padding: 36px 32px 80px;
  width: 100%;
}

@media (max-width: 1200px) {
  .topnav-inner { gap: 16px; padding: 12px 22px; }
  .nav-toggle { display: flex; }
  .topnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 22px;
    gap: 12px;
    margin-left: 0;
  }
  .topnav-inner.open .topnav-links { display: flex; }
  .topnav-inner.open .topnav-links .nav-group { flex-direction: column; gap: 2px; }
  .topnav-inner.open .nav-sep { width: 100%; height: 1px; }
  main.content { padding: 24px 22px 56px; }
}

/* ============ typography ============ */

h1.page-title {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--ink);
}

h1.page-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-lede {
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 720px;
  line-height: 1.55;
}

h2.section-head {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}

h2.section-head::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

h3.sub-head {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--ink);
}

p { margin: 0 0 14px; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

.body-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

/* ============ stats ============ */

.statbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0 0 36px;
  border: none;
}

.statbar .stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s, transform 0.15s;
}

.statbar .stat:hover { border-color: var(--accent); }

.statbar .label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 8px;
}

.statbar .value {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.015em;
}

@media (max-width: 1080px) { .statbar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .statbar { grid-template-columns: repeat(2, 1fr); } }

/* ============ tables ============ */

table.editorial {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  margin: 0 0 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.editorial th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

table.editorial td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-soft);
  vertical-align: middle;
}

table.editorial tr:last-child td { border-bottom: none; }
table.editorial tr:hover td { background: var(--panel-hi); color: var(--ink); }

table.editorial td.num, table.editorial th.num {
  text-align: right;
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
}

table.editorial tr.hl td { background: var(--highlight); color: var(--ink); }
table.editorial td.lead { font-weight: 600; color: var(--ink); }

table.compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.compact th, table.compact td {
  padding: 8px 14px 8px 0;
  text-align: left;
  color: var(--ink-soft);
}

table.compact td.num, table.compact th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ============ tag chips ============ */

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
  vertical-align: 1px;
}

.tag.gpu { color: var(--gpu); background: rgba(244, 114, 182, 0.08); }
.tag.cpu { color: var(--cpu); background: rgba(96, 165, 250, 0.08); }
.tag.ram { color: var(--ram); background: rgba(52, 211, 153, 0.08); }
.tag.storage { color: var(--storage); background: rgba(251, 191, 36, 0.08); }

/* ============ search + forms ============ */

.search-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

.search-bar:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }

.search-bar input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
}

.search-bar input[type="text"]::placeholder { color: var(--muted); font-style: normal; font-family: var(--sans); }

.search-bar select {
  border: none;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  outline: none;
  cursor: pointer;
}

.search-bar button {
  border: none;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-2), #0ea5e9);
  color: #06121d;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}

.search-bar button:hover { filter: brightness(1.1); }

input[type="text"], input[type="number"], input[type="date"], select, textarea {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button.btn {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #06121d;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: filter 0.15s, transform 0.05s;
}

button.btn:hover { filter: brightness(1.08); }
button.btn:active { transform: translateY(1px); }

button.btn.ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border);
}

button.btn.ghost:hover { background: var(--panel-hi); border-color: var(--accent-2); color: var(--ink); filter: none; }

button.btn.danger {
  background: transparent;
  color: var(--bad);
  border-color: var(--bad);
}
button.btn.danger:hover { background: var(--bad); color: #1a0606; filter: none; }

/* ============ result list ============ */

.results-count {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 12px;
}

.results-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.result-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  color: var(--ink);
  transition: background 0.15s;
}

.result-row:last-child { border-bottom: none; }
.result-row:hover { background: var(--panel-hi); }

.result-row .cat-slot { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result-row .cat-slot.gpu { color: var(--gpu); }
.result-row .cat-slot.cpu { color: var(--cpu); }
.result-row .cat-slot.ram { color: var(--ram); }
.result-row .cat-slot.storage { color: var(--storage); }

.result-row .name { font-family: var(--display); font-size: 16px; color: var(--ink); line-height: 1.3; font-weight: 600; }
.result-row .cid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.result-row .arrow { font-family: var(--sans); color: var(--muted); font-size: 18px; }
.result-row:hover .arrow { color: var(--accent); transform: translateX(2px); transition: transform 0.15s, color 0.15s; }

/* ============ component detail header ============ */

.cd-header {
  margin: 0 0 32px;
  padding: 28px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cd-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.cd-back {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 18px;
  position: relative;
}
.cd-back:hover { color: var(--accent); }

.cd-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  position: relative;
}

.cd-eyebrow .dot { color: var(--rule); margin: 0 8px; }
.cd-eyebrow strong { color: var(--ink); font-weight: 700; }
.cd-eyebrow .gpu { color: var(--gpu); }
.cd-eyebrow .cpu { color: var(--cpu); }
.cd-eyebrow .ram { color: var(--ram); }
.cd-eyebrow .storage { color: var(--storage); }

.cd-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  position: relative;
}

.cd-cid {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  word-break: break-all;
  position: relative;
}

/* ============ spec list ============ */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.spec-grid li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.spec-grid li:hover { border-color: var(--accent-2); }

.spec-grid .spec-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.spec-grid .spec-value {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============ recommendation block ============ */

.recommend {
  margin: 0 0 32px;
  padding: 24px 28px;
  border: 1px solid var(--good);
  border-left: 4px solid var(--good);
  background: var(--good-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.recommend.wait { border-color: var(--warn); border-left-color: var(--warn); background: var(--warn-bg); }
.recommend.marginal { border-color: var(--marginal); border-left-color: var(--marginal); background: var(--marginal-bg); }

.recommend::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, currentColor, transparent 70%);
  opacity: 0.06;
  color: var(--good);
  pointer-events: none;
}
.recommend.wait::after { color: var(--warn); }
.recommend.marginal::after { color: var(--marginal); }

.recommend .verdict-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.recommend .verdict {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--good);
  margin: 0 0 8px;
  line-height: 1.1;
}

.recommend.wait .verdict, .recommend.wait .verdict-amount { color: var(--warn); }
.recommend.marginal .verdict, .recommend.marginal .verdict-amount { color: var(--marginal); }

.recommend .verdict em { font-style: normal; font-weight: 700; }

.recommend .reason {
  font-family: var(--sans);
  font-size: 14.5px;
  font-style: normal;
  color: var(--ink-soft);
  margin: 4px 0 18px;
}

.recommend-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.recommend-detail .rd-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.recommend-detail .rd-value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.recommend-detail .rd-sub {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.recommend .hist-note {
  font-family: var(--sans);
  font-size: 13.5px;
  font-style: normal;
  color: var(--ink-soft);
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============ chart wrap ============ */

.chart-wrap {
  position: relative;
  height: 340px;
  margin: 8px 0 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.chart-wrap.tall { height: 400px; }

.chart-caption {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 24px;
}

/* ============ two-column layouts ============ */

.col-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 800px) { .col-2 { grid-template-columns: 1fr; gap: 24px; } }

.col-2-eq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) { .col-2-eq { grid-template-columns: 1fr; } }

/* ============ flash ============ */

.flash {
  padding: 12px 16px;
  margin: 0 0 24px;
  border: 1px solid var(--good);
  border-left: 3px solid var(--good);
  background: var(--good-bg);
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.flash.error {
  border-color: var(--bad);
  background: rgba(248, 113, 113, 0.10);
  color: var(--bad);
}

.calib-banner {
  padding: 12px 16px;
  margin: 0 0 24px;
  border: 1px solid var(--cpu);
  border-left: 3px solid var(--cpu);
  background: rgba(96, 165, 250, 0.08);
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

.calib-banner strong { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* ============ pipeline list ============ */

.pipeline-list { list-style: none; padding: 0; margin: 0; }

.pipeline-list li {
  display: grid;
  grid-template-columns: 56px 240px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

.pipeline-list li:hover { border-color: var(--accent); }

.pipeline-list .stage-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.pipeline-list .stage-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
}

.pipeline-list .stage-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .pipeline-list li { grid-template-columns: 40px 1fr; }
  .pipeline-list .stage-name { display: none; }
}

/* ============ visuals ============ */

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.viz-fig {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin: 0;
}

.viz-fig:hover { border-color: var(--accent-2); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.viz-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viz-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.viz-chart-wrap {
  position: relative;
  height: 280px;
  margin-bottom: 14px;
}

.viz-fig figcaption {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ============ build planner ============ */

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 700px) { .build-grid { grid-template-columns: 1fr; } }

.picker {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color 0.15s;
}

.picker:hover { border-color: var(--border); }

.picker .cat-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.picker .cat-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.picker .cat-name.gpu { color: var(--gpu); }
.picker .cat-name.cpu { color: var(--cpu); }
.picker .cat-name.ram { color: var(--ram); }
.picker .cat-name.storage { color: var(--storage); }

.picker .cat-hint { font-family: var(--sans); font-style: normal; font-size: 11.5px; color: var(--muted); }

.picker .results-dropdown { position: relative; }
.picker input[type="text"] { width: 100%; }

.picker .picked {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
}

.picker .picked.empty { color: var(--muted); font-family: var(--sans); font-style: normal; background: transparent; border: 1px dashed var(--border); padding: 10px 12px; }
.picker .picked.empty::before { content: ""; }

.picker .picked .pmodel { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); }
.picker .picked .pcid { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-all; }

.results-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel-hi);
  border: 1px solid var(--accent-2);
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.results-list.show { display: block; }

.results-list .opt {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}

.results-list .opt:last-child { border-bottom: none; }
.results-list .opt:hover { background: var(--panel-2); }
.results-list .opt .opt-model { font-family: var(--display); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.results-list .opt .opt-cid { font-family: var(--mono); color: var(--muted); font-size: 11px; margin-top: 2px; }

.build-actions { display: flex; gap: 10px; margin: 8px 0 32px; flex-wrap: wrap; }

/* ============ generic ============ */

.empty-state {
  padding: 48px 20px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding: 3px 8px;
  background: var(--accent-glow);
  border-radius: 3px;
}

.divider {
  height: 1px;
  background: var(--rule);
  margin: 36px 0;
  border: none;
}

.colophon {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ landing hero ============ */

.hero {
  position: relative;
  margin: -8px 0 40px;
  padding: 36px 36px 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(94, 234, 212, 0.16), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.10), transparent 50%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.hero-inner { max-width: 720px; position: relative; z-index: 1; }

.hero-title {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 10px 0 18px;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 640px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero {
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}

.hero-stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s;
}
.hero-stat:hover { border-color: var(--accent-2); }

.hero-stat-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-stat-value {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .hero { padding: 26px 22px 24px; }
  .hero-title { font-size: 32px; }
}

/* ============ featured grid ============ */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.featured-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  transition: all 0.15s;
  position: relative;
}

.featured-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.featured-card .cat-slot {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-card .cat-slot.gpu { color: var(--gpu); }
.featured-card .cat-slot.cpu { color: var(--cpu); }
.featured-card .cat-slot.ram { color: var(--ram); }
.featured-card .cat-slot.storage { color: var(--storage); }

.featured-model {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin: 8px 0 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.featured-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.featured-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.featured-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.featured-pill {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.featured-pill.good { background: var(--good-bg); color: var(--good); border: 1px solid rgba(74,222,128,0.3); }
.featured-pill.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(251,191,36,0.3); }

/* ============ footer ============ */

footer.site-footer {
  margin-top: 80px;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.footer-brand .wordmark {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .wordmark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.footer-brand .wordmark em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand .desc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }

.footer-rule {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0 16px;
  border: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}

.footer-bottom .dot { margin: 0 8px; color: var(--rule); }

/* ============ topnav search ============ */

.topnav-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.topnav-search:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.topnav-search .search-icon { color: var(--muted); flex-shrink: 0; }

.topnav-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 8px 8px 8px 10px;
}

.topnav-search input::placeholder { color: var(--muted); }

.topnav-search .search-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
}

.topnav-search input:focus ~ .search-hint { display: none; }

.global-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 60;
}

.global-results.show { display: block; }

.gr-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
  transition: background 0.1s;
}

.gr-item:last-child { border-bottom: none; }
.gr-item:hover, .gr-item.hi { background: var(--panel-hi); }

.gr-item .tag { align-self: center; }

.gr-model {
  grid-column: 2;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.gr-cid {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.gr-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

@media (max-width: 980px) {
  .topnav-search { max-width: none; order: 3; flex-basis: 100%; }
  .topnav-search .search-hint { display: none; }
}

/* ============ nav badge ============ */

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--accent);
  color: #06121d;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* ============ save button ============ */

.cd-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.save-btn:hover { color: var(--ink); border-color: var(--accent); }
.save-btn.saved { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.save-btn.saved svg path { fill: var(--accent); }

.save-btn.floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.save-btn.floating:hover { background: var(--panel-hi); }

.deal-card .deal-foot { padding-right: 38px; }

/* ============ build presets ============ */

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.preset-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

.preset-btn {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--ink-soft);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.preset-btn:hover { color: var(--ink); border-color: var(--accent-2); }
.preset-btn.budget:hover { border-color: var(--ram); color: var(--ram); }
.preset-btn.mid:hover { border-color: var(--accent-2); color: var(--accent-2); }
.preset-btn.high:hover { border-color: var(--gpu); color: var(--gpu); }

/* ============ confidence pill ============ */

.confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid currentColor;
  margin: 12px 0 0;
}

.confidence-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.confidence-pill.high { color: var(--good); background: var(--good-bg); }
.confidence-pill.medium { color: var(--accent-2); background: rgba(56, 189, 248, 0.08); }
.confidence-pill.low { color: var(--muted); background: var(--panel-2); }

/* smooth scroll */
html { scroll-behavior: smooth; }

/* ============ deals page ============ */

.deals-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 28px;
  width: fit-content;
}

.deals-tabs a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.deals-tabs a:hover { color: var(--ink); background: var(--panel-2); }
.deals-tabs a.active { color: var(--ink); background: var(--panel-hi); box-shadow: inset 0 0 0 1px var(--accent-2); }
.deals-tabs a.gpu.active { box-shadow: inset 0 0 0 1px var(--gpu); color: var(--gpu); }
.deals-tabs a.cpu.active { box-shadow: inset 0 0 0 1px var(--cpu); color: var(--cpu); }
.deals-tabs a.ram.active { box-shadow: inset 0 0 0 1px var(--ram); color: var(--ram); }
.deals-tabs a.storage.active { box-shadow: inset 0 0 0 1px var(--storage); color: var(--storage); }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 32px;
}

.deal-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.deal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rule);
}

.deal-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.deal-card.buy::before { background: linear-gradient(90deg, var(--good), transparent); }
.deal-card.wait::before { background: linear-gradient(90deg, var(--warn), transparent); }

.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.deal-head .cat-slot {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deal-head .cat-slot.gpu { color: var(--gpu); }
.deal-head .cat-slot.cpu { color: var(--cpu); }
.deal-head .cat-slot.ram { color: var(--ram); }
.deal-head .cat-slot.storage { color: var(--storage); }

.deal-verdict {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 3px;
}

.deal-verdict.good { color: var(--good); background: var(--good-bg); }
.deal-verdict.warn { color: var(--warn); background: var(--warn-bg); }

.deal-model {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 4px 0 14px;
  letter-spacing: -0.005em;
}

.deal-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.deal-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.deal-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.deal-price.muted { color: var(--muted); font-size: 19px; }
.deal-price.accent { color: var(--accent); }

.deal-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.deal-foot strong { color: var(--accent); font-weight: 700; }

/* ============ compare page ============ */

.compare-pickers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 900px) { .compare-pickers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .compare-pickers { grid-template-columns: 1fr; } }

.cmp-picker {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.cmp-slot-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.cmp-picker .results-dropdown { position: relative; }
.cmp-picker input[type="text"] { width: 100%; }

/* ============ responsive tightening ============ */

/* tables overflow horizontally on narrow rather than breaking layout */
.table-scroll, table.editorial { max-width: 100%; }

@media (max-width: 980px) {
  .topnav-inner { flex-wrap: wrap; }
  .brand-text { font-size: 16px; }
  .topnav-search { order: 3; flex-basis: 100%; max-width: none; margin-top: 4px; }

  .hero { padding: 26px 22px 22px; }
  .hero-title { font-size: 34px; }
  .hero-lede { font-size: 14.5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .recommend { padding: 20px 22px; }
  .recommend-detail { grid-template-columns: 1fr 1fr; gap: 14px; }
  .recommend .verdict { font-size: 24px; }

  .cd-header { padding: 22px 20px; }
  .cd-title { font-size: 28px; }

  .viz-grid { grid-template-columns: 1fr; }
  .viz-chart-wrap { height: 240px; }

  .col-2 { gap: 24px; }

  .preset-row { padding: 12px 14px; }
  .preset-row .preset-label { width: 100%; margin-bottom: 4px; }

  main.content { padding: 22px 18px 56px; }
}

@media (max-width: 720px) {
  h1.page-title { font-size: 30px; }
  .page-lede { font-size: 14px; margin-bottom: 24px; }
  h2.section-head { font-size: 16px; margin: 28px 0 12px; }

  .hero { padding: 22px 18px 20px; border-radius: 10px; }
  .hero-title { font-size: 28px; line-height: 1.1; }
  .hero-cta { gap: 10px; }
  .btn-hero { padding: 11px 18px; font-size: 12px; }
  .hero-stat-value { font-size: 22px; }

  .statbar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .statbar .stat { padding: 12px 14px; }
  .statbar .value { font-size: 22px; }

  .featured-grid { grid-template-columns: 1fr; }

  .deals-tabs { width: auto; overflow-x: auto; flex-wrap: nowrap; }
  .deals-tabs a { padding: 7px 12px; font-size: 11.5px; white-space: nowrap; }
  .deals-grid { grid-template-columns: 1fr; }

  .recommend-detail { grid-template-columns: 1fr; }

  .cd-header { padding: 20px 18px; }
  .cd-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cd-title { font-size: 24px; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spec-grid .spec-value { font-size: 16px; }

  table.editorial { font-size: 12.5px; }
  table.editorial th, table.editorial td { padding: 9px 10px; }
  table.editorial td.num, table.editorial th.num { font-size: 12px; }

  .chart-wrap { padding: 10px; height: 260px; }
  .chart-wrap.tall { height: 320px; }

  .pipeline-list li { grid-template-columns: 40px 1fr; padding: 14px 16px; }
  .pipeline-list .stage-name { display: none; }
  .pipeline-list .stage-num { font-size: 22px; }
  .pipeline-list .stage-desc { font-size: 13px; }

  .build-grid, .compare-pickers { grid-template-columns: 1fr; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  main.content { padding: 18px 14px 44px; }
  .topnav-inner { padding: 10px 14px; gap: 10px; }

  .hero-title { font-size: 24px; }
  .hero-lede { font-size: 13.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-hero { text-align: center; }

  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar .label { font-size: 9.5px; }
  .statbar .value { font-size: 20px; }

  .deal-card { padding: 14px 16px; }
  .deal-model { font-size: 15.5px; }
  .deal-price { font-size: 19px; }

  .save-btn.floating { width: 28px; height: 28px; bottom: 10px; right: 10px; }
  .deal-card .deal-foot { padding-right: 34px; }

  .preset-btn { padding: 7px 12px; font-size: 11.5px; }

  .results-list .opt { padding: 9px 12px; }
  .gr-item { grid-template-columns: 48px 1fr; padding: 9px 12px; }
}

/* horizontal overflow handling — wrap wide tables in scrollers, page itself never scrolls sideways */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table.editorial {
  margin-bottom: 0;
  min-width: 100%;
  width: auto;
}

body { overflow-x: hidden; }
.page, main.content { min-width: 0; }

/* scrollbars to match dark theme */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--rule); }

/* ---- Buy Signal hero (A) ---- */
.buy-signal {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.bs-verdict {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bs-vlabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bs-word { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.12; margin: 4px 0 6px; }
.bs-reason { margin: 0; color: var(--ink-soft); font-size: 13px; }
.buy-signal.wait .bs-verdict { background: var(--warn-bg); border-color: var(--warn); }
.buy-signal.wait .bs-word { color: var(--warn); }
.buy-signal.buy .bs-verdict { background: var(--good-bg); border-color: var(--good); }
.buy-signal.buy .bs-word { color: var(--good); }
.buy-signal.marginal .bs-verdict { background: var(--marginal-bg); border-color: var(--marginal); }
.buy-signal.marginal .bs-word { color: var(--marginal); }
.bs-headline { font-size: 17px; color: var(--ink); }
.bs-headline strong { color: var(--good); }
.bs-stats { display: flex; flex-wrap: wrap; gap: 26px; margin: 16px 0; }
.bs-n { font-family: var(--mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-of { font-size: 12px; color: var(--muted); }
.bs-l { font-size: 12px; color: var(--muted); }
.bs-score.hi { color: var(--good); }
.bs-score.mid { color: var(--warn); }
.bs-score.lo { color: var(--bad); }
.bs-bar { position: relative; height: 6px; border-radius: 999px; background: var(--panel-hi); margin-top: 6px; }
.bs-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.bs-bar-pin { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); border: 3px solid var(--panel); transform: translateX(-50%); }
.bs-bar-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 7px; gap: 8px; }
.bs-hist { margin: 14px 0 0; color: var(--ink-soft); font-size: 13px; }

/* ---- Target price watch (C) ---- */
.target-watch { margin-top: 8px; }
.tw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tw-prefix { font-family: var(--mono); color: var(--muted); }
.tw-input {
  width: 130px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--mono);
  padding: 9px 12px;
  font-size: 14px;
}
.tw-input:focus { outline: none; border-color: var(--accent); }
.tw-out { flex: 1; min-width: 240px; color: var(--ink-soft); font-size: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border-soft); }
.tw-out.hit { background: var(--good-bg); border-color: var(--good); }
.tw-out.hit strong { color: var(--good); }
.tw-out.miss { background: var(--warn-bg); border-color: var(--warn); }

/* ---- D: deal sparkline ---- */
.deal-spark { width: 100%; height: 30px; margin: 4px 0 2px; display: block; }

/* ---- F: best-month heatmap ---- */
.heatmap { overflow-x: auto; margin-bottom: 24px; }
.heat-table { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 560px; }
.heat-table th { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; padding: 2px; }
.heat-table td.heat-lab { text-align: right; padding-right: 10px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.heat-cell { height: 30px; border-radius: 5px; text-align: center; font-family: var(--mono); font-size: 11px; color: rgba(8, 12, 10, 0.72); min-width: 38px; }

/* ---- E: smart purchase schedule ---- */
.sched { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.srow { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 80px; align-items: center; gap: 14px; }
.swho { font-size: 13.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.swho .smodel { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strack { position: relative; height: 28px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.sseg { position: absolute; top: 3px; bottom: 3px; min-width: 42px; padding: 0 6px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: #06121a; }
.ssave { font-family: var(--mono); font-size: 13px; color: var(--good); text-align: right; }
.sched-total { margin: 14px 0 8px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
.sched-total strong { color: var(--ink); }
.sched-total .sched-save { color: var(--good); }

/* ---- responsive safety nets ---- */
img, canvas, svg, video { max-width: 100%; }
@media (max-width: 680px) {
  .buy-signal { grid-template-columns: 1fr; padding: 18px; }
  .bs-stats { gap: 16px 24px; }
  .bs-word { font-size: 22px; }
  .tw-input { width: 100%; }
  .tw-out { min-width: 0; flex-basis: 100%; }
  .srow { grid-template-columns: 1fr; gap: 6px; }
  .ssave { text-align: left; }
}

/* ---- G: command palette ---- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 12, 0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk-overlay[hidden] { display: none; }
.cmdk { width: 580px; max-width: 92vw; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); overflow: hidden; }
.cmdk-q { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); color: var(--muted); }
.cmdk-q input { flex: 1; background: transparent; border: 0; outline: none; color: var(--ink); font-family: var(--sans); font-size: 15px; }
.cmdk-q kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-group { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 5px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; text-decoration: none; }
.cmdk-item:hover, .cmdk-item.active { background: var(--panel-hi); }
.cmdk-ic { color: var(--accent); width: 16px; text-align: center; }
.cmdk-model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-empty { padding: 18px 12px; color: var(--muted); text-align: center; font-size: 14px; }
.cmdk-skel { height: 34px; margin: 6px 12px; border-radius: var(--radius-sm); }

/* ---- K: skeleton shimmer ---- */
@keyframes pcf-sh { 0% { background-position: -280px 0; } 100% { background-position: 280px 0; } }
.skeleton { background: linear-gradient(90deg, var(--panel-2), var(--panel-hi), var(--panel-2)); background-size: 560px 100%; animation: pcf-sh 1.3s infinite linear; }

/* ---- H: compare tray + buttons ---- */
.compare-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 150; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 28px); background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.compare-tray[hidden] { display: none; }
.ct-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: none; }
.ct-chips { display: flex; gap: 7px; overflow-x: auto; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-hi); border: 1px solid var(--border-soft); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
.ct-x { color: var(--muted); cursor: pointer; }
.ct-x:hover { color: var(--bad); }
.ct-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.ct-clear { background: transparent; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.ct-go { padding: 7px 14px; font-size: 13px; }
.compare-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); border: 1px solid var(--border); color: var(--ink-soft); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.compare-btn:hover { border-color: var(--accent); color: var(--ink); }
.compare-btn.on { border-color: var(--accent); color: var(--accent); }
.compare-btn.floating { position: absolute; bottom: 12px; right: 48px; width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; }

/* ---- J: toasts ---- */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 220; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--panel-hi); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 12px 15px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); color: var(--ink); font-size: 14px; transform: translateY(140%); opacity: 0; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 560px) {
  .compare-tray { left: 14px; right: 14px; transform: none; border-radius: var(--radius); }
}

/* ---- L: rich empty states ---- */
.empty-rich { text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-2); margin: 8px 0 24px; }
.empty-rich .empty-ill { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; background: var(--panel-hi); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.empty-rich h3 { font-family: var(--display); font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.empty-rich p { color: var(--muted); font-size: 14px; max-width: 400px; margin: 0 auto 18px; line-height: 1.55; }
.empty-rich .empty-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kbd-inline { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
