:root{--verde:#6fa36b;--verde2:#eaf5ea;--texto:#25332b;--claro:#fffdf8;--borda:#dfe9dd;--sombra:0 18px 45px rgba(42,74,50,.12);--raio:24px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:linear-gradient(180deg,#fffdf8,#f3fbf2);color:var(--texto)}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.hero{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.card{background:rgba(255,255,255,.92);border:1px solid var(--borda);border-radius:var(--raio);box-shadow:var(--sombra);padding:24px}.logo{width:170px;max-width:70%;display:block;margin:0 auto 14px}.family-img{width:95%;max-height:520px;object-fit:contain}.title{font-size:clamp(30px,5vw,56px);line-height:1.02;margin:8px 0;text-align:center}.subtitle{text-align:center;color:#607064;font-size:18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;background:var(--verde);color:white;font-weight:700;padding:13px 18px;cursor:pointer;box-shadow:0 10px 24px rgba(111,163,107,.24)}.btn.secondary{background:white;color:var(--verde);border:1px solid var(--borda)}.btn.full{width:95%;margin-top:10px}.form{display:grid;gap:12px}.field{display:grid;gap:6px}.field label{font-weight:700}.field input,.field textarea,.field select{width:95%;border:1px solid var(--borda);border-radius:16px;padding:13px 14px;background:white;outline:none}.field input:focus,.field textarea:focus{border-color:var(--verde)}.password-wrap{position:relative}.password-wrap input{padding-right:78px}.toggle-pass{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:var(--verde2);border-radius:999px;padding:7px 10px;cursor:pointer;color:#35533a}.msg{border-radius:14px;padding:10px 12px;background:#f1f8ef;color:#315537;display:none}.msg.show{display:block}.app{min-height:100vh;display:grid;grid-template-columns:250px 1fr;background:#f7fbf5}.sidebar{background:white;border-right:1px solid var(--borda);padding:18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:14px}.side-logo{width:138px;margin:0 auto 8px}.nav{display:grid;gap:7px}.nav a{padding:11px 12px;border-radius:14px;color:#314638;font-weight:700}.nav a:hover,.nav a.active{background:var(--verde2);color:#315537}.main{padding:22px;max-width:1100px;width:95%;margin:0 auto}.topbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.grid.two{grid-template-columns:repeat(2,1fr)}.module-card{min-height:145px}.muted{color:#69786c}.avatar{width:86px;height:86px;border-radius:50%;object-fit:cover;background:var(--verde2);border:3px solid white;box-shadow:var(--sombra)}.post{display:grid;gap:10px}.post img,.post video{max-width:95%;border-radius:18px;border:1px solid var(--borda)}.member{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--borda);border-radius:18px;background:white}.pill{display:inline-flex;align-items:center;border-radius:999px;background:var(--verde2);padding:6px 10px;font-weight:700;color:#315537}.danger{background:#b94a48}.hidden{display:none!important}.footer-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}@media(max-width:820px){.hero{grid-template-columns:1fr}.app{display:block}.sidebar{height:auto;position:relative;border-right:0;border-bottom:1px solid var(--borda)}.nav{grid-template-columns:repeat(2,1fr)}.main{padding:14px}.grid,.grid.two{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.family-img{max-height:360px}}@media(max-width:460px){.page{padding:12px}.card{padding:18px;border-radius:20px}.nav{grid-template-columns:1fr}.title{font-size:32px}}
/* Módulo 3: correção da tela inicial + memórias */
.hero-home{display:flex;justify-content:center}.home-card{width:min(720px,100%);text-align:center}.family-home{display:block;width:min(430px,92%);max-height:310px;object-fit:contain;margin:8px auto 18px}.center{justify-content:center}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.stats div{background:var(--verde2);border-radius:18px;padding:16px;text-align:center}.stats b{font-size:34px;color:#315537;display:block}.stats span{color:#607064}.memory-list{display:grid;gap:16px;margin-top:18px}.memory-card{background:white;border:1px solid var(--borda);border-radius:22px;padding:16px;box-shadow:var(--sombra);display:grid;gap:10px}.memory-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.memory-card img,.memory-card video{width:95%;max-height:420px;object-fit:contain;border-radius:18px;border:1px solid var(--borda);background:#fff}.actions-row{display:flex;gap:8px;flex-wrap:wrap}.comment-box{display:grid;gap:8px;margin-top:8px}.comment{background:#f7fbf5;border:1px solid var(--borda);border-radius:14px;padding:9px 10px}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery-item{background:white;border:1px solid var(--borda);border-radius:18px;padding:10px;box-shadow:var(--sombra)}.gallery-item img,.gallery-item video{width:95%;height:230px;object-fit:cover;border-radius:14px;background:#fff}.empty-state{background:white;border:1px dashed var(--borda);border-radius:22px;padding:24px;text-align:center;color:#607064}@media(max-width:820px){.family-home{max-height:250px}.gallery-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}.gallery-item img,.gallery-item video{height:auto}.family-home{max-height:210px}.logo{width:145px}.subtitle{font-size:17px}}

/* Módulo 4: tela inicial proporcional + árvore genealógica */
.home-page{min-height:100svh;padding:18px;background:radial-gradient(circle at top,#ffffff 0,#f4fbf1 78%)}
.hero-home{width:95%;display:flex;align-items:center;justify-content:center}
.compact-home{width:min(680px,100%);min-height:auto;padding:clamp(18px,4vw,34px);display:flex;flex-direction:column;align-items:center;gap:clamp(10px,2.2vw,18px)}
.home-logo{width:clamp(130px,24vw,210px);margin:0 auto}.home-title{font-size:clamp(34px,7vw,62px);margin:4px 0 0;max-width:640px}.home-subtitle{font-size:clamp(18px,4vw,30px);line-height:1.35;margin:0;max-width:620px}.family-home{width:min(380px,82%);height:auto;max-height:clamp(150px,30vh,280px);object-fit:contain;margin:4px auto}.home-actions{width:95%;margin-top:2px}.home-actions .btn{min-width:210px;min-height:58px;font-size:clamp(17px,4vw,28px)}@media(max-width:520px){.home-page{padding:10px}.compact-home{border-radius:22px;padding:18px 16px;gap:12px}.home-logo{width:150px}.home-title{font-size:38px;line-height:1.05}.home-subtitle{font-size:20px}.family-home{width:72%;max-height:190px}.home-actions{display:grid;grid-template-columns:1fr;gap:10px}.home-actions .btn{width:95%;min-height:56px}}@media(min-width:900px){.compact-home{max-height:calc(100vh - 48px)}.family-home{max-height:230px}.home-actions{justify-content:center}}
.tree-panel{margin-top:16px}.tree-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tree-card{background:white;border:1px solid var(--borda);border-radius:22px;padding:14px;box-shadow:var(--sombra);display:grid;gap:9px}.tree-photo{width:82px;height:82px;border-radius:50%;object-fit:cover;background:var(--verde2);border:3px solid white;box-shadow:0 8px 18px rgba(42,74,50,.12)}.tree-card h3{margin:0}.tree-line{height:1px;background:var(--borda);margin:2px 0}.tree-actions{display:flex;gap:8px;flex-wrap:wrap}.tree-empty{padding:26px;text-align:center;border:1px dashed var(--borda);border-radius:22px;color:#607064;background:#fff}.tree-relation{font-size:13px}@media(max-width:900px){.tree-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.tree-list{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.tree-card{padding:13px}}

/* Módulo 5: tela inicial mais próxima e proporcional */
.home-page{min-height:100svh;padding:10px;background:radial-gradient(circle at top,#fff 0,#f2fbef 88%)}
.compact-home{width:min(660px,100%);padding:clamp(16px,3vw,28px);gap:8px;justify-content:center}
.home-logo{width:clamp(150px,24vw,205px);margin:0 auto -2px}
.home-text{display:grid;gap:8px;margin-top:0}.home-title{font-size:clamp(34px,6.8vw,58px);line-height:1.02;margin:0}.home-subtitle{font-size:clamp(18px,3.8vw,28px);line-height:1.28;margin:0 auto;max-width:610px}.family-home-big{width:min(500px,92%);max-height:clamp(230px,36vh,355px);margin:2px auto 4px}.home-actions{margin-top:4px;justify-content:center}.home-actions .btn{min-width:220px;min-height:58px}@media(max-width:520px){.home-page{padding:8px}.compact-home{min-height:calc(100svh - 24px);padding:14px 16px;gap:8px}.home-logo{width:145px}.home-title{font-size:36px}.home-subtitle{font-size:19px}.family-home-big{width:94%;max-height:310px}.home-actions{grid-template-columns:1fr;gap:10px}.home-actions .btn{width:95%;min-height:56px;font-size:20px}}@media(min-width:900px){.compact-home{max-height:calc(100vh - 26px)}.family-home-big{max-height:320px}}
.agenda-list{display:grid;gap:12px;margin-top:16px}.event-card{display:flex;justify-content:space-between;gap:12px;align-items:center;background:white;border:1px solid var(--borda);border-radius:20px;padding:14px;box-shadow:var(--sombra)}.event-date{min-width:82px;text-align:center;border-radius:16px;background:var(--verde2);padding:10px;color:#315537;font-weight:800}.event-date b{font-size:26px;display:block}.event-info{flex:1}.event-info h3{margin:0 0 4px}.event-info p{margin:0;color:#607064}.event-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:560px){.event-card{align-items:flex-start;flex-direction:column}.event-date{width:100%}.event-actions{width:100%}.event-actions .btn{width:100%}}

/* Módulo 6: correção definitiva da tela inicial, cadastro e senha */
.auth-card{width:min(520px,100%)}
.home-page{min-height:100svh;padding:8px;background:radial-gradient(circle at top,#fff 0,#f1fbef 92%)}
.hero-home{width:95%;display:flex;align-items:center;justify-content:center}
.compact-home{width:min(660px,100%);min-height:calc(100svh - 18px);padding:14px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.home-logo{width:clamp(145px,22vw,200px);max-width:72%;margin:0 auto 0}
.home-title{font-size:clamp(34px,6vw,56px);line-height:1.02;margin:0;color:#24352a}
.home-subtitle{font-size:clamp(18px,3.4vw,26px);line-height:1.25;margin:0 auto;max-width:600px;color:#607064}
.family-home-big{display:block;width:min(560px,96%);max-height:clamp(280px,40vh,390px);object-fit:contain;margin:0 auto 2px}
.home-actions{width:95%;display:flex;justify-content:center;align-items:center;gap:12px;margin-top:2px;flex-wrap:wrap}.home-actions .btn{min-width:210px;min-height:58px;font-size:clamp(18px,3.4vw,25px)}
@media(max-width:520px){.compact-home{min-height:calc(100svh - 16px);gap:7px;padding:12px 14px}.home-logo{width:142px}.home-title{font-size:35px}.home-subtitle{font-size:18px}.family-home-big{width:95%;max-height:330px}.home-actions{display:grid;grid-template-columns:1fr;gap:10px}.home-actions .btn{width:95%;min-height:56px;font-size:20px}}


/* Módulo 7: tela inicial compacta e proporcional */
.home-fit{min-height:100svh;padding:8px;background:linear-gradient(180deg,#f8fff8,#eef8ec)}
.fit-home-card{width:min(680px,100%);min-height:auto;max-height:calc(100svh - 16px);padding:clamp(12px,2.4vh,22px) clamp(14px,4vw,26px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(7px,1.4vh,13px);overflow:hidden}
.fit-home-card .home-logo{width:clamp(112px,20vh,178px);max-width:54%;margin:0 auto}
.fit-home-card .home-copy{display:grid;gap:clamp(4px,1vh,9px);margin:0;text-align:center}
.fit-home-card .home-title{font-size:clamp(28px,5.6vh,50px);line-height:1;margin:0 auto;max-width:600px}
.fit-home-card .home-subtitle{font-size:clamp(15px,2.7vh,24px);line-height:1.22;margin:0 auto;max-width:620px}
.fit-home-card .family-home-big{width:min(460px,86%);max-height:clamp(145px,26vh,260px);margin:0 auto;object-fit:contain}
.fit-home-card .home-actions{width:95%;display:flex;justify-content:center;gap:12px;margin:0;flex-wrap:nowrap}
.fit-home-card .home-actions .btn{min-height:clamp(46px,7vh,58px);min-width:190px;font-size:clamp(16px,2.5vh,22px);padding:10px 18px}
@media(max-width:520px){.home-fit{padding:7px}.fit-home-card{height:calc(100svh - 14px);border-radius:22px;gap:8px}.fit-home-card .home-logo{width:118px;max-width:50%}.fit-home-card .home-title{font-size:31px}.fit-home-card .home-subtitle{font-size:16px;max-width:330px}.fit-home-card .family-home-big{width:88%;max-height:190px}.fit-home-card .home-actions{display:grid;grid-template-columns:1fr;gap:8px}.fit-home-card .home-actions .btn{width:95%;min-height:50px;font-size:18px}}
@media(max-height:700px){.fit-home-card .home-logo{width:98px}.fit-home-card .home-title{font-size:27px}.fit-home-card .home-subtitle{font-size:14px}.fit-home-card .family-home-big{max-height:130px}.fit-home-card .home-actions .btn{min-height:44px}}

/* Módulo 7: chat e mural */
.chat-panel{display:grid;gap:14px}.chat-list{height:calc(100vh - 260px);min-height:330px;overflow:auto;border:1px solid var(--borda);border-radius:22px;background:#fbfffa;padding:14px;display:flex;flex-direction:column;gap:10px}.chat-msg{max-width:78%;padding:11px 13px;border-radius:18px;background:white;border:1px solid var(--borda);box-shadow:0 8px 20px rgba(42,74,50,.06)}.chat-msg.me{align-self:flex-end;background:var(--verde2)}.chat-msg b{display:block;margin-bottom:3px}.chat-msg small{display:block;margin-top:4px;color:#69786c}.chat-form{display:grid;grid-template-columns:1fr auto;gap:10px}.chat-form input{border:1px solid var(--borda);border-radius:999px;padding:14px 16px;outline:none}.tribute-list{display:grid;gap:14px}.tribute-card{border:1px solid var(--borda);border-radius:22px;background:white;padding:14px;box-shadow:var(--sombra)}.tribute-card img{width:95%;max-height:260px;object-fit:contain;border-radius:18px;background:#fff;border:1px solid var(--borda)}@media(max-width:640px){.chat-list{height:55vh;min-height:300px}.chat-form{grid-template-columns:1fr}.chat-msg{max-width:92%}}

/* Módulo 8: tela inicial sem frases, agrupada e ícones maiores */
.clean-home{justify-content:center;gap:14px;padding:18px 18px;min-height:auto;height:min(92svh,760px)}
.clean-home .home-logo{width:clamp(145px,34vw,230px);margin:0 auto}
.clean-home .family-home-big{width:min(560px,94%);max-height:clamp(260px,43svh,430px);margin:0 auto;object-fit:contain}
.clean-home .home-actions{margin-top:0;display:flex;gap:14px;justify-content:center}
.clean-home .home-actions .btn{min-width:220px;min-height:58px;font-size:clamp(18px,4vw,24px)}
.module-big{display:grid;gap:8px;align-content:start;min-height:190px;transition:.18s transform,.18s box-shadow}
.module-big:hover{transform:translateY(-2px)}
.module-icon{font-size:clamp(44px,8vw,68px);line-height:1;display:block;margin-bottom:4px}
.module-big h2{font-size:clamp(21px,3vw,28px);margin:0}.module-big p{font-size:16px;margin:0}.nav a{font-size:17px;line-height:1.2}.notification-list{display:grid;gap:12px;margin-top:16px}.notice{display:flex;gap:14px;align-items:flex-start;background:white;border:1px solid var(--borda);border-radius:20px;padding:15px;box-shadow:var(--sombra)}.notice-icon{font-size:34px}.notice h3{margin:0 0 4px}.notice p{margin:0}.notice small{display:block;margin-top:6px;color:#69786c}
@media(max-width:520px){.home-fit{padding:8px}.clean-home{height:calc(100svh - 16px);gap:12px;padding:14px 16px;border-radius:22px}.clean-home .home-logo{width:145px;max-width:56%}.clean-home .family-home-big{width:96%;max-height:43svh}.clean-home .home-actions{width:95%;display:grid;grid-template-columns:1fr;gap:10px}.clean-home .home-actions .btn{width:95%;min-height:54px;font-size:20px}.modules-grid{gap:14px}.module-big{min-height:160px;text-align:center}.module-icon{font-size:58px}.nav a{font-size:18px;padding:13px 12px}.notice{padding:14px}.notice-icon{font-size:38px}}
@media(max-height:680px){.clean-home{gap:8px}.clean-home .home-logo{width:112px}.clean-home .family-home-big{max-height:38svh}.clean-home .home-actions .btn{min-height:48px}}


/* Módulo 9: tela inicial mais harmoniosa e logos maiores */
.clean-home{justify-content:center;align-items:center;gap:14px;overflow:hidden;}
.clean-home .home-logo{width:clamp(175px,38vw,285px);max-width:72%;}
.clean-home .family-home-big{width:min(620px,98%);max-height:clamp(285px,48svh,455px);}
.side-logo{width:clamp(150px,15vw,190px);}
.module-icon{font-size:clamp(56px,7vw,78px);line-height:1;display:block;margin-bottom:8px}.module-big{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:185px}.modules-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));}
.admin-hero{display:flex;justify-content:space-between;gap:18px;align-items:center}.admin-code{background:var(--verde2);border-radius:22px;padding:16px;display:grid;gap:8px;text-align:center;min-width:210px}.admin-code b{font-size:24px;color:#315537}.admin-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:16px 0}.stat-card{text-align:center}.stat-card b{font-size:38px;color:#315537;display:block}.admin-members{display:grid;gap:10px}.admin-member{align-items:center}
@media(max-width:820px){.admin-hero{display:grid}.admin-stats{grid-template-columns:repeat(2,1fr)}.side-logo{width:155px}}
@media(max-width:520px){.clean-home{height:calc(100svh - 16px);padding:12px 14px;gap:10px}.clean-home .home-logo{width:170px;max-width:68%}.clean-home .family-home-big{width:95%;max-height:49svh}.home-actions .btn,.clean-home .home-actions .btn{min-height:52px;font-size:19px}.module-icon{font-size:64px}.module-big{min-height:170px}.admin-stats{grid-template-columns:1fr}.admin-code{min-width:0}.side-logo{width:160px}}
@media(max-height:690px){.clean-home .home-logo{width:145px}.clean-home .family-home-big{max-height:42svh}.clean-home{gap:8px}.clean-home .home-actions .btn{min-height:46px}}


/* Módulo 10: aparência inspirada no mockup aprovado */
.modulo10-home{padding:8px;background:linear-gradient(180deg,#fffefa 0%,#f3fbef 100%)}
.home10-card{height:calc(100svh - 16px);width:min(500px,100%);border-radius:34px;padding:10px 22px 14px;gap:8px;box-shadow:0 22px 55px rgba(27,88,38,.14);border-color:#e2eddc;justify-content:space-between}
.home10-tree{width:min(92vw,410px)!important;max-width:100%!important;max-height:47svh;object-fit:contain;margin:0 auto -6px!important;display:block;filter:drop-shadow(0 8px 16px rgba(31,84,37,.08))}
.home10-family{width:min(92vw,390px)!important;max-width:100%!important;max-height:27svh!important;object-fit:contain;margin:-4px auto 0!important;display:block;transform:scale(1.05)}
.home10-actions{width:95%;display:grid!important;grid-template-columns:1fr;gap:10px;margin:2px 0 0!important}.home10-actions .btn{width:95%;min-height:58px;border-radius:999px;font-size:22px;box-shadow:0 12px 26px rgba(54,132,54,.18)}.home10-actions .secondary{background:#fff;color:#277237;border:1px solid #dcebdd}.home10-leaf{color:#277237;font-size:28px;line-height:1;margin-top:-2px}
.app10{background:#fbfff8}.app10 .main{padding-bottom:88px}.app10-top{align-items:center}.welcome-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--borda);border-radius:22px;padding:12px 14px;box-shadow:var(--sombra);min-width:min(100%,420px)}.welcome-card h1{margin:0;font-size:24px}.welcome-card p{margin:3px 0 0}.mini-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#eaf5ea;border:3px solid #fff;box-shadow:0 8px 18px rgba(31,84,37,.12)}
.app10-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px}.app10-grid .module-big{min-height:132px;padding:16px 10px;border-radius:20px}.app10-grid .module-icon{font-size:48px;margin:0}.app10-grid h2{font-size:16px;margin:0;color:#1d3d28}.app10-grid p{display:none}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);height:70px;background:rgba(255,255,255,.96);border-top:1px solid var(--borda);display:none;grid-template-columns:repeat(5,1fr);align-items:center;z-index:10;box-shadow:0 -10px 30px rgba(31,84,37,.08)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:700;color:#385641;font-size:20px}.bottom-nav span{font-size:11px}.bottom-nav .plus{width:52px;height:52px;border-radius:50%;background:linear-gradient(180deg,#4ca341,#247a2f);color:white;font-size:32px;justify-self:center;box-shadow:0 10px 22px rgba(36,122,47,.24)}
.timeline-list{position:relative;display:grid;gap:18px;padding:10px 0 10px 26px}.timeline-list:before{content:"";position:absolute;left:12px;top:18px;bottom:18px;width:2px;background:#4a9b44}.timeline-item{position:relative;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.timeline-year{position:absolute;left:-34px;background:#2b8134;color:#fff;border-radius:999px;padding:6px 8px;font-weight:800;font-size:12px}.timeline-content{background:#fff;border:1px solid var(--borda);border-radius:18px;padding:12px;box-shadow:0 8px 20px rgba(31,84,37,.08)}.timeline-content h3{margin:0 0 4px}.timeline-thumb{width:78px;height:62px;object-fit:cover;border-radius:12px;border:1px solid var(--borda);background:#fff}.guardian-grid{display:grid;grid-template-columns:280px 1fr;gap:16px}.guardian-robot{font-size:120px;display:grid;place-items:center;min-height:260px}.guardian-actions{display:grid;gap:12px;align-content:start}.guardian-actions .empty-state{margin-top:8px;text-align:left}
@media(max-width:820px){.app10{display:block}.app10 .sidebar{display:none}.bottom-nav{display:grid}.app10 .main{padding:14px 14px 86px}.app10-grid{grid-template-columns:repeat(3,1fr)}.guardian-grid{grid-template-columns:1fr}.guardian-robot{min-height:170px;font-size:95px}}
@media(max-width:520px){.home10-card{height:calc(100svh - 16px);border-radius:30px;padding:8px 18px 12px}.home10-tree{width:96vw!important;max-height:48svh!important}.home10-family{width:96vw!important;max-height:26svh!important}.home10-actions .btn{min-height:54px;font-size:20px}.home10-leaf{font-size:24px}.app10-grid{grid-template-columns:repeat(3,1fr);gap:10px}.app10-grid .module-big{min-height:104px;padding:10px 6px}.app10-grid .module-icon{font-size:34px}.app10-grid h2{font-size:12px}.welcome-card{padding:10px}.welcome-card h1{font-size:19px}.mini-avatar{width:45px;height:45px}.timeline-thumb{width:64px;height:52px}.timeline-content{padding:10px}.timeline-list{padding-left:22px}.guardian-actions .btn{font-size:15px}}
@media(max-height:700px){.home10-tree{max-height:44svh!important}.home10-family{max-height:23svh!important}.home10-actions .btn{min-height:48px}.home10-card{gap:5px}.home10-leaf{display:none}}


/* ===== MÓDULO 11: Tela inicial padrão oficial ===== */
.home11-page{
  min-height:100svh;
  width:95%;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fffef8 0%,#f7fff5 100%);
  overflow:hidden;
}
.home11-phone{
  width:min(100vw,430px);
  height:100svh;
  max-height:932px;
  background:#fffef8;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:clamp(8px,1.8svh,18px) clamp(18px,5vw,26px) clamp(10px,2svh,18px);
  gap:clamp(6px,1.3svh,12px);
  border-left:1px solid rgba(36,84,44,.10);
  border-right:1px solid rgba(36,84,44,.10);
}
.home11-logo{
  width:min(96vw,380px);
  max-width:95%;
  height:auto;
  max-height:52svh;
  object-fit:contain;
  display:block;
  margin:0 auto;
  flex:0 1 auto;
}
.home11-family{
  width:min(92vw,360px);
  max-width:95%;
  height:auto;
  max-height:22svh;
  object-fit:contain;
  display:block;
  margin:clamp(-8px,-1svh,-2px) auto 0;
  flex:0 1 auto;
}
.home11-actions{
  width:95%;
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(9px,1.4svh,14px);
  margin-top:auto;
  padding-bottom:clamp(4px,1svh,10px);
}
.home11-actions .btn{
  width:95%;
  min-height:clamp(50px,7svh,66px);
  font-size:clamp(20px,5.4vw,28px);
  font-weight:800;
  border-radius:999px;
  box-shadow:0 12px 24px rgba(43,116,42,.18);
}
.home11-primary{
  background:linear-gradient(180deg,#49a342,#217821);
}
.home11-secondary{
  background:#fffef8!important;
  color:#287b28!important;
  border:1.5px solid rgba(69,137,64,.32)!important;
  box-shadow:0 8px 18px rgba(43,116,42,.10)!important;
}
.home11-leaf{
  color:#258033;
  font-size:clamp(18px,4.5vw,26px);
  line-height:1;
  margin-top:0;
}
@media(min-width:700px){
  .home11-page{padding:18px;background:linear-gradient(180deg,#fffef8,#eff9ef)}
  .home11-phone{border-radius:36px;box-shadow:var(--sombra);height:min(100svh - 36px,900px);border:1px solid var(--borda)}
}
@media(max-height:760px){
  .home11-phone{gap:4px;padding-top:6px;padding-bottom:8px}
  .home11-logo{max-height:50svh;width:min(92vw,355px)}
  .home11-family{max-height:20svh;width:min(86vw,330px);margin-top:-8px}
  .home11-actions .btn{min-height:46px;font-size:19px}
  .home11-leaf{font-size:18px}
}
@media(max-height:660px){
  .home11-logo{max-height:48svh;width:min(88vw,330px)}
  .home11-family{max-height:18svh;width:min(82vw,305px)}
  .home11-actions .btn{min-height:42px;font-size:18px}
}


/* ===== MÓDULO 12: Tela inicial igual à referência enviada ===== */
.home11-page{
  background:linear-gradient(180deg,#fffef8 0%,#f8fff4 100%) !important;
  overflow:hidden !important;
}
.home11-phone{
  width:min(100vw,430px) !important;
  height:100svh !important;
  max-height:none !important;
  padding:calc(env(safe-area-inset-top,0px) + 4px) 18px calc(env(safe-area-inset-bottom,0px) + 10px) !important;
  gap:0 !important;
  justify-content:flex-start !important;
  background:#fffef8 !important;
}
.home11-logo{
  width:min(100vw,420px) !important;
  max-width:104% !important;
  max-height:61svh !important;
  object-fit:contain !important;
  margin:-6px auto -14px !important;
  display:block !important;
}
.home11-family{
  width:min(98vw,400px) !important;
  max-width:100% !important;
  max-height:24svh !important;
  object-fit:contain !important;
  margin:-10px auto 0 !important;
  display:block !important;
}
.home11-actions{
  width:100% !important;
  margin-top:auto !important;
  padding:0 6px 2px !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.home11-actions .btn{
  width:100% !important;
  min-height:54px !important;
  font-size:22px !important;
  border-radius:999px !important;
  font-weight:800 !important;
}
.home11-primary{
  background:linear-gradient(180deg,#40a139 0%,#177016 100%) !important;
}
.home11-secondary{
  background:#fffef8 !important;
  color:#1d7a24 !important;
  border:1.5px solid rgba(37,128,51,.35) !important;
}
.home11-leaf{
  font-size:22px !important;
  color:#247b2c !important;
  margin-top:5px !important;
}
@media(max-height:760px){
  .home11-phone{padding-top:2px !important;padding-bottom:8px !important;}
  .home11-logo{max-height:59svh !important;width:min(104vw,420px) !important;margin-top:-8px !important;margin-bottom:-16px !important;}
  .home11-family{max-height:23svh !important;width:min(98vw,390px) !important;margin-top:-12px !important;}
  .home11-actions{gap:8px !important;}
  .home11-actions .btn{min-height:48px !important;font-size:20px !important;}
  .home11-leaf{font-size:18px !important;margin-top:3px !important;}
}
@media(max-height:660px){
  .home11-logo{max-height:56svh !important;width:min(100vw,390px) !important;}
  .home11-family{max-height:21svh !important;width:min(94vw,360px) !important;}
  .home11-actions .btn{min-height:44px !important;font-size:18px !important;}
  .home11-leaf{display:none !important;}
}
@media(min-width:700px){
  .home11-page{padding:16px !important;}
  .home11-phone{height:min(100svh - 32px,900px) !important;border-radius:38px !important;box-shadow:0 22px 55px rgba(29,89,38,.13) !important;border:1px solid var(--borda) !important;}
  .home11-logo{width:min(390px,92%) !important;}
  .home11-family{width:min(360px,90%) !important;}
}


/* ================= MÓDULO 13: VISUAL OFICIAL + SISTEMA DE FAMÍLIAS ================= */
html, body { min-height:100%; }
.home13-page{min-height:100dvh;width:95%;display:flex;align-items:center;justify-content:center;padding:0;background:radial-gradient(circle at 50% 8%,#fff 0%,#fffdf8 54%,#eef8ee 100%);overflow:hidden;color:#063d22;}
.home13-screen{position:relative;width:min(100vw,480px);height:100dvh;min-height:620px;max-height:980px;margin:auto;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;align-items:center;justify-items:center;padding:clamp(10px,2.5vh,22px) clamp(16px,5vw,28px) max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#fffef9 0%,#fffefa 66%,#f6fbf3 100%);}
.home13-logo-wrap{width:95%;display:flex;align-items:flex-end;justify-content:center;min-height:0;align-self:end;}
.home13-logo{display:block;width:min(94vw,430px);max-width:95%;height:auto;max-height:clamp(350px,63dvh,645px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 20px rgba(18,68,38,.08));}
.home13-family-wrap{width:95%;display:flex;align-items:center;justify-content:center;margin-top:clamp(-34px,-4dvh,-8px);z-index:2;}
.home13-family{display:block;width:min(88vw,410px);max-width:95%;height:auto;max-height:clamp(120px,21dvh,210px);object-fit:contain;filter:drop-shadow(0 8px 12px rgba(18,68,38,.06));}
.home13-actions{width:95%;display:grid;gap:10px;margin-top:clamp(6px,1.8dvh,14px);z-index:3;}
.home13-btn{min-height:58px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:clamp(22px,6vw,30px);font-weight:800;text-decoration:none;letter-spacing:-.02em;}
.home13-btn-main{background:linear-gradient(180deg,#2f922e,#116e18);color:white;box-shadow:0 18px 34px rgba(20,111,33,.22);}
.home13-btn-light{background:#fff;color:#167226;border:1.5px solid #cfe2c9;box-shadow:0 10px 24px rgba(18,68,38,.08);}
.home13-leaf{font-size:clamp(24px,7vw,32px);line-height:1;color:#167226;margin-top:6px;height:28px;}
@media(max-height:720px){.home13-screen{grid-template-rows:minmax(0,1fr) auto auto auto;padding-top:6px}.home13-logo{max-height:58dvh;width:min(91vw,410px)}.home13-family-wrap{margin-top:-28px}.home13-family{max-height:18dvh;width:min(84vw,390px)}.home13-btn{min-height:52px;font-size:22px}.home13-actions{gap:8px;margin-top:4px}.home13-leaf{height:18px;font-size:20px;margin-top:2px}}
@media(min-width:700px){.home13-page{padding:18px}.home13-screen{border-radius:38px;box-shadow:0 30px 70px rgba(20,70,36,.14);border:1px solid #e4eedf;height:min(92vh,920px);}.home13-logo{width:420px}.home13-family{width:400px}}
.mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.mobile-head h1{font-size:22px;margin:0;color:#063d22}.mobile-head a{font-size:28px;font-weight:800;color:#063d22}.quick-title h2{font-size:16px;margin:0 0 10px;color:#213d2d}.app13 .main{padding-bottom:96px}.app13-grid{grid-template-columns:repeat(3,1fr);gap:14px}.app13-grid .module-big{min-height:118px;text-align:center;align-items:center;justify-content:center;padding:14px}.app13-grid .module-icon{font-size:36px}.app13-grid h2{font-size:15px;margin:6px 0 0}.family-preview{margin-top:18px}.family-cover{height:160px;border-radius:20px;background:linear-gradient(135deg,#e9f5e5,#fff);overflow:hidden;border:1px solid var(--borda)}.family-cover img{width:95%;height:100%;object-fit:cover}.family-profile-card{background:#fff;border:1px solid var(--borda);border-radius:28px;box-shadow:var(--sombra);overflow:hidden}.family-profile-body{padding:0 18px 18px}.family-avatar13{width:84px;height:84px;border-radius:50%;object-fit:cover;border:4px solid #fff;margin-top:-42px;background:#f3faf1;box-shadow:0 12px 22px rgba(20,70,36,.16)}.family-stats13{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.family-stats13 div{border:1px solid var(--borda);border-radius:16px;padding:12px;text-align:center;background:#fff}.family-stats13 b{display:block;font-size:22px;color:#116e18}.family-stats13 span{font-size:12px;color:#607064}.family-mini-list{display:grid;gap:10px}.family-mini-item{display:flex;align-items:center;gap:10px;border:1px solid var(--borda);border-radius:16px;padding:10px;background:#fff}.family-mini-item img{width:42px;height:42px;border-radius:50%;object-fit:cover}.family-form-card{max-width:560px;margin:0 auto}.family-photo-input{display:grid;place-items:center;margin:8px auto 24px}.family-photo-input label{width:150px;height:150px;border-radius:50%;border:2px solid #dfe9dd;background:#f8fcf5;display:grid;place-items:center;text-align:center;color:#317534;cursor:pointer}.family-photo-input span{font-size:42px}.member-tabs{display:flex;gap:8px;overflow:auto;margin-bottom:14px;padding-bottom:4px}.member-tabs button{border:1px solid var(--borda);border-radius:999px;background:white;padding:9px 16px;font-weight:700;color:#315537}.member-tabs button.active{background:#2f8b32;color:white}.members13-list{display:grid;gap:10px}.member13{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #edf2ea;background:white;border-radius:16px}.member13 img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#f3faf1}.member13-main{flex:1}.member13-main b{display:block}.member13-role{font-size:12px;color:#2f8b32;font-weight:800}.invite-card{background:white;border:1px solid var(--borda);box-shadow:var(--sombra);border-radius:26px;padding:20px;display:grid;gap:14px}.invite-code{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--borda);background:#f8fcf5;border-radius:16px;padding:12px;word-break:break-all}.share-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center}.share-bubble{border:1px solid var(--borda);border-radius:18px;background:#fff;padding:12px 6px;font-weight:700}.panel-grid13{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.panel-stat13{border:1px solid var(--borda);border-radius:18px;background:white;padding:14px;display:flex;gap:10px;align-items:center}.panel-stat13 i{font-style:normal;font-size:28px}.panel-stat13 b{display:block;color:#116e18;font-size:20px}.activity13{display:grid;gap:10px;margin-top:16px}.activity13 article{background:white;border:1px solid var(--borda);border-radius:18px;padding:12px;display:flex;align-items:center;gap:10px}.activity13 img{width:46px;height:46px;border-radius:50%;object-fit:cover}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20}@media(min-width:821px){.bottom-nav{display:none}.app13 .main{padding-bottom:22px}.mobile-head a:first-child{display:none}}
@media(max-width:820px){.app13 .sidebar{display:none}.app13 .main{padding:14px 14px 92px}.app13-grid{grid-template-columns:repeat(3,1fr);gap:10px}.app13-grid .module-big{min-height:92px;padding:10px}.app13-grid .module-icon{font-size:30px}.app13-grid h2{font-size:12px}.welcome-card{width:100%}.family-cover{height:130px}.panel-grid13{grid-template-columns:repeat(2,1fr)}.share-row{grid-template-columns:repeat(4,1fr)}}
@media(max-width:380px){.home13-logo{width:min(92vw,380px);max-height:56dvh}.home13-family{width:86vw}.home13-btn{min-height:50px;font-size:20px}.app13-grid .module-icon{font-size:26px}.app13-grid h2{font-size:11px}.panel-grid13{grid-template-columns:1fr 1fr}}


/* ===== AJUSTE FINAL DA PÁGINA PRINCIPAL: família maior, árvore proporcional ===== */
.home13-screen{
  grid-template-rows:minmax(0,1fr) auto auto auto !important;
  padding:clamp(8px,2dvh,18px) clamp(12px,4vw,24px) max(10px,env(safe-area-inset-bottom)) !important;
}
.home13-logo{
  width:min(96vw,430px) !important;
  max-height:clamp(330px,58dvh,610px) !important;
  object-fit:contain !important;
}
.home13-family-wrap{
  margin-top:clamp(-34px,-4dvh,-10px) !important;
}
.home13-family{
  width:min(104vw,560px) !important;
  max-width:108% !important;
  max-height:clamp(230px,36dvh,390px) !important;
  object-fit:contain !important;
}
@media(max-height:720px){
  .home13-logo{width:min(92vw,390px) !important;max-height:50dvh !important;}
  .home13-family-wrap{margin-top:-18px !important;}
  .home13-family{width:min(104vw,520px) !important;max-height:31dvh !important;}
  .home13-btn{min-height:50px !important;font-size:21px !important;}
}
@media(min-width:700px){
  .home13-logo{width:410px !important;max-height:560px !important;}
  .home13-family{width:520px !important;max-height:360px !important;}
}
@media(max-width:380px){
  .home13-logo{width:min(90vw,360px) !important;max-height:49dvh !important;}
  .home13-family{width:106vw !important;max-height:32dvh !important;}
}


/* ===== CORREÇÃO FINAL v15: página principal, logo e família maiores ===== */
.home13-page{
  min-height:100svh !important;
  overflow:hidden !important;
}
.home13-screen{
  width:min(100vw,480px) !important;
  height:100svh !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  gap:clamp(4px,1.2svh,12px) !important;
  padding:clamp(8px,1.8svh,18px) 16px max(10px,env(safe-area-inset-bottom)) !important;
}
.home13-logo-wrap,
.home13-family-wrap{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:0 !important;
  min-height:0 !important;
  flex:0 0 auto !important;
}
.home13-logo{
  width:min(92vw,390px) !important;
  max-width:100% !important;
  max-height:36svh !important;
  height:auto !important;
  object-fit:contain !important;
}
.home13-family{
  width:min(112vw,560px) !important;
  max-width:112% !important;
  max-height:34svh !important;
  height:auto !important;
  object-fit:contain !important;
  transform:none !important;
}
.home13-actions{
  width:min(100%,430px) !important;
  display:grid !important;
  gap:10px !important;
  margin-top:4px !important;
  flex:0 0 auto !important;
}
.home13-btn{
  min-height:52px !important;
  font-size:clamp(20px,5.4vw,27px) !important;
}
.home13-leaf{
  flex:0 0 auto !important;
  height:auto !important;
  margin-top:0 !important;
  font-size:clamp(20px,5vw,28px) !important;
}
@media(max-width:420px){
  .home13-logo{width:88vw !important;max-height:35svh !important;}
  .home13-family{width:118vw !important;max-width:118% !important;max-height:35svh !important;}
  .home13-screen{gap:5px !important;}
}
@media(max-height:700px){
  .home13-logo{max-height:33svh !important;width:min(88vw,360px) !important;}
  .home13-family{max-height:33svh !important;width:116vw !important;max-width:116% !important;}
  .home13-btn{min-height:48px !important;font-size:20px !important;}
  .home13-actions{gap:8px !important;}
  .home13-leaf{display:none !important;}
}

/* ===== CORREÇÃO REAL v17: barra inferior centralizada ===== */
html, body{
  max-width:95%;
  overflow-x:hidden;
}
@media(max-width:820px){
  .app13 .main{
    padding-bottom:110px !important;
    overflow-x:hidden !important;
  }
  .app13 .bottom-nav,
  .bottom-nav{
    position:fixed !important;
    left:50% !important;
    right:auto !important;
    bottom:max(10px, env(safe-area-inset-bottom)) !important;
    transform:translateX(-50%) !important;
    width:calc(100vw - 28px) !important;
    max-width:430px !important;
    height:74px !important;
    padding:0 10px !important;
    border:1px solid #dfe9dd !important;
    border-radius:24px !important;
    background:rgba(255,255,255,.98) !important;
    box-shadow:0 10px 28px rgba(31,84,37,.14) !important;
    display:grid !important;
    grid-template-columns:repeat(5,1fr) !important;
    align-items:center !important;
    justify-items:center !important;
    gap:0 !important;
    z-index:99999 !important;
  }
  .bottom-nav a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    padding:0 !important;
    margin:0 !important;
    text-align:center !important;
    font-size:25px !important;
    line-height:1 !important;
    color:#23352d !important;
  }
  .bottom-nav a span{
    display:block !important;
    font-size:12px !important;
    line-height:1.05 !important;
    font-weight:700 !important;
    color:#23352d !important;
  }
  .bottom-nav .plus{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    padding:0 !important;
    margin:0 auto !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:linear-gradient(180deg,#44a23f,#1f7f30) !important;
    color:white !important;
    font-size:38px !important;
    line-height:1 !important;
    transform:none !important;
    box-shadow:0 8px 20px rgba(31,127,48,.28) !important;
  }
}

/* ===== ARVOLIIS HOME v20 - árvore enviada pelo usuário ===== */
.home13-page{
  min-height:100svh !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:radial-gradient(circle at 50% 8%, #ffffff 0%, #fffdf8 54%, #eef8ee 100%) !important;
}

.home13-screen{
  width:min(100vw, 480px) !important;
  height:100svh !important;
  min-height:0 !important;
  max-height:none !important;
  padding:clamp(8px, 2svh, 18px) clamp(14px, 4vw, 24px) max(14px, env(safe-area-inset-bottom)) !important;
  display:grid !important;
  grid-template-rows:75svh auto !important;
  align-items:center !important;
  justify-items:center !important;
  gap:clamp(8px, 1.5svh, 16px) !important;
  background:linear-gradient(180deg, #fffef9 0%, #fffefa 66%, #f6fbf3 100%) !important;
}

.home13-logo-wrap{
  width:100% !important;
  height:75svh !important;
  min-height:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
}

.home13-tree-main,
.home13-logo{
  width:auto !important;
  height:75svh !important;
  max-width:100% !important;
  max-height:75svh !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  margin:0 auto !important;
  filter:drop-shadow(0 10px 20px rgba(18,68,38,.08)) !important;
}

.home13-family-wrap,
.home13-family,
.home13-leaf{
  display:none !important;
}

.home13-actions{
  width:100% !important;
  max-width:390px !important;
  display:grid !important;
  gap:10px !important;
  margin:0 auto !important;
  z-index:3 !important;
}

.home13-btn{
  min-height:clamp(48px, 7svh, 58px) !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:clamp(19px, 5.5vw, 28px) !important;
  font-weight:800 !important;
  text-decoration:none !important;
  letter-spacing:-.02em !important;
}

@media (max-height:700px){
  .home13-screen{grid-template-rows:72svh auto !important; gap:6px !important;}
  .home13-logo-wrap{height:72svh !important;}
  .home13-tree-main,.home13-logo{height:72svh !important;max-height:72svh !important;}
  .home13-btn{min-height:46px !important;font-size:20px !important;}
  .home13-actions{gap:8px !important;}
}


/* ===== LOGIN v24: família grande no topo ===== */
body:has(.auth-card){
  overflow-x:hidden;
}
.page:has(.auth-card){
  min-height:100svh !important;
  align-items:center !important;
  justify-content:center !important;
  padding:14px !important;
}
.auth-card{
  width:min(100%, 680px) !important;
  min-height:calc(100svh - 28px) !important;
  padding:18px 20px 22px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
}
.auth-card .login-family-img{
  display:block !important;
  width:calc(100vw - 28px) !important;
  max-width:680px !important;
  height:clamp(250px, 42svh, 470px) !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  margin:-4px auto 6px !important;
  padding:0 !important;
}
.auth-card .logo{
  display:none !important;
}
.auth-card .title{
  font-size:clamp(38px, 8vw, 58px) !important;
  margin:4px 0 12px !important;
  line-height:1 !important;
}
.auth-card .form{
  width:100% !important;
  gap:13px !important;
}
.auth-card .field input,
.auth-card .password-wrap input{
  min-height:58px !important;
  border-radius:18px !important;
}
.auth-card .btn.full{
  min-height:58px !important;
  font-size:20px !important;
  border-radius:999px !important;
}
@media(max-width:520px){
  .page:has(.auth-card){padding:10px !important;}
  .auth-card{
    min-height:calc(100svh - 20px) !important;
    padding:14px 18px 18px !important;
    border-radius:24px !important;
  }
  .auth-card .login-family-img{
    width:calc(100vw - 20px) !important;
    height:40svh !important;
    max-width:none !important;
    margin:-2px auto 4px !important;
  }
  .auth-card .title{
    margin:2px 0 10px !important;
    font-size:42px !important;
  }
}
@media(max-height:760px){
  .auth-card .login-family-img{height:34svh !important;}
  .auth-card .title{font-size:36px !important;margin:0 0 8px !important;}
  .auth-card .field input,.auth-card .password-wrap input{min-height:50px !important;}
  .auth-card .btn.full{min-height:50px !important;}
  .auth-card .form{gap:9px !important;}
}

/* ===== AJUSTE FINO v41: menu inferior ainda menor, sem alterar o restante ===== */
.diary-bottom-nav{
  height:46px !important;
  border-radius:16px 16px 0 0 !important;
  grid-template-columns:1fr 1fr 52px 1fr 1fr !important;
}
.diary-bottom-nav button,
.diary-bottom-nav a{
  font-size:18px !important;
  gap:0 !important;
}
.diary-bottom-nav span{
  font-size:9px !important;
  line-height:1 !important;
}
.diary-bottom-nav .active{
  height:34px !important;
  border-radius:12px !important;
}
.diary-bottom-nav .bottom-plus{
  width:48px !important;
  height:48px !important;
  font-size:34px !important;
  margin-top:-16px !important;
}
@media(max-width:360px){
  .diary-bottom-nav{
    height:42px !important;
    grid-template-columns:1fr 1fr 48px 1fr 1fr !important;
  }
  .diary-bottom-nav button,
  .diary-bottom-nav a{
    font-size:17px !important;
  }
  .diary-bottom-nav span{
    font-size:8px !important;
  }
  .diary-bottom-nav .active{
    height:31px !important;
  }
  .diary-bottom-nav .bottom-plus{
    width:44px !important;
    height:44px !important;
    font-size:30px !important;
    margin-top:-13px !important;
  }
}


/* ===== AJUSTE FINO v42: barra inferior realmente menor, sem alterar o restante ===== */
.diary-bottom-nav{
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  border-radius:12px 12px 0 0 !important;
  grid-template-columns:1fr 1fr 40px 1fr 1fr !important;
  padding:0 !important;
  bottom:0 !important;
  overflow:visible !important;
}
.diary-bottom-nav button,
.diary-bottom-nav a{
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  font-size:14px !important;
  line-height:1 !important;
  gap:0 !important;
}
.diary-bottom-nav span{
  font-size:7px !important;
  line-height:1 !important;
  margin-top:1px !important;
}
.diary-bottom-nav .active{
  height:28px !important;
  min-height:28px !important;
  border-radius:9px !important;
}
.diary-bottom-nav .bottom-plus{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  max-width:38px !important;
  max-height:38px !important;
  font-size:28px !important;
  line-height:1 !important;
  margin-top:-10px !important;
  padding-bottom:2px !important;
}
@media(max-width:430px){
  .diary-bottom-nav{
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    grid-template-columns:1fr 1fr 40px 1fr 1fr !important;
  }
  .diary-bottom-nav button,
  .diary-bottom-nav a{
    height:34px !important;
    min-height:34px !important;
    font-size:14px !important;
  }
  .diary-bottom-nav .active{height:28px !important;}
  .diary-bottom-nav .bottom-plus{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    font-size:28px !important;
    margin-top:-10px !important;
  }
}
@media(max-width:360px){
  .diary-bottom-nav{height:32px !important;min-height:32px !important;max-height:32px !important;grid-template-columns:1fr 1fr 36px 1fr 1fr !important;}
  .diary-bottom-nav button,.diary-bottom-nav a{height:32px !important;min-height:32px !important;font-size:13px !important;}
  .diary-bottom-nav span{font-size:7px !important;}
  .diary-bottom-nav .active{height:26px !important;}
  .diary-bottom-nav .bottom-plus{width:34px !important;height:34px !important;min-width:34px !important;min-height:34px !important;font-size:25px !important;margin-top:-8px !important;}
}

/* ===== AJUSTE FINO v43: alinhar folhas e marcadores, sem alterar o visual ===== */
body.diary-v39{
  --bottom-nav-h:34px;
  --book-top-gap:8px;
  --book-bottom-gap:4px;
  --book-h:calc(100dvh - var(--bottom-nav-h) - var(--book-top-gap) - var(--book-bottom-gap));
  --tab-top:44px;
  --tab-bottom:8px;
  --tab-w:68px;
}
.diary-v39 .diary-shell{min-height:100dvh !important;height:100dvh !important;padding:var(--book-top-gap) 0 calc(var(--bottom-nav-h) + var(--book-bottom-gap)) !important;align-items:flex-start !important;overflow:hidden !important;}
.diary-v39 .diary-book{height:var(--book-h) !important;min-height:var(--book-h) !important;max-height:var(--book-h) !important;width:min(100vw,520px) !important;margin:0 auto !important;overflow:visible !important;}
.diary-v39 .book-spine{top:0 !important;bottom:0 !important;height:100% !important;}
.diary-v39 .diary-pages-stack{height:100% !important;min-height:100% !important;max-height:100% !important;width:calc(100% - var(--tab-w) - 22px) !important;max-width:calc(100% - var(--tab-w) - 22px) !important;margin-left:22px !important;margin-right:var(--tab-w) !important;border-radius:22px 24px 24px 22px !important;}
.diary-v39 .diary-sheet{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;min-height:100% !important;max-height:100% !important;border-radius:22px 24px 24px 22px !important;padding:18px 14px 20px 22px !important;box-sizing:border-box !important;}
.diary-v39 .diary-tabs{top:var(--tab-top) !important;bottom:var(--tab-bottom) !important;right:0 !important;width:var(--tab-w) !important;height:auto !important;max-height:none !important;display:flex !important;flex-direction:column !important;gap:0 !important;align-items:stretch !important;justify-content:stretch !important;overflow:visible !important;}
.diary-v39 .diary-tab{width:var(--tab-w) !important;height:auto !important;min-height:0 !important;max-height:none !important;flex:1 1 0 !important;border-radius:0 16px 16px 0 !important;margin:0 !important;box-sizing:border-box !important;display:flex !important;align-items:center !important;justify-content:center !important;transform:none !important;}
.diary-v39 .diary-tab + .diary-tab{margin-top:-1px !important;}
.diary-bottom-nav{height:34px !important;min-height:34px !important;max-height:34px !important;}
@media(max-width:430px){body.diary-v39{--bottom-nav-h:34px;--book-top-gap:8px;--book-bottom-gap:4px;--tab-w:68px;--tab-top:42px;--tab-bottom:6px;}.diary-v39 .diary-book{width:100vw !important;}.diary-v39 .diary-pages-stack{width:calc(100vw - var(--tab-w) - 22px) !important;max-width:calc(100vw - var(--tab-w) - 22px) !important;margin-left:22px !important;margin-right:var(--tab-w) !important;}.diary-v39 .diary-tab{font-size:20px !important;}}
@media(max-width:360px){body.diary-v39{--tab-w:62px;--tab-top:40px;--tab-bottom:6px;--bottom-nav-h:32px;}.diary-v39 .diary-pages-stack{width:calc(100vw - var(--tab-w) - 20px) !important;max-width:calc(100vw - var(--tab-w) - 20px) !important;margin-left:20px !important;margin-right:var(--tab-w) !important;}.diary-v39 .diary-tab{font-size:18px !important;}}

/* Arvoliis v61 - Álbum da família */
.album-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 14px}.album-stats div{background:white;border:1px solid var(--borda);border-radius:18px;padding:14px;text-align:center;box-shadow:var(--sombra)}.album-stats b{display:block;font-size:28px;color:#315537}.album-stats span{color:#607064}.album-filters{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px}.album-filter{border:1px solid var(--borda);background:#fff;border-radius:999px;padding:10px 16px;font-weight:700;color:#315537}.album-filter.active{background:var(--verde2)}.album-card{border:1px solid var(--borda);text-align:left;cursor:pointer;color:inherit;font:inherit}.album-card h3{margin:8px 0 4px}.album-card p{margin:0 0 6px;color:#3b4b40}.album-modal{position:fixed;inset:0;background:rgba(20,35,25,.72);z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}.album-modal[hidden]{display:none}.album-modal-content{background:white;border-radius:24px;padding:16px;max-width:min(760px,94vw);max-height:88vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.35)}.album-modal-content img,.album-modal-content video{width:100%;max-height:70vh;object-fit:contain;border-radius:18px;background:#fff}.album-close{position:fixed;right:18px;top:18px;width:46px;height:46px;border:0;border-radius:50%;background:white;font-size:34px;line-height:1;color:#315537;box-shadow:var(--sombra)}@media(max-width:520px){.album-stats{grid-template-columns:1fr 1fr}.album-stats div:first-child{grid-column:1/-1}}

/* Agenda Arvoliis: marcadores laterais numerados */
.agenda-page-arv .agenda-main-arv{max-width:1180px;width:95%;}
.agenda-top-arv h1{margin:0 0 6px;font-size:clamp(28px,5vw,44px);}
.agenda-month-arv{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--borda);border-radius:999px;padding:8px 10px;box-shadow:0 10px 25px rgba(42,74,50,.08);text-transform:capitalize;}
.month-arrow{width:38px;height:38px;border:0;border-radius:50%;background:var(--verde2);color:#315537;font-size:28px;line-height:1;cursor:pointer;font-weight:900;}
.agenda-book-arv{display:grid;grid-template-columns:92px 1fr;gap:0;align-items:start;}
.day-tabs-arv{position:sticky;top:18px;display:grid;gap:7px;max-height:calc(100vh - 40px);overflow:auto;padding:8px 0 8px 4px;z-index:2;}
.day-marker-arv{height:42px;width:88px;border:0;cursor:pointer;background:#fff7d8;color:#584218;border-radius:0 18px 18px 0;box-shadow:0 8px 18px rgba(76,60,20,.12);font-weight:900;font-size:19px;position:relative;text-align:right;padding-right:20px;transition:.18s transform,.18s filter,.18s background;}
.day-marker-arv:before{content:"";position:absolute;left:0;top:0;bottom:0;width:10px;background:#e7b84a;border-radius:0 8px 8px 0;}
.day-marker-arv span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.65);}
.day-marker-arv:hover{transform:translateX(5px);filter:saturate(1.08);}
.day-marker-arv.active{width:100px;background:#ffeaa0;color:#2f4a30;transform:translateX(10px);box-shadow:0 12px 28px rgba(111,163,107,.22);}
.day-marker-arv.active:before{background:#6fa36b;}
.day-marker-arv.has-items:after{content:"";position:absolute;right:8px;top:8px;width:9px;height:9px;border-radius:50%;background:#d14a4a;box-shadow:0 0 0 3px rgba(209,74,74,.12);}
.day-marker-arv.disabled{opacity:.35;cursor:not-allowed;filter:grayscale(.2);}
.day-panel-arv{min-height:calc(100vh - 120px);border-radius:0 28px 28px 28px;background:linear-gradient(180deg,#fffef9,#ffffff);}
.day-panel-head-arv{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px;}
.day-panel-head-arv h2{font-size:clamp(32px,6vw,52px);margin:8px 0 2px;}
.agenda-form-arv{display:grid;grid-template-columns:1fr 1.4fr .8fr auto;gap:12px;align-items:end;background:#f6fbf3;border:1px solid var(--borda);border-radius:24px;padding:14px;margin-bottom:18px;}
.agenda-form-arv .field input,.agenda-form-arv .field textarea,.agenda-form-arv .field select{width:100%;}
.agenda-notes-field{grid-column:1 / 4;}
.agenda-form-arv .btn{min-height:48px;align-self:end;}
.agenda-section-title-arv{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px;}
.agenda-section-title-arv h3{margin:0;font-size:22px;}
.day-items-arv{display:grid;gap:12px;}
.day-item-arv{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--borda);border-radius:20px;padding:13px;box-shadow:0 10px 24px rgba(42,74,50,.07);}
.day-item-icon-arv{width:46px;height:46px;border-radius:16px;background:var(--verde2);display:flex;align-items:center;justify-content:center;font-size:24px;flex:0 0 auto;}
.day-item-info-arv{flex:1;min-width:0;}
.day-item-info-arv strong{display:block;font-size:17px;}
.day-item-info-arv p{margin:4px 0 0;color:#657366;line-height:1.35;}
.mini-delete-arv{border:0;border-radius:999px;background:#fff0f0;color:#9b3535;padding:9px 12px;font-weight:800;cursor:pointer;}
.empty-state{padding:18px;border-radius:18px;background:#f6fbf3;border:1px dashed var(--borda);color:#617064;text-align:center;}
.bottom-nav a.active{color:#315537;font-weight:900;}
@media(max-width:820px){
  .agenda-book-arv{grid-template-columns:62px 1fr;}
  .day-tabs-arv{top:8px;max-height:calc(100svh - 104px);padding-top:2px;}
  .day-marker-arv{width:58px;height:39px;font-size:17px;border-radius:0 15px 15px 0;padding-right:8px;}
  .day-marker-arv span{width:27px;height:27px;}
  .day-marker-arv.active{width:67px;transform:translateX(5px);}
  .day-panel-arv{padding:16px;border-radius:0 24px 24px 24px;min-height:calc(100svh - 130px);}
  .agenda-form-arv{grid-template-columns:1fr;}
  .agenda-notes-field{grid-column:auto;}
  .day-panel-head-arv{flex-direction:column;}
  .day-panel-head-arv .btn{width:100%;}
  .day-item-arv{align-items:flex-start;}
  .mini-delete-arv{align-self:center;}
}
@media(max-width:480px){
  .agenda-page-arv .agenda-main-arv{padding:12px 8px 92px;}
  .agenda-top-arv{gap:8px;margin-bottom:10px;}
  .agenda-month-arv{width:100%;justify-content:space-between;}
  .agenda-book-arv{grid-template-columns:54px 1fr;}
  .day-marker-arv{width:51px;padding-right:6px;}
  .day-marker-arv.active{width:60px;}
  .day-panel-head-arv h2{font-size:36px;}
  .day-item-arv{display:grid;grid-template-columns:42px 1fr;}
  .mini-delete-arv{grid-column:1 / 3;width:100%;}
}

/* Agenda v102 - marcadores menores na lateral direita + edição completa */
.agenda-page-arv .agenda-top-arv h1{margin:0;font-size:clamp(30px,6vw,46px);}
.agenda-page-arv .agenda-top-arv .muted{display:none;}
.agenda-page-arv .agenda-book-arv{grid-template-columns:1fr 64px;gap:0;align-items:start;}
.agenda-page-arv .day-tabs-arv{grid-column:2;grid-row:1;position:sticky;top:12px;display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 36px);overflow:auto;padding:6px 3px 6px 0;z-index:3;align-items:flex-end;}
.agenda-page-arv .day-panel-arv{grid-column:1;grid-row:1;border-radius:28px 0 28px 28px;min-width:0;}
.agenda-page-arv .day-marker-arv{width:56px;height:33px;border-radius:16px 0 0 16px;text-align:left;padding-left:7px;padding-right:0;font-size:14px;box-shadow:0 6px 14px rgba(76,60,20,.10);}
.agenda-page-arv .day-marker-arv:before{left:auto;right:0;width:7px;border-radius:7px 0 0 7px;}
.agenda-page-arv .day-marker-arv span{width:25px;height:25px;font-size:13px;}
.agenda-page-arv .day-marker-arv:hover{transform:translateX(-4px);}
.agenda-page-arv .day-marker-arv.active{width:64px;transform:translateX(-7px);background:#ffeaa0;}
.agenda-page-arv .day-marker-arv.has-items:after{right:auto;left:5px;top:5px;width:7px;height:7px;}
.agenda-page-arv .day-actions-arv{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.agenda-page-arv .mini-edit-arv{border:0;border-radius:999px;background:#eef7e8;color:#315537;padding:9px 12px;font-weight:800;cursor:pointer;}
.agenda-page-arv .agenda-form-arv .btn.editing{background:#e7b84a;color:#3b2d11;}
@media(max-width:820px){
  .agenda-page-arv .agenda-book-arv{grid-template-columns:1fr 50px;}
  .agenda-page-arv .day-marker-arv{width:45px;height:31px;font-size:12px;border-radius:14px 0 0 14px;padding-left:5px;}
  .agenda-page-arv .day-marker-arv span{width:23px;height:23px;font-size:12px;}
  .agenda-page-arv .day-marker-arv.active{width:52px;transform:translateX(-5px);}
  .agenda-page-arv .day-panel-arv{border-radius:24px 0 24px 24px;}
  .agenda-page-arv .day-actions-arv{grid-column:1 / -1;justify-content:stretch;}
  .agenda-page-arv .mini-edit-arv,.agenda-page-arv .mini-delete-arv{flex:1;text-align:center;}
}
@media(max-width:480px){
  .agenda-page-arv .agenda-book-arv{grid-template-columns:1fr 42px;}
  .agenda-page-arv .day-tabs-arv{max-height:calc(100svh - 96px);}
  .agenda-page-arv .day-marker-arv{width:38px;height:29px;padding-left:4px;}
  .agenda-page-arv .day-marker-arv span{width:21px;height:21px;font-size:11px;}
  .agenda-page-arv .day-marker-arv.active{width:44px;}
  .agenda-page-arv .day-panel-arv{padding:14px;}
  .agenda-page-arv .day-item-arv{grid-template-columns:38px 1fr;}
}

/* ARVOLIIS V148 - avisos de publicações conectadas */
.arv-notice-row{display:grid;gap:5px;padding:14px 16px;border-radius:20px;background:#f4fbf4;border:1px solid #dceadd;color:#17472b;text-decoration:none;box-shadow:0 8px 18px rgba(20,80,43,.08)}
.arv-notice-row strong{font-size:16px}
.arv-notice-row span{color:#52665b;line-height:1.35}
.arv-notice-row small{color:#7a887f}
.arv-notice-row.is-new{background:#fff7d7;border-color:#f0d88a}
.arv-notice-row.is-new::before{content:"Novo";justify-self:start;background:#137344;color:white;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800}


/* =========================================================
   ARVOLIIS V149 - cestinha no lugar correto
   Fixa o botão junto da lateral de marcadores, não no rodapé.
   ========================================================= */
body.arv-diario-novo-body .arv-bottom-nav .arv-basket-toggle,
body.arv-diario-novo-body .arv-bottom-nav .arv-marker-toggle{
  position:fixed !important;
  left:auto !important;
  right:12px !important;
  top:92px !important;
  bottom:auto !important;
  z-index:10050 !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:column !important;
  border-radius:18px !important;
  margin:0 !important;
  border:2px solid rgba(255,255,255,.92) !important;
  background:#111 !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(0,0,0,.22) !important;
  transform:none !important;
  pointer-events:auto !important;
  font-size:25px !important;
}
body.arv-diario-novo-body .arv-bottom-nav .arv-basket-toggle span,
body.arv-diario-novo-body .arv-bottom-nav .arv-marker-toggle span{display:none !important;}
body.arv-diario-novo-body .arv-bottom-nav .arv-basket-toggle::after,
body.arv-diario-novo-body .arv-bottom-nav .arv-marker-toggle::after{
  content:"↔" !important;
  font-size:18px !important;
  line-height:1 !important;
  margin-top:-3px !important;
  opacity:.95 !important;
}
body.arv-diario-novo-body.arv-hide-markers .arv-bottom-nav .arv-basket-toggle,
body.arv-diario-novo-body.arv-hide-markers .arv-bottom-nav .arv-marker-toggle{background:#0f6b3a !important;}
@media(max-width:420px){
  body.arv-diario-novo-body .arv-bottom-nav .arv-basket-toggle,
  body.arv-diario-novo-body .arv-bottom-nav .arv-marker-toggle{
    right:10px !important;
    top:86px !important;
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
    min-height:50px !important;
    border-radius:17px !important;
  }
}
