:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#17283a;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}header{background:#102c45;color:white;padding:calc(env(safe-area-inset-top) + 24px) 20px 32px;border-radius:0 0 28px 28px}header h1{margin:4px 0;font-size:25px}header small{opacity:.75}.shell{max-width:680px;margin:auto;padding-bottom:calc(90px + env(safe-area-inset-bottom))}.content{padding:18px}.card{background:white;border-radius:18px;padding:17px;margin-bottom:14px;box-shadow:0 4px 18px #1b39500a}.balance{background:linear-gradient(120deg,#174e70,#087e87);color:white}.balance .big{font-size:30px;font-weight:800;margin:10px 0}.muted{color:#728093;font-size:13px}.balance .muted{color:#d5e7ef}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{font-weight:750;font-size:18px;margin-top:8px}.green{color:#07966f}.red{color:#e35b5b}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.item{padding:12px 0;border-bottom:1px solid #edf0f4}.item:last-child{border-bottom:0}.pill{padding:6px 10px;background:#eaf3f8;border-radius:20px;font-size:12px;color:#176582}.btn{border:0;border-radius:12px;background:#126b83;color:white;padding:12px 16px;font-weight:650}.btn.secondary{background:#e9f1f5;color:#1b5d71}.btn.danger{background:#fff0f0;color:#b52f3d}.btn:disabled{opacity:.5}nav{position:fixed;bottom:0;left:0;right:0;max-width:680px;margin:auto;background:white;display:grid;grid-template-columns:repeat(6,1fr);padding:9px 4px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -5px 25px #102c4515;z-index:10}nav button{border:0;background:transparent;color:#7a8a98;padding:5px 1px;font-size:11px}nav button.active{color:#087e87;font-weight:750}nav span{display:block;font-size:22px;margin-bottom:3px}.section-title{font-size:18px;font-weight:800;margin:6px 0 15px}label{display:block;font-size:13px;font-weight:650;margin:12px 0 6px}input,select{width:100%;border:1px solid #dbe3eb;border-radius:11px;padding:12px;background:#fff;color:#17283a}form .btn{width:100%;margin-top:16px}.bar{height:9px;background:#e9eef2;border-radius:10px;overflow:hidden;margin:10px 0}.bar>div{height:100%;background:#17a98a;border-radius:10px}.bar>div.over{background:#e35b5b}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.tabs button{border:0;border-radius:20px;padding:9px 13px;background:#e6edf2;color:#536a78}.tabs button.active{background:#126b83;color:white}.chartrow{display:grid;grid-template-columns:95px 1fr 90px;gap:8px;align-items:center;margin:12px 0;font-size:12px}.chartbar{height:13px;border-radius:9px;background:#edf1f5;overflow:hidden}.chartbar div{height:100%;background:#11a48d}.empty{text-align:center;color:#718394;padding:30px}.smallbtn{border:0;background:#eef4f7;color:#245a70;border-radius:9px;padding:7px 9px;font-size:12px}.notice{padding:12px;border-radius:12px;background:#fff4e0;color:#8b5a15;margin-bottom:12px;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions .btn{flex:1}.footer{font-size:12px;color:#82909b;text-align:center;margin:20px 0}

.overlay{position:fixed;inset:0;z-index:100;background:#102c4588;display:flex;align-items:center;justify-content:center;padding:15px}.dialog{width:min(100%,480px);max-height:85vh;overflow:auto;margin:0}nav button{font-size:10px}
