:root{color-scheme:light dark;--bg:#f3f4f8;--panel:#fff;--ink:#171922;--sub:#686c7c;--line:#e6e9f0;--blue:#2763ed;--soft:#e8efff;--green:#18845a;--orange:#a76516;--orange-bg:#fff4df;--red:#963757;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none;--app-height:100dvh}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{border:0;background:none;cursor:pointer;min-height:42px}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}a{color:var(--blue)}[hidden]{display:none!important}#app{height:var(--app-height);max-width:480px;margin:auto;padding:env(safe-area-inset-top) 20px 0;display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden}#header{flex:none;display:flex;align-items:center;gap:12px;height:56px}.logo{font-size:23px;letter-spacing:-1.2px;font-weight:750;text-decoration:none;color:var(--ink);white-space:nowrap}.logo span{color:var(--blue)}.avatar{border-radius:50%;height:38px;min-height:38px;width:38px;flex-shrink:0;background:var(--panel);font-size:12px;font-weight:650;display:grid;place-items:center}#cash-switch{margin-left:auto;min-width:0;max-width:165px}#cash-switch select{width:100%;font-size:12px;font-weight:550;border:0;background:transparent;text-overflow:ellipsis;min-height:36px;padding:4px 16px 4px 3px}#screen{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:8px 0 10px;gap:12px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.15;font-weight:720}h2{font-size:17px;letter-spacing:-.4px;font-weight:650}h3{font-size:15px;font-weight:650}small,.muted{font-size:12px;color:var(--sub);line-height:1.4}.eyebrow{margin-bottom:4px;display:block}.title{flex:none}.title-row,.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.text-button{color:var(--blue);font-size:12px;padding:3px 0;min-height:32px;white-space:nowrap}.icon{width:21px;height:21px;stroke-width:1.8;flex-shrink:0}.panel{background:var(--panel);border-radius:22px;padding:18px}.wallet{background:linear-gradient(135deg,#293951,#121b2c);border-radius:26px;padding:21px;color:#fff;position:relative;overflow:hidden;flex:none}.wallet:after{content:'';position:absolute;width:210px;height:210px;border-radius:50%;border:1px solid #ffffff12;right:-95px;top:-90px;pointer-events:none}.wallet small{color:#bdc9df;display:block}.wallet .balance{font-size:40px;line-height:1.1;font-weight:650;letter-spacing:-1.7px;margin:10px 0 16px;font-variant-numeric:tabular-nums}.wallet-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid #ffffff20}.wallet-bottom>div:last-child{text-align:right;min-width:0}.wallet-bottom span{display:block;margin-top:3px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;flex:none}.actions button{background:var(--panel);border-radius:18px;min-height:59px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:550;padding:8px 5px}.actions button:last-child{background:var(--soft)}.action-icon{width:31px;height:31px;border-radius:10px;background:var(--soft);color:var(--blue);display:grid;place-items:center;flex:none}.action-icon .icon{width:19px;height:19px}.incoming{flex:none;background:var(--panel);border-radius:20px;padding:12px 14px}.incoming-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;color:var(--orange);font-size:12px;font-weight:650}.incoming-body{display:flex;align-items:center;gap:9px}.initials{height:35px;width:35px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--soft);color:var(--blue);font-size:11px;font-weight:650}.incoming-body .details{flex:1;min-width:0}.incoming-body strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.incoming-body small{font-size:10px;display:block}.incoming-body .pending-sum{font-size:17px;letter-spacing:-.5px;color:var(--orange);white-space:nowrap}.incoming-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px}.pending-pages{display:flex;gap:4px}.pending-pages button{min-height:26px;padding:2px 8px;color:var(--sub)}.incoming-footer .text-button{flex:1;text-align:center;font-size:11px;min-height:28px}.latest{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.section-head{flex:none;min-height:26px}.section-head h2{font-size:16px}.operation-list{background:var(--panel);border-radius:21px;padding:0 13px;min-height:0;display:flex;flex-direction:column;flex:1;overflow:hidden}.op-row{display:flex;align-items:center;gap:9px;width:100%;padding:8px 0;border-bottom:1px solid var(--line);text-align:left;min-height:0;flex:1;max-height:64px}.op-row:last-child{border-bottom:0}.op-row .initials{width:31px;height:32px;border-radius:10px;font-size:10px}.op-row .details{flex:1;min-width:0}.op-row .details strong{font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.op-row .details small{font-size:10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}.op-row .sum{font-size:13px;font-weight:650;letter-spacing:-.35px;white-space:nowrap;font-variant-numeric:tabular-nums}.positive{color:var(--green)}.pending{color:var(--orange)}.negative{color:var(--ink)}.empty{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:8px;padding:15px;color:var(--sub)}.empty .icon{width:30px;height:30px;opacity:.55}.empty strong{font-size:15px;color:var(--ink)}.empty p{font-size:12px;max-width:250px;line-height:1.6}.empty .primary{max-width:250px;margin-top:8px}#nav{flex:none;display:grid;grid-template-columns:repeat(4,1fr);margin:0 -20px;padding:6px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg);z-index:10}#nav button{min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--sub);font-size:10px;padding:4px 0}#nav button[aria-pressed=true]{color:var(--blue)}#nav button .icon{height:21px;width:21px}#toast{position:absolute;bottom:calc(78px + env(safe-area-inset-bottom));left:20px;right:20px;background:#182c24;color:#c8f8dd;box-shadow:0 7px 30px #0002;padding:12px 15px;font-size:12px;line-height:1.4;border-radius:14px;z-index:30;pointer-events:none}#toast.error{background:#54242d;color:#ffe2e6}#network{position:absolute;top:env(safe-area-inset-top);left:0;right:0;z-index:40;text-align:center;font-size:11px;padding:6px;background:var(--orange-bg);color:var(--orange)}.primary,.secondary,.danger{width:100%;border-radius:13px;padding:12px 15px;min-height:46px;font-weight:600;font-size:14px}.primary{background:var(--blue);color:#fff}.secondary{background:var(--soft);color:var(--blue)}.danger{background:#96375716;color:var(--red)}.button-row{display:flex;gap:10px;flex:none}.button-row button{flex:1}.bottom-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px;flex:none}.back{font-size:12px;color:var(--blue);display:flex;align-items:center;gap:3px;min-height:30px;padding:0;width:max-content;flex:none}.back .icon{width:16px;height:16px}.form-card{display:flex;flex-direction:column;gap:14px;min-height:0}.form-card label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--sub);min-width:0}.form-card input,.form-card select,.form-card textarea{font-size:16px;width:100%;min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px;min-height:46px;outline:none}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:var(--blue)}.form-card textarea{resize:none;min-height:88px;max-height:120px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-plus{display:flex;gap:8px;align-items:center}.field-plus input{flex:1;width:0}.field-plus button{flex:none;width:42px;height:46px;background:var(--soft);color:var(--blue);border-radius:12px;font-size:24px}.amount-label{color:var(--sub)}.form-card .amount-input{font-size:42px;letter-spacing:-1px;font-weight:650;border:0;padding:5px 0 10px;background:transparent;border-radius:0;min-height:62px;color:var(--ink)}.step-progress{display:flex;align-items:center;gap:8px;flex:none;color:var(--sub);font-size:11px}.step-dots{display:flex;gap:4px;margin-left:auto}.step-dots i{width:22px;height:4px;border-radius:5px;background:var(--line)}.step-dots i.on{background:var(--blue)}.voice{background:var(--panel);border-radius:18px;display:flex;align-items:center;gap:10px;padding:11px 14px;text-align:left;width:100%;flex:none;min-height:52px}.voice span:nth-child(2){flex:1}.voice strong{font-size:13px;display:block}.voice small{font-size:10px}.attach-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.attach-options button{background:var(--soft);border-radius:15px;padding:12px 4px;display:flex;align-items:center;flex-direction:column;gap:7px;color:var(--blue);font-size:11px}.file-list{display:flex;flex-direction:column;gap:5px}.file-row{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:10px;background:var(--bg);font-size:11px;min-height:32px}.file-row span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-row button{min-height:24px;padding:0 5px;color:var(--red);font-size:11px}.file-row a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-lines{display:flex;flex-direction:column;gap:9px}.review-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:12px;line-height:1.45}.review-line span{color:var(--sub);flex:none}.review-line strong{font-weight:550;text-align:right;min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pill{display:inline-flex;align-items:center;border-radius:9px;padding:6px 8px;background:var(--orange-bg);color:var(--orange);font-size:11px}.detail-amount{font-size:37px;font-weight:650;letter-spacing:-1px;margin:14px 0}.note{font-size:12px;color:var(--sub);line-height:1.55}.detail-text{font-size:13px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.page-buttons{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;font-size:11px;color:var(--sub)}.page-buttons button{min-height:32px;color:var(--blue);padding:3px 12px}.all-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:var(--panel);border-radius:20px;padding:0 13px}.all-scroll .op-row{min-height:66px;max-height:none;flex:none}.search{width:100%;border:1px solid var(--line);background:var(--panel);min-height:42px;border-radius:12px;padding:10px 13px;font-size:14px}.search:focus{outline:2px solid var(--blue);outline-offset:-2px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.stats-grid strong{font-size:19px;letter-spacing:-.5px;display:block;margin-top:4px}.report-balance{font-size:34px;font-weight:650;letter-spacing:-1px;margin-top:10px}.category-list{background:var(--panel);border-radius:20px;padding:0 14px;flex:1;min-height:0;display:flex;flex-direction:column}.category-row{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:8px 0;border-bottom:1px solid var(--line);gap:5px}.category-row:last-child{border:0}.category-row>strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-numbers{display:flex;justify-content:space-between;gap:8px;font-size:11px}.category-numbers span{white-space:nowrap}.choice{background:var(--panel);border-radius:16px;padding:13px 15px;text-align:left;display:flex;align-items:center;gap:10px;min-height:52px;font-size:13px;flex:none}.choice .icon{color:var(--blue)}.choice>span{flex:1}.profile-card{text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px;padding:24px 12px}.profile-card .avatar{width:58px;height:58px;font-size:19px;background:var(--soft);color:var(--blue)}.profile-card h2{font-size:19px;margin-top:5px}.login-screen{justify-content:center;padding-bottom:18px!important}.login-intro{margin-bottom:8px}.login-intro h1{font-size:36px;line-height:1.08}.login-intro p{margin-top:13px;font-size:13px;color:var(--sub);line-height:1.6}.login-foot{text-align:center;font-size:11px;color:var(--sub);margin-top:4px}.loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;font-size:13px;color:var(--sub)}.spinner{height:24px;width:24px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}@media(prefers-color-scheme:dark){:root{--bg:#101115;--panel:#1d1e24;--ink:#f4f5fa;--sub:#a7aabb;--line:#30323d;--blue:#85aaff;--soft:#283756;--green:#76d9ae;--orange:#ffb66e;--orange-bg:#45351d;--red:#efa1b4}.primary{background:#3374f5;color:#fff}.wallet{background:linear-gradient(135deg,#23304d,#111b2d)}}@media(max-height:760px){#header{height:46px}#screen{gap:9px;padding-top:4px}h1{font-size:27px}.wallet{padding:15px 18px}.wallet .balance{font-size:34px;margin:7px 0 10px}.wallet-bottom{padding-top:9px}.actions button{min-height:49px}.action-icon{width:26px;height:28px}.incoming{padding:9px 12px}.incoming-head{margin-bottom:5px;font-size:11px}.incoming-body .initials{width:28px;height:28px}.incoming-footer{margin-top:1px}.incoming-footer .text-button{min-height:24px}.latest{gap:3px}.op-row{padding:5px 0;gap:7px}.op-row .initials{width:26px;height:27px}.op-row .details small{font-size:9px}.op-row .sum{font-size:12px}.op-row .details strong{font-size:11px}#nav button{min-height:46px}#nav{padding-top:4px}.panel{padding:14px 16px}.form-card{gap:10px}.form-card input,.form-card select{min-height:42px;padding:10px}.voice{min-height:46px;padding:8px 12px}.detail-amount{font-size:31px;margin:10px 0}.profile-card{padding:14px}.review-lines{gap:7px}.stats-grid{margin-top:10px}.category-row{gap:3px}.report-balance{font-size:28px}}@media(max-height:640px){#app{padding-left:16px;padding-right:16px}#header{height:40px}#screen{gap:6px;padding-bottom:6px}.title h1{font-size:24px}.eyebrow{font-size:10px}.wallet{padding:12px 15px;border-radius:21px}.wallet .balance{font-size:29px;margin:5px 0 7px}.wallet-bottom{padding-top:6px}.wallet-bottom small{font-size:10px}.wallet-bottom span{font-size:10px}.actions button{min-height:40px;font-size:11px;border-radius:14px}.actions .action-icon{display:none}.incoming-head{font-size:10px;margin-bottom:3px}.incoming{padding:7px 11px}.incoming-body .details small{display:none}.incoming-body strong{font-size:10px}.incoming-body .pending-sum{font-size:14px}.incoming-footer .text-button{min-height:21px;font-size:10px}.incoming-footer .pending-pages button{min-height:21px}.incoming-body .initials{height:24px;width:24px;font-size:9px}.section-head h2{font-size:13px}.section-head{min-height:21px}.text-button{font-size:10px;min-height:24px}.op-row .details small:last-child{display:none}.op-row .initials{height:24px;width:24px}.op-row{padding:3px 0}.op-row .sum{font-size:11px}.op-row .details strong{font-size:10px}#nav{margin-left:-16px;margin-right:-16px;padding-bottom:max(5px,env(safe-area-inset-bottom))}#nav button{min-height:42px;font-size:9px;gap:3px}#nav .icon{width:18px;height:18px}.form-card{gap:7px}.form-card label{gap:3px;font-size:11px}.form-card input,.form-card select{min-height:38px;padding:8px}.form-card .amount-input{font-size:32px;min-height:46px}.panel{padding:11px 13px}.primary,.secondary,.danger{min-height:40px;font-size:12px;padding:10px}.back{min-height:22px;font-size:11px}.voice{min-height:39px;padding:6px 10px}.attach-options button{padding:8px 4px}.review-line{font-size:11px}.review-lines{gap:5px}.detail-text{font-size:12px;-webkit-line-clamp:2}.detail-amount{font-size:27px;margin:7px 0}.note{font-size:11px}.profile-card .avatar{height:40px;width:40px;font-size:14px}.choice{min-height:41px;padding:8px 12px}.login-intro h1{font-size:30px}.login-intro p{font-size:12px;margin-top:8px}.login-screen{gap:10px!important}}@media(min-width:700px){body{background:#dce1ed}#app{box-shadow:0 0 90px #15214920;background:var(--bg)}}

/* Quick action colors */
.actions button[data-new="income"]{background:#168447;color:#fff}.actions button[data-new="expense"]{background:#cc303b;color:#fff}.actions button[data-new="transfer"]{background:#f4ce45;color:#241d06}.actions button .action-icon{background:rgba(255,255,255,.16);color:inherit}.actions button[data-new="transfer"] .action-icon{background:rgba(36,29,6,.09)}

/* Readable summary operations */
.home-screen .wallet{padding:15px 18px}
.home-screen .wallet .balance{font-size:34px;margin:7px 0 10px}
.home-screen .wallet-bottom{padding-top:8px}
.home-screen .latest{flex:1 1 0;min-height:0;gap:8px}
.home-screen .operation-list{flex:1 1 0;padding:4px 14px}
.home-screen .op-row{flex:1 1 0;max-height:82px;padding:7px 0;gap:10px}
.home-screen .op-row .details strong{font-size:15px;line-height:1.3}
.home-screen .op-row .details small{font-size:12px;line-height:1.35}
.home-screen .op-row .sum{font-size:16px;letter-spacing:-.4px}
.home-screen .op-row .initials{width:34px;height:34px;font-size:12px}
@media(max-height:760px){.home-screen .op-row .details small:last-child{display:none}.home-screen .op-row .details strong{font-size:14px}.home-screen .op-row .sum{font-size:15px}.home-screen .op-row{padding:5px 0}.home-screen.has-pending .incoming{padding:7px 12px}.home-screen.has-pending .incoming-body .details small{display:none}}
@media(max-height:640px){.home-screen .wallet{padding:10px 14px}.home-screen .wallet .balance{font-size:28px;margin:4px 0 6px}.home-screen .wallet-bottom{padding-top:5px}.home-screen .latest{gap:3px}.home-screen .operation-list{padding:2px 11px}.home-screen .op-row{padding:3px 0;gap:7px}.home-screen .op-row .details strong{font-size:12px}.home-screen .op-row .details small{font-size:11px}.home-screen .op-row .sum{font-size:13px}.home-screen .op-row .initials{height:26px;width:26px;font-size:10px}}
