:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233c36;background:#f4f5ef;font-synthesis:none;--green:#163a34;--muted:#6b7b72;--line:#dfe4d9;--lime:#d6edb3;--paper:#fffefb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:11px 16px;background:var(--paper);color:var(--green);font-weight:600;min-height:44px}button:hover{background:#edf2e5}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#24574c}.danger{color:#a63f36}.ghost{background:transparent}.icon{width:44px;padding:8px;display:inline-grid;place-items:center}.icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none}a{color:inherit}input,select,textarea{width:100%;min-height:44px;border:1px solid #cad4c7;border-radius:9px;background:white;padding:10px 12px;color:#233c36}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #a6c69c;outline-offset:2px}input[type=checkbox]{width:21px;min-height:21px;accent-color:var(--green)}label{display:grid;gap:6px;font-size:13px;font-weight:600}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-1.1px;font-weight:650}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}.muted,small{color:var(--muted)}.muted{font-size:13px;line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:11px;font-weight:700;color:#697e6b}.layout{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:var(--green);color:#e2eddc;padding:29px 18px;position:fixed;width:225px;height:100vh;display:flex;flex-direction:column;gap:30px}.brand{display:flex;gap:10px;align-items:center;padding:0 10px;font-size:20px;font-weight:700;letter-spacing:-.7px}.brand img{width:37px;height:37px}.brand small{display:block;font-weight:400;font-size:11px;letter-spacing:1px;color:#b5cbbd}.nav{display:grid;gap:7px}.nav button{text-align:left;border:0;background:transparent;color:#c8d8cb;display:flex;gap:13px;align-items:center;font-size:14px;padding:12px}.nav button svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}.nav button.active{background:#31564b;color:white}.sidebar-footer{margin-top:auto;padding:10px;font-size:12px;line-height:1.8;color:#b7cabd}.sidebar-footer button{margin-top:10px;padding:5px 10px;color:#dbe8d8;border:1px solid #507065;background:transparent}.main{grid-column:2;padding:36px 42px 100px;max-width:1600px;width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}.topbar p{margin-top:7px}.actions{display:flex;gap:8px;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:21px}.stat strong{display:block;font-size:27px;letter-spacing:-1px;margin:9px 0 4px;font-weight:650}.stat.hero{background:var(--green);color:white;border-color:var(--green)}.stat.hero .muted,.stat.hero small{color:#bcd4bd}.stat .label{font-size:12px;color:var(--muted)}.stat.hero .label{color:#d6edb3}.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:23px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.grid2{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.grid2.equal{grid-template-columns:1fr 1fr}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:18px}.filters label{min-width:135px;flex:1}.filters label.search{flex:2;min-width:200px}.filter-panel{padding:18px;background:#eaf0e3;border:1px solid var(--line);border-radius:13px;margin-bottom:22px}.filter-panel .filters{margin-bottom:0}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);font-weight:500;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 10px;border-bottom:1px solid #edf0e7;vertical-align:middle}td strong{font-weight:600}.amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.status{font-size:11px;padding:5px 9px;border-radius:20px;white-space:nowrap;background:#edf2e8;color:#527543}.status.pending{background:#fbefdb;color:#9b712d}.status.overdue{background:#f8e6df;color:#a94f3b}.subline{display:block;font-size:11px;color:var(--muted);margin-top:4px}.expense-title{max-width:310px}.empty{text-align:center;color:var(--muted);padding:40px 15px;line-height:1.8}.bill-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.bill-card{border:1px solid var(--line);border-radius:13px;padding:20px;background:white}.bill-card h3{margin:14px 0 6px}.bill-card .big{font-size:28px;margin:15px 0;letter-spacing:-1px}.bill-card .actions{margin-top:18px}.bill-card .primary{flex:1}.bar-row{display:grid;grid-template-columns:minmax(95px,1fr) 2fr auto;gap:12px;align-items:center;font-size:12px;margin:15px 0}.track{height:9px;border-radius:20px;background:#edf1e7;overflow:hidden}.fill{height:100%;border-radius:20px;background:#7b9e73}.legend{display:flex;gap:8px;align-items:center;font-size:12px}.dot{width:9px;height:9px;border-radius:50%;background:#7b9e73}.trend{width:100%;height:210px;display:block}.trend text{font-family:inherit;font-size:11px;fill:#71806e}.trend line{stroke:#e5eadd}.trend rect{fill:#6b9275}.note{padding:13px 16px;background:#edf2e5;border-radius:10px;font-size:12px;line-height:1.6;margin-bottom:17px}.selection-bar{position:sticky;bottom:16px;background:var(--green);color:white;border-radius:13px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:0 8px 30px #163a3425;z-index:3}.selection-bar strong{font-size:25px;margin-left:15px}.selection-bar button{background:var(--lime);border-color:var(--lime)}.selection-bar small{color:#c3d4bc}.selection-tools{display:flex;gap:8px;align-items:center;margin:12px 0 18px}.selection-tools button{font-size:12px;padding:7px 12px}.budget{max-width:180px}.reimburse-row{cursor:pointer}.reimburse-row:has(input:checked){background:#eff5e7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.check-label{display:flex;align-items:center;gap:10px;min-height:44px}.error{color:#a43d36;font-size:13px;line-height:1.5;min-height:20px;margin-top:12px}.success{color:#436842}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;width:min(610px,calc(100% - 24px));max-height:90dvh;box-shadow:0 22px 80px #17352e33;color:var(--green)}dialog::backdrop{background:#172b2560;backdrop-filter:blur(3px)}dialog h2{margin-bottom:8px}dialog .dialog-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:20px}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:var(--green);color:#f5f8ed;padding:70px;display:flex;flex-direction:column;justify-content:center}.auth-art h1{font-size:58px;line-height:1.05;margin:40px 0 20px;max-width:450px;letter-spacing:-2.5px}.auth-art p{color:#bcd1bd;max-width:360px;line-height:1.8}.auth-art .brand{padding:0}.auth-art .art-bars{display:flex;gap:18px;align-items:end;height:140px;margin-top:50px}.art-bars span{background:#d6edb3;width:45px;border-radius:9px 9px 0 0}.art-bars span:nth-child(1){height:40%}.art-bars span:nth-child(2){height:65%;opacity:.7}.art-bars span:nth-child(3){height:50%;opacity:.5}.art-bars span:nth-child(4){height:100%}.auth-form{padding:30px;display:flex;align-items:center;justify-content:center}.auth-card{max-width:370px;width:100%}.auth-card h2{font-size:28px}.auth-card p{margin:12px 0 28px}.auth-card form{display:grid;gap:16px}.auth-card button{margin-top:8px}.auth-card small{display:block;margin-top:24px;line-height:1.7}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#183a33;color:#fff;border-radius:12px;box-shadow:0 3px 20px #0002;z-index:20;display:none;max-width:90vw;font-size:13px}.loading{padding:70px;text-align:center}.pills{display:flex;gap:7px;flex-wrap:wrap}.pills button{border-radius:22px;font-size:12px;min-height:36px;padding:8px 14px}.pills button.active{background:var(--green);color:white}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.comparison strong{display:block;font-size:28px;margin-top:8px}.list-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.history-detail{max-height:330px;overflow:auto}.text-button{border:0;background:transparent;padding:0;text-align:left;min-height:44px;font-size:inherit;color:var(--green)}.settings-email{overflow-wrap:anywhere}details summary{cursor:pointer;padding:12px 0;font-size:13px;font-weight:600}footer{font-size:11px;color:var(--muted);margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){.main{padding-left:55px;padding-right:55px}}@media(max-width:1100px){.sidebar{width:180px;padding:25px 12px}.layout{grid-template-columns:180px 1fr}.brand{font-size:17px}.main{padding:28px 24px 100px}.stats{grid-template-columns:repeat(2,1fr)}.grid2,.grid2.equal{grid-template-columns:1fr}.bill-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.layout{display:block}.sidebar{position:fixed;bottom:0;top:auto;left:0;width:100%;height:auto;z-index:10;padding:7px 4px max(8px,env(safe-area-inset-bottom));gap:0;border-radius:15px 15px 0 0}.sidebar>.brand,.sidebar-footer{display:none}.nav{display:flex;justify-content:space-around;gap:0}.nav button{display:flex;flex-direction:column;gap:5px;padding:7px 5px;font-size:9px;min-width:46px;border-radius:9px;min-height:48px}.nav button svg{width:19px;height:19px}.main{padding:23px 14px 110px}.topbar{align-items:start;margin-bottom:22px}.topbar h1{font-size:26px}.topbar .primary{font-size:0;padding:10px;width:45px}.topbar .primary::before{content:'+';font-size:22px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:24px}.panel{padding:17px}.bill-grid{grid-template-columns:1fr}.filters{gap:9px}.filters label{min-width:120px}.filters label.search{min-width:100%}.tablewrap{margin:0 -8px}th,td{padding:12px 7px;font-size:12px}.hide-phone{display:none}.expense-title{max-width:170px}.form-grid{gap:13px}.auth-page{grid-template-columns:1fr}.auth-art{padding:30px;min-height:210px}.auth-art h1{font-size:34px;margin:25px 0 0}.auth-art p,.auth-art .art-bars{display:none}.auth-form{padding:32px 24px}.selection-bar{bottom:83px;padding:14px;flex-wrap:wrap}.selection-bar strong{font-size:22px;margin-left:8px}.selection-bar .primary{flex:1}.filter-panel{padding:14px}.comparison{gap:10px}.comparison strong{font-size:23px}dialog{padding:20px}.bar-row{grid-template-columns:100px 1fr auto;gap:8px;font-size:11px}#toast{bottom:90px}.panel-head{gap:10px}.budget{max-width:145px}}

