:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-2: #1a1a24;
  --border: #2a2a38;
  --text: #e8e8f0;
  --muted: #a0a0b4;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --multi: #60a5fa;
  --seg-weights: #6366f1;
  --seg-kv: #22d3ee;
  --seg-activation: #a78bfa;
  --seg-overhead: #64748b;
  --radius: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; font-size: 16px;
}
a { color: #8b8ef8; }
a:hover { color: #b0b2ff; }
:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .8em; font-weight: 400; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-header nav a:hover { color: var(--text); }

.hero { padding: 56px 0 32px; background: radial-gradient(ellipse at 50% 0, rgba(99,102,241,.18), transparent 60%); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; max-width: 720px; margin: 0 0 12px; color: #d0d0de; }
.sub { color: var(--muted); margin: 0 0 12px; }
.disclosure-inline { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; max-width: 720px; margin: 16px 0 0; }
.disc { font-size: .8rem; color: var(--muted); }

.tool { padding-top: 16px; padding-bottom: 48px; }
.grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h3 { margin: 0 0 16px; font-size: 1.05rem; }
.panel h3.mt { margin-top: 28px; }
.inputs { position: sticky; top: 64px; }

.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #cfcfe0; padding: 0; }
select, input[type=number] {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font: inherit; min-height: 44px;
}
select:hover, input[type=number]:hover { border-color: #3d3d52; }
input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.ctx { display: flex; gap: 12px; align-items: center; }
.ctx input[type=number] { width: 120px; flex: none; }
.disabled { opacity: .45; }
.hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.error { color: #fca5a5; font-size: .85rem; margin: 6px 0 0; min-height: 0; }

.seg-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-ctl legend { grid-column: 1 / -1; }
.seg-ctl label { margin: 0; position: relative; }
.seg-ctl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-ctl span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-weight: 500; font-size: .85rem; min-height: 44px; line-height: 1.4; }
.seg-ctl input:checked + span { background: rgba(99,102,241,.2); border-color: var(--accent); color: #fff; }
.seg-ctl input:focus-visible + span { outline: 2px solid #a5b4fc; outline-offset: 2px; }

.total { font-size: 1.1rem; margin: 0 0 12px; }
.total #total-vram { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.bar-viz { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.seg { display: block; height: 100%; min-width: 2px; }
.seg-weights { background: var(--seg-weights); }
.seg-kv { background: var(--seg-kv); }
.seg-activation { background: var(--seg-activation); }
.seg-overhead { background: var(--seg-overhead); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.lg-label { flex: 1; color: #cfcfe0; }
.lg-val { font-family: var(--mono); }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hl { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.hl h4 { margin: 0 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #a5b4fc; }
.hl p { margin: 0; }
.hl-gpu { font-weight: 600; font-size: 1.1rem; }
.hl-price { font-family: var(--mono); font-size: 1.05rem; }
.hl-sub { font-size: .8rem; color: var(--muted); margin-top: 4px !important; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody th { font-weight: 600; }
td.muted { color: var(--muted); }
.gpu-name { font-weight: 600; }
.tag { margin-left: 8px; font-size: .7rem; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-weight: 500; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid; }
.badge.ok { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.badge.warn { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.badge.multi { color: var(--multi); border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); }
.linkbtn { background: none; border: 0; color: #8b8ef8; font: inherit; cursor: pointer; padding: 10px 0; text-decoration: underline; min-height: 44px; }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--multi); border-radius: 6px; padding: 12px 14px; font-size: .88rem; margin: 12px 0; }

.cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; padding: 18px; border: 1px solid rgba(99,102,241,.5); background: rgba(99,102,241,.08); border-radius: var(--radius); }
.cta p { margin: 0; }
.cta-title { font-weight: 600; }
.cta-sub { color: #cfcfe0; font-size: .9rem; }
.cta .disc { margin-top: 6px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 8px; min-height: 44px; }
.btn:hover { background: var(--accent-hover); color: #fff; }

.prose { padding-top: 32px; padding-bottom: 16px; max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin: 0 0 12px; letter-spacing: -.01em; }
.prose p, .prose li { color: #d0d0de; }
.prose li { margin-bottom: 8px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.verdict { font-size: 1.1rem; margin: 0 0 16px; }
.sources li { word-break: break-word; }
.formula { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; color: #cfd0ff; }
details { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin-bottom: 10px; padding: 0 16px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }

.site-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }
.flinks { display: flex; gap: 20px; margin-top: 16px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .inputs { position: static; }
  .site-header { position: static; }
  .hero { padding: 36px 0 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* v2: quick pitch, picker, setup steps, chart */
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: #c7c9ff; }
.btn.ghost:hover { background: rgba(99,102,241,.15); color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }
.twenty { margin: 20px 0 0; max-width: 820px; }
.twenty-title { margin: 0 0 8px; font-weight: 600; }
.twenty-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.twenty-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; }
.tw-hours { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: #c7c9ff; }
.tw-gpu { font-size: .85rem; color: #cfcfe0; }
.tw-rate { font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.prose.wide { max-width: 1120px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.card { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; display: grid; gap: 4px; min-height: 88px; }
.card:hover { border-color: var(--accent); background: var(--surface-2); }
.card[aria-pressed=true] { border-color: var(--accent); background: rgba(99,102,241,.15); }
.card-title { font-weight: 600; }
.card-sub { font-size: .85rem; color: var(--muted); }
.pick-result { margin-top: 8px; }
.pick-result h3 { margin: 0 0 8px; }
.pick-line { font-size: 1.1rem; margin: 0 0 8px; }
.pick-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.copybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.copybox code { flex: 1; min-width: 200px; font-family: var(--mono); font-size: .9rem; color: #cfd0ff; word-break: break-word; }
.copybtn { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.copybtn:hover { background: var(--accent-hover); }
.safety ul { margin: 8px 0 0; padding-left: 20px; }
.safety li { margin-bottom: 6px; color: #d0d0de; }
.bullets { padding-left: 20px; }
.sect-h { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -.01em; }
.sect-sub { color: #d0d0de; margin: 0 0 16px; max-width: 760px; }
details.adv { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 0 12px; margin: 0; }
details.adv[open] { padding-bottom: 8px; }
.chart { margin: 20px 0 0; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-svg .ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-svg .ln-rent { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.chart-svg .ln-buy { stroke: var(--warn); stroke-width: 3; stroke-linecap: round; }
.chart-svg .be-dot { fill: #fff; stroke: var(--bg); stroke-width: 2; }
.chart-svg .be-lbl { fill: var(--text); font-weight: 600; }
.chart-legend { display: flex; gap: 20px; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.lg-rent::before { background: var(--accent); }
.lg-buy::before { background: var(--warn); }

.prose td, .prose th { white-space: normal; }
@media (max-width: 560px) { .twenty-list { grid-template-columns: 1fr 1fr; } .tw-hours { font-size: 1.25rem; } .twenty-list li { padding: 10px 12px; } .hero-cta .btn { flex: 1; text-align: center; } }

/* artwork */
.step-icon { flex: none; width: 56px; height: 56px; border-radius: 12px; }
.card { grid-template-columns: 48px 1fr; align-items: center; column-gap: 14px; }
.card-icon { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 10px; }
.card-title, .card-sub { grid-column: 2; }
.art-side { display: none; }
@media (min-width: 900px) {
  .hero { position: relative; overflow: hidden; }
  .hero::before { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(58vw, 820px); aspect-ratio: 1400 / 788; background: url(assets/hero.jpg) center / cover no-repeat; -webkit-mask-image: radial-gradient(ellipse at 64% 50%, #000 42%, transparent 72%); mask-image: radial-gradient(ellipse at 64% 50%, #000 42%, transparent 72%); pointer-events: none; }
  .hero .wrap { position: relative; z-index: 1; }
  .hero h1, .hero .lead, .hero .twenty, .hero .disclosure-inline { max-width: 600px; }
  .hero .twenty-list { grid-template-columns: repeat(2, 1fr); }
  .art-side { display: block; float: right; width: 300px; height: auto; margin: 0 0 12px 24px; border-radius: var(--radius); }
}
.how-strip { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0 8px; }

/* ---- Build page ---- */
.chips { border: 0; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: .9rem; min-height: 44px; line-height: 1.5; }
.chips input:checked + span { background: rgba(99,102,241,.22); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid #a5b4fc; outline-offset: 2px; }


.bld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 24px; }
.bld { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; }
.bld[hidden] { display: none; }
.bld h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.bld p { margin: 0 0 10px; color: #d0d0de; font-size: .93rem; }
.bld .bld-tag { color: #a5b4fc; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bld-ideas { margin: 0 0 12px; padding-left: 18px; color: #d0d0de; font-size: .9rem; }
.bld-ideas li { margin-bottom: 4px; }
.bld-cost { margin-top: auto !important; padding-top: 10px; border-top: 1px solid var(--border); }
.bld-catch { color: var(--muted) !important; font-size: .85rem !important; }
.bld-link { text-decoration: none; color: inherit; }
.bld-link:hover { border-color: var(--accent); background: var(--surface-2); color: inherit; }
.bld-more { color: #8b8ef8 !important; font-weight: 600; margin-top: auto !important; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.site-header nav a[aria-current="page"] { color: var(--text); }
#setups .sect-h, #projects .sect-h { margin-top: 40px; }

/* ---- Project guides ---- */
.guide { padding-bottom: 16px; }
.guide h2 { font-size: 1.5rem; margin: 40px 0 10px; letter-spacing: -.01em; }
.guide h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.guide p, .guide li { color: #d0d0de; }
.guide li { margin-bottom: 6px; }
.crumb { font-size: .85rem; margin: 0 0 12px; }
.crumb a { color: var(--muted); }
.short { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.45); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 0; max-width: 780px; }
.short p { margin: 0 0 8px; }
.short p:last-child { margin: 0; }
.tbl { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; margin: 12px 0; }
.tbl table { min-width: 560px; }
.tbl th, .tbl td { white-space: normal; vertical-align: top; }
.promptbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.promptbox h3 { margin: 0 0 8px; font-size: 1rem; }
.promptbox pre { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: .82rem; color: #cfd0ff; }
.promptbox .expect { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.promptbox .copybtn { margin-right: 10px; }
.copybtn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.copybtn:hover { background: var(--accent-hover); }
.copy-status { font-size: .8rem; color: var(--muted); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.warn-box { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 6px; padding: 12px 14px; font-size: .92rem; margin: 14px 0; }
.warn-box p { margin: 0 0 6px; }
.warn-box ul { margin: 6px 0 0; padding-left: 20px; }

.promptbox textarea.prompt-text { width: 100%; display: block; margin: 0 0 10px; resize: vertical; background: var(--bg); color: #cfd0ff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: .82rem; line-height: 1.5; }
.promptbox textarea.prompt-text:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prompt-actions .copybtn { margin-right: 0; }
.ghostbtn { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.ghostbtn:hover { border-color: var(--accent); background: rgba(99,102,241,.1); }
.prompt-note { font-size: .78rem; color: var(--muted); margin: 8px 0 0 !important; }
.bld details { margin: 12px 0 0; background: var(--surface-2); }
.bld details .promptbox { background: transparent; border: 0; padding: 0 0 12px; margin: 0; }
.bld details summary { font-size: .92rem; }

.three-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.three-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 14px 52px; position: relative; color: #d0d0de; }
.three-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.idea-form { max-width: 820px; }
.idea-form input[type=text] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; min-height: 44px; }
.idea-form .promptbox { border: 0; padding: 0; margin: 0; background: transparent; }
.ref-note { font-size: .85rem; color: var(--muted); margin: 0 auto !important; padding-top: 10px; padding-bottom: 0; }

.linklist { padding-left: 20px; }
.linklist li { margin-bottom: 10px; }

.examples-label { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 44px; }
.chip-btn:hover { border-color: var(--accent); background: rgba(99,102,241,.14); }
.prompt-badge { font-size: .8rem; color: #a5b4fc; margin: 0 0 8px !important; }
.open-in { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.open-in label { margin: 0; font-weight: 500; color: var(--muted); }
.open-in select { width: auto; min-width: 120px; min-height: 44px; }
.copybtn:disabled, .ghostbtn:disabled { opacity: .45; cursor: not-allowed; }
.copied-panel { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0 !important; font-size: .9rem !important; color: #d1fae5 !important; }
.bld-badge { color: var(--ok) !important; font-size: .82rem !important; font-weight: 600; margin-top: auto !important; }
@media (max-width: 820px) {
  .promptbox textarea.prompt-text, .idea-form input[type=text], .idea-form select, .open-in select { font-size: 16px; }
}
.promptbox textarea.prompt-text, .idea-form input[type=text], .idea-form select, .open-in select { font-size: 16px; }
/* Comfortable tap targets for the header and footer links on phones */
.site-header nav a, .brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-header nav { gap: 4px 12px; }
.bar { padding-top: 2px; padding-bottom: 2px; }
.flinks a { display: inline-block; padding: 12px 8px 12px 0; }
@media (max-width: 640px) { .site-header { position: static; } }
@media (max-width: 640px) {
  .bar { gap: 0; }
  .site-header nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 4px 14px; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; flex: none; }
}

.follow-bar { background: rgba(99,102,241,.16); border-bottom: 1px solid var(--border); font-size: .88rem; text-align: center; color: #d0d0de; }
.follow-bar .wrap { padding-top: 4px; padding-bottom: 4px; }
.follow-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 700; color: #fff; }

.calc-lite { max-width: 720px; margin: 12px 0 16px; }
.calc-lite h3 { margin: 18px 0 8px; font-size: 1rem; }
.calc-lite .out { margin: 8px 0 0; font-size: 1.05rem; }
.calc-lite .out strong { font-size: 1.25rem; }
.calc-lite input[type=number], .calc-lite select { font-size: 16px; }
.calc-lite details { margin: 12px 0 0; }

.power-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 20px 0 8px; }
.power-card { background: var(--surface); border: 1px solid rgba(99,102,241,.5); border-radius: var(--radius); padding: 16px 18px; }
.power-card h2 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -.01em; }
.power-card p { margin: 0; font-size: .92rem; color: #d0d0de; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 16px 0 14px; }
.stat { background: var(--surface); border: 1px solid rgba(52,211,153,.45); border-radius: var(--radius); padding: 16px 18px; }
.stat .stat-n { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.stat p { margin: 0; font-size: .9rem; color: #d0d0de; }

.guide-art { display: block; width: 100%; height: auto; margin: 22px 0 0; border-radius: var(--radius); border: 1px solid var(--border); }
