:root{color-scheme:light;--text:#171d39;--muted:#7f8ba7;--bg:#f6f8fe;--white:#fff;--blue:#545bf4;--blue2:#7768e7;--line:#e8ecf6;--green:#0a9a77;--red:#c5485b}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--text)}body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0%,#e8eeff 0%,transparent 370px),var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}.shell{width:min(860px,100%);margin:auto;padding:22px 20px 150px}.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;gap:8px}.brand,.auth-brand{display:flex;align-items:center;gap:9px;font-size:24px;letter-spacing:-1.4px;font-weight:850}.brand-icon{height:41px;width:41px;border-radius:14px;color:#fff;display:inline-grid;place-items:center;background:linear-gradient(135deg,#2626ac,#7167ff);box-shadow:0 10px 25px #545bf43b;font-size:27px;font-weight:500}.brand-dot{color:#7776f5}.header-right{display:flex;align-items:center;gap:8px}.user-pill{background:#fff;border:1px solid var(--line);border-radius:99px;padding:9px 12px;font-size:12px;color:#59627d;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-btn{border:1px solid var(--line);border-radius:14px;width:42px;height:42px;background:#fff;font-size:25px;color:#5a61ce}.view-head{margin:14px 0 27px}.eyebrow{color:#777cf0;font-size:10px;font-weight:850;letter-spacing:2.8px}.view h1,.auth-screen h1{font-size:clamp(29px,6vw,42px);line-height:1.14;letter-spacing:-1.8px;margin:14px 0 10px}.view h1 em{color:#625dec;font-style:normal}.muted{color:var(--muted);line-height:1.6;margin:0}.filter-row{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px}.chip{background:transparent;border:0;color:#67738d;padding:11px 14px;border-radius:13px;white-space:nowrap;font-weight:700;font-size:13px}.chip.selected{background:#fff;color:#5558cb;box-shadow:0 7px 18px #1e2a6220}.saldo-card{padding:28px;border-radius:28px;background:radial-gradient(circle at 90% 100%,#5140ed 0%,transparent 42%),linear-gradient(125deg,#111054,#252a94);color:#fff;box-shadow:0 14px 35px #28247b2d}.saldo-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#dce3ff;font-size:13px}.live-pill{font-size:10px;letter-spacing:1px;background:#ffffff18;border:1px solid #ffffff26;padding:10px;border-radius:100px;white-space:nowrap}.saldo-card>strong{display:block;font-size:clamp(37px,8vw,56px);margin:26px 0 4px;letter-spacing:-2px;overflow-wrap:anywhere}.saldo-sub{font-size:12px;color:#bac3fb}.saldo-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:1px solid #ffffff2b;margin-top:28px;padding-top:19px}.saldo-bottom small{display:block;color:#b8c4ff;font-size:12px;margin-bottom:6px}.saldo-bottom b{font-size:16px;overflow-wrap:anywhere}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:30px 0 13px}.section-head h2{font-size:18px;letter-spacing:-.5px;margin:0}.hint{font-size:12px;color:var(--muted)}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.white-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 10px 30px #1b2d5910}.white-card b{display:block;font-size:19px;letter-spacing:-.5px;margin:10px 0 3px;overflow-wrap:anywhere}.white-card small,.mini-title{display:block;font-size:12px;color:var(--muted)}.text-button,.linklike{border:0;background:none;color:var(--blue);font-weight:750;font-size:13px}.transaction-list,.stack{display:flex;flex-direction:column;gap:10px}.transaction-item,.budget-item,.goal-item{padding:16px 18px;border-radius:19px;background:white;border:1px solid var(--line);display:flex;align-items:center;gap:13px}.tx-emoji{height:42px;width:42px;border-radius:13px;background:#eef0ff;color:#564dcf;display:grid;place-items:center;font-size:19px;flex-shrink:0}.tx-emoji.income{background:#e4f7f1;color:var(--green)}.tx-meta{min-width:0;flex:1}.tx-meta b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-meta small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-amount{text-align:right;white-space:nowrap;font-size:13px;font-weight:850}.tx-amount.income{color:var(--green)}.tx-menu{border:0;background:#f3f5fb;border-radius:10px;color:#717a9b;font-size:20px;padding:4px 10px}.empty{padding:36px 20px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #dfe5f5;border-radius:18px;font-size:14px}.tool-row{display:grid;grid-template-columns:1fr 130px;gap:10px;margin:20px 0}.tool-row input,.tool-row select,input,textarea{min-width:0}.tool-row input,.tool-row select,.modal input,.modal textarea,.auth-screen input{border:1px solid #dde3f0;border-radius:13px;background:#fff;padding:13px 14px;width:100%;outline-color:#736cf1;color:var(--text)}.tool-row input:focus,.modal input:focus,.auth-screen input:focus{border-color:var(--blue)}.btn{background:#eef0fb;color:#555dc8;border:none;padding:12px 15px;border-radius:12px;font-weight:750;white-space:nowrap}.btn.primary{background:linear-gradient(120deg,#4d58f0,#7765e9);color:white}.btn.danger{background:#be4052;color:white}.btn.danger-outline{background:#fff1f3;color:#ae3347}.btn.small{padding:10px;font-size:12px}.btn.full{width:100%}.floating-add{position:fixed;z-index:4;bottom:94px;left:50%;transform:translateX(-50%);border:none;border-radius:99px;color:#fff;background:linear-gradient(110deg,#5359e9,#8065e5);padding:15px 25px;min-height:52px;font-size:14px;font-weight:800;box-shadow:0 8px 24px #5857c65c;white-space:nowrap}.bottom-nav{position:fixed;z-index:5;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:8px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:none;color:#818da9;font-size:11px;font-weight:700;padding:7px 3px;display:flex;flex-direction:column;align-items:center;gap:3px}.bottom-nav button.active{color:#555bef}.bottom-nav button span{font-size:24px;line-height:1.3}.modal{border:0;border-radius:25px;padding:0;width:min(480px,calc(100vw - 22px));max-height:calc(100dvh - 24px);box-shadow:0 35px 100px #15194550}.modal::backdrop{background:#141a3f83;backdrop-filter:blur(3px)}.modal-body{padding:22px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;max-height:calc(100dvh - 24px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal h2{margin:0;font-size:21px}.close{border:0;background:#f2f3fa;color:#4e5770;border-radius:10px;font-size:24px;width:36px;height:36px}.modal label,.auth-screen label{display:flex;flex-direction:column;gap:7px;color:#424c69;font-size:13px;font-weight:700}.modal-actions{display:flex;justify-content:flex-end;gap:9px}.type-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px}.type-switch label{background:#f4f5fb;border-radius:10px;padding:12px;display:block}.type-switch input{width:auto}.budget-item,.goal-item{align-items:flex-start;flex-direction:column;gap:12px}.item-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px}.item-top b{font-size:15px}.item-top small{font-size:12px;color:var(--muted)}.item-actions{display:flex;align-items:center;gap:6px}.item-actions button{border:0;background:#f3f4fc;border-radius:9px;padding:8px;color:#565ec9;font-size:12px}.progress-track{height:9px;background:#e9edfb;border-radius:30px;width:100%;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#4b62f0,#8270ed);border-radius:30px}.progress-fill.over{background:var(--red)}.item-foot{display:flex;justify-content:space-between;width:100%;color:#77839e;font-size:12px}.account-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.account-card b{margin:0}.caption{font-size:12px;line-height:1.6;color:var(--muted)}.auth-screen,.setup-screen{min-height:100vh;display:grid;place-items:center;padding:28px 18px}.auth-wrap,.setup-card{background:#fff;box-shadow:0 15px 50px #293a7219;border:1px solid var(--line);border-radius:27px;padding:clamp(25px,6vw,42px);max-width:440px;width:100%}.auth-brand{margin-bottom:32px}.auth-screen h1{font-size:34px}.auth-tabs{background:#f4f5fb;border-radius:13px;padding:4px;display:grid;grid-template-columns:1fr 1fr;margin:27px 0}.auth-tabs button{border:0;background:transparent;color:#7b87a1;border-radius:10px;padding:11px;font-weight:700}.auth-tabs button.active{background:#fff;color:#585cf1;box-shadow:0 3px 12px #2a366319}.form-fields{display:flex;flex-direction:column;gap:18px}.auth-footnote{border-top:1px solid var(--line);margin-top:18px;padding-top:17px;color:var(--muted);font-size:12px;line-height:1.6}.auth-screen .linklike{padding:17px 0 0}.toast{position:fixed;z-index:100;top:24px;left:50%;transform:translateX(-50%);max-width:min(460px,calc(100vw - 35px));width:max-content;padding:15px 20px;border-radius:14px;background:#263564;color:#fff;box-shadow:0 9px 35px #14215c4f;font-size:13px;font-weight:700}.toast.error{background:#b63b53}.setup-card code{background:#f3f3fb;padding:3px;border-radius:4px}@media(min-width:900px){.bottom-nav{left:50%;max-width:860px;transform:translateX(-50%);border:1px solid var(--line);border-radius:24px 24px 0 0}.floating-add{bottom:106px}}@media(max-width:430px){.shell{padding:19px 14px 150px}.saldo-card{padding:22px}.summary-grid{gap:8px}.white-card{padding:15px}.white-card b{font-size:16px}.tx-amount{font-size:12px}.transaction-item{padding:13px;gap:9px}.user-pill{max-width:100px}.tool-row{grid-template-columns:1fr}}