/* Oliver's cozy corner — 1.1.0 */
:root{--green:#65517c;--muted:#827989;--line:#e9dfe9;--lime:#f6d9a8;--paper:#fffdfa;background:#fbf6ed;color:#51465b}
body{background:radial-gradient(ellipse at 92% 0,#f4e8f3 0,transparent 42%),#fbf6ed}
h1,h2,h3,.brand{font-family:ui-rounded,"SF Pro Rounded","Trebuchet MS",system-ui,sans-serif}h1{letter-spacing:-.8px}.eyebrow{color:#9c7c9f;font-size:10px;letter-spacing:1.5px}
.sidebar{background:#eee5f2;color:#65517c;border-right:1px solid #e4d7e9}.brand{color:#65517c}.brand img{width:45px;height:45px;transform:rotate(-6deg)}.brand small{color:#9b83a1}.nav button{color:#82718e;font-weight:600;border-radius:15px}.nav button.active{background:#d9c9e7;color:#57406f}.nav button:hover{background:#e3d6ec}.sidebar-footer{color:#927f9c}.sidebar-footer button{color:#6f5883;border-color:#cdbad8;background:#f9f2fc}.primary{background:#78618f;border-color:#78618f}.primary:hover{background:#665079}button:hover{background:#f4ebf6}.primary:hover{color:white}.ghost{color:#78618f}input,select,textarea{border-color:#ded2e3;color:#5c4b66;background:#fffcff}input[type=checkbox]{accent-color:#8d73a5}input:focus,select:focus,textarea:focus,button:focus-visible{outline-color:#d3b5df}
.stat{border-radius:20px;border-color:#e9dfe8;background:#fffcf7;box-shadow:0 3px 0 #eadfea50}.stat.hero{background:#e9dcf2;border-color:#ddcbe8;color:#66517e}.stat.hero .label{color:#8a6d9d}.stat.hero small,.stat.hero .muted{color:#9a80a5}.stat:nth-child(2){background:#fcebd9;border-color:#f2dcc6}.stat:nth-child(3){background:#eaf0e4;border-color:#dfe9d5}.stat:nth-child(4){background:#f9e8ed;border-color:#f0d8e1}.stat strong{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;font-weight:650}.stat .label{color:#8a7d8e}.panel{border-radius:22px;border-color:#eadfe9;box-shadow:0 4px 0 #eadfea35}.filter-panel{background:#f1eaf5;border-color:#e6d9ed;border-radius:18px}.bill-card{border-radius:21px;border-color:#eadfe9;background:#fffcf7}.bill-card:nth-child(3n+2){background:#fff6eb}.bill-card:nth-child(3n){background:#f4f5ed}.status{background:#e9efdf;color:#798562}.status.pending{background:#fce8cd;color:#a67c47}.status.overdue{background:#f8e0e5;color:#a66d80}.note{background:#f3eaf6;color:#8a7098;border-radius:14px}.track{background:#f0e9f1;height:11px}.fill{background:#b39cc9}.trend rect{fill:#b39cc9}.trend text{fill:#98849e}.trend line{stroke:#eee4ef}.selection-bar{background:#78618f;border-radius:19px;box-shadow:0 7px 25px #82628b25}.selection-bar small{color:#e4d5ed}.selection-bar button{background:#ffe0aa;border-color:#ffe0aa;color:#765548}.reimburse-row:has(input:checked){background:#f3eaf9}.pills button.active{background:#9a7db1;border-color:#9a7db1}.list-row{border-color:#eee5ed}.text-button{color:#826396}th{color:#a28fa9}td{border-color:#f0e8ef}.subline{color:#a08d9f}dialog{border-color:#e4d4ec;border-radius:25px;color:#65517c;background:#fffcf8}dialog::backdrop{background:#59466550;backdrop-filter:blur(4px)}#toast{background:#80648f;border-radius:17px}footer{color:#ac9ab0}
.header-intro{display:flex;align-items:center;gap:8px;margin-bottom:6px}.header-oliver{width:27px;height:27px;transform:rotate(-8deg)}.oliver-note{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#f4e6f3,#fcf0d9);border:1px solid #ecdeeb;border-radius:24px;padding:15px 28px;margin-bottom:23px;overflow:hidden;min-height:145px}.oliver-note h2{font-size:24px;margin:8px 0;color:#78608c}.oliver-note p{font-size:13px;color:#a086a1;line-height:1.6;max-width:440px}.oliver-note img{width:180px;height:145px;object-fit:contain;flex-shrink:0;margin:-5px -8px -20px 14px}
.auth-art{background:radial-gradient(ellipse at 20% 20%,#f8eddc,transparent 65%),#efe2f1;color:#7a608b;padding-top:45px;padding-bottom:30px}.auth-art .brand{color:#80658f}.auth-art .brand small{color:#ad8eac}.auth-art h1{font-size:53px;line-height:1.1;letter-spacing:-2px;color:#80658f;margin-top:30px}.auth-art p{color:#a489a4;font-size:14px;line-height:1.8}.auth-form{background:#fffcf6}.auth-card h2{color:#7d638d}.oliver-welcome{max-width:360px;width:100%;margin-top:10px;text-align:center}.oliver-welcome img{display:block;width:100%;height:240px;object-fit:contain}.oliver-welcome span{display:block;color:#a58ba9;font-size:12px;letter-spacing:.4px;transform:rotate(-2deg);margin-top:-8px}.auth-card .primary{border-radius:15px}.auth-card small{color:#ad98ad}.auth-card input{border-radius:12px}.auth-art .brand img{width:49px;height:49px}
@media(max-width:1100px){.oliver-note{padding:15px 20px}.oliver-note h2{font-size:22px}.oliver-note img{width:145px}}
@media(max-width:650px){.sidebar{border:1px solid #e5d6eb;border-bottom:0;background:#f0e5f4f5;backdrop-filter:blur(12px)}.nav button{font-size:9px;border-radius:12px}.nav button.active{background:#ddcbea}.topbar h1{font-size:28px}.header-intro .eyebrow{font-size:8px;letter-spacing:1px}.header-oliver{width:23px;height:23px}.oliver-note{border-radius:20px;padding:14px 17px;min-height:130px;gap:5px}.oliver-note h2{font-size:19px;line-height:1.25;max-width:200px}.oliver-note p{font-size:11px;line-height:1.5;max-width:210px}.oliver-note img{width:110px;height:115px;margin:0 -10px -17px 0}.oliver-note .eyebrow{font-size:8px}.panel{border-radius:20px}.stat{border-radius:17px}.auth-art{min-height:245px;padding:23px 28px 12px;position:relative;overflow:hidden;justify-content:start}.auth-art .brand{font-size:17px}.auth-art .brand img{width:38px;height:38px}.auth-art h1{font-size:32px;letter-spacing:-1px;margin-top:20px;max-width:220px;position:relative;z-index:1}.oliver-welcome{position:absolute;right:-5px;bottom:-8px;width:160px;margin:0}.oliver-welcome img{height:145px}.oliver-welcome span{display:none}.auth-form{padding-top:32px}.auth-card h2{font-size:27px}.auth-card .eyebrow{font-size:9px}}
@media(prefers-reduced-motion:no-preference){.oliver-welcome img{animation:oliver-hello .8s ease-out both}@keyframes oliver-hello{from{opacity:0;transform:translateY(10px) rotate(-2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}}

/* iPhone-first controls and readable history — 1.3.0 */
.reference-block{display:flex;align-items:end;gap:10px;margin:12px 0}.reference-block label{flex:1;min-width:0}.reference-id{font-family:ui-monospace,SFMono-Regular,monospace;font-size:13px;letter-spacing:.1px;user-select:all}.reference-block button{flex-shrink:0}.reimbursement-list{display:grid;gap:14px;margin-top:18px}.reimbursement-card{padding:18px;border:1px solid var(--line);border-radius:17px;background:#fffcf8}.reimbursement-card .panel-head{margin-bottom:4px}.reimbursement-card .actions{justify-content:space-between}.install-panel{background:linear-gradient(120deg,#f3e8f8,#fff2df)}.install-panel p{margin:12px 0}.install-steps{padding-left:22px;line-height:1.8}.install-steps li{margin-bottom:10px}.form-actions{position:sticky;bottom:-28px;z-index:2;background:#fffcf8;padding:14px 0 4px;border-top:1px solid var(--line)}.actions{flex-wrap:wrap}.topbar .actions{flex-wrap:nowrap}.list-row{gap:10px}.list-row>span{overflow-wrap:anywhere}.expense-table .amount{min-width:85px}
@media(max-width:650px){
 html,body{max-width:100%;overflow-x:clip}.main{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:calc(100px + env(safe-area-inset-bottom))}.sidebar{padding-bottom:max(8px,env(safe-area-inset-bottom))}.nav button{flex:1;min-width:0;font-size:10px;min-height:52px}.nav{width:100%}.filters{align-items:stretch}.filters input,.filters select,input,select,textarea{font-size:16px;min-height:48px}.filters label{font-size:12px}.filters label.search{min-width:100%}.filters label:has(select[data-filter=card]){min-width:100%;order:-1}.form-grid{grid-template-columns:1fr 1fr;gap:14px 10px}.form-grid label{font-size:13px;min-width:0}.form-grid select{padding-left:9px;padding-right:6px}.form-grid textarea{min-height:80px}.form-grid input[type=checkbox]{min-height:24px;width:24px;flex-shrink:0}.form-actions{bottom:-18px;padding:12px 0 max(8px,env(safe-area-inset-bottom));gap:9px;margin-top:18px}.form-actions button{min-height:50px}.form-actions .primary{flex:1}.check-label{line-height:1.5}.form-actions>button:first-child{min-width:95px}dialog{position:fixed;inset:auto 0;top:max(8px,env(safe-area-inset-top));margin:0 auto;width:calc(100% - 16px);padding:18px;max-height:calc(var(--visible-height,100dvh) - max(16px,env(safe-area-inset-top)));overscroll-behavior:contain;scroll-padding-bottom:90px}dialog .dialog-head{margin-bottom:15px}dialog .dialog-head h2{font-size:23px}dialog .muted{font-size:12px}.reference-block{gap:7px}.reference-id{font-size:12px;min-height:46px}.reference-block button{min-height:46px;padding:10px 12px}.reimbursement-card{padding:14px}.reimbursement-card .panel-head{align-items:center}.reimbursement-card .panel-head .text-button{max-width:70%;font-size:13px;text-align:left}.reimbursement-card .actions button{font-size:12px}.reference-block label{font-size:12px}.reference-block .reference-id{width:100%}.tablewrap:has(.expense-table){overflow:visible;margin:0}.expense-table,.expense-table tbody{display:block;width:100%}.expense-table thead{display:none}.expense-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:14px 0;border-bottom:1px solid var(--line)}.expense-table td{display:block;border:0;padding:0;font-size:13px;min-width:0}.expense-table .hide-phone{display:none}.expense-table .expense-title{max-width:none;grid-column:1;grid-row:1}.expense-table .expense-title strong{overflow-wrap:anywhere}.expense-table .amount{grid-column:2;grid-row:1;min-width:0}.expense-table td:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.expense-table .reimburse-row{grid-template-columns:28px minmax(0,1fr) auto;align-items:center;padding:17px 4px;border-radius:9px}.expense-table .reimburse-row td:first-child{grid-column:1;grid-row:1;min-height:44px;display:flex;align-items:center}.expense-table .reimburse-row .expense-title{grid-column:2;grid-row:1}.expense-table .reimburse-row .amount{grid-column:3;grid-row:1}.expense-table .reimburse-row td:last-child{display:none}.expense-table .reimburse-row input{min-height:24px;width:24px}.subline{line-height:1.6;font-size:11px}.status{display:inline-block}.selection-bar{bottom:calc(80px + env(safe-area-inset-bottom));padding:14px;gap:12px}.selection-bar>div{flex:1}.selection-bar button{min-height:48px;width:100%;flex-basis:100%}.selection-bar strong{font-size:25px}.budget input{font-size:16px}.trend{height:220px}.tablewrap:has(.trend){overflow-x:auto;-webkit-overflow-scrolling:touch}.settings-email{margin:12px 0}.install-panel h2{font-size:19px}
}
@media(max-width:360px){.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.oliver-note img{width:85px}.bar-row{grid-template-columns:85px 1fr auto}.reference-block{flex-wrap:wrap}.reference-block label{flex-basis:100%}}
/* Compact reimbursement history — 1.3.1 */
.history-table{width:100%}.history-id-cell{display:flex;align-items:center;gap:5px}.history-id-cell code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;overflow-wrap:anywhere;word-break:break-word;min-width:0}.history-id-cell .icon{flex-shrink:0}.history-mobile-status{display:none}.history-table td{vertical-align:middle}
@media(max-width:650px){.history-table-wrap{margin:0;overflow:visible}.history-table{table-layout:fixed}.history-table th,.history-table td{font-size:11px;padding:11px 4px}.history-table th:nth-child(1){width:24%}.history-table th:nth-child(2){width:13%}.history-table th:nth-child(3){width:22%}.history-table th:nth-child(4){width:41%}.history-table .text-button{font-size:11px;line-height:1.5;white-space:normal}.history-id-cell{gap:0;align-items:center}.history-id-cell code{font-size:10px;line-height:1.5;flex:1}.history-id-cell .icon{width:44px;min-height:44px;padding:11px}.history-mobile-status{display:block;font-size:9px}.history-table .amount{white-space:normal;overflow-wrap:anywhere}.history-table th:last-child,.history-table td:last-child{padding-right:0}}
/* Oliver's daily moments and filtered month totals — 1.4.0 */
.transaction-month+.transaction-month{margin-top:26px}.month-divider{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;background:#f0e7f4;border:1px solid #e5d8ec;border-radius:12px;margin:12px 0 4px}.month-divider h2{font-size:16px;white-space:nowrap;color:#78608c}.month-divider>span{font-size:12px;line-height:1.7;text-align:right;color:#897098;font-variant-numeric:tabular-nums}.oliver-note h2{max-width:620px}.oliver-note img{width:190px}
@media(max-width:650px){.month-divider{align-items:flex-start;flex-direction:column;gap:4px;padding:12px 14px;margin-top:12px;border-radius:12px}.month-divider h2{font-size:16px}.month-divider>span{text-align:left;font-size:12px}.transaction-month+.transaction-month{margin-top:23px}.oliver-note{align-items:center}.oliver-note h2{font-size:18px;max-width:205px}.oliver-note p{font-size:11px}.oliver-note img{width:110px;min-width:85px}.panel-head>span{line-height:1.8}}

/* 1.6.0: reminder controls stay readable and tappable on iPhone. */
.reminder-panel>p{margin:10px 0 16px}.reminder-panel h3{margin:22px 0 10px}.reminder-panel .form-grid{max-width:760px;margin:18px 0}.reminder-panel .actions{flex-wrap:wrap}.reminder-panel .actions button{min-height:44px}
@media(max-width:600px){.reminder-panel .actions{display:grid;grid-template-columns:1fr}.reminder-panel .actions button{width:100%}}

/* Keep the background fixed while iOS resizes/pans the visual viewport. */
body.dialog-open{position:fixed;width:100%;overflow:hidden}
.save-split{display:flex;position:relative;flex:1;max-width:340px}
.save-split>.primary{flex:1;border-radius:12px 0 0 12px}
.save-options{position:static}
.save-options>summary{list-style:none;display:grid;place-items:center;min-width:44px;height:100%;padding:10px;background:#78618f;color:white;border:1px solid #78618f;border-left:1px solid #ffffff55;border-radius:0 12px 12px 0;cursor:pointer;font-size:20px}
.save-options>summary::-webkit-details-marker{display:none}
.save-options>summary:focus-visible{outline:3px solid #b39cc9;outline-offset:2px}
.save-options-popover{position:absolute;bottom:calc(100% + 8px);right:0;background:#fffcf8;padding:6px;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 20px #59466533;min-width:175px;z-index:4}
.save-options-popover button{width:100%;white-space:nowrap}
@media(max-width:650px){dialog{top:calc(var(--visible-top,0px) + max(8px,env(safe-area-inset-top)));max-height:calc(var(--visible-height,100dvh) - max(16px,env(safe-area-inset-top)));overflow-y:auto}.form-actions .save-split{min-width:0;max-width:none}.save-split>.primary{padding-left:10px;padding-right:10px}.save-options>summary{min-height:50px}}

/* Native iPhone date controls must shrink with their grid column. */
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid>label{min-width:0}
.form-grid input:not([type=checkbox]),.form-grid select,.form-grid textarea{min-width:0;max-width:100%}
.form-grid input[type=date],.form-grid input[type=month]{display:block;width:100%;min-inline-size:0;max-inline-size:100%;-webkit-appearance:none;appearance:none;overflow:hidden}
.form-grid input::-webkit-date-and-time-value{min-width:0;text-align:left}
.form-grid input::-webkit-datetime-edit{min-width:0;padding:0}

.payer-picker{border:0;margin:0;padding:0;min-width:0}
.payer-picker legend{font-size:13px;font-weight:600;padding:0;margin-bottom:6px}
.payer-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.payer-buttons label{position:relative;display:block;cursor:pointer}
.payer-buttons input[type=radio]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.payer-buttons label>span{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:10px;border:1px solid #ddcfe7;border-radius:12px;background:#fffcf8;color:#78618f;font-weight:600}
.payer-buttons input:checked+span{background:#78618f;border-color:#78618f;color:white;box-shadow:0 2px 5px #78618f25}
.payer-buttons input:focus-visible+span{outline:3px solid #b39cc9;outline-offset:2px}
