/* ===== Navegação (paleta sage) ===== */
.gg-nav-wrap{position:fixed;top:14px;left:0;right:0;display:flex;justify-content:center;z-index:200;pointer-events:none;view-transition-name:app-nav}
.gg-nav{pointer-events:auto;position:relative;display:flex;align-items:center;height:48px;border-radius:999px;border:1px solid #e8e6e1;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 8px 28px rgba(26,31,46,.10);overflow:hidden;transition:width .45s cubic-bezier(.2,.8,.2,1),box-shadow .2s;font-family:Inter,system-ui,sans-serif}
.gg-nav[data-state=collapsed]{cursor:pointer}.gg-nav[data-state=collapsed]:hover{box-shadow:0 10px 30px rgba(26,31,46,.18);transform:scale(1.06)}
.gg-nav-logo,.gg-nav-items,.gg-nav-tools{transition:opacity .25s,transform .35s cubic-bezier(.2,.8,.2,1);flex:none}
.gg-nav-logo{display:flex;padding:0 4px 0 9px}.gg-nav-logo img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.gg-nav-items{display:flex;gap:2px;padding:0 6px;white-space:nowrap}
.gg-nav-items a{padding:7px 12px;border-radius:999px;font-size:13px;font-weight:500;color:#6b7280;text-decoration:none;transition:background .15s,color .15s,opacity .3s,transform .3s}
.gg-nav-items a:hover{background:#f1efea;color:#1a1f2e}.gg-nav-items a.on{background:#bfc9bb;color:#1a1f2e}
.gg-nav-tools{display:flex;align-items:center;gap:2px;padding:0 8px 0 6px;margin-left:2px;border-left:1px solid #e8e6e1}
.gg-nav-tools form{display:flex;margin:0}
.gg-nav-tools button{width:34px;height:34px;border-radius:50%;border:0;background:none;color:#6b7280;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s,color .15s}
.gg-nav-tools button:hover{background:#f1efea;color:#1a1f2e}
.gg-nav-dot{position:absolute;inset:0;border:0;background:none;color:#1a1f2e;display:grid;place-items:center;opacity:0;pointer-events:none;cursor:pointer;transition:opacity .25s .15s}
.gg-nav[data-state=collapsed] .gg-nav-logo,.gg-nav[data-state=collapsed] .gg-nav-items,.gg-nav[data-state=collapsed] .gg-nav-tools{opacity:0;pointer-events:none;transform:translateX(-16px)}
.gg-nav[data-state=collapsed] .gg-nav-dot{opacity:1;pointer-events:auto}
.mobile-nav,.menu-btn,.gg-sheet{display:none}
@media(min-width:1024px){
  .app-shell{display:block}
  .app-content{padding-top:76px}
  .topbar,.topbar.mod-top{position:static!important}
}
@media(max-width:1023px){
  .gg-nav-wrap{display:none}
  .menu-btn{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid #e8e6e1;background:#fff;color:#1a1f2e;cursor:pointer;padding:0;flex:none}
  .app-shell{display:block}.app-content{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  /* barra inferior: 4 módulos + "+" no centro */
  .mobile-nav{display:grid;grid-template-columns:1fr 1fr 74px 1fr 1fr;align-items:end;position:fixed;left:0;right:0;bottom:0;z-index:120;background:#fff;border-top:1px solid #e8e6e1;padding:6px 6px calc(6px + env(safe-area-inset-bottom));overflow:visible}
  .mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 5px;border-radius:12px;color:#6b7280;font:500 10.5px/1.1 Inter,system-ui,sans-serif;text-decoration:none;text-align:center}
  .mobile-nav a svg{width:22px;height:22px}
  .mobile-nav a.on{background:#e3e8df;color:#1a1f2e}
  .mobile-nav a.mob-plus{width:56px;height:56px;margin:-26px auto 6px;padding:0;border-radius:50%;background:#1a1f2e;color:#fff;align-items:center;justify-content:center;border:4px solid #f8f7f4;box-shadow:0 8px 20px rgba(26,31,46,.3)}
  .mobile-nav a.mob-plus svg{width:26px;height:26px}
  /* menu suspenso */
  .gg-sheet{position:fixed;inset:0;z-index:300}.gg-sheet:not([hidden]){display:block}
  .gg-sheet-bg{position:absolute;inset:0;background:rgba(26,31,46,.45);opacity:0;transition:opacity .25s}
  .gg-sheet-panel{position:absolute;top:0;bottom:0;left:0;width:min(310px,84vw);background:#fff;display:flex;flex-direction:column;padding:16px 14px calc(16px + env(safe-area-inset-bottom));transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:8px 0 40px rgba(26,31,46,.2);font-family:Inter,system-ui,sans-serif}
  .gg-sheet.open .gg-sheet-bg{opacity:1}.gg-sheet.open .gg-sheet-panel{transform:none}
  .gg-sheet-head{display:flex;align-items:center;gap:10px;padding:2px 4px 14px;border-bottom:1px solid #e8e6e1;margin-bottom:10px}
  .gg-sheet-head img{width:38px;height:38px;border-radius:50%}.gg-sheet-head div{display:grid;min-width:0;flex:1}.gg-sheet-head strong{font-size:15px}.gg-sheet-head small{color:#6b7280;font-size:12px;overflow:hidden;text-overflow:ellipsis}
  .gg-sheet-x{border:0;background:#f1efea;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#1a1f2e;cursor:pointer;padding:0}
  .gg-sheet nav{display:grid;gap:2px;overflow:auto;flex:1;align-content:start}
  .gg-sheet nav a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;color:#1a1f2e;text-decoration:none;font-size:15px;font-weight:500}
  .gg-sheet nav a svg{width:20px;height:20px;color:#6b7280}.gg-sheet nav a.on{background:#e3e8df}.gg-sheet nav a.on svg{color:#1a1f2e}
  .gg-sheet form{margin:8px 0 0}.gg-sheet-out{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e8e6e1;border-radius:12px;background:#fff;color:#c73e3a;font:500 15px Inter,system-ui,sans-serif;cursor:pointer}
  body.no-scroll{overflow:hidden}
}
/* ===== Identificação do controle (Pai, Mãe...) ===== */
.gg-profile{position:relative;font-family:Inter,system-ui,sans-serif}
.gg-profile.desk{position:fixed;top:14px;right:18px;z-index:210}
.gg-profile.mob{display:none}
.gg-profile-btn{display:flex;align-items:center;gap:9px;height:48px;padding:0 14px 0 12px;border-radius:999px;border:1px solid #e8e6e1;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 8px 28px rgba(26,31,46,.10);cursor:pointer;color:#1a1f2e;font:inherit}
.gg-profile-btn i,.gg-profile-menu i,.dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.gg-profile-btn span{display:grid;line-height:1.15;text-align:left}.gg-profile-btn small{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#6b7280}.gg-profile-btn b{font-size:13px;font-weight:650}
.gg-profile-btn svg{color:#6b7280}
.gg-profile-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:#fff;border:1px solid #e8e6e1;border-radius:16px;padding:8px;box-shadow:0 18px 50px rgba(26,31,46,.18);z-index:260}
.gg-profile-menu[hidden]{display:none}
.gg-profile-menu p{margin:0;padding:6px 10px;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#6b7280}
.gg-profile-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;background:none;border-radius:10px;font:500 14px Inter,system-ui,sans-serif;color:#1a1f2e;cursor:pointer;text-align:left}
.gg-profile-menu button:hover{background:#f1efea}.gg-profile-menu button.on{background:#e3e8df}.gg-profile-menu em{margin-left:auto;font-style:normal;color:#5d7264}
.gg-profile-menu a{display:block;margin-top:6px;padding:10px 10px 6px;border-top:1px solid #e8e6e1;color:#5d7264;font-size:13px;font-weight:600;text-decoration:none}
@media(max-width:1199px){.gg-profile.desk{display:none}.gg-profile.mob{display:block;margin-left:12px}.gg-profile.mob .gg-profile-btn{height:38px;padding:0 10px 0 10px;box-shadow:none;background:#fff}}
@media(max-width:820px){.gg-profile.mob{order:2;margin-left:auto}.topbar .page-title{flex:0 1 auto}}
.admin-list{display:grid;gap:16px;align-content:start}
.permission-presets .dot{margin:0 2px}
