:root {
  --blue: #0a2a4a; --blue-d: #061b31; --green: #47b649; --ink: #14202e; --muted: #5d6673;
  --line: #dcdad0; --bg: #f7f6f1; --card: #fff; --warn: #c0392b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.logo { height: 64px; }
.top-title { flex: 1; font-weight: 700; font-size: 20px; color: var(--blue); }
.steps { display: flex; gap: 6px; padding: 10px 20px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: var(--top-h, calc(65px + env(safe-area-inset-top))); z-index: 4; }
.steps button { flex: 1; min-width: 120px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; font-size: 15px; color: var(--muted); }
.steps button.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
main { max-width: 900px; margin: 0 auto; padding: 16px 16px 120px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
h2 { margin: 0 0 12px; font-size: 19px; color: var(--blue); }
h3 { margin: 20px 0 8px; font-size: 16px; }
label { display: block; margin: 10px 0; font-size: 14px; color: var(--muted); font-weight: 600; }
label small { font-weight: 400; }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; -webkit-appearance: none; }
input:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: span 2; }
label.check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 400; font-size: 16px; margin: 12px 0; }
label.check input { width: 26px; height: 26px; margin: 0; flex: none; padding: 0; -webkit-appearance: auto; accent-color: var(--blue); }
.check-line { display: flex; align-items: center; gap: 10px; }
.check-line label.check { flex: 1; }
.check-line input:not([type]) { width: 140px; margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0; }
.row .lbl { font-size: 14px; color: var(--muted); font-weight: 600; min-width: 110px; }
.row label.check { margin: 0; }
.row input.short { width: 140px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.chips button { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; }
.chips button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.sub { border-left: 3px solid var(--line); padding-left: 14px; margin: 10px 0; }
.note { color: var(--muted); font-size: 14px; margin: 6px 0; }
.btn { padding: 13px 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 600; }
.btn:active { background: var(--blue-d); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn.big { width: 100%; padding: 18px; font-size: 19px; }
.btn[disabled] { opacity: .45; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 5; }
.nav .btn { min-width: 140px; }

.struct { display: grid; grid-template-columns: 1.2fr auto 2fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.struct input { margin: 0; }
.struct .yn { display: flex; gap: 6px; }
.struct .yn button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.struct .yn button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.struct .x { border: 0; background: none; font-size: 24px; color: var(--muted); padding: 6px; }

.pad-slot { margin: 12px 0; }
.pad-box { display: flex; align-items: center; justify-content: center; height: 110px; border: 2px dashed var(--line);
  border-radius: 12px; background: #fafbfd; color: var(--muted); font-size: 16px; }
.pad-box img { max-height: 96px; max-width: 90%; }
.pad-box.done { border-style: solid; border-color: var(--green); background: #fff; }
.pad-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

.init-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.init-row > span { flex: 1; font-size: 15px; }
.init-row .tap { width: 120px; height: 52px; flex: none; border: 2px dashed var(--blue); border-radius: 10px; background: #fff;
  color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; }
.init-row .tap.on { border: 2px solid var(--green); padding: 2px; }
.init-row .tap img { max-height: 44px; max-width: 110px; }
.terms { font-size: 14px; margin: 6px 0 10px; }
.terms summary { color: var(--blue); font-weight: 600; padding: 8px 0; }
.terms #termsText { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.terms p { margin: 6px 0; }

.missing { color: var(--warn); font-size: 15px; margin-bottom: 10px; }
.missing:empty { display: none; }

.modal { position: fixed; inset: 0; background: rgba(15, 20, 30, .55); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 16px; padding: 16px; width: min(860px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
#padCanvas { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: 12px; touch-action: none; background:
  linear-gradient(transparent calc(100% - 70px), var(--line) calc(100% - 70px), var(--line) calc(100% - 68px), transparent calc(100% - 68px)); }
.busy { position: fixed; inset: 0; background: rgba(255, 255, 255, .75); z-index: 30; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: var(--blue); }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .struct { grid-template-columns: 1fr auto; } .struct .notes { grid-column: span 2; }
  .top-title { font-size: 16px; }
}

.pdfview { position: fixed; inset: 0; z-index: 25; background: #e6e9f0; display: flex; flex-direction: column; }
.pdfbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.pdfbar .btns { margin: 0; }
.pdfbar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfpages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; -webkit-overflow-scrolling: touch; }
.pdfpages canvas { background: #fff; box-shadow: 0 1px 6px rgba(20, 30, 60, .18); max-width: 100%; height: auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px); }

.demo-band { background: #fff6dc; color: #6b5200; font-size: 14px; padding: 8px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid #f0e2b0; }

.addr { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 8; margin-top: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 30, 60, .14); overflow: hidden; }
.addr-list button { display: block; width: 100%; text-align: left; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); }
.addr-list button:last-child { border-bottom: 0; }
.addr-list button:active, .addr-list button:hover { background: #f3f1ea; }
.addr-list small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.addr-list .addr-msg { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.addr-list .google { padding: 6px 14px; text-align: right; font-size: 11px; color: var(--muted); font-weight: 400; }

/* v3: phases, validation, shingle pickers */
select { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; font: inherit; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; background: #fff; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.steps button.phase { border-style: dashed; }
.steps button:disabled { opacity: .45; }
.steps button.active:disabled { opacity: 1; }
.phase-band { padding: 12px max(16px, env(safe-area-inset-left)); font-weight: 600; font-size: 16px; }
.phase-band.customer { background: #e8f7ea; color: #1d6b2a; }
.phase-band.final, .phase-band.done { background: #e8f0fc; color: var(--blue-d); }
.invalid, input.invalid, select.invalid, textarea.invalid { border-color: var(--warn) !important; background-color: #fff5f4; }
.chips.invalid, .row.invalid, .yn.invalid { outline: 2px solid var(--warn); outline-offset: 4px; border-radius: 12px; }
.chips.locked button { pointer-events: none; }
.chips.locked button:not(.on) { opacity: .4; }
.struct { grid-template-columns: 1.2fr auto auto; }
.struct .snotes { grid-column: 1 / -1; }
.struct .yn .note { margin-right: 6px; }
.inline-num input { max-width: 260px; }
.summary { display: grid; gap: 8px; margin-bottom: 14px; }
.summary div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary span { color: var(--muted); font-size: 14px; }
.summary b { min-width: 0; overflow-wrap: anywhere; }
.cooling { font-weight: 700; border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 16px; }
@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
  .struct { grid-template-columns: 1fr auto; }
  .struct .yn { grid-column: 1 / -1; }
}

#btnPreview { margin-bottom: 14px; }

/* T&C always visible */
.terms { font-size: 16px; line-height: 1.5; margin: 6px 0 12px; }
.terms #termsText { max-height: 480px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fafbfd; -webkit-overflow-scrolling: touch; }
.terms p { margin: 10px 0; }
h3 { font-size: 18px; }

.check-line input[list] { width: 180px; margin: 0; }

.trim-item { margin-bottom: 6px; }

/* remote signing */
.handoff-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.big.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.linkbox { display: flex; gap: 8px; }
.linkbox input { margin: 0; min-width: 0; font-size: 14px; }
.card.center { text-align: center; padding: 40px 20px; }
.card.center .btns { justify-content: center; }
.modal-box.wide { width: min(980px, 100%); max-height: 86vh; overflow-y: auto; }
.sent-list { display: grid; gap: 10px; }
.sent-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.sent-item .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sent-item .meta { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.sent { background: #fff3d6; color: #7a5600; }
.pill.opened { background: #e3edfb; color: var(--blue-d); }
.pill.signed { background: #e3f5e6; color: #1d6b2a; }
.pill.expired, .pill.cancelled { background: #eee; color: #666; }
.sent-tabs { display: flex; gap: 4px; background: #efede6; padding: 4px; border-radius: 12px; margin: 0 0 12px; }
.sent-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.sent-tabs button.on { background: #fff; color: var(--blue-d); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pill.accepted { background: #e3f5e6; color: #1d6b2a; }
.pill.declined { background: #fdecea; color: #a93226; }
.callback-why { color: #1d6b2a !important; }
.declined-why { color: #7a2a20 !important; }
.pill.draft { background: #eee; color: #666; }
.sent-item .opts { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sent-item .opts span { background: #f4f6fa; border-radius: 8px; padding: 3px 8px; }
.sent-item .opts span.win { background: #e3f5e6; color: #1d6b2a; font-weight: 700; }
.sent-item .btns { margin-top: 4px; }
.sent-item .btns .btn { padding: 9px 14px; font-size: 15px; }
body.remote-mode #steps, body.remote-mode #btnNew, body.remote-mode #btnSent, body.remote-mode .nav { display: none !important; }
@media (max-width: 760px) { .handoff-btns { grid-template-columns: 1fr; } }
.phase-band.remote, .phase-band.sent { background: #fff6dc; color: #6b5200; }

.field-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 12px 0 4px; }
.check-line input.wide { width: 320px; max-width: 50%; margin: 0; }
.upg { display: grid; grid-template-columns: 1fr 240px auto; gap: 10px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eef0f5; }
.upg select { margin: 0; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.upg .ud, .upg .upg-why { grid-column: 1 / -1; }
.upg .upg-why { margin: 0; }
.upg-why-sum { display: block; margin-top: 6px; font-weight: 400; color: var(--muted); font-size: 13px; }
.upg-why-sum b { color: var(--ink); }
.upg input { margin: 0; }
.upg .x { border: 0; background: none; font-size: 24px; color: var(--muted); padding: 6px; }
#smsText { font-size: 15px; }
@media (max-width: 760px) { .upg { grid-template-columns: 1fr 110px auto; } .check-line input.wide { max-width: 55%; } }

/* v4 layout pass: compact, aligned rows */
input, select, textarea { font-size: 17px; }
label > input, label > select, label > textarea { font-weight: 400; }
.items { display: grid; margin: 4px 0 8px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 52px; padding: 4px 0; border-bottom: 1px solid #eef0f5; }
.items > .item:last-child, .items > .trim-item:last-child .item:first-child { border-bottom: 0; }
.item label.check { margin: 0; flex: 0 0 auto; }
.item input:not([type]), .item input[inputmode] { margin: 0; padding: 10px 12px; }
.item .xs { width: 120px; } .item .sm { width: 180px; } .item .md { width: 280px; max-width: 100%; }
.item .chips { margin: 0; }
.item .chips button { padding: 9px 16px; }
.item-lbl { font-size: 14px; font-weight: 600; color: var(--muted); }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 2px; }
.opt-row .lbl { width: 110px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt-row .chips { margin: 0; }
.grid-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-chips button { width: 100%; }
.sub { border-left: 3px solid var(--line); padding-left: 14px; margin: 4px 0 8px; }
.trim-item .sub > .chips { margin: 6px 0; }
.trim-item .sub .item { border-bottom: 0; min-height: 0; }
.struct .yn .note { white-space: nowrap; }
.card h2 { margin-bottom: 8px; }
#warrantyPreview { margin-top: 8px; }
@media (max-width: 600px) { .grid-chips { grid-template-columns: 1fr; } .item .md { width: 100%; } }

/* v5: step titles + phone layout */
.step-head { margin: 4px 4px 14px; }
.step-head h1 { font-size: 24px; margin: 0; color: var(--ink); }
.step-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.btn .short { display: none; }
@media (max-width: 600px) {
  html, body { font-size: 16px; }
  .top { gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .logo { height: 40px; }
  .top:has(#topTitle, #docTitle) { flex-wrap: wrap; row-gap: 4px; }
  #topTitle, #docTitle { display: block; order: 20; flex: 0 0 100%; font-size: 14px; line-height: 1.25; padding: 2px 2px 0; color: var(--blue-d); }
  .top .btn { padding: 9px 12px; font-size: 15px; }
  .top #btnSent { margin-left: auto; }
  .btn .long { display: none; } .btn .short { display: inline; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; gap: 6px; top: var(--top-h, calc(57px + env(safe-area-inset-top))); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps button { flex: 0 0 auto; min-width: 0; padding: 8px 12px; font-size: 14px; white-space: nowrap; border-radius: 999px; }
  main { padding: 10px 10px 110px; }
  .card { padding: 14px; border-radius: 12px; margin-bottom: 12px; }
  .step-head h1 { font-size: 21px; }
  h2 { font-size: 18px; }
  input, select, textarea { font-size: 16px; padding: 11px 12px; }
  .item { gap: 8px 10px; }
  .item .sm, .item .md { width: 100%; }
  .item .xs { width: 110px; }
  .item .chips button, .chips button { padding: 9px 13px; font-size: 15px; }
  .opt-row .lbl { width: 100%; }
  .struct { grid-template-columns: 1fr auto; }
  .struct .yn { grid-column: 1 / -1; }
  .nav { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .nav .btn { min-width: 100px; padding: 12px 16px; }
  .btn.big { padding: 15px; font-size: 17px; }
  .summary div { grid-template-columns: 1fr; }
  .init-row .tap { width: 96px; height: 48px; }
  .upg { grid-template-columns: 1fr 100px auto; }
}
.item label.check { flex: 0 1 auto; min-width: 0; }
@media (max-width: 600px) {
  .item .xs { width: calc(50% - 6px); }
  .item label.check + .xs { margin-left: 34px; width: calc(50% - 40px); }
}

.colorpick { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.colorpick select { width: 200px; margin: 0; padding-top: 10px; padding-bottom: 10px; }
.colorpick input { width: 200px; margin: 0; padding: 10px 12px; }
@media (max-width: 600px) { .colorpick, .colorpick select, .colorpick input { width: 100%; } }
.item.rooms { gap: 8px 18px; border-bottom: 0; }

/* financing panel */
.fin-panel { margin: 14px 0; border: 1px solid #e4e1d6; border-radius: 12px; overflow: hidden; background: #fff; }
.fin-head { background: var(--blue); color: #fff; font-weight: 700; padding: 12px 16px; font-size: 16px; }
.fin-body { padding: 12px 16px 14px; }
.fin-lead { font-weight: 700; font-size: 17px; margin: 2px 0 6px; color: var(--blue-d); }
.fin-hl { margin: 0 0 10px; padding-left: 20px; font-size: 15px; }
.fin-hl li { margin: 3px 0; }
.fin-plans { display: grid; gap: 8px; }
.fin-plan { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fin-no { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.fin-txt { min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.fin-txt b { color: var(--blue-d); font-size: 15px; }
.fin-txt span { color: var(--muted); }
.fin-rate { background: #e6f6e8; color: #1d6b2a; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.fin-apply { display: inline-block; margin: 12px 0 6px; text-decoration: none; background: var(--green); }
.fin-disc { font-size: 12px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
@media (max-width: 600px) { .fin-plan { grid-template-columns: 1fr; } .fin-no, .fin-rate { justify-self: start; } }

.fin-fold > summary { list-style: none; cursor: pointer; background: var(--blue); color: #fff; font-weight: 700; padding: 12px 16px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.fin-fold > summary::-webkit-details-marker { display: none; }
.fin-fold > summary::after { content: '\25BE'; margin-left: auto; transition: transform .2s; }
.fin-fold[open] > summary::after { transform: rotate(180deg); }
.fin-fold > summary small { font-weight: 500; opacity: .8; font-size: 13px; }
.fin-fold[open] > summary small { display: none; }

/* shingle color samples */
.swatch-grid .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sw { position: relative; border: 2px solid transparent; border-radius: 10px; padding: 3px; cursor: pointer; text-align: center; background: #f6f8fb; }
.sw img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; display: block; }
.sw span { display: block; font-size: 12px; line-height: 1.2; margin-top: 3px; }
.sw.on { border-color: #0a2a4a; background: #e8f1fd; }
.sw.on span { font-weight: 700; color: #0a2a4a; }
.sw-zoom { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 15px; line-height: 30px; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.swatch-zoom { position: fixed; inset: 0; z-index: 40; background: rgba(10,14,22,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; color: #fff; text-align: center; }
.swatch-zoom[hidden] { display: none; }
.swatch-zoom figure { margin: 0; }
.swatch-zoom img { width: min(86vw, 70vh, 640px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; touch-action: pinch-zoom; }
.swatch-zoom figcaption { font-size: 20px; font-weight: 700; margin-top: 8px; }
.swatch-zoom p { font-size: 13px; opacity: .8; margin: 0; max-width: 420px; }
.sum-sw { border: 1px solid #cfd7e3; background: #fff; border-radius: 8px; padding: 2px 6px 2px 2px; vertical-align: middle; margin-left: 6px; font-size: 13px; }
.sum-sw img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; vertical-align: middle; }
.swatch-grid { grid-column: 1 / -1; }
.swatch-grid[hidden] { display: none; }

/* existing roof + customer questions */
.field-title small { font-weight: 400; color: var(--muted); }
.cust-q { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.cust-q h3 { margin: 10px 0 4px; }
.age-row { flex-wrap: wrap; gap: 8px; }
.age-row .or { margin-left: 10px; }
.soffit-offer { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.soffit-offer .note { margin: 4px 0 10px; }
.cust-q .invalid, .soffit-offer.invalid { outline: 2px solid var(--warn); outline-offset: 4px; border-radius: 12px; }

/* contract type picker */
body.picking #steps, body.picking #phaseBand, body.picking main, body.picking .nav, body.picking #btnNew, body.picking #btnTypes { display: none !important; }
.picker { max-width: 900px; margin: 0 auto; padding: 24px 20px 40px; }
.picker-head h1 { margin: 6px 0 4px; font-size: 26px; }
.picker-head p { margin: 0 0 18px; color: var(--muted); }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ptype { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 150px;
  padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.ptype:hover { border-color: var(--blue); }
.ptype:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ptype .pname { font-size: 20px; font-weight: 700; color: var(--blue); }
.ptype .pdoc { font-size: 13px; font-weight: 600; color: var(--muted); }
.ptype .pdesc { font-size: 15px; color: var(--ink); }
.ptype .pdraft { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--green); }
.ptype.soon { cursor: default; background: #f6f7fa; }
.ptype.soon:hover { border-color: var(--line); }
.ptype.soon .pname { color: var(--muted); }
.ptype.soon .pdesc { color: var(--muted); }
.ptype .badge { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #e9ecf2; color: var(--muted); }
@media (max-width: 600px) { .picker-grid { grid-template-columns: 1fr; } .ptype { min-height: 0; } }

/* insurance */
.info { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; border: 1.5px solid var(--blue);
  border-radius: 50%; background: #fff; color: var(--blue); font: italic 700 13px/1 Georgia, serif; vertical-align: middle; cursor: pointer; }
.info.static { cursor: default; }
.ins-calc { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f6f5ef; }
.ins-calc div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ins-calc div b { font-variant-numeric: tabular-nums; }
.ins-calc .ic-row { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid #e6e3d9; }
.ins-calc .ic-row:last-of-type { border-bottom: 0; }
.ins-calc .ic-row span { font-weight: 600; }
.ins-calc .ic-row small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.35; }
.ins-where { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f1e1b5; font-size: 14px; line-height: 1.45; }
.ins-calc .bad { color: var(--warn); font-weight: 600; }
.info-box { max-width: 520px; }
.info-box p { font-size: 16px; line-height: 1.5; margin: 6px 0 14px; }
.summary .sum-info { margin-left: 6px; }

.dmg-details { margin-top: 8px; }
.dmg-details > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--blue); }

/* group questions (pick one / check all): dark title with a short brand-green rule underneath */
:root { --brand-green: #47b649; }
.field-title { color: var(--ink); font-size: 15px; font-weight: 700; margin: 20px 0 10px; padding-bottom: 7px; position: relative; }
.field-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--brand-green); }
.card > .field-title:first-of-type, .card > h2 + .field-title { margin-top: 6px; }
.upg .up::placeholder { font-size: 14px; }

/* repair & service work items */
.rep-item { display: grid; grid-template-columns: 1fr 200px auto; gap: 10px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eef0f5; }
.rep-item select { margin: 0; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.rep-item .rt, .rep-item .rl { grid-column: 1 / -1; margin: 0; }
.rep-item .x { border: 0; background: none; font-size: 24px; color: var(--muted); padding: 6px; }
.rep-item input::placeholder { font-size: 14px; }
.repair-total { margin: 10px 0 0; font-size: 16px; }
.repair-total b { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .rep-item { grid-template-columns: 1fr 120px auto; } }

/* commercial */
.pay-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.pay-row input { margin: 0; }
.pay-row .x { border: 0; background: none; font-size: 24px; color: var(--muted); padding: 6px; }
#payRowsCheck.bad { color: var(--warn); font-weight: 600; }
.guaranty-box { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--blue); border-radius: 12px; background: #f7f9fe; }
.guaranty-box h3 { margin-top: 0; }
@media (max-width: 600px) { .pay-row { grid-template-columns: 1fr 120px auto; } }

/* work items as numbered boxes + summary */
.rep-item { grid-template-columns: 1fr 200px auto; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.rep-item .rep-head { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.rep-item .rp-wrap { position: relative; }
.rep-item .rp-wrap::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.rep-item .rp-wrap input { padding-left: 26px; width: 100%; }
.items-sum { margin-top: 12px; border-top: 2px solid var(--line); }
.items-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef0f5; font-size: 15px; }
.items-sum div b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.items-sum .tot { border-bottom: 0; font-size: 17px; font-weight: 700; }
.com-specs { margin-top: 4px; padding: 4px 14px 10px; border-left: 3px solid var(--brand-green, #47b649); background: #fafcf9; border-radius: 0 10px 10px 0; }
.com-specs:empty { display: none; }
.com-specs .field-title { margin-top: 12px; font-size: 14px; }
.com-specs .field-title::after { display: none; }

.main-price { margin-top: 14px; padding: 14px; border: 2px solid var(--blue); border-radius: 12px; background: #f4f8ff; }
.main-price label { margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 700; }
.main-price .rp-wrap { position: relative; max-width: 280px; }
.main-price .rp-wrap::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.main-price input { margin: 0; padding-left: 26px; font-size: 18px; font-weight: 600; }
.main-price .note { margin: 8px 0 0; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- customer delight: greeting, weather, what happens next, house confetti ---------- */
.hello { background: linear-gradient(135deg, #f3f1ea 0%, #f3fbf1 100%); border: 1px solid #e4e1d6; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.hello-hi { margin: 0; font-size: 24px; font-weight: 700; color: var(--blue); position: relative; padding-bottom: 8px; }
.hello-hi::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--brand-green, #47b649); }
.hello-thanks { margin: 10px 0 0; font-size: 17px; }
.hello-wx { margin: 14px 0 2px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4e1d6; border-radius: 14px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(6, 27, 49, .08); }
.hello-wx[hidden] { display: none; }
.wx-icon { font-size: 40px; line-height: 1; flex: none; }
.wx-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.wx-temp { font-size: 26px; color: var(--blue); line-height: 1.1; }
.wx-text { font-size: 17px; font-weight: 600; }
.wx-where { color: var(--muted); font-size: 14px; }
.wx-note { color: #35993f; font-size: 15px; font-weight: 600; margin-top: 2px; }
.next-steps { text-align: left; margin: 18px 0 6px; }
.next-steps h3 { margin: 0 0 10px; font-size: 17px; position: relative; padding-bottom: 6px; }
.next-steps h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--brand-green, #47b649); }
.next-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: nx; }
.next-steps li { counter-increment: nx; position: relative; padding: 0 0 14px 42px; }
.next-steps li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.next-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: #d6e4f5; }
.next-steps li b { display: block; }
.next-steps li span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.celebrate { position: fixed; inset: 0; z-index: 900; background: rgba(15, 30, 55, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.celebrate-box { background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 22px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.celebrate-box h2 { margin: 8px 0 4px; font-size: 26px; color: var(--blue); }
.celebrate-sub { margin: 0; color: var(--muted); }
.celebrate-mark { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: var(--brand-green, #47b649); color: #fff; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.celebrate-box .btn { width: 100%; margin-top: 8px; }
.logo-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }

/* installed app: Back button */
.app-back { padding: 8px 10px !important; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-home { padding: 8px 10px !important; display: inline-flex; align-items: center; flex: none; }
.in-app header.top .btn { white-space: nowrap; }
@media (max-width: 440px) {
  .in-app header.top { gap: 6px; }
  .in-app header.top .logo { height: 34px; width: auto; }
  .in-app header.top .btn { padding: 8px 10px; font-size: 15px; }
}

/* owner password screen */
.pw-form { max-width: 380px; margin: 10px auto 6px; text-align: center; display: grid; gap: 10px; }
.pw-lock { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #173f66, #0a2a4a); box-shadow: 0 6px 16px rgba(6, 27, 49, .25); }
.pw-lock svg { width: 28px; height: 28px; }
.pw-form h3 { margin: 4px 0 0; font-size: 20px; }
.pw-form p { margin: 0; color: var(--muted); }
.pw-field { position: relative; }
.pw-field input { width: 100%; margin: 0; font-size: 20px; padding: 14px 70px 14px 16px; text-align: left; letter-spacing: .08em; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; padding: 8px; cursor: pointer; }
.pw-err { color: #c0392b !important; font-weight: 600; }
.pw-keep { justify-content: center; margin: 0; }
.pw-form .btn.big { width: 100%; }

/* customer: work date and payment (retail and repair) */
.cust-plan h3 { margin: 16px 0 8px; }
.cust-plan h3:first-child, .cust-plan .sched-fixed h3 { margin-top: 4px; }
.big-chips button { font-size: 16px; padding: 12px 16px; }
.sched-fixed { padding: 12px 14px; border-radius: 12px; background: #eaf8e6; border: 1px solid #cfe6cf; }
.sched-fixed p { margin: 4px 0 0; }
#custSchedAsk.invalid, #payChoiceChips.invalid { outline: 2px solid var(--warn, #c0392b); outline-offset: 4px; border-radius: 12px; }
.pay-how { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #f6f5ef; border: 1px solid var(--line); }
.pay-how h4 { margin: 0 0 8px; font-size: 16px; }
.pay-how div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #e6e3d9; font-size: 15px; }
.pay-how div:last-of-type { border-bottom: 0; }
.pay-how div span { color: var(--muted); }
.pay-how div b { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pay-how .btn { display: inline-flex; margin-top: 4px; }
.pay-warn { margin: 10px 0 0; font-size: 13px; color: #7a5600; background: #fff8e6; border-radius: 8px; padding: 8px 10px; }
.paid-box { margin: 14px 0 4px; padding: 14px; border-radius: 12px; background: #eef8ee; text-align: center; }
.paid-box .paid-btn { width: 100%; background: var(--green); }
.paid-box .note { margin: 8px 0 0; font-size: 13px; }
.pay-help-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pay-help-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-help-row .btn { justify-content: center; width: 100%; }
#payHelpDone { color: #1d6b2a; font-weight: 600; }

/* customer greeting: a good word instead of the weather */
.hello-quote { margin: 14px 0 2px; background: #fff; border: 1px solid #e4e1d6; border-left: 4px solid var(--brand-green, #47b649); border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(6, 27, 49, .08); }
.hello-quote q { display: block; font-size: 17px; font-style: italic; color: #1f2a3d; quotes: "\201C" "\201D"; }
.hello-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }

/* jump to the first missing field */
.jump-flash { animation: jumpflash 1.4s ease 1; border-radius: 12px; }
@keyframes jumpflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); } 30%, 70% { box-shadow: 0 0 0 5px rgba(192, 57, 43, .45); } }
.miss-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 700; text-align: left; display: inline; }

/* after signing: how to pay the deposit */
.pay-after { text-align: left; margin: 16px 0 6px; padding: 16px; border-radius: 16px; background: #fff; border: 2px solid #cfe6cf; box-shadow: 0 4px 14px rgba(43, 138, 30, .08); }
.pay-after h3 { margin: 0 0 4px; color: #1d6b2a; font-size: 20px; }
.pay-after > p { margin: 0 0 8px; }
.pay-after .pay-how { margin-top: 6px; }
.celebrate-box .pay-after { max-height: none; }
@media (max-width: 520px) {
  .pay-how div { display: block; }
  .pay-how div span { display: block; font-size: 13px; }
  .pay-how div b { display: block; text-align: left; overflow-wrap: normal; word-break: normal; }
}

/* repair parts: same feel as the repair estimate */
.rep-item.rep2 { display: block; }
.rep2 .rep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rep2 .rep-head .x { font-size: 24px; line-height: 1; }
.rep2 .rl2 { display: block; margin: 10px 0 0; font-weight: 600; font-size: 14.5px; }
.rep2 .rl2 small { font-weight: 400; color: var(--muted); }
.rep2 .rl2 select, .rep2 .rl2 input, .rep2 .rl2 textarea { display: block; width: 100%; margin-top: 5px; box-sizing: border-box; }
.rep2 .ai-line { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rep2 .ai-btn { background: #fff; color: var(--ink); border: 1px solid #b9d7f2; font-size: 14.5px; padding: 9px 14px; }
.rep2 .btn.link { background: none; border: 0; color: var(--ink); font-weight: 700; padding: 6px; }
.rep2 .price-line { display: flex; gap: 14px; align-items: flex-end; margin-top: 12px; }
.rep2 .price-line label { flex: 0 0 170px; font-weight: 600; font-size: 14.5px; margin: 0; }
.rep2 .price-line .rp-wrap { display: block; margin-top: 5px; }
.rep2 .price-line .rp { width: 100%; padding-left: 26px; box-sizing: border-box; }
.rep2 .cust-price span { display: block; font-size: 13px; color: var(--muted); }
.rep2 .cust-price b { font-size: 20px; color: var(--green, #47b649); }
.rep2 .rph { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: flex-start; }
.rep2 .rph figure { margin: 0; width: 88px; position: relative; }
.rep2 .rph img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
.rep2 .rph figure button { position: absolute; top: 3px; right: 3px; border: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.rep2 .rph figure input { width: 88px; font-size: 12px; padding: 4px 6px; margin-top: 4px; box-sizing: border-box; }
.rep2 .rph .add-ph { width: 88px; height: 88px; border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fee-toggle { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f6f5ef; border: 1px solid var(--line); }
.fee-toggle small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.gutter-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; }
.gutter-specs label { margin: 0; font-size: 13.5px; font-weight: 600; }
.gutter-specs select, .gutter-specs input { display: block; margin-top: 4px; width: 100%; box-sizing: border-box; }
@media (max-width: 420px) { .gutter-specs { grid-template-columns: 1fr; } }

.age-row .age-f { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.age-row .age-f input { margin-top: 4px; }
.check.esign { margin: 4px 0 12px; }

/* contract steps: what is still missing on a step you passed; a ✓ when it is complete (Oct 26 2026) */
.steps button { position: relative; }
.steps button[data-miss]::after { content: attr(data-miss); position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d64545; color: #fff; font: 800 11px/18px var(--body, system-ui); }
.steps button.done-step::before { content: "✓ "; color: #2f8f35; font-weight: 800; }
.pv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }

/* Change Order: pick the signed agreement first */
.co-pick input { margin: 6px 0 8px; }
.co-list { display: grid; gap: 6px; }
.co-list a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.co-list a:hover { border-color: #b9c7d6; }
.co-list small { display: block; color: var(--muted); font-size: 13px; }

/* material delivery spot photos (contract form, Oct 26 2026) */
#delPhotos.rph { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
#delPhotos.rph figure { margin: 0; width: 88px; position: relative; }
#delPhotos.rph img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
#delPhotos.rph figure button { position: absolute; top: 3px; right: 3px; border: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
#delPhotos.rph .add-ph { width: 88px; height: 88px; border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }

/* separate claim coverages on the insurance contract (Oct 26 2026) */
.ins-parts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 8px; }
.ins-parts .ip-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.ins-parts .ip-row input { min-width: 0; }
.ins-parts .x { border: 0; background: #f0eee7; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
input.ro { background: #f3f1ea; color: #14202e; }
.ins-parts .ip-hd span { font-size: 12px; font-weight: 700; color: var(--muted); }

/* step 4 "Review & send" section (audit Oct 26 2026): summary + the two ways to sign */
.review-send { border: 2px solid var(--blue); scroll-margin-top: calc(var(--top-h, 65px) + 70px); }
.rv-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.review-send h2 { font-size: 22px; }
.rv-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 0 0 14px; padding: 12px 14px; background: #f7f6f1; border-radius: 10px; }
.rv-sum div { min-width: 0; }
.rv-sum dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rv-sum dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.rv-sum dd.empty { color: var(--warn); font-style: italic; }
.btn.send-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.btn.send-opt b { font-size: 18px; }
.btn.send-opt small { font-size: 14px; font-weight: 400; opacity: .9; line-height: 1.3; }
#btnDiscard.armed { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }
