:root {
  --brand: #00307C;
  --brand-light: #2C5DA8;
  --brand-pale: #E8EEF8;
  --brand-line: #D2DEF0;

  --gold: #C9A227;
  --gold-deep: #9A6F1E;
  --good: #4F7A52;

  --paper: #FAF9F6;
  --paper-panel: #FFFFFF;
  --paper-line: #E7E3DA;
  --ink: #1C1F24;
  --slate: #5C6470;
  --slate-dim: #95989E;

  --stage-bg-1: #001226;
  --stage-bg-2: #00307C;

  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===================== App bar ===================== */

.appbar {
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 28px;
}

.appbar__brand { display: flex; align-items: baseline; gap: 10px; }

.appbar__mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.appbar__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #AFC4E8;
}

.appbar__tool {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AFC4E8;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ===================== Shared panel/field primitives ===================== */

.panel-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.panel-hint {
  font-size: 12px;
  color: var(--slate-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}

.panel {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.panel--flag { border-left: 3px solid var(--gold); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field--wide { grid-column: 1 / -1; }
.field--compact { max-width: 220px; margin-bottom: 12px; }

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-dim);
}

.field input, .field select {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  padding: 8px 10px;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
}

.field input::placeholder { color: var(--slate-dim); }

/* ===================== Demo notice card ===================== */

.demo-notice {
  background: #FFFDF7;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.demo-notice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.demo-notice__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.demo-notice__dismiss {
  background: transparent;
  border: none;
  color: var(--slate-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.demo-notice__dismiss:hover { color: var(--ink); }

.demo-notice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

@media (max-width: 760px) {
  .demo-notice__grid { grid-template-columns: 1fr; }
}

.demo-notice__col h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--ink);
}

.demo-notice__col ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-notice__col li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
}

.demo-notice.is-dismissed {
  display: none;
}

/* ===================== Intake ===================== */

.intake { margin-bottom: 22px; }

.intake__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .intake__row { grid-template-columns: 1fr; }
}

.client-info, .capture-options {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.client-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 500px) {
  .client-info__grid { grid-template-columns: 1fr; }
}

.dropzone {
  border: 1.5px dashed var(--brand-line);
  border-radius: 4px;
  padding: 18px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--slate-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.camera-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--slate);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
}

.camera-btn:hover { border-color: var(--brand); color: var(--brand); }

.dropped-files {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropped-files li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  background: var(--brand-pale);
  border-radius: 3px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.file-status--pending { color: var(--slate-dim); }
.file-status--success { color: var(--good); }
.file-status--error { color: #A33B2E; }

.email-disclosure {
  margin-top: 12px;
  font-size: 12px;
}

.email-disclosure summary {
  cursor: pointer;
  color: var(--slate);
  font-weight: 500;
}

.email-disclosure[open] summary { color: var(--brand); }

.badge-soon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: #F7EFD9;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 4px;
}

.capture-card__desc {
  font-size: 12px;
  color: var(--slate);
  margin: 8px 0;
}

.email-target {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-pale);
  border-radius: 4px;
  padding: 6px 8px;
}

.email-target code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--brand);
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 10px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===================== Room select ===================== */

.room-select {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .room-select { grid-template-columns: 1fr; }
}

.room-card {
  background: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.room-card:hover { border-color: var(--brand-light); }

.room-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.room-card__label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.room-card__stat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--brand);
}

.room-card__hint {
  font-size: 11px;
  color: var(--slate-dim);
  margin-top: 6px;
}

/* ===================== Status ===================== */

.status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--slate);
  padding: 14px 0;
  margin-top: 16px;
  border-top: 1px dashed var(--paper-line);
}

.status.is-error { color: #A33B2E; }

/* ===================== View tabs ===================== */

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin: 24px 0 0;
  background: var(--paper-line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.view-tab {
  background: #EFEDE7;
  border: none;
  padding: 14px 16px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  transition: background 0.15s ease;
}

.view-tab:hover { background: #F5F3EE; }

.view-tab.is-active {
  background: var(--paper-panel);
}

.view-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
}

.view-tab__index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--slate-dim);
}

.view-tab__label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.view-tab.is-active .view-tab__label { color: var(--brand); }

.view-tab__desc {
  font-size: 11px;
  color: var(--slate-dim);
}

.view-panel {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 28px 8px;
  margin-bottom: 0;
}

.results.view-panel { padding-top: 24px; }

