:root{color-scheme:light;--ink:#272039;--muted:#817b8e;--purple:#6542a3;--purple-dark:#342055;--stroke:#eae5f0;--surface:#fff;--bg:#f7f5fa;--shadow:0 9px 34px rgba(45,28,73,.055);--radius:21px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--ink);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(125,91,184,.34);outline-offset:2px}p{margin:0}h1,h2{margin:0;letter-spacing:-.045em}h1{font-size:clamp(1.55rem,3vw,2rem);line-height:1.17}h2{font-size:1.17rem;line-height:1.3}.hidden{display:none!important}.background-decoration{position:fixed;inset:0 0 auto 0;height:440px;pointer-events:none;background:radial-gradient(closest-side at 89% 10%,rgba(186,166,226,.18),transparent 85%),radial-gradient(closest-side at 10% 2%,rgba(255,221,194,.23),transparent 90%)}.app-shell{position:relative;max-width:1140px;margin:auto;padding:24px 30px 50px}.topbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:40px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;background:var(--purple-dark);color:white;border-radius:15px;height:47px;width:47px;flex:none;box-shadow:0 5px 14px rgba(57,35,93,.16)}.brand-name{font-weight:800;font-size:1.07rem;line-height:1.3;letter-spacing:-.03em}.brand-subtitle{color:var(--muted);font-size:.76rem;margin-top:3px;white-space:nowrap}.brand-subtitle span{margin:0 3px;color:#b9b2c6}.header-actions{display:flex;align-items:center;gap:10px}.mode-pill{font-size:.73rem;border:1px solid #dfd5f0;color:#614a8c;background:#f0ebfa;padding:7px 10px;border-radius:999px;white-space:nowrap;font-weight:650}.mode-pill.live{background:#eaf8f1;color:#277b56;border-color:#cfeede}.mode-pill.offline{background:#fff0ea;color:#99512c;border-color:#ffdac6}.text-button{background:transparent;color:var(--purple);padding:7px 8px;border:none;font-size:.81rem;font-weight:700}.eyebrow{color:#806d9c;text-transform:uppercase;font-size:.67rem;letter-spacing:.14em;font-weight:800}.hello-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:29px}.hello-row h1{margin-top:7px}.subtle{color:var(--muted);margin-top:9px;font-size:.88rem;line-height:1.5}.avatar-stack{display:flex;align-items:center;padding-right:6px}.avatar{display:grid;place-items:center;color:white;width:40px;height:40px;border-radius:50%;border:3px solid var(--bg);font-weight:800;font-size:.83rem;margin-left:-9px}.avatar-luiz{background:#7352b2}.avatar-deyse{background:#da9a77}.avatar-lucas{background:#56a9a0}.month-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin:1px auto 20px}.nav-button{background:white;border:1px solid var(--stroke);box-shadow:var(--shadow);border-radius:13px;width:39px;height:39px;font-size:1.65rem;line-height:1;color:var(--purple-dark)}.month-display{text-align:center;min-width:210px}.month-display .eyebrow{display:block;margin-bottom:5px}.month-display strong{font-size:1.12rem;letter-spacing:-.025em}.summary-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:17px;margin-bottom:17px}.total-card,.today-card{position:relative;overflow:hidden;border-radius:var(--radius);padding:24px 28px;min-height:156px}.total-card{color:#fff;background:linear-gradient(112deg,#372358,#6947a2);box-shadow:0 16px 30px rgba(83,54,134,.13)}.total-ornament{pointer-events:none;position:absolute;width:290px;height:290px;border:1px solid rgba(255,255,255,.11);border-radius:50%;right:-57px;top:-143px;box-shadow:0 0 0 33px rgba(255,255,255,.035),0 0 0 75px rgba(255,255,255,.035)}.card-overline{font-size:.69rem;letter-spacing:.12em;font-weight:800;opacity:.83}.total-number{position:relative;font-size:clamp(1.95rem,4vw,3.15rem);letter-spacing:-.065em;font-weight:800;margin-top:12px;font-variant-numeric:tabular-nums}.card-bottom{position:relative;display:flex;justify-content:space-between;align-items:center;font-size:.83rem;color:#e5dafa;margin-top:11px}.total-icon{display:grid;place-items:center;border:1px solid rgba(255,255,255,.26);width:30px;height:30px;border-radius:50%;font-size:1rem}.today-card{background:#fff;border:1px solid var(--stroke);box-shadow:var(--shadow)}.today-card .card-overline{color:#927fa9}.today-number{font-size:clamp(1.75rem,3.3vw,2.5rem);font-weight:800;letter-spacing:-.06em;margin-top:20px;font-variant-numeric:tabular-nums}.today-card p{color:var(--muted);font-size:.8rem;margin-top:9px}.panel{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow);padding:23px 24px}.people-panel{margin-bottom:17px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:21px}.section-heading p{font-size:.82rem;color:var(--muted);margin-top:5px}.section-chip{font-size:.69rem;font-weight:750;color:#7a639c;background:#f4f0fa;padding:8px 11px;border-radius:50px;white-space:nowrap}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.person-card{background:#faf9fc;border:1px solid #f1edf5;border-radius:15px;padding:15px 16px}.person-top{display:flex;align-items:center;gap:9px}.person-dot{width:9px;height:9px;border-radius:50%;flex:none}.person-name{font-size:.84rem;font-weight:760}.person-amount{font-variant-numeric:tabular-nums;font-size:1.31rem;letter-spacing:-.045em;font-weight:800;margin-top:14px;white-space:nowrap}.progress-track{background:#e8e3ec;height:5px;border-radius:999px;overflow:hidden;margin-top:13px}.progress-fill{height:100%;border-radius:999px;transition:width .4s ease}.person-caption{font-size:.71rem;color:var(--muted);margin-top:9px}.content-grid{display:grid;grid-template-columns:.96fr 1.3fr;gap:17px;align-items:start}.add-symbol{display:grid;place-items:center;background:#f0eafa;color:#7551b4;border-radius:13px;height:35px;width:35px;font-size:1.6rem;font-weight:400}.add-panel label,.auth-card label{display:block;font-size:.79rem;font-weight:760;margin:17px 0 8px;color:#4a405b}.add-panel input,.auth-card input,.filters-row select{height:46px;width:100%;min-width:0;background:#fcfbfe;border:1px solid #e5dfea;border-radius:11px;color:var(--ink);padding:0 13px;outline:none;transition:border .2s}.add-panel input:focus,.auth-card input:focus,.filters-row select:focus{border-color:#9474c9;background:#fff}.add-panel input::placeholder,.auth-card input::placeholder{color:#aca5b5}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.currency-wrap{display:flex;align-items:center;background:#fcfbfe;border:1px solid #e5dfea;border-radius:11px}.currency-wrap:focus-within{border-color:#9474c9}.currency-wrap span{padding-left:13px;font-size:.86rem;font-weight:750;color:#857a93}.currency-wrap input{border:none;background:transparent;min-width:0;padding-left:7px}.currency-wrap input:focus{background:transparent;border:none;outline:none}.add-panel input[type=date]{padding:0 9px;font-size:.84rem}.primary-button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;color:#fff;background:var(--purple);font-weight:800;width:100%;min-height:49px;box-shadow:0 6px 14px rgba(101,66,163,.17);transition:background .2s}.primary-button:hover{background:#56368e}.expense-button{margin-top:23px}.expense-button span:first-child{font-size:1.22rem;line-height:1}.form-feedback{font-size:.79rem;line-height:1.45;margin-top:11px;min-height:16px;color:#754eab}.form-feedback.error{color:#a73939}.privacy-note{display:flex;align-items:start;gap:8px;padding-top:18px;border-top:1px solid #f0edf4;margin-top:18px;color:var(--muted);font-size:.74rem;line-height:1.4}.privacy-note span{font-size:1rem;color:var(--purple)}.history-heading{margin-bottom:19px}.export-button{border:1px solid #e8e1f2;color:var(--purple);background:#faf8fe;border-radius:10px;padding:9px 11px;white-space:nowrap;font-size:.75rem;font-weight:800}.filters-row{display:flex;align-items:center;gap:9px;background:#faf9fc;border:1px solid #f0ecf4;border-radius:11px;padding:8px 10px;margin-bottom:17px}.filter-label{font-size:.72rem;color:#81798a;white-space:nowrap;font-weight:700}.filters-row select{width:100%;max-width:215px;margin-right:auto;height:30px;border:none;background:transparent;font-size:.77rem;font-weight:800;padding:0 2px}.refresh-button{flex:none;background:white;color:#7b629e;border:1px solid #ebe3f3;font-size:1.2rem;line-height:1;border-radius:9px;width:30px;height:30px}.expense-list{min-height:175px}.day-group{margin-bottom:21px}.day-group:last-child{margin-bottom:0}.day-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;padding-bottom:10px;border-bottom:1px solid #efecf2}.day-heading strong{font-size:.75rem;color:#766880}.day-heading span{font-size:.76rem;font-weight:800;color:#6c5890;font-variant-numeric:tabular-nums}.expense-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f5f2f8}.expense-row:last-child{border-bottom:0}.expense-avatar{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:12px;font-size:.75rem;color:#fff;font-weight:800}.expense-detail{flex:1;min-width:0}.expense-description{font-size:.83rem;line-height:1.35;font-weight:780;overflow-wrap:anywhere}.expense-person{display:flex;align-items:center;gap:6px;margin-top:5px;color:var(--muted);font-size:.73rem}.expense-person .bullet{font-size:.53rem}.expense-right{text-align:right;flex:none}.expense-amount{font-weight:850;font-size:.87rem;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}.expense-controls{display:flex;justify-content:flex-end;gap:7px;margin-top:6px}.row-action{border:0;background:transparent;color:#8c7b9d;font-size:.66rem;padding:2px 0}.row-action:hover{color:#593a91}.row-action.danger:hover{color:#c94c4c}.empty-state{padding:27px 10px 35px;text-align:center;color:var(--muted)}.empty-state .empty-icon{font-size:1.8rem;display:block;margin-bottom:7px}.empty-state strong{display:block;font-size:.91rem;color:var(--ink)}.empty-state p{font-size:.79rem;margin-top:7px;line-height:1.45}.footer{text-align:center;margin-top:30px;color:#aaa2b4;font-size:.71rem}.demo-banner{background:#fff8e9;border:1px solid #f3ddb2;border-radius:17px;padding:16px 18px;margin-bottom:25px}.demo-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.demo-top strong{color:#7d5218;font-size:.86rem}.demo-top span{font-size:.72rem;color:#9b7841}.demo-banner p{font-size:.76rem;color:#94713f;margin:7px 0 12px;line-height:1.5}.demo-profiles{display:flex;gap:7px;flex-wrap:wrap}.demo-profile-btn{border:1px solid #e7d1a7;border-radius:999px;padding:7px 13px;background:#fff;color:#7a5f37;font-size:.76rem;font-weight:750}.demo-profile-btn.active{background:#7b592b;color:white;border-color:#7b592b}.center-panel{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:320px;color:var(--muted);gap:12px;font-size:.9rem}.loading-spinner{width:30px;height:30px;border:3px solid #dfd4ed;border-top-color:#6845a6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-layout{min-height:65vh;display:grid;place-items:center}.auth-card{width:100%;max-width:450px;border:1px solid var(--stroke);border-radius:23px;padding:31px;background:#fff;box-shadow:var(--shadow)}.auth-card h1{margin-top:8px}.auth-card .primary-button{margin-top:22px}.link-button{display:block;margin:14px auto 2px;padding:6px;border:none;background:none;color:var(--purple);text-decoration:underline;text-underline-offset:3px;font-size:.79rem;font-weight:750}.notice{font-size:.8rem;color:#745c9b;line-height:1.5;margin-top:12px}.notice.error{color:#ab3939}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:10;max-width:min(94vw,450px);width:max-content;background:#302343;color:white;padding:12px 18px;border-radius:13px;box-shadow:0 8px 28px #30234345;font-size:.85rem;font-weight:700}.toast[hidden]{display:none}
@media(max-width:750px){.app-shell{padding:13px 16px 38px}.topbar{margin-bottom:26px}.brand-mark{width:42px;height:42px;border-radius:13px}.brand-name{font-size:.97rem}.brand-subtitle{font-size:.69rem}.mode-pill{font-size:.64rem;padding:6px 8px;max-width:115px;white-space:normal;text-align:center}.header-actions{gap:1px}.hello-row{margin-bottom:25px}.avatar{width:33px;height:33px;font-size:.7rem}.summary-grid{gap:10px;grid-template-columns:1.3fr 1fr}.total-card,.today-card{padding:20px 17px;min-height:141px;border-radius:17px}.total-number{font-size:clamp(1.7rem,5vw,2.25rem)}.today-number{font-size:clamp(1.43rem,4.2vw,1.98rem);margin-top:19px}.card-overline{font-size:.62rem}.card-bottom{font-size:.71rem;margin-top:14px}.today-card p{font-size:.69rem}.total-icon{display:none}.panel{padding:19px 17px;border-radius:17px}.people-grid{gap:7px}.person-card{padding:12px 9px}.person-amount{font-size:clamp(.93rem,3.5vw,1.18rem)}.person-name{font-size:.75rem}.person-caption{font-size:.67rem}.content-grid{grid-template-columns:1fr}.month-display{min-width:180px}.section-heading{margin-bottom:18px}.footer{margin-top:25px}}
@media(max-width:360px){.app-shell{padding-left:11px;padding-right:11px}.brand{gap:8px}.brand-name{font-size:.86rem}.brand-subtitle{font-size:.62rem}.total-card,.today-card{padding:17px 12px}.total-number{font-size:1.48rem}.today-number{font-size:1.26rem}.person-card{padding:12px 7px}.person-amount{font-size:.89rem}.month-display{min-width:165px}.summary-grid{grid-template-columns:1.3fr 1fr}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V2 — lançamento primeiro, análise no menu, perfis e categorias */
.entry-section{margin-bottom:27px}
.entry-section .add-panel{max-width:850px;margin-inline:auto}
.overview-heading{margin:0 0 14px 3px}
.overview-heading h2{font-size:1.23rem}
.overview-heading p{color:var(--muted);font-size:.8rem;margin-top:4px}
.history-section{margin-top:17px}
.history-section .history-panel{min-height:150px}
.category-field{margin-top:15px}
.category-field select{width:100%;height:48px;background:#fff;border:1px solid var(--stroke);border-radius:11px;padding:0 12px;color:var(--ink)}
.category-hint,.field-tip{font-size:.74rem;color:var(--muted);line-height:1.45;margin:7px 1px 0}
.menu-wrapper{position:relative;z-index:12}
.menu-button{width:40px;height:40px;background:#fff;color:var(--purple-dark);border:1px solid var(--stroke);border-radius:12px;font-size:1.55rem;line-height:1;letter-spacing:2px;font-weight:800;box-shadow:var(--shadow)}
.app-menu{position:absolute;z-index:20;right:0;top:calc(100% + 7px);width:min(260px,82vw);padding:7px;background:#fff;border:1px solid var(--stroke);box-shadow:0 18px 45px rgba(36,18,65,.17);border-radius:15px}
.app-menu button{display:flex;gap:14px;width:100%;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:.84rem;font-weight:650;text-align:left}
.app-menu button:hover,.app-menu button:focus-visible{background:#f3eef9}
.app-menu button span{flex:1}
.avatar-photo{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}
.expense-person{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.expense-category{font-size:.69rem;background:#f2eef7;border-radius:6px;padding:2px 6px;color:#775c9e}
.person-top .avatar{margin:0;width:25px;height:25px;border:0}
.app-dialog{width:min(530px,calc(100vw - 20px));max-height:min(87vh,860px);border:1px solid var(--stroke);border-radius:23px;padding:23px 24px 24px;background:#fff;color:var(--ink);box-shadow:0 18px 60px rgba(28,18,48,.24)}
.app-dialog::backdrop{background:rgba(28,18,48,.55);backdrop-filter:blur(3px)}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding-bottom:15px;border-bottom:1px solid var(--stroke)}
.modal-head h2{font-size:1.45rem;margin-top:6px}
.close-modal{border:0;background:#f5f2f9;width:35px;height:35px;border-radius:11px;color:#745799;font-size:1.6rem}
.report-scroll{overflow:auto;max-height:calc(87vh - 100px);padding-top:14px}
.report-period{text-transform:capitalize;color:var(--muted);font-size:.8rem}
.report-total-label{font-size:.78rem;color:#836e9f;margin-top:16px;font-weight:650}
.report-total{font-size:2.5rem;font-weight:800;letter-spacing:-.06em;color:var(--purple-dark);font-variant-numeric:tabular-nums}
.report-subline,.report-explain{color:var(--muted);font-size:.78rem;line-height:1.45}
.report-scroll h3{font-size:1rem;margin:23px 0 8px;letter-spacing:-.025em}
.report-list{display:flex;flex-direction:column;gap:13px;margin-top:15px}
.report-item{display:flex;flex-direction:column;gap:7px}
.report-item-heading{display:flex;justify-content:space-between;gap:12px;font-size:.82rem}
.report-item-heading strong{font-variant-numeric:tabular-nums}
.report-bar{width:100%;height:8px;border-radius:99px;background:#f1edf6;overflow:hidden}
.report-bar span{display:block;height:100%;border-radius:99px;background:#7657b5}
.report-insight{margin:23px 0;padding:15px;border-radius:13px;background:#f8f6fc;font-size:.8rem;line-height:1.5;color:#685482}
.profile-dialog form{display:flex;flex-direction:column;gap:4px;padding-top:18px}
.profile-dialog label{margin-top:13px;font-size:.82rem;font-weight:750}
.profile-dialog input[type=text],.profile-dialog input[type=file]{width:100%;padding:12px;border:1px solid var(--stroke);border-radius:11px;background:#fff}
.profile-dialog input[type=file]{font-size:.8rem}
.profile-dialog .primary-button{margin-top:15px}
.profile-preview{margin:auto;width:96px;height:96px;border-radius:50%;background:#7352b2;color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:800;overflow:hidden}
.auth-security-note{font-size:.74rem;text-align:center;color:var(--muted);margin-top:13px}
.auth-person-field{margin-bottom:9px}
.auth-person-field select{width:100%;height:46px;background:white;border:1px solid var(--stroke);border-radius:11px;padding:0 12px}
@media(max-width:750px){.entry-section{margin-bottom:25px}.overview-heading{margin-bottom:12px}.app-dialog{padding:18px 16px}.app-menu{right:-3px}.person-top .avatar{width:22px;height:22px}.menu-button{width:35px;height:35px}}

/* V3 — pagamentos, cartões, parcelas e recuperação de senha */
.payment-block{margin-top:20px;padding:16px 17px;border:1px solid #eae4f1;background:#fbf9fe;border-radius:14px}
.payment-block-title{font-size:.87rem;font-weight:820;color:#4d3c67;letter-spacing:-.02em}
.payment-block .field label{margin-top:13px}
.payment-block select{width:100%;height:47px;border:1px solid #e5dfea;border-radius:11px;padding:0 12px;background:#fff;color:var(--ink)}
.payment-block input[type=date]{background:#fff}
.inline-link{border:0;background:transparent;color:#6542a3;font-size:.76rem;text-decoration:underline;font-weight:700;padding:10px 0 2px}
.expense-payment{display:block;font-size:.69rem;color:#726387;margin-top:5px;line-height:1.4}
.cards-modal-content{max-height:calc(87vh - 100px);overflow:auto;padding-top:16px}
.cards-modal-content form{margin-top:17px}
.cards-modal-content label{display:block;margin:0 0 8px;font-size:.82rem;font-weight:750}
.cards-modal-content input{width:100%;height:47px;border:1px solid var(--stroke);border-radius:11px;padding:0 12px}
.cards-modal-content .primary-button{margin-top:12px}
.cards-modal-content h3{font-size:.98rem;margin:20px 0 12px}
.cards-list{display:flex;flex-direction:column;gap:6px}
.card-list-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#faf9fc;border:1px solid #f0edf5;border-radius:10px;font-size:.82rem;font-weight:700}
.card-list-item span{min-width:0;overflow-wrap:anywhere}
.password-recovery{border-top:1px solid #eae4f1;padding-top:15px;margin-top:18px}
.password-recovery label{margin-top:14px}
.password-recovery .primary-button{margin-top:16px}
@media(max-width:420px){.payment-block{padding:12px}.payment-block .form-row{gap:8px}.payment-block select{font-size:.86rem}}

.password-section{margin-top:20px;padding-top:17px;border-top:1px solid var(--stroke)}
.password-section h3{font-size:.96rem;color:#4e3c69}
.password-section form{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.password-section label{font-size:.81rem;font-weight:760}
.password-section input{height:46px;padding:0 12px;background:#fff;border:1px solid var(--stroke);border-radius:10px}
.secondary-button{border:1px solid #aa98c6;color:#5b3a96;background:#f9f7fd;border-radius:11px;min-height:45px;font-size:.82rem;font-weight:780}

/* V3.4 — família por convite */
.auth-card .auth-person-field select{height:46px;font-size:.95rem;color:var(--ink)}
.invite-code{margin:16px 0 6px;padding:16px;text-align:center;font-size:1.55rem;font-weight:850;letter-spacing:.12em;color:var(--purple-dark);background:#f3eefa;border:1px dashed #c9b7e6;border-radius:14px;font-variant-numeric:tabular-nums;user-select:all;overflow-wrap:anywhere}
#inviteCreated .secondary-button,#inviteSection .secondary-button{margin-top:12px;width:100%}
#inviteCreated .primary-button{margin-top:12px}
