/* ACS palette for the page chrome. Tool screens also use the customer's brand via --bp / --ba (set from app.js). */
:root {
  --navy-900: #0b1f35; --navy-800: #12304f; --navy-700: #1a4270;
  --gold: #b8892b; --gold-light: #d9a94a; --gold-text: #906000; --warm: #fff7e8;
  --slate-700: #3d4a58; --slate-500: #61707f; --slate-300: #c3ccd5; --slate-100: #eef1f4; --slate-50: #f7f9fb;
  --bg: var(--slate-50); --surface: #fff; --text: var(--slate-700); --muted: var(--slate-500);
  --heading: var(--navy-900); --line: var(--slate-300); --fill: var(--slate-100); --accent: var(--navy-700);
  --good: #2e7d4f; --good-soft: #e5f2ea; --bad: #b4473a; --bad-soft: #f8e7e4;
  --radius: 4px; --shadow: 0 1px 2px rgba(11,31,53,.06);
  --bp: #1a2e4a; --ba: #c8a040; --bpOn: #fff; --baOn: #13202f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #08172a; --surface: #0f2340; --text: #d5dde6; --muted: #9aa8b7; --heading: #f2f5f8; --line: #284468; --fill: #15304f; --accent: #6fa3dc; --warm: #2a2312; --gold-text: #d9a94a; --good: #5fbf86; --good-soft: #143326; --bad: #e07b6e; --bad-soft: #3a1c18; }
}
:root[data-theme="dark"] { --bg: #08172a; --surface: #0f2340; --text: #d5dde6; --muted: #9aa8b7; --heading: #f2f5f8; --line: #284468; --fill: #15304f; --accent: #6fa3dc; --warm: #2a2312; --gold-text: #d9a94a; --good: #5fbf86; --good-soft: #143326; --bad: #e07b6e; --bad-soft: #3a1c18; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Segoe UI", "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { color: var(--heading); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
h2 small, h3 small { font-weight: 400; font-size: .8rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mini { font-size: .82rem; color: var(--muted); margin: 6px 0 0; } .center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--gold-text); margin-bottom: 8px; }
.lead { font-size: 1.08rem; max-width: 48em; }
.neg { color: var(--bad) !important; }
.ok-t { color: var(--good); font-weight: 600; } .bad-t { color: var(--bad); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; padding: 11px 18px; min-height: 44px; border-radius: var(--radius); border: 1px solid transparent; }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: .9rem; }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-brand { background: var(--bp); color: var(--bpOn); }
.btn-gold { background: var(--gold); color: #fff; } .btn-gold:hover, .btn-brand:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--accent); border-color: var(--line); } .btn-ghost:hover { border-color: var(--accent); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
button:focus-visible, .btn:focus-visible, a:focus-visible, .bar-row:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { font: inherit; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; font-size: .9rem; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--navy-900); border-bottom: 3px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { border-radius: var(--radius); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: 1rem; white-space: nowrap; } .brand-text small { font-size: .74rem; color: var(--slate-300); }
.demo-tag { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 2px 6px; border-radius: 3px; vertical-align: 2px; margin-left: 4px; }
.btn-install { background: var(--gold); color: #fff; min-height: 38px; padding: 8px 14px; font-size: .9rem; flex: none; }
.tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap; cursor: pointer; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 12px 11px 10px; }
.tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--gold); }
.tabs .tab-full { color: var(--gold-text); }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 20px 40px; }
.panel { animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); min-width: 0; }

