/* V65.3 — IMPETUS Executive Experience
   Camada visual sobre a V65.2.2. Não altera regras de negócio. */
:root{
  --exec-ink:#171714;--exec-muted:#66645e;--exec-paper:#f5f3ee;--exec-white:#fff;
  --exec-gold:#b8860b;--exec-gold-2:#d7af3c;--exec-line:#ddd8ce;
  --exec-green:#18724a;--exec-red:#a72b35;
  --exec-shadow:0 18px 50px rgba(48,39,19,.09);
  --exec-shadow-hover:0 26px 65px rgba(69,51,12,.15)
}
body{background:
  radial-gradient(circle at 95% 4%,rgba(215,175,60,.12),transparent 24rem),
  linear-gradient(180deg,#fbfaf7 0,#f2f0ea 100%);color:var(--exec-ink)}

/* Barra de comando: aparência de aplicativo, não de página/planilha */
.app-header{height:82px;min-height:82px;border-bottom:1px solid rgba(179,151,82,.3);box-shadow:0 10px 35px rgba(44,35,15,.07)}
.brand-mark{border-radius:15px;background:linear-gradient(145deg,#171714,#3a311d);color:#f3c64f;border:1px solid #b78a16;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 9px 24px rgba(72,52,9,.16)}
.app-header .brand{color:#171714;letter-spacing:.12em}.app-header .brand small{color:#777269;letter-spacing:.2em}
.quick-link,.nav-menu summary,.user-menu summary,.year-switcher{border-radius:14px!important;min-height:46px;transition:.2s ease}
.quick-link:hover,.nav-menu summary:hover,.user-menu summary:hover,.year-switcher:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(93,67,9,.1)}
.year-switcher{border-color:#d4c7a4;background:linear-gradient(145deg,#fff,#fbf4df)}
.year-switcher:before{content:"◷";color:#9a7005;font-size:16px}.year-switcher select{color:#171714}
.nav-drawer{border-radius:20px;overflow:hidden}.nav-groups{gap:1px;background:#e4dfd4}.nav-groups section{padding:20px}
.nav-groups h3{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.13em}.nav-groups h3:before{content:"";width:7px;height:7px;border-radius:50%;background:linear-gradient(145deg,#e1bb4b,#9f7205)}
.nav-groups a{border-radius:10px;padding:10px 11px!important;transition:.17s ease}.nav-groups a:hover{padding-left:15px!important}

/* Cabeçalho editorial */
main{width:min(1440px,94vw);padding-top:48px}.page-head{position:relative;padding:8px 0 30px;margin-bottom:30px}.page-head:after{content:"";position:absolute;bottom:-1px;left:0;width:92px;height:3px;border-radius:10px;background:linear-gradient(90deg,#9b6c00,#e0bd59)}
.page-head h1{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:clamp(34px,4vw,58px);line-height:1.03;letter-spacing:-.052em;max-width:900px}.page-head p{max-width:820px;font-size:16px}.eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.18em;font-weight:900}.eyebrow:before{content:"";width:22px;height:2px;background:#ba8a11}

/* Cartões com hierarquia e profundidade */
.panel,.module,.metric{position:relative;border-color:rgba(191,180,157,.62);background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,248,243,.98));box-shadow:0 1px 0 #fff,var(--exec-shadow);overflow:hidden}
.panel{border-radius:22px;padding:30px}.panel:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,#dfbd56,#9b7005);opacity:.78}
.module{border-radius:21px;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.module-link:hover,.metric:hover{transform:translateY(-4px);box-shadow:var(--exec-shadow-hover)}
.module h2{font-size:21px;letter-spacing:-.02em}.module>span{display:inline-flex;align-items:center;gap:7px}.module>span:after{content:"\2192";transition:transform .2s ease}.module:hover>span:after{transform:translateX(4px)}
.metrics{gap:18px}.metric{border:0;border-top:0;border-radius:20px;min-height:132px;padding:24px}.metric:before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,#9f7106,#dfbe58 68%,transparent)}
.metric strong{font-size:36px;letter-spacing:-.045em}.metric span{letter-spacing:.01em}.metric small{color:#77736b!important}

/* Formulários confortáveis e inclusivos */
label{font-size:14px;color:#24231f!important}input,select,textarea{min-height:52px;border:1px solid #d1ccc2;border-radius:13px;background:#fff;color:#171714;font-size:16px;transition:border .18s ease,box-shadow .18s ease}
input:focus,select:focus,textarea:focus{border-color:#a87700;box-shadow:0 0 0 4px rgba(184,134,11,.13),0 8px 24px rgba(81,60,12,.07)}
button,.button{min-height:48px;padding:12px 20px;border-radius:13px;background:linear-gradient(135deg,#e2ba47 0,#bd8a0c 48%,#8f6200 100%);color:#18130a;box-shadow:0 10px 24px rgba(139,98,0,.2);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
button:hover,.button:hover{transform:translateY(-2px);filter:saturate(1.07);box-shadow:0 15px 31px rgba(139,98,0,.25)}
.secondary{background:linear-gradient(145deg,#fff,#f9f6ed);color:#5f4505;border-color:#c99d2b}.danger-button{background:linear-gradient(135deg,#cb555e,#94232d);color:#fff}

/* Listagens: deixam de parecer planilha */
.table-wrap{border:1px solid #ded9cf;border-radius:18px;box-shadow:0 13px 34px rgba(47,38,18,.06);overflow:auto}
table{border-collapse:separate;border-spacing:0}th{height:52px;background:linear-gradient(180deg,#f2eee4,#e8e1d2);color:#6e4f05;font-size:11px;letter-spacing:.09em;position:sticky;top:0;z-index:2}td{padding-top:16px!important;padding-bottom:16px!important;color:#282722;border-color:#ece8df}tbody tr{transition:background .15s ease,box-shadow .15s ease}tbody tr:nth-child(even){background:#fdfcf9}tbody tr:hover{background:#fff8e8;box-shadow:inset 4px 0 #c89b26}
.badge{border-radius:999px;padding:6px 10px;font-weight:800}.badge.ok{background:#e2f3e9;color:#12623d}.badge.danger{background:#f8e4e6;color:#922630}
.empty-state{border-radius:17px;padding:36px;background:linear-gradient(145deg,#fcfbf8,#f5f1e7)}

/* Navegação secundária como seletor de módulo */
.nav-tabs{gap:5px;padding:7px;border-radius:16px}.nav-tabs a{border-radius:10px;padding:10px 14px}.nav-tabs a:hover,.nav-tabs a.active{background:linear-gradient(145deg,#f8edcf,#eee0b9)!important;color:#594000!important}
.success,.alert{border-radius:15px;padding:17px 20px;box-shadow:0 8px 22px rgba(40,35,22,.05)}

/* Login executivo */
.center{background:radial-gradient(circle at 78% 18%,rgba(222,184,72,.2),transparent 24rem),linear-gradient(135deg,#f9f8f4,#eae6dd)}
.auth-card{width:min(540px,100%);padding:52px;border-radius:28px;border:1px solid #d7cfbd;border-top:0;box-shadow:0 42px 100px rgba(49,37,12,.2)}
.auth-card:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#7d5600,#e7c75e,#8b6100)}
.auth-card .mark{background:linear-gradient(145deg,#1b1a16,#40361f)!important;color:#f2c650!important;border-color:#b98b16!important}
.auth-card h1{font-size:clamp(40px,5vw,58px)!important}.auth-card button{min-height:54px}

/* Foco visível para teclado e acessibilidade */
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(184,134,11,.38);outline-offset:3px}

@media(max-width:1050px){.app-header{height:74px;min-height:74px}.page-head h1{font-size:42px}}
@media(max-width:700px){main{width:92vw;padding-top:28px}.page-head h1{font-size:34px}.panel{padding:22px 20px}.metric{min-height:112px;padding:19px}.metric strong{font-size:30px}.auth-card{padding:39px 27px}.year-switcher:before{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.app-header,.nav-tabs,.page-head .button{display:none!important}.panel,.table-wrap{box-shadow:none!important}}

/* V65.3.1 — acabamento Signature e correção definitiva da rolagem */
.app-header{background:linear-gradient(105deg,#11120f 0%,#1c1a13 62%,#2a220f 100%)!important;border-bottom:1px solid #8f6a12!important;box-shadow:0 12px 38px rgba(21,17,8,.22)!important}
.app-header .brand{color:#f2bd32!important}.app-header .brand small{color:#d8d3c8!important}.brand-mark{background:linear-gradient(145deg,#f0c955,#a77806)!important;color:#15120b!important;border-color:#f0ca61!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.48),0 10px 28px rgba(0,0,0,.3)!important}
.app-header .quick-link,.app-header .nav-menu>summary,.app-header .user-menu>summary{background:rgba(255,255,255,.07)!important;border-color:rgba(234,198,92,.28)!important;color:#fff!important}.app-header .quick-link:hover,.app-header .nav-menu>summary:hover,.app-header .user-menu>summary:hover{background:rgba(224,180,55,.16)!important;border-color:#c99b24!important}.app-header .menu-icon{color:#efbd38!important}.app-header .user-summary strong{color:#fff!important}.app-header .user-summary small{color:#c9c4b8!important}
.app-header .year-switcher{background:rgba(255,255,255,.075)!important;border-color:rgba(231,194,83,.3)!important}.app-header .year-switcher span{color:#d8d0be!important}.app-header .year-switcher select{color:#f4c448!important;background-color:transparent!important}.app-header .year-switcher select option{color:#171714;background:#fff}
.nav-drawer{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bd8c12 #eee9df;max-height:calc(100vh - 105px)!important;background:#fff!important}
.nav-drawer::-webkit-scrollbar{width:10px}.nav-drawer::-webkit-scrollbar-track{background:#eee9df;border-radius:0 18px 18px 0}.nav-drawer::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#e3bd50,#9e7004);border:2px solid #eee9df;border-radius:99px}
.nav-drawer-head{position:sticky;top:0;z-index:4;background:linear-gradient(105deg,#181712,#292311)!important;border-bottom:1px solid #b58b24!important}.nav-drawer-head strong{color:#f3c54a!important}.nav-drawer-head span{color:#eee8db!important}.nav-groups{overflow:visible!important;background:#e5dfd3!important}.nav-groups section{background:linear-gradient(160deg,#fff 0%,#faf8f2 100%)!important}.nav-groups section:hover{background:#fffdf8!important}.nav-groups h3{color:#7d5900!important}.nav-groups a{color:#20201d!important;border-left:3px solid transparent}.nav-groups a:hover,.nav-groups a:focus{border-left-color:#c49318!important;background:linear-gradient(90deg,#f3e4b7,#fff8e8)!important;color:#171714!important}
.user-popover{overflow:hidden;background:#fff!important}.user-popover:before{content:"";display:block;height:4px;background:linear-gradient(90deg,#8b6100,#e2bd53,#8b6100)}
body:before{content:"";position:fixed;inset:82px 0 auto;height:1px;background:linear-gradient(90deg,transparent,#d2ae4f88,transparent);pointer-events:none;z-index:2}
.page-head{background:linear-gradient(115deg,rgba(255,255,255,.72),rgba(255,250,235,.42));border:1px solid rgba(206,193,163,.55)!important;border-radius:24px;padding:30px 32px!important;box-shadow:0 22px 65px rgba(47,38,17,.07)}.page-head:before{content:"";position:absolute;inset:0 auto 0 0;width:6px;border-radius:24px 0 0 24px;background:linear-gradient(180deg,#f1ce67,#9b6c00)}.page-head:after{left:32px;bottom:20px;width:64px}.page-head h1{margin-top:8px}.page-head .button{align-self:center}
.grid{gap:20px}.module{min-height:190px;padding:26px!important}.module:before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,#8f6500,#e8c75f 55%,transparent)}.module:nth-child(3n+2):before{background:linear-gradient(90deg,#1c1b17,#d6ad39 75%,transparent)}.module h2{margin-top:30px}.module-link:hover{transform:translateY(-6px) scale(1.008)!important}
.panel>h2:first-child,.panel>h3:first-child{display:flex;align-items:center;gap:12px}.panel>h2:first-child:before,.panel>h3:first-child:before{content:"";width:5px;height:26px;border-radius:9px;background:linear-gradient(180deg,#e1bd54,#956800)}
.metric{background:linear-gradient(150deg,#fff 0%,#f7f2e6 100%)!important}.metric strong{color:#171714!important}.metric:after{content:"";position:absolute;width:86px;height:86px;right:-27px;bottom:-35px;border-radius:50%;background:radial-gradient(circle,rgba(206,164,45,.19),transparent 70%)}
.table-wrap{border-top:4px solid #bd8e18!important}th{background:linear-gradient(180deg,#27241a,#171713)!important;color:#f1c54c!important;border-color:#3b3526!important}tbody tr:nth-child(even){background:#f8f6f0!important}tbody tr:hover{background:#fff3cf!important}
button,.button{background-size:160% 160%!important}button:hover,.button:hover{background-position:100% 50%!important}.secondary{background:linear-gradient(145deg,#fff,#f4ead0)!important;color:#5f4300!important}
@media(max-width:760px){.nav-drawer{overflow-y:auto!important;max-height:calc(100dvh - 88px)!important}.page-head{padding:23px 21px!important}.page-head:after{left:21px}.module{min-height:155px}}

/* V65.3.2 — menu completo, lateral e rolável em qualquer resolução */
.nav-menu{position:static!important}.nav-drawer{position:fixed!important;top:94px!important;right:max(18px,3vw)!important;bottom:18px!important;left:auto!important;width:min(920px,94vw)!important;height:auto!important;max-height:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border:1px solid #c9b06c!important;border-radius:22px!important;box-shadow:0 35px 110px rgba(22,18,8,.33)!important;z-index:1000!important}
.nav-drawer-head{flex:0 0 auto!important}.nav-groups{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-content:start!important;flex:1 1 auto!important;min-height:0!important;overflow-y:scroll!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;scrollbar-width:auto!important;scrollbar-color:#b98408 #eee8db!important;padding:1px 0 22px!important}
.nav-groups::-webkit-scrollbar{display:block!important;width:14px!important}.nav-groups::-webkit-scrollbar-track{background:#eee8db!important}.nav-groups::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#efca62,#a36f00)!important;border:3px solid #eee8db!important;border-radius:99px!important}
.nav-groups section{height:max-content!important;min-height:100%!important}.nav-groups section:last-of-type{padding-bottom:36px!important}.nav-groups h3{position:sticky;top:0;z-index:2;padding:8px 0;background:linear-gradient(180deg,#fff 75%,rgba(255,255,255,0))!important}
@media(max-width:1050px){.nav-drawer{top:84px!important}.nav-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.nav-drawer{top:76px!important;right:10px!important;bottom:10px!important;left:10px!important;width:auto!important}.nav-groups{grid-template-columns:1fr!important}.nav-groups section{min-height:auto!important}.nav-groups h3{position:static}}


/* V65.3.3 — Central de Navegação */
.executive-menu-button{display:inline-flex!important;align-items:center;gap:9px;min-height:46px;padding:0 16px;border:1px solid rgba(234,198,92,.34);border-radius:14px;background:rgba(255,255,255,.08);color:#fff!important;text-decoration:none;font-weight:800;transition:.2s}.executive-menu-button:hover{transform:translateY(-1px);background:rgba(224,180,55,.18);border-color:#d0a02a}.executive-menu-button .menu-icon{color:#efbd38}
.executive-search{position:sticky;top:96px;z-index:8;margin:-4px 0 28px;padding:18px 20px;border:1px solid #d8cfbd;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 16px 42px rgba(41,32,13,.1);backdrop-filter:blur(16px)}.executive-search label{display:block;margin:0 0 7px;color:#735100!important;font-size:11px;letter-spacing:.11em;text-transform:uppercase}.executive-search input{width:100%;margin:0;padding-left:18px;font-size:17px}
.executive-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.executive-menu-card{border:1px solid #d9d1c1;border-radius:22px;background:linear-gradient(145deg,#fff,#f8f5ed);box-shadow:0 18px 48px rgba(43,34,14,.08);overflow:hidden}.executive-card-head{display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:13px;padding:21px 22px;border-bottom:1px solid #e5dfd3;background:linear-gradient(110deg,#1a1914,#302813)}.executive-card-head>span{width:7px;height:31px;border-radius:9px;background:linear-gradient(180deg,#f0cb65,#9c6d00)}.executive-card-head h2{margin:0;color:#fff!important;font-size:20px}.executive-card-head small{color:#d9c889!important;font-size:11px}.executive-card-links{padding:9px}.executive-card-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:12px;color:#222!important;text-decoration:none;font-weight:700;transition:.18s}.executive-card-links a+ a{border-top:1px solid #eee9df}.executive-card-links a:hover{padding-left:19px;background:linear-gradient(90deg,#f1e3b9,#fff8e7);color:#664800!important}.executive-card-links b{color:#a67500;font-size:19px}.executive-no-result{margin-top:22px}
@media(max-width:900px){.executive-menu-grid{grid-template-columns:1fr}.executive-search{top:80px}}@media(max-width:700px){.executive-menu-button span:last-child{display:none}.executive-menu-button{padding:0 13px}.executive-menu-head{display:block}.executive-menu-head .button{margin-top:18px}.executive-search{position:static}}


/* V65.3.4 — somente um botão Menu */
.app-header .nav-menu{display:none!important}
.executive-menu-button span:last-child{display:inline!important}
@media(max-width:700px){.executive-menu-button span:last-child{display:inline!important}.executive-menu-button{padding:0 14px!important}}


/* V65.3.5 — perfis separados e experiência familiar */
.hidden-year-switcher{display:none!important}.family-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:24px;padding:32px;border:1px solid #d9cfb8;border-radius:25px;background:linear-gradient(120deg,#191813 0,#2b2413 64%,#8d6709 160%);box-shadow:0 25px 70px rgba(35,28,12,.18)}.family-hero h1{margin:7px 0;color:#fff!important;font-size:clamp(37px,5vw,62px);letter-spacing:-.05em}.family-hero p:not(.eyebrow){max-width:720px;color:#e6e1d6!important}.family-student-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 20px}.family-student-switch span{font-weight:850;color:#6f5107}.family-student-switch a{padding:9px 13px;border:1px solid #d6cbaF;border-radius:12px;background:#fff;color:#24231f;text-decoration:none;font-weight:700}.family-student-switch a.active{background:#211e15;color:#f2c34a;border-color:#b88914}.student-identity-card{display:flex;align-items:center;gap:17px;margin-bottom:20px;padding:22px 25px;border:1px solid #ded8cc;border-radius:20px;background:#fff;box-shadow:0 14px 35px rgba(45,36,17,.07)}.student-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#e5bf50,#9b6b00);color:#17120a;font-size:25px;font-weight:950}.student-identity-card span{color:#866000;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.student-identity-card h2{margin:2px 0}.student-identity-card p{margin:0}.evolution-spotlight{display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;margin:20px 0;padding:30px;border:1px solid #d7c58f;border-radius:23px;background:radial-gradient(circle at 90% 0,rgba(225,186,73,.2),transparent 25%),linear-gradient(145deg,#fffdf7,#f4ecda);box-shadow:0 20px 55px rgba(63,47,10,.1)}.evolution-spotlight h2{font-size:27px;margin:8px 0}.evolution-line{height:13px;margin:18px 0 9px;border-radius:99px;background:#ded9ce;overflow:hidden}.evolution-line i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9c6d00,#edca65,#138653)}.evolution-spotlight strong{color:#5f5540}.family-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.family-metrics article{padding:19px;border:1px solid #ddd7ca;border-radius:18px;background:#fff;box-shadow:0 10px 27px rgba(42,34,17,.06)}.family-metrics span{display:block;color:#68645b;font-size:13px;font-weight:700}.family-metrics strong{display:block;margin-top:7px;color:#8b6200;font-size:31px}.family-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.family-actions>a{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:15px;padding:22px;border:1px solid #dcd6ca;border-radius:20px;background:linear-gradient(145deg,#fff,#faf8f2);color:#20201d;text-decoration:none;box-shadow:0 13px 36px rgba(44,35,16,.07);transition:.2s}.family-actions>a:hover{transform:translateY(-3px);border-color:#bd8b10;box-shadow:0 20px 46px rgba(69,51,10,.13)}.family-actions b{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#211e15;color:#f0c34b}.family-actions h2{margin:0 0 4px;font-size:19px}.family-actions p{margin:0;font-size:14px}.family-actions>a>span{color:#a77500;font-size:22px}
@media(max-width:850px){.family-metrics{grid-template-columns:repeat(2,1fr)}.family-actions{grid-template-columns:1fr}.evolution-spotlight{grid-template-columns:1fr}.family-hero{display:block}.family-hero .button{margin-top:17px}}
