/* Wallet uses the same blue/white phone layout as cashflow. Organizer keeps its own styles. */
#app.wallet-page{--accent:#49830e;--line:var(--soft,#f0f8e8);--muted:#9697a1;--green:#48ad55;--red:#ff525b;background:#fff!important;color:#34343c}
.wallet-page .wallet-header{display:flex;gap:8px;background:var(--accent);color:white;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));min-height:70px;flex-shrink:0}
.wallet-header>button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px}
.wallet-page main.scroll{padding:0 0 20px;background:white}
.wallet-page .wallet-overview{text-align:left;color:white;padding:14px 24px 23px;background:radial-gradient(circle at 76% 63%,var(--muted) 0,transparent 60%),var(--accent);position:relative;overflow:hidden}
.wallet-overview:before{content:'';position:absolute;pointer-events:none;border:1px solid #ffffff1a;width:420px;height:420px;border-radius:50%;left:-170px;top:20px}
.wallet-overview>*{position:relative}
.wallet-overview h1{font-size:32px;margin:0 0 25px;font-weight:700;color:white}
.wallet-page .wallet-overview h2{font-size:15px;color:var(--line);margin:0 0 10px;font-weight:400}
.wallet-page .wallet-net{font-size:clamp(29px,7vw,40px);font-weight:700;letter-spacing:-.7px;line-height:1.15;margin-bottom:30px;overflow-wrap:anywhere}
.wallet-page .wallet-totals{background:transparent;padding:0;gap:18px;border-radius:0;display:grid;grid-template-columns:1fr 1fr}
.wallet-page .wallet-totals span{font-size:14px;color:var(--line);margin-bottom:7px}
.wallet-page .wallet-totals strong{color:white;font-size:21px;font-weight:600;overflow-wrap:anywhere}
.wallet-missing-rate{background:#ffffff20;color:#fff;border-radius:10px;padding:8px 12px;margin-top:16px;font-size:12px;min-height:38px;text-align:left}
.wallet-accounts{padding:12px 10px 18px}
.wallet-page .wallet-folder{margin:0 0 16px;border-radius:25px;box-shadow:0 4px 15px #1d231820;background:white;overflow:hidden}
.wallet-page .wallet-folder>summary{background:var(--line);padding:13px 16px;gap:7px;min-height:46px;color:#7d7e89;font-size:14px}
.wallet-page .wallet-folder>summary strong{font-size:12px;color:#858592;font-weight:400;max-width:57%;line-height:1.5}
.wallet-page .wallet-folder>summary:before{font-size:20px;color:var(--muted)}
.wallet-page .wallet-folder .fold-content{padding:0 16px}
.wallet-page .wallet-folder .account-row{margin:0;padding:17px 0;gap:10px;border-radius:0;background:white;border:0;border-bottom:1px solid var(--soft,#f0f8e8);align-items:center;min-height:78px;color:#34343c}
.wallet-page .wallet-folder .account-row:last-child{border-bottom:0}
.wallet-page .wallet-folder .symbol{width:44px;height:45px;border-radius:12px;background:var(--soft,#f0f8e8);color:var(--muted);font-size:28px;flex-shrink:0}
.wallet-account-info{flex:1;min-width:0;display:block}
.wallet-page .wallet-folder .account-title{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.wallet-page .wallet-folder .account-note{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0 0;color:#999aa3}
.wallet-account-value{text-align:right;max-width:45%;min-width:0;flex-shrink:0}
.wallet-account-value strong{font-size:16px;font-weight:650;display:block;overflow-wrap:anywhere}
.wallet-account-value small{display:block;color:#999aa3;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.wallet-credit{display:block;color:var(--muted);font-size:11px;margin-top:7px;overflow-wrap:anywhere}
.wallet-schedule{display:block;color:#9c9ca6;font-size:10px;margin-top:4px;line-height:1.5}
.wallet-page .wallet-folder .wallet-credit-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:10px;row-gap:0}
.wallet-credit-row .wallet-account-value{max-width:140px}
.wallet-credit-details{grid-column:2 / -1;text-align:left;min-width:0}
.wallet-repayment{display:flex;flex-wrap:wrap;gap:3px 6px;margin-top:6px;font-size:12px;line-height:1.6;color:#66677b;overflow-wrap:anywhere}
.wallet-repayment strong{color:var(--accent);font-weight:650}
@media(max-width:360px){.wallet-page .wallet-folder .wallet-credit-row{grid-template-columns:33px minmax(0,1fr) auto}.wallet-credit-row .wallet-account-value{max-width:110px}.wallet-repayment{font-size:11px}}
.wallet-page .wallet-footnote{color:#9697a1;font-size:10px;margin:16px 6px}
.wallet-page .bottom{background:white;border-color:var(--soft,#f0f8e8)}
.wallet-page .bottom button.active{color:var(--accent)}
.wallet-page .bottom button{color:#93939d}
.wallet-currencies{background:white}
.wallet-currencies .dialog-head{background:var(--accent);color:white;border:0}
.wallet-currencies .dialog-head .link{color:white}
.wallet-currencies .dialog-body{display:flex;flex-direction:column;padding:0 16px 20px}
.currency-row{display:flex;align-items:center;gap:10px;width:100%;min-height:75px;border-bottom:1px solid var(--soft,#f0f8e8);text-align:left;padding:10px 0;font-size:16px}
.currency-row small{font-size:12px;color:#999aa3;max-width:45%;text-align:right;overflow-wrap:anywhere}
.currency-row>span:last-child{color:var(--accent);font-size:24px}
.currency-glyph{display:grid;place-items:center;width:38px;height:38px;background:var(--soft,#f0f8e8);border-radius:50%;color:var(--muted);font-size:22px;flex-shrink:0}
.currency-section-label{color:#999aa3;font-size:12px;margin:26px 0 0}
.currency-help{color:#999aa3;font-size:12px;line-height:1.6;margin:20px 0}
.currency-footer{margin-top:auto;color:#999aa3;font-size:11px;line-height:1.6;text-align:center;padding-top:35px}
@media(max-width:360px){.wallet-page .wallet-header{padding-inline:10px;gap:4px}.wallet-page .wallet-overview{padding:12px 18px 20px}.wallet-overview h1{font-size:29px}.wallet-page .wallet-net{font-size:28px}.wallet-page .wallet-totals strong{font-size:17px}.wallet-page .wallet-folder .fold-content{padding-inline:12px}.wallet-page .wallet-folder .symbol{width:33px;height:37px;font-size:24px}.wallet-page .wallet-folder .account-title,.wallet-account-value strong{font-size:14px}.wallet-page .wallet-folder>summary{padding-inline:12px}.currency-row{gap:7px;font-size:14px}.currency-row small{font-size:11px}.currency-glyph{width:32px;height:32px}}
.wallet-overview h1{margin-bottom:16px}.wallet-page .wallet-overview{padding-top:10px;padding-bottom:18px}.wallet-page .wallet-overview h2{margin-bottom:5px;font-size:13px}.wallet-page .wallet-net{margin-bottom:18px;font-size:clamp(27px,6vw,34px)}.wallet-page .wallet-totals{gap:12px 18px}.wallet-page .wallet-totals>div{display:flex;flex-direction:column;gap:3px}.wallet-page .wallet-totals span{margin:0;font-size:12px}.wallet-page .wallet-totals strong{font-size:clamp(15px,4.5vw,20px)}