/* Start */
.hero { background: var(--navy-900); color: #dbe3ec; border-radius: var(--radius); border-left: 6px solid var(--gold); padding: clamp(26px, 5vw, 50px); margin-bottom: 26px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.6rem); max-width: 18em; }
.hero .eyebrow { color: var(--gold-light); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.facts { list-style: none; padding: 20px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.facts b { display: block; color: #fff; } .facts span { color: #b9c6d4; font-size: .9rem; }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.show { font: inherit; text-align: left; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 14px; }
.show:hover { border-color: var(--accent); border-top-color: var(--gold); }
.show b { display: block; color: var(--heading); margin-bottom: 4px; } .show p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Brand bar (customer's brand) */
.brandbar { display: flex; align-items: center; gap: 12px; background: var(--bp); color: var(--bpOn); border-left: 6px solid var(--ba); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.brandbar > div { flex: 1; min-width: 0; }
.bb-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; flex: none; }
.bb-mono { display: flex; align-items: center; justify-content: center; background: var(--ba); color: var(--baOn); font-weight: 800; font-size: 1.25rem; padding: 0; }
.bb-co { margin: 0; font-weight: 700; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-t { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.bb-edit { font: inherit; font-size: .8rem; font-weight: 600; background: transparent; color: var(--bpOn); border: 1px solid currentColor; opacity: .85; border-radius: var(--radius); padding: 6px 10px; cursor: pointer; flex: none; }

/* Tool layout */
.tool-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 20px; align-items: start; }
.tool-grid > *, .quote-grid > *, .setup-grid > * { min-width: 0; }
.inputs h2 { margin-bottom: 14px; }
.field { display: block; min-width: 0; margin-bottom: 12px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.field i, .check i { color: var(--bad); font-style: normal; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
input[type=color] { width: 100%; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.grid2.tight .field { margin-bottom: 8px; }
.seg { display: flex; gap: 4px; background: var(--fill); padding: 3px; border-radius: var(--radius); }
.seg button { flex: 1; font: inherit; font-size: .92rem; font-weight: 600; border: 0; background: transparent; color: var(--text); padding: 8px; border-radius: 3px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bp); color: var(--bpOn); }
.note { background: var(--warm); border-left: 4px solid var(--gold); padding: 9px 12px; border-radius: var(--radius); font-size: .88rem; }
.assump { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.assump summary { cursor: pointer; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.example { background: var(--warm); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: .95rem; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tiles-8 { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ba); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tile span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile b { display: block; font-size: 1.55rem; color: var(--heading); line-height: 1.25; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile small { font-size: .8rem; color: var(--muted); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.badge.ok { background: var(--good-soft); color: var(--good); } .badge.bad { background: var(--bad-soft); color: var(--bad); }

.tbl-scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--fill); white-space: nowrap; }
.tbl tr.tot td { font-weight: 700; color: var(--heading); border-top: 1px solid var(--line); }
.tbl tr.hl td { font-weight: 700; color: var(--heading); background: var(--fill); }
.tbl tr.cur td { background: var(--fill); font-weight: 700; color: var(--heading); }
.tbl.kv td:last-child { font-weight: 600; }
.tbl.kv td:first-child { white-space: normal; }
.q-doc { overflow-x: auto; }
.results h3 { border-bottom: 3px solid var(--ba); padding-bottom: 8px; }
.minbox { border-left: 6px solid var(--good); }
.minbox.warn { border-left-color: var(--bad); }
.minprice { font-size: 1.8rem; font-weight: 800; color: var(--heading); margin: 0; font-variant-numeric: tabular-nums; }
.minprice small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.verdict { font-weight: 600; }

/* Margin chart: one series, status color + icon, zero and goal reference lines */
.chart { --lab: 200px; --val: 80px; --gap: 10px; position: relative; padding-top: 22px; }
.chart-goal-l { position: absolute; top: 0; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bar-row { display: grid; grid-template-columns: var(--lab) 1fr var(--val); column-gap: var(--gap); align-items: center; min-height: 30px; border-radius: 3px; cursor: default; }
.bar-row:hover, .bar-row.cur { background: var(--fill); }
.bar-l { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.bar-row.cur .bar-l { font-weight: 700; color: var(--heading); }
.bar-track { position: relative; height: 30px; }
.bar-track::before { content: ''; position: absolute; left: var(--zero); top: 2px; bottom: 2px; width: 1px; background: var(--muted); }
.bar-track::after { content: ''; position: absolute; left: var(--goal); top: 0; bottom: 0; border-left: 2px dashed var(--muted); opacity: .7; }
.bar { position: absolute; top: 8px; height: 14px; border-radius: 0 4px 4px 0; }
.bar.negb { border-radius: 4px 0 0 4px; }
.bar.ok { background: var(--good); } .bar.bad { background: var(--bad); }
.bar-v { font-size: .85rem; font-weight: 600; color: var(--text); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip { position: absolute; z-index: 50; max-width: 320px; background: var(--navy-900); color: #fff; font-size: .82rem; padding: 7px 10px; border-radius: var(--radius); pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 20px; align-items: start; }
.q-line { display: grid; grid-template-columns: 1fr 130px 90px 32px; gap: 6px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--fill); }
.q-line .field { margin: 0; }
.q-line .field > span { font-size: .75rem; }
.q-line select, .q-line input { font-size: .9rem; padding: 7px 8px; min-height: 38px; }
.q-check { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.q-del { font: inherit; width: 32px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: var(--radius); cursor: pointer; }
.q-del:hover { color: var(--bad); border-color: var(--bad); }
.q-doc-wrap { position: sticky; top: 60px; }
.q-doc { background: #fff; color: #1d2733; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 6px 20px rgba(11,31,53,.12); font-size: .9rem; }
.qd-head { display: flex; gap: 14px; align-items: center; border-bottom: 4px solid var(--ba); padding-bottom: 12px; }
.qd-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; flex: none; }
.qd-logo.bb-mono { background: var(--bp); color: var(--bpOn); font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.qd-co { display: flex; flex-direction: column; } .qd-co b { font-size: 1.2rem; color: var(--bp); } .qd-co span { font-size: .82rem; color: #4b5866; }
.qd-title { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; color: #1d2733; margin: 16px 0 10px; }
.qd-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #f3f5f8; padding: 10px; border-radius: var(--radius); margin-bottom: 12px; }
.qd-meta span, .qd-for span, .qd-scope span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #61707f; }
.qd-meta b { font-size: .85rem; }
.qd-for { margin-bottom: 12px; } .qd-for b { font-size: 1rem; }
.qd-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.qd-tbl th { background: var(--bp); color: var(--bpOn); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 7px 6px; text-align: right; }
.qd-tbl th:first-child, .qd-tbl td:first-child { text-align: left; }
.qd-tbl td { padding: 7px 6px; border-bottom: 1px solid #e3e7ec; text-align: right; }
.qd-tbl tfoot td { font-weight: 700; border-bottom: 0; text-align: right; }
.qd-tbl tfoot tr:first-child td { border-top: 2px solid #1d2733; }
.qd-scope { background: #f3f5f8; padding: 10px; border-radius: var(--radius); margin-bottom: 12px; } .qd-scope p { margin: 4px 0 0; }
.qd-terms { font-size: .78rem; color: #4b5866; }
.qd-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 28px 0 18px; }
.qd-sign div { border-top: 1px solid #1d2733; padding-top: 4px; font-size: .75rem; color: #61707f; }
.qd-thanks { text-align: center; font-size: .85rem; margin: 0; }
.ph { color: #9aa6b2; font-style: italic; }

/* Bids */
.bid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; }
.bid-grid .field { margin-bottom: 8px; } .bid-grid .wide { grid-column: span 4; }
.tbl.bids td { white-space: nowrap; } .tbl.bids td:nth-child(9) { white-space: normal; min-width: 160px; text-align: left; }
.tbl.bids td:nth-child(2), .tbl.bids td:nth-child(3), .tbl.bids td:nth-child(5) { text-align: left; }
.tbl.bids th:nth-child(2), .tbl.bids th:nth-child(3), .tbl.bids th:nth-child(5), .tbl.bids th:nth-child(9) { text-align: left; }
.st { width: auto; min-height: 32px; padding: 4px 6px; font-size: .85rem; font-weight: 600; }
.st-Won { color: var(--good); } .st-Lost { color: var(--bad); }
tr.flash td { animation: flash 2s ease; }
@keyframes flash { from { background: var(--warm); } to { background: transparent; } }

/* Setup */
.setup-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; }
.tbl.rates input { width: 92px; min-height: 34px; padding: 5px 7px; font-size: .9rem; text-align: right; }
.tbl.rates tr.grp td { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); padding-top: 12px; border-bottom: 1px solid var(--line); }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding: 0; cursor: pointer; background: none; }
.preset span { width: 22px; height: 30px; display: block; }
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-prev { width: 70px; height: 52px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--fill); overflow: hidden; }
.logo-prev img { max-width: 100%; max-height: 100%; } .logo-prev span { font-size: .7rem; color: var(--muted); }
.file-btn { cursor: pointer; }

/* Get yours */
.price-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; background: var(--navy-900); color: #dbe3ec; border-radius: var(--radius); border-left: 6px solid var(--gold); padding: clamp(22px, 4vw, 34px); margin-bottom: 20px; }
.price-card .eyebrow { color: var(--gold-light); }
.price-lg { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.2; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid rgba(255,255,255,.1); }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feature .ok { color: var(--good); font-weight: 700; }
.feature b { display: block; color: var(--heading); margin: 6px 0 4px; } .feature p { font-size: .88rem; color: var(--muted); margin: 0; }
.feature.locked { border-style: dashed; background: var(--fill); }
.lead-card { border-top: 4px solid var(--gold); }
.lead-err { color: var(--bad); font-weight: 600; margin: 12px 0 0; }
.lead-done { border-top-color: var(--good); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy-700); }
.bot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.install-dialog { max-width: 460px; width: calc(100% - 32px); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(11,31,53,.25); }
.install-dialog::backdrop { background: rgba(11,31,53,.55); }
.install-step { background: var(--fill); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.install-step b:first-child { color: var(--heading); } .install-step p { margin: 4px 0 0; font-size: .95rem; }
.install-dialog form { margin: 16px 0 0; text-align: right; }

.foot { text-align: center; font-size: .82rem; color: var(--muted); padding: 22px 20px 30px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 4px; }

@media (max-width: 980px) {
  .tool-grid, .quote-grid, .setup-grid { grid-template-columns: 1fr; }
  .q-doc-wrap { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tiles, .tiles-8 { grid-template-columns: 1fr 1fr; }
  .show-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .bid-grid { grid-template-columns: 1fr 1fr; } .bid-grid .wide { grid-column: span 2; }
  .chart { --lab: 120px; --val: 70px; --gap: 6px; }
  .bar-l { font-size: .76rem; white-space: normal; line-height: 1.15; }
  .qd-meta { grid-template-columns: 1fr 1fr; }
  .q-doc { padding: 16px; font-size: .84rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 14px 12px 32px; }
  .top { padding: 8px 14px; }
  .brand-text small { display: none; }
  .demo-tag { font-size: .58rem; padding: 2px 5px; }
  .grid2, .feature-grid, .show-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .tile b { font-size: 1.25rem; }
  .q-line { grid-template-columns: 1fr 1fr; }
  .q-line .field:first-child { grid-column: 1 / -1; }
  .q-del { width: 100%; }
  .bb-edit { display: none; }
  .qd-tbl { font-size: .74rem; } .qd-tbl th, .qd-tbl td { padding: 5px 3px; }
}

/* Print: the quote only */
@media print {
  body { background: #fff; display: block; }
  body > *:not(main), .tabs, main > section:not(#tab-quote), #tab-quote > .brandbar, .q-edit, .q-doc-wrap > p { display: none !important; }
  #tab-quote { display: block !important; animation: none; }
  main { padding: 0; max-width: none; }
  .quote-grid { display: block; }
  .q-doc { border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; }
  .qd-tbl tr, .qd-scope, .qd-sign, .qd-for { break-inside: avoid; }
  .ph { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Contractor package additions ---------- */
.area-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.area-grid > * { min-width: 0; }
.area-list { position: sticky; top: 60px; padding: 10px; }
.area-pick { display: none; }
.area-btns { display: flex; flex-direction: column; gap: 2px; }
.area-btn { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font: inherit; font-size: .86rem; text-align: left; background: none; border: 0; border-radius: var(--radius); padding: 7px 8px; color: var(--text); cursor: pointer; }
.area-btn:hover { background: var(--fill); }
.area-btn.cur { background: var(--bp); color: var(--bpOn); }
.area-btn .an { min-width: 0; line-height: 1.25; }
.area-btn .av { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.dot.on { background: var(--good); border-color: var(--good); }
.area-btn.cur .dot { border-color: currentColor; }
.area-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.area-head h2 { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--fill); padding: 6px 12px; border-radius: 20px; }
.switch input { width: 18px; height: 18px; accent-color: var(--good); }
.ex { font-style: normal; font-weight: 400; font-size: .75rem; color: var(--muted); margin-left: 4px; }
.tbl.fx input { width: 76px; min-height: 34px; padding: 5px 7px; text-align: right; }
.tbl.fx td .ex { display: block; margin: 2px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .82rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 16px; padding: 5px 10px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.q-line.qline { grid-template-columns: 1fr 110px 110px 32px; }
.q-line.addon { grid-template-columns: 1fr 100px 160px 32px; }
.q-line .wide { grid-column: 1 / -1; }
.tbl tfoot td { font-weight: 700; color: var(--heading); border-top: 2px solid var(--line); }
.tbl td.wrap { white-space: normal; text-align: left; }
.qd-sub { text-align: center; margin: -4px 0 12px; font-weight: 600; color: #4b5866; }
.qd-det { font-size: .8rem; color: #61707f; }
.qd-tbl tfoot tr:last-child td { font-size: 1rem; }
details.plain { margin-top: 12px; }
details.plain summary { cursor: pointer; font-weight: 600; color: var(--heading); }
details.plain textarea { margin-top: 10px; font-family: Consolas, "Courier New", monospace; font-size: .8rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 20px; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 980px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-list { position: static; }
  .area-pick { display: block; margin: 0; }
  .area-btns, .area-list .mini { display: none; }
}
@media (max-width: 600px) {
  .q-line.qline, .q-line.addon { grid-template-columns: 1fr 1fr; }
  .q-line.qline .field:first-child, .q-line.addon .field:first-child { grid-column: 1 / -1; }
}
@media print { .q-doc-wrap > details, .toast { display: none !important; } }

/* Pricing on the Get yours tab */
.price { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: #b9c6d4; }
.tier-list { list-style: none; padding: 0; margin: 10px 0 12px; }
.tier-list li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.tier-list b { color: #fff; }
.price-card .small { color: #b9c6d4; }
.price-card .small b { color: #fff; }