:root{--navy:#092b46;--ink:#16354b;--muted:#61727c;--gold:#d9ae54;--cream:#f8f7f3;--line:#dce3e6;--green:#216d54}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.55 Arial,Helvetica,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ca9a35;outline-offset:3px}button{border:0}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:clamp(37px,4.2vw,56px);line-height:1.12;letter-spacing:-1.6px;margin-bottom:18px}h1 em{font-weight:400;color:#61736d}h2{font-size:30px;line-height:1.2;margin:0}h3{font-size:17px;margin-bottom:7px}p{margin-bottom:14px}.masthead{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto;padding:0 28px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font:700 19px/1.1 Georgia,serif;letter-spacing:1px}.brand img{width:44px;height:44px;object-fit:contain}.brand small{display:block;font:10px/1.6 Arial,sans-serif;letter-spacing:2.5px}.back{font-size:13px;text-decoration:none}.wrap{max-width:1180px;padding:0 28px;margin:auto}.intro{padding:44px 0 30px;display:flex;align-items:center;justify-content:space-between;gap:30px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#7a6b45;margin-bottom:14px}.lead{font-size:16px;line-height:1.65;color:var(--muted);margin:0}.intro-note{display:flex;gap:14px;align-items:center;font-size:13px;line-height:1.8;color:var(--muted);margin-right:25px}.intro-note p{margin:0}.intro-note strong{color:var(--ink)}.mini-icon{display:grid;place-items:center;width:56px;height:56px;border:1px solid #d7ccae;border-radius:50%;font:30px Georgia,serif;color:#9b7933}.steps{display:flex;gap:30px;border-bottom:1px solid #cdd6da;margin-bottom:28px}.steps button{padding:0 0 17px;background:none;color:var(--muted);border-bottom:3px solid transparent;display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px}.steps span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #bfcbd1;border-radius:50%;font-size:12px}.steps .active{color:var(--navy);border-color:var(--gold)}.steps .active span{background:var(--navy);color:#fff;border-color:var(--navy)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.section-head .eyebrow{margin-bottom:8px}.text-button{padding:7px 0;background:none;color:var(--ink);font-size:13px;text-decoration:underline;text-underline-offset:4px}.primary,.secondary{border-radius:7px;padding:12px 19px;min-height:46px;font-size:14px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary{background:var(--navy);color:#fff;border:1px solid var(--navy)}.primary:hover{background:#164b6a}.secondary{background:#fff;color:var(--navy);border:1px solid #b8c7cf}.secondary:hover{background:#f4f6f7}.button-row{display:flex;gap:10px;flex-wrap:wrap}.scan-box{background:#f3f6f5;border:1px dashed #b7c9c2;border-radius:11px;text-align:center;padding:25px 20px}.scan-box .button-row{justify-content:center}.scan-box p{color:var(--muted);font-size:14px}.scan-box small{display:block;font-size:11px;color:var(--muted);margin-top:14px}.receipt-icon{color:#537c6c;margin-bottom:10px}.scan-box h3{font:24px Georgia,serif}.divider{display:flex;align-items:center;gap:15px;margin:27px 0 20px;color:#7a858c;font-size:9px;letter-spacing:1.2px}.divider:before,.divider:after{content:'';height:1px;background:var(--line);flex:1}.item-form{display:grid;grid-template-columns:minmax(100px,1fr) 110px 60px 80px;gap:10px;align-items:end}label{font-size:12px;font-weight:700}input:not([type=checkbox]),select{border:1px solid #bccbd2;border-radius:6px;background:#fff;color:var(--ink);padding:11px 10px;min-width:0;width:100%;min-height:44px}label input:not([type=checkbox]){display:block;margin-top:6px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--navy);vertical-align:middle;flex-shrink:0}label small{display:block;font-weight:400;font-size:11px;color:var(--muted);line-height:1.5;margin-top:6px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin:29px 0 5px}.list-heading h3{margin:0}.list-heading>span{font-weight:700}.count{font-size:11px;background:#eff3f5;border-radius:20px;padding:4px 7px;margin-left:4px}.bill-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #e9edef}.item-title{flex:1;min-width:0;overflow-wrap:anywhere}.bill-row .price{font-weight:700;white-space:nowrap}.icon-button{background:none;color:#697d87;font-size:22px;min-width:36px;min-height:36px}.edit-button{background:none;color:#55707e;font-size:12px;padding:7px}.empty{padding:24px 15px;background:#fafbf9;border-radius:7px;color:var(--muted);text-align:center;font-size:13px;margin:14px 0}.charges{border-top:1px solid var(--line);margin-top:24px;padding-top:17px}summary{cursor:pointer;font-weight:700;font-size:14px}.charge-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:17px 0}.tip-line{display:grid;grid-template-columns:1fr 135px 75px;align-items:center;gap:10px;margin-top:24px}.tip-line h3{margin-bottom:1px;font-size:14px}.tip-line p{font-size:11px;color:var(--muted);margin:0}.tip-line select{font-size:12px}.tip-presets{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.tip-presets button{padding:7px 12px;background:#f4f6f7;border:1px solid #d9e2e6;border-radius:5px;font-size:12px}.tip-presets .selected{background:#e7eeeb;border-color:#6e9382;color:#25563f}.panel-bottom{margin-top:26px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:23px}.panel-bottom p{font-size:12px;color:var(--muted);margin:0}.summary{background:var(--navy);color:white;border-radius:14px;padding:25px 23px;position:sticky;top:20px}.summary-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.summary-top .eyebrow{color:#d9ba7c;margin:0}.summary .text-button{color:#c1d0da;font-size:11px}.remaining>span{font-size:13px;color:#cbd5dc}.remaining strong{display:block;font:43px/1.35 Georgia,serif;letter-spacing:-1px}.remaining p{font-size:11px;color:#c5d3dc;margin:7px 0 18px;min-height:17px}.progress-track{height:5px;background:#355269;border-radius:6px;overflow:hidden;margin-bottom:26px}#progress{height:100%;background:var(--gold);transition:width .2s}.totals{margin:0}.totals>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:11px;color:#d7e0e6}.totals dd{margin:0;font-variant-numeric:tabular-nums}.totals .grand-total{color:white;padding-top:15px;margin-top:15px;border-top:1px solid #365267;font-weight:700;font-size:17px}.summary-person{display:flex;align-items:center;gap:9px;font-size:13px;margin-top:14px}.summary-person strong{margin-left:auto;font-weight:400}.avatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--person);color:white;font-size:12px;font-weight:700;flex-shrink:0}.save-note{border-top:1px solid #365267;display:flex;gap:7px;font-size:10px;color:#beced9;margin-top:24px;padding-top:17px}footer{text-align:center;padding:43px 0 25px;color:#71818a}footer>p:first-child{font:21px Georgia,serif;color:#637771}footer>div{display:flex;justify-content:center;gap:18px;font-size:10px;align-items:center;flex-wrap:wrap}footer strong{font-size:10px;letter-spacing:1px;color:var(--ink)}.privacy-note{max-width:650px;margin:17px auto 0;font-size:10px}.small{font-size:12px;color:var(--muted)}.notice,.warning,.success{padding:11px 14px;border-radius:6px;font-size:12px;margin:12px 0}.notice,.warning{background:#fff6df;color:#795c1a}.success{background:#eaf5ee;color:#256447}.person-edit{display:flex;align-items:center;gap:10px;margin-bottom:10px}.person-edit input{max-width:280px}.person-picker{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 21px}.person-chip{display:flex;align-items:center;gap:7px;background:white;color:var(--ink);padding:8px 11px;border:1px solid #c7d3d9;border-radius:30px;max-width:100%;overflow-wrap:anywhere}.person-chip.selected{border:2px solid var(--person);background:var(--tint);padding:7px 10px}.allocation-heading{margin-top:28px}.allocation-heading p{color:var(--muted);font-size:13px}.allocation-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.allocation-tools label{font-size:11px;font-weight:400;display:flex;gap:6px;align-items:center}.allocation-tools .text-button{font-size:11px}.allocation-row{display:flex;align-items:center;gap:10px;padding:14px 12px;border:1px solid #dbe3e7;border-left:4px solid #c8d4d9;border-radius:7px;margin-bottom:9px}.allocation-row.claimed{border-left-color:var(--person);background:var(--tint)}.allocation-row>label{display:flex;gap:10px;align-items:center;flex:1;font-size:14px;font-weight:400;min-width:0}.allocation-row input{accent-color:var(--person)}.allocation-row small{display:block;font-size:10px;margin:3px 0 0;color:var(--muted)}.allocation-row .price{font-size:14px;font-weight:700;white-space:nowrap}.allocation-row button{background:transparent;border:1px solid #b9c8cf;border-radius:5px;font-size:11px;color:var(--ink);padding:7px}.result-card{border:1px solid var(--line);border-left:4px solid var(--person);border-radius:8px;margin-bottom:14px;padding:18px}.result-top{display:flex;align-items:center;gap:10px}.result-top h3{margin:0;font-size:17px;overflow-wrap:anywhere}.result-top>strong{margin-left:auto;font:26px Georgia,serif;white-space:nowrap}.result-card dl{display:grid;grid-template-columns:1fr auto;font-size:12px;margin:15px 0 0;gap:5px;color:var(--muted)}.result-card dd{margin:0;text-align:right}.result-card details{margin-top:13px}.result-card summary{font-size:11px;font-weight:400}.result-card li{font-size:12px;color:var(--muted)}.rounding-note{font-size:11px;color:var(--muted);padding:15px;background:#f4f6f5;border-radius:7px;margin:20px 0}.badge{font-size:11px;background:#e7f3ec;color:#286b4f;padding:7px 10px;border-radius:20px;white-space:nowrap}.badge.pending{background:#fff3d4;color:#7c5e1c}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 21px;background:var(--navy);border:1px solid #728897;color:white;border-radius:8px;box-shadow:0 5px 20px #0002;z-index:10;max-width:90vw;width:max-content;font-size:13px}dialog{border:0;border-radius:13px;padding:27px;max-width:850px;width:calc(100% - 30px);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #0003}#share-dialog{max-width:430px}dialog::backdrop{background:#08263ac2}dialog p{font-size:13px}#share-people label{display:flex;align-items:center;gap:10px;padding:10px 0}.review-layout{display:grid;grid-template-columns:180px 1fr;gap:20px}#receipt-preview{max-width:100%;max-height:420px;object-fit:contain;align-self:start;background:#f4f5f3}.review-row{display:grid;grid-template-columns:22px 1fr 55px 85px;gap:7px;border-bottom:1px solid var(--line);padding:9px 0;align-items:center}.review-row label{font-size:10px}pre{white-space:pre-wrap;font-size:11px;background:#f3f5f6;padding:12px}.confirm-review{display:flex;align-items:center;gap:10px;margin:20px 0 14px}.sr-only,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;clip:auto;background:white;padding:10px;z-index:100}[hidden]{display:none!important}
@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.panel{padding:22px}.intro-note{display:none}.item-form{grid-template-columns:1fr 100px 55px}.item-form>label:first-child{grid-column:1/-1}.item-form>button{grid-column:3}.item-form>label:nth-child(2){grid-column:1}.item-form>label:nth-child(3){grid-column:2}.charge-fields{grid-template-columns:1fr}.tip-line{grid-template-columns:1fr 80px}.tip-line>div{grid-column:1/-1}.tip-line select{width:100%}.section-head{gap:10px}.section-head .text-button{font-size:11px}.panel-bottom{flex-wrap:wrap}.panel-bottom>.primary{width:100%}}
@media(max-width:700px){.masthead{height:72px;padding:0 18px}.brand{font-size:16px}.brand img{width:37px;height:37px}.back{font-size:11px}.wrap{padding:0 16px}.intro{padding:28px 0 25px}h1{font-size:37px;letter-spacing:-1.2px}.eyebrow{font-size:9px;letter-spacing:1.4px}.lead{font-size:14px}.steps{gap:0;justify-content:space-between;margin-bottom:18px}.steps button{font-size:11px;gap:6px;padding-bottom:13px}.steps span{width:22px;height:22px;font-size:10px}.workspace{display:flex;flex-direction:column;gap:18px}.main-column{width:100%}.summary{position:static;width:100%;padding:21px}.panel{padding:20px 16px;border-radius:10px}h2{font-size:27px}.section-head{align-items:start;margin-bottom:20px}.scan-box{padding:22px 12px}.scan-box h3{font-size:23px}.scan-box p{font-size:12px}.scan-box small{font-size:10px}.primary,.secondary{padding:11px 14px;font-size:13px}.item-form{grid-template-columns:1fr 65px 76px}.item-form>label:first-child{grid-column:1/-1}.item-form>label:nth-child(3){grid-column:2}.item-form input{font-size:16px}.tip-line{grid-template-columns:1fr 85px}.charge-fields{grid-template-columns:1fr 1fr;gap:13px}.charge-fields label:first-child{grid-column:1/-1}.charge-fields input{font-size:16px}.allocation-tools{align-items:start}.allocation-row{padding:12px 9px;gap:8px}.allocation-row>label{font-size:13px}.allocation-row .price{font-size:13px}.allocation-row button{font-size:10px;padding:6px}.allocation-tools .text-button{max-width:95px;text-align:right}.review-layout{display:block}#receipt-preview{max-height:220px;display:block;margin:0 auto 15px}.review-row{grid-template-columns:20px 1fr 45px 70px;gap:5px}.review-row input{font-size:16px;padding:8px 5px}.result-top>strong{font-size:23px}dialog{padding:20px 15px}footer{padding-top:30px}.remaining{display:grid;grid-template-columns:1fr 1fr;align-items:center}.remaining strong{text-align:right;font-size:35px}.remaining p{grid-column:1/-1;margin:4px 0 14px}.summary-top{margin-bottom:10px}.progress-track{margin-bottom:20px}.desktop{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.mobile-rail{display:none}@media(max-width:700px){body{padding-bottom:73px}.mobile-rail{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;align-items:center;gap:14px;background:var(--navy);color:white;padding:11px 17px;border-top:1px solid #446174;box-shadow:0 -4px 16px #092b4612}.mobile-rail>span{font-size:10px}.mobile-rail small{display:block;color:#b7c9d6;font-size:9px}.mobile-rail strong{font:24px Georgia,serif}.rail-button{margin-left:auto;background:#d9ae54;border-radius:5px;color:var(--navy);padding:10px;font-size:11px;font-weight:700}.toast{bottom:85px}}

.individual-tip-note{background:#f1f5f3;padding:15px;border-radius:7px;margin-top:20px;font-size:13px}.individual-tip-note p{font-size:12px;color:var(--muted);margin:6px 0 0}.split-intro{font-size:14px;color:var(--muted)}.personal-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.personal-choices select{display:block;font-size:13px;margin-top:6px}.personal-choices .choice-help{display:block;font-size:11px;color:var(--muted);margin:7px 0 11px;line-height:1.6}.personal-choices label{display:block}.personal-choices input{font-size:15px}.result-amount{margin-left:auto;text-align:right;flex-shrink:0}.result-amount>small{display:block;font:10px Arial,sans-serif;color:var(--muted);margin-bottom:3px}.result-amount>strong{font:27px Georgia,serif}.person-adjustment{padding:13px;background:#fff6df;border-radius:6px;margin-top:17px;color:#755920}.person-adjustment.confirmed{background:#eaf5ee;color:#256447}.person-adjustment p{font-size:12px;margin:0 0 10px}.person-adjustment label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:400}.pending-summary{padding:12px;margin-top:18px;background:#ffffff10;border-left:3px solid var(--gold);font-size:11px;color:#f3ddb0}.choice-error{display:block;color:#a52e24;font-size:11px;margin-top:5px}input[aria-invalid=true]{border-color:#b13228;background:#fff7f6}#service-adjustment-status{line-height:1.7}#final-note{font-size:13px;color:var(--muted)}
@media(max-width:950px){.personal-choices{grid-template-columns:1fr}.result-amount>strong{font-size:24px}}@media(max-width:700px){.personal-choices{gap:14px}.personal-choices input,.personal-choices select{font-size:16px}.result-card{padding:16px 13px}.result-top h3{font-size:16px}}
/* Five screens, one task per screen. No persistent totals sidebar. */
.wrap{max-width:720px;padding:0 24px}.masthead{max-width:1000px;height:76px}.app-title{display:flex;align-items:center;justify-content:space-between;padding:29px 0 24px;gap:14px}.app-title>span{font:27px Georgia,serif}.app-title small{font-size:11px;color:var(--muted)}
.wizard-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;font-size:12px;color:var(--muted)}.step-dots{display:flex;gap:5px}.step-dots i{width:22px;height:4px;border-radius:8px;background:#dce3e6}.step-dots i.done{background:var(--gold)}
.panel{padding:34px 36px;border-radius:16px;box-shadow:0 4px 18px #092b4604}.panel h1{font-size:34px;letter-spacing:-.8px;line-height:1.2;margin-bottom:10px}.panel h1:focus{outline:none}.lead{font-size:14px;margin-bottom:25px;line-height:1.6}.panel h2{font-size:18px;font-family:Arial,sans-serif;font-weight:700}.panel .eyebrow{font-size:10px;margin-bottom:10px}
.scan-box{display:flex;flex-direction:column;align-items:center;padding:32px 24px;gap:12px;background:#f5f7f5;border-style:solid}.scan-box svg{color:#537c6c;margin:0 0 9px}.scan-box button{width:100%;max-width:320px}.scan-box small{margin-top:3px;font-size:11px}.sample-link{display:block;margin:12px auto 0;color:var(--muted);font-size:12px}#manual-start{display:block;margin:17px auto 0}.resume-box{background:#f2f5f7;border-radius:8px;padding:16px;margin-top:20px;font-size:13px;text-align:center}.resume-box p{margin-bottom:10px}
.panel-bottom{margin-top:25px;padding-top:22px;flex-wrap:nowrap}.panel-bottom .primary{max-width:100%;width:auto}.panel-bottom .text-button{flex-shrink:0}.primary,.secondary{font-size:14px;min-height:46px}.text-button{min-height:40px}.list-heading{margin:6px 0 6px}.item-form{margin-top:20px;grid-template-columns:minmax(120px,1fr) 110px 64px 72px;gap:9px}.item-form>label:first-child,.item-form>label:nth-child(2),.item-form>label:nth-child(3),.item-form>button{grid-column:auto}.item-form input{font-size:15px}.bill-row .icon-button{min-width:32px}.bill-row .item-title{font-size:14px}.bill-row .price{font-size:14px}.charge-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.charge-fields label:first-child{grid-column:auto}#bill-help{margin-bottom:20px}
#people-editor{margin-top:28px}.person-edit{margin-bottom:14px;gap:13px}.person-edit input{max-width:none;font-size:16px}.person-edit .avatar{width:34px;height:34px}.person-edit .icon-button{width:40px}#add-person{margin-top:6px}.person-picker{margin-top:0;gap:8px}.person-chip{font-size:13px}.confirmed-mark{font-size:12px;color:var(--green)}
.allocation-status{display:flex;align-items:baseline;gap:9px;background:#f2f5f4;padding:13px 15px;border-radius:8px;margin-bottom:16px}.allocation-status strong{font-size:20px}.allocation-status span{font-size:12px;color:var(--muted)}.allocation-tools .text-button{max-width:none;text-align:left}.allocation-tools{align-items:center}.allocation-row{padding:12px 10px}.allocation-row>label{font-size:14px}.allocation-row button{min-height:34px}.allocation-row small{font-size:11px}#results{margin-top:25px}.result-card{padding:21px 18px;background:#fafbf9}.result-top h3{font-size:17px}.result-amount>strong{font-size:24px}.result-card>dl,.chosen-items{display:none}.personal-choices{grid-template-columns:1fr;gap:16px;margin-top:17px;padding-top:0;border:0}.service-options{order:2;margin-top:0!important;border-top:1px solid var(--line);padding-top:14px}.service-options>summary{font-size:12px;font-weight:400;line-height:1.8}.service-options>summary span{float:right;color:#325a71;text-decoration:underline}.service-options>label{margin-top:15px}.tip-options>label:first-child{font-size:13px}.personal-choices .choice-help{font-size:11px;line-height:1.5;margin-bottom:4px}.tip-options .choice-help{display:none}.tip-options .personal-tip-label{margin-top:13px}.personal-choices select{font-size:14px}.result-card .person-adjustment label{line-height:1.5}.result-card .person-adjustment p{font-size:12px}#choice-status{font-size:12px}#finish-choices{display:block;margin:12px auto 0}
.final-total{background:var(--navy);color:white;border-radius:10px;padding:22px 23px;display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.final-total span{font-size:14px}.final-total strong{font:36px Georgia,serif}.final-person{padding:18px 0;border-bottom:1px solid var(--line)}.final-person>div{display:flex;align-items:center;gap:12px}.final-person h2{font:700 16px Arial,sans-serif;margin:0;overflow-wrap:anywhere}.final-person strong{font:26px Georgia,serif;margin-left:auto;white-space:nowrap}.final-person summary,.bill-breakdown summary{font-size:12px;font-weight:400;color:var(--muted);padding:10px 0 0}.final-person details{margin-left:40px}.final-person dl,.bill-breakdown dl{font-size:12px;color:var(--muted);margin:10px 0}.final-person dl>div,.bill-breakdown dl>div{display:flex;justify-content:space-between;gap:15px;margin:5px 0}.final-person dd,.bill-breakdown dd{margin:0}.final-person ul{font-size:12px;padding-left:18px;color:var(--muted)}.bill-breakdown{padding:14px 0}.payment-note{margin:16px 0 0}#final-note{margin:15px 0 22px}
.photo-details{margin-bottom:15px}.photo-details summary,.raw-details summary{font-size:12px;font-weight:400;color:var(--muted)}#receipt-preview{display:block;max-height:300px;margin:15px auto}#scan-progress{text-align:center;padding:40px 0}.scan-spinner{width:32px;height:32px;border:3px solid #dbe5e0;border-top-color:#537c6c;border-radius:50%;margin:0 auto 16px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.review-row{grid-template-columns:22px minmax(0,1fr) 60px 90px}.review-row input{font-size:15px}.raw-details{margin:12px 0}#scan-message{font-size:13px}#manual-fallback{font-size:12px}
footer{font-size:10px;padding:25px 0 30px;text-align:center}footer>span{letter-spacing:1px;font-weight:700;color:#7b878e}footer>div{margin-top:8px;gap:12px;font-size:10px}footer .text-button{font-size:10px;color:var(--muted)}footer details{margin-top:3px}footer summary{font-size:10px;font-weight:400}footer details p{font-size:11px;max-width:520px;margin:12px auto}.toast{bottom:22px}body{padding-bottom:0}
@media(max-width:700px){.masthead{height:65px;padding:0 18px}.wrap{padding:0 16px}.app-title{padding:21px 0}.app-title>span{font-size:24px}.app-title small{font-size:10px}.panel{padding:27px 21px}.panel h1{font-size:29px}.lead{font-size:13px;margin-bottom:22px}.scan-box{padding:26px 18px}.panel-bottom{flex-wrap:wrap;gap:14px}.panel-bottom>.primary{width:100%}.panel-bottom>.text-button{order:2}.panel-bottom>.primary{order:1}.item-form{grid-template-columns:1fr 62px 72px}.item-form>label:first-child{grid-column:1/-1}.item-form>label:nth-child(2){grid-column:1}.item-form>label:nth-child(3){grid-column:2}.item-form>button{grid-column:3}.item-form input,.charge-fields input,.personal-choices input,.personal-choices select{font-size:16px}.charge-fields{grid-template-columns:1fr 1fr}.charge-fields>label:first-child{grid-column:1/-1}.allocation-tools{align-items:center;gap:10px}.allocation-tools label{font-size:11px}.allocation-tools .text-button{max-width:100px;text-align:right;font-size:11px}.allocation-row{gap:7px;padding:11px 8px}.allocation-row>label{font-size:13px;gap:7px}.allocation-row .price{font-size:13px}.allocation-row button{padding:6px;font-size:10px}.result-card{padding:17px 13px}.final-total{padding:20px 17px}.final-total strong{font-size:32px}.final-person strong{font-size:25px}.review-row{grid-template-columns:20px minmax(0,1fr) 45px 72px;gap:6px}.review-row input{font-size:16px;padding:8px 6px}.step-dots i{width:18px}.bill-row{gap:7px}.bill-row .edit-button{padding:7px 2px}}
@media(prefers-reduced-motion:reduce){.scan-spinner{animation:none}}

.back-step{display:block;margin:-12px 0 8px;padding:8px 0;font-size:13px}.panel-bottom{justify-content:flex-end}.tip-options:has(option[value="percent"]:checked) .choice-help{display:block}

.person-chip {
  border-color: var(--person);
  font-weight: 700;
}
.person-chip.selected {
  color: white;
  background: var(--person);
}
.person-chip.selected .avatar {
  background: white;
  color: var(--person);
}
.person-chip .confirmed-mark { color: var(--person); }
.person-chip.selected .confirmed-mark { color: white; }
.final-person h2 { color: var(--person); }

/* Keep portion controls tucked away until someone chooses Share this item. */
.allocation-item{border:1px solid var(--line);border-radius:9px;margin:9px 0;overflow:hidden}
.allocation-item .allocation-row{margin:0;border:0;border-radius:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;background:transparent}
.allocation-item .allocation-row.claimed{background:var(--tint, #edf1f4)}
.allocation-item .allocation-row.claimed small{color:#374954}
.allocation-item .allocation-row>label{min-width:0;align-items:center}
.allocation-item .item-title{overflow-wrap:anywhere}
.allocation-item .price{justify-self:end}
.allocation-item .price small{display:block;font-size:10px;font-weight:400;color:var(--muted);text-align:right}
.allocation-item .split-toggle{justify-self:center;min-height:44px;width:8.5rem;padding:8px 10px;font-size:.875rem;line-height:1.3;border:1px solid var(--line);border-radius:6px;background:white;color:var(--navy)}
.share-owners{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 10px;background:var(--tint, #edf1f4)}
.share-owners span{font-size:12px;font-weight:700;color:white;background:var(--person);border:1px solid var(--person);border-radius:20px;padding:3px 9px;overflow-wrap:anywhere;max-width:100%}
.remaining-share{display:flex;align-items:center;gap:10px;min-height:50px;padding:10px 12px;border-top:1px dashed #b7c7c0;background:#f5f7f8;font-size:13px;font-weight:700;overflow-wrap:anywhere}
label.remaining-share{cursor:pointer}
.remaining-share input{accent-color:var(--person)}
.remaining-share small{display:block;font-size:12px;font-weight:400;color:#455563}
.split-options{padding:14px 12px;background:#f3f5f6;border-top:1px solid var(--line)}
.split-options p{font-size:12px;font-weight:700;margin-bottom:10px;overflow-wrap:anywhere}
.split-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.split-buttons button{background:white;border:1px solid #aabcc5;border-radius:6px;color:var(--navy);padding:9px 12px;min-height:44px;font-size:13px}
.split-options>small{font-size:11px;display:block;color:var(--muted)}
.split-options .text-button{font-size:11px;min-height:40px;padding:7px 0;display:block}
.allocation-status{flex-wrap:wrap;gap:4px 9px}.allocation-status span{max-width:100%}
@media(max-width:700px){.allocation-item .allocation-row{grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:10px 8px}.allocation-item .allocation-row>label{font-size:13px}.allocation-item .split-toggle{width:6.25rem;padding:8px 6px;font-size:.875rem}.share-owners{padding:0 8px 8px}.remaining-share{padding:10px 8px}.split-buttons button{padding:8px 10px;font-size:12px}}

.example-bill {
  display: flex; width: 100%; align-items: center; gap: .85rem; margin-top: 1rem; padding: .7rem .85rem;
  border: 1px solid #c6a052; border-radius: .5rem; background: #fbf6e9; color: #0b2d46; text-align: left;
}
.example-bill:hover { background: #f5ebd0; }
.example-bill img { flex: none; width: 4.5rem; height: auto; border: 1px solid #d5d1c7; border-radius: 2px; }
.example-bill strong, .example-bill small { display: block; }
.example-bill strong { font-size: .94rem; }
.example-bill small { font-size: .8rem; margin-top: .25rem; font-weight: normal; line-height: 1.4; }
.example-arrow { margin-left: auto; font-size: 1.1rem; }

#sample-preview {
  width: min(46rem, calc(100% - 1.5rem));
  max-height: min(92vh, 92dvh);
  padding: clamp(1rem, 3vw, 1.6rem);
}
.sample-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sample-heading h2 { font: 400 clamp(1.4rem, 3vw, 1.8rem)/1.2 Georgia, serif; }
.sample-heading button { min-height: 2.75rem; }
#sample-preview p { margin: .65rem 0 1rem; font-size: .95rem; line-height: 1.5; }
.sample-photo { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: .35rem; }
.sample-original { display: inline-block; padding: .55rem 0; font-size: .875rem; color: var(--navy); }
.sample-transcript { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.sample-transcript th, .sample-transcript td { padding: .35rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.sample-transcript td, .sample-transcript thead th:last-child { text-align: right; white-space: nowrap; }
.sample-transcript tbody th, .sample-transcript tfoot th { font-weight: 400; }
.sample-transcript small { display: block; font-size: .8rem; color: var(--muted); }
.sample-transcript tfoot tr:last-child { background: var(--cream); }
.sample-transcript tfoot tr:last-child > * { font-weight: 700; }
@media (min-width: 42rem) {
  .sample-transcript { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 41.999rem) {
  .sample-photo { display: none; }
  #use-example { width: 100%; }
}
