/* Cold Cloud client portal. Generated by work/T9/tools/build_css.py from the prototype style + plugin_extra.css + t11.css. */
:root {
  /* docs/DESIGN.md section 1 tokens (contrast checked there); the client page has its own dark theme further down */
  --paper: #ffffff; --wash: #f5f8fb; --header: #e1e9f1;
  --ink-strong: #303744; --ink: #4a4f5c; --muted: #5d7482; --line: #d8e2eb;
  --action: #106f9f; --action-dark: #0e5f89; --ok: #186b3a; --warn: #8a5200; --danger: #b42318;
  --accent: #33bcf4;            /* decoration only: never text, never under white text, never focus */
  --accent-2: #59a8f9;
  --wash-blue: #eef8fd; --success: #186b3a; --success-wash: #eaf7f1; --ok-wash: #eaf7f1; --ok-line: #9fd8b5;
  --warn-line: #f0d58a; --danger-wash: #fdecec;
  --on-color: #ffffff;          /* text and marks on a filled color (buttons, done marks, the dark sign card) */
  --on-bright: #0b141a;         /* text on the light action blue / green of the dark theme */
  --on-dark-soft: #dceaf0;      /* secondary text on a dark panel */
  --on-dark-link: #a9defa;
  --panel-dark: #3a4e5c;        /* the "When you are ready" card, dark in both themes */
  --mark-line: #b9c9d4;         /* edges of empty step marks (each mark also has a number, a word or a glyph) */
  --blue-line: #bdd5e2; --field-line: #cbd9e3; --field: #fbfdfe;
  --logo-plate: #e9f0f5;        /* the light plate behind logos and Conduit images in the dark theme */
  --dk-mark-line: #4b6170; --dk-blue-line: #1f4457; --dk-ok-wash: #12301f; --dk-ok-line: #2c6b45;
  --footer-dark: #34434e; --footer-light: #f2f4f6; --footer-line: #dde3e8; --footer-ink: #424a52; --footer-strong: #1d2329;
  --lightbox: #080e13;
  --yelp: #d32323;              /* Yelp's own logo square (a brand mark, not a status) */
  --shadow: 0 18px 50px rgba(64, 92, 110, .10);
  --shadow-soft: 0 8px 24px rgba(64, 92, 110, .08);
  --gradient: linear-gradient(115deg, #59a8f9 0%, #33bcf4 100%);   /* decoration only (room load bars): never under text */
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--wash); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 8%, rgba(51,188,244,.08), transparent 24rem),
    var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--action); text-underline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { color: var(--ink-strong); letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2rem, 7.8vw, 4rem); line-height: 1.04; }
h2 { margin: 0; font-size: clamp(1.55rem, 5vw, 2.2rem); line-height: 1.12; }
h3 { margin: 0; font-size: 1rem; line-height: 1.3; }

.shell { width: min(100% - 32px, 1160px); margin-inline: auto; }
.section { padding: 36px 0; }
.section + .section { border-top: 1px solid rgba(216,226,235,.72); }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--action);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-copy { max-width: 680px; margin-top: 10px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fine { font-size: .75rem; line-height: 1.45; }

.brand { width: 170px; height: auto; }
.site-header { overflow: hidden; background: var(--header); border-bottom: 1px solid var(--field-line); }
/* Nov 10 (DESIGN section 1): --muted is 4.0:1 on --header; every text on the header uses --ink (6.7:1) */
.site-header { --muted: var(--ink); }
.site-header__top { padding: 18px 0 16px; }
.site-header__hero { position: relative; padding: 8px 0 30px; }
.site-header__hero::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -160px;
  width: 310px;
  aspect-ratio: 1;
  border: 58px solid rgba(255,255,255,.26);
  border-radius: 50%;
  pointer-events: none;
}
.project-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--action);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(51,188,244,.13); }
.address-city { margin-top: 7px; color: var(--muted); font-weight: 500; }
.prepared { display: flex; align-items: center; gap: 11px; margin-top: 20px; position: relative; z-index: 1; }
.avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16,111,159,.18);
  border-radius: 50%;
  color: var(--action);
  background: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.prepared strong { display: block; color: var(--ink-strong); font-size: .875rem; }
.prepared span { display: block; color: var(--muted); font-size: .8125rem; }

.found-card {
  position: relative;
  margin-top: -12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.found-text { margin-top: 12px; color: var(--ink); font-size: 1rem; line-height: 1.65; }
.assurance-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.assurance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--wash-blue);
  font-size: .75rem;
  font-weight: 650;
}
.assurance svg { width: 14px; height: 14px; color: var(--action); }
.photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 74%);
  gap: 10px;
  margin: 20px -22px 0;
  padding: 0 22px 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.photo-rail::-webkit-scrollbar, .option-rail::-webkit-scrollbar { display: none; }
