@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-Regular.ttf) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-Medium.ttf) format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-SemiBold.ttf) format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-Bold.ttf) format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-ExtraBold.ttf) format('truetype');font-weight:800;font-display:swap}
:root{--bg:#f7f8fc;--surface:#fff;--surface2:#f3f1f9;--text:#252236;--muted:#777287;--line:#eeedf4;--brand:#7339e8;--soft:#f0e9ff;--green:#219f80;--red:#e36178;--orange:#e49b47;--shadow:0 12px 36px #29204b06;--radius:19px;color-scheme:light;font-family:Manrope,system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}body.dark{--bg:#12121c;--surface:#1b1b29;--surface2:#252333;--text:#efedf8;--muted:#aaa5be;--line:#2c293d;--brand:#ad86ff;--soft:#33264c;--green:#66d6b4;--red:#fb99a9;--orange:#edba70;--shadow:0 12px 36px #0002;color-scheme:dark}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--brand)}h1,h2,h3,p{margin:0}h1,h2,h3,.number{font-family:'Manrope',system-ui,sans-serif}h1{font-size:26px;letter-spacing:-.8px;font-weight:800}h2{font-size:17px;font-weight:800;letter-spacing:-.3px}h3{font-size:15px;font-weight:700}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.positive{color:var(--green)}.negative{color:var(--red)}.number{font-variant-numeric:tabular-nums}.icon{width:19px;height:19px;display:inline-block;flex-shrink:0;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand{display:flex;align-items:center;gap:10px;font-family:Manrope,system-ui,sans-serif;font-size:19px;font-weight:800;letter-spacing:-.5px;white-space:nowrap}.brand img{width:35px;height:35px}.brand span span{color:var(--brand)}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:700;white-space:nowrap;background:var(--surface2);color:var(--muted)}.badge.demo{color:var(--brand);background:var(--soft)}.badge.paid{color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}.badge.late{color:var(--red);background:color-mix(in srgb,var(--red) 10%,transparent)}.badge.pending,.badge.partial{color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,transparent)}.btn{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:10px 14px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:12px;min-height:40px;text-decoration:none}.btn:hover{background:var(--surface2)}.btn.primary{background:#7339e8;color:#fff;border-color:#7339e8;box-shadow:0 4px 10px #7339e822}.btn.primary:hover{background:#6330cf}.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn.danger{color:var(--red)}.icon-btn{height:38px;min-width:38px;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:var(--surface2);color:var(--text)}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px;flex-wrap:wrap}.panel-head p{margin-top:4px}.grid2{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.grid-equal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.empty{padding:35px 14px;text-align:center;color:var(--muted)}.empty .icon{width:32px;height:32px;margin-bottom:10px}.empty p{margin-bottom:16px}.avatar{display:grid;place-items:center;border-radius:12px;width:38px;height:38px;background:var(--soft);color:var(--brand);font-weight:700;flex-shrink:0}.avatar.green{color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}.avatar.orange{color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,transparent)}
/* App shell */
.sidebar{overflow-y:auto;position:fixed;inset:0 auto 0 0;width:238px;background:var(--surface);border-right:1px solid var(--line);padding:29px 20px 18px;display:flex;flex-direction:column;z-index:30}.sidebar .brand{padding:0 4px 28px}.nav-label{font-size:9px;letter-spacing:1.8px;color:var(--muted);padding:14px 13px 10px;font-weight:700}.nav-item{width:100%;text-align:left;display:flex;align-items:center;gap:11px;padding:10px 13px;min-height:42px;margin:2px 0;background:transparent;border:0;color:var(--muted);border-radius:9px;font-size:12px;font-weight:500}.nav-item:hover{color:var(--text);background:var(--surface2)}.nav-item.active{background:var(--soft);color:var(--brand);font-weight:700}.nav-item.active:after{content:'';width:5px;height:5px;border-radius:50%;background:var(--brand);margin-left:auto}.sidebar-bottom{margin-top:auto}.plan-tile{background:linear-gradient(125deg,#f2edff,#f8f5ff);padding:15px;border:1px solid #e7defb;border-radius:13px;margin:17px 3px;color:#473a6a}.dark .plan-tile{background:linear-gradient(125deg,#332647,#28213b);border-color:#463557;color:#ddd0f7}.plan-tile strong{font-size:12px}.plan-tile .row{gap:7px}.plan-tile p{font-size:11px;margin:5px 0 10px;color:inherit;opacity:.75}.plan-tile button{font-size:10px;padding:0;border:0;background:transparent;color:var(--brand);font-weight:700}.user{display:flex;align-items:center;gap:9px;padding:14px 5px 0;border-top:1px solid var(--line)}.user .avatar{width:32px;height:32px;border-radius:50%;font-size:12px}.user strong{font-size:11px}.user .tiny{margin-top:2px}.main{margin-left:238px;min-height:100vh}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 34px;background:var(--surface);border-bottom:1px solid var(--line)}.workspace{display:flex;gap:10px;align-items:center}.workspace .avatar{width:33px;height:33px;border-radius:10px}.workspace label{display:block;font-size:9px;color:var(--muted);margin-bottom:3px}.workspace select{border:0;background:transparent;color:var(--text);font-size:12px;font-weight:700;max-width:205px;padding:0 18px 0 0;cursor:pointer}.topbar-actions{display:flex;gap:8px;align-items:center}.divider{height:22px;width:1px;background:var(--line);margin:0 4px}.content{padding:31px 34px 36px;max-width:1670px;margin:0 auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px;flex-wrap:wrap}.page-head p{font-size:12px;color:var(--muted);margin-top:7px}.month-control{display:flex;gap:9px;align-items:center;background:var(--surface);border:1px solid var(--line);padding:4px;border-radius:10px}.month-control span{font-size:11px;font-weight:600;min-width:104px;text-align:center}.month-control .icon-btn{height:28px;min-width:27px}.mobile-only{display:none}.bottomnav{display:none}.app-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:27px;font-size:10px;color:var(--muted);flex-wrap:wrap}
/* Dashboard */
.dashboard-top{display:grid;grid-template-columns:1.12fr 2fr;gap:22px;margin-bottom:22px}.balance-hero{background:linear-gradient(125deg,#7441e4,#6024c4);padding:27px;border-radius:19px;color:#fff;position:relative;overflow:hidden;min-height:205px;display:flex;flex-direction:column;justify-content:space-between}.balance-hero:after{content:'';position:absolute;width:210px;height:210px;border:35px solid #ffffff09;border-radius:50%;right:-90px;top:-70px}.balance-hero .small{color:#e2d1ff}.balance-hero .number{font-size:33px;font-weight:700;letter-spacing:-1.2px;margin:12px 0 16px}.balance-hero .row{font-size:10px;gap:8px}.balance-hero .hero-icon{background:#ffffff19;color:#fff;padding:8px;border-radius:10px;display:grid;place-items:center}.balance-hero .hero-bottom{border-top:1px solid #ffffff22;padding-top:14px;display:flex;justify-content:space-between;gap:10px}.hero-bottom strong{font-size:12px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stat{padding:19px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:5px}.stat-head span{font-size:11px;color:var(--muted)}.stat-head .icon{width:15px;height:15px}.stat .number{font-size:23px;font-weight:800;letter-spacing:-.6px}.stat .small{font-size:10px;margin-top:7px;color:var(--muted)}.chart{height:174px;display:flex;gap:12px;align-items:flex-end;padding:5px 4px 0}.chart-group{flex:1;display:flex;flex-direction:column;align-items:center;gap:11px;min-width:0}.chart-bars{height:140px;display:flex;gap:5px;align-items:flex-end;width:100%;justify-content:center}.bar{width:17px;max-width:30%;border-radius:5px 5px 0 0;min-height:2px}.bar.in{background:#8452e9}.bar.out{background:#e5dcf9}.dark .bar.out{background:#4a3968}.chart-label{font-size:10px;color:var(--muted)}.legend{display:flex;gap:16px;align-items:center;font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.dot{width:6px;height:6px;border-radius:50%;background:#8452e9}.dot.out{background:#d8c9f7}.panel-divider{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.mini-metric{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:12px;gap:9px}.mini-metric strong{font-size:12px;font-weight:600}.progress{height:5px;background:var(--surface2);border-radius:5px;overflow:hidden;margin-top:8px}.progress>span{display:block;height:100%;border-radius:5px;background:var(--brand)}.progress.green>span{background:var(--green)}.list-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-content{flex:1;min-width:0}.list-content strong{font-size:11px;font-weight:600;display:block;overflow-wrap:anywhere}.list-content small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.list-value{text-align:right;white-space:nowrap}.list-value strong{font-size:12px;font-weight:600;display:block}.list-value small{font-size:10px;color:var(--muted)}.list-row .avatar{width:32px;height:32px;border-radius:10px}.list-row .avatar .icon{width:16px;height:16px}.ring-layout{display:flex;align-items:center;gap:24px;margin:16px 0}.ring{width:128px;height:128px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#8050e6 0 40%,#b09ae5 40% 65%,#d3c5f0 65% 83%,#eee7f9 83%);position:relative}.ring:before{content:'';position:absolute;inset:15px;background:var(--surface);border-radius:50%}.ring-center{position:relative;text-align:center}.ring-center strong{display:block;font-size:13px}.ring-center small{font-size:9px;color:var(--muted)}.category-list{flex:1}.category-item{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin:12px 0}.category-item>span{display:flex;align-items:center;gap:6px}.insight{border-radius:11px;background:var(--soft);color:var(--brand);padding:11px 13px;font-size:10px;line-height:1.6;display:flex;gap:8px;align-items:flex-start}.insight .icon{width:15px;height:15px;flex-shrink:0;margin-top:1px}.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
/* Tables and sections */
.toolbar{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:17px}.filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.filter{background:transparent;border:1px solid var(--line);border-radius:8px;padding:8px 11px;font-size:11px;color:var(--muted);min-height:35px}.filter.active{background:var(--soft);color:var(--brand);border-color:transparent}.search{border:1px solid var(--line);background:var(--bg);border-radius:9px;display:flex;align-items:center;gap:8px;padding:8px 11px}.search .icon{width:15px;height:15px;color:var(--muted)}.search input{background:transparent;border:0;width:175px;color:var(--text);font-size:11px;outline:none}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.data-table th{color:var(--muted);font-size:9px;font-weight:600;padding:13px 10px;background:var(--bg);white-space:nowrap}.data-table td{padding:16px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table td:first-child{font-weight:600;min-width:140px}.data-table td small{display:block;font-size:10px;color:var(--muted);margin-top:5px;font-weight:400}.data-table .number{font-size:11px;white-space:nowrap;font-weight:700}.data-table .icon-btn{width:28px;min-width:28px;height:28px}.data-table .icon{width:15px;height:15px}.data-table input[type=checkbox]{accent-color:var(--brand)}.account-card{position:relative;overflow:hidden}.account-card .number{font-size:25px;letter-spacing:-.6px;font-weight:800;margin:21px 0 8px}.bank-mark{font-size:11px;font-weight:800;letter-spacing:-.5px;display:grid;place-items:center;background:var(--soft);color:var(--brand);width:40px;height:40px;border-radius:12px}.credit-card{border-radius:18px;padding:24px;background:linear-gradient(120deg,#8249ed,#5421af);color:#fff;min-height:191px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.credit-card.dark{background:linear-gradient(120deg,#39354d,#1f1c2a)}.credit-card .row{position:relative;z-index:1}.credit-card:after{content:'';position:absolute;right:-30px;bottom:-90px;width:240px;height:240px;border:30px solid #ffffff08;border-radius:50%}.card-number{letter-spacing:3px;font-size:16px;font-family:monospace;margin:26px 0 20px}.credit-card small{font-size:9px;color:#d5c2f5;display:block}.credit-card strong{font-size:13px}.card-detail{padding:19px 2px 4px}.card-detail .mini-metric{font-size:11px}.selected-card{box-shadow:0 0 0 2px var(--brand)}.select-card-btn{padding:0;background:transparent;border:0;text-align:left;width:100%;color:inherit;border-radius:18px}.goal-card .number{font-size:22px;font-weight:800;margin:23px 0 7px}.goal-card .progress{height:7px;margin:17px 0 10px}.choice{display:flex;align-items:flex-start;gap:11px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.choice:last-child{border:0}.choice input{accent-color:var(--brand);width:17px;height:17px;flex-shrink:0;margin:2px 0 0}.choice span{flex:1}.choice small{display:block;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.choice strong{font-weight:600}.timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:18px}.timeline-item{padding:12px;border:1px solid var(--line);border-radius:10px}.timeline-item span{font-size:10px;color:var(--muted)}.timeline-item strong{display:block;font-size:12px;margin-top:8px}.settings-list{display:flex;flex-direction:column}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row strong{font-size:12px}.setting-row p{font-size:11px;color:var(--muted);max-width:440px;margin-top:5px}.setting-row select{border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--surface);color:var(--text);font-size:12px}.switch{width:40px;height:23px;background:var(--line);border:0;border-radius:15px;padding:3px;display:flex;align-items:center}.switch:after{content:'';width:17px;height:17px;background:#fff;box-shadow:0 2px 5px #0002;border-radius:50%}.switch.on{background:#7339e8;justify-content:flex-end}.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.more-grid button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:13px;padding:19px;background:var(--surface);color:var(--text)}.more-grid .icon{color:var(--brand)}
/* Dialogs and forms */
dialog{border:1px solid var(--line);border-radius:20px;padding:0;background:var(--surface);color:var(--text);width:min(600px,calc(100% - 28px));max-height:90dvh;box-shadow:0 30px 100px #100a2944}dialog::backdrop{background:#17102666;backdrop-filter:blur(4px)}.dialog-head{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:18px}.dialog-body{padding:22px 24px;max-height:68dvh;overflow-y:auto}.dialog-footer{padding:17px 24px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:8px;background:var(--bg)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:600}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font-size:13px;min-height:42px}.field textarea{min-height:80px;resize:vertical}.field small{font-size:10px;color:var(--muted);line-height:1.6}.form-error{background:color-mix(in srgb,var(--red) 10%,transparent);color:var(--red);padding:10px 12px;border-radius:9px;font-size:12px;margin-top:14px}.notice{padding:12px 14px;background:var(--soft);color:var(--brand);border-radius:10px;line-height:1.65;font-size:11px;margin-bottom:18px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:20px}.detail-grid strong{display:block;font-size:13px;margin-top:6px}.check-list{display:flex;flex-direction:column;gap:15px;margin:20px 0}.check-list div{display:flex;align-items:center;gap:9px;font-size:12px}.check-list .icon{color:var(--green);width:16px;height:16px}.price{font-size:45px;font-weight:800;letter-spacing:-2px;font-family:Manrope,system-ui,sans-serif}.price span{font-size:13px;letter-spacing:0;font-weight:400;color:var(--muted)}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);z-index:100;background:#292039;color:#fff;border-radius:12px;box-shadow:0 8px 25px #0002;padding:13px 20px;font-size:12px;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;max-width:calc(100% - 32px);text-align:center}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
/* Onboarding */
.onboarding{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.intro{background:linear-gradient(145deg,#6831ce,#4e219e);color:#fff;padding:48px 11%;display:flex;flex-direction:column;position:relative;overflow:hidden}.intro .brand span span{color:#d1bbff}.intro .brand img{box-shadow:0 3px 20px #0001}.intro-main{margin:auto 0;padding:65px 0;position:relative;z-index:1}.intro-kicker{font-size:10px;letter-spacing:2px;font-weight:600;color:#cfb8ff;margin-bottom:22px}.intro h1{font-size:46px;line-height:1.18;letter-spacing:-2px;font-weight:800;max-width:420px}.intro p{font-size:13px;color:#d1c0f0;margin-top:25px;max-width:350px;line-height:1.8}.intro-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:27px}.intro-tags span{font-size:10px;color:#e1d3fb;padding:7px 10px;border:1px solid #ffffff23;border-radius:8px;background:#ffffff08}.intro-quote{font-size:10px;color:#cbb6ef;position:relative;z-index:1;line-height:1.8}.intro:after{content:'';position:absolute;width:450px;height:450px;border:70px solid #ffffff04;border-radius:50%;bottom:-150px;right:-200px}.welcome{display:flex;align-items:center;justify-content:center;padding:50px 8%;background:var(--surface)}.welcome-box{max-width:400px;width:100%}.welcome-box h2{font-size:27px;font-weight:800;letter-spacing:-1px;margin:18px 0 12px}.welcome-box>p{font-size:12px;color:var(--muted);margin-bottom:28px}.welcome-box .field{margin-bottom:20px}.onboarding-choice{border:1px solid var(--line);border-radius:12px;display:flex;gap:12px;align-items:flex-start;padding:17px;cursor:pointer;margin-bottom:12px}.onboarding-choice:has(input:checked){border-color:#9568ed;background:var(--soft)}.onboarding-choice input{margin-top:2px;accent-color:var(--brand)}.onboarding-choice strong{font-size:12px}.onboarding-choice small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:6px}.welcome-box .btn.primary{width:100%;margin-top:13px;padding:13px}.welcome-box .btn.ghost{width:100%;margin-top:9px}.welcome-note{font-size:10px;text-align:center;color:var(--muted);margin-top:20px;line-height:1.7}.page-notice{font-size:11px;padding:12px 14px;border-radius:10px;background:var(--soft);color:var(--brand);margin-bottom:20px;line-height:1.65}
@media(min-width:1500px){.content{padding:35px 44px}.sidebar{width:250px}.main{margin-left:250px}.dashboard-top{grid-template-columns:1fr 2fr}.balance-hero .number{font-size:37px}}
@media(max-width:1180px){.sidebar{width:205px;padding:26px 14px 16px}.sidebar .brand{font-size:17px}.main{margin-left:205px}.content{padding:26px 24px}.topbar{padding:0 24px}.dashboard-top{grid-template-columns:1fr 1.3fr}.balance-hero{padding:22px}.balance-hero .number{font-size:29px}.stat{padding:16px}.stat .number{font-size:20px}.ring-layout{gap:15px}.ring{width:105px;height:105px}.grid2{gap:18px}.panel{padding:20px}.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:240px;box-shadow:15px 0 60px #0002}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.mobile-only{display:inline-flex}.bottomnav{position:fixed;inset:auto 0 0;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:7px 8px max(8px,env(safe-area-inset-bottom));z-index:25}.bottomnav button{border:0;background:transparent;color:var(--muted);font-size:9px;padding:6px 10px;min-width:50px;display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:10px}.bottomnav button.active{color:var(--brand);background:var(--soft)}.content{padding-bottom:100px}.app-footer{margin-bottom:4px}.topbar{height:72px}.topbar .divider,.topbar .badge.demo{display:none}.topbar-actions{gap:2px}.topbar .new-label{display:none}.topbar .btn.primary{padding:9px;min-width:36px}.topbar .btn.primary .icon{width:18px}.workspace .avatar{display:none}.topbar .workspace select{max-width:175px}.topbar .icon-btn{min-width:33px;width:33px}.onboarding{grid-template-columns:.85fr 1fr}.intro{padding:35px 10%}.intro h1{font-size:36px}.intro p{font-size:12px}.welcome{padding:40px 9%}#toast{bottom:85px}}
@media(max-width:650px){.content{padding:23px 17px 100px}.topbar{padding:0 12px}.page-head{margin-bottom:20px;gap:12px}h1{font-size:23px}.page-head p{font-size:11px}.month-control{padding:2px}.month-control span{font-size:10px;min-width:90px}.dashboard-top{grid-template-columns:1fr;gap:15px}.balance-hero{min-height:180px;padding:23px}.balance-hero .number{font-size:34px;margin:12px 0}.stats{gap:11px}.stat{padding:16px}.stat .number{font-size:22px}.grid2,.grid-equal,.grid3{grid-template-columns:1fr;gap:17px}.panel{padding:19px}.panel-head{margin-bottom:18px}.ring-layout{gap:25px}.ring{width:125px;height:125px}.overview-grid{grid-template-columns:1fr;gap:12px}.overview-grid .stat{padding:15px}.timeline{gap:8px}.timeline-item{padding:10px}.timeline-item strong{font-size:11px}.chart{gap:7px}.chart-bars{gap:4px}.bar{width:16px}.topbar-actions>.icon-btn:first-child{display:none}.onboarding{display:block}.intro{padding:25px 25px 30px;min-height:auto}.intro-main{padding:30px 0 0}.intro-kicker,.intro-tags,.intro-quote{display:none}.intro h1{font-size:32px;letter-spacing:-1.2px;max-width:320px}.intro p{margin-top:15px;font-size:12px;max-width:100%}.welcome{padding:32px 25px 40px}.welcome-box{max-width:100%}.welcome-box h2{font-size:24px;margin-top:10px}.welcome-box>p{margin-bottom:22px}.form-grid{gap:13px}.dialog-head{padding:18px}.dialog-body{padding:18px}.dialog-footer{padding:14px 18px}.data-table .optional{display:none}.data-table th,.data-table td{padding:13px 6px}.data-table td:first-child{min-width:120px}.toolbar .search{flex:1}.search input{width:100%}.toolbar .filters{width:100%}.toolbar .btn{font-size:11px}.app-footer span:last-child{display:none}}
@media(max-width:380px){.topbar .workspace select{max-width:133px}.topbar-actions{gap:0}.topbar .icon-btn{min-width:29px;width:29px}.stat .number{font-size:19px}.balance-hero .number{font-size:30px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.ring{width:105px;height:105px}.ring-layout{gap:15px}.bottomnav button{padding:6px 7px;min-width:45px}.panel{padding:16px}.more-grid button{padding:14px;font-size:12px}}
@media(pointer:coarse){input,select,textarea{font-size:16px!important}.btn,.icon-btn{min-height:44px}.filter{min-height:40px}.data-table .icon-btn{min-width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.sidebar,.topbar,.bottomnav,.page-head .row,.btn,.app-footer{display:none!important}.main{margin:0}.content{padding:0}.panel{box-shadow:none;break-inside:avoid}body{background:white}}
/* Acesso e controles conectados */
.initial-loading{min-height:100dvh;display:grid;align-content:center;justify-items:center;gap:18px;color:var(--muted);font:500 14px Manrope,system-ui,sans-serif}.auth .field{margin-bottom:18px}.auth .form-error{margin-bottom:20px}.auth-links{display:flex;justify-content:space-between;gap:16px;margin-top:20px}.auth-links button{background:none;border:0;padding:5px 0;color:var(--brand);font:600 12px Manrope,sans-serif;cursor:pointer}.auth input{font-size:15px}.loading-line{height:4px;background:linear-gradient(90deg,var(--soft),var(--brand),var(--soft));border-radius:4px;margin-top:24px}.sync-pill{display:inline-flex;align-items:center;gap:7px;border:0;background:var(--soft);color:var(--brand);font:600 10px Manrope,sans-serif;padding:9px 11px;border-radius:9px;cursor:pointer;max-width:230px}.sync-pill [data-sync-status]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-dot{height:6px;width:6px;border-radius:50%;background:var(--green);flex-shrink:0}.sync-pill:has(.warning) .sync-dot{background:var(--orange)}.sync-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.sync-compare>div{padding:17px;background:var(--bg);border:1px solid var(--line);border-radius:12px}.sync-compare p{margin:12px 0}.manage-select{min-width:240px;max-width:100%}.manage-actions{display:flex;flex-wrap:wrap;gap:6px}.manage-actions .btn{white-space:nowrap;font-size:10px;padding:8px 10px}.manage-actions .icon{width:14px;height:14px}.user>div{min-width:0}.user .tiny{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.choice input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;accent-color:var(--brand)}.drawer-backdrop{display:none}.btn:disabled{opacity:.55;cursor:wait}button,input,select,textarea{font-family:Manrope,system-ui,sans-serif}button{cursor:pointer}:focus-visible{outline:3px solid #9d75ef;outline-offset:3px}.dialog-footer{flex-wrap:wrap}.dialog-footer .btn{max-width:100%;white-space:normal}.credit-card.color-purple,.credit-card.color-violet{background:linear-gradient(125deg,#8249ed,#5723b4)}.credit-card.color-yellow{background:linear-gradient(125deg,#ffdb66,#edbe24);color:#30260b}.credit-card.color-yellow small{color:#5c4a11}.credit-card.color-yellow:after{border-color:#5c4a1109}.credit-card.color-red{background:linear-gradient(125deg,#d43552,#95192f)}.credit-card.color-blue{background:linear-gradient(125deg,#2667c9,#123c83)}.credit-card.color-black{background:linear-gradient(125deg,#262831,#101115)}.credit-card.color-graphite,.credit-card.color-dark{background:linear-gradient(125deg,#535c6e,#323844)}.credit-card.color-orange{background:linear-gradient(125deg,#e5631d,#b53d00)}.credit-card.color-green{background:linear-gradient(125deg,#1b8061,#0e4b36)}.credit-card.color-pink{background:linear-gradient(125deg,#bd408a,#812152)}.credit-card:not(.color-yellow) small{color:#ffffffba}body.dark .credit-card{color:#fff}body.dark .credit-card.color-yellow{color:#30260b}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}.search:focus-within{outline:2px solid #9d75ef;outline-offset:2px}
@media(max-width:1100px){.sync-pill{max-width:135px}.topbar-actions{gap:4px}.content{overflow-wrap:normal}}
@media(max-width:900px){.sync-pill [data-sync-status]{display:none}.sync-pill{width:32px;min-width:32px;height:32px;justify-content:center;padding:0}.drawer-backdrop{display:block;position:fixed;inset:0;background:#11112670;border:0;z-index:28}.sidebar{z-index:30}.sync-pill:after{content:'↻';font-size:17px}.sync-dot{display:none}}
@media(max-width:650px){.topbar-actions [aria-label="Gerenciar cadastros"]{display:none}.sync-compare{grid-template-columns:1fr}.auth .intro-main{padding-top:20px}.auth .intro h1{font-size:30px}.auth .welcome{padding-top:30px}.auth .intro p{max-width:330px}.manage-select{min-width:0;width:100%}.manage-actions .btn{min-height:38px}.data-table .manage-actions{min-width:145px}.dialog-footer .btn{font-size:11px;padding:9px 12px}}
@media(max-width:380px){.topbar-actions .sync-pill{display:none}}

@media(max-width:650px){.topbar>.row{flex-wrap:nowrap;min-width:0;gap:7px}.topbar .workspace{min-width:0;flex:1}.topbar .workspace select{max-width:128px;min-width:0;width:128px;font-size:12px}.topbar .workspace label{font-size:8px}.topbar-actions{flex-wrap:nowrap;flex-shrink:0}.stat .number{font-size:clamp(16px,4.4vw,20px);white-space:nowrap;letter-spacing:-.7px}.stat .small{line-height:1.6}.stat-head span{font-size:10px}.stat{padding:16px 14px}.balance-hero .number{font-size:32px;white-space:nowrap}}
@media(max-width:380px){.topbar .workspace select{width:112px;max-width:112px}.topbar{gap:6px}.topbar>.row{gap:3px}.topbar .workspace label{font-size:7px}.stats{gap:9px}.stat{padding:14px 11px}}
.card-workspace{margin-top:22px;min-width:0}.card-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 0;border-block:1px solid var(--line);margin:20px 0}.card-summary>div{display:flex;flex-direction:column;gap:8px}.card-summary span{color:var(--muted);font-size:12px;line-height:1.6}.card-summary strong{font-size:22px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.card-action-bar,.payment-presets{display:flex;flex-wrap:wrap;gap:10px}.card-action-bar{margin-bottom:16px}.bank-reference{margin-top:12px;line-height:1.7}.card-history summary{cursor:pointer;font-weight:700;padding:12px 0;line-height:1.6}.card-history .table-wrap{margin-top:12px}.category-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.category-chip{background:var(--surface2);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:8px 11px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;max-width:100%;text-align:left}.category-chip:hover,.category-chip.active{border-color:var(--brand);color:var(--brand);background:var(--soft)}.category-field small{line-height:1.7}.payment-preview{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:16px;line-height:1.7;gap:9px}.payment-preview .mini-metric{display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:8px}.preview-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.preview-total strong{color:var(--green);font-variant-numeric:tabular-nums}.payment-preview p{margin-top:8px}.field input[readonly]{background:var(--surface2);color:var(--muted)}body.dark .category-chip{color:var(--text)}body.dark .category-chip.active{color:var(--brand)}
@media(max-width:700px){.card-summary{grid-template-columns:1fr;gap:14px}.card-summary>div{flex-direction:row;align-items:center;justify-content:space-between;gap:14px}.card-summary strong{font-size:19px;white-space:nowrap}.card-summary span{max-width:62%}.card-action-bar>.btn{flex:1 1 160px;justify-content:center}.payment-presets>.btn{flex:1 1 190px;justify-content:center}.card-workspace .panel-head{align-items:flex-start;gap:16px}.card-workspace .panel-head>.row{width:100%;flex-wrap:wrap}.category-chip{padding:9px 11px;min-height:40px}.bank-reference{font-size:11px}}

.credit-card .card-number{font-size:17px;letter-spacing:2px;white-space:nowrap}
