:root {
  color-scheme:light;
  --ink:#112f40; --muted:#506672; --navy:#103348; --navy-dark:#0a2737;
  --paper:#fff; --canvas:#f3f4ee; --rule:#d2dcd5; --wash:#eaf1ed;
  --green:#195f48; --copper:#9b5930; --orange:#c08350; --amber:#faf1e4;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:"Avenir Next",Avenir,"Segoe UI",Helvetica,Arial,sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--canvas);color:var(--ink);font:1rem/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {opacity:.55;cursor:wait}
button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #14799b;outline-offset:3px}
h1,h2,h3,p,dl,dd,blockquote {margin:0}
h1,h2,h3 {font-family:var(--serif);font-weight:400;letter-spacing:-.035em;line-height:1.12}
h1 {font-size:clamp(2.3rem,4.3vw,4rem)}
h2 {font-size:clamp(1.9rem,3.2vw,2.6rem)}
h3 {font-size:1.5rem}
.sr-only,.skip-link:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus {position:fixed;left:1rem;top:1rem;background:white;padding:.6rem;z-index:3}
.masthead {background:var(--paper);border-bottom:1px solid var(--rule)}
.mast-inner,.desk-wrap {width:min(1320px,93vw);margin:0 auto}
.mast-inner {min-height:71px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand,.mast-meta,.toolbar,.actions,.status-line,.dialog-top,.lender-heading,.section-heading {display:flex;align-items:center;gap:.75rem}
.brand img {object-fit:contain;height:50px;width:151px}
.brand>span {border-left:1px solid var(--rule);padding-left:1rem;font-size:.95rem;font-weight:650}
.mast-meta {font-size:.9rem;font-weight:650;gap:1rem}
#connection:not(:empty) {display:inline-flex;align-items:center;gap:.45rem;font-size:.83rem;color:var(--muted)}
#connection:not(:empty)::before {content:"";width:.53rem;height:.53rem;border-radius:50%;background:#a3a69b}
#connection[data-status=online]::before {background:var(--green)}
#connection[data-status=offline]::before {background:#b55d35}
.toolbar {min-height:51px;justify-content:space-between;font-size:.85rem;color:var(--muted)}
.toolbar span[aria-hidden] {color:#8d9c9f;margin:0 .4rem}
.tool-buttons {display:flex;align-items:center;gap:.85rem}
.bare {background:none;border:0;font-weight:650;color:var(--green);text-decoration:underline;text-underline-offset:3px;min-height:34px;padding:.2rem .1rem;font-size:.9rem}
.case-head {border-left:5px solid var(--orange);padding:clamp(1.25rem,2.9vw,2.65rem);background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.case-head h1 {margin:.36rem 0 .35rem}
.overline {text-transform:uppercase;letter-spacing:.11em;font-size:.75rem;font-weight:750;color:var(--green)}
.case-head .overline,.case-head .deal-line {color:#c8dcd7}
.deal-line {font-size:1rem}
.terms {display:flex;gap:1.6rem;border-left:1px solid #52707d;padding-left:1.7rem;flex-shrink:0}
.terms dt {font-size:.78rem;color:#ccdcdf}
.terms dd {font-size:1.4rem;font-weight:650;line-height:1.4}
.layout {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.82fr);gap:1.15rem;margin:1.2rem 0 2rem;align-items:start}
.panel {border:1px solid var(--rule);background:var(--paper);border-radius:7px;padding:clamp(1.25rem,2.5vw,2.2rem)}
.panel+.panel {margin-top:1rem}
.main-panel h2,.sidebar h3,.invite h2,.invite h3,.phone-card h2,.dialog-top h2 {margin:.32rem 0 .65rem}
.lede {font-size:1.06rem;color:var(--muted);max-width:62ch}
.panel p+p {margin-top:.65rem}
.actions {margin-top:1.15rem;flex-wrap:wrap}
button.primary,button.secondary,.rate-option {min-height:44px;padding:.61rem 1.08rem;border-radius:5px;font-weight:650;border:1px solid var(--ink);line-height:1.3;background:var(--ink);color:white}
button.primary:hover {background:#245164}
button.secondary,.rate-option {background:white;color:var(--ink);border-color:#a4b7b3}
button.secondary:hover,.rate-option:hover {background:var(--wash)}
.status-box,.note,.source,.cue,.private,.receipt {margin-top:1.05rem;padding:.95rem 1.08rem;border-radius:4px}
.status-box,.receipt {background:#edf5ee;color:#23573f}
.note {background:var(--wash);color:#354f55}
.cue {border-left:3px solid #a77246;background:#faf5ee}
.cue b,.source b,.private .overline {color:#714421}
.cue b,.note b {display:block;margin-bottom:.2rem}
.source {background:#faf8f3;border-left:3px solid #ab7e53}
.source cite {display:block;font:600 .8rem var(--sans);color:var(--muted);margin-bottom:.35rem}
.source blockquote {font:1.12rem/1.48 var(--serif)}
.private {background:var(--amber);border:1px solid #dbc8aa}
.private strong,.receipt strong {display:block;margin:.18rem 0;font-size:2rem;line-height:1.13;font-weight:650;letter-spacing:-.04em}
.offer-facts {margin-top:1.1rem}
.offer-facts div {display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;border-top:1px solid var(--rule);padding:.65rem 0}
.offer-facts dt {color:var(--muted)}
.offer-facts dd {font-weight:650}
.comparison {width:100%;margin:.9rem 0 .4rem;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:1rem}
.comparison th,.comparison td {padding:.53rem .64rem;border-bottom:1px solid var(--rule);text-align:right}
.comparison th:first-child,.comparison td:first-child {text-align:left}
.comparison thead {background:var(--wash);font-size:.87rem}
.comparison tbody th {font-weight:450}
.comparison .total>* {background:#edf5ee;color:#22563e;font-weight:700;border:0}
.sidebar .overline {color:var(--copper)}
.sidebar .detail {color:var(--muted);font-size:.92rem}
.join-status {font-weight:650;color:var(--green);font-size:.95rem}
.qr-grid {display:grid;grid-template-columns:minmax(255px,.9fr) minmax(230px,1.15fr);align-items:center;gap:clamp(1rem,2.5vw,2rem);margin:1rem 0 .5rem}
[data-qr] {width:min(100%,310px);background:white;border:1px solid var(--rule);border-radius:5px;padding:8px;line-height:0;justify-self:center}
[data-qr] svg {width:100%;height:auto;display:block}
.invite-instruction {font-size:1.05rem;color:var(--muted)}
.share-copy {display:flex;align-items:stretch;gap:.4rem;margin-top:.6rem}
.share-copy input {min-width:0;width:100%;background:white;border:1px solid var(--rule);border-radius:4px;padding:.42rem;color:var(--muted);font-size:.85rem}
.share-copy button {flex-shrink:0}
.link-label {font-size:.78rem;font-weight:650;color:var(--muted);margin-top:1.2rem;display:block}
.choice-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:1rem 0 .45rem}
.rate-option {text-align:left;padding:.85rem .7rem;font-size:.93rem}
.rate-option span,.rate-option strong,.rate-option small {display:block}
.rate-option strong {font-size:1.48rem;font-weight:650;margin:.22rem 0}
.rate-option small {font-weight:450;font-size:.8rem}
.rate-option[aria-pressed=true] {background:#eaf4eb;border:2px solid var(--green);padding:calc(.85rem - 1px) calc(.7rem - 1px);color:#1d573f}
details {margin-top:.85rem;color:var(--muted)}
summary {cursor:pointer;font-weight:650;color:var(--ink);line-height:1.6}
details blockquote {margin-top:.4rem}
.phone-wrap {max-width:540px;width:100%;margin:0 auto 2rem;padding:1.25rem .9rem}
.phone-head {padding:1.5rem 1.3rem 1.4rem;border-top:4px solid var(--orange);background:var(--navy);color:white;border-radius:7px 7px 0 0}
.phone-head .overline {color:#c9dcd3}
.phone-head h1 {font-size:clamp(2.05rem,7.3vw,2.85rem);margin:.45rem 0}
.phone-head p:last-child {color:#d6e2dd;font-size:.94rem}
.phone-card {border:1px solid var(--rule);border-top:0;border-radius:0 0 7px 7px;background:white;padding:1.25rem}
.phone-card h2 {font-size:1.7rem}
.phone-card .lede {font-size:1rem}
.offer-list {display:grid;gap:.6rem;margin:1rem 0}
.offer {border:1px solid var(--rule);padding:.86rem 1rem;border-radius:6px;background:#f4f7f4}
.offer .lender-heading {justify-content:space-between;gap:.5rem;font-weight:700}
.offer strong {display:block;line-height:1.2;font-size:clamp(1.8rem,7vw,2.25rem);font-weight:650;letter-spacing:-.045em}
.offer small {display:block;margin-top:.2rem;color:var(--muted);font-size:.83rem}
.phone-card .actions {display:grid;align-items:stretch}
.phone-card .actions button {min-height:46px}
.loading,.error-panel {margin:clamp(2rem,8vh,5rem) auto;padding:1.5rem;width:min(94%,620px)}
.loading h1,.error-panel h1 {font-size:2.2rem}
.error-panel {background:white;border:1px solid var(--rule)}
.error-panel p {margin:.6rem 0}
#error {position:fixed;z-index:3;bottom:1rem;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 2rem);padding:.85rem 1.2rem;background:#663e27;border-radius:5px;color:#fff;box-shadow:0 4px 16px #0002}
dialog {color:var(--ink);border:1px solid var(--rule);border-radius:8px;padding:1.3rem;width:min(94vw,680px);max-height:90vh}
dialog::backdrop {background:#09273787}
.dialog-top {justify-content:space-between;align-items:start}
.dialog-top .bare {flex-shrink:0}
.dialog-top h2 {font-size:1.8rem}
@media(min-width:1450px){.desk-wrap,.mast-inner {max-width:1330px}}
@media(max-width:1000px){.layout {grid-template-columns:minmax(0,1.6fr) minmax(225px,.73fr)}.qr-grid {grid-template-columns:1fr}.qr-grid [data-qr] {width:min(100%,280px)}.terms {gap:1rem;padding-left:1rem}.brand>span{font-size:.84rem}.case-head h1 {font-size:2.8rem}}
@media(max-width:750px){.layout {grid-template-columns:1fr}.sidebar {display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.sidebar .panel+.panel {margin:0}.case-head {display:block}.terms {margin-top:1rem;border-left:0;border-top:1px solid #57707d;padding:.65rem 0 0;gap:2rem}.terms dt {font-size:.76rem}.terms dd {font-size:1.15rem}.mast-inner {min-height:61px}.brand img {width:122px;height:42px}.brand>span {display:none}.mast-meta {gap:.55rem}.qr-grid {grid-template-columns:1fr 1fr}.qr-grid [data-qr] {min-width:0}}
@media(max-width:540px){.mast-inner,.desk-wrap {width:94vw}.mast-meta {font-size:.82rem}.mast-meta #connection {font-size:.75rem}.sidebar {display:block}.sidebar .panel+.panel {margin-top:.7rem}.toolbar {min-height:45px}.tool-buttons {gap:.55rem}.case-head h1 {font-size:2.35rem}.desk-wrap .layout {margin:.7rem 0 1rem;gap:.7rem}.panel {padding:1rem}.qr-grid {grid-template-columns:1fr}.qr-grid [data-qr] {max-width:260px}.choice-grid {gap:.3rem}.rate-option,.rate-option[aria-pressed=true] {padding:.65rem .4rem}.rate-option strong {font-size:1.18rem}.comparison {font-size:.88rem}.comparison th,.comparison td {padding:.5rem .25rem}.phone-wrap {padding:.65rem .55rem}.phone-card {padding:1rem}.phone-head {padding:1.1rem}.toolbar .crumb-detail {display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.source {margin-inline:0}
@media(min-width:751px) and (max-height:830px){
  #app[data-stage=waiting] .case-head {padding:1rem 2rem}
  #app[data-stage=waiting] .case-head h1 {font-size:clamp(2.2rem,3.4vw,3.2rem)}
  #app[data-stage=waiting] .main-panel {padding:1.12rem 1.5rem}
  #app[data-stage=waiting] .qr-grid {margin:.75rem 0 0}
  #app[data-stage=waiting] .qr-grid [data-qr] {max-width:min(310px,40vh)}
}
