:root {
  --ink: #171a17; --paper: #efeee8; --panel: #e4e2d8; --line: #c8c6bb;
  --acid: #c7f23b; --muted: #696c64; --cream: #f8f7f1; --orange: #ee8c45;
  --mono: "DM Mono", monospace; --sans: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
.topbar { height: 68px; padding: 0 42px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; font: 700 13px var(--sans); letter-spacing: .08em; }
.brand > span:last-child span { color: var(--acid); }
.brand-mark { border: 1px solid #60645b; padding: 6px; font: 500 10px var(--mono); }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { color: #9fa39a; font: 500 10px var(--mono); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.topbar nav a:hover, .topbar nav a.active { color: white; }
.upgrade-shell { min-height: calc(100vh - 112px); display: grid; grid-template-columns: minmax(290px, 31vw) 1fr; }
.build-rail { padding: 64px clamp(28px, 4vw, 68px); background: #20231f; color: white; border-top: 1px solid #30342e; }
.eyebrow { margin: 0 0 18px; color: #74786f; font: 500 9px var(--mono); letter-spacing: .13em; }
.build-rail .eyebrow { color: var(--acid); }
h1 { margin: 0; max-width: 330px; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.rail-copy { margin: 26px 0 38px; max-width: 380px; color: #a5a9a0; font-size: 13px; line-height: 1.75; }
.field-label { display: block; margin-bottom: 8px; color: #84897f; font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
#upgrade-config { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #464b43; border-radius: 0; background: #181b18; color: white; outline: 0; }
#upgrade-config:focus { border-color: var(--acid); }
.rail-message { min-height: 34px; padding: 10px 0; color: #a6aa9f; font-size: 11px; }
.build-summary { margin-top: 10px; border-top: 1px solid #3b4038; }
.build-part { padding: 15px 0; border-bottom: 1px solid #353a33; }
.build-part span { display: block; margin-bottom: 5px; color: #767b71; font: 500 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.build-part strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; }
.build-part small { color: #8e9388; font: 400 9px var(--mono); }
.text-link { display: inline-block; margin-top: 28px; color: var(--acid); font: 500 10px var(--mono); text-decoration: none; }
.planner { padding: 62px clamp(28px, 6vw, 88px) 90px; max-width: 1120px; width: 100%; }
.planner-heading, .plan-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.planner-heading h2, .plan-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 53px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.planner-heading > p, .plan-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.target-search-wrap { position: relative; margin-top: 44px; z-index: 4; }
.target-search { display: block; border-bottom: 2px solid var(--ink); }
.target-search span { display: block; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.target-search input { width: 100%; padding: 12px 0 16px; border: 0; background: transparent; color: var(--ink); font-size: clamp(19px, 2.5vw, 30px); font-weight: 500; outline: none; }
.target-search input::placeholder { color: #aaa99f; }
.target-results { position: absolute; top: 100%; right: 0; left: 0; max-height: 340px; overflow-y: auto; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 22px 50px rgb(20 22 18 / 15%); display: none; }
.target-results.open { display: block; }
.target-option { width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #deddd4; background: none; display: grid; grid-template-columns: 1fr auto; gap: 18px; text-align: left; cursor: pointer; }
.target-option:hover, .target-option:focus { background: white; outline: 0; }
.target-option strong { display: block; font-size: 12px; font-weight: 600; }
.target-option small { color: var(--muted); font: 400 9px var(--mono); }
.target-option > span:last-child { align-self: center; font: 500 12px var(--mono); }
.target-card { margin-top: 28px; min-height: 180px; background: #d9d7cd; display: grid; grid-template-columns: 210px 1fr auto; align-items: stretch; }
.target-image { background: #cac8bd; min-height: 180px; display: grid; place-items: center; overflow: hidden; }
.target-image img { width: 100%; height: 100%; object-fit: cover; }
.target-image span { color: #8b8c83; font: 500 9px var(--mono); letter-spacing: .08em; }
.target-copy { align-self: center; padding: 26px; }
.target-copy > p { margin: 0 0 6px; color: var(--muted); font: 500 9px var(--mono); text-transform: uppercase; }
.target-copy h3 { margin: 0 0 18px; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.target-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.target-specs span { padding: 6px 8px; border: 1px solid #bcbab0; color: #575a53; font: 400 8px var(--mono); text-transform: uppercase; }
.target-volume { min-width: 135px; padding: 26px; border-left: 1px solid #c1bfb5; display: flex; flex-direction: column; justify-content: center; text-align: right; }
.target-volume strong { font: 500 35px var(--mono); }
.target-volume > span { color: var(--muted); font: 500 8px var(--mono); letter-spacing: .12em; }
.target-volume small { margin-top: 14px; color: #55712a; font: 500 9px var(--mono); }
.analyze-button { width: 100%; min-height: 55px; margin-top: 18px; padding: 0 21px; border: 0; background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; }
.analyze-button:hover:not(:disabled) { background: #2d322b; }
.analyze-button:disabled { cursor: not-allowed; opacity: .35; }
.analyze-button span { color: var(--acid); font: 500 20px var(--mono); }
.error-message { min-height: 20px; color: #a6442e; font-size: 11px; }
.path-intro { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.tier-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.tier-key > div { padding: 13px 28px 0 0; }
.tier-key > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.tier-key span { color: #979991; font: 500 9px var(--mono); }
.tier-key strong { display: block; margin: 11px 0 7px; font-size: 13px; }
.tier-key p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.plan-output { margin-top: 72px; padding-top: 46px; border-top: 2px solid var(--ink); }
.plan-tiers { margin-top: 42px; }
.tier-section { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.tier-section:last-child { border-bottom: 1px solid var(--line); }
.tier-label { padding: 25px 20px 25px 0; }
.tier-label span { display: block; color: #898c83; font: 500 8px var(--mono); letter-spacing: .1em; }
.tier-label strong { display: block; margin-top: 8px; font-size: 14px; }
.tier-actions { border-left: 1px solid var(--line); }
.upgrade-action { padding: 24px 0 24px 30px; }
.upgrade-action + .upgrade-action { border-top: 1px solid var(--line); }
.action-top { display: grid; grid-template-columns: 28px 1fr; gap: 13px; }
.action-index { color: #8b8e85; font: 500 9px var(--mono); padding-top: 4px; }
.upgrade-action h4 { margin: 0 0 7px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.upgrade-action p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.requirement { margin: 14px 0 0 41px; padding: 9px 11px; background: #deddd4; font: 500 9px var(--mono); }
.alternatives { margin: 14px 0 0 41px; }
.alternatives > span { display: block; margin-bottom: 7px; color: #898c83; font: 500 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.alternative-list { display: flex; flex-wrap: wrap; gap: 6px; }
.alternative { padding: 7px 9px; border: 1px solid #c4c2b7; background: var(--cream); font-size: 9px; }
.compatible-now { padding: 28px; background: #dfe7c3; border-top: 1px solid #a7b180; }
.compatible-now strong { display: block; margin-bottom: 6px; font-size: 18px; }
.compatible-now p { margin: 0; color: #586044; font-size: 12px; }
.verification-note { margin-top: 36px; padding: 18px 0; display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verification-note strong { font-size: 11px; }
.verification-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
footer { height: 44px; padding: 0 42px; background: #151715; color: #73776e; display: flex; align-items: center; justify-content: space-between; font: 500 8px var(--mono); letter-spacing: .08em; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .topbar { padding: 0 20px; } .topbar nav { gap: 15px; } .topbar nav a:last-child { display: none; }
  .upgrade-shell { grid-template-columns: 1fr; }
  .build-rail { padding: 40px 24px; }
  .planner { padding: 42px 24px 70px; }
  .planner-heading, .plan-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .target-card { grid-template-columns: 120px 1fr; }
  .target-volume { grid-column: 1 / -1; min-height: 90px; border-left: 0; border-top: 1px solid #c1bfb5; text-align: left; }
  .tier-key { grid-template-columns: 1fr; }
  .tier-key > div, .tier-key > div + div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .tier-section { grid-template-columns: 1fr; }
  .tier-label { padding-bottom: 15px; }
  .tier-actions { border-left: 0; }
  .upgrade-action { padding-left: 0; }
  .verification-note { grid-template-columns: 1fr; gap: 8px; }
  footer { padding: 0 20px; }
}
