:root{color-scheme:dark;--bg:#202131;--surface:#2a2b3e;--surface2:#323347;--line:#404155;--text:#f7f5ff;--muted:#b8b8cb;--purple:#b8a5ff;--mint:#a5e6cc;--yellow:#ececa8;--radius:22px;font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}button svg,a svg{width:21px;height:21px;flex-shrink:0}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3vw,2.7rem);line-height:1.15;letter-spacing:-1.3px;margin-bottom:12px;font-weight:650}h2{font-size:1.2rem;letter-spacing:-.3px;font-weight:600}p{line-height:1.6;color:var(--muted)}small{font-size:.8rem}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;border-right:1px solid var(--line);padding:38px 24px 24px;display:flex;flex-direction:column;background:#242537}.brand{display:flex;align-items:center;gap:11px;font-size:1.3rem;font-weight:700;letter-spacing:-.8px}.brand small{display:block;font-size:.58rem;letter-spacing:1.4px;margin-top:8px;color:var(--muted);font-weight:500}.brand-mark{background:var(--purple);color:#282536;width:43px;height:43px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-weight:750;font-size:31px;letter-spacing:-6px;padding:0 7px 6px 0;flex-shrink:0}.brand-mark span{color:#625196}.nav-label{font-size:.68rem;letter-spacing:1.5px;color:#9494ad;margin:60px 13px 17px}.nav-item{display:flex;align-items:center;gap:12px;padding:15px 13px;margin-bottom:8px;border-radius:12px;font-size:.95rem;color:var(--muted)}.nav-item.active{color:var(--purple);background:#38334f}.nav-item:hover{background:#343448}.sidebar-note{margin-top:auto;padding:24px 11px 32px}.sidebar-note>span{font-size:2.2rem;display:block;margin-bottom:15px}.sidebar-note strong{font-size:.9rem;display:block}.sidebar-note p{font-size:.8rem;margin:8px 0 0;line-height:1.7}.household{border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;padding-top:25px;font-size:.85rem}.household small{display:block;color:var(--muted);margin-top:4px}.avatars{display:flex;padding-right:3px}.avatars span{display:grid;place-items:center;border:3px solid #242537;width:34px;height:34px;border-radius:50%;background:var(--purple);color:#2e2941;font-size:.75rem;font-weight:700}.avatars span+span{margin-left:-10px;background:var(--mint)}.workspace{margin-left:245px;min-height:100vh}.topbar{height:89px;border-bottom:1px solid var(--line);padding:0 46px;display:flex;align-items:center;justify-content:space-between;gap:12px}.desktop-crumb{font-size:.84rem;color:var(--muted)}.desktop-crumb span{margin:0 15px;color:#76758e}.local-badge{font-size:.72rem;letter-spacing:.15px;background:#323246;border:1px solid #46435d;border-radius:20px;padding:7px 12px;color:#d0c5f6}.mobile-brand,.mobile-nav{display:none}main{max-width:1320px;margin:auto;padding:44px 46px 32px;outline:none}.eyebrow{font-size:.65rem;letter-spacing:1.8px;color:var(--muted);font-weight:650;margin-bottom:14px}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading-row p,.page-heading>p{font-size:.95rem;margin-bottom:0}.page-heading{margin-bottom:32px}.heading-spark{color:var(--purple);font-weight:400;margin-left:15px;display:inline-block;transform:rotate(12deg)}.primary,.light-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:47px;border:0;border-radius:12px;background:var(--purple);color:#252238;padding:13px 19px;font-size:.9rem;font-weight:650;transition:transform .18s,background .18s;white-space:nowrap}.primary:hover,.light-button:hover{background:#c8baff;transform:translateY(-2px)}.home-summary{display:flex;justify-content:space-between;align-items:center;gap:22px;background:#303147;padding:28px 32px;border:1px solid #45415d;border-radius:var(--radius);margin:35px 0 38px}.home-summary .label{color:#ccbfef}.home-summary h2{font-size:1.55rem;margin:10px 0 5px}.home-summary p{font-size:.85rem;margin:0}.summary-number{padding-left:36px;border-left:1px solid #514c69;display:flex;flex-direction:column;gap:8px}.summary-number>span{font-size:.82rem;color:var(--muted)}.summary-number strong{font-size:2.3rem;font-weight:650;letter-spacing:-1px}.summary-number small{color:var(--muted);font-size:.72rem}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-heading h2{margin:0}.section-heading>span{font-size:.8rem;color:var(--muted)}.count{font-size:.75rem;background:#39394f;border-radius:8px;padding:3px 8px;margin-left:8px;color:var(--muted)}.space-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.space-card{border-radius:var(--radius);padding:25px 25px 0;color:#262535;background:#bfaff5;min-width:0;overflow:hidden;transition:transform .2s;animation:arrive .4s both;animation-delay:calc(var(--order)*70ms)}.space-card:hover{transform:translateY(-5px)}.space-trip{background:#b4dfce}.space-personal{background:#e7e7ac}.space-card-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:26px}.space-emoji{font-size:2.6rem;line-height:1.2}.pill{font-size:.57rem;letter-spacing:1px;line-height:1.5;border:1px solid #26253533;border-radius:16px;padding:5px 9px;white-space:nowrap}.space-card h2{font-size:1.34rem;margin-bottom:7px;overflow-wrap:anywhere}.space-card>p{font-size:.85rem;color:#484454;margin-bottom:29px}.space-value{font-size:2.05rem;letter-spacing:-1px;font-weight:650}.space-value-label{font-size:.78rem;display:block;margin-top:4px;color:#484454}.space-card-bottom{margin-top:25px;border-top:1px solid #26253533;padding:17px 0;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:.69rem;min-height:60px}.space-card-bottom svg{width:19px;flex-shrink:0}.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin-top:23px}.panel{background:var(--surface);border:1px solid #3c3c51;border-radius:var(--radius);padding:25px;min-width:0}.compact-panel{display:flex;align-items:center;gap:19px;padding:24px}.mini-icon{font-size:1.7rem;display:grid;place-items:center;width:55px;height:55px;background:#35364b;border-radius:15px;flex-shrink:0}.label{font-size:.78rem;color:var(--muted);display:block}.compact-panel strong{display:block;margin-top:8px;font-size:1rem;font-weight:600}.compact-panel p{font-size:.74rem;margin:7px 0 0}.demo-note{display:flex;gap:12px;margin:28px 2px 0;max-width:830px}.demo-note p{font-size:.78rem;margin:0;line-height:1.7}.demo-note strong{color:#d9d3e8;font-weight:500}.page-footer{max-width:1320px;padding:15px 46px 25px;margin:auto;color:#9393ac;font-size:.69rem;display:flex;justify-content:space-between;gap:20px}.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem;margin-bottom:28px;min-height:25px}.back-link svg{width:17px}.space-title{display:flex;gap:19px;align-items:center;min-width:0}.space-title>span{font-size:3rem;background:#343247;padding:14px;border-radius:22px}.space-title h1{font-size:2.2rem;margin:0 0 8px;overflow-wrap:anywhere}.space-title .eyebrow{margin:0 0 10px}.space-title p{font-size:.8rem}.space-title p span{margin:0 6px}.space-tabs{display:flex;border-bottom:1px solid var(--line);gap:30px;margin:30px 0 27px;overflow:auto}.space-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:0 2px 15px;color:var(--muted);font-size:.87rem;min-height:44px}.space-tabs button.active{border-color:var(--purple);color:var(--purple)}.metrics{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:17px;margin-bottom:24px}.metric{display:flex;flex-direction:column;gap:13px;background:var(--surface);border:1px solid #3d3d53;border-radius:20px;padding:24px}.metric>span{display:flex;gap:8px;align-items:center;font-size:.8rem;color:#d0cbdf}.metric svg{width:15px;height:15px}.metric strong{font-size:1.9rem;font-weight:600;letter-spacing:-1px}.metric small{font-size:.7rem;color:var(--muted)}.metric.featured{background:var(--purple);border-color:var(--purple);color:#29263a}.metric.featured>span,.metric.featured small{color:#453c5f}.positive{color:var(--mint)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr);gap:24px}.main-column,.side-column{display:flex;flex-direction:column;gap:23px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.panel-header h2{margin:0;font-size:1.05rem}.panel-header .eyebrow{font-size:.55rem;letter-spacing:1.5px;margin-bottom:8px}.panel-header>svg{height:21px;width:21px;color:var(--muted)}.panel-header>select{padding:8px 10px;min-height:38px;font-size:.75rem;width:auto;max-width:135px}.chart-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:27px}.chart-toolbar>span{font-size:.7rem;white-space:nowrap;color:var(--muted)}.segmented{display:flex;background:#202131;padding:4px;border-radius:9px;gap:2px}.segmented button{border:0;border-radius:6px;background:none;padding:8px 10px;font-size:.69rem;min-height:34px;color:var(--muted);white-space:nowrap}.segmented button.selected{background:#4a4264;color:#e3d9ff}.category-bars{display:flex;flex-direction:column;gap:20px}.category-row>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:.77rem;margin-bottom:9px}.category-row strong{font-weight:500;font-size:.77rem}.bar-track{height:7px;border-radius:8px;background:#39394e;overflow:hidden}.bar-track>span{display:block;height:100%;border-radius:8px;animation:grow .5s ease-out;transform-origin:left}.accounts-panel{padding:23px 20px}.account{display:flex;align-items:center;gap:11px;background:none;border:0;width:100%;padding:15px 0;border-bottom:1px solid var(--line);text-align:left}.account>span:nth-child(2){flex:1}.account strong{font-weight:500;font-size:.77rem;display:block}.account small{display:block;font-size:.65rem;color:var(--muted);margin-top:5px}.account b{font-size:.82rem;font-weight:550;white-space:nowrap}.person-avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--purple);color:#292536;font-size:.75rem;font-weight:600;flex-shrink:0}.person-avatar.missy{background:var(--mint)}.panel-footnote{font-size:.67rem;line-height:1.8;margin:17px 0 0}.settle-panel{display:flex;align-items:flex-start;flex-direction:column;border-radius:22px;background:#e5e7ad;color:#313228;padding:25px}.settle-emoji{font-size:2rem;margin-bottom:16px}.settle-panel .eyebrow{color:#57583c;font-size:.55rem;margin-bottom:12px}.settle-panel h2{font-size:1.1rem;margin:0 0 10px}.settle-amount{font-size:1.9rem;letter-spacing:-.5px;font-weight:650}.settle-panel p{font-size:.78rem;color:#565739;margin:11px 0 18px}.settle-panel small{font-size:.64rem;margin-top:14px;color:#565739}.light-button{background:#ffffff65;border:1px solid #888a5d55;color:#383929;width:100%;font-size:.78rem;min-height:42px;padding:10px}.light-button:hover{background:#ffffffa0}.lifetime{display:flex;gap:15px;padding:7px 7px 10px}.lifetime>span{font-size:1.6rem}.lifetime small{color:var(--muted);font-size:.72rem}.lifetime strong{display:block;margin-top:5px;font-size:.95rem;font-weight:550}.lifetime p{font-size:.68rem;margin:7px 0 0}.text-button{background:none;border:0;color:var(--purple);font-size:.75rem;padding:8px}.activity-panel .panel-header{margin-bottom:8px}.transaction{display:flex;align-items:center;text-align:left;gap:12px;width:100%;border:0;border-bottom:1px solid #404054;background:none;padding:17px 0}.transaction:last-child{border:0;padding-bottom:0}.transaction-emoji{height:42px;width:42px;background:#3c384e;border-radius:12px;display:grid;place-items:center;font-size:1.25rem;flex-shrink:0}.transaction-emoji.income{background:#34473f;color:var(--mint)}.transaction-main{flex:1;min-width:0}.transaction-main strong{font-size:.81rem;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction small{font-size:.67rem;color:var(--muted);display:block;margin-top:7px}.transaction-amount{text-align:right;font-size:.87rem;white-space:nowrap;font-weight:550}.transaction-amount small{font-weight:400;font-size:.64rem}.donut-layout{display:flex;align-items:center;gap:30px;padding:15px 0}.donut{width:180px;height:180px;border-radius:50%;padding:19px;flex-shrink:0}.donut>div{border-radius:50%;height:100%;background:var(--surface);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.donut small{font-size:.7rem;color:var(--muted)}.donut strong{font-size:1.2rem}.legend{flex:1}.legend>div{display:flex;align-items:center;gap:8px;font-size:.71rem;margin:14px 0}.legend strong{margin-left:auto;font-weight:500}.legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chart-caption{font-size:.75rem;margin-bottom:8px}.trend-chart{overflow-x:auto;padding-bottom:8px}.trend-columns{display:flex;align-items:end;min-height:215px;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.trend-column{flex:1;min-width:66px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:10px}.trend-column>div{background:var(--purple);width:70%;max-width:55px;border-radius:6px 6px 0 0}.trend-column span,.trend-column small{font-size:.62rem;color:var(--muted)}.empty{text-align:center;padding:40px 18px}.empty>span{font-size:2.5rem;display:block;margin-bottom:18px}.empty h3{font-size:1.15rem}.empty p{font-size:.85rem;margin:0}.add-grid{display:grid;grid-template-columns:minmax(0,640px) minmax(230px,1fr);gap:35px;align-items:start}.form-panel{padding:28px}.type-picker{display:flex;background:#202131;border-radius:12px;padding:5px;gap:6px}.type-picker button{flex:1;display:flex;justify-content:center;gap:8px;align-items:center;border:0;background:none;border-radius:8px;padding:12px 7px;color:var(--muted);font-size:.84rem}.type-picker button.active{background:#4b4264;color:#e1d7ff}.amount-label{text-align:center;color:var(--muted);font-size:.86rem;margin:33px 0 10px}.amount-input{display:flex;align-items:center;justify-content:center;gap:9px;padding-bottom:25px;border-bottom:1px solid var(--line);margin-bottom:26px}.amount-input>span:first-child{font-size:2.1rem;color:var(--purple)}.amount-input input{width:70%;max-width:320px;font-size:3.5rem;padding:0;border:0;background:none;color:var(--text);font-weight:600;letter-spacing:-1.5px;text-align:center;min-height:80px}.amount-input input::placeholder{color:#75718e}.amount-input>span:last-child{font-size:.72rem;color:var(--muted);align-self:flex-end;margin-bottom:19px}label{font-size:.8rem;display:flex;flex-direction:column;gap:9px;color:#d9d5e6}input,select{width:100%;min-height:47px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--text);padding:12px;font-size:.88rem}input::placeholder{color:#8f8ba6}select{cursor:pointer}input[type=checkbox]{width:23px;height:23px;min-height:23px;accent-color:var(--purple);flex-shrink:0}.form-fields{display:flex;flex-direction:column;gap:21px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.split-box{padding:20px;background:#323146;border-radius:14px;border:1px solid #4b445f}.check-label{flex-direction:row;justify-content:space-between;align-items:center;gap:15px}.check-label strong{font-size:.87rem;font-weight:500}.check-label small{display:block;font-size:.72rem;color:var(--muted);margin-top:6px}.split-box #split-fields{margin-top:21px}.split-box #split-fields>label{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.split-box input[type=number]{width:85px}.split-people{display:flex;gap:18px;margin-top:17px}.split-people>span{flex:1;display:flex;align-items:center;gap:8px;font-size:.8rem}.split-people strong{margin-left:auto;font-size:.8rem;font-weight:500}.save-button{width:100%;min-height:49px}.cancel-link{text-align:center;color:var(--muted);font-size:.8rem;padding:1px 0 5px}.form-error{color:#ffc3cc;font-size:.82rem;line-height:1.5;margin:0}.form-error:empty{display:none}.preview-card{background:#353147;border:1px solid #4c4264;border-radius:22px;padding:28px}.preview-emoji{font-size:3rem;display:block;margin-bottom:25px}.preview-card h2{font-size:1.5rem;line-height:1.35}.preview-card p{font-size:.85rem;line-height:1.85;margin-bottom:0}.preview-card hr{border:0;border-top:1px solid #554965;margin:24px 0}.entry-hint{font-size:.7rem;text-align:center;margin-top:21px;line-height:1.7}.entry-aside{position:sticky;top:25px}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}.boot h1{font-size:2rem;margin-top:25px}.boot p{max-width:430px}.boot .brand-mark{transform:scale(1.5);margin-bottom:20px}.skip{position:absolute;top:-100px;left:15px;z-index:30;padding:10px;background:var(--purple);color:#232232}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:var(--mint);color:#23372f;padding:15px 23px;box-shadow:0 7px 45px #0005;border-radius:14px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;font-size:.87rem}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{color:var(--text);background:var(--surface);border:1px solid #5c5475;border-radius:24px;padding:32px;max-width:460px;width:calc(100% - 32px);max-height:90dvh}dialog::backdrop{background:#10111cbb;backdrop-filter:blur(4px)}dialog h2{font-size:1.6rem;margin:14px 0}dialog p{font-size:.9rem}dialog form{display:flex;flex-direction:column;gap:20px;margin-top:22px}.dialog-emoji{font-size:2.6rem}.icon-button{display:grid;place-items:center;min-height:42px;min-width:42px;background:#3b394e;border:0;border-radius:50%}.dialog-close{position:absolute;top:15px;right:15px}.muted{color:var(--muted);font-size:.8rem}.detail-amount{font-size:2.5rem;color:var(--purple);margin:20px 0}.confirm-check{flex-direction:row;align-items:center}.danger-button{border:1px solid #af728b;color:#ffccda;border-radius:11px;background:#593c50;padding:14px}.page-heading,.metrics,.dashboard-grid,.add-grid{animation:arrive .3s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(min-width:1500px){main{padding-top:52px}.space-grid{gap:24px}.space-card{padding:30px 30px 0}.space-card-top{margin-bottom:33px}.space-card>p{margin-bottom:36px}.space-card-bottom{margin-top:30px}}
@media(max-width:1200px){.sidebar{width:210px;padding:32px 17px 22px}.workspace{margin-left:210px}.brand{font-size:1.1rem}.brand small{font-size:.5rem}main{padding:32px 28px}.topbar{padding:0 28px}.page-footer{padding-left:28px;padding-right:28px}.space-grid{gap:14px}.space-card{padding:20px 19px 0}.space-card-top{flex-wrap:wrap}.space-card h2{font-size:1.14rem}.space-value{font-size:1.7rem}.pill{font-size:.51rem}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(265px,1fr);gap:18px}.panel{padding:21px}.metric{padding:20px}.metric strong{font-size:1.65rem}.metric>span{font-size:.72rem}.chart-toolbar{align-items:start;flex-direction:column;gap:12px}.donut-layout{flex-direction:column;gap:10px}.legend{width:100%}.account{gap:7px}.account b{font-size:.72rem}.account strong{font-size:.7rem}.account .person-avatar{width:28px;height:28px}.space-title h1{font-size:1.8rem}.space-title .eyebrow{font-size:.54rem}.space-heading>.primary{font-size:.8rem}.add-grid{gap:22px;grid-template-columns:minmax(0,1.65fr) minmax(210px,1fr)}.form-panel{padding:22px}.preview-card{padding:22px}.split-people{flex-direction:column;gap:12px}.summary-number strong{font-size:1.9rem}}
@media(max-width:960px){.sidebar{width:180px;padding:28px 12px 20px}.workspace{margin-left:180px}.brand{font-size:1rem;gap:8px}.brand-mark{width:35px;height:35px;border-radius:11px;font-size:26px}.brand small{display:none}.nav-item{font-size:.82rem;padding:13px 9px;gap:9px}.nav-label{font-size:.58rem;margin-left:9px}.household{gap:8px;font-size:.73rem}.household small{font-size:.65rem}.sidebar-note{padding-left:8px}.space-grid{grid-template-columns:1fr 1fr}.space-card-top{flex-wrap:nowrap}.space-card:last-child{grid-column:auto}.home-summary{padding:25px;align-items:start;flex-direction:column;gap:23px}.summary-number{padding:0;border:0}.summary-number strong{font-size:2.3rem}.home-bottom{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr}.side-column .lifetime{grid-column:1/-1}.account b{font-size:.8rem}.account strong{font-size:.78rem}.space-heading{align-items:start;flex-direction:column}.metrics{gap:12px}.metric{padding:18px 14px}.metric strong{font-size:1.4rem}.metric small{font-size:.63rem}.space-heading>.primary{align-self:flex-end;margin-top:-10px}.add-grid{grid-template-columns:1fr}.entry-aside{position:static}.preview-card{padding:22px}.preview-emoji{float:left;margin:0 20px 10px 0;font-size:2.5rem}.preview-card .eyebrow{margin-top:8px}.preview-card h2{font-size:1.2rem}.preview-card hr{margin:15px 0}.split-people{flex-direction:row}.chart-toolbar{flex-direction:row}.donut-layout{flex-direction:row}.legend{width:auto}.section-heading>span{display:none}.local-badge{font-size:.6rem}.desktop-crumb{font-size:.72rem}.heading-row>.primary{font-size:.78rem;padding:12px}.heading-row p{font-size:.86rem}}
@media(max-width:700px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:76px;padding:0 21px}.desktop-crumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:1.08rem;font-weight:650;letter-spacing:-.5px}.local-badge{font-size:.56rem;padding:6px 8px}.mobile-brand .brand-mark{width:31px;height:31px;font-size:24px;border-radius:10px}main{padding:28px 21px 22px}.eyebrow{font-size:.58rem;letter-spacing:1.4px}h1{font-size:2rem;letter-spacing:-1px}.heading-row{gap:14px;align-items:start}.heading-row p{font-size:.85rem;line-height:1.6}.heading-row>.primary{font-size:.7rem;padding:11px;min-height:42px}.heading-row>.primary svg{height:17px;width:17px}.page-heading{margin-bottom:24px}.heading-spark{margin-left:8px}.home-summary{margin:26px 0 30px;padding:25px;gap:23px}.home-summary h2{font-size:1.35rem}.home-summary p{font-size:.8rem}.summary-number strong{font-size:2.5rem}.space-grid{grid-template-columns:1fr}.space-card{padding:25px 25px 0;display:grid;grid-template-columns:1fr auto;column-gap:14px}.space-card-top{grid-column:1/-1;margin-bottom:21px}.space-card h2{font-size:1.35rem;grid-column:1/-1;margin-bottom:6px}.space-card>p{grid-column:1/-1;margin-bottom:24px}.space-value{font-size:2.25rem;grid-column:1/-1}.space-value-label{grid-column:1/-1;font-size:.78rem}.space-card-bottom{grid-column:1/-1;font-size:.73rem;margin-top:24px}.pill{font-size:.6rem}.space-emoji{font-size:2.8rem}.home-bottom{margin-top:22px;gap:15px}.compact-panel{padding:22px;gap:16px}.demo-note p{font-size:.73rem}.page-footer{padding:15px 21px 110px;font-size:.64rem;flex-direction:column;gap:10px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#27283bf5;backdrop-filter:blur(15px);border-top:1px solid #4b475e;padding:10px 24px max(10px,env(safe-area-inset-bottom));z-index:20;justify-content:space-around;min-height:72px}.mobile-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:62px;color:var(--muted);font-size:.66rem}.mobile-nav>a.active{color:var(--purple)}.mobile-nav>a.mobile-add{background:var(--purple);color:#2d2740;border-radius:14px;padding:7px 20px;flex-direction:row;gap:6px;font-size:.78rem;min-width:98px}.mobile-nav svg{height:20px;width:20px}.back-link{margin-bottom:21px}.space-heading{flex-direction:column;gap:24px;align-items:stretch}.space-title{gap:13px}.space-title>span{font-size:2rem;padding:12px;border-radius:17px}.space-title h1{font-size:1.7rem}.space-title .eyebrow{font-size:.49rem;letter-spacing:1.1px}.space-title p{font-size:.74rem}.space-heading>.primary{align-self:stretch;margin:0;font-size:.88rem;min-height:47px}.space-tabs{gap:0;justify-content:space-between;margin:26px 0 23px}.space-tabs button{font-size:.8rem;padding:0 6px 14px}.metrics{grid-template-columns:1fr 1fr;gap:13px}.metric.featured{grid-column:1/-1;padding:25px}.metric.featured strong{font-size:2.55rem}.metric.featured>span{font-size:.85rem}.metric.featured small{font-size:.75rem}.metric{padding:20px 16px;gap:13px}.metric strong{font-size:1.7rem}.metric>span{font-size:.7rem}.metric small{font-size:.62rem}.dashboard-grid{gap:19px}.panel{padding:22px 20px}.panel-header{gap:10px}.panel-header h2{font-size:1rem}.panel-header .eyebrow{font-size:.47rem}.panel-header>select{font-size:.67rem;padding:7px;width:99px}.chart-toolbar{flex-direction:column;gap:13px;margin-bottom:23px}.segmented{width:100%}.segmented button{flex:1;font-size:.7rem;padding:8px}.category-row>div:first-child,.category-row strong{font-size:.76rem}.side-column{display:flex}.account b{font-size:.93rem}.account strong{font-size:.85rem}.account small{font-size:.7rem}.account .person-avatar{width:36px;height:36px}.panel-footnote{font-size:.72rem}.settle-panel{padding:26px}.settle-panel h2{font-size:1.3rem}.settle-panel .eyebrow{font-size:.6rem}.settle-panel p{font-size:.82rem}.settle-panel small{font-size:.7rem}.light-button{font-size:.84rem;min-height:45px}.transaction-main strong{font-size:.77rem}.transaction{gap:10px}.transaction-amount{font-size:.82rem}.transaction small{font-size:.63rem}.transaction-emoji{width:37px;height:37px;font-size:1.08rem}.donut-layout{flex-direction:column;gap:18px}.legend{width:100%}.legend>div{font-size:.78rem}.donut{width:190px;height:190px}.type-picker button{font-size:.75rem;gap:5px}.type-picker svg{width:18px}.amount-input input{font-size:3rem}.form-two{gap:12px}.form-fields{gap:22px}label{font-size:.8rem}input,select{font-size:1rem}.split-box{padding:17px 14px}.split-people{flex-direction:column}.entry-hint{font-size:.72rem}.entry-aside{display:none}#toast{bottom:90px;width:max-content;max-width:calc(100vw - 32px);font-size:.82rem}dialog{padding:29px 23px}dialog .form-two{grid-template-columns:1fr}dialog h2{font-size:1.4rem}.entry-aside p{font-size:.8rem}}
.profile-picker{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:.8rem;white-space:nowrap}.profile-picker select{width:145px;min-height:41px;padding:8px 11px}.sidebar button.nav-item{background:none;border:0;text-align:left}.personal-summary{align-items:flex-start}.personal-summary .summary-number{max-width:440px;min-width:270px}.personal-summary .summary-number>strong{font-size:2.8rem}.household-subtotal{display:grid;gap:8px;margin-top:12px;padding-top:19px;border-top:1px solid #56506b}.household-subtotal>span{font-size:.82rem;color:var(--muted)}.household-subtotal b{font-size:1.3rem;font-weight:600}.household-subtotal small{font-size:.73rem;line-height:1.6;color:var(--muted)}.goals-section{margin:0 0 34px}.goal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.goal-card{display:block;text-align:left;background:#303145;border:1px solid #514767;border-radius:20px;padding:22px;transition:transform .18s;min-width:0}.goal-card:hover{transform:translateY(-3px);border-color:var(--purple)}.goal-top{display:flex;align-items:center;gap:8px;margin-bottom:17px}.goal-top>span{font-size:1.8rem}.goal-top small{color:var(--muted);font-size:.78rem}.goal-top b{margin-left:auto;font-size:.85rem;color:var(--purple)}.goal-card h3{font-size:1.1rem;font-weight:600;margin-bottom:10px;overflow-wrap:anywhere}.goal-card p{font-size:.77rem;margin-bottom:15px}.goal-card p strong{font-size:1rem;color:var(--text)}.goal-card p span{display:block}.goal-card>small{display:block;font-size:.73rem;line-height:1.6;color:var(--muted);margin-top:12px}progress{width:100%;height:9px;appearance:none;border:0;background:#45435c;border-radius:8px;overflow:hidden}progress::-webkit-progress-bar{background:#45435c;border-radius:8px}progress::-webkit-progress-value{background:var(--mint);border-radius:8px}progress::-moz-progress-bar{background:var(--mint);border-radius:8px}.goal-card.debt progress::-webkit-progress-value{background:var(--yellow)}.goal-card.investment progress::-webkit-progress-value{background:var(--purple)}.goal-empty{border:1px dashed #615576;background:#292a3d;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:14px}.goal-empty h3{font-size:1.05rem;margin-bottom:7px;font-weight:550}.goal-empty p{font-size:.84rem;margin:0}.goal-ideas{display:flex;gap:10px;flex-wrap:wrap}.goal-ideas button{border:1px solid #574d6c;border-radius:25px;padding:11px 14px;background:#393148;font-size:.82rem}.goal-ideas button:hover{background:#4d3e64}.achievement-row{display:flex;justify-content:space-between;gap:8px;margin:22px 0;flex-wrap:wrap}.achievement-row>span{font-size:.8rem;color:var(--muted);padding:9px 11px;border:1px solid var(--line);border-radius:12px}.achievement-row .earned{background:#46402e;border-color:#8b8051;color:#f3edab}.goal-detail-progress{height:13px}.member-splits{display:grid;gap:10px;margin-top:17px}.member-splits label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.member-splits input{max-width:130px}.member-splits input[readonly]{border-color:transparent;background:var(--surface2);color:var(--text)}fieldset{border:1px solid #534c64;border-radius:12px;padding:15px}legend{font-size:.84rem;padding:0 7px}.member-choice{display:flex;flex-direction:row;align-items:center;gap:10px;margin:8px 0}.settlement-row{width:100%;padding:5px 0 16px}.settlement-row p{margin-bottom:11px}.account:disabled{cursor:default;opacity:1}.space-card p{overflow-wrap:anywhere}.mobile-profile-add{display:none}.goal-card:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}.celebration{animation:win .5s ease-out}@keyframes win{0%{transform:translate(-50%,20px) scale(.9)}60%{transform:translate(-50%,-5px) scale(1.03)}100%{transform:translate(-50%,0) scale(1)}}
@media(max-width:1100px){.goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-summary .summary-number{border-left:0;padding-left:0}.profile-picker{font-size:.73rem}.personal-summary{flex-direction:column;gap:20px}}
@media(max-width:700px){.profile-picker{font-size:.65rem;gap:6px}.profile-picker select{width:105px;font-size:.82rem;min-height:37px;padding:6px}.personal-summary .summary-number{min-width:0;max-width:100%;width:100%}.personal-summary .summary-number>strong{font-size:2.5rem}.goal-grid{grid-template-columns:1fr}.goals-section .section-heading{gap:8px}.goals-section h2{font-size:1rem}.goal-card{padding:21px}.goal-empty{padding:21px}.mobile-profile-add{display:inline-block}.goal-ideas{gap:8px}.goal-ideas button{font-size:.78rem}.member-splits input{max-width:110px}.space-title p{overflow-wrap:anywhere}.profile-picker select{max-width:110px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.onboarding{max-width:650px;margin:0 auto;padding:40px 24px}.onboarding-intro{margin-bottom:26px}.onboarding h1{font-size:2rem;margin:15px 0}.onboarding form{display:grid;gap:20px}.onboarding label small{color:var(--muted);font-weight:400;line-height:1.5}.onboarding>.muted{margin-top:20px}textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface);color:var(--text);font:inherit;line-height:1.5}textarea:focus-visible{outline:2px solid var(--purple)}.balance-context{display:grid;gap:9px;margin-top:12px;padding-top:15px;border-top:1px solid var(--line);font-size:.85rem;max-width:100%;overflow-wrap:anywhere}.balance-context p{white-space:pre-wrap;max-width:380px}.manual-note{font-size:.8rem;line-height:1.7;background:#353148;padding:14px;border-radius:12px}.onboarding .save-button{margin:0}.onboarding .form-error:empty{display:none}
.circle-plus{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:2px solid var(--purple);border-radius:50%;background:transparent;color:var(--purple);font-size:32px;flex-shrink:0;line-height:1}.circle-plus:hover{background:#48405f}.personal-summary{position:relative}.personal-summary>.circle-plus{position:absolute;right:18px;top:18px}.personal-summary>div:first-child{padding-right:35px}.account-carousel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 2px 20px;margin-bottom:30px;max-width:100%}.mini-account{flex:0 0 230px;scroll-snap-align:start;padding:22px;text-align:left;background:#302f46;border:1px solid #555069;border-radius:20px;display:grid;gap:12px}.mini-account>span{color:var(--muted);font-size:.8rem}.mini-account h3{font-size:1rem;overflow-wrap:anywhere}.mini-account>strong{font-size:1.6rem}.mini-account small{font-size:.7rem;color:var(--muted)}.add-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;border:1px dashed #8579ac;border-radius:22px;background:#29293a;color:var(--text);padding:24px}.add-tile small{color:var(--muted)}.tracker-add{min-height:240px}.icon-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.icon-options button{border:1px solid var(--line);border-radius:12px;background:#333147;min-height:43px;font-size:1.4rem}.icon-options button[aria-pressed=true]{border-color:var(--yellow);background:#514566}.icon-picker small{color:var(--muted);font-size:.75rem}.goal-presets{padding:18px 0}.goal-presets summary{cursor:pointer;margin-bottom:14px;color:var(--muted)}.goal-grid{align-items:start}.game-progress{margin:14px 0 6px;pointer-events:none}.quest-scene{height:45px;position:relative;overflow:hidden;border-bottom:1px dashed #6a6287}.quest-scene span{position:absolute;left:calc(8% + var(--i)*30%);font-size:23px;bottom:4px;animation:quest-float 2.7s ease-in-out infinite;animation-delay:calc(var(--i)*-.7s)}.theme-car .quest-scene span{animation:quest-drive 2.8s ease-in-out infinite}.theme-travel .quest-scene span{animation:quest-float 2.5s ease-in-out infinite}.quest-caption{display:flex;justify-content:space-between;font-size:.65rem;letter-spacing:1px;margin:13px 0 8px;color:#d7cbff}.quest-track{height:20px;position:relative;overflow:hidden;border:2px solid #71628c;border-radius:8px;background:#201e31;box-shadow:inset 0 2px 4px #151320}.quest-fill{height:100%;background:repeating-linear-gradient(90deg,#afe3cc 0 10px,#8fcdb5 10px 12px);transition:width .7s ease;box-shadow:0 0 12px #96dfc4}.quest-track i{position:absolute;top:0;height:100%;width:2px;background:#27203599}.quest-ticks{display:flex;justify-content:space-between;font-size:.62rem;color:var(--muted);margin-top:6px}.motion-off *{animation:none!important;transition:none!important}.goal-confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1000}.goal-confetti span{position:absolute;left:var(--x);top:-40px;font-size:25px;animation:goal-fall 2.5s ease-in var(--delay) forwards}@keyframes quest-float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-7px) rotate(5deg)}}@keyframes quest-drive{0%,100%{transform:translateX(-8px)}50%{transform:translateX(24px) translateY(-2px)}}@keyframes goal-fall{to{transform:translateY(105vh) rotate(var(--spin));opacity:0}}@media(max-width:700px){.mini-account{flex-basis:205px}.personal-summary>.circle-plus{width:40px;height:40px}.icon-options{gap:6px}.tracker-add{min-height:180px}}@media(prefers-reduced-motion:reduce){.quest-scene span,.goal-confetti span{animation:none!important}.goal-confetti{display:none}.quest-fill{transition:none}}

.theme-car .quest-scene span {animation: quest-car 2.20s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-car {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(7px,-4px) rotate(-2deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(3deg) scale(.95)}}

.theme-travel .quest-scene span {animation: quest-travel 2.25s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-travel {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(14px,-7px) rotate(3deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(4deg) scale(.95)}}

.theme-home .quest-scene span {animation: quest-home 2.29s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-home {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(21px,-10px) rotate(-4deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(5deg) scale(.95)}}

.theme-tech .quest-scene span {animation: quest-tech 2.33s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-tech {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(28px,-13px) rotate(5deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(6deg) scale(.95)}}

.theme-nature .quest-scene span {animation: quest-nature 2.38s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-nature {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(35px,-4px) rotate(-6deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(7deg) scale(.95)}}

.theme-debt .quest-scene span {animation: quest-debt 2.43s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-debt {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(7px,-7px) rotate(7deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(8deg) scale(.95)}}

.theme-celebration .quest-scene span {animation: quest-celebration 2.47s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-celebration {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(14px,-10px) rotate(-8deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(9deg) scale(.95)}}

.theme-pets .quest-scene span {animation: quest-pets 2.52s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-pets {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(21px,-13px) rotate(9deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(10deg) scale(.95)}}

.theme-baby .quest-scene span {animation: quest-baby 2.56s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-baby {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(28px,-4px) rotate(-10deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(11deg) scale(.95)}}

.theme-education .quest-scene span {animation: quest-education 2.60s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-education {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(35px,-7px) rotate(11deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(12deg) scale(.95)}}

.theme-emergency .quest-scene span {animation: quest-emergency 2.65s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-emergency {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(7px,-10px) rotate(-12deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(13deg) scale(.95)}}

.theme-space .quest-scene span {animation: quest-space 2.70s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-space {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(14px,-13px) rotate(13deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(14deg) scale(.95)}}

.theme-music .quest-scene span {animation: quest-music 2.74s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-music {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(21px,-4px) rotate(-14deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(15deg) scale(.95)}}

.theme-fitness .quest-scene span {animation: quest-fitness 2.79s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-fitness {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(28px,-7px) rotate(15deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(16deg) scale(.95)}}

.theme-ocean .quest-scene span {animation: quest-ocean 2.83s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-ocean {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(35px,-10px) rotate(-16deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(17deg) scale(.95)}}

.theme-winter .quest-scene span {animation: quest-winter 2.88s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-winter {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(7px,-13px) rotate(17deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(18deg) scale(.95)}}

.theme-wedding .quest-scene span {animation: quest-wedding 2.92s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-wedding {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(14px,-4px) rotate(-18deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(19deg) scale(.95)}}

.theme-food .quest-scene span {animation: quest-food 2.97s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-food {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(21px,-7px) rotate(19deg) scale(1.12)} 70%{transform:translate(-15px,6px) rotate(20deg) scale(.95)}}

.theme-art .quest-scene span {animation: quest-art 3.01s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-art {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(28px,-10px) rotate(-20deg) scale(1.0)} 70%{transform:translate(-5px,0px) rotate(21deg) scale(.95)}}

.theme-camping .quest-scene span {animation: quest-camping 3.06s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
@keyframes quest-camping {0%,100%{transform:translate(0,0) rotate(0) scale(1)} 35%{transform:translate(35px,-13px) rotate(21deg) scale(1.06)} 70%{transform:translate(-10px,3px) rotate(22deg) scale(.95)}}

.friend-picker{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:14px}.friend-picker summary{cursor:pointer}.friend-picker label{display:flex;gap:12px;margin-top:12px}.friend-picker input{width:auto}.friends-list{display:grid;gap:12px}.motion-off .quest-scene span{animation:none!important}@media(prefers-reduced-motion:reduce){.quest-scene span{animation:none!important}}
/* Goal-specific movement: each scene has its own motion. */
@keyframes quest-car{0%{transform:translateX(-35px)}80%{transform:translateX(48px)}81%{opacity:0}100%{transform:translateX(-35px);opacity:0}}
@keyframes quest-travel{0%,100%{transform:translate(-20px,8px) rotate(-8deg)}50%{transform:translate(30px,-14px) rotate(8deg)}}
@keyframes quest-home{0%,100%{transform:translateY(6px) scale(.9)}45%,70%{transform:translateY(-6px) scale(1.12)}}
@keyframes quest-tech{0%,100%{transform:scale(1);filter:brightness(1)}25%{transform:translateX(-5px);filter:brightness(1.5)}50%{transform:translateX(5px) scale(1.12)}75%{transform:translateY(-5px)}}
@keyframes quest-nature{0%,100%{transform:scale(.75);transform-origin:bottom}50%{transform:scale(1.2) rotate(5deg)}}
@keyframes quest-debt{0%,100%{transform:rotate(-12deg) scale(.9)}50%{transform:rotate(12deg) scale(1.2);filter:brightness(1.4)}}
@keyframes quest-celebration{0%,100%{transform:translateY(10px) rotate(-10deg)}50%{transform:translateY(-18px) rotate(12deg)}}
@keyframes quest-pets{0%,100%{transform:translateX(-15px) rotate(-6deg)}25%{transform:translate(-5px,-12px) rotate(6deg)}50%{transform:translate(15px,0) rotate(-6deg)}75%{transform:translate(5px,-12px) rotate(6deg)}}
@keyframes quest-baby{0%,100%{transform:rotate(-18deg);transform-origin:bottom}50%{transform:rotate(18deg)}}
@keyframes quest-education{0%,100%{transform:rotateY(0)}50%{transform:rotateY(160deg) translateY(-8px)}}
@keyframes quest-emergency{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 #b8a4ff)}50%{transform:scale(1.2);filter:drop-shadow(0 0 9px #b8a4ff)}}
@keyframes quest-space{0%{transform:translate(-12px,18px) rotate(-15deg);opacity:0}25%{opacity:1}80%{transform:translate(20px,-24px) rotate(15deg);opacity:1}100%{opacity:0}}
@keyframes quest-music{0%,100%{transform:translateY(3px) rotate(-8deg)}20%,60%{transform:translateY(-12px) scale(1.12)}40%,80%{transform:translateY(0) rotate(8deg)}}
@keyframes quest-fitness{0%,100%{transform:translateY(0) rotate(-10deg)}35%{transform:translateY(-18px) rotate(12deg)}65%{transform:translateY(0) scaleY(.85)}}
@keyframes quest-ocean{0%,100%{transform:translate(-15px,5px) rotate(-12deg)}50%{transform:translate(15px,-8px) rotate(12deg)}}
@keyframes quest-winter{0%{transform:translate(-25px,-14px) rotate(-20deg);opacity:0}20%{opacity:1}80%{opacity:1}100%{transform:translate(25px,15px) rotate(20deg);opacity:0}}
@keyframes quest-wedding{0%,100%{transform:scale(1)}20%{transform:scale(1.22)}35%{transform:scale(1)}50%{transform:scale(1.22)}70%{transform:scale(1)}}
@keyframes quest-food{0%,100%{transform:rotate(-15deg) translateY(4px)}50%{transform:rotate(15deg) translateY(-7px) scale(1.15)}}
@keyframes quest-art{0%,100%{transform:translate(-15px,0) rotate(-25deg)}33%{transform:translate(0,-8px) rotate(0)}66%{transform:translate(15px,0) rotate(25deg)}}
@keyframes quest-camping{0%,100%{transform:scaleY(.85) rotate(-3deg)}25%{transform:scaleY(1.15) rotate(4deg)}50%{transform:scaleY(.95) rotate(-4deg)}75%{transform:scaleY(1.1) rotate(2deg)}}
.goal-confetti[data-theme="car"] span{animation-name:car-parade}
@keyframes car-parade{from{transform:translate(-110vw,0)}to{transform:translate(110vw,0)}}

/* Calm goal motion: keep every icon visible and close to its resting position. */
.game-progress .quest-scene span{animation:gentle-goal-float 4s ease-in-out infinite!important;animation-delay:calc(var(--i) * -.6s)!important;opacity:1!important;filter:none!important}
@keyframes gentle-goal-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.goal-confetti span,.goal-confetti[data-theme="car"] span{animation:gentle-celebration 2.8s ease-in-out both!important;top:15%;opacity:1}
@keyframes gentle-celebration{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.05)}}
.motion-off .quest-scene span{animation:none!important}
@media(prefers-reduced-motion:reduce){.game-progress .quest-scene span{animation:none!important}.goal-confetti{display:none}}
.summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-metrics strong{font-size:clamp(1.25rem,2.4vw,2rem)}.summary-metrics small{line-height:1.5}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.summary-grid .panel,.summary-facts,.cash-details{padding:26px}.summary-facts,.cash-details{margin:22px 0}.summary-explainer{font-size:.85rem}.summary-trend{display:flex;align-items:end;gap:18px;overflow:auto;padding:14px 2px;max-width:100%}.summary-trend>div{min-width:75px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}.summary-trend strong,.summary-trend small{font-size:.7rem}.summary-trend i{display:block;width:30px;border-radius:7px 7px 0 0;background:var(--purple)}.cash-details summary{cursor:pointer;font-weight:600;margin-bottom:12px}.category-manager form{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}.category-manager form>span{flex:1}.category-manager .save-button{width:38px;min-height:38px}.category-manager .form-error{flex-basis:100%;margin:0}.summary-grid .category-row>div{gap:12px}.summary-grid .category-row strong{white-space:nowrap}@media(max-width:1000px){.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{grid-template-columns:1fr}}@media(max-width:700px){.summary-metrics{grid-template-columns:1fr 1fr}.summary-metrics .metric{padding:16px}.summary-grid .panel{padding:18px}.summary-grid .category-row strong{white-space:normal}.summary-grid .category-row>div{align-items:start}}
.summary-heading>label{min-width:150px;flex-shrink:0}@media(max-width:700px){.summary-heading{display:block}.summary-heading>label{display:block;max-width:200px;margin-bottom:24px}}
/* Personal monthly review: disclose detail without crowding the overview. */
.summary-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border,#45445a);margin:0 0 18px;padding-bottom:10px}
.summary-tabs button{padding:12px 20px;border-radius:12px;background:transparent;color:inherit;border:1px solid transparent;font:inherit;cursor:pointer}
.summary-tabs button[aria-current=page]{background:#ad9bff;color:#201f32;font-weight:700}
.summary-customize,.summary-help{margin:16px 0 24px;color:#c5c4d9}.summary-customize summary,.summary-help summary,details.panel summary{cursor:pointer;padding:8px 0}
.summary-customize label{display:flex;align-items:center;gap:10px;margin:12px 0}.summary-customize input{width:18px;height:18px}
.summary-controls{display:flex;flex-wrap:wrap;gap:16px}.summary-controls label{flex:1;min-width:125px}
.summary-controls select,.summary-heading input{width:100%;margin-top:8px}
.summary-chart{width:100%;margin:18px 0}.summary-chart svg{width:100%;height:auto;overflow:visible}.summary-chart rect,.summary-chart circle{fill:#b7a5ff}.summary-chart polyline{stroke:#b7a5ff;stroke-width:3;fill:none}.summary-chart text{fill:#d4d1ea;font-size:12px}.chart-axis{stroke:#66627e;stroke-width:1}
.summary-table-wrap{overflow:auto}.summary-table{width:100%;border-collapse:collapse}.summary-table th,.summary-table td{text-align:left;padding:12px 8px;border-bottom:1px solid #49465e}.summary-table td:last-child{text-align:right;white-space:nowrap}.summary-table th{font-weight:500}
.balance-story{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}.balance-story .metric{padding:16px;min-width:0}
.budget-list{margin:24px 0;display:grid;gap:18px}.budget-row{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:center;padding-bottom:18px;border-bottom:1px solid #46435a}.budget-row small{display:block;margin:8px 0;color:#c0bed6;font-size:12px}.budget-row input{width:100%}.budget-row .bar-track{display:block;margin-top:12px}.bar-track>span{background:#b4a1ff}
.summary-grid .panel,.summary-facts{min-width:0}.summary-heading>label{min-width:170px}
@media(max-width:600px){.summary-tabs button{padding:11px 14px}.budget-row{grid-template-columns:1fr;gap:8px}.balance-story{grid-template-columns:1fr}.summary-controls{gap:10px}.summary-heading>label{width:100%}.summary-table th{overflow-wrap:anywhere}}
:root[data-appearance=dark]{color-scheme:dark;--bg:#111215;--surface:#1d1f24;--surface2:#292c33;--line:#41454f;--text:#f3f4f6;--muted:#bcc0ca;--purple:#b9a8ff;--mint:#9ddfbe;--yellow:#eee0a0}
:root[data-appearance=light]{color-scheme:light;--bg:#ffffff;--surface:#f7f7fa;--surface2:#ececf3;--line:#cecedb;--text:#222333;--muted:#56586b;--purple:#6244b3;--mint:#18754e;--yellow:#765600}
html[data-appearance=light] :is(.sidebar,.topbar,.mobile-nav,dialog,input,select,textarea,.profile-dock){background:#fff;color:var(--text);border-color:var(--line)}
html[data-appearance=dark] :is(.sidebar,.topbar,.mobile-nav,dialog,input,select,textarea,.profile-dock){background:#191b20;color:var(--text);border-color:var(--line)}
html[data-appearance=light] :is(.home-summary,.mini-account,.goal-card,.goal-empty,.goal-ideas button,.add-tile,.manual-note,.icon-options button,.segmented,.mini-icon,.space-title>span,.count,.summary-tabs button:not([aria-current=page])),html[data-appearance=dark] :is(.home-summary,.mini-account,.goal-card,.goal-empty,.goal-ideas button,.add-tile,.manual-note,.icon-options button,.segmented,.mini-icon,.space-title>span,.count,.summary-tabs button:not([aria-current=page])){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-appearance=light] :is(.panel,.metric,.budget-row,.summary-table th,.summary-table td){border-color:var(--line)}
/* GS-026: secondary text on light transaction surfaces; keep the dark split panel's labels. */
html[data-appearance=light] .form-panel label:not(.split-box label),
html[data-appearance=light] :is([data-alpha-form="edit"],[data-alpha-form="settlement"],#settle-form) label{color:var(--muted)}
html[data-appearance=light] :is(.home-summary .label,.metric>span,.summary-customize,.summary-help,.budget-row small,.quest-caption,.demo-note strong,.summary-chart text){color:var(--muted);fill:var(--muted)}
html[data-appearance=light] :is(.primary,.summary-tabs button[aria-current=page],.metric.featured){background:var(--purple);color:#fff}
html[data-appearance=light] :is(.metric.featured>span,.metric.featured small){color:#f2ecff}
html[data-appearance=light] :is(.nav-item.active,.nav-item:hover,.segmented button.selected,.icon-options button[aria-pressed=true]){background:#ece6fa;color:#51318e}
html[data-appearance=dark] :is(.nav-item.active,.nav-item:hover,.segmented button.selected){background:#302b42;color:var(--purple)}
html[data-appearance=light] .bar-track{background:#dfdce9}html[data-appearance=light] .quest-track{background:#ece9f3;box-shadow:none}html[data-appearance=light] .quest-fill{box-shadow:none}
.profile-dock{margin-top:auto;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px}
.profile-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1;border:0;background:none;text-align:left;padding:8px 0}.profile-identity>span:last-child{min-width:0}.profile-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:.86rem}.profile-identity small{display:block;color:var(--muted);font-size:.68rem;margin-top:4px}
.profile-avatar{display:grid;place-items:center;background:var(--purple);color:#211d30;border-radius:50%;height:36px;width:36px;flex-shrink:0;font-weight:700}.profile-gear{display:grid;place-items:center;width:34px;height:34px}.mobile-settings{display:none}.profile-settings-link{display:flex;align-items:center;gap:10px;margin:20px 0}.profile-settings-link svg{width:20px}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.appearance-option{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:16px;text-align:left;color:var(--text)}.appearance-option[aria-pressed=true]{border-color:var(--purple)}.appearance-option small{color:var(--muted);line-height:1.5}.appearance-preview{height:100px;width:100%;border-radius:9px;padding:15px;display:grid;grid-template-columns:1fr 2fr;gap:8px;border:1px solid #7777}.appearance-preview i{border-radius:4px}.appearance-preview i:first-child{grid-row:span 2}.preview-brand{background:#202131}.preview-brand i{background:#b8a5ff}.preview-brand i:first-child{background:#37334e}.preview-dark{background:#111215}.preview-dark i{background:#414550}.preview-dark i:first-child{background:#23262c}.preview-light{background:#fff}.preview-light i{background:#ded9eb}.preview-light i:first-child{background:#f0eef5}
@media(max-width:700px){.mobile-settings{display:flex;align-items:center;justify-content:center}.appearance-options{grid-template-columns:1fr}.appearance-option{display:grid;grid-template-columns:90px 1fr;align-items:center}.appearance-preview{grid-row:span 2;height:78px}.appearance-option small{grid-column:2}}
html[data-appearance=light] :is(.brand-mark,.profile-avatar,.person-avatar){background:#d5c7fb;color:#302445}html[data-appearance=light] .profile-gear{background:#ece6fa;color:#51318e}html[data-appearance=light] #toast{background:#d2eedf;color:#174d34}html[data-appearance=light] .dialog-close{background:#ececf3;color:#222333}
.panel:has(.appearance-options){margin-bottom:22px}.sidebar{overflow-y:auto}.profile-dock{flex-shrink:0;margin-top:auto}
.calendar-toolbar{display:flex;gap:14px;align-items:center;justify-content:center;margin:20px 0}.calendar-toolbar h3{margin:0;min-width:145px;text-align:center}.reminder-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-weekday{font-size:.75rem;text-align:center;color:var(--muted);padding:8px 0}.calendar-day{min-width:0;min-height:95px;border:1px solid var(--line);border-radius:10px;padding:9px;text-align:left;background:var(--surface2);color:var(--text);display:flex;flex-direction:column;gap:5px}.calendar-day.is-today{outline:2px solid var(--purple);outline-offset:0}.calendar-event{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.65rem;max-width:100%;color:var(--text);border-left:2px solid var(--purple);padding-left:4px}.calendar-event.is-done{text-decoration:line-through;color:var(--muted)}.calendar-day small{font-size:.65rem}.reminder-item{display:flex;align-items:center;gap:15px;width:100%;background:none;color:var(--text);border:0;border-bottom:1px solid var(--line);text-align:left;padding:18px 0}.reminder-item>span:nth-child(2){flex:1;min-width:0}.reminder-item strong{overflow-wrap:anywhere}.reminder-item small{display:block;color:var(--muted);margin-top:7px;font-size:.75rem}.reminder-date{padding:12px;border-radius:10px;background:var(--surface2);color:var(--purple)}#reminder-editor{display:grid;gap:18px}.reminder-error{color:#ed9191}.reminder-panel .panel-header{gap:15px;flex-wrap:wrap}.space-tabs{overflow-x:auto}.space-tabs button{white-space:nowrap}.secondary{background:var(--surface2);border:1px solid var(--line);color:var(--text);padding:10px 15px;border-radius:10px}
@media(max-width:700px){.calendar-day{min-height:68px;padding:5px;border-radius:6px}.reminder-calendar{gap:3px}.calendar-event{font-size:.52rem}.calendar-toolbar{gap:4px;flex-wrap:wrap}.reminder-panel{padding:16px}.calendar-day strong{font-size:.8rem}.reminder-item{gap:10px}.reminder-item b{font-size:.8rem}}

/* Keep recording within one step of a balance or tracker. */
.personal-summary{display:block;padding-right:195px}.personal-summary .summary-number{margin-top:24px;border-left:0;padding-left:0;min-width:0}.quick-entry{position:absolute;right:30px;top:30px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--purple);font-size:.85rem;font-weight:600}.quick-entry .circle-plus{width:68px;height:68px;font-size:40px}.tracker-card-wrap{display:flex;flex-direction:column;min-width:0}.tracker-card-wrap .space-card{flex:1;border-bottom-left-radius:0;border-bottom-right-radius:0}.tracker-quick-entry{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-top:0;border-radius:0 0 22px 22px;background:var(--surface);padding:14px;color:var(--purple);font-size:.85rem;font-weight:600}.tracker-quick-entry .circle-plus{width:34px;height:34px;font-size:25px}.tracker-quick-entry:hover,.quick-entry:hover .circle-plus{background:var(--surface2)}.space-grid{margin-bottom:34px}@media(max-width:700px){.personal-summary{padding-right:25px}.personal-summary>div:first-of-type{padding-right:70px}.quick-entry{right:18px;top:24px}.quick-entry .circle-plus{width:50px;height:50px;font-size:32px}.quick-entry>span:last-child{font-size:.65rem;max-width:64px;text-align:center}.personal-summary .summary-number{margin-top:22px}}

/* Compact focus ring with clear space below transaction type. */
.amount-input{padding-top:12px}.amount-input input{min-height:64px}.amount-input input:focus-visible{outline:2px solid var(--yellow);outline-offset:0;border-radius:12px}

/* Ekspense satellite brand mark */
.brand-mascot{display:block;object-fit:cover;padding:0;letter-spacing:normal;width:48px;height:48px;border-radius:14px;background:#191235}.mobile-brand .brand-mascot{width:38px;height:38px;border-radius:11px}

/* Ekspense logo and rounded wordmark */
.brand{gap:8px}.brand-copy{min-width:0;flex:1}.brand-logo{display:block;object-fit:contain;padding:0;background:transparent;letter-spacing:normal;width:48px;height:48px;border-radius:12px}.brand-wordmark{display:block;width:126px;max-width:100%;height:34px;object-fit:cover;object-position:center;border-radius:5px}.brand small{margin-top:3px;letter-spacing:1.1px}.mobile-brand .brand-logo{width:38px;height:38px}.mobile-brand .brand-wordmark{width:126px;max-width:none;height:34px}

/* Refined purple palette */
.sidebar .brand{align-items:flex-start}.sidebar .brand-logo{width:38px;height:38px;margin-top:0}

/* Saved tracker color palette */
.tracker-color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tracker-color-choice{position:relative;display:flex;align-items:center;gap:5px;font-size:.72rem;cursor:pointer}.tracker-color-choice input{position:absolute;opacity:0;width:1px;height:1px}.tracker-swatch{display:block;width:27px;height:27px;flex-shrink:0;border-radius:50%;background:var(--swatch);border:2px solid transparent}.tracker-color-choice input:checked+.tracker-swatch{border-color:#242537;outline:3px solid var(--purple);outline-offset:2px}.tracker-color-choice input:checked+.tracker-swatch:after{content:"✓";display:grid;place-items:center;color:#242537;font-weight:900}.tracker-color-choice input:focus-visible+.tracker-swatch{outline:3px solid var(--yellow);outline-offset:3px}.tracker-color-preview{margin-top:20px;padding:18px;border-radius:14px;color:#242537;font-weight:650}.sidebar .brand-logo{transform:translateY(-5px)}@media(max-width:480px){.tracker-color-options{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Three floating bars replace the initial E; preserve original remaining lettering. */
.sidebar .brand{display:grid;grid-template-columns:28px 107px;column-gap:2px;align-items:start}
.brand-copy{display:contents}
.brand-lettering{display:block;position:relative;overflow:hidden;width:107px;height:34px;flex:none}
.brand-lettering .brand-wordmark{width:126px;max-width:none;height:34px;transform:translateX(-19px);border-radius:0}
.sidebar .brand-logo{width:28px;height:28px;transform:none;margin-top:1px;border-radius:0}
.sidebar .brand small{grid-column:1/-1;margin-top:3px;margin-left:3px}
.mobile-brand{gap:2px;align-items:center}
.mobile-brand .brand-logo{width:28px;height:28px;border-radius:0;transform:translateY(-2px)}
.sidebar .brand-logo{width:34px;height:34px;margin-left:-3px;margin-top:-5px}.mobile-brand .brand-logo{width:34px;height:34px;margin-right:-4px;transform:translateY(-2px)}

/* Single cohesive wordmark image: one annotation target. */
.sidebar .brand{display:flex;flex-direction:column;align-items:flex-start;gap:0}.brand-unified{display:block;width:150px;height:50px;object-fit:contain;flex-shrink:0}.sidebar .brand small{margin:0 0 0 3px}.mobile-brand .brand-unified{width:150px;height:50px}
.sidebar .brand+nav{margin-top:28px}
.sidebar .brand small{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:0;text-transform:none;color:var(--purple);margin:2px 0 0 3px;white-space:nowrap}

/* Shared add control: geometry is independent of font metrics and card text rules. */
.circle-plus,.quick-entry .circle-plus,.tracker-quick-entry .circle-plus,.personal-summary>.circle-plus{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;min-width:48px;padding:0;line-height:1;flex-shrink:0}
.circle-plus>svg{display:block;width:24px;height:24px;min-width:24px;flex:none;margin:0;padding:0;transform:none}

/* Phone home companion sits beside the heading without crowding its copy. */
.mobile-spense{display:none}
.mobile-home-tagline{display:none}.balance-context .text-button{justify-self:start;text-align:left;padding-left:0}
@media(max-width:700px){.desktop-home-tagline{display:none}.mobile-home-tagline{display:inline}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-heading-copy{min-width:0;flex:1}.home-heading .mobile-spense{display:block;width:clamp(72px,20vw,120px);height:auto;flex:none;object-fit:contain}.home-heading h1{font-size:clamp(24px,4.9vw,32px)}}

/* GS-001: keep the gear target and focus ring, with no light-theme fill. */
html[data-appearance=light] :is(.mobile-settings,.profile-gear,.profile-dock .icon-button){background:transparent;color:var(--purple)}

/* GS-007: only the outline, plus and label carry the transaction action. */
.quick-entry,.tracker-quick-entry,.transaction-add{font-weight:700;color:var(--purple);background:transparent}
.tracker-quick-entry:hover,.quick-entry:hover .circle-plus{background:transparent}
.quick-entry .circle-plus,.tracker-quick-entry .circle-plus,.transaction-add .circle-plus,.mobile-add .circle-plus{border:3px solid currentColor;background:transparent;color:inherit}
.quick-entry .circle-plus svg,.tracker-quick-entry .circle-plus svg,.transaction-add .circle-plus svg,.mobile-add .circle-plus svg{stroke-width:2.5}
.quick-entry:hover>span:last-child,.tracker-quick-entry:hover>span:last-child,.transaction-add:hover>span:last-child,.mobile-add:hover>span:last-child{text-decoration:underline;text-underline-offset:3px}
.transaction-add{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:8px 0;font-size:.9rem}
.transaction-add .circle-plus:hover{background:transparent}

/* GS-022: the current main destination alone receives the underline. */
@media(max-width:700px){
  .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 4px max(8px,env(safe-area-inset-bottom));gap:0;min-height:128px}
  .mobile-nav>a{position:relative;min-width:44px;min-height:56px;padding:4px 1px 10px;gap:5px;font-size:.66rem;text-align:center}
  .mobile-nav>.mobile-destination[aria-current=page]{color:var(--purple);font-weight:750}
  .mobile-nav>.mobile-destination[aria-current=page] svg{stroke-width:2.4}
  .mobile-nav>.mobile-destination[aria-current=page]::after{content:"";position:absolute;bottom:2px;left:25%;right:25%;height:3px;border-radius:2px;background:var(--purple)}
  .mobile-nav>a.mobile-add{grid-column:1/-1;background:transparent;color:var(--purple);padding:4px 20px;min-width:98px;min-height:56px;flex-direction:row;gap:8px;font-size:.78rem;font-weight:700;line-height:1.15}
  .mobile-nav .mobile-add .circle-plus{width:32px;height:32px;min-width:32px}
  .mobile-nav .mobile-add .circle-plus svg{width:19px;height:19px;min-width:19px}
  .mobile-nav .mobile-add>span:last-child{white-space:nowrap}
  .mobile-nav>a:focus-visible{outline-offset:-3px;border-radius:7px}
  .page-footer{padding-bottom:149px}
}
/* Transaction navigation and identity: independent of account/form-label styling. */
.transaction-context{margin-bottom:20px}.entry-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 0;border:0;background:none;color:var(--text);font-size:.95rem;text-decoration:none;cursor:pointer}.entry-back svg{width:18px;height:18px}.transaction-tracker{font-size:1rem;line-height:1.5;color:var(--text);margin:6px 0 16px;overflow-wrap:anywhere}.transaction-tracker strong{font-weight:650}.discard-dialog{max-width:420px;width:calc(100% - 32px)}.discard-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.discard-actions button{min-height:44px;flex:1}

/* GS-031: the modal has no avatar column; let names wrap and align amounts. */
.balance-detail-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);gap:12px;min-height:44px}
.balance-detail-row>span{min-width:0;overflow-wrap:anywhere}
.balance-detail-row>b{min-width:0;max-width:100%;text-align:right;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
/* GS-032: shared transaction Back styling, visible on desktop and phone. */
.page-back{margin-bottom:16px}.page-back svg{transform:rotate(180deg)}

/* Home actions share the card content edge and wrap on narrow screens. */
.home-balance-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px}
.home-balance-actions>.text-button{padding-inline:0;min-height:44px;text-align:left}

/* Top-level mobile pages reuse the Home identity control; desktop keeps its dock. */
.mobile-profile{display:none}
@media(max-width:700px){
  .personal-summary>.quick-entry{display:none}
  /* Reserve the fixed navigation and focus outline when revealing focused controls. */
  html{scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .mobile-profile{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:2px;background:transparent;border:0;border-radius:50%;color:var(--purple)}
  .mobile-profile .alpha-avatar{width:38px;height:38px;display:block;object-fit:cover;border-radius:50%}
  .mobile-profile .alpha-avatar svg{width:100%;height:100%}
  .mobile-profile:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
  .mobile-nav{min-height:72px}
  .page-footer{padding-bottom:93px}
}

/* Keep release information readable on narrow installed-PWA screens. */
.app-about .app-build-label{font-weight:600;overflow-wrap:anywhere}
.app-about .app-build-commit{font-family:monospace;font-size:.85rem;overflow-wrap:anywhere}
.app-about summary{cursor:pointer}

/* GS-060: shared repayment belongs with the tracker heading, before activity. */
.space-heading:has(>.settle-panel){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px}
.space-heading>.transaction-add{grid-column:2;grid-row:1}
.space-heading>.settle-panel{grid-column:1/-1;grid-row:2;width:100%;min-width:0;padding:16px 18px;gap:8px}
.space-heading>.settle-panel h2{font-size:1.1rem;margin:0}
.space-heading>.settle-panel p{margin:0;overflow-wrap:anywhere}
.space-heading .settlement-row{padding:0;display:grid;gap:8px}
.space-heading .settlement-row .light-button{justify-self:start;min-height:48px}
.space-heading>.settle-panel small{display:block;margin:0;font-size:.75rem;line-height:1.45;overflow-wrap:anywhere}
.space-heading>.settle-panel details{width:100%;min-width:0}
.space-heading>.settle-panel summary{cursor:pointer;min-height:44px;align-content:center;font-size:.8rem}
.space-heading>.settle-panel details .settlement-row{padding:8px 0;border-top:1px solid #57583c44}
@media(max-width:700px){
  .space-heading:has(>.settle-panel){grid-template-columns:minmax(0,1fr)}
  .space-heading:has(>.settle-panel)>.transaction-add{grid-column:1;grid-row:3}
}

/* Approved first redesign batch: quiet surfaces, global balance, contextual actions. */
:root[data-appearance=light]{color-scheme:light;--bg:#faf9f6;--surface:#faf9f6;--surface2:#f0ebfa;--line:#e3dfe7;--text:#292630;--muted:#716a7c;--purple:#7045c4;--mint:#226546;--yellow:#7045c4}
html[data-appearance=light] :is(.sidebar,.topbar,.mobile-nav,dialog,input,select,textarea,.profile-dock){background:var(--bg);color:var(--text);border-color:var(--line)}
html[data-appearance=light] :is(.mini-account,.goal-card,.goal-empty,.goal-ideas button,.add-tile,.manual-note,.icon-options button,.segmented,.mini-icon,.space-title>span,.count){background:var(--surface2);color:var(--text);border-color:var(--line)}
html[data-appearance=light] :is(.panel,.metric,.form-panel,.split-box){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-appearance=light] :is(.primary,.save-button){background:var(--purple);color:#fff}
.home-intro{color:var(--muted);margin-bottom:24px}
.tracked-balance{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line);padding:18px 0 24px;margin-bottom:24px;min-width:0}
.tracked-label{font-size:1.05rem;color:var(--muted)}
.tracked-heading{display:flex;align-items:center;gap:8px}
.balance-help{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;padding:0;background:transparent;color:var(--purple);border-radius:50%}
.balance-help>span{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%;font-size:.8rem;font-weight:700}
.balance-help-title{padding-right:32px}
.tracked-amount{font-size:clamp(2.5rem,5.5vw,4rem);line-height:1.15;letter-spacing:-1.5px;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tracked-balance small,.tracked-balance p{color:var(--muted);line-height:1.5;margin:0}
.tracked-balance .text-button{min-height:44px;padding:8px 0;text-align:left}
.tracked-balance .starting-balance{font-weight:400}
.tracked-notes{max-width:100%;overflow-wrap:anywhere;font-size:.85rem;color:var(--muted)}
.tracked-notes summary{cursor:pointer;min-height:44px;align-content:center}
.home-obligations{border-bottom:1px solid var(--line);margin-bottom:16px}
.home-obligations .alpha-position{margin:0;padding:0 0 16px;width:100%;max-width:540px}
.space-grid{display:grid;grid-template-columns:1fr;gap:0}
.tracker-card-wrap{padding:10px 0}
.tracker-card-wrap .space-card{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(80px,auto) 18px;gap:14px;align-items:center;padding:12px 10px;margin-inline:-10px;border:0;border-radius:14px;background:var(--tracker-color,var(--tracker-default-color));color:#242537;box-shadow:none;min-height:0}
/* Match the existing colour picker defaults, including trackers without a saved colour. */
.space-personal{--tracker-default-color:#ececa8}
.space-ongoing{--tracker-default-color:#afe4cf}
.space-trip{--tracker-default-color:#d3bdf4}
.tracker-card-wrap .space-card:hover{transform:none}
.tracker-card-wrap .space-card>svg{width:18px;height:18px;justify-self:end}
.space-card .space-emoji{display:grid;place-items:center;background:#ffffff40;border-radius:14px;width:44px;height:48px;font-size:1.5rem}
.space-card h2{font-size:1.1rem;margin:0 0 5px;overflow-wrap:anywhere}
.space-card p{font-size:.8rem;margin:0;color:#484454}
.tracker-month{text-align:right;max-width:240px;overflow-wrap:anywhere}
.tracker-month strong{font-weight:500;font-size:1.05rem}
.tracker-month small{display:block;color:#484454;font-size:.72rem;margin-top:6px}
.tracker-obligation{display:block;color:#513487;margin-top:8px}
.tracker-quick-entry{justify-content:flex-start;margin-left:58px;border:0;padding:4px 0;min-height:44px;border-radius:0}
.tracker-quick-entry .circle-plus,.transaction-add .circle-plus{width:26px;height:26px;min-width:26px;border-width:2px}
.tracker-quick-entry .circle-plus svg,.transaction-add .circle-plus svg{width:17px;height:17px;min-width:17px}
.space-grid .tracker-add{min-height:64px;flex-direction:row;justify-content:flex-start;border:0;border-radius:0;padding:14px 0;background:transparent;color:var(--purple)}
.tracker-add small{margin-left:auto}.tracker-add .circle-plus{width:28px;height:28px;min-width:28px}
.space-heading{margin-bottom:8px}.space-title{min-width:0}.space-title h1{overflow-wrap:anywhere}.space-title .eyebrow{display:none}
.tracker-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:20px 0}
.tracker-monthly{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;width:100%;margin:0}.tracker-monthly strong{color:var(--text);white-space:nowrap;margin-left:auto}
#main>.settle-panel{background:var(--surface2);color:var(--text);padding:22px;border-radius:20px;display:grid;gap:12px;margin:20px 0}
#main>.settle-panel :is(h2,p,small){color:var(--text);margin:0}
#main>.settle-panel .light-button{background:var(--bg);color:var(--purple);min-height:44px}
.space-tabs{border-bottom:1px solid var(--line);gap:20px}.space-tabs button{background:transparent;border-radius:0;color:var(--muted);min-height:48px}
.space-tabs button.active{background:transparent;color:var(--purple);border-bottom:2px solid var(--purple)}
.form-panel{border:0;border-radius:0;padding:0;max-width:680px}.form-panel label{color:var(--muted)}
.form-panel input,.form-panel select{background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:48px}
.form-panel .amount-input{border-bottom:2px solid var(--purple);margin:20px 0 24px;padding:4px 0}
.form-panel .amount-input input{font-size:clamp(2rem,6vw,3rem);border:0;min-width:0;width:100%;color:var(--text)}
.form-panel .amount-input>span{color:var(--muted);font-size:.9rem}
.form-panel .split-box{border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0;background:transparent}
.form-panel .split-box label,.form-panel .member-splits input[readonly]{color:var(--text);background:transparent}
.form-panel :is(.muted,#split-total,.payer-context){color:var(--muted);font-size:.82rem;line-height:1.6}
.form-panel .check-label input{min-height:24px;width:24px;height:24px;accent-color:var(--purple)}
.form-panel .save-button{border-radius:28px;min-height:48px;margin-bottom:24px}
.form-panel #split-fields>label{display:grid;grid-template-columns:1fr;gap:8px}
.form-panel .amount-input input{text-align:left}
html[data-appearance=light] .metric.featured{background:var(--surface2);color:var(--text)}
html[data-appearance=light] .metric.featured :is(span,small){color:var(--muted)}
.form-panel label,.transaction-main,.account>span{min-width:0;overflow-wrap:anywhere}
.tracker-analysis>summary{min-height:48px;align-content:center;cursor:pointer;color:var(--purple);margin:16px 0}
html[data-appearance=light] :is(.metric>span,.metric small,.panel .eyebrow){color:var(--muted)}
.activity-panel{border:0;border-radius:0;padding:18px 0;background:transparent}
/* Theme-aware status and control colors also cover the warm Default palette. */
:root{--error-text:#ffb4c0;--success-bg:#a5e6cc;--success-text:#23372f;--selected-bg:#38334f}
:root[data-appearance=light]{--error-text:#a51f39;--success-bg:#d2eedf;--success-text:#174d34;--selected-bg:#f0ebfa}
:root[data-appearance=dark]{--error-text:#ffb4c0;--success-bg:#174d34;--success-text:#d2eedf;--selected-bg:#302b42}
html :is(.mobile-settings,.profile-gear,.profile-dock .icon-button){background:transparent;color:var(--purple)}
html :is(.nav-item.active,.nav-item:hover,.segmented button.selected){background:var(--selected-bg);color:var(--purple)}
html #toast{background:var(--success-bg);color:var(--success-text)}
html .form-error{color:var(--error-text)}
html label{color:var(--muted)}
html :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
@media(max-width:700px){
  .topbar{height:64px}.workspace #main{padding-top:12px}
  #main>.back-link{display:inline-flex;align-items:center;min-height:44px;margin-bottom:8px}
  .space-title>div{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;width:100%}
  .space-title h1{flex:1;margin:0}.space-title p{width:100%;margin:0}
  .space-title .text-button{min-height:44px;padding:8px 0;text-align:left}
  .tracked-balance{gap:4px;padding:12px 0 16px;margin-bottom:16px}
  #main>.settle-panel{padding:16px;gap:8px;margin:16px 0}
  #main>.settle-panel .settlement-row{padding:0}
  #main>.settle-panel small{line-height:1.5}
  .tracker-actions{margin:12px 0;gap:4px}
}
@media(max-width:700px){
  .topbar{border:0}.workspace #main{padding:16px 24px}.space-heading .space-title>span{display:none}
  .space-title h1{font-size:1.55rem;letter-spacing:-.4px}.tracked-amount{font-size:clamp(2.35rem,10vw,3.3rem)}
  .tracker-card-wrap .space-card{grid-template-columns:36px minmax(0,1fr) minmax(64px,max-content) 18px;gap:8px}
  .tracker-month strong{white-space:nowrap}
  .tracker-month small{max-width:100px;margin-left:auto}
  .space-card .space-emoji{width:36px;height:44px}.space-card h2{font-size:1rem}.tracker-month strong{font-size:.9rem}
  .tracker-quick-entry{margin-left:44px}.tracker-add small{display:none}
  .space-tabs{gap:18px}.space-tabs button{font-size:.8rem;padding-inline:0}
  .mobile-nav{border-top:1px solid var(--line);box-shadow:none}.mobile-nav>a{font-size:.6rem}
  .form-panel .form-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .form-panel .member-splits input{max-width:100px}
  .transaction-amount{max-width:42%;overflow-wrap:anywhere}.transaction-main strong{overflow-wrap:anywhere}
  .space-tabs{margin:8px 0}
  .tracked-balance{gap:3px;padding:8px 0 12px}
}

/* One section boundary above shared balances; keep per-currency separators. */
.home-obligations .alpha-position{border-top:0}
.home-obligations .position-currency+.position-currency{border-color:var(--line)}
/* Keep labels, values and actions legible when names or amounts wrap. */
.tracker-month,.tracker-monthly strong,.transaction-amount,.alpha-position strong{font-variant-numeric:tabular-nums}
.tracker-monthly>*{min-width:0}
.tracker-monthly strong{text-align:right}
.transaction-amount{white-space:normal;overflow-wrap:anywhere}
.accounts-panel .account{flex-wrap:wrap}
.accounts-panel .account>span:nth-child(2){flex:1 1 72px}
.accounts-panel .account b{flex-shrink:0;margin-left:auto;text-align:right}
#main>.settle-panel h2{font-size:.85rem;font-weight:500;color:var(--muted)}
#main>.settle-panel .settlement-row{display:grid;gap:12px;padding:0;min-width:0}
.settlement-summary{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;min-width:0}
.settlement-direction{flex:1 1 160px;min-width:0;overflow-wrap:anywhere;font-weight:600}
.settlement-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;max-width:100%;font-variant-numeric:tabular-nums}
.settlement-amount strong{font-size:1.25rem;overflow-wrap:anywhere}
#main>.settle-panel .settlement-amount small{font-size:.75rem;color:var(--muted)}
#main>.settle-panel .light-button{justify-self:start;display:inline-flex;align-items:center;gap:12px}
#main>.settle-panel .light-button svg{width:18px;height:18px;flex-shrink:0}
#main>.settle-panel details>summary{cursor:pointer;min-height:44px;align-content:center;color:var(--purple)}
#main>.settle-panel details .settlement-row{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
#main>.settle-panel .settle-note{color:var(--muted)}
html[data-appearance=light] #main>.settle-panel{--muted:#6d6578}
/* Tracker views separate transaction history from repayment information. */
#main>.settle-panel{padding:0;margin:12px 0 24px;border:0;border-radius:0;background:transparent;display:block}
#main>.settle-panel .settlement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#main>.settle-panel h2{font-size:1rem;font-weight:600;color:var(--text)}
#main>.settle-panel .settlement-row{gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.settlement-summary{gap:6px 12px}
#main>.settle-panel .settlement-direction{flex-basis:130px;font-size:1rem;line-height:1.5}
.settlement-amount{gap:5px;font-size:1rem}
.settlement-amount strong{font-size:1rem;font-weight:600}
#main>.settle-panel .settlement-amount small{font-size:.8125rem}
#main>.settle-panel .settlement-status{font-size:.875rem;color:var(--muted)}
#main>.settle-panel .light-button{width:auto;min-height:44px;font-size:.875rem;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--purple)}
#main>.settle-panel .settlement-zero{padding:12px 0;font-size:1rem;line-height:1.6}
.other-balances-heading{font-size:.875rem;font-weight:500;color:var(--muted);margin:20px 0 0}
.tracker-account-details>summary{min-height:48px;align-content:center;cursor:pointer;color:var(--purple);font-size:1rem}
.tracker-account-details .accounts-panel{margin-top:12px}
.personal-balance-note{padding:12px 0}.personal-balance-note h2{font-size:1rem}.personal-balance-note p{line-height:1.6;color:var(--muted)}
.space-tabs{flex-wrap:wrap;overflow:visible;row-gap:0}
.space-tabs button{font-size:.9375rem}
.tracker-actions .transaction-add{min-height:44px}
.activity-panel .panel-header h2{font-size:1rem;margin:0}
.activity-panel{padding-top:8px}
.transaction-count{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:6px}
.transaction-day h3{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:.9375rem;margin:24px 0 8px;line-height:1.5}
.transaction-day h3 span{font-size:.8125rem;font-weight:400;color:var(--muted)}
.activity-panel .transaction{display:grid;grid-template-columns:40px minmax(0,1fr) max-content;align-items:center;gap:12px;width:100%;padding:16px 0;min-height:76px;border-bottom:1px solid var(--line)}
.activity-panel .transaction:last-child{border-bottom:0}
.activity-panel .transaction-emoji{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:12px;background:var(--surface2);color:var(--purple);font-size:1.25rem}
.activity-panel .transaction-emoji svg{width:22px;height:22px}
.activity-panel .transaction-main{min-width:0;text-align:left}
.activity-panel .transaction-main strong{display:block;white-space:normal;overflow:visible;text-overflow:clip;font-size:1rem;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.activity-panel .transaction-main small{font-size:.8125rem;line-height:1.5;margin-top:4px;white-space:normal;overflow-wrap:anywhere}
.activity-panel .transaction-amount{max-width:none;min-width:0;font-size:1rem;font-weight:600;line-height:1.45;text-align:right;white-space:nowrap}
.activity-panel .transaction-amount small{font-size:.75rem;font-weight:400;margin-top:4px}
@media(max-width:700px){
  .activity-panel .panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
  .activity-panel .transaction{gap:10px}
  .activity-panel .transaction-long-amount .transaction-main{grid-column:2/-1}
  .activity-panel .transaction-long-amount .transaction-amount{grid-column:2/-1;justify-self:end}
}
@media(max-width:700px){
  .activity-panel .panel-header .text-button{padding-inline:0;min-height:44px;white-space:nowrap;text-align:left}
  .space-title>div{align-items:baseline}
  .tracked-amount-long{font-size:clamp(1.25rem,6.4vw,2.5rem);letter-spacing:-.5px;white-space:nowrap}
}

/* Quiet tracker history: controls stay available while the list carries less text. */
.tracker-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-bottom:16px}
.tracker-header h1{font-size:clamp(1.35rem,2.6vw,2rem);letter-spacing:-.6px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.tracker-back,.tracker-options{width:44px;height:44px;display:grid;place-items:center;background:var(--surface2);color:var(--purple)}
.tracker-options{position:relative;font-size:1.75rem;line-height:1}
.tracker-pending{position:absolute;right:0;top:0;min-width:18px;height:18px;padding:2px 4px;border-radius:12px;background:var(--purple);color:var(--bg);font-size:.6875rem;font-weight:700;line-height:14px}
.tracker-option-actions{display:grid;gap:4px}
.tracker-option-actions button{min-height:44px;text-align:left;justify-self:stretch}
.tracker-actions{position:relative;display:block;min-height:44px;margin:8px 0 16px;padding:0}
.tracker-actions>.transaction-add{position:absolute;right:0;top:0;margin:0;min-height:44px;font-size:.875rem}
.tracker-actions .tracker-analysis{padding:0;margin:0;border:0}
.tracker-actions .tracker-analysis>summary{width:fit-content;max-width:calc(100% - 140px);min-height:44px;padding:10px 4px;align-content:center;font-size:.875rem}
.tracker-summary-content{padding-top:16px}
.tracker-summary-content .tracker-monthly{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.9375rem}
.activity-panel{padding-top:0}
.transaction-day h3{font-size:.875rem;align-items:center;margin:20px 0 4px}
.transaction-day:first-child h3{margin-top:0}
.transaction-day h3 .day-count{font-size:.75rem;min-width:24px;padding:2px 7px;text-align:center;border-radius:12px;background:var(--surface2);color:var(--text);line-height:1.4}
.entry-count-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.activity-panel .transaction{grid-template-columns:32px minmax(0,1fr) max-content;gap:12px;min-height:68px;padding:12px 0}
.activity-panel .transaction-emoji{width:32px;height:32px;min-width:32px;border-radius:10px;font-size:1.125rem}
.activity-panel .transaction-emoji svg{width:20px;height:20px}
.activity-panel .transaction-main strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:1rem;line-height:1.4}
.activity-panel .transaction-main small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.4;margin-top:3px}
.transaction-facts{display:grid;gap:8px;margin:20px 0}
.transaction-facts>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
.transaction-facts dt{color:var(--muted)}
.transaction-facts dd{margin:0;overflow-wrap:anywhere}
#dialog .detail-amount{max-width:100%;overflow-wrap:anywhere}
@media(max-width:700px){.tracker-header{gap:6px;margin-bottom:12px}.activity-panel .transaction{gap:10px}#dialog .detail-amount{font-size:clamp(1.25rem,6vw,2rem)}}


/* Home overview: one balance-management entry and compact, explicit shared totals. */
.home-overview{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid var(--line)}
.home-overview .tracked-balance{border:0;padding:0;margin:0 0 8px;gap:2px}
.home-overview .tracked-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;width:100%}
.home-overview .tracked-controls .text-button{min-height:44px}
.home-overview .home-obligations{border:0;margin:0}
.home-overview .home-obligations .alpha-position{border:0;margin:0;padding:0;width:100%;max-width:540px}
.home-overview .alpha-position>.label{font-size:.8125rem;color:var(--muted)}
.home-overview .position-currency{min-width:0}
.home-overview .position-currency>small{display:block;color:var(--muted);opacity:1;font-size:.75rem;line-height:1.5}
.home-overview .position-currency p{margin:3px 0;gap:12px;line-height:1.45}
.home-overview .position-currency strong{min-width:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-trackers-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:12px 0 4px}
.home-trackers-heading h2{margin:0}
.home-trackers-heading .home-people-entry{min-height:44px;padding:8px 12px;font-size:.875rem;max-width:100%;white-space:normal}
@media(min-width:701px){.home-overview{max-width:680px}.home-overview .tracked-controls{max-width:540px}}

/* Selected Home soft card: net headline, separate per-currency details. */
.home-overview:has(.home-shared-net){border-bottom:0}
.home-shared-net{display:block;width:100%;max-width:540px}
.home-shared-net .shared-net-card{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:58px;margin:0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--mint) 20%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--mint) 7%,var(--bg));color:var(--text);font-size:14px;line-height:1.3;text-align:left;box-shadow:none;transition:background-color 160ms ease,transform 120ms ease}
.home-shared-net .shared-net-card+.shared-net-card{margin-top:8px}
.shared-net-title{font-size:13px;font-weight:600;white-space:nowrap}
.shared-net-currency{color:var(--muted);font-size:11px;font-weight:500;flex:none}
.shared-net-value{display:flex;flex:1;justify-content:flex-end;align-items:center;gap:5px;min-width:0;font-variant-numeric:tabular-nums}
.shared-net-value strong{font-size:16px;line-height:1.35;min-width:0;overflow-wrap:anywhere;font-weight:700}
.shared-net-card .shared-net-arrow{width:20px;height:20px;flex:none;overflow:visible}
.shared-net-chevron{width:14px;height:14px;flex:none;color:var(--muted);margin-left:1px}
.shared-net-positive{color:#a5e6cc}
.shared-net-negative{color:#ffb4b4}
.shared-net-zero{color:var(--text)}
[data-appearance="light"] .shared-net-positive{color:#146b45}
[data-appearance="light"] .shared-net-negative{color:#a51e38}
[data-appearance="light"] .shared-net-currency{color:color-mix(in srgb,var(--muted) 85%,var(--text))}
.shared-net-empty{margin-left:auto;color:var(--muted);font-size:13px;min-width:0}
.home-shared-net .shared-net-long{display:grid;grid-template-columns:auto 1fr 14px;gap:8px 10px}
.shared-net-long .shared-net-currency{justify-self:end}
.shared-net-long .shared-net-value{grid-row:2;grid-column:1/3;justify-content:flex-start}
.shared-net-long .shared-net-chevron{grid-column:3;grid-row:1/3}
.home-shared-net .shared-net-card:active{transform:translateY(1px)}
@media(hover:hover){.home-shared-net .shared-net-card:hover{background:color-mix(in srgb,var(--mint) 12%,var(--bg))}}
@media(prefers-reduced-motion:reduce){.home-shared-net .shared-net-card{transition:none}.home-shared-net .shared-net-card:active{transform:none}}
.home-shared-details{min-width:0}
dialog:has(.home-shared-details)>.dialog-close{min-height:44px;min-width:44px}
.home-shared-details h2{font-size:1.15rem;margin:0 38px 20px 0;overflow-wrap:anywhere}
.home-shared-details h3{font-size:1rem;margin:20px 0 10px}
.shared-net-totals{margin:0 0 16px}
.shared-net-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:6px 0}
.shared-net-totals dt{color:var(--muted)}
.shared-net-totals dd{margin:0;text-align:right;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.shared-net-totals>div:last-child{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.shared-net-explanation{font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.shared-net-people{list-style:none;margin:0;padding:0}
.shared-net-people li{padding:12px 0;min-width:0}
.shared-net-people li+li{border-top:1px solid var(--line)}
.shared-net-person{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.shared-net-person>span{flex:1 1 140px;min-width:0;overflow-wrap:anywhere}
.shared-net-person small{color:var(--muted)}
.shared-net-person strong{min-width:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.shared-net-people .text-button{display:flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:8px 0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.shared-net-people .shared-net-chevron{width:14px;height:14px}

/* Add/Edit entry presentation. Existing form state and submit behavior stay intact. */
.expense-entry-header{max-width:680px;margin-bottom:20px}
.expense-entry-header .transaction-context{margin:0 0 12px}
.expense-entry-header .entry-back{margin:0;min-height:44px}
.expense-entry-header .transaction-tracker{margin:4px 0 0;font-size:.85rem;line-height:1.45}
.expense-entry-header:not(.expense-edit-header) .transaction-context{display:flex;align-items:center;gap:16px}
.expense-entry-header:not(.expense-edit-header) .transaction-tracker{flex:1;text-align:right;min-width:0}
.expense-entry-header .page-heading{margin:0}
.expense-entry-header :is(h1,h2){font-size:clamp(1.4rem,3vw,1.75rem);line-height:1.2;margin:0}
.expense-entry-header .page-heading>p{margin:8px 0 0;font-size:.85rem;line-height:1.5}
#main>.expense-form-panel{background:transparent}
.expense-form-panel>.expense-type,.expense-entry-form label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;color:var(--muted);font-size:.82rem;line-height:1.45}
.expense-entry-form,.expense-entry-form .form-fields{gap:16px}
.expense-form-panel .amount-input{margin:12px 0 18px;padding:0;gap:12px}
.expense-form-panel .amount-input input{max-width:none;min-height:58px}
.expense-form-panel .amount-input>span{align-self:center;margin:0;flex:none}
.expense-form-panel .payer-context{margin:-10px 0 0}
.expense-entry-form :is(input,select),.expense-form-panel>.expense-type select{box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:48px;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:1rem}
.expense-entry-form input:focus-visible,.expense-entry-form select:focus-visible,.expense-type select:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.expense-category{display:grid;gap:6px;min-width:0}
.expense-field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-width:0}
.expense-field-heading label{color:var(--muted);font-size:.82rem;line-height:1.45}
.expense-field-heading .text-button{padding:8px 0;min-height:44px;text-align:right;font-size:.78rem;white-space:normal}
.expense-category>[data-action="categories"]{justify-self:start;padding:4px 0;min-height:44px;font-size:.78rem;text-align:left}
.expense-form-panel .form-two{align-items:start;grid-template-columns:minmax(0,1fr)}
.expense-form-panel .split-box{padding:8px 0 0;border-top:0}
.expense-form-panel .split-box .check-label{flex-direction:row;align-items:center;color:var(--text);min-height:44px}
.expense-form-panel .check-label input{flex:none;width:24px;height:24px;min-height:24px;padding:0;border:0}
.expense-form-panel .split-box #split-fields{margin-top:12px}
.expense-entry-form .member-splits{display:grid;gap:8px;margin:12px 0 0}
.expense-entry-form .member-splits label{display:grid;grid-template-columns:minmax(0,1fr) 136px;align-items:center;gap:12px;color:var(--text)}
.expense-entry-form .member-splits label>span{min-width:0;overflow-wrap:anywhere}
.expense-entry-form .member-splits input{width:136px;max-width:136px;text-align:right;font-variant-numeric:tabular-nums;padding:10px 4px}
.expense-entry-form .member-splits input[readonly]{border-color:transparent;background:transparent;color:var(--text)}
.expense-entry-form :is(.muted,#split-total){font-size:.82rem;line-height:1.5;margin:12px 0 0;color:var(--muted)}
.expense-entry-form .form-error:empty{display:none}
.expense-entry-form .form-error{margin:0;overflow-wrap:anywhere}
.expense-entry-form .save-button{align-self:stretch;width:100%;min-height:48px;margin:4px 0 0;border-radius:24px}
.expense-entry-form>.muted{margin:0}
.expense-edit-splits{min-width:0;padding-top:4px;border:0}
.expense-edit-splits>p{font-size:.82rem;line-height:1.5;color:var(--muted);margin:0}
#dialog:has(.expense-edit-header){max-height:calc(100dvh - 32px);overflow:auto;scroll-padding:16px}
#dialog:has(.expense-edit-header)>[data-action="close"]{width:44px;height:44px}
.expense-edit-header{margin:0 0 16px}
.expense-edit-header .transaction-context{margin-bottom:12px}
.expense-edit-header .entry-back{padding-right:44px}
.expense-edit-header .transaction-tracker{margin-top:4px}
.expense-edit-header+.expense-entry-form{margin-top:0}
.edit-category-dialog>p{min-width:0;overflow-wrap:anywhere}
@media(min-width:760px){.expense-form-panel .form-two{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.expense-form-panel .expense-date>span{display:flex;align-items:center;min-height:44px}}
@media(max-width:360px){.expense-entry-form .member-splits label{grid-template-columns:minmax(0,1fr) 124px;gap:8px}.expense-entry-form .member-splits input{width:124px;max-width:124px;font-size:.9rem}.expense-field-heading .text-button{font-size:.74rem}}
/* Approved Amount-first Add/Edit surface; fields remain in the live form. */
.entry-sr{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#main>.amount-first-header,#main>.amount-first-panel{max-width:480px;margin-left:auto;margin-right:auto}
#main>.amount-first-panel{padding:0;border:0;background:transparent;box-shadow:none}
.amount-first-header .transaction-context{display:flex!important;align-items:center;gap:12px!important;margin-bottom:0!important}
.amount-first-header .transaction-context>div{min-width:0;flex:1}
.amount-first-header .entry-back{width:40px;min-width:40px;min-height:44px;padding:0!important;display:flex;align-items:center;justify-content:center;font-size:26px}
.amount-first-header .entry-back svg{width:20px;height:20px}
.amount-first-header .transaction-tracker{text-align:left!important;display:flex;gap:7px;align-items:center;line-height:1.4;font-size:.78rem!important;margin:7px 0 0!important;overflow-wrap:anywhere}
.amount-first-header :is(h1,h2){font-size:1.55rem!important;letter-spacing:-.6px}
.entry-tracker-dot{width:7px;height:7px;flex:none;border-radius:50%}
.amount-first-form{display:flex!important;flex-direction:column;gap:0!important;min-width:0;margin:0!important}
.amount-first-form .entry-primary{padding:28px 0 22px;min-width:0}
.amount-first-form .entry-total{display:flex;flex-direction:row;align-items:baseline;gap:12px;color:var(--text);min-width:0}
.amount-first-form .entry-currency{font-size:.82rem;color:var(--muted);flex:none}
.amount-first-form .entry-total input{border:0!important;border-radius:0;background:transparent;min-width:0;width:100%;min-height:76px;padding:0;font-size:clamp(3.2rem,16vw,4rem);font-weight:600;line-height:1.15;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.amount-first-form .entry-total input.entry-amount-long{font-size:clamp(1.65rem,5vw,2.65rem);letter-spacing:-1px}
.amount-first-form .entry-description{margin-top:12px}
.amount-first-form .entry-description input{border:0;border-radius:0;background:transparent;font-size:1.08rem;line-height:1.5;padding:5px 0;min-height:44px;letter-spacing:-.2px}
.amount-first-form .entry-description input::placeholder{color:var(--muted);opacity:1;font-size:1rem}
.amount-first-form .entry-category select{border:0;border-radius:14px;background:var(--surface2);min-height:55px;padding:12px 14px;font-size:.94rem;max-width:100%}
.amount-first-form .entry-compact-summary{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;padding:15px 0;margin:3px 0 0;min-height:62px;text-align:left;font-size:.78rem;color:var(--muted);background:none;border:0}
.entry-people{display:flex;align-items:center;flex:none;padding-right:2px}
.entry-people .alpha-avatar,.entry-extra-people{width:29px!important;height:29px!important;flex:none;border:2px solid var(--bg);font-size:10px;border-radius:50%;overflow:hidden}
.entry-people .alpha-avatar+.alpha-avatar,.entry-extra-people{margin-left:-9px}
.entry-people .alpha-avatar .avatar-initials{font-size:9px;line-height:1}
.entry-extra-people{display:grid;place-items:center;background:var(--surface2);color:var(--text)}
.entry-compact-text{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;line-height:1.5}
.entry-compact-text>span:last-child{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.entry-compact-summary>svg{width:15px;height:15px;flex:none;margin-left:auto}
.amount-first-form .entry-details{border:0;background:none;padding:0;min-width:0}
.amount-first-form .entry-details>summary{display:flex;align-items:center;gap:9px;list-style:none;width:max-content;max-width:100%;cursor:pointer;color:var(--purple);font-size:.83rem;min-height:44px;padding:5px 0}
.amount-first-form .entry-details>summary::-webkit-details-marker{display:none}
.entry-details>summary svg,.entry-details>summary>span{width:15px;height:15px;display:inline-flex;align-items:center;justify-content:center;transition:transform .12s}
.entry-details[open]>summary svg,.entry-details[open]>summary>span{transform:rotate(90deg)}
.entry-details>summary:focus-visible{outline:2px solid var(--yellow);outline-offset:3px;border-radius:4px}
.entry-detail-fields{display:flex;flex-direction:column;gap:18px;padding:15px 0 8px;min-width:0}
.amount-first-form .entry-detail-fields label{font-size:.82rem}
.amount-first-form .entry-detail-fields :is(input:not([type=checkbox]),select){padding:11px 12px;border:0;border-radius:10px;background:var(--surface2);font-size:.94rem;min-height:46px}
.amount-first-form .payer-context{margin:-10px 0 0;color:var(--muted);font-size:.78rem}
.amount-first-form .entry-detail-fields .expense-date{gap:6px}
.amount-first-form .entry-detail-fields .check-label{display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.amount-first-form .entry-detail-fields .check-label input{width:24px;height:24px;min-height:24px;flex:none;accent-color:var(--purple)}
.amount-first-form .member-splits label{grid-template-columns:minmax(0,1fr) 132px;gap:12px}
.amount-first-form .member-splits input{width:132px;max-width:132px}
.amount-first-form .member-splits input[readonly]{background:transparent}
.amount-first-form .split-box{padding:0;border:0}
.amount-first-form .entry-category-actions{display:flex;flex-wrap:wrap;gap:6px 20px}
.amount-first-form .entry-detail-fields .text-button{align-self:flex-start;min-height:44px;white-space:normal;text-align:left;padding:8px 0;font-size:.83rem}
.entry-original{margin:0;display:grid;gap:12px;font-size:.83rem;line-height:1.5}
.entry-original>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px}
.entry-original dt{color:var(--muted)}.entry-original dd{margin:0;overflow-wrap:anywhere}
.amount-first-form .entry-actions{display:flex;flex-direction:column;gap:8px;margin-top:38px;padding-bottom:4px}
.amount-first-form .entry-actions .save-button{border-radius:14px;min-height:52px;margin:0}
.amount-first-form .entry-cancel{align-self:center;min-height:44px;color:var(--muted);font-size:.84rem;padding:8px 14px}
.amount-first-form .form-error{line-height:1.5;margin:0 0 10px}
#dialog:has(.amount-first-form){width:min(520px,calc(100vw - 28px));padding:26px;max-height:calc(100dvh - 28px)}
#dialog .amount-first-header{padding-right:22px;margin-bottom:8px}
#dialog .amount-first-form .entry-primary{padding-top:22px}
#dialog .entry-people .alpha-avatar,#dialog .entry-extra-people{border-color:var(--surface)}
@media(max-width:360px){.amount-first-form .entry-total{gap:8px}.amount-first-form .entry-currency{font-size:.73rem}.amount-first-form .entry-total input{font-size:3rem}.amount-first-form .entry-total input.entry-amount-long{font-size:1.8rem}.amount-first-form .member-splits label{grid-template-columns:minmax(0,1fr) 116px;gap:8px}.amount-first-form .member-splits input{width:116px;max-width:116px;padding:10px 5px!important;font-size:.84rem}.entry-people .alpha-avatar,.entry-extra-people{width:26px!important;height:26px!important}.amount-first-form .entry-compact-summary{gap:8px;font-size:.73rem}.entry-compact-text{gap:5px}#dialog:has(.amount-first-form){padding:20px}.amount-first-header :is(h1,h2){font-size:1.35rem!important}}
.desktop-home{display:none}
.home-participant-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.home-participant-list li{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}
@media(min-width:701px){
  /* The selected gallery is a desktop composition; phone content keeps its layout. */
  .phone-home{display:none}
  .desktop-home{display:block;min-width:0}
  body:has(.desktop-home) .sidebar{position:relative;inset:auto;width:100%;min-height:94px;flex-direction:row;align-items:center;gap:24px;padding:18px 3%;border-right:0;border-bottom:1px solid var(--line);background:var(--surface)}
  body:has(.desktop-home) .sidebar .brand{margin:0 28px 0 0;flex:none}
  body:has(.desktop-home) .sidebar .brand+nav{display:flex;align-items:center;gap:8px;margin-top:0}
  body:has(.desktop-home) .sidebar .nav-item{margin:0;white-space:nowrap;font-size:.8rem;padding:13px 12px}
  body:has(.desktop-home) .sidebar>.nav-item{background:none;border:0}
  body:has(.desktop-home) .profile-dock{margin:0 0 0 auto;padding:0;border:0;min-width:0}
  body:has(.desktop-home) .profile-identity>span:last-child{display:none}
  body:has(.desktop-home) .workspace{margin-left:0}
  body:has(.desktop-home) .topbar{display:none}
  body:has(.desktop-home) main{max-width:1344px;padding:38px 48px 32px}
  .home-desktop-title{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
  .home-desktop-title small{color:var(--muted);font-size:.625rem;font-weight:600}
  .home-desktop-title h1{font-size:1.9rem;letter-spacing:0;margin:8px 0 0}
  .home-desktop-title time{font-size:.75rem;color:var(--muted);padding-bottom:6px}
  .home-desktop-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;margin-bottom:20px}
  .desktop-home .tracked-balance,.desktop-home .home-shared-net .shared-net-card{border:1px solid var(--line);border-radius:24px;background:var(--surface);padding:20px 26px;margin:0;min-height:178px;gap:0}
  .desktop-home .tracked-balance{background:var(--surface2)}
  .desktop-home .tracked-heading{min-height:28px}
  .desktop-home .tracked-label{font-size:.875rem}
  .desktop-home .balance-help{width:44px;height:44px;margin-block:-8px}
  .desktop-home .balance-help>span{width:15px;height:15px;font-size:.625rem}
  .desktop-home .tracked-amount{font-size:3rem;font-weight:700;line-height:1.2;letter-spacing:-1px;margin:4px 0 8px}
  .desktop-home .tracked-amount-long{font-size:clamp(1.4rem,3vw,2.6rem)}
  .desktop-home .tracked-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto}
  .desktop-home .tracked-controls small{font-size:.625rem}
  .desktop-home .tracked-controls .text-button{font-size:.75rem;min-height:44px;padding:0}
  .desktop-home .home-obligations{border:0;margin:0;min-width:0}
  .desktop-home .home-shared-net{max-width:none;display:grid;gap:12px}
  .desktop-home .home-shared-net .shared-net-card{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;width:100%;height:auto;text-align:left;gap:12px}
  .desktop-home .shared-net-title{font-size:.875rem;font-weight:400}
  .desktop-home .shared-net-currency{justify-self:end}
  .desktop-home .shared-net-value{grid-column:1/-1;justify-content:flex-start;gap:14px}
  .desktop-home .shared-net-value strong{font-size:2.6rem}
  .desktop-home .shared-net-long .shared-net-value strong{font-size:clamp(1.3rem,3vw,2.4rem)}
  .desktop-home .shared-net-card .shared-net-arrow{width:32px;height:36px;stroke-width:4;stroke-linecap:square;stroke-linejoin:miter}
  .desktop-home .shared-net-chevron{grid-column:2;grid-row:3;justify-self:end}
  .desktop-home .shared-net-empty{grid-column:1/-1;margin:0}
  .home-desktop-trackers-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 16px;min-height:44px}
  .home-desktop-trackers-heading h2{font-size:1.05rem;margin:0}
  .home-heading-add{font-size:.75rem;min-height:44px}
  .home-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:24px}
  .home-tracker-pair{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px;min-width:0;min-height:352px}
  .home-portrait{position:relative;min-width:0;display:flex;flex-direction:column;padding:22px;border-radius:22px;background:var(--tracker-color,var(--tracker-default-color));color:#242537;gap:24px}
  .home-tracker-link{position:absolute;inset:0;border-radius:22px}
  .home-tracker-top{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;gap:12px;align-items:center;pointer-events:none}
  .home-tracker-top>svg{width:18px;height:18px}
  .home-tracker-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff;font-size:1.25rem}
  .home-tracker-top small{display:block;text-transform:uppercase;font-size:.5rem;letter-spacing:.4px;margin-bottom:5px}
  .home-tracker-top h2{font-size:.95rem;line-height:1.3;font-weight:700;margin:0;overflow-wrap:anywhere}
  .home-tracker-total{display:block;margin-top:auto;padding-top:60px;pointer-events:none}
  .home-tracker-total strong{display:block;font-size:2rem;line-height:1.15;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .home-tracker-total.home-total-long strong{font-size:clamp(1.05rem,1.8vw,1.5rem)}
  .desktop-home .home-shared-net .shared-net-card+.shared-net-card{margin-top:0}
  .desktop-home .shared-net-meaning{grid-column:1;grid-row:3;font-size:.6875rem;color:var(--muted)}
  .home-tracker-total small{display:block;color:#484454;font-size:.6875rem;line-height:1.4;margin-top:10px}
  .home-tracker-people{position:relative;pointer-events:none}
  .home-tracker-people button{position:relative;pointer-events:auto;display:flex;align-items:center;min-height:44px;min-width:44px;padding:0;border:0;background:none;border-radius:8px}
  .home-tracker-people button>span{display:flex;align-items:center}
  .home-tracker-people .alpha-avatar,.home-member-overflow{width:32px!important;height:32px!important;min-width:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #fff;border-radius:50%;font-size:.625rem;background:#fff;color:#242537}
  .home-tracker-people .alpha-avatar+*,.home-member-overflow{margin-left:-5px}
  .home-tracker-people>small{display:block;font-size:.6875rem;line-height:1.5;margin-top:4px;overflow-wrap:anywhere;color:#484454}
  .home-portrait :focus-visible{outline:3px solid #513487;outline-offset:3px}
  .home-tracker-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 5px;border:1px solid color-mix(in srgb,var(--purple) 35%,var(--line));border-radius:22px;color:var(--purple);min-width:0}
  .home-tracker-add .circle-plus{width:32px;height:32px;min-width:32px;border-width:1px}
  .home-tracker-add strong{font-size:.875rem}
  .home-tracker-add small{font-size:.5625rem;color:var(--muted);max-width:100%;overflow-wrap:anywhere;text-align:center}
  .home-create-tracker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:352px;border:1.5px solid color-mix(in srgb,var(--purple) 65%,var(--line));border-radius:22px;background:transparent;color:var(--purple);padding:24px}
  .home-create-tracker .circle-plus{border-width:1.5px;width:52px;height:52px}
  .home-panel{border:1px solid var(--line);border-radius:22px;background:color-mix(in srgb,var(--surface) 65%,var(--bg));padding:18px 22px;margin-bottom:24px;min-width:0}
  .home-panel h2{font-size:1rem;margin:0 0 6px}
  .home-panel small{font-size:.6875rem;color:var(--muted)}
  .home-recent header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:4px}
  .home-recent header>div{min-width:0;flex:1 1 120px;overflow-wrap:anywhere}
  .home-recent header small{overflow-wrap:anywhere}
  .home-recent header .text-button{font-size:.6875rem;min-height:44px;flex:none}
  .home-recent-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1fr) auto;gap:16px;align-items:center;min-height:44px;width:100%;padding:10px 0;border:0;background:none;text-align:left;color:var(--text)}
  .home-recent-row+.home-recent-row{border-top:1px solid var(--line)}
  .home-recent-row strong{font-size:.75rem;font-weight:400;overflow-wrap:anywhere}
  .home-recent-row small{font-size:.625rem;min-width:0;overflow-wrap:anywhere}
  .home-recent-row b{font-size:.8125rem;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .home-record-currency{font-size:.5625rem;color:var(--muted);font-weight:400}
  .home-fact{padding:22px 24px}
  .home-category-fact{margin-top:20px}
  .home-category-fact>div{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-top:10px}
  .home-category-fact strong{font-size:1.125rem;overflow-wrap:anywhere}
  .home-category-fact b{font-size:1.6rem;overflow-wrap:anywhere;text-align:right}
  .home-category-fact p{font-size:.6875rem;margin:22px 0 0;overflow-wrap:anywhere}
  .home-single{max-width:896px;margin:auto}
  .home-single-grid{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:28px;align-items:stretch}
  .home-single-left{padding-top:60px;min-width:0}
  .home-single-left .home-desktop-balances{display:block;margin-bottom:18px}
  .home-single-left .home-obligations{margin-top:18px}
  .home-single-right{min-width:0;display:flex;flex-direction:column}
  .home-single-right .home-desktop-trackers-heading{margin-top:0}
  .home-single-right .home-gallery{grid-template-columns:minmax(0,1fr);flex:1;margin-bottom:24px}
  .home-single .home-recent{padding:10px 18px}
  .home-single .home-recent-row{grid-template-columns:minmax(0,1fr) minmax(65px,.8fr) minmax(60px,auto);gap:10px}
  .home-single .home-recent-row small{font-size:.5625rem}
  .home-single .home-fact{margin-top:12px}
}
@media(min-width:701px) and (max-width:1150px){
  body:has(.desktop-home) .sidebar{flex-wrap:wrap;gap:8px 16px;padding:16px 24px}
  body:has(.desktop-home) .sidebar .brand{margin-right:10px}
  body:has(.desktop-home) .sidebar .nav-item{font-size:.75rem;padding:10px 8px}
  body:has(.desktop-home) main{padding:32px 28px}
  .home-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .home-single-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
  .home-tracker-pair{grid-template-columns:minmax(0,1fr) 64px}
  .home-portrait{padding:18px}
  .home-single .home-recent-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px}
  .home-single .home-recent-row small{grid-column:1;grid-row:2}
  .home-single .home-recent-row b{grid-row:1/3;grid-column:2}
}

/* GS-017: retain and explain invalid amount text without rewriting it. */
.amount-input-error{display:block;grid-column:1/-1;color:var(--error-text);font-size:.82rem;font-weight:500;line-height:1.4;letter-spacing:normal;text-align:left;white-space:normal}
.amount-input-error[hidden]{display:none}
input[inputmode="decimal"][aria-invalid="true"]{outline:2px solid var(--error-text);outline-offset:2px}

.amount-first-form .entry-total{flex-wrap:wrap}
.amount-first-form .entry-total .amount-input-error{flex-basis:100%;margin:0}
.amount-first-form .entry-total input{flex:1 1 0}

/* Quiet Rows: phone Home only; desktop keeps its existing presentation. */
@media(max-width:700px){
 .phone-home .home-overview{display:grid;gap:12px;margin-bottom:20px}
 .phone-home .tracked-balance{background:var(--surface);border-radius:var(--radius);padding:18px}
 .phone-home .tracked-amount{display:block;white-space:normal;overflow-wrap:anywhere;font-size:clamp(1.75rem,8vw,2.7rem)}
 .phone-home .quiet-balance-code{font-size:1rem;color:var(--muted);white-space:nowrap}
 .phone-home .tracked-controls{justify-content:flex-start;margin-top:12px}
 .phone-home .home-trackers-heading{flex-wrap:wrap;gap:12px}
 .phone-home .quiet-shared{padding:14px 16px;background:var(--surface);border-radius:var(--radius)}
 .phone-home .quiet-shared h2{font-size:1rem;color:var(--muted);margin:0 0 4px}
 .phone-home .quiet-net{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:8px;width:100%;min-height:48px;border:0;border-left:3px solid currentColor;background:none;text-align:left;padding:8px 0 8px 10px}
 .phone-home .quiet-net-amount{display:flex;align-items:center;gap:6px;min-width:0}
 .phone-home .quiet-net strong{font-size:1.5rem;overflow-wrap:anywhere}
 .phone-home .quiet-net small{grid-column:1/-1;color:var(--muted)}
 .phone-home .quiet-tracker-list{display:grid;gap:10px}
 .phone-home .quiet-tracker{display:grid;grid-template-columns:minmax(0,1fr) minmax(82px,26%);grid-template-rows:auto auto;column-gap:10px;background:var(--surface);border-radius:var(--radius);padding:14px;min-width:0}
 .phone-home .quiet-tracker-open{display:flex;align-items:flex-start;gap:8px;min-height:44px;min-width:0}
 .phone-home .quiet-tracker-open h2{font-size:1.05rem;line-height:1.45;overflow-wrap:anywhere;flex:1;margin:0}
 .phone-home .quiet-tracker-open>svg{width:18px;margin-top:4px;color:var(--muted)}
 .phone-home .quiet-members{grid-column:1;min-width:0;margin-top:16px}
 .phone-home .quiet-members button{border:0;background:none;padding:0;min-height:44px;max-width:100%}
 .phone-home .quiet-members button>span{display:flex;align-items:center;flex-wrap:wrap}
 .phone-home .quiet-members .alpha-avatar,.phone-home .quiet-overflow{width:28px;height:28px;flex-shrink:0;border-radius:50%;margin-right:-3px;border:1px solid var(--surface);font-size:.65rem}
 .phone-home .quiet-overflow{display:grid;place-items:center;background:var(--surface2);color:var(--text);margin-left:3px;width:auto;min-width:28px;padding:0 4px}
 .phone-home .quiet-private{display:flex;align-items:center;min-height:44px;color:var(--muted)}
 .phone-home .quiet-private svg{width:20px;height:20px}
 .phone-home .quiet-add{grid-column:2;grid-row:1/3;border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:8px 0 8px 10px;text-align:center;font-size:.85rem;font-weight:600;overflow-wrap:anywhere;min-height:44px}
 .phone-home .quiet-new{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--muted);border-radius:14px;background:none;min-height:48px;padding:12px}
 .phone-home .quiet-privacy-entry{display:flex;align-items:center;justify-content:center;gap:10px;background:none;border:0;min-height:48px;margin:16px auto 8px;padding:8px;color:var(--muted);text-align:center}
 dialog:has(.quiet-privacy),dialog:has(.quiet-shared-details){max-height:calc(100dvh - 32px);overflow:auto;width:calc(100% - 32px);max-width:460px}
 .quiet-privacy h2,.quiet-shared-details h2{padding-right:44px;overflow-wrap:anywhere}
 .quiet-privacy p,.quiet-shared-details p{color:var(--text)}
 .quiet-close{width:100%;margin-top:20px;min-height:44px;white-space:normal}
 .quiet-detail-amount{display:block;font-size:2rem;overflow-wrap:anywhere;margin:14px 0 8px}
 .quiet-detail-amount small{font-size:.9rem;color:var(--muted)}
 .quiet-debts{list-style:none;padding:0;display:grid;gap:8px;margin:20px 0}
 .quiet-debts button{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:10px;width:100%;border:0;background:var(--bg);border-radius:12px;padding:14px;text-align:left;min-height:44px;overflow-wrap:anywhere}
 .quiet-debts button>small{grid-column:1/-1;color:var(--muted)}
 .quiet-shared-details .quiet-detail-note{color:var(--muted);font-size:.85rem;margin-top:24px}
}
@media(max-width:700px){.phone-home .quiet-identity{display:none}}
@media(min-width:360px) and (max-width:700px){
 .phone-home .quiet-tracker{grid-template-columns:38px minmax(0,1fr) minmax(82px,26%)}
 .phone-home .quiet-identity{display:flex;align-items:flex-start;justify-content:center;grid-column:1;grid-row:1/3;padding-top:2px;color:var(--mint)}
 .phone-home .quiet-identity>svg,.phone-home .quiet-identity .alpha-avatar{width:34px;height:34px}
 .phone-home .quiet-tracker-open,.phone-home .quiet-members{grid-column:2}
 .phone-home .quiet-add{grid-column:3}
}

/* Secondary estimate; the main account amount retains its existing styling. */
.tracked-balance .settling-estimate{border-top:1px solid var(--line);margin-top:12px;padding-top:10px;display:grid;gap:3px;min-width:0}
.settling-estimate-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.88rem}
.settling-estimate-heading .balance-help{min-width:44px;min-height:44px}
.settling-estimate-amount{font-size:1.2rem;line-height:1.4;overflow-wrap:anywhere}
.settling-estimate-amount small{font-size:.75rem;font-weight:500}
.settling-estimate>small{font-size:.75rem;color:var(--muted)}

/* GS-060: one compact entry before tracker tabs, using existing theme tokens. */
.settlement-entry{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:14px 0;min-width:0}
.settlement-entry-copy{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.settlement-entry h2{font-size:.875rem;color:var(--muted);margin:0 0 6px}
.settlement-entry p{margin:0;color:var(--text);line-height:1.45}
.settlement-entry strong{display:inline-block;font-variant-numeric:tabular-nums}
.settlement-entry small{display:block;color:var(--muted);line-height:1.5;margin-top:5px}
.settlement-entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;min-width:0}
.settlement-entry-actions button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.settlement-entry{padding:12px;gap:8px}.settlement-entry-copy{flex-basis:100%}.settlement-entry-actions{width:100%;justify-content:space-between}.settlement-entry-actions .primary{flex:1 1 auto}}

/* R3.2 first slice: exact embedded reference fonts, existing theme/identity. */
@font-face{font-family:R32Manrope;src:url('/r32-manrope.woff') format('woff');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:R32DMSans;src:url('/r32-dmsans.woff') format('woff');font-style:normal;font-weight:100 900;font-display:swap}
.tracked-balance,.active-tracker,.tracker-picker,.tracker-creation,.tracker-invite-empty{font-family:R32DMSans,system-ui,sans-serif}
.tracked-balance{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;width:100%;box-sizing:border-box}
.tracked-balance .tracked-heading,.tracked-balance .tracked-controls,.tracked-balance .settling-estimate-heading{justify-content:center;width:100%}
.tracked-balance .tracked-amount{font-family:R32Manrope,system-ui,sans-serif;font-weight:600;max-width:100%;font-size:clamp(2rem,6vw,4rem);overflow-wrap:anywhere;line-height:1.2}
.tracked-balance .tracked-amount-long{font-size:clamp(1.65rem,4.8vw,3.2rem)}
.tracked-account,.tracked-scope{margin:10px 0 0;max-width:100%;overflow-wrap:anywhere;font-size:1rem}
.tracked-scope{color:var(--muted)}
.tracked-balance .settling-estimate{align-items:center;text-align:center;width:100%;box-sizing:border-box}
.active-tracker{display:flex;align-items:center;gap:16px;width:100%;max-width:680px;margin:24px auto;min-width:0;padding:18px;border:1.5px solid var(--purple);border-radius:24px;background:var(--surface);color:var(--text);text-align:left;min-height:76px}
.active-tracker>span:nth-child(2){flex:1;min-width:0}.active-tracker strong,.active-tracker small{display:block;overflow-wrap:anywhere}.active-tracker strong{font-size:1.1rem}.active-tracker small{font-size:.95rem;color:var(--muted);margin-top:5px}
.active-tracker>span:first-child{font-size:1.4rem}.active-tracker svg,.tracker-choices svg{display:block;width:22px;height:22px}.tracker-chevron{flex:none}.tracker-choice-indicator{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border:1px solid var(--muted);border-radius:50%;color:var(--text)}.tracker-choices a[aria-current=page] .tracker-choice-indicator{background:var(--purple);border-color:var(--purple);color:var(--surface)}.tracker-choice-indicator svg{width:18px;height:18px}.active-tracker:focus-visible,.tracker-choices a:focus-visible,.tracker-creation :is(button,a,summary):focus-visible{outline:3px solid var(--purple);outline-offset:4px}
.tracker-picker,.tracker-creation{max-width:100%;min-width:0;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.tracker-picker h2,.tracker-creation h2{font-family:R32Manrope,system-ui,sans-serif;line-height:1.25;padding-right:30px}
.tracker-choices{list-style:none;padding:7px;margin:13px -7px;overflow:visible}
.tracker-choices li{margin:0 0 10px}.tracker-choices a{display:flex;align-items:center;gap:14px;padding:16px;min-height:72px;border:1px solid var(--line);border-radius:20px;color:var(--text);text-decoration:none;box-sizing:border-box}
.tracker-choices a>span:nth-child(2){flex:1;min-width:0}.tracker-choices strong,.tracker-choices small{display:block;overflow-wrap:anywhere}.tracker-choices small{color:var(--muted);margin-top:4px}.tracker-choices a[aria-current=page]{border:2px solid var(--purple);background:var(--surface2)}
.tracker-picker>.primary,.tracker-creation .primary,.tracker-creation .secondary{display:block;width:100%;box-sizing:border-box;text-align:center;min-height:48px;white-space:normal;margin:16px 0;text-decoration:none}
.tracker-creation :is(input,select,button){font:inherit;min-height:44px}.tracker-creation input[type=checkbox]{min-height:24px;width:24px;height:24px;flex-shrink:0}.tracker-creation label{font-size:1rem;color:var(--text)}
.tracker-creation form{display:grid;gap:18px}.tracker-creation .form-two{grid-template-columns:repeat(2,minmax(0,1fr))}.tracker-creation :is(input,select){width:100%;min-width:0;box-sizing:border-box}.tracker-creation .confirm-check{display:flex;align-items:center;gap:12px}
.tracker-disclosure{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}.tracker-disclosure summary{cursor:pointer;min-height:44px;font-weight:600}.tracker-disclosure summary small{display:block;color:var(--muted);font-weight:400}.tracker-disclosure[hidden],.tracker-creation [hidden]{display:none}
.tracker-step{color:var(--purple);font-weight:600}.tracker-status{padding:14px;background:var(--surface2);border-radius:12px}.tracker-review{margin:20px 0}.tracker-review dt{color:var(--muted);margin-top:20px}.tracker-review dd{margin:5px 0 0;padding-bottom:16px;border-bottom:1px solid var(--line);font-weight:600}
.tracker-home-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}.tracker-home-actions .primary{min-height:44px;display:flex;align-items:center;text-decoration:none}
.tracker-account-context{max-width:680px;margin:0 auto 28px}.tracker-invite-empty{padding:18px;border:1px solid var(--line);border-radius:16px;margin:16px 0}.tracker-invite-empty h2{font-size:1.1rem}.tracker-invite-empty button{min-height:44px}
html:not([data-appearance=dark]) .tracker-creation,html:not([data-appearance=dark]) .tracker-picker{--surface:#faf7f0;--surface2:#f0eafa;--text:#292630;--muted:#686172;--purple:#7045c4;--line:#d8cfe3;background:var(--surface);color:var(--text)}
dialog:has(.tracker-creation),dialog:has(.tracker-picker){width:calc(100% - 32px);max-width:560px;max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}
html:not([data-appearance=dark]) dialog:has(:is(.tracker-creation,.tracker-picker)){background:#faf7f0;color:#292630}
.tracker-creation :is(input,select){background:var(--surface);color:var(--text);border:1px solid var(--line)}
.tracker-creation .primary,.tracker-picker>.primary{background:var(--purple);color:#fff}
.tracker-creation :is(.secondary,.text-button){color:var(--purple)}
@media(max-width:700px){.phone-home .tracked-balance{padding:24px 0 12px}.phone-home .tracked-balance .tracked-heading,.phone-home .tracked-balance .tracked-controls{justify-content:center}.phone-home .tracked-balance .tracked-amount{font-size:clamp(2rem,10vw,3.8rem)}.phone-home .tracked-balance .tracked-amount-long{font-size:clamp(1.6rem,7vw,2.7rem)}.tracker-creation .form-two{gap:12px}.tracker-picker .primary,.tracker-creation .primary{font-size:1rem}.tracker-account-context .tracked-balance{padding-top:12px}}
@media(max-width:360px){.tracker-creation .form-two{grid-template-columns:1fr}.active-tracker{padding:14px;gap:10px}.tracker-choices a{padding:12px}}

/* R3.2 read-only records: existing routes/data, exact previously approved fonts. */
.activity-panel,.transaction-reading{font-family:R32DMSans,system-ui,sans-serif;min-width:0;overflow-wrap:anywhere}
.saved-entries-heading,.transaction-reading h2,.transaction-reading h3{font-family:R32Manrope,system-ui,sans-serif}
.saved-entries-heading{font-size:1.35rem;margin:22px 0 12px}
.activity-panel .transaction{grid-template-columns:minmax(0,1fr) minmax(90px,34%);gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.activity-panel .transaction-emoji{display:none}.activity-panel .transaction-main strong{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:1.05rem}
.activity-panel .transaction-main small{display:block;overflow:visible;white-space:normal;text-overflow:clip;line-height:1.5;margin-top:6px}
.activity-panel .transaction-amount{white-space:normal;max-width:100%;font-size:1.1rem;overflow-wrap:anywhere}.activity-panel .transaction-amount small{display:block;color:var(--muted);font-size:.85rem;font-weight:400;margin-top:6px}
.activity-panel .transaction-long-amount .transaction-main,.activity-panel .transaction-long-amount .transaction-amount{grid-column:auto}
.activity-panel .transaction-share{color:var(--text)}
.transaction-reading{font-size:1rem;line-height:1.55}.transaction-reading h2{font-size:clamp(1.5rem,6vw,2.2rem);line-height:1.25;padding-right:26px;margin:22px 0 12px}
.reading-context,.reading-label{color:var(--muted)}.reading-status{padding:14px;border:1px solid var(--line);border-radius:10px;margin:22px 0}
.reading-label{margin-top:30px}#dialog .transaction-reading .detail-amount{font-family:R32Manrope,system-ui,sans-serif;font-size:clamp(1.8rem,8vw,3.4rem);font-weight:600;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
.transaction-reading .transaction-facts{display:block;margin:26px 0}.transaction-reading .transaction-facts>div{display:block;border-bottom:1px solid var(--line);padding:18px 0}.transaction-reading dt{color:var(--muted)}.transaction-reading dd{margin:6px 0 0;font-weight:600}.transaction-reading dd small{display:block;font-weight:400;color:var(--muted)}
.reading-shares{background:var(--surface2);border-radius:22px;padding:20px;margin:26px 0}.reading-shares h3{margin-top:0}.reading-shares p:not(.reading-share-note){display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.reading-share-note{color:var(--muted);font-size:.9rem}
.transaction-reading :is(.secondary,.primary){display:block;width:100%;white-space:normal;min-height:48px;margin:16px 0}.transaction-reading button,.activity-panel .transaction{min-height:44px}
.transaction-reading .history-entry{position:relative;border-left:2px solid var(--line);padding:0 0 24px 22px;margin:0}.transaction-reading .history-entry:before{content:'';position:absolute;width:10px;height:10px;left:-6px;top:8px;border-radius:50%;background:var(--purple)}.transaction-reading .history-entry h3{margin:0;font-size:1.05rem}.reading-timeline{margin:28px 0}
.transaction-note{border-left:3px solid var(--purple);padding:16px 20px;background:var(--surface);margin:24px 0;text-align:left}.transaction-note h3{margin:0 0 8px}.transaction-note p{margin:8px 0}
.deleted-reading-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;padding:20px 0;overflow-wrap:anywhere}.deleted-reading-row strong,.deleted-reading-row span{display:block}.deleted-reading-row span{margin-top:6px;color:var(--muted)}
.transaction-reading button:focus-visible,.activity-panel .transaction:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
dialog:has(.transaction-reading){width:calc(100% - 32px);max-width:640px;max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}
html:not([data-appearance=dark]) dialog:has(.transaction-reading){--surface:#faf7f0;--surface2:#f0eafa;--text:#292630;--muted:#686172;--purple:#7045c4;--line:#d8cfe3;background:var(--surface);color:var(--text)}
@media(max-width:360px){.activity-panel .transaction{grid-template-columns:minmax(0,1fr);gap:8px}.activity-panel .transaction-amount{justify-self:start;text-align:left}.transaction-reading .reading-shares{padding:14px}}

/* R3.2 manual/edit presentation; existing form fields and submission contract. */
.r32-entry-form .entry-state{margin:22px 0 8px;padding:14px 16px;border-radius:10px;background:var(--surface2);color:var(--text);line-height:1.5;overflow-wrap:anywhere}
.r32-entry-form .entry-state-pending,.r32-entry-form .entry-state-error{display:none}
.r32-entry-form:has(.form-error:not(:empty)) .entry-state-idle{display:none}
.r32-entry-form:has(.form-error:not(:empty)) .entry-state-error{display:inline}
.r32-entry-form:has(.save-button:disabled) .entry-state-idle,.r32-entry-form:has(.save-button:disabled) .entry-state-error{display:none}
.r32-entry-form:has(.save-button:disabled) .entry-state-pending{display:inline}
.r32-entry-form .entry-total{flex-direction:column;gap:6px;align-items:stretch}
.r32-entry-form .entry-total input{flex:auto}
.r32-entry-form .entry-section-title{font-size:1.16rem;font-weight:600;margin:24px 0 12px;letter-spacing:-.3px}
.r32-entry-form .entry-description{margin:0;gap:8px}
.r32-entry-form .entry-description input,.r32-entry-form .entry-category select,.r32-entry-form .entry-detail-fields :is(input:not([type=checkbox]),select){border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:12px;min-height:48px;max-width:100%;min-width:0}
.r32-entry-form .entry-category{gap:8px}
.r32-entry-form .entry-details>summary{font-size:1rem;line-height:1.4;width:auto;padding:12px 0}
.r32-entry-form .split-box,.r32-entry-form .expense-edit-splits{background:var(--surface2);border:0;border-radius:22px;padding:18px;min-width:0}
.r32-entry-form .member-splits label{overflow-wrap:anywhere}
.r32-entry-form .member-splits input[readonly]{border-color:transparent;color:var(--text)}
.r32-entry-form .entry-record-note{border-left:3px solid var(--purple);border-radius:0 18px 18px 0;background:var(--surface);padding:16px;margin:24px 0 0;font-size:.9rem}
.r32-entry-form .entry-actions{margin-top:24px}
.r32-entry-form .entry-actions .save-button{border-radius:28px}
.r32-entry-form .entry-cancel{width:100%;border:1px solid var(--line);border-radius:28px;color:var(--text);min-height:50px}
.r32-entry-form .form-error:not(:empty){border-left:3px solid currentColor;padding:12px;overflow-wrap:anywhere}
@media(max-width:360px){.r32-entry-form .split-box,.r32-entry-form .expense-edit-splits{padding:12px}.r32-entry-form .member-splits label{grid-template-columns:minmax(0,1fr) minmax(0,100px)}.r32-entry-form .member-splits input{width:100%;max-width:100%}}

.r32-entry-form,.amount-first-header{font-family:R32DMSans,system-ui,sans-serif}
.phone-compact-balance{display:none}
.phone-transactions-title,.phone-transactions-actions,.phone-transactions-links{display:none}
/* Between Us R3.2 phone shell/Home: reference final overrides, not simulation.
   Saved brand maps to cream on phone only; stored values and desktop stay intact. */
@media(max-width:700px){
 html:is([data-appearance=light],[data-appearance=brand]){color-scheme:light;--bg:#faf7f0;--surface:#fffcf8;--surface2:#f0eafa;--text:#292630;--muted:#655f6e;--purple:#7045c4;--line:#d8d0df}
 html[data-appearance=dark]{color-scheme:dark;--bg:#25222b;--surface:#2e2935;--surface2:#393044;--text:#f8f4ec;--muted:#d0c8d9;--purple:#d0beff;--line:#655c70}
 /* Brand phone surfaces are cream; use the matching purple focus token. */
 html[data-appearance=brand] :focus-visible{outline-color:var(--purple)}
 html[data-appearance=dark] :is(.topbar,.mobile-nav){background:var(--bg)}
 .workspace,.mobile-nav{font-family:R32DMSans,system-ui,sans-serif;line-height:1.45;overflow-wrap:anywhere}
 .workspace{min-height:100dvh;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .workspace .topbar{height:auto;min-height:58px;padding:calc(4px + env(safe-area-inset-top)) 22px 6px;border:0;background:var(--bg)}
 .topbar .mobile-brand img{width:126px;height:42px;object-fit:contain}
 .topbar .mobile-profile{min-width:44px;min-height:44px}
 .workspace #main{padding:10px 24px 28px}
 .workspace .page-footer{display:none}
 .mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px max(10px,env(safe-area-inset-bottom));gap:1px;min-height:78px;background:var(--bg);border-top:1px solid var(--line);backdrop-filter:none}
 .mobile-nav>a.mobile-destination{font-size:.875rem;font-weight:400;min-width:0;min-height:60px;gap:7px;padding:8px 2px;border-radius:10px;line-height:1.2}
 .mobile-nav>.mobile-destination[aria-current=page]{background:var(--surface2);color:var(--purple);font-weight:500}
 .mobile-nav>.mobile-destination[aria-current=page]:after{display:none}
 .mobile-nav svg{width:22px;height:22px}
 .phone-home>*+*{margin-top:18px}
 .phone-home .tracked-balance{padding:8px 0 10px;margin:0;border:0;background:none}
 .phone-home .tracked-label{font-size:1rem;font-weight:400}
 .phone-home .tracked-balance .tracked-amount{font-size:3.625rem;font-weight:600;letter-spacing:-.055em;line-height:1.08;margin:10px 0 8px}
 .phone-home .tracked-balance .tracked-amount-long{font-size:2.6875rem;overflow-wrap:anywhere}
 .phone-home .tracked-account{font-size:1rem;margin:10px 0 0}
 .phone-home .tracked-scope{font-size:1rem;line-height:1.45;margin:8px 0 0}
 .phone-home .tracked-controls{margin-top:4px}
 .phone-home .tracked-balance .settling-estimate{align-self:stretch;text-align:left;border:1px dashed var(--muted);border-radius:16px;padding:16px;margin-top:20px;gap:8px}.phone-home .settling-estimate-heading{font-size:1rem}.phone-home .settling-estimate-amount{font-size:1.375rem}.phone-home .settling-estimate>small{font-size:.9375rem;line-height:1.5}
 .phone-home .settling-estimate{border:1px dashed var(--muted);border-radius:16px;padding:16px;margin-top:20px;background:none}
 .phone-home .active-tracker,.tracker-account-context .active-tracker{border:1px solid var(--purple);border-radius:22px;background:var(--surface);padding:12px 14px;gap:12px;min-height:70px;margin:18px 0}
 .active-tracker>span:first-child{display:flex;align-items:center;justify-content:center;background:var(--surface2);color:var(--purple);width:42px;height:42px;border-radius:50%;flex-shrink:0}
 .active-tracker strong{font-size:1rem;font-weight:600}.active-tracker small{font-size:.875rem;margin-top:4px}
 .phone-tracker-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;border-bottom:1px solid var(--line);padding-bottom:5px}
 .phone-tracker-tabs a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 3px;color:var(--muted);font-size:.875rem;border-bottom:2px solid transparent}
 .phone-tracker-tabs a.active{color:var(--purple);border-color:var(--purple);font-weight:600}
 .phone-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .phone-main-actions :is(a,button){display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin:0;min-height:52px;padding:13px 12px;border-radius:24px;font-size:1rem;line-height:1.35;font-weight:500;white-space:normal}
 .phone-main-actions .secondary{border:1px solid var(--muted);background:transparent;color:var(--text)}
 /* Opaque reference pairs for every phone primary, including modal Close.
    Hover must not inherit the legacy pale background with white text. */
 html:is([data-appearance=light],[data-appearance=brand]) :is(.primary,.light-button){background:var(--purple);color:#fff}
 html:is([data-appearance=light],[data-appearance=brand]) :is(.primary,.light-button):hover{background:var(--purple);color:#fff;transform:none}
 html[data-appearance=dark] :is(.primary,.light-button){background:var(--purple);color:#2b1b48}
 html[data-appearance=dark] :is(.primary,.light-button):hover{background:var(--purple);color:#2b1b48;transform:none}
 .phone-main-actions img{object-fit:contain;flex:none}
 .phone-recent h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.3125rem;font-weight:600;line-height:1.2;margin:0 0 14px}
 .phone-expense{display:flex;align-items:center;gap:10px;width:100%;min-height:90px;padding:20px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;font-size:1rem}
 .phone-expense>span:first-child{flex:1;min-width:0}.phone-expense strong{display:block;font-weight:600;line-height:1.3}
 .phone-expense small{display:block;color:var(--muted);font-size:1rem;line-height:1.35;margin-top:6px}
 .phone-expense-value{text-align:right;font-variant-numeric:tabular-nums;font-size:1.25rem;line-height:1.2;max-width:45%;overflow-wrap:anywhere}
 .phone-empty{padding:26px 0;text-align:center}.phone-empty h3{font-size:1.25rem;font-weight:600}.phone-empty p{font-size:1rem;line-height:1.5}
 .phone-view-all{display:flex;align-items:center;min-height:44px;color:var(--purple);font-size:1rem}
 .tracker-account-context .tracked-balance{display:none}
 .tracker-account-context{margin-bottom:18px}
 .phone-compact-balance{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0;font-size:1rem}
 .phone-compact-balance small{display:block;font-size:.875rem;color:var(--muted);margin-top:4px}.phone-compact-balance strong{font-size:1.375rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
 .phone-transactions-title,.phone-transactions-actions,.phone-transactions-links{display:block}
 .phone-transactions-title{margin:10px 0 18px}.phone-transactions-title h1{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600;line-height:1.2;letter-spacing:-.035em;margin:0}.phone-transactions-title p{margin:8px 0 0;font-size:1rem}
 .tracker-expenses>.tracker-header,.tracker-expenses>.tracker-actions{display:none}
 .tracker-expenses>.space-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:18px 0;padding-bottom:5px;border-bottom:1px solid var(--line)}
 .tracker-expenses>.space-tabs button{font-size:.875rem;line-height:1.3;min-height:48px;padding:12px 3px}
 .phone-tracker-top{display:flex;align-items:center;gap:12px;margin:18px 0}
 .phone-tracker-top>div{flex:1;min-width:0}.phone-tracker-top span{color:var(--muted);font-size:1rem}.phone-tracker-top strong{display:block;margin-top:6px;font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.phone-tracker-top button{min-height:44px;max-width:110px;font-size:.875rem;white-space:normal}
 .phone-transactions-actions>.primary,.phone-transactions-links>.secondary{display:flex;width:100%;min-height:52px;justify-content:center;align-items:center;border-radius:24px;font-size:1rem;font-weight:500;padding:13px 18px;white-space:normal}
 .phone-transactions-links>.secondary{border:1px solid var(--muted);background:transparent;color:var(--text)}
 .phone-transactions-links>*{margin-top:18px}.phone-transactions-links>.text-button{min-height:44px;font-size:1rem}
 .tracker-expenses>.activity-panel{padding:0;margin:24px 0 0;border:0;border-radius:0;background:transparent}
 .tracker-expenses .saved-entries-heading{font-size:1.375rem;line-height:1.2;margin:0 0 14px}
 .spense-notice{font-family:R32DMSans,system-ui,sans-serif;font-size:1rem;line-height:1.5}.spense-notice .primary{width:100%;min-height:52px}
}
@media(max-width:360px){
 .workspace #main{padding-left:20px;padding-right:20px}
 .phone-main-actions{grid-template-columns:1fr}
 .phone-home .tracked-balance .tracked-amount{font-size:3.08125rem}.phone-home .tracked-balance .tracked-amount-long{font-size:2.25rem}
 .phone-expense{flex-wrap:wrap}.phone-expense>span:first-child{flex-basis:100%}.phone-expense-value{text-align:left;max-width:100%}
 .mobile-nav>a.mobile-destination{font-size:.875rem}
}
.r32-entry-form .entry-total input,.r32-entry-form .entry-section-title,.amount-first-header :is(h1,h2){font-family:R32Manrope,system-ui,sans-serif}
html:not([data-appearance=dark]) #main:has(.r32-entry-form),html:not([data-appearance=dark]) dialog:has(.r32-entry-form){--surface:#fffcf7;--surface2:#f0eafa;--text:#292630;--muted:#686172;--purple:#7045c4;--line:#d8cfe3;background:#faf7f0;color:var(--text)}

/* R3.2 balances/payer sequence: the scoped ledger remains the only data source. */
.repayment-fields{border:0;padding:0;margin:0;min-width:0}
.repayment-fields[hidden]{display:none}
@media(max-width:700px){
 .tracker-balances{display:flex;flex-direction:column}
 .tracker-balances>.tracker-header,.tracker-balances>.settlement-entry{display:none}
 .tracker-balances>.space-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:18px 0;padding-bottom:5px;border-bottom:1px solid var(--line)}
 .tracker-balances>.space-tabs button{font-size:.875rem;min-height:48px;padding:12px 3px}
 .tracker-balances>.settle-panel,.tracker-balances>.personal-balance-note{order:1;border:0;padding:0;background:transparent}
 .tracker-balances>.phone-compact-balance{order:2;margin-top:24px}
 .tracker-balances>.tracker-account-details,.tracker-balances>.muted{order:3}
 .tracker-balances .settlement-row{display:flex;flex-direction:column;align-items:stretch;background:transparent;border-bottom:1px solid var(--line);padding:24px 0;gap:16px}
 .tracker-balances .settlement-direction{font-size:1rem}.tracker-balances .settlement-amount strong{font-family:R32Manrope,system-ui,sans-serif;font-size:2.5rem;font-weight:600;line-height:1.2}
 .tracker-balances .settlement-status{font-size:1rem;line-height:1.5;color:var(--muted)}
 dialog:has([data-alpha-form="settlement"]),dialog:has(.repayment-result){font-family:R32DMSans,system-ui,sans-serif;line-height:1.5}
 dialog:has([data-alpha-form="settlement"]) #dialog-title,.repayment-result h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600;line-height:1.2}
 [data-alpha-form="settlement"]>button,.repayment-result>button{width:100%;min-height:52px;border-radius:24px;margin-top:12px;font-size:1rem}
}
.phone-insights,.phone-summary{display:none}
@media(max-width:700px){
 .tracker-balances>.balance-records{order:4;margin-top:24px}.balance-records>h2{font-size:1.375rem}.balance-records>.secondary{width:100%;min-height:52px;margin-top:24px}
 .tracker-balances .settlement-row>.avatar{width:56px;height:56px}
 .reference-notice{border-left:3px solid var(--purple);background:var(--surface);border-radius:0 18px 18px 0;padding:16px;margin:24px 0}
 .reference-notice h3{font-size:1rem;margin:0 0 8px}.reference-notice p{margin:0;line-height:1.5}
 .reference-fact{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:1rem}
 .reference-fact small{display:block;color:var(--muted);margin-top:6px}.reference-fact strong{font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
 .repayment-permission,.reminder-detail{font-family:R32DMSans,system-ui,sans-serif;line-height:1.5}.repayment-permission h2,.reminder-detail h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem}
 .repayment-result>a.primary,.repayment-permission>.secondary,.reminder-detail>button{display:flex;justify-content:center;align-items:center;width:100%;min-height:52px;border-radius:24px;margin-top:12px}
 .tracker-insights>.tracker-header,.tracker-insights>.settlement-entry,.tracker-upcoming>.tracker-header,.tracker-upcoming>.settlement-entry{display:none}
 .tracker-insights>.space-tabs,.tracker-upcoming>.space-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:18px 0;border-bottom:1px solid var(--line)}
 .tracker-insights>.space-tabs button,.tracker-upcoming>.space-tabs button{font-size:.875rem;min-height:48px;padding:12px 3px}
 .tracker-insights>.phone-compact-balance,.tracker-upcoming>.phone-compact-balance{display:none}
 .phone-insights,.phone-summary{display:block}.desktop-insights,.desktop-summary{display:none}
 /* Insights facts follow the reference label, amount, explanation stack. */
 .phone-insights>.transaction-facts{gap:0}
 .phone-insights>.transaction-facts>div{display:block;min-width:0;padding:15px 0;border-bottom:1px solid var(--line)}
 .phone-insights>.transaction-facts dt{font-size:1rem;line-height:1.4}
 .phone-insights>.transaction-facts dd{margin:6px 0 0;font-size:1.25rem;line-height:1.35;font-weight:600}
 .phone-insights>.transaction-facts dd>small{display:block;margin-top:6px;font-size:.875rem;line-height:1.4;font-weight:400;color:var(--muted)}
 .phone-insights h2,.phone-summary h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.375rem;font-weight:600;margin:24px 0 8px}
 .phone-insights>.secondary{display:flex;justify-content:center;align-items:center;min-height:52px;border-radius:24px}
 .r32-summary{display:flex;flex-direction:column;gap:20px}.r32-summary .summary-heading{margin:0}.r32-summary .eyebrow{display:none}.r32-summary h1{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}.r32-summary .summary-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:1px solid var(--line)}
 .r32-summary .summary-tabs button{min-height:48px;font-size:.875rem}.r32-summary .summary-customize{order:10}.r32-summary .panel{background:transparent;border:0;border-radius:0;padding:0}
 .summary-lead{padding:28px 0}.summary-lead>span{font-size:1rem}.summary-lead>strong{display:block;font-family:R32Manrope,system-ui,sans-serif;font-size:2.5rem;font-weight:600;letter-spacing:-.04em;margin:10px 0}.summary-lead>strong small{font-family:R32DMSans,system-ui,sans-serif;font-size:1rem;margin-left:8px}.summary-lead p{line-height:1.5;color:var(--muted)}
 .phone-summary>details{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.phone-summary>details>summary{min-height:44px;font-size:1rem}
 .reminder-panel{display:flex;flex-direction:column;border:0;background:transparent;padding:0}.reminder-panel .eyebrow,.tracker-upcoming .reminder-panel .panel-header h2{display:none}.reminder-panel>.panel-header{order:4;margin:24px 0}.reminder-panel>.panel-header>button{width:100%;min-height:52px;border-radius:24px}.reminder-panel>.reminder-list{order:2}.reminder-panel>.reminder-calendar-disclosure{order:3;margin-top:24px}.reminder-item{padding:20px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.reminder-item small{line-height:1.5;font-size:.875rem}
}
.phone-summary-preferences,.phone-panel-back,.phone-plan-categories,.phone-only-heading,.phone-trends{display:none}
@media(max-width:700px){
 .phone-summary-preferences,.phone-panel-back,.phone-plan-categories,.phone-only-heading,.phone-trends{display:block}
 .phone-summary-preferences{order:11;min-height:44px}.phone-plan-categories button{width:100%;min-height:52px;border-radius:24px;margin:24px 0}
 .r32-summary[data-summary-panel=main] .summary-customize,.r32-summary[data-summary-panel=main] .plan-editor,.summary-timeline,.desktop-history-chart{display:none}
 .r32-summary[data-summary-panel=preferences]>:not(.summary-heading):not(.summary-customize){display:none}
 .r32-summary[data-summary-panel=preferences] .summary-heading label,.r32-summary[data-summary-panel=preferences] .summary-heading p,.r32-summary[data-summary-panel=preferences] .summary-customize>summary{display:none}
 .r32-summary[data-summary-panel=plan-edit]>.summary-tabs,.r32-summary[data-summary-panel=plan-edit]>.summary-customize,.r32-summary[data-summary-panel=plan-edit]>.phone-summary-preferences,.r32-summary[data-summary-panel=plan-edit] .summary-heading label,.r32-summary[data-summary-panel=plan-edit] .summary-heading p{display:none}
 .r32-summary[data-summary-panel=plan-edit] .plan-panel>:not(.plan-editor){display:none}
 .r32-summary .summary-customize label{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:1rem}
 .r32-summary .summary-customize button{min-height:44px}.r32-summary .plan-editor .phone-only-heading:first-child{display:none}
 .r32-summary .summary-history{font-size:1rem;line-height:1.5}
}
@media(max-width:700px){.plan-panel>.metrics{display:none}}
@media(max-width:700px){
 .r32-initial-balance{font-family:R32DMSans,system-ui,sans-serif;max-width:460px;padding:28px 24px;line-height:1.5}
 .r32-initial-balance h1{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600;line-height:1.2}.r32-initial-balance label{font-size:1rem}.r32-initial-balance button{width:100%;min-height:52px;border-radius:24px;margin-top:12px}.r32-initial-balance .reference-notice h2{font-size:1rem}
}
.phone-settings,.entry-panel-title{display:none}
@media(max-width:700px){
 dialog:has(.tracker-picker){position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:460px;max-height:92dvh;border-radius:28px 28px 0 0;padding:18px 24px 28px}
 .sheet-handle{display:block;width:40px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 22px}.tracker-picker h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}.tracker-picker>p{font-size:1rem;line-height:1.5;color:var(--muted)}
 .tracker-choices a{border:1px solid var(--line);border-radius:20px;min-height:76px;padding:14px 12px;gap:14px;background:var(--surface)}.tracker-choices a[aria-current=page]{border:2px solid var(--purple);background:var(--surface2)}.tracker-choices a>span:first-child{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--surface2);flex:none}.tracker-choices small{font-size:.875rem;line-height:1.5}.tracker-picker>.primary{width:100%;min-height:52px;border-radius:24px}
 .account-details-reading,.r32-account-form,.transaction-reading,.phone-preference,.r32-profile-form{font-family:R32DMSans,system-ui,sans-serif;font-size:1rem;line-height:1.5}.account-details-reading h2,.phone-preference h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}
 .recorded-result{padding:24px 0}.recorded-result>strong{display:block;font-family:R32Manrope,system-ui,sans-serif;font-size:2.5rem;font-weight:600;line-height:1.2;margin:10px 0;overflow-wrap:anywhere}.recorded-result p{color:var(--muted);line-height:1.5}.balance-detail-row{display:flex;justify-content:space-between;gap:16px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:16px 0;min-height:72px;text-align:left;width:100%}.balance-detail-row strong,.balance-detail-row small{display:block}.balance-detail-row small{color:var(--muted);font-size:.875rem;margin-top:6px}
 .account-details-reading>button,.r32-account-form .primary,.transaction-reading>button,.phone-preference>button{width:100%;min-height:52px;border-radius:24px;margin-top:12px}
 .r32-entry-form:not([data-entry-panel=split]) :is(.split-box,.expense-edit-splits){display:none}
 .r32-entry-form[data-entry-panel=split]>*:not(.entry-details){display:none}.r32-entry-form[data-entry-panel=split]>.entry-details>summary{display:none}.r32-entry-form[data-entry-panel=split] .entry-detail-fields>*:not(.split-box):not(.expense-edit-splits){display:none}
 .r32-entry-form[data-entry-panel=split] .entry-panel-title{display:block}.r32-entry-form[data-entry-panel=split] h2.entry-panel-title{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}
 .r32-entry-form[data-entry-panel=split] .split-box,.r32-entry-form[data-entry-panel=split] .expense-edit-splits{display:block;border:0;background:transparent;padding:0}.r32-entry-form [data-entry-panel=main]{width:100%;min-height:52px;border-radius:24px;margin-top:20px}
 #main:has(.r32-entry-form[data-entry-panel=split])>.expense-entry-header,dialog:has(.r32-entry-form[data-entry-panel=split])>.expense-edit-header{display:none}.entry-mode-nav{display:flex;gap:20px}
 .phone-settings{display:block}.desktop-settings{display:none}.phone-settings h1{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}.profile-intro{display:flex;align-items:center;gap:16px;background:var(--surface2);border-radius:24px;padding:20px 16px;margin:24px 0}.profile-intro .alpha-avatar{width:64px;height:64px}.profile-intro h2{font-size:1.375rem;margin:0}.profile-intro p{color:var(--muted);margin:6px 0 0}
 .settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:18px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;width:100%}.settings-row strong,.settings-row small{display:block}.settings-row strong{font-size:1rem;font-weight:600}.settings-row small{color:var(--muted);font-size:.875rem;line-height:1.5;margin-top:6px}
 .phone-preference .appearance-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mode-swatch{display:block;height:110px;border-radius:18px;border:1px solid var(--line);margin-bottom:12px}.light-swatch{background:#faf7f0}.dark-swatch{background:#211d29}
 .r32-profile-form .profile-hero{text-align:center;margin:24px 0}.profile-hero .alpha-avatar{width:80px;height:80px;margin:auto}.profile-hero>button{display:block;margin:10px auto}
 .r32-profile-form[data-profile-view=main] .profile-avatar-panel{display:none}.r32-profile-form[data-profile-view=avatars]>*:not(.profile-avatar-panel){display:none}
 dialog:has(.r32-profile-form[data-profile-view=avatars])>button[data-alpha-logout],dialog:has(.r32-profile-form[data-profile-view=avatars])>button[data-action=close]{display:none}
 .r32-profile-form .avatar-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.r32-profile-form .avatar-choice-content{padding:10px 4px}.r32-profile-form .avatar-choice-content>.alpha-avatar{width:66px;height:66px}.r32-profile-form .avatar-picker{border:0;padding:0}.r32-profile-form .primary,.profile-avatar-panel>.secondary{width:100%;min-height:52px;border-radius:24px;margin-top:20px}
}

@media(max-width:700px){
 .tracker-creation{font-family:R32DMSans,system-ui,sans-serif;line-height:1.5}.tracker-creation h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}.tracker-creation .primary,.tracker-creation>.secondary{width:100%;min-height:52px;border-radius:24px}.tracker-creation .tracker-review{padding:20px;border:1px solid var(--line);border-radius:18px}.tracker-creation .tracker-review dd{margin:4px 0 16px;font-weight:600}.tracker-creation input,.tracker-creation select{min-height:48px}.loading-placeholder{display:grid;gap:12px;margin:24px 0}.loading-placeholder span{height:50px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
}

.mobile-menu,.phone-empty-tracker{display:none}
@media(max-width:700px){
 .mobile-menu{display:inline-flex;min-height:44px;align-items:center;font-size:.75rem;padding:8px}.all-destinations{font-family:R32DMSans,system-ui,sans-serif;line-height:1.5}.all-destinations h2{font-family:R32Manrope,system-ui,sans-serif;font-size:1.875rem;font-weight:600}.destination-row{display:flex;align-items:center;gap:14px;min-height:72px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);color:var(--text);text-align:left;text-decoration:none;background:transparent}.destination-row>span:first-of-type{flex:1}.destination-row strong,.destination-row small{display:block}.destination-row small{color:var(--muted)}.destination-row svg{width:22px;height:22px}.all-destinations>.secondary,.all-destinations>.text-button{width:100%;min-height:52px;margin-top:20px;border-radius:24px}.phone-empty-tracker{display:block;padding:32px 20px;text-align:center;border:1px dashed var(--line);border-radius:20px;margin:16px 0}.empty-icon svg{width:32px;height:32px}.phone-empty-tracker h3{font-family:R32Manrope,system-ui,sans-serif;font-size:1.375rem}.phone-empty-tracker p{color:var(--muted);line-height:1.5}.desktop-empty-tracker,.tracker-invite-empty{display:none}
}

/* Rebuild 1.1: the dialog alone scrolls; reserve room for focus outlines. */
dialog:has(.tracker-picker){scroll-padding:64px 8px 12px;overscroll-behavior:contain}
dialog:has(.tracker-picker) .dialog-close{position:sticky;top:0;float:right;z-index:2;margin-bottom:-44px;background:var(--surface2)}
.tracker-picker h2{padding-right:56px}
@media(max-width:700px){.phone-home .phone-main-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.phone-home .phone-main-actions :is(a,button){padding:13px 8px;gap:6px;white-space:nowrap;min-height:52px}}

/* Batch2: fixed opaque picker header; one body scroll, including Create. */
dialog:has(.tracker-picker){overflow:hidden;scroll-padding:0}
dialog:has(.tracker-picker) .dialog-close{position:absolute;top:18px;right:24px;float:none;margin:0;z-index:3;min-width:44px;min-height:44px}
.tracker-picker{display:flex;flex-direction:column;max-height:calc(100dvh - 100px);overflow:visible}
.tracker-picker-head{flex:none;background:var(--surface);padding-right:0;position:relative;z-index:1}
.tracker-picker-head h2{padding-right:56px}
.tracker-picker-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:7px;margin:0 -7px;scroll-padding:7px}
.tracker-picker-scroll>.primary{display:block;width:100%;min-height:52px;border-radius:24px;margin:16px 0}
.tracker-picker-scroll>p,.tracker-picker-head>p{color:var(--muted);font-size:1rem;line-height:1.5}
.transaction-phone-cue{display:none!important}
@media(max-width:700px){
 .tracker-picker{max-height:calc(92dvh - 48px)}
 .tracker-expenses>.settlement-entry,.tracker-expenses>.tracker-invite-empty{display:none}
 .tracker-expenses>.phone-compact-balance>button,.tracker-expenses>.phone-compact-balance>.settling-estimate{display:none}
 .tracker-expenses>.phone-compact-balance{flex-wrap:nowrap;align-items:center}
 .tracker-expenses>.phone-compact-balance>span{min-width:0;flex:1}
 .tracker-expenses>.phone-compact-balance>strong{max-width:48%;text-align:right}
 .tracker-expenses .transaction-day>h3{display:none}
 .tracker-expenses .transaction-main>.transaction-desktop-cue{display:none}
 .tracker-expenses .transaction-phone-cue{display:block!important;white-space:normal;overflow-wrap:anywhere}
 .tracker-expenses .phone-secondary-entry{display:flex;min-height:52px}
 .tracker-expenses .transaction-main strong{white-space:normal;overflow-wrap:anywhere}
 .tracker-expenses .transaction-amount{max-width:none;min-width:0;flex:none}
 .tracker-expenses .transaction-amount small{white-space:normal}
}

/* Keep the Transactions label intact at narrow phone widths; target size is unchanged. */
@media(max-width:380px){.mobile-nav>a.mobile-destination{font-size:.8125rem;letter-spacing:-.15px;white-space:nowrap;overflow-wrap:normal}}

/* Saved purchase detail: presentation scoped away from history and non-purchase dialogs. */
.purchase-reading .purchase-back{text-align:left;width:auto;margin-top:0}
.purchase-reading .reading-status{border-color:var(--muted);border-radius:5px;font-weight:500}
.purchase-reading .purchase-payment-context{color:var(--text);margin-bottom:30px}
.purchase-reading .recorded-result{border-top:2px solid var(--purple);border-bottom:1px solid var(--line);padding:24px 0;margin-top:30px}
.purchase-reading .recorded-result strong{display:block;font-family:R32Manrope,system-ui,sans-serif;font-size:2rem;line-height:1.2;margin:12px 0;overflow-wrap:anywhere}
.purchase-reading .recorded-result strong small{font-size:1rem}
.purchase-reading .reading-shares{margin:20px 0}
.purchase-reading .settling-estimate{border:1px dashed var(--muted);border-radius:20px;padding:18px;margin:20px 0}
.purchase-reading .transaction-facts{margin:24px 0 18px}
.purchase-reading .reading-history-button{border-radius:28px}
.purchase-reading>.purchase-edit,.purchase-reading>.purchase-delete{display:block;width:100%;min-height:52px;text-align:left;border-radius:0;padding:12px 0;color:var(--purple)}
.purchase-reading button:focus-visible{outline-offset:2px}
#dialog .purchase-reading .detail-amount{color:var(--text);font-size:clamp(2.5rem,13vw,3.25rem);font-weight:600}
.purchase-reading .settling-estimate-amount{display:block;font-size:1.5rem;margin:12px 0}.purchase-reading .settling-estimate>small{display:block;line-height:1.55;margin-top:10px}

/* Batch4A: new purchase hierarchy only; existing controls and panel ownership remain intact. */
.new-purchase-form .entry-section-title,.new-purchase-form .entry-payment-heading{font-family:R32Manrope,system-ui,sans-serif;font-size:1.375rem;font-weight:600;line-height:1.35;margin:22px 0 4px}
.new-purchase-form .entry-detail-fields .payer-context{font-size:1rem;color:var(--text);margin:0;overflow-wrap:anywhere}
.new-purchase-form .entry-tracker-context{font-size:1rem;min-width:0}
.new-purchase-form .entry-tracker-context p{border:1px solid var(--line);border-radius:10px;padding:12px;margin:6px 0 0;min-height:48px;overflow-wrap:anywhere;background:var(--surface)}
.new-purchase-form .entry-details>summary{min-height:48px}
.purchase-reading .settling-estimate-heading{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
.purchase-reading .settling-estimate-heading>span{min-width:0;flex:1}
.purchase-reading .settling-estimate-heading>.balance-help{flex:none;min-width:44px;min-height:44px}

/* Batch4B: inline new-purchase fields; other entry and correction forms retain their panels. */
.new-purchase-form .entry-purchase-pair,.new-purchase-form .entry-payment-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.new-purchase-form .entry-purchase-pair label,.new-purchase-form .entry-payment-pair label{min-width:0;font-size:1rem;display:flex;flex-direction:column;gap:6px}
.new-purchase-form .entry-purchase-pair :is(input,select){width:100%;min-width:0;max-width:100%;min-height:52px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font-size:1rem;padding:12px 8px}
.new-purchase-form .entry-paid-by{min-width:0;font-size:1rem}
.new-purchase-form .entry-paid-by p{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:12px;margin:6px 0 0;min-height:52px;overflow-wrap:anywhere;line-height:1.5}
.new-purchase-form .entry-payment-pair select{min-height:52px}
.new-purchase-form .entry-details>summary{font-family:R32Manrope,system-ui,sans-serif;font-size:1.375rem;font-weight:600;color:var(--text);margin-top:16px}
.new-purchase-form .entry-detail-fields{padding-top:8px}
.new-purchase-form .entry-more-options{margin:20px 0}
.new-purchase-form .entry-more-options>summary{min-height:44px;padding:10px 0;color:var(--purple);cursor:pointer}
.new-purchase-form .entry-more-options .expense-type{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.new-purchase-form .entry-more-options select{min-height:48px;max-width:100%}
.new-purchase-form:not([data-entry-panel=split]) .split-box{display:block;border:0;border-radius:24px;background:var(--surface2);padding:18px;margin-top:8px}
.new-purchase-form .split-box .entry-panel-title{display:none}
.new-purchase-form .split-box .entry-section-title{margin-top:18px}
.new-purchase-form .entry-more-options>summary:focus-visible{outline:2px solid var(--purple);outline-offset:2px}

/* Saved purchases share the app page shell; correction/history dialogs remain unchanged. */
.purchase-page{width:100%;max-width:720px;margin:0 auto;padding:0 0 32px;overflow-wrap:anywhere}
.purchase-page-nav{display:flex;align-items:center;gap:12px;margin-bottom:24px;color:var(--muted)}
.purchase-page-nav .purchase-back{margin:0;min-height:44px}
.purchase-page-nav>.icon-button{margin-left:auto;flex:none;min-width:44px;min-height:44px}
.purchase-page h1{font-size:clamp(1.8rem,7vw,2.5rem);line-height:1.2;margin:0 0 12px}
.purchase-page .detail-amount{color:var(--text);font-size:clamp(2.5rem,13vw,3.25rem);font-weight:600;margin:8px 0}
.purchase-page .reading-history-button{width:100%;min-height:48px}
.purchase-page :is(button,a):focus-visible{outline-offset:3px}

.purchase-page-nav>.icon-button{background:transparent;color:var(--text);border:1px solid var(--line);font-size:1.5rem}

/* T05 monthly facts: scoped to phone Insights; desktop chart controls remain available. */
.reading-revision{white-space:nowrap}
@media(max-width:700px){
 .insights-page-back{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;color:var(--muted);font-size:.875rem}
 .insights-page-back a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
 .insights-page-back svg{width:20px;height:20px}
 .phone-insights .reference-fact{display:block}
 .phone-insights .reference-fact strong{display:block;text-align:left;font-size:1.25rem;margin-top:8px}
 .tracker-insights .phone-transactions-title p{overflow-wrap:anywhere}
}

/* Balances / repayment presentation: actual obligations and own recorded account only. */
.repayment-account-balance,.repayment-obligation{display:grid;gap:8px;padding:20px 0;border-bottom:1px solid var(--line);margin:0 0 20px;overflow-wrap:anywhere}
.repayment-account-balance>span,.repayment-account-balance>small,.repayment-obligation>span{color:var(--muted);line-height:1.5}
.repayment-account-balance>strong,.repayment-obligation>strong{font-size:1.25rem;font-variant-numeric:tabular-nums}
.repayment-account-balance>small{font-size:.875rem}
.repayment-result .repayment-account-balance{text-align:center;border:0;padding:24px 0}
.repayment-result .repayment-account-balance>strong{font-size:clamp(2rem,9vw,3rem);font-family:R32Manrope,system-ui,sans-serif}
.repayment-result .transaction-facts>div{display:block}
.repayment-result .transaction-facts dd{margin:8px 0 0;text-align:left;font-size:1.25rem;overflow-wrap:anywhere}
dialog:has([data-alpha-form="settlement"]) :is(.reading-context,.repayment-obligation,.reference-notice){overflow-wrap:anywhere}
@media(max-width:700px){
 .tracker-balances>.tracker-invite-empty{display:none}
 .tracker-balances>.settle-panel .settlement-heading h2{font-size:1rem;color:var(--muted)}
 .tracker-balances>.settle-panel .settlement-row>.avatar{align-self:center;margin-top:8px}
 .tracker-balances>.settle-panel .settlement-summary{display:block;text-align:center}
 .tracker-balances>.settle-panel .settlement-direction{font-weight:400;margin:16px 0}
 .tracker-balances>.settle-panel .settlement-amount{justify-content:center}
 .tracker-balances>.settle-panel .settlement-amount strong{font-size:2.5rem}
 .tracker-balances>.settle-panel .settlement-status.reference-notice{margin:12px 0}
 .tracker-balances>.settle-panel .settlement-status h3{color:var(--text)}
 .tracker-balances>.settle-panel .settlement-zero{padding:16px;line-height:1.5}
 .tracker-balances>.personal-balance-note .reference-notice{margin:0}
 .tracker-balances>.phone-transactions-title p{overflow-wrap:anywhere}
 [data-alpha-form="settlement"] .reference-notice{margin:20px 0}
}

@media(max-width:700px){
 .tracker-balances .tracker-account-context{display:block}
 .tracker-balances .tracker-account-context .tracker-selector{width:100%}
 .tracker-balances>.settle-panel .settlement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .tracker-balances>.settle-panel .settlement-row>.alpha-avatar{align-self:center;width:56px;height:56px;margin-top:8px}
}

.tracker-balances>.settle-panel{color:var(--text);background:var(--surface)}
.tracker-balances>.settle-panel :is(p,h2,h3){color:var(--text)}
.tracker-balances>.settle-panel .settlement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tracker-balances>.balance-records{margin-top:24px}
.tracker-balances>.balance-records .phone-expense{display:flex;width:100%;text-align:left;background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--line);padding:18px 0;min-height:52px}
.tracker-balances>.balance-records .phone-expense small{display:block;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.tracker-balances>.balance-records>.secondary{margin-top:20px;min-height:48px}
@media(max-width:700px){.tracker-balances>.settle-panel{background:transparent}.tracker-balances .tracker-account-context [data-action=tracker-picker]{width:100%;max-width:none}}

[data-alpha-form=settlement] :is(input,select){background:var(--surface);color:var(--text);border-color:var(--line);min-height:48px}
[data-repayment-review] .transaction-facts>div{display:block}
[data-repayment-review] .transaction-facts dd{margin:8px 0 0;text-align:left;font-size:1.25rem;overflow-wrap:anywhere}

/* Routed repayment surfaces reuse the existing application shell and safe form owner. */
.repayment-page{max-width:680px;margin:0 auto;padding-bottom:28px;overflow-wrap:anywhere}
.repayment-page-nav{display:flex;align-items:center;justify-content:space-between;margin:0 0 28px;gap:16px}
.repayment-page-nav button{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.repayment-page h2#dialog-title{font-size:clamp(1.75rem,4vw,2rem);letter-spacing:-.04em;line-height:1.15;margin:0 0 12px}
.repayment-page [data-repayment-status],.repayment-page .reading-status{padding:14px 16px;border:1px solid var(--line);border-radius:8px;margin:20px 0;font-weight:650}
.repayment-page .repayment-fields{border:0;padding:0;margin:20px 0;display:grid;gap:20px}
.repayment-page .repayment-fields[hidden]{display:none}
.repayment-page label{display:grid;gap:8px}.repayment-page input,.repayment-page select{min-height:48px;width:100%}
.repayment-page form>.primary,.repayment-page form>.secondary,.repayment-page .repayment-result>.primary,.repayment-page .repayment-result>.secondary,.repayment-page .repayment-permission>.secondary{width:100%;min-height:48px;margin-top:16px;border-radius:28px}
.repayment-page .repayment-account-balance,.repayment-page .repayment-obligation{padding:20px 0;border-bottom:1px solid var(--line);display:grid;gap:8px}
.repayment-page .transaction-facts>div{padding:18px 0;border-bottom:1px solid var(--line)}
.repayment-page .reference-notice{margin:20px 0}.repayment-page .form-error{white-space:normal}
.repayment-page :focus-visible{outline:3px solid var(--purple);outline-offset:3px}
@media(max-width:700px){.repayment-page{max-width:none;padding-top:8px}.repayment-page-nav{margin-bottom:24px}.repayment-page .detail-amount{font-size:2.1rem}.repayment-page .transaction-facts{display:block}}

/* Batch11: Upcoming list/calendar presentation; reminder editor lifecycle unchanged. */
.tracker-upcoming .reminder-notice{margin:18px 0}.reminder-notice h3{margin:0 0 10px}.reminder-notice p{margin:0;line-height:1.6}
.reminder-day-group h3{font-size:1.35rem;margin:24px 0 10px}.reminder-clock{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--surface2);color:var(--purple)}.reminder-clock svg{width:24px;height:24px}.reminder-chevron{font-size:1.6rem;flex:none}.reminder-item .reminder-status{font-size:.75rem;margin-top:3px}.calendar-toolbar button{min-width:44px;min-height:44px}.calendar-toolbar svg{width:20px;height:20px}.reminder-calendar-disclosure>summary{min-height:44px;align-content:center}.reminder-item:focus-visible,.calendar-day:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.reminder-list{padding:3px}
@media(max-width:700px){.tracker-upcoming>.tracker-account-context{display:none}.tracker-upcoming .reminder-notice{order:0}.tracker-upcoming .calendar-toolbar{order:1;margin:4px 0 12px}.tracker-upcoming .reminder-day-group h3{font-family:R32Manrope,system-ui,sans-serif}.tracker-upcoming .reminder-item{min-height:84px}.tracker-upcoming .reminder-clock{width:40px;height:40px}.tracker-upcoming .phone-transactions-title p{overflow-wrap:anywhere}}

/* Batch13: new reminder and read-only detail pages. Mutation dialogs unchanged. */
.reminder-page{max-width:640px;margin:0 auto;padding:16px 0 40px}.reminder-page-nav{display:flex;align-items:center;gap:12px;margin-bottom:28px}.reminder-page-nav span{margin-left:auto;color:var(--muted)}.reminder-page h1{font-size:32px;line-height:1.2;overflow-wrap:anywhere}.reminder-page-context{color:var(--muted);margin:10px 0 28px}.reminder-page label{display:block;margin:0 0 20px}.reminder-page input,.reminder-page select,.reminder-page textarea{width:100%;min-height:48px;margin-top:8px}.reminder-page .primary,.reminder-page .secondary{width:100%;min-height:48px}.reminder-page .reference-notice{margin:20px 0}.reminder-page .reference-notice h2{font-size:16px}.reminder-page .transaction-facts>div{padding:18px 0}.reminder-page .transaction-facts dd{font-size:22px;overflow-wrap:anywhere}.reminder-note{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.reminder-page{padding:4px 0 28px}.reminder-page-nav{margin-bottom:24px}.reminder-page-nav .text-button{min-height:44px}.reminder-page-nav span{font-size:13px}.reminder-page h1{font-size:30px}}

html .reminder-page :is(input,select,textarea){background:var(--surface);color:var(--text);border:1px solid var(--line);padding:12px;font:inherit;border-radius:9px}.reminder-page label{font-size:16px;color:var(--text)}.reminder-page textarea{resize:vertical;min-height:72px}.reminder-page .primary{border-radius:28px}.reminder-page .reference-notice p{font-size:16px}

.reminder-page .transaction-facts>div{display:block;border-bottom:1px solid var(--line)}.reminder-page .transaction-facts dt{margin-bottom:8px}.reminder-page .transaction-facts dd{margin:0;font-weight:600}

/* Approved repeating-reminder review screen 2. */
.reminder-edit-review{max-width:720px;margin-inline:auto}.reminder-edit-review h1{margin-bottom:8px}.reminder-review-facts{margin:28px 0 16px}.reminder-review-facts>div{padding:16px 0;border-bottom:1px solid var(--line)}.reminder-review-facts dt{color:var(--muted);font-size:12px;margin-bottom:8px}.reminder-review-facts dd{margin:0;font-size:18px;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap}.reminder-edit-review .reference-notice p{margin:0}.reminder-review-actions{display:grid;gap:12px;margin:24px 0}.reminder-review-actions button{width:100%;min-height:50px;border-radius:28px}.reminder-edit-review .reminder-page-nav{margin-bottom:28px}.reminder-edit-review .reminder-page-nav span{margin-left:auto}

/* Batch19: PDF45 overview hierarchy; existing summary values and editors retained. */
.summary-phone-scope{display:none}
@media(max-width:700px){
 .r32-summary[data-summary-view=overview] .summary-phone-scope{display:block;margin:8px 0 0;color:var(--muted);font-size:.875rem}
 .r32-summary[data-summary-view=overview] .summary-desktop-intro{display:none}
 .r32-summary[data-summary-view=overview]>.summary-tabs{padding-bottom:0}
 html .r32-summary[data-summary-view=overview]>.summary-tabs button[aria-current]{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:12px 4px;min-width:0}
 html .r32-summary[data-summary-view=overview]>.summary-tabs button[aria-current=page]{background:transparent;border-bottom-color:var(--purple);color:var(--purple);font-weight:600}
 .phone-summary .summary-cash-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
 .phone-summary .summary-cash-pair>.reference-fact{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0;border:0;min-width:0}
 .phone-summary .summary-cash-pair>.reference-fact>span{display:contents}
 .phone-summary .summary-cash-pair small{order:3;line-height:1.5;font-size:.75rem;color:var(--muted)}
 .phone-summary .summary-cash-pair strong{max-width:100%;font-size:1rem;overflow-wrap:anywhere}
 .phone-summary .summary-category-facts h2{font-size:.875rem;line-height:1.5}
 .phone-summary .summary-category-row{margin-top:16px}
 .phone-summary .summary-category-row .reference-fact{padding:0 0 8px;border:0;gap:12px;align-items:flex-start;font-size:.875rem}
 .phone-summary .summary-category-row .reference-fact>span{min-width:0;overflow-wrap:anywhere}
 .phone-summary .summary-category-row strong{font-size:.875rem;flex-shrink:0}
 .summary-category-track{height:4px;background:var(--line);overflow:hidden}
 .summary-category-track>span{display:block;height:100%;background:var(--purple)}
 .summary-category-note{font-size:.75rem;line-height:1.5;color:var(--muted);margin:16px 0 0}
}

@media(max-width:700px){
 .r32-summary[data-summary-view=overview] .summary-heading input{background:var(--surface);color:var(--text);border:1px solid var(--line)}
 html[data-appearance=brand] .r32-summary[data-summary-view=overview] .summary-heading input{color-scheme:light}
}

@media(max-width:700px){
 .phone-summary .reference-fact>span{min-width:0;overflow-wrap:anywhere}
 .phone-summary .reference-fact>strong{flex-shrink:0;white-space:nowrap}
 .phone-summary .summary-cash-pair>.reference-fact>strong{white-space:normal}
}

/* Keep the currency suffix readable when a large Summary amount wraps. */
.phone-summary .summary-lead>strong small{display:inline-block;white-space:nowrap;overflow-wrap:normal;word-break:normal}

/* PDF48 reading page; add/edit remain their existing dialogs. */
.balance-details-page{max-width:680px;min-width:0;margin:0 auto;padding:8px 0 28px;font-family:R32DMSans,system-ui,sans-serif;line-height:1.5}
.balance-details-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.balance-details-nav button{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.balance-details-page h1{font-family:R32Manrope,system-ui,sans-serif;font-size:clamp(1.6rem,4vw,2rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 8px}
.balance-details-page h3{font-size:1.1rem;margin:24px 0 12px}
.balance-details-page .recorded-result{text-align:center;padding:28px 0 20px}
.balance-details-page .recorded-result>strong{display:block;font-size:clamp(2.25rem,8vw,3.5rem);line-height:1.2;margin:10px 0;overflow-wrap:anywhere}
.balance-details-page .recorded-result p{color:var(--muted);overflow-wrap:anywhere}
.balance-details-page .reference-notice{border-left:2px solid var(--purple);padding:16px;background:var(--surface);border-radius:0 16px 16px 0}
.balance-details-page .reference-notice h3{margin:0 0 8px}
.balance-details-page .balance-detail-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;width:100%;min-height:72px;padding:18px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left}
.balance-details-page .balance-detail-row strong,.balance-details-page .balance-detail-row small{display:block;overflow-wrap:anywhere}
.balance-details-page .balance-detail-row small{color:var(--muted);margin-top:4px}
.balance-details-page .balance-detail-row>span{flex:1 1 140px;min-width:0}
.balance-details-page .balance-detail-row>b{flex:0 0 auto;margin-left:auto;white-space:nowrap;overflow-wrap:normal;text-align:right;font-size:1rem}
.balance-details-page [data-action=account]{width:100%;min-height:48px;border-radius:28px;margin:16px 0}
.balance-details-page .reference-fact{display:grid;gap:6px;padding:18px 0;border-bottom:1px solid var(--line)}
.balance-details-page .reference-fact>span{color:var(--muted)}
.balance-details-page .reference-fact>strong{overflow-wrap:anywhere}
.balance-details-page details{margin-top:20px;border-block:1px solid var(--line);padding:14px 0}
.balance-details-page summary{min-height:44px;align-content:center;cursor:pointer}
.balance-details-page :focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.balance-details-nav .icon-button{background:var(--surface2);color:var(--text)}
.balance-details-page .reference-fact{grid-template-columns:minmax(0,1fr);justify-items:start}
.balance-details-page .reference-fact>strong{text-align:left;font-size:1rem}
.balance-details-page .settling-estimate{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:16px}
.balance-details-page .settling-estimate-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.balance-details-page .settling-estimate-amount{display:block;font-size:1.25rem;margin-bottom:10px;overflow-wrap:anywhere}
.balance-details-page .settling-estimate-amount small{white-space:nowrap}
.balance-details-page .settling-estimate>small{display:block;color:var(--muted);margin-top:8px;line-height:1.5}

.balance-details-page .balance-account-label{display:flex;align-items:center;gap:10px;flex-basis:170px}
.balance-account-glyph{flex:0 0 28px;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;color:var(--purple);background:var(--surface2);border-radius:50%}
.balance-account-glyph svg{width:17px;height:17px}
.balance-account-copy{min-width:0}
.balance-details-page .recorded-result>.balance-page-number,.balance-details-page .reference-fact>strong{white-space:nowrap;overflow-wrap:normal}
.balance-details-page .recorded-result>.balance-page-number-long{font-size:clamp(1.05rem,5vw,2rem)}

/* Exact Plan differences may be large even when gross totals are unavailable. */
@media(max-width:700px){.phone-plan-categories .summary-lead>strong{font-size:clamp(1rem,5vw,2rem);white-space:nowrap}.phone-plan-categories .reference-fact{flex-wrap:wrap;min-width:0}.phone-plan-categories .reference-fact>span{min-width:0}.phone-plan-categories .reference-fact strong{white-space:nowrap}}