.visit-photo { margin: 0; overflow: hidden; scroll-snap-align: start; border-radius: 13px; background: var(--soft); }
.photo-art { height: 126px; overflow: hidden; background: var(--track); }
.photo-art svg { width: 100%; height: 100%; }
.visit-photo figcaption { padding: 10px 11px 12px; color: var(--ink-strong); background: var(--soft); font-size: .8125rem; font-weight: 650; }
.visit-photo figcaption span { display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.option-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.swipe-hint { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.option-rail {
  display: flex;
  gap: 12px;
  margin: 22px -16px 0;
  padding: 4px 16px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.option-card {
  position: relative;
  flex: 0 0 min(326px, calc(100vw - 48px));
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.option-card.selected { border: 2px solid var(--accent); padding: 19px 17px 17px; box-shadow: 0 16px 38px rgba(43,160,217,.17); }
.option-card.recommended { background: linear-gradient(180deg, var(--wash-blue) 0, var(--paper) 170px); }
.recommended-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -7px 0 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--action-dark);
  background: var(--wash-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.recommended-badge svg { width: 13px; height: 13px; }
.option-name { padding-right: 4px; font-size: 1.25rem; line-height: 1.28; }
.equipment { margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.52; }
.who-for { min-height: 3.1em; margin-top: 12px; color: var(--ink); font-size: .875rem; line-height: 1.48; }
.option-price { margin-top: 18px; color: var(--ink-strong); font-size: 2rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.option-price-label { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.cash-price { margin-top: 7px; color: var(--success); font-size: .8125rem; font-weight: 700; }
.select-option {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  color: var(--action);
  background: var(--field);
  font-size: .875rem;
  font-weight: 750;
  cursor: pointer;
}
.selected .select-option { color: var(--on-color); border-color: transparent; background: var(--gradient); }
.signed-chip { display: inline-flex; align-self: flex-start; margin-top: 18px; padding: 7px 10px; border-radius: 9px; color: var(--ok); background: var(--success-wash); font-size: .8125rem; font-weight: 700; }
.option-card details { border-top: 1px solid var(--line); }
.option-card details:first-of-type { margin-top: 18px; }
.option-card summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  color: var(--action);
  font-size: .875rem;
  font-weight: 750;
  cursor: pointer;
}
.option-card summary::-webkit-details-marker { display: none; }
.option-card summary::after { content: "+"; font-size: 1.25rem; font-weight: 500; line-height: 1; }
.option-card details[open] summary::after { content: "−"; }
.included-list { margin: 0 0 15px; padding: 0; list-style: none; }
.included-list li { position: relative; padding: 5px 0 5px 23px; color: var(--ink); font-size: .8125rem; line-height: 1.45; }
.included-list li::before { content: "✓"; position: absolute; left: 1px; top: 5px; color: var(--success); font-weight: 800; }
.not-included { margin: 0 0 14px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

.selection-summary { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; padding: 11px 13px; border-radius: 12px; background: var(--wash-blue); }
.selection-summary svg { flex: 0 0 18px; width: 18px; color: var(--action); }
.selection-summary span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.selection-summary strong { display: block; color: var(--ink-strong); font-size: .8125rem; line-height: 1.35; }
.pay-grid { display: grid; gap: 12px; }
.pay-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: var(--shadow-soft); }
.pay-label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pay-number { margin-top: 8px; color: var(--ink-strong); font-size: clamp(2rem, 9vw, 2.65rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.discount { display: inline-flex; margin-top: 10px; padding: 5px 8px; border-radius: 8px; color: var(--ok); background: var(--success-wash); font-size: .75rem; font-weight: 800; }
.savings { margin-top: 6px; color: var(--muted); font-size: .75rem; }
.finance-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.finance-row:first-of-type { margin-top: 8px; border-top: 0; }
.finance-row strong { display: block; color: var(--ink-strong); font-size: .875rem; }
.finance-row span { display: block; color: var(--muted); font-size: .75rem; }
.monthly { color: var(--ink-strong); font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.monthly small { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.gogreen-note { margin-top: 10px; padding: 12px; border-radius: 12px; color: var(--ink); background: var(--wash-blue); font-size: .75rem; line-height: 1.48; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  color: var(--on-color);
  background: var(--gradient);
  box-shadow: 0 9px 20px rgba(40,153,208,.22);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .button:hover { filter: saturate(1.08) brightness(.98); } }
/* Nov 25 (Peter: "buttons do not react to my finger"): press feedback on everything pressable. The tap highlight is off (line 47), so
   :active must show the press; iOS Safari fires :active only with a touchstart listener (portal.js / Accounts\Pages add an empty one). */
.button, button, summary, .acct-project { transition: transform 160ms cubic-bezier(.23, 1, .32, 1), filter 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button:active, button:not(:disabled):active, .acct-project:active, .acct-more summary:active { transform: scale(.97); }
.button:active { filter: brightness(.94); box-shadow: 0 4px 10px rgba(40,153,208,.18); }
.button.secondary:active, .acct-project:active { background-color: var(--wash-blue); }
/* a submitted form: the button shows it is working until the next page comes (aria-busy; a second tap does nothing) */
.button.is-pending { pointer-events: none; filter: saturate(.85); }
.button.is-pending::after { content: ""; width: 16px; height: 16px; margin-left: 4px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ccp-spin .7s linear infinite; }
@keyframes ccp-spin { to { transform: rotate(360deg); } }
/* buttons already placed with a transform keep it while pressed */
.lightbox__prev:not(:disabled):active, .lightbox__next:not(:disabled):active { transform: translateY(-50%) scale(.94); }
.button.secondary { color: var(--action); background: var(--paper); border: 1px solid var(--blue-line); box-shadow: none; }
.button.compact { min-height: 42px; padding: 9px 14px; font-size: .875rem; }
.button.full { width: 100%; }
:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }

.escalation { margin: 10px 0 6px; font-size: .875rem; color: var(--ink); } .escalation a { color: inherit; } .client-contacts { margin-top: 4px; } .client-contacts a { color: inherit; text-decoration: none; }
.journey-section { background: linear-gradient(180deg, rgba(238,248,253,.58), rgba(245,248,251,0)); }
.journey-card { padding: 20px 18px; border: 1px solid var(--blue-line); border-radius: var(--radius-lg); background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft); }
.journey-lead { max-width: 720px; margin-top: 10px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.timeline { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.timeline-step { position: relative; min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 0 0 15px; }
.timeline-step::before { content: ""; position: absolute; z-index: 0; top: 29px; bottom: -1px; left: 14px; width: 2px; background: var(--line-soft); }
.timeline-step.connector-complete::before { background: var(--action); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--mark-line); border-radius: 50%; color: var(--muted); background: var(--paper); font-size: .75rem; font-weight: 800; }
.timeline-content { min-width: 0; padding: 3px 0 5px; }
.timeline-status { display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.timeline-step strong { display: block; color: var(--ink-strong); font-size: .875rem; line-height: 1.3; }
.timeline-meta { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.42; }
.timeline-step.done .timeline-dot { border-color: var(--success); color: var(--on-color); background: var(--success); }
.timeline-step.done .timeline-status { color: var(--success); }
.timeline-step.current .timeline-dot { border-color: var(--action); color: var(--on-color); background: var(--action); box-shadow: 0 0 0 5px rgba(16,111,159,.12); }
.timeline-step.current .timeline-status { color: var(--action); }
.timeline-step.next .timeline-dot { border-color: var(--action); color: var(--action); box-shadow: 0 0 0 4px rgba(16,111,159,.09); }
.timeline-step.next .timeline-content { margin: -4px 0 3px; padding: 8px 10px 9px; border: 1px solid var(--blue-line); border-radius: 11px; background: var(--wash-blue); }
.timeline-step.next .timeline-status { color: var(--action); }
.timeline-step.future strong { color: var(--muted); }

.action-grid { display: grid; gap: 12px; }
.sign-card { padding: 24px 20px; border-radius: 20px; background: linear-gradient(145deg, var(--panel-dark), var(--panel-dark)); color: var(--on-color); box-shadow: var(--shadow); }
.sign-card h2 { color: var(--on-color); }
.sign-card p { margin-top: 8px; color: var(--on-dark-soft); font-size: .875rem; }
.sign-card .button { width: 100%; margin-top: 18px; }
.form-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-soft); }
.form-card p { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
label.field-label { display: block; margin-top: 15px; color: var(--ink-strong); font-size: .75rem; font-weight: 700; }
textarea, input[type="password"] {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  color: var(--ink-strong);
  background: var(--field);
}
textarea { min-height: 92px; margin-top: 6px; padding: 12px; resize: vertical; }
input[type="password"] { height: 50px; padding: 0 14px; }
textarea::placeholder, input::placeholder { color: var(--muted); }
.choice-list { display: grid; gap: 8px; margin-top: 14px; }
.choice, .check {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-strong);
  background: var(--field);
  font-size: .8125rem;
  cursor: pointer;
}
.choice input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.form-status { min-height: 1.4em; margin-top: 10px !important; color: var(--success) !important; font-weight: 650; }
.team-preview { padding: 18px 0 2px; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.team-preview strong { color: var(--ink-strong); }

.proposal-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin: 22px 0 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.proposal-bar__label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-bar__text { margin-top: 2px; color: var(--ink-strong); font-size: .8125rem; line-height: 1.42; }
.readonly-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; color: var(--muted); background: var(--soft); font-size: .8125rem; }

.tracker-section { padding-top: 22px; }
.now-card { position: relative; overflow: hidden; padding: 24px 20px; border: 2px solid var(--accent); border-radius: 21px; background: linear-gradient(145deg, var(--paper) 35%, var(--wash-blue)); box-shadow: var(--shadow); }
.now-card::after { content: ""; position: absolute; right: -45px; bottom: -78px; width: 170px; height: 170px; border: 32px solid rgba(51,188,244,.11); border-radius: 50%; }
.now-label { position: relative; z-index: 1; color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.now-card h2 { position: relative; z-index: 1; margin-top: 8px; font-size: clamp(1.8rem, 8vw, 3rem); }
.now-copy { position: relative; z-index: 1; max-width: 700px; margin-top: 10px; color: var(--ink); font-size: .875rem; }
.now-meta { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 18px; }
.meta-pill { padding: 10px 11px; border: 1px solid rgba(16,111,159,.13); border-radius: 11px; background: rgba(255,255,255,.74); }
.meta-pill span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.meta-pill strong { display: block; margin-top: 2px; color: var(--ink-strong); font-size: .8125rem; line-height: 1.35; }
.next-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.next-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--action); background: var(--wash-blue); font-size: 1.25rem; }
.next-card span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-card strong { display: block; margin-top: 2px; color: var(--ink-strong); font-size: 1rem; }
.next-card p { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.step-list-card { margin-top: 10px; padding: 15px 16px 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.link-button { min-height: 36px; padding: 0; border: 0; color: var(--action); background: transparent; font-size: .8125rem; font-weight: 750; cursor: pointer; }
.step-list { margin: 7px 0 0; padding: 0; list-style: none; }
.step-item { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 9px; min-height: 42px; padding: 6px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: .8125rem; }
.step-mark { width: 23px; height: 23px; display: grid; place-items: center; border: 1.5px solid var(--mark-line); border-radius: 50%; color: var(--muted); font-size: .75rem; font-weight: 800; }
.step-item.done { color: var(--muted); }
.step-item.done .step-mark { color: var(--on-color); border-color: var(--success); background: var(--success); }

.dashboard-stack { display: grid; gap: 12px; padding: 22px 0 36px; }
.dashboard-grid { display: grid; gap: 12px; }
.dashboard-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-soft); }
.dashboard-card h2 { font-size: 1.25rem; }
.balance-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .8125rem; }
.balance-row strong { color: var(--ink-strong); white-space: nowrap; }
.balance-row.total { align-items: end; margin-top: 4px; border-bottom: 0; }
.balance-row.total strong { font-size: 1.25rem; letter-spacing: -.03em; }
.empty-state { margin-top: 12px; padding: 12px; border-radius: 11px; color: var(--muted); background: var(--wash); font-size: .8125rem; }
.person { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 11px; align-content: start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.person .avatar { width: 40px; height: 40px; flex-basis: 40px; background: var(--wash-blue); }
.person-name { color: var(--ink-strong); font-size: .875rem; font-weight: 750; }
.person-title { color: var(--action); font-size: .75rem; font-weight: 700; }
.person-note { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.person-contact { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; }
.doc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.doc-row:first-of-type { margin-top: 8px; }
.doc-row strong { display: block; color: var(--ink-strong); font-size: .8125rem; }
.doc-row span { display: block; color: var(--muted); font-size: .75rem; }
.messages { display: grid; gap: 9px; margin-top: 14px; }
.message { max-width: 90%; padding: 10px 12px; border-radius: 13px 13px 13px 4px; color: var(--ink); background: var(--wash); font-size: .8125rem; }
.message.client { justify-self: end; border-radius: 13px 13px 4px 13px; background: var(--wash-blue); }
.message-meta { margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.updates { display: grid; gap: 8px; margin-top: 13px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.yelp-badge { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--field-line); border-radius: 11px; color: var(--ink-strong); text-decoration: none; font-size: .8125rem; font-weight: 750; }
.yelp-mark { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; color: var(--on-color); background: var(--yelp); font-size: .75rem; font-weight: 800; }

.mobile-cta { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--field-line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 28px rgba(47,75,91,.12); backdrop-filter: blur(12px); }
.mobile-cta span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.mobile-cta strong { display: block; overflow: hidden; color: var(--ink-strong); font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.mobile-cta .button { min-height: 44px; padding: 10px 14px; font-size: .8125rem; box-shadow: none; }
body.proposal-mode { padding-bottom: 72px; }

footer { padding: 30px 0 34px; color: var(--on-dark-soft); background: var(--footer-dark); font-size: .8125rem; line-height: 1.7; }
footer a { color: var(--on-color); }
.footer-inner { display: grid; gap: 7px; }
.privacy { color: var(--on-dark-soft); font-size: .75rem; }

.demo-panel { position: fixed; z-index: 30; right: 10px; bottom: 12px; max-width: calc(100vw - 20px); display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid var(--field-line); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(39,67,83,.18); backdrop-filter: blur(10px); }
.proposal-mode .demo-panel { bottom: 76px; }
.demo-panel strong { padding: 0 4px; color: var(--action); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.demo-panel select { min-width: 0; max-width: 148px; height: 34px; border: 1px solid var(--field-line); border-radius: 8px; color: var(--ink); background: var(--paper); font-size: .75rem; }
.shot-mode .demo-panel { display: none !important; }

.gate { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(circle at 20% 10%, rgba(51,188,244,.16), transparent 26rem), var(--wash); }
.gate-head { padding: 22px 0; }
.gate-main { display: grid; align-items: center; padding: 20px 0 44px; }
.gate-card { width: min(100%, 430px); margin-inline: auto; padding: 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.gate-lock { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; color: var(--action); background: var(--wash-blue); }
.gate-lock svg { width: 22px; }
.gate-card h1 { font-size: 1.85rem; }
.gate-card > p { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.gate-card form { margin-top: 20px; }
.gate-card .field-label { margin: 0 0 6px; }
.gate-card .button { width: 100%; margin-top: 12px; }
.gate-help { margin-top: 13px !important; text-align: center; font-size: .75rem !important; }
.gate-footer { padding: 18px 0; color: var(--muted); text-align: center; font-size: .75rem; }

.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: end center; padding: 16px; background: rgba(38,49,58,.48); backdrop-filter: blur(4px); }
.modal-card { width: min(100%, 460px); padding: 24px 20px 20px; border-radius: 21px; background: var(--paper); box-shadow: 0 24px 80px rgba(28,44,54,.3); }
.modal-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 13px; color: var(--action); background: var(--wash-blue); }
.modal-card h2 { font-size: 1.5rem; }
.modal-card p { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.modal-card .button { width: 100%; margin-top: 18px; }

@media (min-width: 620px) {
  .shell { width: min(100% - 48px, 1160px); }
  .section { padding: 48px 0; }
  .found-card { padding: 28px; }
  .photo-rail { grid-auto-columns: minmax(210px, 31%); margin-inline: 0; padding-inline: 0; }
  .option-rail { margin-inline: 0; padding-inline: 0; }
  .pay-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pay-card.finance { grid-column: 1 / -1; }
  .now-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal { place-items: center; }
}

@media (min-width: 900px) {
  .site-header__top { padding-top: 24px; }
  .site-header__hero { padding: 18px 0 48px; }
  .prepared { margin-top: 24px; }
  .found-card { margin-top: -20px; }
  .photo-art { height: 155px; }
  .option-rail { display: grid; grid-template-columns: repeat(var(--option-count), minmax(0,1fr)); overflow: visible; }
  .option-card { width: auto; min-width: 0; }
  .swipe-hint { display: none; }
  .pay-grid { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; }
  .pay-card.finance { grid-column: auto; }
  .journey-card { padding: 28px; }
  .timeline { grid-template-columns: repeat(9, minmax(0,1fr)); }
  .timeline-step { display: block; padding: 0 9px 0 0; }
  .timeline-step::before { top: 14px; bottom: auto; left: 29px; right: 0; width: auto; height: 2px; }
  .timeline-content { margin-top: 10px; padding: 0 8px 0 0; }
  .timeline-step.next .timeline-content { margin: 6px 5px 0 -5px; padding: 7px 8px 8px; }
  .timeline-step strong { font-size: .8125rem; }
  .timeline-meta { font-size: .75rem; }
  .action-grid { grid-template-columns: 1.02fr 1fr 1fr; align-items: stretch; }
  .sign-card, .form-card { min-height: 100%; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-card.span-2 { grid-column: 1 / -1; }
  .now-card { padding: 32px; }
  .now-meta { max-width: 720px; }
  .mobile-cta { display: none; }
  body.proposal-mode { padding-bottom: 0; }
  .proposal-mode .demo-panel { bottom: 12px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1180px) {
  .section { padding: 56px 0; }
  .option-card { padding: 22px 20px 20px; }
  .option-card.selected { padding: 21px 19px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ---- v3 additions (T6) ---- */
.pipeline { margin-top: 18px; position: relative; z-index: 1; }
.pipeline ol { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.pipeline li { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.pipeline li::before { content: ""; position: absolute; top: 6px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 2px; background: var(--pipe-line); }
.pipeline li:first-child::before { display: none; }
.pipeline li.done::before, .pipeline li.current::before { background: var(--action); }
.pipeline .dot { width: 14px; height: 14px; border: 2px solid var(--mark-line); border-radius: 50%; background: var(--paper); }
.pipeline li.done .dot { border-color: var(--action); background: var(--action); }
.pipeline li.current .dot { border-color: var(--action); background: var(--paper); box-shadow: 0 0 0 4px rgba(16,111,159,.18); }
.pipeline .lbl { color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.pipeline li.done .lbl { color: var(--ink); }
.pipeline li.current .lbl { color: var(--action); font-weight: 800; }
.pipeline-caption { margin-top: 9px; color: var(--muted); font-size: .75rem; text-align: center; }

.brief { display: grid; gap: 22px; padding: 22px 0 36px; }
.brief > * { min-width: 0; }
.brief-card .photo-rail, .brief-card .option-rail { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
.brief-card { position: relative; min-width: 0; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-soft); scroll-margin-top: 12px; }
.brief-card.first { margin-top: -16px; box-shadow: var(--shadow); }
.num-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.num-kicker b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--gradient); font-size: .75rem; letter-spacing: 0; }
.brief-card h2 { font-size: clamp(1.4rem, 5.6vw, 2rem); }
.brief-card .lead { margin-top: 12px; font-size: 1rem; line-height: 1.65; }
.demo-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; color: var(--warn); background: var(--warn-wash); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.big-numbers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.big-number { min-width: 0; padding: 12px 10px; border-radius: 14px; background: var(--wash-blue); text-align: center; }
.big-number strong { display: block; color: var(--ink-strong); font-size: clamp(1.15rem, 5.4vw, 1.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.big-number span { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.3; }
.why-size { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.vs-grid { display: grid; gap: 10px; margin-top: 16px; }
.vs-col { padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.vs-col.replace { border-color: var(--blue-line); background: var(--wash-blue); }
.vs-col h3 { font-size: .8125rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.vs-amount { margin-top: 6px; color: var(--ink-strong); font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.vs-col p { margin-top: 8px; font-size: .8125rem; line-height: 1.5; }
.vs-col p.minus { color: var(--muted); }
.increment { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--wash); font-size: .875rem; }
.increment strong { color: var(--ink-strong); }
.rebate-line { margin-top: 8px; color: var(--ink); font-size: .75rem; line-height: 1.45; }
.rebate-line strong { color: var(--success); }
.rebate-fine { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.change-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: ch; }
.change-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.change-list li:first-child { border-top: 0; }
.change-list li::before { counter-increment: ch; content: counter(ch); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--action); background: var(--wash-blue); font-size: .75rem; font-weight: 800; }
.change-list strong { display: block; color: var(--ink-strong); font-size: .875rem; }
.change-list p { margin-top: 3px; font-size: .8125rem; line-height: 1.5; }
.savings-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .875rem; }
.savings-table th, .savings-table td { padding: 11px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; }
.savings-table th:first-child, .savings-table td:first-child { text-align: left; }
.savings-table thead th { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.savings-table td strong { color: var(--ink-strong); font-size: 1rem; }
.fin-grid { display: grid; gap: 12px; margin-top: 12px; }
.fin-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: var(--shadow-soft); }
.fin-logo { height: 34px; width: auto; max-width: 100%; }
.fin-logo.gl { height: 26px; }
.fin-card .about { margin-top: 12px; font-size: .8125rem; line-height: 1.5; }
.fin-card .button { margin-top: 12px; }
/* GoGreen "slide when approved" (Comfort Advisor plan B 12, Nov 8): drag the knob to the end and hold ~5 s */
.gg-slide-wrap { margin-top: 14px; }
.gg-slide-note { margin: 0 0 10px; font-size: .8125rem; line-height: 1.5; color: var(--ink); }
.gg-slide { position: relative; height: 52px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.gg-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok-wash); }
.gg-slide.holding .gg-fill { width: 100%; transition: width var(--gg-hold, 5000ms) linear; }
.gg-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px 0 60px; color: var(--muted); font-size: .8125rem; font-weight: 700; pointer-events: none; }
.gg-slide.holding .gg-label, .gg-slide.done .gg-label { color: var(--ok); }
.gg-knob { position: absolute; top: 4px; left: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; cursor: grab; box-shadow: var(--shadow-soft); transition: transform 200ms ease-out; }
.gg-knob svg { width: 20px; height: 20px; }
.gg-slide.dragging .gg-knob { transition: none; cursor: grabbing; }
/* staff "View as client": the form is off, so the slider looks off too (Nov 11) */
.gg-slide:not(.done):has(.gg-knob:disabled) { opacity: .55; cursor: not-allowed; }
.gg-slide:not(.done) .gg-knob:disabled { background: var(--muted); cursor: not-allowed; box-shadow: none; }
.gg-knob:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.gg-claimed { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; line-height: 1.5; color: var(--ink); }
.gg-tag { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--success-wash); color: var(--ok); border: 1px solid var(--ok-line, var(--ok)); font-size: .75rem; font-weight: 800; }
.fin-more-label { margin: 14px 0 0; color: var(--muted); font-size: .75rem; font-weight: 600; }
.fin-more { margin: 6px 0 0; padding: 0; list-style: none; }
.fin-more li { padding: 8px 0; border-top: 1px solid var(--line); }
.fin-more li:first-child { border-top: 0; }
.fin-more strong { display: block; color: var(--ink-strong); font-size: .8125rem; }
.fin-more span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.pay-note { margin-top: 12px; color: var(--muted); font-size: .8125rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--blue-line); border-radius: 11px; background: var(--paper); color: var(--action); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.steps6 { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; }
.steps6 li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.steps6 li:first-child { border-top: 0; }
.steps6 .m { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--mark-line); border-radius: 50%; color: var(--muted); font-size: .75rem; font-weight: 800; background: var(--paper); }
.steps6 li.done .m { border-color: var(--success); background: var(--success); color: var(--on-color); }
.steps6 li.next .m { border-color: var(--action); color: var(--action); box-shadow: 0 0 0 4px rgba(16,111,159,.12); }
.steps6 strong { display: block; color: var(--ink-strong); font-size: .875rem; }
.steps6 span { display: block; color: var(--muted); font-size: .75rem; }
.steps6 .st { display: inline-block; margin-left: 6px; color: var(--success); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.steps6 li.next .st { color: var(--action); }
.team-line { margin-top: 10px; font-size: .875rem; line-height: 1.6; }
.team-line strong { color: var(--ink-strong); }

.proposal-bar .button { white-space: nowrap; }
.money-card { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.money-top { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 14px; }
.money-top div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.money-top div { min-width: 0; padding: 12px 10px; border-radius: 13px; background: var(--wash); }
.money-top span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.money-top strong { display: block; margin-top: 4px; color: var(--ink-strong); font-size: clamp(1.15rem, 4.4vw, 1.5rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.money-top .due strong { color: var(--action); }
.next-pay { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--wash-blue); font-size: .8125rem; }
.next-pay strong { color: var(--ink-strong); }
.install-card h2 { margin-top: 4px; }
.install-state { display: inline-flex; margin-top: 10px; padding: 5px 9px; border-radius: 8px; font-size: .75rem; font-weight: 800; }
.install-state.unset { color: var(--warn); background: var(--warn-wash); }
.install-state.set { color: var(--action); background: var(--wash-blue); }
.install-state.done { color: var(--ok); background: var(--success-wash); }
.install-facts { display: grid; gap: 8px; margin-top: 14px; }
.install-facts div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 11px; }
.install-facts span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.install-facts strong { display: block; margin-top: 2px; color: var(--ink-strong); font-size: .875rem; }
.delay-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.status-pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--wash); color: var(--ink-strong); font-size: .75rem; font-weight: 800; }
.status-pill.ok { color: var(--ok); background: var(--success-wash); }
.status-pill.wait { color: var(--muted); }
.status-pill.active { color: var(--action); background: var(--wash-blue); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; font-size: .8125rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-strong); font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.pm-note { margin-top: 12px; padding: 11px 13px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--wash); font-size: .8125rem; }
.complete-card { border: 2px solid var(--success); background: linear-gradient(145deg, var(--paper) 40%, var(--ok-wash)); box-shadow: var(--shadow); }
.complete-card .now-label { color: var(--success); }
.tracker-stack { display: grid; gap: 12px; padding-top: 18px; }

@media (min-width: 620px) {
  .brief-card { padding: 30px 28px; }
  .brief-card .photo-rail, .brief-card .option-rail { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .vs-grid { grid-template-columns: 1fr 1fr; }
  .fin-grid { grid-template-columns: 1fr 1fr; }
  .install-facts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .money-top { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .money-top div { display: block; }
  .pipeline .lbl { font-size: .75rem; }
}
@media (min-width: 900px) {
  .brief { gap: 28px; }
  .brief-card { padding: 36px; }
  .steps6 { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
  .steps6 li { display: block; border-top: 0; padding: 0; }
  .steps6 strong { margin-top: 8px; }
  .pipeline { max-width: 760px; }
}
.doc-row span.demo-tag, .doc-row .demo-tag { display: inline-block; color: var(--warn); font-size: .75rem; }
/* ---------- v4 (T8): visit booked / visit completed, details check, rebate marks ---------- */
textarea, input[type="password"], .details-form input { width: 100%; }
.details-form input { height: 46px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--paper); color: var(--ink-strong); }
.details-form .field-label { margin-top: 12px; }
.visit-facts { display: grid; gap: 8px; margin-top: 16px; }
.visit-facts div { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 13px; }
.visit-facts span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.visit-facts strong { display: block; margin-top: 2px; color: var(--ink-strong); font-size: 1rem; }
.visit-note { margin-top: 12px; padding: 12px 14px; border-radius: 13px; background: var(--wash-blue); color: var(--ink); font-size: .8125rem; line-height: 1.55; }
.visit-note + .visit-note { margin-top: 8px; }
.option-link { margin: 12px 0 0; font-size: .875rem; } .option-link a { color: var(--action); font-weight: 700; }
.who-comes { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.photo-ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--wash); border: 1px solid var(--field-line); }
.photo-ph svg { width: 100%; height: 100%; display: block; }
.who-comes .person-name { font-size: 1rem; }
.visit-hero { grid-template-columns: 112px 1fr; } .visit-hero .photo-ph { width: 112px; height: 112px; } .visit-hero .person-name { font-size: 1.25rem; } .person-kicker { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prep { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); } .prep p { margin: 6px 0 0; color: var(--ink); line-height: 1.5; }
.details-table { margin-top: 14px; }
.details-table .kv dd { text-align: left; }
.details-actions { display: grid; gap: 8px; margin-top: 16px; }
.details-done { margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: var(--success-wash); color: var(--ok); font-size: .875rem; font-weight: 650; }
.details-sent { margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: var(--warn-wash); color: var(--warn); font-size: .8125rem; }
.rebate-group { margin-top: 18px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rebate-list { margin: 6px 0 0; padding: 0; list-style: none; }
.rebate-item { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.rebate-item:first-child { border-top: 0; }
.rebate-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prov-logo { height: 24px; width: auto; max-width: 110px; flex: none; }
.prov-ph { flex: none; display: inline-flex; align-items: center; gap: 5px; max-width: 120px; height: 24px; padding: 0 7px 0 4px; border: 1px solid var(--field-line); border-radius: 7px; color: var(--action); background: var(--field); }
.prov-ph svg { width: 16px; height: 16px; flex: none; }
.prov-ph span { color: var(--ink-strong); font-size: .75rem; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rebate-name { min-width: 0; color: var(--ink-strong); font-size: .875rem; font-weight: 750; line-height: 1.3; }
.rebate-sub { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.rebate-text { margin-top: 4px; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.rebate-foot { margin-top: 14px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.rebate-line .prov-logo, .rebate-line .prov-ph, .kv .prov-logo, .kv .prov-ph { vertical-align: middle; margin-right: 6px; }
.rebate-line .prov-ph, .kv .prov-ph { max-width: none; }
@media (min-width: 760px) {
  .visit-facts { grid-template-columns: 1fr 1fr; }
  .details-actions { grid-template-columns: auto auto; justify-content: start; }
}


/* ---------- condensed phone version (Alex, 11 Oct) ---------- */
.condensed-note { margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--wash-blue); color: var(--ink-strong); font-size: .875rem; line-height: 1.5; }
.condensed-only { display: none; margin: 10px 0 0; }
body.condensed:not(.tabbed) .condensed-only { display: block; }
body.condensed:not(.tabbed) .j-step:not(.current):not(.next):not(.keep) { display: none; }
body.condensed .rebate-list .rebate-item:nth-child(n+4), body.condensed ul.rebate-list:nth-of-type(n+2), body.condensed div.rebate-group:nth-of-type(n+2) { display: none; }
body.condensed .option-card:not(.recommended):not(.selected) { display: none; }
body.condensed .j-facts dt:nth-of-type(2), body.condensed .j-facts dd:nth-of-type(2) { display: none; } /* 'Why it matters' only in the full version */
/* ---------- T12: project path (journey) ---------- */
@media (max-width: 640px) { .pipeline .lbl { font-size: .75rem; letter-spacing: 0; overflow-wrap: normal; hyphens: none; } .pipeline ol { gap: 2px; } }
.team-section + .team-section { margin-top: 18px; } .team-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } #s-team > .lead + .team-section { margin-top: 18px; }
.pipeline li.active .lbl { text-decoration: underline; text-underline-offset: 4px; font-weight: 800; } .pipeline .pipe-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; width: 100%; } .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 18px; row-gap: 0; align-items: stretch; margin-top: 12px; } .readonly-wrap .shell { padding-left: 0; padding-right: 0; }
.pipeline .pipe-link { display: grid; justify-items: center; gap: 5px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; } .pipeline .pipe-link:hover .lbl { text-decoration: underline; }
.pipeline-caption .see-all { font-weight: 750; white-space: nowrap; }
.journey { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
.j-step { position: relative; border-top: 1px solid var(--line-soft); }
.j-step:first-child { border-top: 0; }
.j-step summary { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.j-step summary::-webkit-details-marker { display: none; }
.j-step summary:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; border-radius: 10px; }
.j-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--mark-line); border-radius: 50%; background: var(--paper); color: var(--muted); font-size: .75rem; font-weight: 800; }
.j-step.done .j-mark { border-color: var(--success); background: var(--success); color: var(--on-color); }
.j-step.current .j-mark { border-color: var(--action); background: var(--action); color: var(--on-color); box-shadow: 0 0 0 4px rgba(16,111,159,.14); }
.j-head { display: grid; gap: 2px; min-width: 0; }
.j-title { color: var(--ink-strong); font-size: 1rem; font-weight: 750; line-height: 1.25; }
.j-step.upcoming .j-title { color: var(--muted); font-weight: 650; }
.j-step.locked .j-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; gap: 12px; align-items: center; padding: 12px 0; }
.j-step.locked .j-mark { border-style: dashed; }
.pipeline .pipe-link.locked { cursor: default; color: var(--muted); } .pipeline .pipe-link.locked:hover .lbl { text-decoration: none; }
.j-sub { color: var(--muted); font-size: .75rem; line-height: 1.35; overflow-wrap: anywhere; }
.j-step.done .j-sub { color: var(--success); }
.j-step.current .j-sub { color: var(--action); font-weight: 700; }
.j-chev { width: 10px; height: 10px; border-right: 2px solid var(--mark-line); border-bottom: 2px solid var(--mark-line); transform: rotate(45deg); justify-self: center; transition: transform .15s; }
.j-step details[open] .j-chev { transform: rotate(225deg); }
.j-body { margin: 0 0 14px 42px; padding: 14px 15px; border-radius: 14px; background: var(--soft); }
.j-step.current .j-body { background: var(--wash-blue); border: 1px solid var(--blue-line); }
.j-facts { display: grid; gap: 3px; margin: 0; }
.j-facts dt { margin-top: 9px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.j-facts dt:first-child { margin-top: 0; }
.j-facts dd { margin: 0; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.j-people { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.j-people-label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.j-person { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.j-person .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: .75rem; background: var(--paper); }
.j-avatar--role { border: 2px dashed var(--mark-line); background: transparent !important; }
.journey-shell { padding-top: 0; }
@media (max-width: 420px) { .j-body { margin-left: 0; } }
@media (min-width: 900px) {
  .j-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
  .j-people { margin-top: 0; padding-top: 0; padding-left: 16px; border-top: 0; border-left: 1px solid var(--line-soft); }
}

/* ---- plugin additions (T9) ---- */
.staff-banner { position: sticky; top: 0; z-index: 50; padding: 8px 16px; background: var(--warn-wash); color: var(--warn); font-size: .8125rem; font-weight: 700; text-align: center; border-bottom: 1px solid var(--warn-line); }
.form-flash { margin-top: 12px; padding: 11px 14px; border-radius: 13px; background: var(--success-wash); color: var(--ok); font-size: .8125rem; font-weight: 600; }
.form-flash.warn { background: var(--warn-wash); color: var(--warn); }
.test-note { display: block; margin-top: 4px; font-weight: 500; font-size: .75rem; color: var(--warn); }
.gate-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-wash); color: var(--danger); font-size: .8125rem; }
.gate-card form input[type="password"] { width: 100%; }
/* Nov 25: client accounts (Accounts\Pages): setup, code, password, sign-in, "Your sign-in" */
.acct .ccp-form input { font-size: 16px; }
.acct .ccp-form input.acct-code { font-size: 1.375rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted); font-size: .8125rem; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-card .acct-later { margin-top: 18px; }
.gate-card .acct-later .button { margin-top: 0; }
.gate-card .acct-small, .acct-small { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.acct-small a { color: var(--action); }
.acct-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--wash-blue); color: var(--ink-strong); font-size: .8125rem; }
.acct-actions { margin: 14px 0 0; }
.acct-actions .button { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.acct-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.acct-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--action); font-size: .875rem; font-weight: 600; }
.acct-more summary:focus-visible, .acct-small a:focus-visible { outline: 2px solid var(--action-dark, var(--action)); outline-offset: 2px; border-radius: 6px; }
.acct-more form { margin-top: 6px !important; }
.acct-list { list-style: none; margin: 16px 0 4px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.acct-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: .875rem; }
.acct-list li + li { border-top: 1px solid var(--line); }
.acct-list span { color: var(--muted); }
.acct-list strong { color: var(--ink-strong); font-weight: 600; text-align: right; }
/* Nov 25 (v200): passkeys: the button block (shown by the script), the list on "Your sign-in" with Remove, Undo after a removal */
.acct-pk { margin-top: 6px; }
.acct-pk[hidden], .acct-pk .gate-error[hidden] { display: none; }
.acct-pk .gate-error { margin: 10px 0 0; }
/* Nov 26: "Continue with Google": Google's mark left of the words, the plain (secondary) button */
.gate-card .acct-google { margin-top: 10px; }
.acct-google .button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 0; color: var(--ink-strong); }
.acct-google svg { flex: none; }
.acct-h2 { margin: 22px 0 0; font-size: 1rem; font-weight: 650; color: var(--ink-strong); }
.acct-keys { margin-top: 10px; }
.acct-keys li { align-items: center; }
.acct-keys li > span { display: grid; gap: 2px; min-width: 0; }
.acct-keys li > span strong { text-align: left; }
.acct-keys small { color: var(--muted); font-size: .75rem; }
.acct-keys button, .acct-undo button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--action); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.acct-keys button:hover, .acct-undo button:hover { border-color: var(--blue-line); }
.acct-keys button:focus-visible, .acct-undo button:focus-visible { outline: 2px solid var(--action-dark, var(--action)); outline-offset: 2px; }
.acct-undo { margin: 8px 0 0; }
.acct-projects { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.acct-project { position: relative; display: grid; gap: 4px; min-height: 64px; padding: 14px 40px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink-strong); text-decoration: none; }
.acct-project:hover { border-color: var(--blue-line); }
.acct-project:focus-visible { outline: 2px solid var(--action-dark, var(--action)); outline-offset: 2px; }
.acct-project strong { font-size: 1rem; font-weight: 650; }
.acct-project span { color: var(--muted); font-size: .8125rem; }
.acct-project .acct-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--action); font-size: 1.5rem; }
.ccp-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ccp-form input[type="text"], .ccp-form input[type="email"], .ccp-form input[type="tel"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink-strong); background: var(--card); }
.fix-details { margin-top: 12px; }
.fix-details > summary { list-style: none; cursor: pointer; display: inline-block; }
.fix-details > summary::-webkit-details-marker { display: none; }
.item-desc { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; font-weight: 400; }
.proposal-details > summary { list-style: none; cursor: pointer; }
.proposal-details > summary::-webkit-details-marker { display: none; }
.proposal-details[open] > summary .button { opacity: .7; }
.step-list-card details > summary { list-style: none; cursor: pointer; }
.step-list-card details > summary::-webkit-details-marker { display: none; }
.avatar.has-photo, .photo-ph img { overflow: hidden; }
.avatar.has-photo img, .photo-ph img, .photo-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* T15 items 2, 13: the sign button after the client has chosen an option (portal.js adds body.js and body.has-choice); without JS both stay usable */
body.js:not(.has-choice) [data-after-choice] { display: none; }
body:not(.js) [data-choose-first], body.has-choice [data-choose-first] { display: none; }
.sign-card .choose-first { margin-top: 12px; }
.sign-card [data-choose-first].button, .sign-card [data-after-choice].button { width: 100%; margin-top: 14px; }
body.proposal-mode { padding-bottom: 76px; }
@media (min-width: 900px) { body.proposal-mode { padding-bottom: 0; } }

/* ---------- T11: proposal blocks (why this size, comfort, repair or replace, cost-benefit, savings), rebate status, change order, dark mode ---------- */
:root { --track: #e6eef3; --bar-now: #8fa6b3; --bar-after: #106f9f; --card: #fff; --soft: #f5f9fc; --warn-ink: #8a5200; --warn-wash: #fff3d6; --line-soft: #e3ebf1; }

/* segmented control without JS: radio inputs + labels; panels follow */
.seg-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg-bar { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--track); }
.seg-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 9px; color: var(--ink); font-size: .8125rem; font-weight: 700; cursor: pointer; user-select: none; }
.seg-btn:hover { color: var(--ink-strong); }
.seg-panel { display: none; }
.seg-wrap > .seg-input:nth-of-type(1):checked ~ .seg-panels > .seg-panel:nth-child(1),
.seg-wrap > .seg-input:nth-of-type(2):checked ~ .seg-panels > .seg-panel:nth-child(2),
.seg-wrap > .seg-input:nth-of-type(3):checked ~ .seg-panels > .seg-panel:nth-child(3) { display: block; }
.seg-wrap > .seg-input:nth-of-type(1):checked ~ .seg-bar > .seg-btn:nth-of-type(1),
.seg-wrap > .seg-input:nth-of-type(2):checked ~ .seg-bar > .seg-btn:nth-of-type(2),
.seg-wrap > .seg-input:nth-of-type(3):checked ~ .seg-bar > .seg-btn:nth-of-type(3) { color: var(--on-color); background: var(--action); }
.seg-wrap > .seg-input:nth-of-type(1):focus-visible ~ .seg-bar > .seg-btn:nth-of-type(1),
.seg-wrap > .seg-input:nth-of-type(2):focus-visible ~ .seg-bar > .seg-btn:nth-of-type(2),
.seg-wrap > .seg-input:nth-of-type(3):focus-visible ~ .seg-bar > .seg-btn:nth-of-type(3) { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.seg-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.seg-panels { margin-top: 12px; }

/* 1. why this size */
.design-basis { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--soft); color: var(--ink); font-size: .875rem; line-height: 1.55; }

/* 2. comfort */
.comfort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.comfort-card { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.comfort-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--action); background: var(--wash-blue); }
.comfort-icon svg { width: 22px; height: 22px; }
.comfort-title { color: var(--ink-strong); font-size: .875rem; font-weight: 800; line-height: 1.3; }
.comfort-text { margin-top: 4px; font-size: .8125rem; line-height: 1.5; }

/* 3. repair or replace */
.rr-grid { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .rr-grid { grid-template-columns: 1fr 1fr; } }
.rr-col { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rr-col.replace { border-color: var(--blue-line); background: var(--wash-blue); }
.rr-col h3 { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rr-amount { margin-top: 6px; color: var(--ink-strong); font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.rr-amount small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.rr-col p { margin-top: 8px; font-size: .875rem; line-height: 1.55; }
.rr-risk { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; color: var(--warn-ink); background: var(--warn-wash); font-size: .8125rem; line-height: 1.45; }
.rr-risk.none { color: var(--success); background: var(--success-wash); }
.rr-risk svg { width: 18px; height: 18px; margin-top: 1px; }
.rr-list { margin: 0; padding: 0; list-style: none; columns: 1; }
.rr-list li { position: relative; padding: 5px 0 5px 22px; font-size: .8125rem; line-height: 1.45; break-inside: avoid; }
.rr-list li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 9px; height: 5px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.rr-empty { color: var(--muted); font-size: .8125rem; }

/* 4. options and cost-benefit */
.cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }
.cmp-head h3 { font-size: 1rem; }
.diff-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.diff-switch { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: .8125rem; font-weight: 700; cursor: pointer; user-select: none; }
.diff-switch .knob { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: var(--track); transition: background .15s; }
.diff-switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.diff-input:checked + .diff-switch .knob { background: var(--action); }
.diff-input:checked + .diff-switch .knob::after { transform: translateX(16px); }
.diff-input:focus-visible + .diff-switch .knob { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.cmp-wrap { margin-top: 12px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8125rem; }
.cmp th { padding: 8px 10px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-align: right; text-transform: uppercase; vertical-align: bottom; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp td { padding: 11px 10px; text-align: right; vertical-align: top; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.cmp tr.rec td { background: var(--wash-blue); }
.cmp tr.rec td:first-child { border-radius: 12px 0 0 12px; }
.cmp tr.rec td:last-child { border-radius: 0 12px 12px 0; }
.cmp .opt-name { color: var(--ink-strong); font-weight: 750; line-height: 1.3; }
.cmp .opt-eq { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }
.cmp .rec-tag { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; color: var(--on-color); background: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cmp .num { color: var(--ink-strong); font-weight: 750; white-space: nowrap; }
.cmp .sub { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; white-space: normal; }
.cmp .rel { display: none; }
.cmp .rel.up { color: var(--warn-ink); }
.cmp .rel.down { color: var(--success); }
.cmp .rel.same { color: var(--muted); }
.diff-input:checked ~ .cmp-wrap .abs { display: none; }
.diff-input:checked ~ .cmp-wrap .rel { display: inline; }
.cmp-note { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
  .cmp tr.rec { border-color: var(--action); background: var(--wash-blue); }
  .cmp tr.rec td { background: transparent; }
  .cmp td { padding: 6px 0; border: 0; text-align: left; }
  .cmp td:first-child { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .cmp td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
}

/* 5. expected savings */
.sav-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.sav-total strong { color: var(--ink-strong); font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.sav-total span { color: var(--muted); font-size: .875rem; }
.hbars { display: grid; gap: 10px; margin-top: 16px; }
.hbar { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0,1fr) auto; gap: 10px; align-items: center; }
.hbar-label { color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.25; }
.hbar-track { position: relative; height: 22px; border-radius: 0 6px 6px 0; }
.hbar-fill { height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--bar-after); }
.hbar.now .hbar-fill { background: var(--bar-now); }
.hbar.dim .hbar-fill { background: var(--bar-now); opacity: .55; }
.hbar-value { color: var(--ink-strong); font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-axis { border-left: 2px solid var(--line); }
.sav-diff { margin-top: 10px; color: var(--ink); font-size: .875rem; }
.sav-diff strong { color: var(--success); }
.sav-note { margin-top: 14px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.estimate-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; color: var(--muted); background: var(--track); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 420px) { .hbar { grid-template-columns: 1fr auto; } .hbar-label { grid-column: 1 / -1; } .hbar-track { grid-column: 1; } }

/* step 11: rebate paperwork, one card per rebate */
.rs-list { display: grid; gap: 10px; margin-top: 12px; }
.rs-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rs-name { min-width: 0; color: var(--ink-strong); font-size: .875rem; font-weight: 800; line-height: 1.3; }
.rs-mode { padding: 2px 8px; border-radius: 999px; color: var(--muted); background: var(--track); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.rs-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.rs-steps li { display: grid; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.2; }
.rs-steps li::before { content: ""; height: 5px; border-radius: 3px; background: var(--track); }
.rs-steps li.done::before { background: var(--success); }
.rs-steps li.current::before { background: var(--action); }
.rs-steps li.current { color: var(--action); }
.rs-text { margin-top: 10px; font-size: .875rem; line-height: 1.5; }
.rs-date { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.rs-instant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: .8125rem; }

/* change order after signing */
.co-card { border: 2px solid var(--accent); }
.co-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.co-row strong { color: var(--ink-strong); }
.co-amount { color: var(--ink-strong); font-size: 1rem; font-weight: 800; white-space: nowrap; }

/* header labels on narrow phones (Inspections / Complete touched at 375 px) */
@media (max-width: 400px) { .pipeline .lbl { font-size: .75rem; } }

/* proposal map (block numbers) */
.brief-sub { margin-top: 6px; color: var(--muted); font-size: .8125rem; }

/* ---------- dark mode (system setting; the prototype also takes ?theme=dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #949ca4; --ink-strong: #a4a9ae; --muted: #7b8c98; --header: #151c23; --accent: #2b96c3; --action: #4392bc; --action-dark: #2b8fc4;
    --line: #2a3540; --line-soft: #222c35; --paper: #12171d; --wash: #0b0e12; --wash-blue: #10242f; --soft: #171e25; --card: #12171d;
    --ok: #3ea068; --success: #3ea068; --success-wash: #10291f; --ok-wash: #10291f; --warn: #b98e3e; --warn-ink: #b98e3e; --warn-wash: #2c2412; --warn-line: #7a5a1c;
    --danger: #dc655d; --danger-wash: #3a1715; --track: #222c35; --bar-now: #6e8796; --bar-after: #4392bc; --field: #171e25; --field-line: #2a3540;
    --shadow: 0 18px 50px rgba(0,0,0,.45); --shadow-soft: 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #949ca4; --ink-strong: #a4a9ae; --muted: #7b8c98; --header: #151c23; --accent: #2b96c3; --action: #4392bc; --action-dark: #2b8fc4;
    --line: #2a3540; --line-soft: #222c35; --paper: #12171d; --wash: #0b0e12; --wash-blue: #10242f; --soft: #171e25; --card: #12171d;
    --ok: #3ea068; --success: #3ea068; --success-wash: #10291f; --ok-wash: #10291f; --warn: #b98e3e; --warn-ink: #b98e3e; --warn-wash: #2c2412; --warn-line: #7a5a1c;
    --danger: #dc655d; --danger-wash: #3a1715; --track: #222c35; --bar-now: #6e8796; --bar-after: #4392bc; --field: #171e25; --field-line: #2a3540;
  --shadow: 0 18px 50px rgba(0,0,0,.45); --shadow-soft: 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- T14: person cards on one grid (item 10), payments corner (item 4), HERS rater, rebate package, program links ---------- */
/* every person card has the same five rows: name, title, note, hours, links; a subgrid lines them up across a row of cards */
.person > .avatar { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.person > :not(.avatar) { grid-column: 2; min-width: 0; }
.person-note:not(:empty) { padding-top: 3px; }
.person-hours { color: var(--muted); font-size: .75rem; font-weight: 650; }
.person-hours:not(:empty) { padding-top: 3px; }
.person-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.person-links:not(:empty) { padding-top: 4px; }
.person-links .person-contact { margin-top: 0; overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .team-grid > .person { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.team-grid--stack, .team-grid--pair { margin-top: 6px; }
.team-grid--stack { grid-template-columns: minmax(0, 1fr); }
.person--compact { padding: 10px 0; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
.person--compact .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: .75rem; }
.team-section .team-grid, .j-people .team-grid, .j-oversight .team-grid { margin-top: 8px; }
.j-oversight { grid-column: 1 / -1; margin-top: 12px; }
.who-comes .person-hours { margin-top: 2px; }

/* payments corner: top right of the header on wide screens, under the header on phones */
.site-header__hero .shell { position: relative; }
.pay-corner { display: grid; gap: 4px; min-width: 230px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-soft); font-size: .8125rem; }
.pay-corner__row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.pay-corner__row strong { color: var(--ink-strong); white-space: nowrap; }
.pay-corner__balance { margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line-soft); font-weight: 750; }
.pay-corner__balance strong { font-size: 1rem; }
.pay-corner.paid { border-color: var(--ok-line); background: var(--ok-wash); }
.pay-corner.paid .pay-corner__balance, .pay-corner.paid .pay-corner__balance strong { color: var(--ok); }
.pay-corner--top { position: absolute; top: 0; right: 24px; z-index: 2; }
.pay-corner-wrap { display: none; }
@media (min-width: 900px) { .site-header.has-pay .site-header__hero h1, .site-header.has-pay .address-city, .site-header.has-pay .prepared, .site-header.has-pay .project-label { max-width: calc(100% - 270px); } }
@media (max-width: 899px) {
  .pay-corner--top { display: none; }
  .pay-corner-wrap { display: block; padding-top: 14px; }
  .pay-corner--below { min-width: 0; }
}

/* HERS rater, rebate package, program page links */
.hers-note { margin-top: 10px; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.rebate-pkg { margin-top: 12px; }
.rebate-pkg .doc-row { align-items: center; }
.program-links { margin: 12px 0 0; font-size: .8125rem; line-height: 2; }
.program-links .prov-logo, .program-links .prov-ph { vertical-align: middle; margin-right: 6px; }
.rebate-link { display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 700; }
.pay-corner .demo-tag { justify-self: start; }
@media (max-width: 640px) { .rebate-pkg .doc-row { grid-template-columns: 1fr; justify-items: start; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brief-card, :root:not([data-theme="light"]) .dashboard-card, :root:not([data-theme="light"]) .fin-card, :root:not([data-theme="light"]) .modal-card, :root:not([data-theme="light"]) .step-list-card, :root:not([data-theme="light"]) .option-card, :root:not([data-theme="light"]) .form-card, :root:not([data-theme="light"]) .sign-card, :root:not([data-theme="light"]) .pay-card, :root:not([data-theme="light"]) .vs-col, :root:not([data-theme="light"]) .details-table, :root:not([data-theme="light"]) .person, :root:not([data-theme="light"]) .proposal-bar { background: var(--card); border-color: var(--line); }
  :root:not([data-theme="light"]) .option-card.recommended { background: linear-gradient(180deg, var(--wash-blue) 0, var(--card) 170px); border-color: var(--action); }
  :root:not([data-theme="light"]) .gate-card, :root:not([data-theme="light"]) .journey-card { background: rgba(20,33,42,.94); border-color: var(--line); }
  :root:not([data-theme="light"]) .gate { background: var(--wash); }
  :root:not([data-theme="light"]) .site-header { border-bottom-color: var(--line); }
  :root:not([data-theme="light"]) .site-header .brand, :root:not([data-theme="light"]) .gate .brand { padding: 6px 10px; border-radius: 10px; background: var(--logo-plate); box-sizing: content-box; }
  :root:not([data-theme="light"]) .prov-logo, :root:not([data-theme="light"]) .fin-logo { padding: 3px 5px; border-radius: 6px; background: var(--logo-plate); }
  :root:not([data-theme="light"]) .prov-ph { background: var(--soft); border-color: var(--line); }
  :root:not([data-theme="light"]) .button.secondary { background: var(--card); border-color: var(--line); color: var(--action); }
  :root:not([data-theme="light"]) .pipeline .dot, :root:not([data-theme="light"]) .pipeline li.current .dot { background: var(--header); }
  :root:not([data-theme="light"]) .pipeline li::before { background: var(--line); }
  :root:not([data-theme="light"]) .pipeline li.done .dot { background: var(--action); }
  :root:not([data-theme="light"]) .pipeline .lbl { color: var(--muted); }
  :root:not([data-theme="light"]) .j-step, :root:not([data-theme="light"]) .rebate-item { border-top-color: var(--line-soft); }
  :root:not([data-theme="light"]) .j-mark { background: var(--card); border-color: var(--dk-mark-line); }
  :root:not([data-theme="light"]) .j-step.upcoming .j-title { color: var(--muted); }
  :root:not([data-theme="light"]) .j-step.done .j-mark { background: var(--success); border-color: var(--success); color: var(--on-bright); }
  :root:not([data-theme="light"]) .j-step.current .j-mark { background: var(--action); border-color: var(--action); color: var(--on-bright); }
  :root:not([data-theme="light"]) .j-body { background: var(--soft); }
  :root:not([data-theme="light"]) .j-step.current .j-body { background: var(--wash-blue); border-color: var(--dk-blue-line); }
  :root:not([data-theme="light"]) .j-people { border-color: var(--line); }
  :root:not([data-theme="light"]) .j-person .avatar, :root:not([data-theme="light"]) .j-avatar--role { background: var(--card); border-color: var(--dk-mark-line); }
  :root:not([data-theme="light"]) .gogreen-note { background: var(--soft); color: var(--ink); }
  :root:not([data-theme="light"]) .visit-photo figcaption { background: var(--soft); color: var(--ink-strong); }
  :root:not([data-theme="light"]) .readonly-note, :root:not([data-theme="light"]) .increment, :root:not([data-theme="light"]) .condensed-note { background: var(--soft); color: var(--ink); }
  :root:not([data-theme="light"]) .message { background: var(--soft); }
  :root:not([data-theme="light"]) .message.client { background: var(--wash-blue); }
  :root:not([data-theme="light"]) .details-form input, :root:not([data-theme="light"]) .details-form textarea, :root:not([data-theme="light"]) .ccp-form input[type="text"], :root:not([data-theme="light"]) .ccp-form input[type="email"], :root:not([data-theme="light"]) .ccp-form input[type="tel"], :root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) input[type="password"], :root:not([data-theme="light"]) .demo-panel select { background: var(--soft); color: var(--ink-strong); border-color: var(--line); }
  :root:not([data-theme="light"]) .doc-link { background: var(--card); border-color: var(--line); }
  :root:not([data-theme="light"]) .mobile-cta { background: rgba(15,25,32,.96); border-color: var(--line); }
  :root:not([data-theme="light"]) .vs-col.replace, :root:not([data-theme="light"]) .rr-col.replace { background: var(--wash-blue); border-color: var(--dk-blue-line); }
  :root:not([data-theme="light"]) .complete-card { background: var(--card); }
  :root:not([data-theme="light"]) .install-state.unset { background: var(--warn-wash); color: var(--warn-ink); }
  :root:not([data-theme="light"]) .form-flash { color: var(--success); }
  :root:not([data-theme="light"]) .demo-panel { background: rgba(20,33,42,.96); color: var(--ink); border-color: var(--line); }
  :root:not([data-theme="light"]) .selection-summary, :root:not([data-theme="light"]) .money-top > div, :root:not([data-theme="light"]) .visit-facts > div, :root:not([data-theme="light"]) .install-facts > div, :root:not([data-theme="light"]) .big-number { background: var(--wash-blue); }
  :root:not([data-theme="light"]) .journey-section { background: transparent; }
  :root:not([data-theme="light"]) .choice, :root:not([data-theme="light"]) .check { background: var(--soft); border-color: var(--line); }
  :root:not([data-theme="light"]) .status-pill.wait { background: var(--track); color: var(--ink); }
  :root:not([data-theme="light"]) .photo-ph { background: var(--soft); }
  :root:not([data-theme="light"]) .site-header__hero::after { border-color: rgba(79,184,239,.07); }
  :root:not([data-theme="light"]) .avatar, :root:not([data-theme="light"]) .person .avatar { background: var(--wash-blue); border-color: var(--line); }
  :root:not([data-theme="light"]) .pipeline .lbl, :root:not([data-theme="light"]) .pipeline-caption { position: relative; z-index: 1; }
  :root:not([data-theme="light"]) .person { border-top-color: var(--line-soft); }
  :root:not([data-theme="light"]) .pay-corner.paid { background: var(--dk-ok-wash); border-color: var(--dk-ok-line); }
  :root:not([data-theme="light"]) .pay-corner.paid .pay-corner__balance, :root:not([data-theme="light"]) .pay-corner.paid .pay-corner__balance strong { color: var(--ok); }
}
:root[data-theme="dark"] .brief-card, :root[data-theme="dark"] .dashboard-card, :root[data-theme="dark"] .fin-card, :root[data-theme="dark"] .modal-card, :root[data-theme="dark"] .step-list-card, :root[data-theme="dark"] .option-card, :root[data-theme="dark"] .form-card, :root[data-theme="dark"] .sign-card, :root[data-theme="dark"] .pay-card, :root[data-theme="dark"] .vs-col, :root[data-theme="dark"] .details-table, :root[data-theme="dark"] .person, :root[data-theme="dark"] .proposal-bar { background: var(--card); border-color: var(--line); }
:root[data-theme="dark"] .option-card.recommended { background: linear-gradient(180deg, var(--wash-blue) 0, var(--card) 170px); border-color: var(--action); }
:root[data-theme="dark"] .gate-card, :root[data-theme="dark"] .journey-card { background: rgba(20,33,42,.94); border-color: var(--line); }
:root[data-theme="dark"] .gate { background: var(--wash); }
:root[data-theme="dark"] .site-header { border-bottom-color: var(--line); }
:root[data-theme="dark"] .site-header .brand, :root[data-theme="dark"] .gate .brand { padding: 6px 10px; border-radius: 10px; background: var(--logo-plate); box-sizing: content-box; }
:root[data-theme="dark"] .prov-logo, :root[data-theme="dark"] .fin-logo { padding: 3px 5px; border-radius: 6px; background: var(--logo-plate); }
:root[data-theme="dark"] .prov-ph { background: var(--soft); border-color: var(--line); }
:root[data-theme="dark"] .button.secondary { background: var(--card); border-color: var(--line); color: var(--action); }
:root[data-theme="dark"] .pipeline .dot, :root[data-theme="dark"] .pipeline li.current .dot { background: var(--header); }
:root[data-theme="dark"] .pipeline li::before { background: var(--line); }
:root[data-theme="dark"] .pipeline li.done .dot { background: var(--action); }
:root[data-theme="dark"] .pipeline .lbl { color: var(--muted); }
:root[data-theme="dark"] .j-step, :root[data-theme="dark"] .rebate-item { border-top-color: var(--line-soft); }
:root[data-theme="dark"] .j-mark { background: var(--card); border-color: var(--dk-mark-line); }
:root[data-theme="dark"] .j-step.upcoming .j-title { color: var(--muted); }
:root[data-theme="dark"] .j-step.done .j-mark { background: var(--success); border-color: var(--success); color: var(--on-bright); }
:root[data-theme="dark"] .j-step.current .j-mark { background: var(--action); border-color: var(--action); color: var(--on-bright); }
:root[data-theme="dark"] .j-body { background: var(--soft); }
:root[data-theme="dark"] .j-step.current .j-body { background: var(--wash-blue); border-color: var(--dk-blue-line); }
:root[data-theme="dark"] .j-people { border-color: var(--line); }
:root[data-theme="dark"] .j-person .avatar, :root[data-theme="dark"] .j-avatar--role { background: var(--card); border-color: var(--dk-mark-line); }
:root[data-theme="dark"] .gogreen-note { background: var(--soft); color: var(--ink); }
:root[data-theme="dark"] .visit-photo figcaption { background: var(--soft); color: var(--ink-strong); }
:root[data-theme="dark"] .readonly-note, :root[data-theme="dark"] .increment, :root[data-theme="dark"] .condensed-note { background: var(--soft); color: var(--ink); }
:root[data-theme="dark"] .message { background: var(--soft); }
:root[data-theme="dark"] .message.client { background: var(--wash-blue); }
:root[data-theme="dark"] .details-form input, :root[data-theme="dark"] .details-form textarea, :root[data-theme="dark"] .ccp-form input[type="text"], :root[data-theme="dark"] .ccp-form input[type="email"], :root[data-theme="dark"] .ccp-form input[type="tel"], :root[data-theme="dark"] textarea, :root[data-theme="dark"] input[type="password"], :root[data-theme="dark"] .demo-panel select { background: var(--soft); color: var(--ink-strong); border-color: var(--line); }
:root[data-theme="dark"] .doc-link { background: var(--card); border-color: var(--line); }
:root[data-theme="dark"] .mobile-cta { background: rgba(15,25,32,.96); border-color: var(--line); }
:root[data-theme="dark"] .vs-col.replace, :root[data-theme="dark"] .rr-col.replace { background: var(--wash-blue); border-color: var(--dk-blue-line); }
:root[data-theme="dark"] .complete-card { background: var(--card); }
:root[data-theme="dark"] .install-state.unset { background: var(--warn-wash); color: var(--warn-ink); }
:root[data-theme="dark"] .form-flash { color: var(--success); }
:root[data-theme="dark"] .demo-panel { background: rgba(20,33,42,.96); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .selection-summary, :root[data-theme="dark"] .money-top > div, :root[data-theme="dark"] .visit-facts > div, :root[data-theme="dark"] .install-facts > div, :root[data-theme="dark"] .big-number { background: var(--wash-blue); }
:root[data-theme="dark"] .journey-section { background: transparent; }
:root[data-theme="dark"] .choice, :root[data-theme="dark"] .check { background: var(--soft); border-color: var(--line); }
:root[data-theme="dark"] .status-pill.wait { background: var(--track); color: var(--ink); }
:root[data-theme="dark"] .photo-ph { background: var(--soft); }
:root[data-theme="dark"] .site-header__hero::after { border-color: rgba(79,184,239,.07); }
:root[data-theme="dark"] .avatar, :root[data-theme="dark"] .person .avatar { background: var(--wash-blue); border-color: var(--line); }
:root[data-theme="dark"] .pipeline .lbl, :root[data-theme="dark"] .pipeline-caption { position: relative; z-index: 1; }
:root[data-theme="dark"] .person { border-top-color: var(--line-soft); }
:root[data-theme="dark"] .pay-corner.paid { background: var(--dk-ok-wash); border-color: var(--dk-ok-line); }
:root[data-theme="dark"] .pay-corner.paid .pay-corner__balance, :root[data-theme="dark"] .pay-corner.paid .pay-corner__balance strong { color: var(--ok); }

/* ---------- T15: fixes from the external review of prototype v6 (review/external_review_T11_verdict.md) ---------- */
/* item 14: contrast AA 4.5:1 for buttons and statuses in both themes. Light: darker action blue and green; buttons on a dark-blue
   gradient with white text. Dark: buttons on the light action blue with dark text (white on #4fb8ef is 2.2:1). */
:root { --btn-grad: var(--action); --btn-ink: #fff; --btn-shadow: 0 6px 16px rgba(16,111,159,.20); --alert: #8a5200; --alert-wash: #fff6e5; --alert-line: #f0c477; }
.button, .selected .select-option, .mobile-cta .button { color: var(--btn-ink); background: var(--btn-grad); box-shadow: var(--btn-shadow); }
.button.secondary { box-shadow: none; }
.seg-wrap > .seg-input:nth-of-type(1):checked ~ .seg-bar > .seg-btn:nth-of-type(1),
.seg-wrap > .seg-input:nth-of-type(2):checked ~ .seg-bar > .seg-btn:nth-of-type(2),
.seg-wrap > .seg-input:nth-of-type(3):checked ~ .seg-bar > .seg-btn:nth-of-type(3) { color: var(--btn-ink); background: var(--action); }
.pipeline .lbl { color: var(--ink); }
.cash-price, .rebate-line strong { color: var(--success); }
.timeline-step.done .timeline-dot, .step-item.done .step-mark, .j-step.done .j-mark { color: var(--on-color); }

/* items 1, 2, 4, 13: options */
.option-card .select-option { min-height: 46px; }
.rail-sep { display: none; }
.sys-cover { margin-top: 8px; padding: 6px 9px; border-radius: 8px; color: var(--ink-strong); background: var(--soft); font-size: .75rem; font-weight: 700; }
.sys-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.sys-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .8125rem; }
.sys-name { color: var(--ink-strong); font-weight: 800; white-space: nowrap; }
.sys-eq { min-width: 0; color: var(--muted); }
.sys-list strong { color: var(--ink-strong); white-space: nowrap; }
.est-total { margin-top: 6px; color: var(--ink); font-size: .75rem; }
.est-total strong { color: var(--ink-strong); }
.reasons { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--wash-blue); }
.reasons-label { color: var(--ink-strong); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.reasons ul { margin: 6px 0 0; padding: 0 0 0 18px; color: var(--ink); font-size: .8125rem; line-height: 1.45; }
.reasons li + li { margin-top: 3px; }
.rebate-net { margin-top: 6px; color: var(--ink); font-size: .8125rem; }
.rebate-label { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.rebate-net strong { color: var(--ink-strong); }
@media (max-width: 640px) {
  /* every option is visible and can be chosen; the others are collapsed under the recommended one */
  .option-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .brief-card .option-rail { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .option-card { flex: none; width: auto; }
  .rail-sep { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .option-card:not(.recommended):not(.selected) { padding: 14px 16px; }
  .option-card:not(.recommended):not(.selected) :is(.who-for, .reasons, .sys-list, .est-total, .cash-price, .rebate-line, .rebate-net, .rebate-fine, .option-link) { display: none; }
  .option-card:not(.recommended):not(.selected) .option-price { margin-top: 10px; font-size: 1.5rem; }
  .option-card:not(.recommended):not(.selected) .select-option { margin-top: 10px; }
  body.condensed .option-card:not(.recommended):not(.selected) { display: flex; }
  .swipe-hint { display: none; }
}

/* item 12: header groups on a phone: two rows of pills, 44 px tap targets, labels never overlap; status line under the strip */
.status-line { margin: 8px auto 0; color: var(--ink); font-size: .75rem; line-height: 1.45; text-align: center; }
.status-line .now { color: var(--ink-strong); font-weight: 800; }
.status-line .sep { color: var(--muted); }
@media (max-width: 640px) {
  .pipeline ol, .pipeline ol.pipe-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pipeline li::before { display: none; }
  .pipeline li { display: block; }
  .pipeline .pipe-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  .pipeline .pipe-link.locked { background: transparent; border-style: dashed; }
  .pipeline li.current .pipe-link { border: 2px solid var(--action); }
  .pipeline li.active .pipe-link { box-shadow: inset 0 -3px 0 var(--action); }
  .pipeline .dot { flex: none; width: 10px; height: 10px; }
  .pipeline .lbl, .pipeline li.current .lbl { font-size: .75rem; line-height: 1.1; overflow-wrap: normal; white-space: nowrap; }
  .pipeline li.active .lbl { text-decoration: none; }
  .pipeline-caption .cap-step { display: none; }
  .pipeline-caption { margin-top: 6px; }
  .pipeline-caption .see-all { min-height: 44px; }
}
@media (max-width: 360px) { .pipeline .lbl, .pipeline li.current .lbl { font-size: .75rem; } .pipeline .dot { display: none; } }

/* item 10: payments and balance */
.pay-corner__title { color: var(--ink-strong); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pay-corner__next { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted); }
.pay-corner__next strong { color: var(--ink-strong); white-space: nowrap; }
.pay-corner__next small { grid-column: 1 / -1; color: var(--ink); font-size: .75rem; line-height: 1.35; }
.pay-corner--top { max-width: 270px; }

/* item 11: an unsigned change order is the first block under the header */
.co-wrap { margin-top: 16px; }
.co-card.co-alert { border: 2px solid var(--alert-line); background: var(--alert-wash); }
.co-alert .now-label { color: var(--alert); }

/* item 6: programs for other equipment, collapsed */
.other-programs { margin-top: 14px; border-top: 1px solid var(--line-soft); }
.other-programs > summary { display: flex; align-items: center; min-height: 44px; color: var(--action); font-size: .875rem; font-weight: 750; cursor: pointer; }
.other-programs[open] > summary { margin-bottom: 4px; }

/* item 9 (prototype): stubs and the gate are marked demo */
.gate-demo { margin-top: 10px; color: var(--ink); font-size: .8125rem; }
.demo-stub { margin-left: 6px; vertical-align: middle; }

/* item 16 (review 26): the public review is a separate, optional block */
.optional-review { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* item 17: footer columns on wide screens (company line | extra help; privacy below) */
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); align-items: start; column-gap: 32px; }
  .footer-inner .privacy { grid-column: 1 / -1; }
}

/* dark theme for the T15 variables */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-grad: var(--action); --btn-ink: #0b141a; --btn-shadow: none; --alert: #b98e3e; --alert-wash: #2c2412; --alert-line: #7a5a1c; }
  :root:not([data-theme="light"]) .j-step.done .j-mark { color: var(--on-bright); }
  :root:not([data-theme="light"]) .reasons { background: var(--soft); }
}
:root[data-theme="dark"] { --btn-grad: var(--action); --btn-ink: #0b141a; --btn-shadow: none; --alert: #b98e3e; --alert-wash: #2c2412; --alert-line: #7a5a1c; }
:root[data-theme="dark"] .j-step.done .j-mark { color: var(--on-bright); }
:root[data-theme="dark"] .reasons { background: var(--soft); }

/* item 14: statuses and chips that kept light-theme greens and blues in dark mode */
.cmp .rec-tag { color: var(--btn-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.signed-chip, .discount, .status-pill.ok, .install-state.done, .details-done, .rr-risk.none) { color: var(--success); }
  :root:not([data-theme="light"]) .assurance { color: var(--ink); }
  :root:not([data-theme="light"]) .select-option { background: var(--soft); border-color: var(--line); }
  :root:not([data-theme="light"]) .selected .select-option { background: var(--btn-grad); color: var(--btn-ink); }
}
:root[data-theme="dark"] :is(.signed-chip, .discount, .status-pill.ok, .install-state.done, .details-done, .rr-risk.none) { color: var(--success); }
:root[data-theme="dark"] .assurance { color: var(--ink); }
:root[data-theme="dark"] .select-option { background: var(--soft); border-color: var(--line); }
:root[data-theme="dark"] .selected .select-option { background: var(--btn-grad); color: var(--btn-ink); }

/* ---------- T18: simpler pages (PLAN 0.5, Alex 12 Oct evening, items 1-12) ---------- */
/* item 4: option cards on one grid. Every card has the same nine slots in the same order (badge, name, equipment, why, systems,
   price, totals, rebate, actions); from 641 px the rail is a grid and each card a subgrid, so the same information sits on one line
   across the cards, the badge row has the same height with or without the badge, and the buttons and links line up at the bottom. */
.oc-slot { min-width: 0; }
.option-card .oc-badge { min-height: 26px; margin: -7px 0 12px; }
.option-card .oc-badge .recommended-badge { margin: 0; }
.option-card .option-name { margin: 0; }
.option-card .oc-actions { align-self: end; padding-top: 4px; }
.option-card .oc-actions .option-link { margin-top: 10px; }
.option-card .oc-why > :first-child, .option-card .oc-sys > :first-child { margin-top: 12px; }
@media (min-width: 641px) {
  .option-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(326px, calc(100vw - 96px)); grid-template-rows: repeat(10, auto); column-gap: 12px; row-gap: 0; overflow-x: auto; }
  .option-card { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
@media (min-width: 900px) {
  .option-rail { grid-auto-flow: row; grid-template-columns: repeat(var(--option-count), minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}
/* Peter, Nov 20: four and more options are tiles in rows (4 across on a computer, 2 on a tablet) instead of narrow columns; each
   row of tiles keeps the same slots on one line (subgrid); phones keep the one-column list. The open live view (el-open) wins. */
@media (min-width: 641px) {
  .option-rail.oc-many:not(.el-open) { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); grid-auto-columns: auto; row-gap: 0; overflow: visible; }
  .option-rail.oc-many:not(.el-open) > .option-card { margin-bottom: 12px; }
  .option-rail.oc-many .option-name { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .option-card:not(.recommended) .oc-badge { display: none; }
  .option-card:not(.recommended):not(.selected) :is(.oc-sys, .oc-est, .oc-cash, .oc-rebate), .option-card:not(.recommended):not(.selected) .oc-why > :not(.oc-tags) { display: none; }   /* the labels stay: they are the difference (Nov 11) */
}

/* item 3: one line of contact and hours inside "When you are ready" */
.sign-contact { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: .8125rem; line-height: 1.55; }
.sign-contact strong { color: var(--ink-strong); }
@media (min-width: 900px) { .action-grid.action-grid--2 { grid-template-columns: 1.15fr 1fr; } }

/* item 5: signing is visible at once on the header strip: a check at Proposal and "Signed <date>" under it */
.pipeline .pipe-signed { display: block; color: var(--success); font-size: .75rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.pipeline li.signed .dot { position: relative; border-color: var(--success); background: var(--success); }
.pipeline li.signed .dot::after { content: ""; position: absolute; left: 50%; top: 45%; width: 3px; height: 6px; border: solid var(--on-color); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
@media (max-width: 640px) {
  .pipeline li.signed .pipe-link { flex-wrap: wrap; row-gap: 1px; }
  .pipeline .pipe-signed { flex-basis: 100%; text-align: center; font-size: .75rem; }
}

/* items 5-6: Prepare page */
.lead.thanks { color: var(--ink-strong); font-weight: 700; }
.prepare-next { margin-top: 12px; color: var(--ink); }
.brief-card .visit-facts { margin-top: 14px; }

/* item 6: Inspections = three cards side by side on wide screens */
@media (min-width: 900px) { .dashboard-grid.dashboard-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hers-note a { color: var(--action); font-weight: 700; white-space: nowrap; }
/* the sign card is dark in both themes: the contact line uses light text */
.sign-card .sign-contact { color: rgba(255,255,255,.88); border-top-color: rgba(255,255,255,.2); }
.sign-card .sign-contact strong { color: var(--on-color); }
.sign-card .sign-contact a, .sign-card .sign-contact .person-contact { color: var(--on-dark-link); }

/* ---------- T17 item 0 (tails of T18) ---------- */
/* the estimates total and the cash price have rows of their own (10 slots), so prices line up even when one card's total wraps */
.option-card .oc-cash .cash-price { margin-top: 6px; }
/* Alex, 12 Oct: the status line under the header strip only on phones; "Back to the current step" stays on every width */
@media (min-width: 641px) { .pipeline .status-line { display: none; } }

/* ---------- T25: Alex's notes on the live portal on a phone (PLAN 0.5, 13 Oct) ---------- */
/* item 3: one "done" style for everything completed: a green circle with a white check (strip, step list, cards, pills) */
:root { --done-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.status-pill.ok, .install-state.done { align-items: center; gap: 6px; }
.status-pill.ok::before, .install-state.done::before, .done-check {
  content: ""; display: inline-block; flex: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--success) var(--done-check) center / 10px no-repeat;
}
.pipeline li.done .dot, .pipeline li.signed .dot { position: relative; border-color: var(--success); background: var(--success) var(--done-check) center / 9px no-repeat; }
.pipeline li.signed .dot::after { display: none; }
.pipeline li.done::before, .pipeline li.current::before { background: var(--success); }
.pipeline li.done .pipe-link:not(.locked) .lbl { color: var(--ink); }

/* item 2: the header strip on a phone: one row of dots joined by a line, no second row; only the current step is named */
@media (max-width: 640px) {
  .pipeline .pipe-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pipeline .pipe-scroll::-webkit-scrollbar { display: none; }
  .pipeline ol, .pipeline ol.pipe-7 { display: flex; gap: 0; min-width: 266px; padding-bottom: 24px; }
  .pipeline li { position: relative; display: block; flex: 1 1 0; min-width: 38px; }
  .pipeline li::before { display: block; content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--pipe-line); }
  .pipeline li:first-child::before { display: none; }
  .pipeline li.done::before, .pipeline li.current::before { background: var(--success); }
  .pipeline .pipe-link, .pipeline .pipe-link.locked, .pipeline li.current .pipe-link {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%;
    height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .pipeline li.active .pipe-link { box-shadow: none; }
  .pipeline .dot, .pipeline li .dot { display: block; flex: none; width: 14px; height: 14px; border: 2px solid var(--mark-line); background: var(--card); box-shadow: none; }
  .pipeline li.done .dot, .pipeline li.signed .dot { width: 20px; height: 20px; border-color: var(--success); background: var(--success) var(--done-check) center / 12px no-repeat; }
  .pipeline li.current .dot { position: relative; width: 28px; height: 28px; border: 3px solid var(--action); background: var(--card); box-shadow: 0 0 0 4px rgba(16,111,159,.16); }
  .pipeline li.current .dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--action); }
  .pipeline li.active:not(.current) .dot { box-shadow: 0 0 0 3px rgba(16,111,159,.28); }
  .pipeline .lbl, .pipeline .pipe-signed { display: none; }
  .pipeline li.current .lbl { display: block; position: absolute; top: 44px; left: 50%; transform: translateX(-50%); color: var(--action); font-size: .8125rem; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; }
  .pipeline li.current:first-child .lbl { left: 0; transform: none; }
  .pipeline li.current:last-child .lbl { left: auto; right: 0; transform: none; }
  /* item 4: no "View full project" on a phone ("Back to the current step" stays when the long view is open) */
  .pipeline-caption--full { display: none; }
  .pipeline .status-line { margin-top: 2px; }
}

/* item 5: the signed option when the proposal was never published on the portal */
.signed-card { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.signed-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.signed-card__head h3 { margin: 0; color: var(--ink-strong); font-size: 1rem; line-height: 1.35; }
.signed-parts { margin: 10px 0 0; padding-left: 18px; color: var(--ink); font-size: .875rem; line-height: 1.55; }
.signed-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.signed-total span { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.signed-total strong { color: var(--ink-strong); font-size: 1.25rem; font-weight: 800; }

/* item 6: "Your project managers" with one sentence, then the pre-install visit as its own large card */
.pm-section { margin-top: 16px; }
.pm-what { margin-top: 6px; color: var(--ink); font-size: .875rem; line-height: 1.55; }
.preinstall-card h2, .install-card h2 { margin-top: 10px; font-size: 1.25rem; line-height: 1.3; }
.preinstall-card .install-state.done ~ h2 { color: var(--ink-strong); }

/* item 7: start and estimated completion side by side; the crew: Lead Installer, then Installers */
.crew-lead { margin-top: 14px; }
.install-dates:has(> div:only-child) { grid-template-columns: 1fr; max-width: 360px; }
.install-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 400px) { .install-dates { grid-template-columns: 1fr; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pipeline li.done .dot, :root:not([data-theme="light"]) .pipeline li.signed .dot { background: var(--success) var(--done-check) center / 9px no-repeat; border-color: var(--success); }
  :root:not([data-theme="light"]) .pipeline li.done::before, :root:not([data-theme="light"]) .pipeline li.current::before { background: var(--success); }
}
:root[data-theme="dark"] .pipeline li.done .dot, :root[data-theme="dark"] .pipeline li.signed .dot { background: var(--success) var(--done-check) center / 9px no-repeat; border-color: var(--success); }
:root[data-theme="dark"] .pipeline li.done::before, :root[data-theme="dark"] .pipeline li.current::before { background: var(--success); }
@media (max-width: 640px) {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pipeline li .dot { background: var(--header); border-color: var(--dk-mark-line); }
    :root:not([data-theme="light"]) .pipeline li.done .dot, :root:not([data-theme="light"]) .pipeline li.signed .dot { background: var(--success) var(--done-check) center / 12px no-repeat; border-color: var(--success); }
    :root:not([data-theme="light"]) .pipeline li.current .dot { background: var(--header); border-color: var(--action); }
    :root:not([data-theme="light"]) .pipeline li::before { background: var(--line); }
    :root:not([data-theme="light"]) .pipeline li.done::before, :root:not([data-theme="light"]) .pipeline li.current::before { background: var(--success); }
    :root:not([data-theme="light"]) .pipeline li.current .lbl { color: var(--now-ink); }
  }
  :root[data-theme="dark"] .pipeline li .dot { background: var(--header); border-color: var(--dk-mark-line); }
  :root[data-theme="dark"] .pipeline li.done .dot, :root[data-theme="dark"] .pipeline li.signed .dot { background: var(--success) var(--done-check) center / 12px no-repeat; border-color: var(--success); }
  :root[data-theme="dark"] .pipeline li.current .dot { background: var(--header); border-color: var(--action); }
  :root[data-theme="dark"] .pipeline li::before { background: var(--line); }
  :root[data-theme="dark"] .pipeline li.done::before, :root[data-theme="dark"] .pipeline li.current::before { background: var(--success); }
  :root[data-theme="dark"] .pipeline li.current .lbl { color: var(--now-ink); }
}
/* 320 px: the visit card's email no longer pushes the page 3 px wider */
.who-comes > div { min-width: 0; }
.who-comes .person-contact { overflow-wrap: anywhere; }
/* footer: "Need extra help?" was dark ink on the dark footer (seen on the live page); the footer's own light text instead */
footer .escalation { color: var(--on-dark-soft); }
footer .escalation strong { color: var(--on-color); }

/* ---------- T27: header strip v2 (Alex, 13 Oct, after 0.18.1 on a phone) ---------- */
/* item 2: the open page and the project's current step are two marks.
   Open page  = a soft plate around the dot and the label, bold label (aria-current="page" on its link).
   Current    = the large ringed dot and a small "Now" under the name (aria-current="step" on its item). */
:root { --pipe-open: #e1eff8; --pipe-open-line: rgba(14,106,155,.30); --pipe-line: #c7d5df; --now-ink: var(--action); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pipe-open: #183a4d; --pipe-open-line: rgba(143,208,245,.35); --pipe-line: #3f5361; --now-ink: #7fadc8; } }
:root[data-theme="dark"] { --pipe-open: #183a4d; --pipe-open-line: rgba(143,208,245,.35); --pipe-line: #3f5361; --now-ink: #7fadc8; }

.pipeline .now-tag { display: block; margin-top: 1px; color: var(--now-ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.pipeline .pipe-wrap { display: none; }

/* desktop (and tablets): same rule, one row of seven */
@media (min-width: 641px) {
  .pipeline .pipe-scroll .pipe-link { align-content: start; padding: 6px 4px 7px; border-radius: 12px; }
  .pipeline .pipe-scroll li::before { top: 12px; }
  .pipeline .pipe-scroll li.active .pipe-link { background: var(--pipe-open); box-shadow: inset 0 0 0 1px var(--pipe-open-line); }
  .pipeline .pipe-scroll li .lbl, .pipeline .pipe-scroll li.current .lbl { color: var(--ink); font-weight: 600; text-decoration: none; }
  .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
  .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); font-weight: 800; text-decoration: none; }
  .pipeline .pipe-scroll li.active:not(.current) .dot { box-shadow: none; }
}

/* item 1: a phone: two rows (Start · Estimate visit · Proposal · Prepare / Install · Inspections · Complete), every dot named,
   one line through both rows; from the last dot of the first row it goes right, down and back left to the first dot of the
   second row and ends with an arrow. Fixed row heights keep the geometry exact (row 88 px, gap 22 px, dot centres at 22 px). */
@media (max-width: 640px) {
  .pipeline .pipe-scroll { position: relative; overflow: visible; margin: 0; padding: 0; }
  .pipeline .pipe-scroll ol, .pipeline .pipe-scroll ol.pipe-7 {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 88px; row-gap: 22px; column-gap: 0;
    min-width: 0; margin: 0; padding: 0 16px 0 0;
  }
  .pipeline .pipe-scroll li { position: relative; display: block; flex: none; min-width: 0; height: 88px; }
  .pipeline .pipe-scroll li::before { display: block; content: ""; position: absolute; z-index: 0; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--pipe-line); }
  .pipeline .pipe-scroll li.g1::before, .pipeline .pipe-scroll li.g5::before { display: none; }
  .pipeline .pipe-scroll li.done::before, .pipeline .pipe-scroll li.current::before { background: var(--success); }
  .pipeline .pipe-scroll .pipe-link, .pipeline .pipe-scroll .pipe-link.locked, .pipeline .pipe-scroll li.current .pipe-link, .pipeline .pipe-scroll li.active .pipe-link, .pipeline .pipe-scroll li.signed .pipe-link {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    width: auto; height: 88px; min-height: 0; margin: 0 1px; padding: 0 1px 4px; gap: 0; flex-wrap: nowrap; border: 0; border-radius: 12px; background: none; box-shadow: none; text-decoration: none;
  }
  .pipeline .pipe-scroll li.active .pipe-link { background: var(--pipe-open); box-shadow: inset 0 0 0 1px var(--pipe-open-line); }
  /* dots: the centre is always 22 px from the top, the label always starts at 44 px */
  .pipeline .pipe-scroll li .dot { display: block; flex: none; box-sizing: border-box; width: 14px; height: 14px; margin: 15px 0; border-width: 2px; box-shadow: none; }
  .pipeline .pipe-scroll li.done .dot, .pipeline .pipe-scroll li.signed .dot { width: 20px; height: 20px; margin: 12px 0; }
  .pipeline .pipe-scroll li.current .dot { width: 28px; height: 28px; margin: 8px 0; border-width: 3px; box-shadow: 0 0 0 4px rgba(16,111,159,.16); }
  .pipeline .pipe-scroll li.active:not(.current) .dot { box-shadow: none; } /* the ring belongs to the current step only */
  .pipeline .pipe-scroll li .lbl, .pipeline .pipe-scroll li.current .lbl {
    display: block; position: static; transform: none; max-width: 100%; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.18;
    text-align: center; white-space: normal; overflow-wrap: break-word; hyphens: manual; letter-spacing: 0; text-decoration: none;
  }
  .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
  .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); font-weight: 800; }
  .pipeline .pipe-scroll li .now-tag { font-size: 12px; margin-top: 2px; }
  .pipeline .pipe-scroll .pipe-signed { display: none; }
  .pipeline .status-line { margin-top: 8px; }

  /* the wrapping line: A = right from Prepare, down, and back under the row; B = on to the left and down into Install, with the arrow */
  .pipeline .pipe-scroll .pipe-wrap { display: block; position: absolute; z-index: 0; inset: 0; pointer-events: none; color: var(--pipe-line); }
  .pipeline .pipe-scroll .pipe-wrap.done { color: var(--success); }
  .pipeline .pipe-scroll .pipe-wrap::before {
    content: ""; position: absolute; box-sizing: border-box; top: 21px; height: 79px;
    left: calc((100% - 16px) * .875 + 10px); right: 4px;
    border: 2px solid currentColor; border-left: 0; border-radius: 0 12px 12px 0;
  }
  .pipeline .pipe-scroll .pipe-wrap i {
    position: absolute; box-sizing: border-box; top: 98px; height: 9px;
    left: calc((100% - 16px) * .125 - 1px); width: calc((100% - 16px) * .75 + 13px);
    border-top: 2px solid currentColor; border-left: 2px solid currentColor; border-top-left-radius: 7px;
  }
  .pipeline .pipe-scroll .pipe-wrap i::after {
    content: ""; position: absolute; left: -7px; top: 6px; width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor;
  }
}
@media (max-width: 640px) {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li::before { background: var(--pipe-line); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li.done::before, :root:not([data-theme="light"]) .pipeline .pipe-scroll li.current::before { background: var(--success); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li .lbl { color: var(--ink); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); }
  }
  :root[data-theme="dark"] .pipeline .pipe-scroll li::before { background: var(--pipe-line); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li.done::before, :root[data-theme="dark"] .pipeline .pipe-scroll li.current::before { background: var(--success); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li .lbl { color: var(--ink); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); }
}
@media (min-width: 641px) {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li .lbl { color: var(--ink); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
    :root:not([data-theme="light"]) .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); }
  }
  :root[data-theme="dark"] .pipeline .pipe-scroll li .lbl { color: var(--ink); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li .pipe-link.locked .lbl { color: var(--muted); }
  :root[data-theme="dark"] .pipeline .pipe-scroll li.active .lbl { color: var(--ink-strong); }
}

/* item 3: the estimate visit after the visit: "Done on <date>" with the same green check as the pre-install visit */
.visit-card--done { display: flex; flex-direction: column; }
.visit-card--done > * { order: 3; }
.visit-card--done > .num-kicker { order: 0; }
.visit-card--done > .install-state.visit-done { order: 1; display: inline-flex; align-self: flex-start; margin-top: 10px; }
.visit-card--done > h2 { order: 2; margin-top: 10px; }
.visit-card--done .who-comes { margin-top: 14px; }


/* ---------- T29: the Proposal page after signing (PLAN 0.5, 13 Oct, after signing, pilot 1) ---------- */
/* the "Signed" card: green check pill, the option, total and date side by side, the link to the signed document */
.signed-card--done { display: flex; flex-direction: column; align-items: flex-start; border-color: color-mix(in srgb, var(--success) 35%, var(--line)); }
.signed-card--done > .install-state.done { margin-top: 0; }
.signed-card--done h3 { margin: 10px 0 0; color: var(--ink-strong); font-size: 1.25rem; line-height: 1.35; }
.signed-card--done .signed-parts { list-style: none; padding-left: 0; }
.signed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 18px; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.signed-facts div { display: flex; flex-direction: column; gap: 2px; }
.signed-facts span { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.signed-facts strong { color: var(--ink-strong); font-size: 1.25rem; font-weight: 800; }
.signed-link { margin-top: 14px; }
/* "Why we recommended it" after signing: the reasons as a checked list */
.why-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.why-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.why-list li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--success); }

/* ---- T31: staff photos from Slack (avatars, visit hero) + Alex 12 Oct: the estimator's photos open larger ---- */
.avatar.has-photo { padding: 0; background: var(--wash-blue); }
.avatar.has-photo picture, .photo-ph.has-photo picture { display: block; width: 100%; height: 100%; }
.avatar.has-photo img, .photo-ph.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; border-radius: 50%; }
.photo-zoom { position: relative; display: block; cursor: zoom-in; color: inherit; text-decoration: none; }
.photo-zoom:focus-visible { outline: 3px solid var(--action); outline-offset: -3px; }
.photo-zoom img { transition: transform .2s ease; }
@media (hover: hover) { .photo-zoom:hover img { transform: scale(1.03); } }
.zoom-badge { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,25,32,.62); color: var(--on-color); pointer-events: none; }
.zoom-badge svg { width: 15px; height: 15px; }
html.lightbox-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: var(--lightbox); color: var(--on-color); overflow: hidden; }
.lightbox::backdrop { background: rgba(8,14,19,.94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__frame { min-height: 0; display: grid; place-items: center; padding: 56px 12px 8px; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 18px; font-size: .875rem; line-height: 1.4; }
.lightbox__count { flex: none; color: var(--on-dark-soft); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--on-color); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255,255,255,.26); outline: none; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 56px; transform: none; } .lightbox__frame { padding-bottom: 64px; } }

/* T37 (Alex, 14 Oct): Your home assessment, design decisions, what's included. Same layout on every project; uses the theme tokens. */
.as-h { margin: 26px 0 12px; color: var(--ink-strong); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.as-intro { margin-top: 16px; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.as-note { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.as-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.as-stat { min-width: 0; padding: 14px 12px; border-radius: 14px; background: var(--wash-blue); text-align: center; }
.as-stat strong { display: block; color: var(--ink-strong); font-size: clamp(1.25rem, 5.6vw, 1.95rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.as-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 720px) { .as-stats { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }

.as-check { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .as-check { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-check li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--soft); }
.as-tick { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--success); }
.as-tick svg { width: 14px; height: 14px; }
.as-check strong { display: block; color: var(--ink-strong); font-size: .875rem; line-height: 1.3; }
.as-check div span { display: block; margin-top: 3px; color: var(--ink); font-size: .8125rem; line-height: 1.45; }

.as-media { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .as-media { grid-template-columns: 1fr 1fr; } .as-media .as-fig.lead { grid-column: 1 / -1; } .as-media.one { grid-template-columns: 1fr; } }
.as-fig { margin: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--paper); }
.as-fig a { display: block; }
.as-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; padding: 10px; box-sizing: border-box; background: var(--paper); }
.as-fig.lead img { aspect-ratio: 16 / 9; }
.as-fig figcaption { padding: 8px 12px; color: var(--muted); font-size: .75rem; font-weight: 700; background: var(--card); border-top: 1px solid var(--line-soft); }
.as-fig.small { max-width: 220px; }
.as-fig.small img { aspect-ratio: 3 / 4; object-fit: cover; padding: 0; }

.as-rooms { display: grid; gap: 7px; }
.as-room { display: grid; grid-template-columns: minmax(96px, min(34%, 200px)) minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: .8125rem; }
.as-room-n { color: var(--ink-strong); font-weight: 700; line-height: 1.2; }
.as-room-n em { display: block; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 700; }
.as-bar { height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.as-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gradient); }
.as-room-v { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.as-existing { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.as-ex-text { flex: 1 1 260px; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--soft); }
.as-ex-text strong { color: var(--ink-strong); }
.as-ex-text p { margin-top: 4px; font-size: .875rem; line-height: 1.5; }
.as-units { margin: 8px 0 0; padding: 0; list-style: none; font-size: .875rem; }
.as-units li { padding: 4px 0; }
.as-units li span { display: inline-block; min-width: 92px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.as-units em { color: var(--muted); font-style: normal; }

.as-cap { margin-top: 18px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--soft); }
.as-cap-row { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) 62px; gap: 10px; align-items: center; padding: 6px 0; font-size: .8125rem; }
.as-cap-l { color: var(--ink-strong); font-weight: 700; line-height: 1.2; }
.as-cap-l em { display: block; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 700; }
.as-cap-t { position: relative; height: 14px; border-radius: 7px; background: var(--track); }
.as-cap-t i { display: block; height: 100%; border-radius: 7px; background: var(--action); }
.as-cap-row.load .as-cap-t i { background: var(--bar-now); }
.as-cap-t::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--load); border-left: 2px dashed var(--ink-strong); opacity: .55; }
.as-cap-v { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.as-dec { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 720px) { .as-dec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-d { padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); }
.as-d-topic { display: block; color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.as-d strong { display: block; margin-top: 6px; color: var(--ink-strong); font-size: 1rem; line-height: 1.3; }
.as-d p { margin-top: 6px; color: var(--ink); font-size: .875rem; line-height: 1.5; }

.as-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 720px) { .as-steps { grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); } }
.as-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 14px; background: var(--wash-blue); }
.as-steps b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--gradient); font-size: .75rem; }
.as-steps span { color: var(--ink-strong); font-size: .875rem; font-weight: 700; line-height: 1.3; }
.as-site { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.as-site li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .875rem; line-height: 1.5; }
.as-site svg { width: 18px; height: 18px; margin-top: 3px; color: var(--success); }

:root[data-theme="dark"] .as-fig, :root[data-theme="dark"] .as-fig img { background: var(--logo-plate); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .as-fig, :root:not([data-theme="light"]) .as-fig img { background: var(--logo-plate); } }

/* T37 review (Alex, 14 Oct): recommendation first, comparison, details behind one tap, short rebate line */
.rec-card { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px; border: 2px solid var(--accent); border-radius: 18px; background: linear-gradient(150deg, var(--card) 45%, var(--wash-blue)); }
@media (min-width: 760px) { .rec-card { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; padding: 24px; } }
.rec-name { margin: 12px 0 0; color: var(--ink-strong); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.rec-eq { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.rec-reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rec-reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: var(--ink-strong); font-size: 1rem; line-height: 1.4; }
.rec-reasons svg { width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.rec-proof { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.rec-proof a { color: var(--action); font-weight: 700; }
.rec-side .option-price { margin-top: 0; }
.rec-side .option-price-label { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.rec-choose { display: flex; justify-content: center; width: 100%; margin-top: 14px; text-align: center; }
.rec-hint { margin: 6px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.rec-compare { display: block; margin-top: 10px; color: var(--action); font-size: .875rem; font-weight: 700; text-align: center; }
.cmp { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width: 720px) { .cmp { grid-template-columns: 1fr 1fr; } }
.cmp-col { padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--wash); }
.cmp-col.extra { background: var(--wash-blue); }
.cmp-col h3 { margin: 0 0 8px; color: var(--ink-strong); font-size: 1rem; }
.cmp-col ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: .875rem; line-height: 1.55; }
.cmp-verdict { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--wash); color: var(--ink-strong); font-size: .875rem; line-height: 1.5; }
.addons { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.addons h3 { margin: 0 0 8px; color: var(--ink-strong); font-size: .9375rem; }
.ax-list { margin: 0; }
.ax-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.ax-row:first-child { border-top: 0; }
.ax-row dt { color: var(--ink-strong); font-size: .875rem; }
.ax-row dt small { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; }
.ax-row dd { margin: 0; color: var(--ink-strong); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-fine { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.ask-line { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; }
.as-d-choice { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; font-weight: 700; }
.as-more { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.as-more > summary { cursor: pointer; padding: 14px 0 4px; color: var(--action); font-size: .875rem; font-weight: 800; list-style: none; }
.as-more > summary::-webkit-details-marker { display: none; }
.as-more > summary::after { content: " +"; }
.as-more[open] > summary::after { content: " –"; }
.as-check-more { margin-top: 10px; }
.rebate-more { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.rebate-more > summary { cursor: pointer; color: var(--action); font-weight: 700; }
.rebate-more p { margin: 6px 0 0; }
:root[data-theme="dark"] .rec-card { background: var(--card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rec-card { background: var(--card); } }
@media (max-width: 640px) { .option-card .oc-actions { align-self: stretch; } }
.option-card details.rebate-more { border-top: 0; margin-top: 4px; }
.option-card details.rebate-more:first-of-type { margin-top: 4px; }
.option-card .rebate-more > summary { min-height: 0; display: inline; font-size: .75rem; }
.option-card .rebate-more > summary::after { content: ""; }
@media (max-width: 640px) { .option-card:not(.recommended):not(.selected) .rebate-more { display: none; } }

/* T38 (Alex, 14 Oct): staff photos larger everywhere (Start team, project team, contacts, crew, visit card). */
.person { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
.person .avatar, .person > .avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 1rem; }
.person--compact { grid-template-columns: 56px minmax(0, 1fr); }
.person--compact .avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: .875rem; }
.j-person { grid-template-columns: 52px 1fr; gap: 12px; }
.j-person .avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: .875rem; }
.who-comes { grid-template-columns: 88px 1fr; }
.photo-ph { width: 88px; height: 88px; }
.visit-hero { grid-template-columns: 140px 1fr; }
.visit-hero .photo-ph { width: 140px; height: 140px; }
@media (max-width: 420px) {
  .person { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .person .avatar, .person > .avatar { width: 64px; height: 64px; flex-basis: 64px; }
  .visit-hero { grid-template-columns: 112px 1fr; }
  .visit-hero .photo-ph { width: 112px; height: 112px; }
}

/* ---------- task 7 (Oct 18): notification preferences (card on first entry, then a footer control) ---------- */
.np-wrap { margin-top: 18px; }
.np-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-soft); }
.np-card h2 { margin: 6px 0 4px; }
.np-lead { margin: 0 0 14px; color: var(--muted); font-size: .875rem; max-width: 62ch; }
.np-switches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* the whole row is the switch: a click anywhere flips it, the knob slides (Cold Cloud switch rule) */
.np-switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.np-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.np-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.np-text strong { color: var(--ink-strong); font-size: .875rem; }
.np-text span { overflow: hidden; color: var(--muted); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.np-knob { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--track); transition: background .22s ease; }
.np-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s ease; }
.np-input:checked ~ .np-knob { background: var(--action); }
.np-input:checked ~ .np-knob::after { transform: translateX(20px); }
.np-switch:has(.np-input:checked) { border-color: var(--action); background: var(--wash-blue); }
.np-input:focus-visible ~ .np-knob { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.np-switch.np-locked { animation: np-nudge .3s; }
@keyframes np-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.np-hint { margin: 8px 0 0; color: var(--warn-ink); font-size: .8125rem; font-weight: 600; }
.np-actions { margin-top: 14px; }
.np-footer { margin: 4px 0; }
.np-footer summary { display: inline; color: inherit; cursor: pointer; list-style: none; }
.np-footer summary::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--success); vertical-align: 1px; }
.np-footer summary::-webkit-details-marker { display: none; }
.np-footer .np-change { color: var(--action); font-weight: 600; text-decoration: underline; }
.np-pop { max-width: 560px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); }
.np-pop .np-switch { background: var(--soft); }
@media (prefers-reduced-motion: reduce) { .np-knob, .np-knob::after, .np-switch { transition: none; } .np-switch.np-locked { animation: none; } }

/* ---------- task 4-5 (Oct 18): Inspections and Complete pages ---------- */
/* HERS: the state sentence; corrections and city follow-ups are a calm, neutral note (never red, Peter) */
.hers-state-text { margin-top: 10px; color: var(--ink-strong); font-size: .875rem; line-height: 1.5; }
.calm-note { margin-top: 10px; padding: 10px 12px; border-radius: 11px; color: var(--ink); background: var(--wash-blue); font-size: .8125rem; line-height: 1.5; }
#t-hers .kv dd { font-weight: 650; }
/* city inspection: one row per permit */
.ci-row + .ci-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.ci-row:first-of-type { margin-top: 10px; }
.ci-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ci-label { color: var(--ink-strong); font-size: .875rem; }
.ci-when { margin-top: 8px; color: var(--ink-strong); font-size: .875rem; }
.ci-text { margin-top: 6px; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.insp-note { margin: 10px 0 8px; padding: 10px 12px; border-radius: 11px; background: var(--wash-blue); color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.insp-note strong { display: block; margin-bottom: 2px; }
.insp-note-text { margin-top: 8px; line-height: 1.55; }
.ci-booking { margin-top: 14px; padding: 12px 13px; border-radius: 12px; background: var(--wash); color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.ci-booking p + p { margin-top: 8px; }
/* rebate package: a list of files, "Download all" as a ZIP; frozen button while Susana collects the documents */
.rebate-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.rebate-all span { color: var(--muted); font-size: .75rem; }
.rebate-files { margin-top: 8px; }
.rebate-files .doc-row:first-of-type { margin-top: 0; }
.rebate-all--wait .button[disabled] { cursor: not-allowed; opacity: .5; filter: grayscale(.6); box-shadow: none; }
.rebate-wait { margin-top: 10px; padding: 11px 13px; border-radius: 11px; color: var(--ink); background: var(--wash); font-size: .8125rem; line-height: 1.5; max-width: 70ch; }
:root[data-theme="dark"] .doc-row, :root[data-theme="dark"] .ci-row + .ci-row { border-top-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-row { border-top-color: var(--line); } }
@media (max-width: 640px) { .rebate-files .doc-row { grid-template-columns: 1fr auto; } }
/* ---------- TASK 2.1 / 2.2 / 3.1 / 3.2 (Part B, Oct 18): pre-install request, permits per permit, install states, access info ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pi-picker { margin-top: 14px; }
.pi-step { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--ink-strong); font-size: .8125rem; font-weight: 800; }
.pi-picker > .pi-step:first-child { margin-top: 0; }
.pi-step-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--wash-blue); color: var(--action); font-size: .75rem; }
.pi-cal { display: grid; gap: 6px; max-width: 460px; }
.pi-dow, .pi-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pi-dow span { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.pi-day, .pi-slot { position: relative; display: block; cursor: pointer; }
.pi-day input, .pi-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pi-day-in { display: grid; place-items: center; min-height: 52px; padding: 5px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink-strong); transition: border-color .15s, background .15s, color .15s; }
.pi-day-in small { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.pi-day-in small.pi-m-rep { visibility: hidden; }
.pi-day-in b { font-size: 1rem; line-height: 1.2; }
.pi-day--off { min-height: 52px; }
.pi-day:hover .pi-day-in, .pi-slot:hover span { border-color: var(--action); }
.pi-day input:checked + .pi-day-in { border-color: var(--action); background: var(--action); color: var(--on-color); }
.pi-day input:checked + .pi-day-in small { color: rgba(255,255,255,.85); visibility: visible; }
.pi-day input:focus-visible + .pi-day-in, .pi-slot input:focus-visible + span { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.pi-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-width: 560px; }
.pi-slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink-strong); font-size: .8125rem; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.pi-slot input:checked + span { border-color: var(--action); background: var(--wash-blue); color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
/* the times appear once a day is picked (JS adds .pi-has-day for browsers without :has; without JS both are always visible) */
body.js .pi-picker:not(:has(.pi-day input:checked)):not(.pi-has-day) .pi-times { display: none; }
.pi-caption { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wash); color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.pi-submit { margin-top: 12px; }
.pi-change { margin-top: 12px; }
.pi-change > summary { color: var(--action); font-size: .8125rem; font-weight: 700; cursor: pointer; }
.pi-change[open] > summary { margin-bottom: 4px; }
.permit-pill { margin-top: 10px; }
.permit-card h2 { margin-top: 4px; }
.permit-ladbs { margin-top: 14px; }
.install-copy { margin-top: 10px; }
.install-arrive { margin-top: 12px; color: var(--ink-strong); font-weight: 650; }
.access-box { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.access-box label.field-label { margin-top: 12px; font-size: .8125rem; }
.access-box textarea { min-height: 78px; }
.access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 9px; }
.access-saved { color: var(--success); font-size: .8125rem; font-weight: 700; }
.access-hint { color: var(--muted); font-size: .75rem; }
@media (max-width: 420px) {
  .pi-day-in { min-height: 48px; }
  .pi-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pi-day-in, :root:not([data-theme="light"]) .pi-slot span { background: var(--soft); border-color: var(--line); }
  :root:not([data-theme="light"]) .pi-day input:checked + .pi-day-in { background: var(--action); border-color: var(--action); color: var(--on-bright); }
  :root:not([data-theme="light"]) .pi-day input:checked + .pi-day-in small { color: rgba(11,20,26,.75); }
  :root:not([data-theme="light"]) .pi-slot input:checked + span { background: var(--wash-blue); border-color: var(--action); color: var(--action); }
  :root:not([data-theme="light"]) .pi-caption { background: var(--soft); }
}
:root[data-theme="dark"] .pi-day-in, :root[data-theme="dark"] .pi-slot span { background: var(--soft); border-color: var(--line); }
:root[data-theme="dark"] .pi-day input:checked + .pi-day-in { background: var(--action); border-color: var(--action); color: var(--on-bright); }
:root[data-theme="dark"] .pi-day input:checked + .pi-day-in small { color: rgba(11,20,26,.75); }
:root[data-theme="dark"] .pi-slot input:checked + span { background: var(--wash-blue); border-color: var(--action); color: var(--action); }
:root[data-theme="dark"] .pi-caption { background: var(--soft); }
@media (prefers-reduced-motion: reduce) { .pi-day-in, .pi-slot span { transition: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.install-card .delay-note, .install-facts div) { border-color: var(--line); } }
:root[data-theme="dark"] :is(.install-card .delay-note, .install-facts div) { border-color: var(--line); }

/* ---------- Peter, Oct 18 19:49: the client's details first; confirm once (as is or edited), then read only ---------- */
.details-top { margin-top: 18px; }
.details-lock-note { margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.details-later { margin-top: 10px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.df-lead { margin-top: 12px; }
.df-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.df-field .field-label { margin-top: 12px; }
.df-field input { width: 100%; margin-top: 6px; }
.df-state input { text-transform: uppercase; }
@media (min-width: 640px) {
  .df-grid { grid-template-columns: repeat(6, 1fr); }
  .df-first, .df-last, .df-phone, .df-email { grid-column: span 3; }
  .df-street { grid-column: span 4; } .df-unit { grid-column: span 2; }
  .df-city { grid-column: span 3; } .df-state { grid-column: span 1; } .df-zip { grid-column: span 2; }
}

/* portal-web v54 (Peter, Oct 22: the phone has everything the desktop has). Nothing here applies to a desktop with a mouse. */
@media (max-width: 640px) {
  /* "View full project" (the whole project on one page) is back on a phone, under the strip (T25 item 4 had hidden it) */
  .pipeline-caption--full { display: block; }
  .pipeline-caption .see-all { display: inline-flex; align-items: center; justify-content: center; }
  /* every step of the strip is at least 44 px wide to tap, also when its label is short ("Start") */
  .pipeline .pipe-scroll .pipe-link::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; min-width: 100%; transform: translateX(-50%); }
}
@media (max-width: 899px), (pointer: coarse) {
  /* 40-44 px touch targets. A link inside a line of text gets a taller tap area that does not move the text (vertical padding of
     an inline box; an inline-block takes the padding back with negative margins); a link standing on its own gets real height. */
  footer a, .escalation a, .ask-line a, .sign-contact a, .client-contacts a, .gate-help a { padding-top: 15px; padding-bottom: 15px; }
  a.person-contact { padding-top: 13px; padding-bottom: 13px; margin-top: -9px; margin-bottom: -13px; }
  .person-links { gap: 0; }
  .person-links a.person-contact { display: inline-flex; align-items: center; min-height: 40px; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
  .rebate-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 0; }
  .link-button, .fix-details > summary.link-button { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- docs/DESIGN.md pass (portal-web v72) ---------- */
/* section 6: one focus ring everywhere (2 px, --action-dark), white on the photo viewer */
:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.photo-zoom:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.lightbox__btn:focus-visible { outline: 2px solid var(--on-color); outline-offset: 2px; }
/* section 1: no text faded with opacity; a disabled button says so with its colors */
.proposal-details[open] > summary .button { opacity: 1; background: var(--action-dark); box-shadow: none; }
.rebate-all--wait .button[disabled] { opacity: 1; filter: none; color: var(--muted); background: var(--soft); border: 1px dashed var(--field-line); box-shadow: none; }
.pi-day input:checked + .pi-day-in small { color: var(--on-color); }
:root[data-theme="dark"] .pi-day input:checked + .pi-day-in small { color: var(--on-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pi-day input:checked + .pi-day-in small { color: var(--on-bright); } }
.sign-card { background: var(--panel-dark); }
.sign-card .sign-contact { color: var(--on-dark-soft); }
/* section 1: #33bcf4 and its gradient are decoration only, never under white text; a chosen option is marked in --action */
.num-kicker b, .as-steps b { background: var(--action); }
.option-card.selected { border-color: var(--action); }
:root[data-theme="dark"] .num-kicker b, :root[data-theme="dark"] .as-steps b { color: var(--on-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .num-kicker b, :root:not([data-theme="light"]) .as-steps b { color: var(--on-bright); } }
/* section 7: better / worse is blue and orange, never green and red; rebate steps differ by shape (thin = to do, medium = done, thick = now) */
.cmp .rel.down { color: var(--action); }
.rs-steps li::before { height: 9px; border-radius: 0; background: linear-gradient(var(--track), var(--track)) center / 100% 3px no-repeat; }
.rs-steps li.done::before { background: linear-gradient(var(--success), var(--success)) center / 100% 5px no-repeat; }
.rs-steps li.current::before { border-radius: 3px; background: var(--action); }
.rs-steps li.done { color: var(--ink); }
.rs-steps li.current { font-weight: 800; }
/* section 8: the "Now" glow runs three times, then the dot stays still */
.pipeline li.current .dot { animation-iteration-count: 3; }
/* section 4: safe areas left and right (an iPhone held sideways) */
.shell { width: min(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1160px); }
@media (min-width: 620px) { .shell { width: min(100% - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1160px); } }
/* section 4: 44 px touch targets on a phone or tablet */
@media (max-width: 760px), (pointer: coarse) {
  .pw-theme { width: 44px; height: 44px; }
  .pw-back { min-height: 44px; min-width: 44px; }
  .button.compact, .doc-link, .yelp-badge, .seg-btn, .select-option, .link-button, .fix-details > summary.link-button { min-height: 44px; }
  .person-links a.person-contact, .rebate-link { min-height: 44px; }
  .diff-switch { min-height: 44px; }
  .option-link a, .rec-proof a, .hers-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .rec-compare { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 0; }
  .as-more > summary, .pi-change > summary, .fix-details > summary, .other-programs > summary { display: flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .rebate-more > summary, .option-card .rebate-more > summary, .np-footer summary { display: inline-flex; align-items: center; min-height: 44px; }
}
/* section 8: one block for reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* section 11: no decorative rings that say nothing */
.site-header__hero::after, .now-card::after { display: none; }
.project-label::before { box-shadow: none; }
.as-more > summary::after { margin-left: 6px; }
/* section 5: toggles look light: a soft off track (#c5d1da on white), a white knob with a soft shadow, on = --action */
:root { --toggle-off: #c5d1da; }
:root[data-theme="dark"] { --toggle-off: #3a4754; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --toggle-off: #3a4754; } }
.np-knob, .diff-switch .knob { background: var(--toggle-off); }
.np-input:checked ~ .np-knob, .diff-input:checked + .diff-switch .knob { background: var(--action); }

/* ---------- Nov 4 (Peter): Start page, "Our projects": the site's projects in a carousel, the Comfort Advisor's stars, the project window ---------- */
#s-projects .lead { margin-bottom: 4px; }
.pj-hint { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.pj-rail { position: relative; margin-top: 14px; }
.pj-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; margin: 0; padding: 2px 2px 10px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pj-item { position: relative; scroll-snap-align: start; min-width: 0; }
.pj-open { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
  color: var(--ink-strong); text-decoration: none; box-shadow: var(--shadow-soft); }
.pj-open:hover .pj-title { text-decoration: underline; text-underline-offset: 3px; }
.pj-open:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pj-media { display: block; aspect-ratio: 4 / 3; background: var(--wash); }
.pj-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj-title { display: block; padding: 10px 12px 12px; font-size: .875rem; font-weight: 700; line-height: 1.35; }
.pj-star { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--muted); cursor: pointer; box-shadow: var(--shadow-soft); }
.pj-star svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pj-star[aria-pressed="true"] { color: var(--warn); border-color: var(--warn-line); }
.pj-star[aria-pressed="true"] svg { fill: currentColor; }
.pj-star:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pj-star[aria-busy="true"] { opacity: .6; }
.pj-nav { position: absolute; top: calc(50% - 40px); z-index: 1; display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink-strong); font-size: 1.75rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft); }
.pj-prev { left: -14px; } .pj-next { right: -14px; }
.pj-nav:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pj-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 700px) { .pj-nav { display: grid; } }
.pj-status { margin: 4px 0 0; min-height: 1em; color: var(--muted); font-size: .8125rem; }
html.pj-open-page { overflow: hidden; }
.pj-box { width: min(1100px, 100vw); height: min(92vh, 100%); max-width: 100vw; max-height: 100vh; margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.pj-box::backdrop { background: rgba(8,14,19,.72); }
.pj-box[open] { display: grid; grid-template-rows: auto 1fr; }
.pj-box__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.pj-box__title { flex: 1; min-width: 0; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-box__site { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--action); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.pj-box__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink-strong); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pj-box__close:focus-visible, .pj-box__site:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pj-box iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 699px) { .pj-box { width: 100vw; height: 100%; border-radius: 0; } .pj-box__site { display: none; } .pj-track { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { .pj-track { scroll-behavior: auto; } }

/* Nov 8 (Comfort Advisor spec B 7): the details modal on the first open; the portal behind it is inert until confirmed */
.details-modal { z-index: 80; overflow-y: auto; }
.dm-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.dm-brand { font-weight: 800; font-size: .75rem; letter-spacing: .14em; color: var(--action); }
.dm-card h2 { margin-top: 6px; }
.dm-card p.dm-lead { color: var(--ink-strong); font-size: .9375rem; line-height: 1.5; }
.dm-card p.dm-why { margin-top: 12px; }
.dm-card .details-actions .button { width: 100%; margin-top: 0; }
.dm-card .fix-details { text-align: center; }
.dm-card .df-field input { height: 44px; padding: 0 12px; border: 1px solid var(--field-line, var(--line)); border-radius: 12px; background: var(--paper); color: var(--ink-strong); }
@media (min-width: 640px) { .dm-card { width: min(100%, 540px); padding: 28px; } .dm-card .df-grid { grid-template-columns: 1fr 1fr; } .dm-card .df-street, .dm-card .df-email { grid-column: 1 / -1; } }
.details-thanks { margin-top: 18px; }

/* Nov 8 (spec B 6): Send to client in the header, Comfort Advisor only */
.ca-send { position: relative; display: inline-flex; align-items: center; margin-right: 8px; }
.ca-send-btn, .ca-send-ch { font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; cursor: pointer; border-radius: 11px; padding: 8px 12px; min-height: 38px; }
.ca-send-btn { border: 1px solid var(--action); background: var(--action); color: var(--btn-ink, var(--on-color)); }
.ca-send-btn:hover { background: var(--action-dark); }
.ca-send-menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; display: grid; gap: 6px; min-width: 190px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, var(--paper)); box-shadow: 0 12px 40px rgba(28,44,54,.2); }
.ca-send-menu[hidden] { display: none; }
.ca-send-note { font-size: .75rem; color: var(--muted); }
.ca-send-ch { border: 1px solid var(--line); background: var(--paper); color: var(--ink-strong); text-align: left; }
.ca-send-ch:hover { border-color: var(--action); }
.ca-send-ch[aria-busy="true"] { opacity: .6; cursor: progress; }
.ca-send-res { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; width: max-content; max-width: min(320px, 80vw); padding: 8px 12px; border-radius: 12px; background: var(--ink-strong); color: var(--paper); font-size: .8125rem; line-height: 1.4; }
.ca-send-res:empty { display: none; }
.ca-send-btn { display: inline-flex; align-items: center; gap: 6px; }
.ca-send-i { flex: none; }
/* phones (session 5's report, Nov 8: logo + Send + Back + theme overflowed at 390 px): icon-only Send, no "Client portal" tag */
@media (max-width: 560px) { .pw-bar:has(.ca-send) .pw-tag { display: none; } .ca-send { margin-right: 6px; } .ca-send-btn { width: 38px; padding: 0; justify-content: center; } .ca-send-t { display: none; } }

/* Nov 10 (DESIGN section 4, phone check): every tap target 44 px. The pipeline's short step names ("Start") gave a 30 px wide link;
   the inline "Program page" link and the Comfort Advisor's "Send to client" button were under 44 px tall. */
@media (max-width: 760px), (pointer: coarse) {
  .pipeline .pipe-link { min-width: 44px; }
  .ca-send-btn { min-height: 44px; min-width: 44px; justify-content: center; }
  .program-links a, .rebate-link { position: relative; }
  .program-links a::before, .rebate-link::before { content: ""; position: absolute; inset: -14px -6px; }
}

/* ===== Peter, Nov 11 (design review): update preferences window, one-line steps on a phone, why-this-size strip,
   two-line bottom bar, "When you are ready" in three steps. Colours only from the page tokens (both themes). ===== */
.np-modal .np-switches { grid-template-columns: 1fr; margin-top: 16px; }
.np-consent { margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.np-consent a { color: var(--action); font-weight: 600; }
.np-modal .button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.np-pop .np-consent { margin-top: 10px; }
.privacy a { margin-left: 6px; color: inherit; }

.pipe-mini { display: none; }
.pipe-mini p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; }
.pipe-mini p strong { color: var(--ink-strong); }
.pipe-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; align-self: center; }
.pipe-bar i { height: 6px; border-radius: 3px; background: var(--mark-line); }
.pipe-bar i.d { background: var(--success); }
.pipe-bar i.n { background: var(--action); }
.pipe-all { min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--action); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  body.js .pipe-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  body.js .pipeline:not(.pipe-open) .pipe-scroll, body.js .pipeline:not(.pipe-open) .status-line { display: none; }
  body.js .pipeline.pipe-open .pipe-scroll { margin-top: 12px; }
}

.rec-fit { display: grid; gap: 7px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rf-h { color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rf-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 4rem; gap: 10px; align-items: center; font-size: .8125rem; }
.rf-n { color: var(--ink-strong); font-weight: 600; line-height: 1.25; }
.rf-n em { display: block; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 500; }
.rf-bar { position: relative; height: 10px; border-radius: 5px; background: var(--track); }
.rf-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--mark-line); }
.rf-fit .rf-bar i { background: var(--action); }
.rf-bar b { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--ink-strong); }
.rf-v { color: var(--ink-strong); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rf-note { color: var(--muted); font-size: .75rem; }
.rec-monthly { margin-top: 6px; color: var(--ink); font-size: .875rem; }
.rec-monthly strong { color: var(--success); }
@media (max-width: 480px) { .rf-row { grid-template-columns: minmax(0, 1fr) 3.6rem; gap: 2px 10px; } .rf-n { grid-column: 1 / -1; } .rf-n em { display: inline; margin-left: 6px; } }

.mobile-cta strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.mobile-cta small { display: block; margin-top: 2px; color: var(--ink); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.ns-steps { display: grid; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.ns-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.ns-dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--muted); font-size: .8125rem; font-weight: 800; }
.ns-ok { display: none; }
.ns-body { display: grid; gap: 6px; min-width: 0; }
.ns-body h3 { font-size: 1rem; }
.ns-body p { color: var(--muted); font-size: .875rem; }
.ns-body [data-step-choice] { color: var(--ink-strong); font-weight: 700; }
/* the step to do now is filled with the action colour; a finished one turns green with a check */
body.js:not(.has-choice) .ns-choose .ns-dot,
body.has-choice .ns-when:not(.is-done) .ns-dot,
body.has-choice .ns-when.is-done + .ns-signstep .ns-dot { border-color: var(--action); background: var(--action); color: var(--on-color); }
body.has-choice .ns-choose .ns-dot, .ns-when.is-done .ns-dot, .ns-pay.is-done .ns-dot { border-color: var(--ok-line); background: var(--success-wash); color: var(--success); }
body.has-choice .ns-choose .ns-num, .ns-when.is-done .ns-num, .ns-pay.is-done .ns-num { display: none; }
body.has-choice .ns-choose .ns-ok, .ns-when.is-done .ns-ok, .ns-pay.is-done .ns-ok { display: block; }
.ns-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ns-pill { position: relative; display: inline-flex; }
.ns-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ns-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--card); color: var(--action); font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ns-pill input:checked + span { border-color: var(--action); background: var(--action); color: var(--on-color); }
.ns-pill input:focus-visible + span { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.ns-send { margin-top: 10px; }
body.ns-auto .ns-send { display: none; }
.ns-saved { display: block; margin-top: 6px; color: var(--success); font-size: .8125rem; font-weight: 600; }
.ns-saved:empty { display: none; }
.ns-sign { justify-self: start; min-width: 220px; margin-top: 4px; }
.ns-contact { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.ns-contact strong { color: var(--ink-strong); }
@media (max-width: 640px) { .ns-sign { justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .ns-pill span { transition: none; } }

/* ---------- Peter, Nov 11 (review, mockups 2 and 3): labels on the option card, Cards / Compare, My view / Client view ---------- */
/* the Cold Cloud two-way switch (hello-web ideas.html .sw2): a click anywhere flips it, the highlight slides */
.sw2 { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; min-height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sw2 span { position: relative; z-index: 1; display: grid; place-items: center; padding: 6px 14px; color: var(--muted); font-size: .8125rem; font-weight: 700; white-space: nowrap; transition: color .2s; }
.sw2::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .22s ease; }
.sw2[aria-checked="true"]::before { transform: translateX(100%); }
.sw2[aria-checked="false"] span:first-child, .sw2[aria-checked="true"] span:last-child { color: var(--action); }
.sw2:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
@media (hover: hover) { .sw2:hover { border-color: var(--action); } }
@media (prefers-reduced-motion: reduce) { .sw2::before, .sw2 span { transition: none; } }
.ov-bar { display: flex; justify-content: flex-end; margin-top: 14px; }
body:not(.js) .ov-bar { display: none; }

.oc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.oc-tags li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); color: var(--ink-strong); font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.rec-main .oc-tags { margin-top: 10px; }
.rec-main .oc-tags li { background: var(--card); border-color: var(--blue-line); }
.oc-monthly { margin-top: 6px; color: var(--ink); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.oc-monthly strong { color: var(--success); }
.oc-above { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; margin-top: 10px; font-size: .875rem; font-weight: 600; }
.oc-picked { color: var(--success); font-weight: 800; }
.select-option[hidden], .oc-picked[hidden], .cx-wrap[hidden], .option-rail[hidden] { display: none !important; }
/* small grey text under the prices: 13px, read at arm's length on a tablet */
.option-price-label, .rec-side .option-price-label, .cash-price, .equipment { font-size: .8125rem; }

.cx-wrap { margin-top: 14px; }
.cx-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cx-scroll:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.cx { width: 100%; min-width: calc(132px + var(--cx-n, 4) * 164px); border-collapse: separate; border-spacing: 0; font-size: .875rem; table-layout: fixed; }
.cx th, .cx td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.cx tr:last-child > * { border-bottom: 0; }
.cx tbody th, .cx .cx-corner { position: sticky; left: 0; z-index: 1; width: 132px; background: var(--card); color: var(--muted); font-size: .8125rem; font-weight: 700; box-shadow: 1px 0 0 var(--line-soft); }
.cx tbody th small { display: block; margin-top: 2px; font-weight: 500; line-height: 1.35; }
.cx thead th { color: var(--ink-strong); font-weight: 800; line-height: 1.25; }
.cx thead th small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.cx-name { display: block; font-size: 1rem; }
.cx-flag { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--action); color: var(--btn-ink, var(--on-color)); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cx .cx-rec { background: var(--wash-blue); }
.cx thead .cx-rec { box-shadow: inset 0 3px 0 var(--action); }
.cx .cx-sel { box-shadow: inset 2px 0 0 var(--action), inset -2px 0 0 var(--action); }
.cx thead .cx-sel { box-shadow: inset 2px 0 0 var(--action), inset -2px 0 0 var(--action), inset 0 3px 0 var(--action); }
.cx .cx-num { color: var(--ink-strong); font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-none { color: var(--muted); font-weight: 500; }
.cx .oc-tags { margin: 0; }
.cx .oc-tags li { white-space: normal; }
.cx-same td { color: var(--ink); line-height: 1.55; }
.cx-pick td { padding-top: 10px; padding-bottom: 14px; }
.cx .cx-select { width: 100%; margin-top: 0; min-height: 44px; }
.cx-note { margin-top: 10px; color: var(--muted); font-size: .8125rem; }

/* My view / Client view (staff only): one tap hides the Comfort Advisor tools while the client holds the tablet */
.pv-switch { margin-right: 8px; min-height: 38px; }
.pv-switch span { padding: 4px 12px; }
body.pv-client :is(.ca-send, .ca-details, .pw-back, .pw-theme, .cd, .cd-handle, .cd-light, .cd-ask, .staff-banner, .el-tools, .el-x) { display: none !important; }
@media (max-width: 899px), (pointer: coarse) { .pv-switch { min-height: 44px; } }
@media (max-width: 560px) { .pw-bar:has(.pv-switch) .pw-tag { display: none; } .pv-switch span { padding: 4px 9px; } }
@media (max-width: 640px) {
  .cx { min-width: calc(96px + var(--cx-n, 4) * 148px); font-size: .8125rem; }
  .cx th, .cx td { padding: 10px; }
  .cx tbody th, .cx .cx-corner { width: 96px; }
}
/* Peter, Nov 11: after signing, an option that was proposed and not signed (read-only card) */
:root:root .signed-chip.signed-chip--no { color: var(--muted); background: var(--soft); }

/* Peter, Nov 11 (review): Prepare opens with "Now": what we do, who, which date; the project managers next to it on a wide screen */
.prep-grid { display: grid; gap: 18px; margin-top: 16px; }
.prep-now { padding: 16px 18px; border: 1px solid var(--blue-line); border-radius: 14px; background: var(--wash-blue); }
.prep-now-k { color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.prep-now h3 { margin: 4px 0 0; font-size: 1.125rem; line-height: 1.3; }
.prep-now p { margin-top: 6px; color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.prep-grid .pm-section { margin-top: 0; }
@media (min-width: 900px) { .prep-grid:not(.solo) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 28px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prep-now { border-color: var(--dk-blue-line); } }
:root[data-theme="dark"] .prep-now { border-color: var(--dk-blue-line); }

/* Peter, Nov 11: staff skip the first-open window and show it to the client later from the header */
.dm-skip { display: block; width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-strong); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.dm-skip:hover { border-color: var(--action); }
.dm-skip:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.dm-staff { margin-top: 8px; color: var(--muted); font-size: .8125rem; text-align: center; }
.ca-details { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; margin-right: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink-strong); font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; cursor: pointer; }
.ca-details:hover { border-color: var(--action); }
.ca-details:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
@media (max-width: 899px), (pointer: coarse) { .ca-details { min-height: 44px; } }
@media (max-width: 1100px) { .ca-details { width: 38px; padding: 0; justify-content: center; } .ca-details-t { display: none; } }
@media (max-width: 899px), (pointer: coarse) { .ca-details { width: 44px; } }
html.pw-line-on .ca-details-t { display: none; }
html.pw-line-on .ca-details { width: 38px; padding: 0; justify-content: center; }

.pv-note { margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.ccp-form .button[disabled][title^="Preview"] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Nov 12 (plan docs/specs/portal-proposal-review-nov11.md, section 1): How to pay tiles, the early approval strip, "Your price".
   Colors are the page tokens (both themes); a chosen tile has a check mark and a word-free ring plus aria-checked, never color alone. */
.yours { margin-top: 6px; font-variant-numeric: tabular-nums; }
.yours-line { color: var(--ink); font-size: .8125rem; line-height: 1.4; }
.yours-line strong { color: var(--success); font-size: .9375rem; }
.yours-line small { display: block; color: var(--muted); font-size: .75rem; }
.cx-yours { margin-top: 0; white-space: normal; min-width: 150px; }
.cx-yours [data-y-note] { display: block; color: var(--ink); font-size: .8125rem; font-weight: 500; }
.cx-yours [data-y-price] { font-size: 1.0625rem; font-weight: 800; }
.cx-yours .oc-monthly { margin-top: 3px; }
.rec-yours .yours-line strong { font-size: 1rem; }
.pm-tiles { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: start; margin: 4px 0 12px; }
@media (min-width: 640px) { .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .pm-tiles { grid-template-columns: repeat(var(--pm-n, 4), minmax(0, 1fr)); } }
.pm-tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 14px 14px 14px 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.pm-tile:hover { border-color: var(--blue-line); }
.pm-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pm-check { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border: 2px solid var(--mark-line); border-radius: 50%; background: var(--paper); }
.pm-tile.is-on, .pm-tile:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.pm-tile.is-on .pm-check, .pm-tile input:checked + .pm-check { border-color: var(--action); background: var(--action); }
.pm-tile.is-on .pm-check::after, .pm-tile input:checked + .pm-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-color); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pm-tile input:focus-visible + .pm-check { outline: 2px solid var(--action-dark); outline-offset: 3px; }
.pm-name { color: var(--ink-strong); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.pm-off { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.pm-figs { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: 6px; }
.pm-price { color: var(--ink-strong); font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-mo { color: var(--ink-strong); font-size: 1rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pm-mo small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.pm-tile.is-locked { cursor: default; padding-left: 14px; background: var(--soft); }
.pm-tile.is-locked > .button { margin-top: 10px; }
.pm-lock { color: var(--warn-ink); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pm-tile.is-locked .gg-slide-note { font-size: .8125rem; }
.pm-saved { margin-left: 8px; color: var(--muted); font-size: .8125rem; }
body.pm-auto .pm-send { display: none; }
body.pm-auto .ccp-form:has(.pm-send) .pm-saved { margin-left: 0; }
.ea-strip { display: grid; gap: 4px; margin: 4px 0 12px; padding: 13px 15px; border: 1px solid var(--ok-line); border-left: 5px solid var(--success); border-radius: var(--radius); background: var(--success-wash); }
.ea-tag { color: var(--success); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ea-main { margin: 0; color: var(--ink-strong); font-size: .9375rem; line-height: 1.45; }
.ea-main [data-y-price] { font-weight: 700; color: var(--success); font-variant-numeric: tabular-nums; }
.ea-fine { margin: 0; color: var(--ink); font-size: .8125rem; line-height: 1.45; }
.ea-ended { border-color: var(--line); border-left-color: var(--mark-line); background: var(--soft); }
.ea-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--ok-line); font-size: .8125rem; }
.ea-ended .ea-staff { border-top-color: var(--line); }
.ea-staff-l { padding: 2px 7px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: .6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ea-staff label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ea-date { min-height: 36px; padding: 6px 9px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink-strong); font: inherit; }
.ea-msg { color: var(--muted); }
body.pv-client .ea-staff, body.pv-client .ea-ended { display: none; }
.pm-terms { margin: 4px 0 6px; }
.pm-terms > summary { min-height: 44px; display: inline-flex; align-items: center; color: var(--action); font-size: .875rem; font-weight: 700; cursor: pointer; }
.pm-terms > summary:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; border-radius: 6px; }
@media (pointer: coarse), (max-width: 760px) { .ea-date, .ea-staff .button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .pm-tile { transition: none; } }
:root[data-theme="dark"] .ea-strip { border-color: var(--dk-ok-line); background: var(--dk-ok-wash); border-left-color: var(--success); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ea-strip { border-color: var(--dk-ok-line); background: var(--dk-ok-wash); border-left-color: var(--success); } }
.pm-lock.pm-ok { color: var(--success); text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
/* portal plan Nov 11, stage 2: the sign button while the estimate gets its discount lines (portal.js dsButtons) */
[data-sign-button][aria-disabled="true"] { opacity: .65; cursor: progress; }
/* Stage 6 (Peter, Nov 12): articles on the Estimate visit page; each opens in place */
.art-lead { margin-bottom: 6px; }
.art-draft { margin: 8px 0 10px; color: var(--warn); font-size: .8125rem; }
.art-draft .demo-tag { margin: 0 6px 0 0; }
.art-list { border-top: 1px solid var(--line); }
.art { border-bottom: 1px solid var(--line); }
.art > summary { position: relative; display: block; min-height: 44px; padding: 12px 32px 12px 0; list-style: none; cursor: pointer; }
.art > summary::-webkit-details-marker { display: none; }
.art > summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--action); font-size: 1.25rem; font-weight: 500; line-height: 1; }
.art[open] > summary::after { content: "−"; }
.art-t { display: block; color: var(--action); font-size: 1rem; font-weight: 750; line-height: 1.35; }
.art-s { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.art-body { padding: 0 0 14px; color: var(--ink); font-size: .9375rem; line-height: 1.55; }
.art-body p { margin: 0 0 10px; }
.art-body ul { margin: 0 0 10px; padding-left: 20px; }
.art-body li { margin: 4px 0; }
/* Peter, Nov 12: the seller's own discount under an option's price (Subtotal / Discount / Total) and, without one, the hint that how
   you pay may lower it */
.price-lines { display: grid; gap: 2px; margin: 8px 0 0; max-width: 260px; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.price-lines > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.price-lines dt, .price-lines dd { margin: 0; }
.price-lines .pl-off dd { color: var(--success); font-weight: 700; }
.price-lines .pl-total { padding-top: 3px; border-top: 1px solid var(--line); color: var(--ink-strong); font-weight: 700; }
.yours-hint { margin: 6px 0 0; color: var(--ink); font-size: .8125rem; line-height: 1.45; }
.yours-hint a { color: var(--action); font-weight: 600; }
.rec-side .price-lines { margin-left: auto; margin-right: auto; }
/* Stage 6 (Alex, Nov 12): Marina's four guides inside the articles */
.art-body .gd-h { margin: 18px 0 6px; color: var(--ink-strong); font-size: 1rem; font-weight: 750; }
.gd-ul { margin: 0 0 10px; padding: 0; list-style: none; }
.gd-ul li { margin: 0; padding: 7px 0 7px 16px; position: relative; border-top: 1px solid var(--line); }
.gd-ul li:first-child { border-top: 0; }
.gd-ul li::before { content: "–"; position: absolute; left: 0; color: var(--action); }
.gd-ul strong { color: var(--ink-strong); font-weight: 750; }
.gd-table-wrap { margin: 12px 0; overflow-x: auto; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.4; }
.gd-table th, .gd-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gd-table thead th { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gd-table tbody th { color: var(--ink-strong); font-weight: 700; }
.gd-table--checks thead th:not(:first-child), .gd-mark { width: 64px; text-align: center; }
.gd-table--checks tbody th { font-weight: 500; color: var(--ink); }
.gd-table--checks td:nth-child(2), .gd-table--checks thead th:nth-child(2) { background: var(--wash-blue); }
.gd-mark { color: var(--action); font-weight: 800; }
.gd-box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--mark-line); border-radius: 3px; vertical-align: middle; }
.gd-note { margin: 0 0 12px; color: var(--muted); font-size: .8125rem; }
.gd-prompts { margin: 8px 0 12px; padding: 0; list-style: none; }
.gd-prompt { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.gd-prompt-head { display: flex; align-items: center; gap: 10px; }
.gd-prompt-head strong { flex: 1; color: var(--ink-strong); font-size: .9375rem; }
.gd-num { color: var(--action); font-size: 1.25rem; line-height: 1; }
.gd-copy { min-height: 36px; min-width: 64px; padding: 0 12px; border: 1px solid var(--blue-line); border-radius: 10px; color: var(--action); background: var(--paper); font: inherit; font-size: .8125rem; font-weight: 750; cursor: pointer; }
.gd-prompt-text { margin: 8px 0 0 !important; padding: 10px; border-radius: 10px; background: var(--wash); color: var(--ink); font: .8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.gd-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.gd-imgs figure { margin: 0; max-width: 520px; }
.gd-imgs img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--logo-plate); }
.gd-imgs figcaption { margin-top: 5px; color: var(--muted); font-size: .8125rem; }
.gd-quote { margin: 14px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); }
.gd-quote p { margin: 0 0 4px !important; color: var(--ink-strong); font-style: italic; }
.gd-quote footer { margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; padding: 12px; border-radius: var(--radius); background: var(--wash-blue); }
.gd-stats strong { display: block; color: var(--ink-strong); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gd-stats div:first-child strong { font-size: 1.5rem; }
.gd-stats span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.gd-callout { margin: 12px 0 !important; padding: 12px 14px; border-radius: var(--radius); color: var(--on-dark-soft); background: var(--panel-dark); font-size: .875rem; }
.gd-callout strong { display: block; color: var(--on-color); font-size: 1rem; }
.gd-askhow { display: grid; gap: 0; margin: 16px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gd-ask, .gd-how { padding: 12px 14px; }
.gd-how { color: var(--on-dark-soft); background: var(--panel-dark); }
.gd-label { margin-bottom: 6px; color: var(--action); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gd-how .gd-label { color: var(--on-dark-link); }
.gd-ask ol { margin: 0; padding-left: 20px; }
.gd-ask li, .gd-how li { margin: 5px 0; }
.gd-how ul { margin: 0; padding: 0; list-style: none; }
.gd-how li { position: relative; padding-left: 20px; }
.gd-how li::before { content: "✓"; position: absolute; left: 0; color: var(--on-dark-link); font-weight: 800; }
.gd-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.gd-cta strong { display: block; color: var(--ink-strong); }
.gd-cta span { display: block; color: var(--muted); font-size: .8125rem; }
@media (min-width: 761px) { .gd-askhow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .gd-copy { min-height: 44px; } .gd-cta .button { width: 100%; min-height: 44px; } .gd-stats strong { font-size: 1.0625rem; } .gd-stats div:first-child strong { font-size: 1.25rem; } }

/* Nov 12 (pilot): an option whose discount lines could not be written: a calm line for the client; a staff-only note with Try again */
.pm-held { margin: 0 0 12px; color: var(--ink); font-size: .875rem; line-height: 1.45; }
.ea-held .ea-main { font-weight: 600; }
.ds-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--warn-line); border-radius: var(--radius); background: var(--warn-wash); font-size: .875rem; }
.ds-staff p { flex: 1 1 320px; margin: 0; color: var(--ink-strong); line-height: 1.45; }
.ds-staff .ds-at { color: var(--muted); }
.ds-msg { color: var(--muted); font-size: .8125rem; }
body.pv-client .ds-staff { display: none; }
@media (pointer: coarse), (max-width: 760px) { .ds-staff .button { min-height: 44px; } }

/* simple proposal (Peter, Nov 12 evening): every option signs itself; no link yet = one calm line, never a dead button */
.option-card .oc-actions .sign-option { display: flex; justify-content: center; width: 100%; text-align: center; }
.oc-sign-later { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.rec-side .oc-sign-later { margin-top: 14px; }
.cx .cx-sign { display: flex; justify-content: center; width: 100%; min-height: 44px; margin-top: 0; text-align: center; }
.cx-sign-later { color: var(--muted); font-size: .8125rem; }
.fin-after { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ns-after .ns-pills { margin-top: 12px; }

/* Alex, Nov 14 (idea d7f38e80): the option card: what you pay, the rebate back to you (green, with words), the cost after it */
.rb-pay { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--ok-line); border-radius: 10px; background: var(--ok-wash); font-size: .8125rem; }
.rb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0; }
.rb-row dt { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); }
.rb-row dd { margin: 0; color: var(--ink-strong); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-back dt, .rb-back dd { color: var(--ok); font-weight: 700; }
.rb-net { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--ok-line); }
.rb-net dt { color: var(--ink-strong); font-weight: 700; }
.rb-pay .prov-mark, .rb-pay img { max-height: 16px; width: auto; }
.rb-fine { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.rb-staff { margin: 8px 0 0; padding: 8px 10px; border: 1px dashed var(--warn-line); border-radius: 10px; color: var(--ink); font-size: .75rem; line-height: 1.4; }
.rb-staff ul { margin: 4px 0 0; padding-left: 16px; }
body.pv-client .rb-staff { display: none; }
:root[data-theme="dark"] :is(.rb-pay, .rb-net) { border-color: var(--dk-ok-line); background: var(--dk-ok-wash); }
:root[data-theme="dark"] .rb-net { background: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.rb-pay, .rb-net) { border-color: var(--dk-ok-line); background: var(--dk-ok-wash); }
  :root:not([data-theme="light"]) .rb-net { background: transparent; }
}
.price-lines dd { white-space: nowrap; }

/* Nov 18 (Peter): the Membership stage. In the strip it stands apart from the seven steps: after a gap, no line to it, a star for
   a dot, a bolder name; it is not a step (no "Step 8"). On a phone it takes the free fourth place of the second row, and the
   folded phone header has it beside the bar. Colors are the tokens of DESIGN section 1; the star and the word carry the meaning. */
.pipeline a.pipe-member .pipe-star { display: block; flex: none; width: 26px; height: 14px; color: var(--action); font-size: 1.375rem; line-height: 14px; text-align: center; }
.pipeline a.pipe-member .lbl, .pipeline .pipe-scroll a.pipe-member .lbl { display: block; color: var(--ink-strong); font-weight: 800; white-space: nowrap; text-decoration: none; }
.pipeline a.pipe-member:hover .lbl { text-decoration: underline; text-underline-offset: 4px; }
.pipeline a.pipe-member:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
@media (min-width: 641px) {
  .pipeline.has-member .pipe-scroll { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: start; }
  .pipeline .pipe-scroll a.pipe-member { align-self: stretch; width: auto; min-width: 92px; padding: 6px 10px 7px; }
  .pipeline .pipe-scroll a.pipe-member[aria-current="page"] { background: var(--pipe-open); box-shadow: inset 0 0 0 1px var(--pipe-open-line); }
}
@media (min-width: 900px) { .pipeline.has-member { max-width: 880px; } }
@media (max-width: 640px) {
  .pipeline.has-member .pipe-scroll a.pipe-member {
    position: absolute; z-index: 1; top: 110px; left: calc((100% - 16px) * .75); width: calc((100% - 16px) * .25 - 2px); height: 88px; margin: 0 1px; padding: 0 1px 4px;
  }
  .pipeline.has-member .pipe-scroll a.pipe-member[aria-current="page"] { background: var(--pipe-open); box-shadow: inset 0 0 0 1px var(--pipe-open-line); }
  .pipeline .pipe-scroll a.pipe-member .pipe-star { height: 26px; margin: 9px 0; line-height: 26px; }
  .pipeline .pipe-scroll a.pipe-member .lbl { font-size: 12px; line-height: 1.18; }
  body.js .pipe-mini.has-member { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.pipe-mini-m { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px 0 10px; color: var(--ink-strong); font-size: .8125rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pipe-mini-m span { color: var(--action); font-size: 1rem; }
.pipe-mini-m[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* the Membership page: the package as price lines, what is included, the terms, one button */
.mem-addr { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.mem-card .install-state { margin-top: 12px; }
.mem-pack { max-width: 620px; margin-top: 18px; padding: 2px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mem-unit { padding: 12px 0 8px; color: var(--ink-strong); font-size: .8125rem; font-weight: 800; }
.mem-unit span { color: var(--muted); font-weight: 400; }
.mem-row + .mem-unit { border-top: 1px solid var(--line-soft); }
.mem-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: .9375rem; line-height: 1.35; }
.mem-pack > .mem-row:first-child, .mem-unit + .mem-row { border-top: 0; }
.mem-unit + .mem-row { padding-top: 0; }
.mem-row small { display: block; color: var(--muted); font-size: .8125rem; }
.mem-row strong { color: var(--ink-strong); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mem-row.mem-total { border-top: 1px solid var(--line); color: var(--ink-strong); font-weight: 700; }
.mem-row.mem-total strong { font-size: 1.25rem; font-weight: 800; }
.mem-charge { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.mem-h { margin-top: 24px; }
.mem-inc { margin: 8px 0 0; padding-left: 20px; }
.mem-inc li + li { margin-top: 4px; }
.mem-terms { max-width: 620px; margin-top: 20px; border-top: 1px solid var(--line-soft); }
.mem-terms summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--action); font-size: .875rem; font-weight: 700; cursor: pointer; list-style: none; }
.mem-terms summary::-webkit-details-marker { display: none; }
.mem-terms summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.mem-terms[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.mem-terms summary:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.mem-terms { position: relative; }
.mem-terms summary { width: max-content; max-width: 100%; }
.mem-terms .mem-tbody { padding-bottom: 4px; color: var(--ink); font-size: .875rem; line-height: 1.55; }
/* Nov 24 (Peter): twice as much space above a heading as between the heading and its text */
.mem-terms .mem-tbody p, .mem-terms .mem-tl { margin: 0 0 .6em; }
.mem-terms .mem-tl { padding-left: 1.3em; list-style: disc; }
.mem-terms .mem-tl li { margin: 0 0 .15em; }
.mem-terms .mem-tt { color: var(--ink-strong); font-weight: 700; }
.mem-terms .mem-th { margin: 1.2em 0 .6em; color: var(--ink-strong); font-size: 1em; font-weight: 700; letter-spacing: 0; }
/* Nov 24 (Peter): Larger text for people who see poorly: twice the size, the darkest text colour; next to the heading */
/* Nov 24 (Peter): brighter, with more room around it (blue tint, centred on the Membership terms row, space above the text) */
.mem-big { position: absolute; top: 4px; right: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px;
  border: 1.5px solid var(--action); border-radius: 999px; background: var(--wash-blue); color: var(--action-dark); font: inherit; font-size: .875rem; font-weight: 700;
  cursor: pointer; transition: background-color .2s, color .2s; }
.mem-big::before { content: ""; position: absolute; inset: -4px -2px; }   /* 44 px to tap */
.mem-big b { font-size: 1rem; font-weight: 800; }
.mem-big:hover { background: color-mix(in srgb, var(--action) 16%, var(--paper)); }
.mem-big[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: #fff; }
.js .mem-terms[open] .mem-tbody { padding-top: 16px; }
.mem-big:focus-visible { outline: 2px solid var(--action-dark); outline-offset: 2px; }
.mem-terms.big .mem-tbody { color: var(--ink-strong); font-size: 1.75rem; line-height: 1.5; }
.mem-filter { max-width: 620px; margin-top: 8px; }
.mem-filter p + p { margin-top: 8px; }
.mem-go { margin-top: 22px; }
.mem-agree { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; margin-bottom: 14px; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.mem-agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--action); cursor: pointer; }
.mem-go .button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.mem-go .button { min-width: 260px; }
.mem-go p { margin-top: 10px; }
@media (max-width: 640px) { .mem-go .button { width: 100%; } }
.mem-staff { margin: 12px 0 14px; padding: 9px 12px; border: 1px dashed var(--warn-line); border-radius: 10px; background: var(--warn-wash); color: var(--warn-ink); font-size: .8125rem; line-height: 1.4; }

/* Peter, Nov 23: the Prepare page's Payment card: the deposit, then GoGreen (Renderer::prepPayCard) */
.pp-dep { display: grid; gap: 6px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.pp-dep p { margin: 0; }
.pp-dep .button { justify-self: start; margin-top: 4px; }
.pp-k { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pp-amt { color: var(--ink-strong); font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.pp-paid { display: flex; align-items: center; gap: 12px; }
/* Nov 23 (Peter): the member's own buttons on the Membership page (Update card, Stop automatic renewal) */
.mem-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 640px) { .mem-acts .button { width: 100%; } }

/* Nov 27 (Peter): the account's Memberships page (portal.thecoldcloud.com/memberships): the portal's membership cards under a heading */
.acct-mem { padding: 28px 0 8px; }
.acct-mem-head h1 { font-size: 1.85rem; margin: 0 0 6px; }
.acct-mem-head p { color: var(--muted); max-width: 60ch; }
.acct-mem .brief + .brief { margin-top: 18px; }
.acct-mem-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.acct-mem-links form { margin: 0; }
.acct-mem-links .gate-help { flex-basis: 100%; margin-top: 6px; }