/* ===================== Worksheet: dims, summary, conditions ===================== */

.dims { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.dim-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-pale);
  border-radius: 3px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dim-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.dim-tag .dim-label {
  color: var(--slate-dim);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.estimation-note {
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--gold-deep);
  background: #F7EFD9;
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.5;
}

.summary-block { margin-bottom: 28px; }

.tier-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid var(--brand-line);
}

.summary-text { font-size: 15px; line-height: 1.6; margin: 0 0 8px; color: var(--ink); }
.summary-reasoning { font-size: 13px; color: var(--slate); margin: 0; line-height: 1.5; }

.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
@media (max-width: 700px) { .grid-two { grid-template-columns: 1fr; } }

.conditions, .flags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conditions li, .flags li {
  font-size: 13px;
  line-height: 1.5;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-line);
}

.conditions li:last-child, .flags li:last-child { border-bottom: none; padding-bottom: 0; }

.cond-area { font-weight: 600; margin-right: 6px; }

.cond-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}

.cond-status--good { background: #E7EFE6; color: var(--good); }
.cond-status--fair { background: #F7EFD9; color: var(--gold-deep); }
.cond-status--poor { background: #F6E2DC; color: #A33B2E; }

.cond-observation {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #FBFAF7;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: vertical;
  min-height: 56px;
}

.cond-observation:focus { outline: none; border-color: var(--brand); }
.cond-observation.is-edited { border-color: var(--gold); background: #FBF6E8; }

/* ===================== Budget heroes (worksheet + quote) ===================== */

.budget-heroes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 700px) { .budget-heroes { grid-template-columns: 1fr; } }

.budget-hero {
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.budget-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
}

.budget-hero--good::after { background: var(--good); }
.budget-hero--better::after { background: var(--gold); }
.budget-hero--best::after { background: var(--gold-deep); }

.budget-hero__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-dim);
}

.budget-hero__value {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
}

/* ===================== Scope table ===================== */

.table-wrap { overflow-x: auto; }

.scope-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.scope-table th, .scope-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--paper-line);
  white-space: nowrap;
}

.scope-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate-dim);
  font-weight: 500;
}

.scope-table td.num, .scope-table th.t-good, .scope-table th.t-better, .scope-table th.t-best {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
}

.scope-table td:first-child { white-space: normal; }
.scope-table .category-name { font-weight: 600; text-transform: capitalize; }

.scope-table .category-notes {
  display: block;
  font-size: 11px;
  color: var(--slate-dim);
  font-weight: 400;
  white-space: normal;
  margin-top: 2px;
  max-width: 360px;
}

.scope-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--paper-line);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.scope-table .t-good { color: var(--good); }
.scope-table .t-better { color: var(--gold); }
.scope-table .t-best { color: var(--gold-deep); }

.scope-table th.t-check { text-align: center; width: 56px; }
.scope-table td.check-cell { text-align: center; }

.scope-table input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
}

.scope-table tr.is-excluded { opacity: 0.4; }
.scope-table tr.is-excluded .category-name,
.scope-table tr.is-excluded .category-notes { text-decoration: line-through; }

.qty-input {
  width: 60px;
  background: #FBFAF7;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 4px 6px;
  text-align: right;
}

.qty-input:focus { outline: none; border-color: var(--brand); }
.qty-unit { font-size: 10px; color: var(--slate-dim); margin-left: 4px; }

.recalc-btn {
  margin-top: 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  cursor: pointer;
}

.recalc-btn:hover { filter: brightness(1.1); }
.recalc-btn.is-pending { opacity: 0.6; cursor: wait; }

.disclaimer {
  font-size: 11px;
  color: var(--slate-dim);
  text-align: center;
  margin: 8px 0 16px;
}

/* ===================== View 2: Client Stage ===================== */

.client-stage.view-panel {
  background: linear-gradient(160deg, var(--stage-bg-1), var(--stage-bg-2));
  color: #fff;
  padding: 40px 36px 44px;
  border: none;
}

.client-stage__header {
  margin-bottom: 22px;
  animation: stageRise 0.5s ease-out;
}

.client-stage__brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #9FC2F2;
  margin-bottom: 8px;
}

.client-stage__title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 6px;
}

.client-stage__address {
  font-size: 13px;
  color: #C7D6EE;
  margin: 0;
}

