:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f6fa;color:#152c46;--navy:#102541;--muted:#6b8096;--border:#dce5ee;--green:#218267;--red:#bc4f4e;--gold:#b58a51}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.9px}h2{font-size:16px}h3{font-size:14px}.top{background:var(--navy);color:white;position:sticky;top:0;z-index:10}.top-inner{max-width:1180px;margin:auto;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:25px;font-weight:850;letter-spacing:-1.5px}.brand b{color:#d8ac73}.micro{font-size:10px;color:#c1d0e2;font-weight:700;letter-spacing:.8px;margin-top:2px}.head-right{display:flex;align-items:center;gap:10px}.avatar{display:grid;place-items:center;width:35px;height:35px;background:#456789;border-radius:50%;font-weight:800}.mode{font-size:10px;border:1px solid #b68b54;color:#f0d4aa;padding:6px 10px;border-radius:30px;font-weight:800}.desktop-nav{display:flex;gap:3px}.navbutton{display:flex;align-items:center;gap:8px;padding:10px 13px;border:0;border-radius:10px;background:transparent;color:#bed0e3;font-size:13px;font-weight:700}.navbutton.active{background:#2a4767;color:white}.navbutton .icon{width:17px;height:17px}.main{max-width:1180px;padding:27px 22px 130px;margin:auto}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}.overline{color:#b58a51;font-weight:800;font-size:11px;letter-spacing:1.5px;margin-bottom:7px}.sub{font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px}.grid{display:grid;gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:19px;box-shadow:0 4px 20px #132d4307}.section{margin-top:17px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:13px}.wrap{flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border-radius:10px;border:1px solid transparent;padding:8px 14px;background:var(--navy);color:white;font-size:12px;font-weight:750;line-height:1.2}.btn .icon{width:16px;height:16px}.btn.light{background:white;color:var(--navy);border-color:#d4e0eb}.btn.ghost{background:transparent;color:#426b96}.btn.danger{background:#fff1ee;color:var(--red);border-color:#f0d9d6}.btn.tiny{padding:7px 10px;min-height:29px}.link{border:0;background:transparent;font-size:12px;color:#386b9e;font-weight:750;padding:4px;cursor:pointer}.intro{border-radius:17px;background:linear-gradient(125deg,#18375a,#102541);padding:22px 24px;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.intro h2{font-size:18px;margin-bottom:7px}.intro p{font-size:13px;line-height:1.5;color:#d1deec}.intro .btn{background:white;color:var(--navy)}.badge{font-size:10px;font-weight:800;color:#52708a;background:#eef2f6;padding:6px 9px;border-radius:30px;white-space:nowrap}.badge.red{background:#feebeb;color:#a94848}.badge.orange{background:#fff1da;color:#a46a2b}.badge.green{background:#e9f5f0;color:#287961}.badge.blue{background:#edf3fa;color:#436b98}.metric-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef3fa;color:#456f9a;margin-bottom:10px}.metric-icon.green{color:var(--green);background:#e9f6f0}.metric-icon.gold{color:#ad8352;background:#faf1e6}.metric-label{font-size:12px;font-weight:680;color:#637d97}.metric-value{font-weight:830;font-size:25px;letter-spacing:-1px;margin:9px 0 5px;overflow-wrap:anywhere}.muted{color:var(--muted);font-size:11px;line-height:1.45}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.item{padding:12px 0;border-bottom:1px solid #edf1f5;display:flex;align-items:center;gap:11px}.item:last-child{border-bottom:0}.item-text{flex:1;min-width:0}.item-title{font-size:13px;font-weight:780;overflow-wrap:anywhere}.item-sub{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.amount{font-size:14px;font-weight:800;white-space:nowrap}.neg{color:#b84d50}.pos{color:var(--green)}.dot{height:10px;width:10px;border-radius:50%;background:#5884b2;flex:none}.dot.english{background:#479b82}.dot.personal{background:#bd965c}.dot.payment{background:#c28b53}.bar{height:8px;background:#e9eef3;border-radius:20px;overflow:hidden}.bar>i{display:block;height:100%;background:#4a789f;border-radius:20px}.bar.red>i{background:#d26765}.bar.orange>i{background:#d3a257}.bar.green>i{background:#359a7c}.cardblock{padding:15px 0;border-bottom:1px solid #edf1f5}.cardblock:first-child{padding-top:0}.cardblock:last-child{border-bottom:0;padding-bottom:0}.cardblock h3{font-size:14px}.cardblock .balance{font-size:21px;font-weight:820;margin:13px 0 3px}.kpi{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin:11px 0 7px}.empty{background:#fafcfe;border:1px dashed #cbdbe9;padding:26px 15px;text-align:center;border-radius:14px;color:#72869a;font-size:12px;line-height:1.6}.empty .icon{height:28px;width:28px;color:#7992ac;margin-bottom:8px}.empty .btn{margin-top:12px}.notice{display:flex;gap:10px;align-items:flex-start;background:#edf5fc;border:1px solid #d8e7f3;color:#496985;padding:12px 14px;border-radius:12px;font-size:12px;line-height:1.5}.notice .icon{height:18px;width:18px}.seg{background:#e7eef5;border-radius:11px;padding:4px;display:inline-flex;gap:2px;flex-wrap:wrap;margin-bottom:19px}.seg button{border:0;border-radius:8px;padding:9px 12px;background:transparent;color:#647b91;font-size:12px;font-weight:750}.seg button.active{color:#17324d;background:white;box-shadow:0 1px 4px #17345122}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.day{border:1px solid #e9eef4;background:#f7f9fc;min-height:108px;border-radius:10px;padding:7px 4px}.day.today{background:#fff8ed;border-color:#d7b485}.day-label{font-size:10px;font-weight:800;text-align:center;margin-bottom:8px}.chip{background:#e8f0fa;color:#38658d;font-size:10px;line-height:1.4;border-radius:5px;margin-bottom:4px;padding:5px 3px;overflow-wrap:anywhere}.chip.english{background:#e3f4ed;color:#2b7b62}.chip.personal{background:#f5eddf;color:#806333}.chip.payment{background:#ffeed9;color:#95602d}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:750;color:#4a6076}.field input,.field select,.field textarea{width:100%;min-height:40px;border-radius:10px;border:1px solid #cbd8e4;padding:10px 11px;background:white;color:#18324b;font-size:13px}.field textarea{min-height:100px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid #d9e9f5;border-color:#5786ad}.modalback{position:fixed;inset:0;background:#0a1d3288;z-index:100;display:flex;align-items:center;justify-content:center;padding:15px}.modal{background:white;width:min(100%,520px);max-height:calc(100svh - 32px);overflow:auto;border-radius:18px;box-shadow:0 20px 80px #00152a4d}.modalhead{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e9eef4}.modalbody{padding:19px 20px}.formactions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.task{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid #edf1f5;padding:11px 0}.task:last-child{border:0}.task input{height:17px;width:17px;accent-color:#26876c}.task.done strong{text-decoration:line-through;color:#91a0ae}.bline{padding:13px 0;border-bottom:1px solid #edf1f5}.bline:last-child{border-bottom:0}.bottom{display:none}.privacy{max-width:900px;margin-top:25px;font-size:11px;color:#74879a;line-height:1.6}#toast{position:fixed;left:50%;bottom:28px;background:#17354f;color:white;border-radius:12px;padding:11px 16px;transform:translate(-50%,20px);opacity:0;transition:.2s;pointer-events:none;z-index:150;box-shadow:0 8px 22px #00192d44;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.desktop-nav{display:none}.bottom{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--border);padding:7px 5px calc(7px + env(safe-area-inset-bottom));z-index:50;box-shadow:0 -4px 15px #132b4609}.bottom button{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;color:#7f95aa;border:0;border-radius:11px;padding:8px 3px;font-size:10px;font-weight:800}.bottom button.active{color:#254c76;background:#edf3fa}.main{padding:23px 17px 125px}.top-inner{padding:14px 17px}#toast{bottom:90px}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pagehead h1{font-size:25px}.pagehead>.btn{padding:8px 9px;font-size:11px}.grid.two{grid-template-columns:1fr}.grid.four{gap:11px}.grid.four .card{padding:16px}.grid.four .metric-value{font-size:24px}.card{padding:17px}.intro{flex-direction:column;align-items:flex-start}.form-grid{grid-template-columns:1fr}.week{gap:3px}.day{min-height:94px;padding:5px 2px}.chip{font-size:9px;padding:4px 2px}.day-label{font-size:9px}}

