:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#13233b;background:#f3f6fb;--blue:#1453a0;--blue2:#2670d4;--gold:#f2a126;--muted:#6e7d91;--border:#dce4ef;--card:#fff;--danger:#b32638;--ok:#157a55;color-scheme:light}

*{box-sizing:border-box}

html,body{margin:0;min-height:100%;background:var(--bg,#f3f6fb)}

body{overscroll-behavior-y:none}

button,input{font:inherit}

button{cursor:pointer}

.hidden{display:none!important}

.app{min-height:100dvh;padding-bottom:calc(88px + env(safe-area-inset-bottom))}

.top{position:sticky;z-index:20;top:0;padding:calc(8px + env(safe-area-inset-top)) 16px 10px;color:#fff;background:linear-gradient(135deg,#123f7e,#2470d5);box-shadow:0 8px 24px #123f7e2b}

.top-row{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:760px;margin:auto}

.brand{display:flex;align-items:center;gap:10px}

.brand img{width:38px;height:38px;border-radius:10px}

.brand strong{display:block;font-size:17px}

.brand small{display:block;margin-top:2px;color:#dbe9ff}

.icon-btn{display:grid;width:40px;height:40px;place-items:center;color:inherit;background:#ffffff18;border:1px solid #ffffff2f;border-radius:13px}

.page{width:min(760px,100%);margin:auto;padding:14px 16px 18px}

.greeting{margin:4px 0 18px}

.greeting h1{margin:0;font-size:26px;letter-spacing:-.04em}

.greeting p{margin:6px 0 0;color:var(--muted)}

.card{margin-bottom:14px;padding:17px;background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:0 6px 20px #17385d0d}

.hero{color:#fff;background:linear-gradient(135deg,#174d91,#216bc7);border:0}

.hero .muted{color:#d6e6ff}

.row{display:flex;align-items:center;justify-content:space-between;gap:12px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

.metric strong{display:block;margin-top:8px;font-size:23px}

.metric small,.muted{color:var(--muted)}

.section-title{margin:24px 2px 11px;font-size:17px}

.list{display:grid;gap:9px}

.item{display:flex;align-items:center;gap:12px;padding:13px;color:inherit;text-align:left;text-decoration:none;background:var(--card);border:1px solid var(--border);border-radius:15px}

.item-icon{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;color:var(--blue);background:#eaf2fc;border-radius:13px}

.item-copy{min-width:0;flex:1}

.item-copy strong{display:block}

.item-copy small{display:block;margin-top:4px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}

.amount{font-weight:800;white-space:nowrap}

.badge{display:inline-flex;margin-top:6px;padding:4px 8px;color:var(--blue);font-size:11px;font-weight:750;background:#e8f1fc;border-radius:999px}

.badge.danger{color:var(--danger);background:#fdecef}

.badge.ok{color:var(--ok);background:#e7f6ef}

.btn{min-height:46px;padding:0 16px;color:#fff;font-weight:750;background:var(--blue);border:0;border-radius:13px}

.btn.secondary{color:var(--blue);background:#eaf2fc}

.btn.ghost{color:var(--blue);background:transparent;border:1px solid var(--border)}

.btn.full{width:100%}

.form{display:grid;gap:14px}

.field{display:grid;gap:7px}

.field span{font-size:13px;font-weight:700}

.field input{width:100%;height:50px;padding:0 14px;color:#13233b;background:#fff;border:1px solid #cdd8e7;border-radius:13px;outline:none}

.field input:focus{border-color:var(--blue2);box-shadow:0 0 0 3px #2470d522}

.error{padding:11px;color:var(--danger);font-size:13px;background:#fdecef;border-radius:11px}

.login{display:grid;min-height:100dvh;place-items:center;padding:28px 20px;background:linear-gradient(150deg,#0e438c 0,#2370d5 55%,#f3f6fb 55%)}

.login-card{width:min(430px,100%);padding:26px;background:#fff;border-radius:24px;box-shadow:0 24px 70px #092b5a38}

.login-brand{text-align:center}

.login-brand img{width:82px;height:82px}

.login-brand h1{margin:10px 0 4px}

.login-brand p{margin:0 0 24px;color:var(--muted)}

.bottom{position:fixed;z-index:30;right:0;bottom:0;left:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#ffffffee;border-top:1px solid var(--border);backdrop-filter:blur(18px)}

.bottom-inner{display:grid;max-width:760px;margin:auto;grid-template-columns:repeat(5,1fr)}

.nav-btn{display:grid;min-width:0;gap:3px;place-items:center;padding:6px 2px;color:#738197;font-size:10px;font-weight:700;background:transparent;border:0;border-radius:12px}

.nav-btn span:first-child{font-size:21px;line-height:1}

.nav-btn.active{color:var(--blue);background:#edf4fd}

.empty{padding:34px 18px;color:var(--muted);text-align:center}

.loader{width:32px;height:32px;margin:50px auto;border:3px solid #d9e4f2;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}

.toast{position:fixed;z-index:100;right:16px;bottom:100px;left:16px;max-width:520px;margin:auto;padding:13px 15px;color:#fff;background:#13233b;border-radius:13px;box-shadow:0 12px 35px #071b3540;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}

.toast.show{opacity:1;transform:none}

@keyframes spin{to{transform:rotate(360deg)}

}

@media(min-width:700px){.grid.three{grid-template-columns:repeat(3,1fr)}

.page{padding:24px}

.bottom{right:calc((100% - 760px)/2);left:calc((100% - 760px)/2);bottom:12px;border:1px solid var(--border);border-radius:20px}

}

button,input,select,textarea{font:inherit}

.brand img{width:46px;height:46px;padding:2px;object-fit:contain;background:#fff}

.field select,.field textarea{width:100%;min-height:50px;padding:12px 14px;color:#13233b;background:#fff;border:1px solid #cdd8e7;border-radius:13px;outline:none}

.field textarea{resize:vertical}

.amount-col{display:grid;justify-items:end;gap:8px}

.mini-btn{padding:6px 10px;color:#fff;font-size:11px;font-weight:750;background:var(--blue);border:0;border-radius:9px}

.inline-actions{display:flex;gap:14px;margin-top:8px}

.text-link{color:var(--blue);font-size:12px;font-weight:750;text-decoration:none}

.item.event{align-items:flex-start}

.account-card{display:flex;align-items:center;gap:13px;padding:18px;color:#fff;background:var(--blue);border-radius:20px}
.account-card div{display:grid;gap:4px}
.account-card small{color:#d9e8fb}
.dark{--bg:#0e1725;--card:#172235;--border:#2b3950;--muted:#9dacbf;color:#edf4ff;color-scheme:dark}
.dark .field input,.dark .field select,.dark .field textarea{color:#edf4ff;background:#121d2e;border-color:#34445d}
.dark .item select{color:#edf4ff;background:#121d2e;border-color:#34445d}
.dark .login-card,.dark .bottom{background:#172235ee}
.dark .nav-btn.active,.dark .item-icon,.dark .avatar,.dark .btn.secondary{background:#203a5d}
.dark .quick-action,.dark .btn.secondary,.dark .btn.ghost,.dark .text-link,.dark .upload-control{color:#8dcbff}
.dark .badge{color:#a8d5ff;background:#203a5d}
.dark .renewal-card .status{color:#a8d5ff;background:#203a5d}
.dark .renewal-card .status.danger,.dark .badge.danger{color:#ffb8c1;background:#3a2028}
.dark .renewal-steps span.done,.dark .badge.ok{color:#8fe1ba;background:#153a2c}
.dark .login{background:linear-gradient(150deg,#0b346e 0,#185cb3 55%,#0e1725 55%)}
.dark .alert-card{background:#351d25}

.material-icon{width:24px;height:24px;flex:0 0 24px;fill:currentColor}
.icon-btn .material-icon{width:22px;height:22px}
.nav-btn>.material-icon{width:23px;height:23px}
.item>.material-icon{color:var(--muted)}
.avatar{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;color:var(--blue);background:#eaf2fc;border-radius:50%;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.large{width:74px;height:74px;flex-basis:74px}
.profile-card{width:100%;text-align:left}
.profile-hero{display:flex;align-items:center;gap:15px;margin-bottom:18px;padding:18px;color:#fff;background:linear-gradient(135deg,var(--blue),#2874ce);border-radius:20px}
.profile-hero h2{margin:0}
.profile-hero p{margin:5px 0 0;color:#dceaff}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.quick-action{display:flex;min-height:76px;align-items:center;gap:11px;padding:14px;color:var(--blue);text-align:left;background:var(--card);border:1px solid var(--border);border-radius:16px}
.quick-action strong{color:inherit}
.alert-card{width:100%;color:var(--danger);text-align:left;background:#fff4f5;border-color:#f2c9cf}
.alert-card>.material-icon:first-child{width:34px;height:34px}
.sticky-save{position:sticky;bottom:90px;margin-top:18px;box-shadow:0 10px 30px #0d376a38}
.item select{max-width:125px;min-height:38px;padding:7px;border:1px solid var(--border);border-radius:9px}
.item-icon .material-icon{width:24px;height:24px}
.member-card{margin-bottom:16px;padding:18px;color:#fff;background:linear-gradient(135deg,#184e92,#0e356b);border-radius:22px;box-shadow:0 16px 36px #123f7e35}
.member-card-head{display:flex;align-items:center;gap:9px}.member-card-head img{width:38px;height:38px;padding:2px;object-fit:contain;background:#fff;border-radius:9px}.member-card-head strong{flex:1;font-size:13px}.member-card-head span{font-size:10px;font-weight:800;opacity:.72}
.member-card-body{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;min-height:145px}.member-card-body h2{margin:0 0 12px}.member-card-body small,.member-card-body strong{display:block}.member-card-body p{font-size:12px;opacity:.78}
.card-visual{display:grid;justify-items:center;gap:8px}.card-photo{width:62px;height:62px;object-fit:cover;border-radius:50%}.qr{display:grid;width:78px;height:78px;padding:6px;background:#fff;grid-template-columns:repeat(var(--qr),1fr);border-radius:7px}.qr i{background:#fff}.qr i.on{background:#000}
.member-card-status{display:flex;align-items:center;gap:7px;font-size:12px}.member-card-status i{width:9px;height:9px;background:#48cf91;border-radius:50%}.member-card-status i.bad{background:#ff6379}.member-card-status a{margin-left:auto;color:#fff;font-weight:700}
.renewal-card{display:grid;gap:12px}.renewal-card .status{display:inline-flex;margin-top:7px;padding:5px 9px;border-radius:999px;background:#edf4ff;color:#174f91;font-size:.75rem;font-weight:750}.renewal-card .status.danger{background:#fff0f0;color:#a92e2e}.upload-control{display:flex;min-height:44px;align-items:center;justify-content:center;padding:10px 14px;border:1px dashed #9aabc0;border-radius:12px;color:#174f91;font-weight:750;cursor:pointer}.upload-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.renewal-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.renewal-steps span{padding:7px 5px;color:var(--muted);text-align:center;background:var(--bg);border-radius:8px;font-size:11px;font-weight:750}.renewal-steps span.done{color:#12633f;background:#e7f7ee}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.renewal-docs details summary{display:grid;gap:4px;cursor:pointer}.renewal-docs details p{max-height:280px;overflow:auto;white-space:normal;line-height:1.55}.consent-check{display:flex;align-items:flex-start;gap:9px;line-height:1.45;font-weight:650}.consent-check input{width:20px;height:20px;flex:0 0 20px}.signature-label{font-weight:750}.signature-pad{display:block;width:100%;height:260px;touch-action:none;background:#fff;border:2px dashed #9aabc0;border-radius:12px}.dark .signature-pad{background:#f8fafc}@media(max-width:520px){.form-grid{grid-template-columns:1fr}}


/* Início 3.7.3 — paridade com a APK */
.home-root>.section-title:first-child{margin-top:2px}
.profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.profile-list .profile-card{min-width:0;min-height:86px;padding:10px;gap:8px}
.profile-list .profile-card .avatar{width:40px;height:40px;flex-basis:40px}
.profile-list .profile-card .item-copy strong{display:-webkit-box;overflow:hidden;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.profile-list .profile-card .item-copy small{font-size:11px;line-height:1.25;white-space:nowrap}
.profile-list .profile-card>.material-icon{width:19px;height:19px;flex-basis:19px}
.home-attention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:9px}
.home-attention-card{display:grid;min-width:0;min-height:124px;align-content:start;gap:5px;padding:12px;text-align:left;border-radius:18px}
.home-attention-card .home-attention-number{font-size:25px;font-weight:850;line-height:1}
.home-attention-card strong{line-height:1.2}
.home-attention-card small{align-self:end;line-height:1.3}
.home-attention-card.overdue{color:#9d1c27;background:#fff0f1;border:1px solid #eca8ae}
.home-attention-card.dues{color:#715900;background:#fff4bf;border:1px solid #e9cb55}
.home-payment-alert{width:100%;margin-top:9px;color:var(--blue);background:#edf4ff;border-color:#b9d0ee}
.dark .home-attention-card.overdue{color:#ffb8c1;background:#3a2028;border-color:#72404b}
.dark .home-attention-card.dues{color:#ffe58a;background:#3c351d;border-color:#6b5d2d}
.dark .home-payment-alert{color:#a8d5ff;background:#203a5d;border-color:#31567e}