.client-stage__summary {
  font-size: 16px;
  line-height: 1.65;
  max-width: 64ch;
  color: #EAF0FB;
  margin: 0 0 26px;
  animation: stageRise 0.5s ease-out 0.05s backwards;
}

.client-callouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  animation: stageRise 0.5s ease-out 0.1s backwards;
}

.client-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: #D7E2F5;
  background: rgba(255,255,255,0.06);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
  padding: 10px 14px;
}

.client-callout::before {
  content: '\2022';
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ===================== Floor plan render ===================== */

.floorplan-render {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  padding: 12px;
}

.floorplan-render svg {
  max-width: 100%;
  height: auto;
}

.client-floorplan {
  margin-bottom: 30px;
  animation: stageRise 0.6s ease-out 0.12s backwards;
}

.client-floorplan__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FC2F2;
  margin-bottom: 10px;
}

.floorplan-render--stage {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 16px;
  max-width: 380px;
  margin: 0 auto;
}

.client-decisions {
  margin-bottom: 30px;
  animation: stageRise 0.5s ease-out 0.15s backwards;
}

.client-decisions__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FC2F2;
  margin-bottom: 12px;
}

.decision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 8px;
}

.decision-row__label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
}

.decision-toggle {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.decision-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #C7D6EE;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.decision-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1C1F24;
}

.client-heroes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  animation: stageRise 0.6s ease-out 0.2s backwards;
}

@media (max-width: 700px) { .client-heroes { grid-template-columns: 1fr; } }

.client-hero {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 22px 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.client-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}

.client-hero--good::before { background: var(--good); }
.client-hero--better::before { background: var(--gold); }
.client-hero--best::before { background: #D9B65A; }

.client-hero__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9FC2F2;
  margin-bottom: 10px;
}

.client-hero__value {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
}

.financing-toggle-row {
  text-align: center;
  margin: 24px 0 0;
  animation: stageRise 0.5s ease-out 0.25s backwards;
}

.financing-toggle-btn {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.financing-toggle-btn:hover {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
}

.financing-toggle-btn__icon {
  font-size: 16px;
  line-height: 1;
}

/* ---- Financing Widget ---- */

.financing-widget {
  margin: 20px 0 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 28px 20px;
  animation: stageRise 0.4s ease-out;
}

.financing-widget__header {
  margin-bottom: 20px;
}

.financing-widget__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9FC2F2;
}

.financing-widget__subtitle {
  font-size: 13px;
  color: #C7D6EE;
  margin-top: 4px;
}

.financing-widget__payment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.financing-widget__amount {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 72px);
  color: #fff;
  line-height: 1;
  transition: all 0.2s ease;
}

.financing-widget__per {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #9FC2F2;
  padding-bottom: 4px;
}

.financing-widget__controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.financing-control__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #C7D6EE;
  margin-bottom: 10px;
}

.financing-control__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.financing-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.financing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.financing-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.3);
}

.financing-slider__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.financing-terms {
  display: flex;
  gap: 8px;
}

.term-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #C7D6EE;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-btn:hover { border-color: rgba(255,255,255,0.4); }

.term-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1C1F24;
  font-weight: 700;
}

.financing-widget__summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.financing-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.financing-summary-item__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

.financing-summary-item__value {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: #EAF0FB;
}

.financing-widget__disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin: 0;
}

.client-stage__note {
  font-size: 11.5px;
  color: #8FA7CC;
  text-align: center;
  margin: 24px 0 0;
}

@keyframes stageRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== View 3: Quote Stage ===================== */

.quote-stage.view-panel { padding-top: 28px; }

.quote-picker { margin-bottom: 24px; text-align: center; }

.tier-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tier-btn {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  color: var(--slate);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.tier-btn:hover { border-color: var(--brand); color: var(--brand); }

.tier-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.quote-actions {
  text-align: center;
  margin-top: 8px;
}

.pdf-btn {
  display: inline-block;
  margin: 0 8px 12px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 30px;
  cursor: pointer;
}

.pdf-btn:hover { filter: brightness(1.1); }
.pdf-btn.is-pending { opacity: 0.6; cursor: wait; }

.email-btn {
  display: inline-block;
  margin: 0 8px 12px;
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  cursor: pointer;
}

.email-btn:hover { border-color: var(--brand); color: var(--brand); }
.email-btn.is-pending { opacity: 0.6; cursor: wait; }

.email-status {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

.email-status.is-success { color: var(--good); }
.email-status.is-error { color: #A33B2E; }