/* ALX 0.2: controls for recurring obligations on small screens. */
.bill-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;min-width:95px}
.bill-actions .link{font-size:11px}
@media(max-width:600px){.bill-actions{justify-content:flex-start;width:100%;padding-left:40px}.item:has(.bill-actions){flex-wrap:wrap}.item:has(.bill-actions)>.item-text{flex-basis:40%}}
/* ALX v0.3 — pantalla de acceso y bloqueo por conflictos */
.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0%,#e2edf6 0,#f3f6fa 65%)}
.auth-panel{width:min(100%,430px);background:#fff;border:1px solid var(--border);border-radius:23px;padding:34px 28px;box-shadow:0 24px 70px #10254116}
.auth-panel h1{font-size:25px;margin:28px 0 8px}
.auth-panel .notice{margin:18px 0 0;color:#a34242;background:#fff1f0;border-color:#f1d5d5}
.auth-brand{color:#102541;font-size:35px}.auth-subtitle{color:#6a8098;font-size:12px;font-weight:700;margin-top:3px}
#alx-login{display:grid;gap:15px;margin-top:23px}.auth-submit{margin-top:4px;min-height:46px}
.remote-mode{border-color:#80a79b;color:#cbf3de}.sync-modal .sub{font-size:13px;line-height:1.6;margin-bottom:20px}.sync-actions{display:flex;gap:10px;flex-wrap:wrap}.sync-actions>.btn{flex:1;min-width:155px}
@media(max-width:550px){.auth-panel{padding:26px 22px}.head-right{gap:6px}.head-right .mode{font-size:9px;padding:5px 7px}}