@font-face {
  font-family: 'Neue Montreal';
  src: url('https://computle.com/fonts/Neue-Montreal-Regular-400.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('https://computle.com/fonts/Neue-Montreal-Medium-500.otf') format('opentype');
  font-weight: 500;
}

:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --ink: #1d1d1f;
  --ink-2: #52514e;
  --muted: #86868b;
  --line: #e1e0d9;
  --axis: #c3c2b7;
  --accent: #0066cc;
  --accent-wash: #e8f2ff;
  --good: #006300;
  --bad: #c22f2f;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #4a3aa7;
  --cost: #c3c2b7;
  --profit: #008300;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #242423;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --line: #2c2c2a;
    --axis: #383835;
    --accent: #3987e5;
    --accent-wash: #16263a;
    --good: #0ca30c;
    --bad: #e66767;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #008300;
    --s7: #9085e9;
    --cost: #4a4a47;
    --profit: #0ca30c;
    --shadow: none;
  }
  :root:not([data-theme="light"]) .badge-dr { background: #4a3410; color: #f5c46b; }
  :root:not([data-theme="light"]) .badge-lite { background: #4a1616; color: #f2a5a5; }
  :root:not([data-theme="light"]) .lite-warning { background: #2e1414; color: #f2a5a5; border-color: #5a2020; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Neue Montreal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }

.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linkbtn.reset-top { margin-left: auto; margin-right: 14px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; }
.linkbtn.reset-top:hover { background: var(--line); }
.embedded .topbar-inner, .embedded .layout { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.embedded .topbar-inner { height: 49px; padding-top: 0; padding-bottom: 0; }
.embedded .brand { font-size: 16px; }
.embedded .linkbtn.reset-top { font-size: 13px; padding: 4px 14px; }
.brand { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 400; }

.layout { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px; align-items: start; }
.flow { counter-reset: section; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.hero { padding: 24px 0 8px; }
.eyebrow { margin: 0; color: var(--ink-2); }
.hero-figure { font-size: clamp(40px, 7vw, 64px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 4px 0; }
.hero-sub { margin: 4px 0 14px; color: var(--ink-2); }
.product-line { margin: 0 0 20px; }
.hero-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-width: 520px; }
.hero-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.hero-lines span { color: var(--ink-2); }
.hero-lines strong { font-weight: 500; font-variant-numeric: tabular-nums; }

.price-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-wash); color: var(--ink); font-size: 14px; line-height: 1.5; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.block { background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.block h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.block h3 { font-size: 16px; font-weight: 500; margin: 0; }
.block h2 .num::before { counter-increment: section; content: counter(section); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-size: 14px; }

.grid2, .grid3 { display: grid; gap: 12px 16px; margin: 12px 0; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.field select, .field input[type=number] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
}
.field select:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
[data-show][hidden], [data-when][hidden], [data-out-row][hidden] { display: none !important; }

.row-label { font-size: 13px; color: var(--ink-2); margin: 16px 0 6px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-wrap { flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }

.lines { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.line-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.line-chip.on { border-color: var(--accent); background: var(--accent-wash); }
.line-chip button { border: 0; background: none; cursor: pointer; padding: 8px 10px; font-size: 14px; color: var(--ink); }
.line-chip .line-x { padding: 8px 10px 8px 2px; color: var(--muted); font-size: 16px; }
.line-add { border: 1px dashed var(--axis); background: none; border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--accent); font-size: 14px; }
.qty-field { grid-column: 1 / -1; }
.qty { display: flex; align-items: center; gap: 10px; padding: 3px 10px; border-radius: 10px; background: var(--surface-2); min-height: 41px; }
.qty-label { font-weight: 500; }
.qty input[type=range] { flex: 1; accent-color: var(--accent); }
.qty input[type=number] { width: 84px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; }
.redundancy { margin: 8px 0; font-size: 14px; color: var(--ink-2); }
.check { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0; }
.foot { color: var(--muted); font-size: 13px; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }

.hib { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.hib-head p { margin: 4px 0 8px; color: var(--ink-2); font-size: 13px; }
.hib-row { display: flex; align-items: center; gap: 12px; }
.hib-row input { flex: 1; accent-color: var(--accent); }
.hib-row output { min-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 500; border-bottom: 0; border-top: 1px solid var(--axis); }
tr.sel td, td.sel { background: var(--accent-wash); font-weight: 500; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }

.parts summary { cursor: pointer; color: var(--accent); margin-top: 8px; }

.comp-bar { display: flex; gap: 2px; height: 28px; }
.comp-bar > div { min-width: 2px; cursor: default; }
.comp-bar > div:first-child { border-radius: 4px 0 0 4px; }
.comp-bar > div:last-child { border-radius: 0 4px 4px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.legend .k { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.compare > div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
.compare > div.on { border-color: var(--accent); background: var(--accent-wash); }
.compare h4 { margin: 0 0 6px; font-weight: 500; font-size: 14px; }
.compare .big { font-size: 22px; font-weight: 500; }
.compare p { margin: 2px 0; font-size: 13px; color: var(--ink-2); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.plan { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.plan[aria-pressed="true"] { border: 2px solid var(--accent); padding: 15px; }
.plan h4 { margin: 0; font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.plan .desc { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.plan .line { display: flex; justify-content: space-between; font-size: 14px; gap: 8px; }
.plan .line span { color: var(--ink-2); }
.plan .line strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.plan .line.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 16px; }
.plan .line.total span { color: var(--ink); }
.split { margin: -2px 0 4px; font-size: 12px; color: var(--muted); text-align: right; }
.plan .extra { margin: 0; font-size: 13px; color: var(--ink-2); }
.plan .you { margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.plan .chosen { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-wash); padding: 2px 8px; border-radius: 999px; }
body.view-customer .plan .you { display: none; }

.chart-title { margin-top: 8px !important; }
.chart { position: relative; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--axis); stroke-width: 1.5; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.dim { opacity: .35; }
.chart .series.sel { stroke-width: 3; }
.chart .xhair { stroke: var(--axis); stroke-width: 1; }
.chart .dlabel { font-size: 12px; fill: var(--ink-2); }

.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.15); max-width: 280px; }
.tooltip .t-head { color: var(--ink-2); margin-bottom: 4px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.tooltip .t-row span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.summary { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.hero-side { padding: 0 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.hero-top .eyebrow { white-space: nowrap; }
.hero-top .badge { margin: 0; white-space: nowrap; }
.hero-side .hero-figure { font-size: 40px; margin-top: 2px; }
.hero-side .hero-sub { margin: 2px 0 12px; font-size: 14px; }
.hero-side .comp-bar { height: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat strong { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
#profitBar:not(:empty) { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.s-actions .pdf-btn, .s-actions .save-btn { flex: 1 1 0; }
.hero-side .legend { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 13px; }
.hero-side .legend .k { display: flex; gap: 6px; }
.hero-side .legend .k b { margin-left: auto; }
.hero-side .row-label { margin-top: 12px; }
.s-plan { font-size: 13px; color: var(--ink-2); font-weight: 400 !important; margin: 10px 0 0 !important; }
.summary-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.badge { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; }
.badge-lite { background: #fbd5d5; color: #8a1c1c; }
.lite-warning { margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #8a1c1c; border: 1px solid #f3b9b9; font-size: 14px; }
.lite-warning[hidden] { display: none; }
.badge-dr { background: #fde7c2; color: #7a4a00; }
.markup-card { margin-top: 12px; padding: 16px 20px; }
.markup-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.markup-head strong { color: var(--ink); font-weight: 500; }
.markup-card input[type=range] { width: 100%; accent-color: var(--accent); }
.markup-card .note { margin: 6px 0 0; }
.s-actions { display: flex; gap: 8px; margin-top: 16px; }
.save-btn { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 500; cursor: pointer; }
.share { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.share[hidden] { display: none; }
.share-row { display: flex; flex-direction: column; gap: 2px; }
.share-row span { font-size: 12px; color: var(--muted); }
.share-row input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12px; }
.quote-page { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 24px; }
a.pdf-btn { display: inline-block; text-align: center; text-decoration: none; margin-top: 12px; }
.mcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.mcard.on { border-color: var(--accent); }
.mcard-head { display: flex; align-items: center; gap: 12px; }
.mcard-head h3 { margin: 0; font-size: 16px; font-weight: 500; }
.mcard-total { margin-left: auto; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.line-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 0 4px; }
.line-x[hidden] { display: none; }
.run-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.run-seg button { padding: 10px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.run-main { font-size: 14px; }
.run-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.run-seg button[aria-pressed="true"] .run-sub { color: var(--ink-2); }
.role-row > span { font-size: 13px; }
@media (max-width: 640px) { .run-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.host-row { margin-bottom: 4px; }
.pdf-btn { flex: 1; width: 100%; margin-bottom: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 500; cursor: pointer; }
.pdf-btn:disabled { opacity: .6; cursor: default; }
.s-badges { margin-bottom: 4px; }
.eyebrow .badge { margin-bottom: 0; }
.s-plan { font-weight: 500; margin-bottom: 10px; }
.s-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 14px; }
.s-row span { color: var(--ink-2); }
.s-row strong { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.s-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 16px; }
.s-sub { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0 1px 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.s-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; text-align: right; padding: 4px 0 6px 14px; border-bottom: 1px solid var(--line); }
.s-table td { text-align: right; padding: 5px 0 5px 14px; border-bottom: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-table td:first-child, .s-table th:first-child { text-align: left; padding-left: 0; color: var(--ink-2); white-space: normal; }
.s-table tfoot td { border-top: 1px solid var(--axis); padding-top: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.s-foot.disclaimer { font-style: italic; margin-top: 4px; }
.s-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.s-section { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.s-plan + .s-section { border-top: 0; padding-top: 0; margin-top: 8px; }
.s-internal { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 6px; }

body.view-customer .internal-only { display: none !important; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: sticky; top: auto; bottom: 0; order: 2; z-index: 15; }
  .summary-card { border-radius: 16px 16px 0 0; padding: 12px 16px; }
  .summary-card { max-height: 45vh; overflow-y: auto; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .compare, .plans { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 18px 16px; }
  .block .seg { display: flex; overflow-x: auto; scrollbar-width: none; }
  .brand span { display: none; }
}

.seg button:disabled, .field select:disabled { opacity: .4; cursor: not-allowed; }
.comp[hidden] { display: none; }
.order-page { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 24px; }
.order-table td:not(:first-child), .order-table th:not(:first-child) { text-align: right; }
.order-totals { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.order-totals > div { display: flex; justify-content: space-between; }
.order-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 18px; }
.order-form .field input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.order-btn { margin-top: 16px; }
.order-btn:disabled { opacity: .5; cursor: not-allowed; }
.order-error { color: var(--bad, #d14343); }
.order-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
