:root{
  --if-green:#2f9e2f;
  --if-green-dark:#137a28;
  --if-red:#d6000f;
  --if-blue:#1687bd;
  --if-blue-dark:#0b4f71;
  --if-ink:#241a14;
  --if-bg:#f4f7fb;
  --if-line:#d7dee9;
  --radius:22px;
}
*{box-sizing:border-box}
body{background:var(--if-bg);color:#17202a;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;}
.fw-black{font-weight:900}.tracking{letter-spacing:.05em}.brand-top{background:linear-gradient(90deg,#0a547a,#1687bd);box-shadow:0 10px 30px rgba(0,0,0,.15);position:sticky;top:0;z-index:1000}.brand-logo{height:48px;max-width:280px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))}.navbar .nav-link{color:#fff;font-weight:800;text-transform:uppercase;font-size:.86rem;letter-spacing:.04em}.navbar .nav-link:hover{color:#dfffe4}.btn-if{background:linear-gradient(135deg,var(--if-green),var(--if-green-dark));color:#fff;border:none;font-weight:800;box-shadow:0 10px 22px rgba(47,158,47,.18)}.btn-if:hover{color:#fff;filter:brightness(.95)}
.hero{background:radial-gradient(circle at 20% 20%,rgba(47,158,47,.35),transparent 35%),linear-gradient(135deg,#153a52,#082434);color:#fff;overflow:hidden}.eyebrow{display:inline-flex;gap:.5rem;align-items:center;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#d7ffdb;margin-bottom:1rem}.hero-card{background:rgba(255,255,255,.92);color:#111;border-radius:var(--radius);padding:1.35rem;border:1px solid rgba(255,255,255,.5);display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.hero-card-kpi{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:1rem;text-align:center}.hero-card-kpi span{display:block;font-size:2rem;line-height:1;font-weight:900;color:var(--if-blue-dark)}.hero-card-kpi small{font-weight:700;color:#5f6b7a}.valid-from{grid-column:1/-1;border-radius:16px;padding:.75rem;background:#eaf7ee;font-weight:800;color:#145b25;text-align:center}.panel{background:#fff;border:1px solid #e4eaf3;border-radius:var(--radius);padding:1.25rem;box-shadow:0 20px 50px rgba(15,23,42,.06)}.panel-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}.panel-header h2{font-weight:900;margin:0;color:#0c2638}.panel-header p{margin:.25rem 0 0;color:#667085}.if-tabs{gap:.4rem}.if-tabs .nav-link{color:#0f3b54;font-weight:900;border-radius:999px}.if-tabs .nav-link.active{background:var(--if-blue)}.stats-row{display:flex;flex-wrap:wrap;gap:.6rem}.stat-pill{display:inline-flex;align-items:center;gap:.5rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:.55rem .8rem;font-weight:800;color:#334155}.stat-pill strong{color:var(--if-blue-dark)}.schedule-wrapper,.summary-wrapper{overflow:auto;border:1px solid var(--if-line);border-radius:18px;background:#fff}.schedule-table,.summary-table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}.schedule-table th,.summary-table th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid var(--if-line);font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:#475569}.schedule-table th,.schedule-table td,.summary-table th,.summary-table td{border-right:1px solid var(--if-line);border-bottom:1px solid var(--if-line);vertical-align:top}.schedule-table th,.schedule-table td{padding:.75rem}.schedule-table td.day-cell{width:120px;background:#f8fafc;font-weight:900;font-size:1.1rem;color:#0c2638}.period-head{min-width:140px;text-align:center}.period-head span{display:block;font-size:.72rem;color:#64748b;text-transform:none;font-weight:700;letter-spacing:0}.lesson-card{position:relative;min-height:86px;border-left:5px solid var(--if-green);background:linear-gradient(180deg,#f7fff7,#f4f9ff);border-radius:14px;padding:.7rem .7rem .65rem;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);cursor:default;transition:.15s ease}.lesson-card:hover{transform:translateY(-2px);box-shadow:0 12px 22px rgba(15,23,42,.12)}.lesson-title{font-weight:900;line-height:1.12;color:#0f172a}.lesson-meta{font-size:.78rem;color:#475569;margin-top:.35rem}.lesson-origin{font-size:.7rem;color:#7a8699;margin-top:.25rem}.empty-slot{min-height:86px;background:repeating-linear-gradient(45deg,#fff,#fff 8px,#fafafa 8px,#fafafa 16px);border-radius:14px}.summary-table{font-size:.75rem}.summary-table th,.summary-table td{padding:.35rem;min-width:52px;text-align:center}.summary-table .entity-head{text-align:left;min-width:190px;position:sticky;left:0;z-index:3;background:#fff;font-weight:900}.summary-dot{display:block;min-height:42px;border-radius:8px;background:#eaf7ee;border:1px solid #b8e0c0;padding:.3rem;overflow:hidden;font-size:.67rem;font-weight:800;color:#0f3b1a}.summary-dot.multi{background:#fff4d6;border-color:#f5cf71}.summary-day{background:#eef7ff!important;color:#0b4f71!important}.compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.compare-card{border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff}.compare-card-header{padding:1rem;background:linear-gradient(135deg,#f8fafc,#eaf7ee);border-bottom:1px solid #e2e8f0}.compare-card-header h3{font-size:1.25rem;font-weight:900;margin:0}.compare-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;padding:1rem}.metric{border-radius:14px;background:#f8fafc;padding:.7rem;text-align:center}.metric strong{display:block;font-size:1.35rem;color:var(--if-blue-dark)}.mini-list{padding:0 1rem 1rem;margin:0;list-style:none}.mini-list li{padding:.6rem 0;border-top:1px solid #edf2f7}.footer{background:#0b2333;color:#cbd5e1;font-weight:700}.toolbar-actions{display:flex;gap:.4rem;flex-wrap:wrap}.highlight{outline:3px solid rgba(214,0,15,.25)}
@media (max-width: 991px){.brand-logo{height:38px;max-width:230px}.hero-card{grid-template-columns:1fr}.panel-header{flex-direction:column}.compare-grid{grid-template-columns:1fr}.schedule-table{min-width:760px}.summary-table{min-width:900px}.lesson-card,.empty-slot{min-height:70px}.display-5{font-size:2rem}}
@media print{.brand-top,.hero,.toolbar-actions,.if-tabs,.row.g-3,.footer,#comparativo,#resumo,.dev-notice{display:none!important}.panel{box-shadow:none;border:none}.schedule-wrapper{overflow:visible}.schedule-table{min-width:0;font-size:.75rem}.lesson-card{box-shadow:none}}

.dev-notice{background:#fff7ed;border:1px solid #fed7aa;border-left:6px solid #f97316;border-radius:18px;padding:1rem 1.15rem;color:#7c2d12;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.dev-notice a{color:#0b4f71;font-weight:900}.official-link{grid-column:1/-1;text-align:center;font-weight:900}.official-link a{color:#0b4f71;text-decoration:none}.official-link a:hover{text-decoration:underline}.security-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.75rem;color:#475569}.audit-table td{font-size:.88rem}.audit-table code{white-space:nowrap}

/* v1.3.0 — Administração modular */
.admin-body{background:linear-gradient(180deg,#eef5fb,#f7fafc)}
.admin-shell{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1.25rem;align-items:start}
.admin-sidebar{position:sticky;top:96px;padding:1rem}
.sidebar-title{display:flex;flex-direction:column;gap:.25rem;padding:.35rem .35rem 1rem;border-bottom:1px solid #e2e8f0;margin-bottom:.75rem}
.sidebar-title strong{font-size:1.1rem;color:#0c2638}.sidebar-title small{color:#64748b;font-weight:700}.admin-menu{display:grid;gap:.35rem}.admin-menu button{border:0;background:transparent;text-align:left;border-radius:14px;padding:.75rem .8rem;font-weight:900;color:#244155;display:flex;align-items:center;gap:.65rem;transition:.15s ease}.admin-menu button span{width:26px;height:26px;display:inline-grid;place-items:center;background:#eef7ff;border-radius:9px;color:#0b4f71}.admin-menu button:hover{background:#f1f5f9}.admin-menu button.active{background:linear-gradient(135deg,var(--if-blue),#0b6b97);color:#fff;box-shadow:0 12px 24px rgba(22,135,189,.24)}.admin-menu button.active span{background:rgba(255,255,255,.18);color:#fff}.admin-main{min-width:0}.admin-page-header{border-bottom:1px solid #e2e8f0;padding-bottom:1rem}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:1.1rem;box-shadow:0 12px 30px rgba(15,23,42,.05)}.admin-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem}.admin-kpi{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e2e8f0;border-radius:18px;padding:1rem}.admin-kpi strong{display:block;font-size:1.7rem;line-height:1;color:#0b4f71}.admin-kpi span{display:block;font-weight:900;margin-top:.35rem}.admin-kpi small{display:block;color:#64748b;font-weight:700;margin-top:.2rem}.architecture-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:.8rem;align-items:stretch}.architecture-flow div{border:1px solid #cfe6f5;background:#f3fbff;border-radius:16px;padding:1rem}.architecture-flow div strong{display:block;color:#0b4f71}.architecture-flow div small{display:block;color:#64748b;font-weight:700;margin-top:.25rem}.architecture-flow>span{display:grid;place-items:center;font-size:1.5rem;font-weight:900;color:#94a3b8}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.module-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:1rem;box-shadow:0 12px 30px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:.75rem;min-height:260px}.module-card-head{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.module-card h3{font-size:1.05rem;font-weight:900;margin:0;color:#0c2638}.module-card small{color:#64748b;font-weight:800}.module-card p{color:#475569;margin:0}.module-tags{display:flex;flex-wrap:wrap;gap:.35rem}.module-tags span{border-radius:999px;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;padding:.25rem .55rem;font-size:.75rem;font-weight:800}.module-next{margin-top:auto;border-top:1px solid #edf2f7;padding-top:.7rem;color:#64748b;font-size:.82rem}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.28rem .62rem;text-transform:uppercase;letter-spacing:.04em;font-weight:900;font-size:.7rem}.status-ativo{background:#dcfce7;color:#166534}.status-planejado{background:#f1f5f9;color:#475569}.module-mini-list{display:grid;gap:.55rem}.module-mini{display:flex;justify-content:space-between;gap:.75rem;align-items:center;border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:.7rem}.module-mini strong{display:block;color:#0f172a}.module-mini small{display:block;color:#64748b;font-weight:700}.roadmap-list{display:grid;gap:.7rem;padding-left:1.2rem}.roadmap-list li{padding-left:.25rem;color:#475569}.principles-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.principle-card{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:.85rem}.principle-card strong{display:block;color:#0b4f71}.principle-card small{display:block;color:#64748b;font-weight:700;margin-top:.25rem}.check-list{display:grid;gap:.6rem;margin:0;padding-left:1.2rem}.check-list li{color:#475569}.sidebar-actions{border-top:1px solid #e2e8f0;padding-top:1rem}
@media (max-width:1199px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static}.admin-menu{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.architecture-flow{grid-template-columns:1fr}.architecture-flow>span{transform:rotate(90deg)}}
@media (max-width:767px){.admin-menu{grid-template-columns:1fr}.module-grid,.principles-grid{grid-template-columns:1fr}.admin-kpi-grid{grid-template-columns:1fr}.admin-shell{padding-left:.75rem!important;padding-right:.75rem!important}.admin-card,.panel{border-radius:16px}.module-card{min-height:auto}}
/* v1.3.2 — Hotfix usuário Jefferson + Modelagem do Gerador Automático */
/* v1.3.3 — Biblioteca visual de ícones integrada */
.generator-tabs{display:flex;gap:.45rem;flex-wrap:wrap;border-bottom:1px solid #e2e8f0;padding-bottom:.75rem}
.generator-tabs button{border:1px solid #dbe6f1;background:#fff;border-radius:999px;padding:.55rem .85rem;font-weight:900;color:#244155;display:inline-flex;align-items:center;gap:.45rem;transition:.15s ease}
.generator-tabs button span{width:24px;height:24px;border-radius:8px;background:#eef7ff;color:#0b4f71;display:inline-grid;place-items:center}
.generator-tabs button:hover{background:#f8fafc;transform:translateY(-1px)}
.generator-tabs button.active{background:linear-gradient(135deg,var(--if-blue),#0b6b97);color:#fff;border-color:transparent;box-shadow:0 10px 20px rgba(22,135,189,.20)}
.generator-tabs button.active span{background:rgba(255,255,255,.18);color:#fff}
.solver-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:.7rem;align-items:stretch}
.solver-flow div{border:1px solid #cfe6f5;background:linear-gradient(180deg,#f7fcff,#eef9ff);border-radius:16px;padding:.9rem;min-height:96px}
.solver-flow div strong{display:block;color:#0b4f71;font-weight:900}.solver-flow div small{display:block;color:#64748b;font-weight:800;margin-top:.3rem}.solver-flow>span{display:grid;place-items:center;font-size:1.35rem;font-weight:900;color:#94a3b8}.model-score{display:grid;gap:.75rem}.model-score-row{display:grid;grid-template-columns:1fr 110px 46px;gap:.65rem;align-items:center}.model-score-row strong{display:block;color:#0f172a}.model-score-row small{display:block;color:#64748b;font-weight:700}.model-score-row .progress{height:9px}.model-score-row span{text-align:right;font-weight:900;color:#0b4f71}.rule-list{display:grid;gap:.55rem}.rule-row{display:flex;justify-content:space-between;gap:.75rem;align-items:center;border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:.7rem}.rule-row strong{display:block;color:#0f172a}.rule-row small{display:block;color:#64748b;font-weight:700}.check-group{border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:.65rem .75rem .45rem}.check-group legend{float:none;width:auto;margin:0 0 .35rem;padding:0;font-size:.85rem;font-weight:900;color:#475569}.rule-edit-card{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:.75rem;display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:center}.rule-edit-card strong{display:block}.rule-edit-card small{display:block;color:#64748b;font-weight:700}.rule-edit-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.rule-edit-controls input[type="number"]{width:82px}.decision-card{border:1px solid #cfe6f5;background:#f3fbff;border-radius:16px;padding:1rem;margin-bottom:.75rem}.decision-card strong{display:block;color:#0b4f71}.decision-card p{margin:.35rem 0 0;color:#475569}.decision-card.muted{background:#f8fafc;border-color:#e2e8f0}.decision-card.muted strong{color:#475569}
@media (max-width:1199px){.solver-flow{grid-template-columns:1fr}.solver-flow>span{transform:rotate(90deg)}.model-score-row{grid-template-columns:1fr}}


/* v1.3.3 — Biblioteca visual de ícones */
.ui-icon{width:34px;height:34px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 2px 3px rgba(15,23,42,.12))}
.module-mini{display:grid;grid-template-columns:42px 1fr auto;align-items:center}
.module-mini-icon{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(15,23,42,.14))}
.module-card-icon{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(15,23,42,.16))}
.icon-fallback{display:inline-grid;place-items:center;background:#eef7ff;color:#0b4f71;border-radius:12px;font-weight:900}
.icon-category-block{margin-bottom:1.25rem}.icon-category-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.75rem}.icon-category-head h3{font-weight:900;font-size:1.1rem;margin:0;color:#0c2638}.icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.icon-card{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:.85rem;display:grid;grid-template-columns:68px 1fr;gap:.75rem;align-items:center;box-shadow:0 10px 24px rgba(15,23,42,.045);min-height:132px}.icon-preview{width:68px;height:68px;border-radius:16px;background:linear-gradient(180deg,#f8fafc,#eef7ff);border:1px solid #e2e8f0;display:grid;place-items:center}.catalog-icon{max-width:58px;max-height:58px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(15,23,42,.18))}.icon-info strong{display:block;color:#0f172a;font-weight:900}.icon-info small{display:block;color:#64748b;font-weight:800;margin:.15rem 0 .25rem;word-break:break-all}.icon-info p{margin:0;color:#475569;font-size:.84rem;line-height:1.25}
@media (max-width:1199px){.icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){.icon-grid{grid-template-columns:1fr}.icon-card{grid-template-columns:58px 1fr}.icon-preview{width:58px;height:58px}.catalog-icon{max-width:50px;max-height:50px}.module-mini{grid-template-columns:38px 1fr}.module-card-icon{width:44px;height:44px}}


/* v1.4.0 — Biblioteca Visual e Mapeamento Modular: admin profissional */
.admin-v140{background:#eef3f8;color:#102033}
.admin-topbar{position:sticky;top:0;z-index:1050;background:linear-gradient(90deg,#064663,#1687bd);box-shadow:0 16px 40px rgba(15,23,42,.18)}
.admin-topbar-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.admin-brand{display:flex;align-items:center;gap:.85rem;color:#fff;text-decoration:none;min-width:260px}
.admin-brand img{height:44px;max-width:220px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.2))}
.admin-brand span{display:flex;flex-direction:column;line-height:1.1}.admin-brand strong{font-size:1.05rem;text-transform:uppercase;letter-spacing:.04em}.admin-brand small{color:#dcfce7;font-weight:800;font-size:.75rem;margin-top:.18rem}.admin-topbar-center{gap:.55rem;align-items:center}.topbar-chip{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:.42rem .7rem;font-weight:900;font-size:.78rem}.admin-userbox{display:flex;align-items:center;gap:.55rem}.user-pill{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff;border-radius:999px;padding:.4rem .75rem;font-weight:900;align-items:center;gap:.55rem}.user-pill small{background:rgba(255,255,255,.18);padding:.14rem .45rem;border-radius:999px;text-transform:uppercase;font-size:.68rem}
.admin-layout{display:grid;grid-template-columns:292px minmax(0,1fr);gap:1.2rem;align-items:start;padding:1.2rem clamp(.85rem,2.3vw,2rem)}
.admin-sidebar-pro{position:sticky;top:92px;background:#ffffff;border:1px solid #dfe8f2;border-radius:26px;padding:1rem;box-shadow:0 24px 60px rgba(15,23,42,.08)}
.sidebar-title-pro{padding:.3rem .3rem .9rem;margin-bottom:.7rem;border-bottom:1px solid #e5edf5}.sidebar-title-pro strong{font-size:1.1rem;color:#0c2638}.sidebar-title-pro small{color:#64748b;font-weight:800}
.admin-menu-pro{display:grid;gap:.38rem}.admin-menu-pro button{height:48px;border:0;background:transparent;border-radius:16px;padding:.45rem .6rem;display:grid;grid-template-columns:34px 1fr;align-items:center;text-align:left;gap:.62rem;font-weight:900;color:#20384c;transition:.16s ease}.admin-menu-pro button img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(15,23,42,.15))}.admin-menu-pro button:hover{background:#f1f7fc;transform:translateX(2px)}.admin-menu-pro button.active{background:linear-gradient(135deg,#1687bd,#0b5d84);color:#fff;box-shadow:0 12px 24px rgba(22,135,189,.22)}.admin-menu-pro button.active img{filter:drop-shadow(0 3px 4px rgba(0,0,0,.25))}.sidebar-status-card{margin-top:1rem;padding:.85rem;border-radius:18px;background:linear-gradient(180deg,#f8fafc,#eef7ff);border:1px solid #dbeafe}.sidebar-status-card strong{display:block;color:#0b4f71}.sidebar-status-card small{display:block;color:#64748b;font-weight:800;margin-top:.12rem}.admin-main-pro{min-width:0}.admin-page-titlebar{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem;background:#fff;border:1px solid #dfe8f2;border-radius:26px;padding:1.25rem 1.35rem;box-shadow:0 18px 50px rgba(15,23,42,.065)}.admin-page-titlebar p{margin:.35rem 0 0;color:#64748b;font-weight:650}.eyebrow-dark{display:inline-flex;font-size:.76rem;font-weight:1000;text-transform:uppercase;letter-spacing:.08em;color:#0b6b97;margin-bottom:.35rem}.titlebar-card{min-width:340px;max-width:440px;border-radius:18px;background:linear-gradient(135deg,#f3fbff,#eefcf2);border:1px solid #d9edf8;padding:.85rem}.titlebar-card strong{display:block;color:#0f2f45}.titlebar-card small{display:block;color:#64748b;font-weight:800;margin-top:.25rem}.admin-hero-pro{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1rem;background:radial-gradient(circle at 16% 10%,rgba(47,158,47,.18),transparent 34%),linear-gradient(135deg,#102f44,#0a506f);border-radius:30px;padding:1.5rem;color:#fff;box-shadow:0 26px 70px rgba(15,23,42,.18);overflow:hidden}.hero-copy h2{font-size:clamp(1.65rem,3vw,2.6rem);font-weight:1000;margin:.25rem 0 .6rem}.hero-copy p{color:#dcebf5;font-weight:650;margin:0;max-width:780px}.hero-kicker{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:.38rem .65rem;font-weight:1000;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}.hero-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.hero-panel{background:rgba(255,255,255,.94);color:#102033;border-radius:24px;padding:1.1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid rgba(255,255,255,.7)}.hero-big-icon{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(15,23,42,.25))}.hero-panel strong{display:block;font-size:1.25rem;font-weight:1000;color:#0b4f71;margin-top:.35rem}.hero-panel small{color:#64748b;font-weight:800;margin-top:.25rem}.kpi-pro .admin-kpi{border-radius:22px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.06)}.app-launcher-card{overflow:hidden}.app-launcher-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.app-tile{border:1px solid #dfe8f2;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fafc);padding:.9rem;min-height:132px;display:flex;flex-direction:column;gap:.55rem;align-items:flex-start;justify-content:space-between;box-shadow:0 12px 28px rgba(15,23,42,.045);transition:.16s ease}.app-tile:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,23,42,.09)}.app-tile-icon{width:56px;height:56px;border-radius:18px;background:#eef7ff;border:1px solid #dbeafe;display:grid;place-items:center}.app-tile strong{display:block;font-weight:1000;color:#0f2636;line-height:1.1}.app-tile small{display:block;color:#64748b;font-weight:850;margin-top:.18rem}.app-tile[data-module-status="ativo"]{border-color:#bfe8ca;background:linear-gradient(180deg,#fff,#f2fff5)}.module-grid .module-card{border-radius:24px}.module-card-head{align-items:center}.module-card-icon{width:58px;height:58px}.module-mini{border-radius:18px;background:#fff}.icon-card{border-radius:22px}.icon-preview{border-radius:18px}
@media (max-width:1199px){.admin-layout{grid-template-columns:1fr}.admin-sidebar-pro{position:static}.admin-menu-pro{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-hero-pro{grid-template-columns:1fr}.app-launcher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-page-titlebar{border-radius:22px}.admin-topbar-inner{min-height:68px}.admin-brand img{height:38px}.admin-brand small{display:none}}
@media (max-width:767px){.admin-layout{padding:.75rem}.admin-menu-pro{grid-template-columns:1fr}.admin-hero-pro{padding:1rem;border-radius:22px}.app-launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-tile{min-height:118px}.admin-page-titlebar{padding:1rem}.admin-userbox .btn{padding:.32rem .52rem}.admin-brand{min-width:auto}.admin-brand img{max-width:150px}.hero-actions .btn{width:100%}}


/* v1.4.1 — correção de legibilidade do menu lateral e mapeamento modular */
.admin-layout{grid-template-columns:310px minmax(0,1fr)}
.admin-menu-pro button{height:auto;min-height:52px;grid-template-columns:38px minmax(0,1fr);gap:.72rem;padding:.55rem .72rem;overflow:hidden}
.admin-menu-pro button span{display:block;background:transparent!important;color:inherit!important;padding:0!important;border-radius:0!important;line-height:1.16;white-space:normal;word-break:normal;overflow-wrap:normal;max-width:100%}
.admin-menu-pro button:hover span{color:#0b4f71!important}
.admin-menu-pro button.active span,.admin-menu-pro button.active:hover span{color:#fff!important;background:transparent!important;text-shadow:0 1px 1px rgba(0,0,0,.18)}
.admin-menu-pro button.active{transform:none}.admin-menu-pro button:hover{transform:translateX(2px)}
.module-commercial-row{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.15rem}.module-commercial-row .chip{border-radius:999px;padding:.22rem .5rem;font-size:.68rem;font-weight:950;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a}.chip-enabled{background:#dcfce7!important;border-color:#bbf7d0!important;color:#166534!important}.chip-disabled{background:#f1f5f9!important;border-color:#e2e8f0!important;color:#64748b!important}.chip-optional{background:#fff7ed!important;border-color:#fed7aa!important;color:#9a3412!important}.rule-edit-card small.rule-meta{display:block;color:#64748b;font-weight:750;margin-top:.2rem}.rule-edit-card[data-rule-critical="true"]{border-color:#fecaca;background:#fff7f7}.room-quick-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.room-quick-pill{border:1px solid #e2e8f0;background:#f8fafc;border-radius:12px;padding:.5rem;font-weight:850;color:#334155}.module-license-note{border:1px solid #dbeafe;background:#eff6ff;border-radius:18px;padding:1rem;color:#1e3a8a;font-weight:750}
@media (max-width:1199px){.admin-layout{grid-template-columns:1fr}.admin-menu-pro{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){.admin-menu-pro{grid-template-columns:1fr}.room-quick-list{grid-template-columns:1fr}}

/* v1.4.2 — ajustes finos: ribbon comercial web, regras clicáveis e documentação atualizada */
.admin-topbar-center{display:none!important}
.admin-topbar{box-shadow:0 10px 24px rgba(15,23,42,.14)}
.admin-brand small{max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-page-titlebar{margin-bottom:.75rem}
.admin-ribbon{background:#fff;border:1px solid #dbe5ef;border-radius:22px;margin-bottom:1rem;box-shadow:0 16px 38px rgba(15,23,42,.07);overflow:hidden}
.ribbon-tabs{display:flex;gap:.1rem;background:#f1f5f9;border-bottom:1px solid #dbe5ef;padding:0 .65rem}
.ribbon-tab{padding:.65rem 1rem;font-weight:900;color:#3f5770;border-left:1px solid transparent;border-right:1px solid transparent;line-height:1}
.ribbon-tab.active{background:#fff;color:#0b4f71;border-color:#dbe5ef;box-shadow:0 -2px 0 #1687bd inset}
.ribbon-actions{display:flex;align-items:stretch;gap:.25rem;padding:.75rem;overflow-x:auto;min-height:92px}
.ribbon-actions button{border:0;background:#fff;border-right:1px solid #e5edf5;min-width:76px;padding:.35rem .55rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.28rem;font-weight:850;color:#21384c;transition:.14s ease}
.ribbon-actions button:hover{background:#eef7ff;transform:translateY(-1px)}
.ribbon-actions img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(15,23,42,.15))}
.ribbon-actions span{font-size:.78rem;white-space:nowrap}
.reset-help{display:block;color:#64748b;font-weight:750;line-height:1.2;margin-top:.35rem;font-size:.72rem}
.rule-status{border-radius:999px;padding:.3rem .65rem;font-weight:950;font-size:.74rem;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.rule-on{background:#dcfce7;color:#166534;border:1px solid #86efac}.rule-off{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.rule-row{border-radius:14px;border:1px solid #e5edf5;padding:.65rem .75rem}.rule-row-off{background:#fff7f7;border-color:#fecaca}.rule-row-on{background:#f7fff8;border-color:#bbf7d0}
.rule-edit-card{border:1px solid #e2e8f0;border-radius:16px;padding:.75rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:center;background:#fff;transition:.15s ease}
.rule-card-on{border-left:5px solid #22c55e;background:linear-gradient(90deg,#f0fdf4,#fff)}.rule-card-off{border-left:5px solid #ef4444;background:linear-gradient(90deg,#fff1f2,#fff)}
.rule-toggle{cursor:pointer;margin:0;display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.34rem .62rem;font-weight:950;font-size:.78rem;text-transform:uppercase;border:1px solid transparent;min-width:112px;justify-content:center}.rule-toggle input{position:absolute;opacity:0;pointer-events:none}.rule-toggle.is-on{background:#dcfce7;color:#166534;border-color:#86efac}.rule-toggle.is-off{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.rule-edit-controls{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.rule-edit-controls input[type=number]{max-width:78px}
.version-map{display:grid;gap:.6rem}.version-map>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:.65rem;border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:.7rem}.version-map strong{color:#0b4f71}.version-map span{color:#475569;font-weight:750}.module-product-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}.module-product-kpis div{border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;padding:.75rem;text-align:center}.module-product-kpis strong{display:block;font-size:1.35rem;color:#0b4f71}.module-product-kpis small{display:block;color:#64748b;font-weight:850;line-height:1.1}
@media (max-width:991px){.admin-ribbon{border-radius:18px}.ribbon-tabs{overflow-x:auto}.ribbon-actions{min-height:82px}.ribbon-actions button{min-width:66px}.ribbon-actions img{width:30px;height:30px}.rule-edit-card{grid-template-columns:1fr}.rule-edit-controls{justify-content:flex-start}.module-product-kpis{grid-template-columns:1fr}.version-map>div{grid-template-columns:1fr}}


/* v1.4.3 — ribbon funcional, histórico de versões e ajuste de visão comercial */
.ribbon-tabs button.ribbon-tab{border:0;background:transparent;padding:.65rem 1rem;font-weight:950;color:#3f5770;border-left:1px solid transparent;border-right:1px solid transparent;line-height:1;cursor:pointer}.ribbon-tabs button.ribbon-tab.active{background:#fff;color:#0b4f71;border-color:#dbe5ef;box-shadow:0 -2px 0 #1687bd inset}.ribbon-actions{display:none}.ribbon-actions.active{display:flex}.admin-ribbon{margin-top:.25rem}.admin-hero-pro{margin-top:.2rem}.module-tree{margin:0;background:#0f172a;color:#f8fafc;border-radius:18px;padding:1rem;font-family:"Cascadia Mono","Consolas",monospace;font-size:.92rem;line-height:1.55;white-space:pre-wrap;border:1px solid #1e293b}.tree-ok{color:#86efac;font-weight:950}.tree-plan{color:#fde68a;font-weight:950}.timeline-versions{position:relative;display:grid;gap:.65rem}.timeline-versions article{display:grid;grid-template-columns:92px minmax(0,1fr);gap:.8rem;border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:.8rem}.timeline-versions article strong{color:#0b4f71;font-weight:1000}.timeline-versions article h3{font-size:1rem;font-weight:1000;margin:0 0 .15rem;color:#102033}.timeline-versions article p{margin:0;color:#64748b;font-weight:750}.sidebar-status-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.85rem;margin-top:1rem}.sidebar-status-card strong{display:block;color:#0f2f45}.sidebar-status-card small{display:block;color:#64748b;font-weight:800}.admin-page-titlebar h1{letter-spacing:-.03em}@media (max-width:991px){.timeline-versions article{grid-template-columns:1fr}.ribbon-actions.active{display:flex}}


/* v1.4.4 — ribbon fixo, motor visível e correção do estado das regras */
.admin-topbar{position:sticky;top:0;z-index:1100}
.admin-ribbon{position:sticky;top:70px;z-index:1000;border-radius:0 0 18px 18px;margin-top:0;background:rgba(255,255,255,.98);backdrop-filter:blur(10px)}
.admin-main-pro{overflow:visible}.admin-page-titlebar{margin-bottom:.9rem}
.rule-toggle.is-off span{color:#991b1b}.rule-toggle.is-on span{color:#166534}
.rule-toggle:focus-within{outline:3px solid rgba(22,135,189,.22);outline-offset:2px}
.rule-card-off strong{color:#991b1b}.rule-card-on strong{color:#064e3b}
.engine-meter{border-radius:24px;background:linear-gradient(135deg,#0b4f71,#1687bd);color:#fff;padding:1.25rem;text-align:center;box-shadow:0 18px 40px rgba(11,79,113,.18)}
.engine-meter strong{display:block;font-size:3rem;line-height:1;font-weight:1000}.engine-meter span{display:block;font-weight:900;opacity:.88;margin-top:.35rem}.engine-next{border:1px solid #e2e8f0;background:#f8fafc;border-radius:18px;padding:1rem}.engine-next h4{font-weight:1000;font-size:1rem;color:#0f2f45}.engine-next ol{margin:0;padding-left:1.2rem}.engine-next li{margin:.35rem 0;color:#475569;font-weight:800}
@media (max-width:991px){.admin-ribbon{top:66px;border-radius:0 0 16px 16px}.admin-topbar{position:sticky}}


/* v1.4.5 — correção de sobreposição, regras coerentes e paleta de disciplinas */
.admin-sticky-form{top:190px!important;z-index:700!important}
.admin-ribbon{box-shadow:0 12px 24px rgba(15,23,42,.10)}
.admin-main-pro{position:relative}
.rule-card-on{border-left:7px solid #22c55e!important;background:linear-gradient(90deg,#dcfce7,#f0fdf4 65%,#ffffff)!important;border-color:#86efac!important}
.rule-card-on strong,.rule-card-on small,.rule-card-on .rule-meta{color:#166534!important}
.rule-card-on .form-control{background:#f0fdf4;border-color:#86efac;color:#14532d;font-weight:800}
.rule-card-on .btn{border-color:#86efac;color:#166534;font-weight:850}
.rule-card-off{border-left:7px solid #ef4444!important;background:linear-gradient(90deg,#fee2e2,#fff1f2 65%,#ffffff)!important;border-color:#fca5a5!important}
.rule-card-off strong,.rule-card-off small,.rule-card-off .rule-meta{color:#991b1b!important}
.rule-card-off .form-control{background:#fff1f2;border-color:#fca5a5;color:#991b1b;font-weight:800}
.rule-card-off .btn{border-color:#fca5a5;color:#991b1b;font-weight:850}
.rule-toggle.is-on{background:#bbf7d0!important;color:#166534!important;border-color:#22c55e!important;box-shadow:inset 0 0 0 1px rgba(34,197,94,.2)}
.rule-toggle.is-off{background:#fecaca!important;color:#991b1b!important;border-color:#ef4444!important;box-shadow:inset 0 0 0 1px rgba(239,68,68,.18)}
.color-editor{border:1px solid #dbe5ef;border-radius:16px;padding:.8rem;background:#f8fafc;margin-top:.35rem}
.color-main-row{display:grid;grid-template-columns:64px minmax(0,1fr) 42px;gap:.55rem;align-items:center}
.color-main-row input[type=color]{width:100%;height:42px;padding:.25rem;border-radius:12px}
.color-preview{width:38px;height:38px;border-radius:12px;border:1px solid #cbd5e1;box-shadow:inset 0 0 0 3px rgba(255,255,255,.65)}
.color-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.55rem}.color-mini-grid label{font-size:.75rem;font-weight:900;color:#64748b}
.color-palette-suggestions{display:flex;flex-wrap:wrap;gap:.32rem;margin:.6rem 0}.color-palette-suggestions button{width:24px;height:24px;border-radius:8px;border:2px solid #fff;box-shadow:0 0 0 1px #cbd5e1;padding:0}.color-palette-suggestions button:hover{transform:translateY(-1px);box-shadow:0 0 0 2px #1687bd}
.discipline-color-dot{display:inline-block;width:14px;height:14px;border-radius:999px;margin-right:.45rem;vertical-align:-2px;border:1px solid rgba(15,23,42,.18)}.color-code-pill{display:inline-flex;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0;padding:.18rem .48rem;font-weight:900;color:#334155;margin-right:.35rem}
.lesson-card{border-left-width:6px}.lesson-title{letter-spacing:-.02em}
@media (max-width:1199px){.admin-sticky-form{position:static!important;top:auto!important}.admin-ribbon{top:66px}.color-mini-grid{grid-template-columns:1fr}}


/* v1.4.6 — edição sem salto, colunas independentes e refinamento de usabilidade */
.edit-loaded-flash{animation:editLoadedPulse 1.25s ease-out 1;box-shadow:0 0 0 3px rgba(22,135,189,.14),0 20px 50px rgba(15,23,42,.08)!important}
@keyframes editLoadedPulse{0%{outline:0 solid rgba(22,135,189,0)}30%{outline:4px solid rgba(22,135,189,.22)}100%{outline:0 solid rgba(22,135,189,0)}}
@media (min-width:1200px){
  .admin-two-pane{align-items:flex-start;min-height:calc(100vh - 190px)}
  .admin-two-pane>.col-xl-4,.admin-two-pane>.col-xl-5,.admin-two-pane>.col-xl-7,.admin-two-pane>.col-xl-8{min-height:0}
  .admin-pane-scroll{max-height:calc(100vh - 210px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:1rem}
  .admin-pane-scroll .table-responsive{overflow-x:auto}
  .admin-card.admin-sticky-form.admin-pane-scroll{position:sticky!important;top:190px!important}
}
@media (max-width:1199px){.admin-pane-scroll{max-height:none;overflow:visible;padding-right:0}}


/* v1.5.0 — Diagnóstico de dados */
.diagnostic-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.diagnostic-kpi{border:1px solid #dbe6f2;background:#fff;border-radius:18px;padding:1rem;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.diagnostic-kpi strong{display:block;font-size:2rem;line-height:1;font-weight:900;color:#0f3350}.diagnostic-kpi span{display:block;font-weight:900;margin-top:.35rem}.diagnostic-kpi small{font-weight:700;color:#64748b}
.diagnostic-good{background:#eefcf3;border-color:#b8efc8}.diagnostic-good strong{color:#15803d}.diagnostic-warn{background:#fff8e6;border-color:#facc15}.diagnostic-warn strong{color:#a16207}.diagnostic-bad{background:#fff1f2;border-color:#fda4af}.diagnostic-bad strong{color:#be123c}.diagnostic-info{background:#eff6ff;border-color:#bfdbfe}.diagnostic-info strong{color:#1d4ed8}
.diag-total-list{display:grid;gap:.55rem}.diag-total-list div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #e5edf6;padding:.45rem 0}.diag-total-list span{font-weight:800;color:#64748b}.diag-total-list strong{font-weight:900;color:#0f3350}
.diagnostic-list{display:grid;gap:.75rem}.diagnostic-item{display:grid;grid-template-columns:110px 1fr;gap:1rem;border:1px solid #dbe6f2;border-left-width:8px;border-radius:16px;padding:.85rem 1rem;background:#fff}.diagnostic-item.severity-critical{border-left-color:#dc2626;background:#fff7f7}.diagnostic-item.severity-warning{border-left-color:#d97706;background:#fffaf0}.diagnostic-item.severity-info{border-left-color:#2563eb;background:#f8fbff}.diagnostic-item.severity-success{border-left-color:#16a34a;background:#f6fff8}.diagnostic-severity{font-weight:900;font-size:.78rem;letter-spacing:.05em;align-self:start}.severity-critical .diagnostic-severity{color:#dc2626}.severity-warning .diagnostic-severity{color:#d97706}.severity-info .diagnostic-severity{color:#2563eb}.severity-success .diagnostic-severity{color:#16a34a}.diagnostic-body strong{display:block;font-weight:900}.diagnostic-body small{display:block;color:#64748b;font-weight:800;margin:.1rem 0 .35rem}.diagnostic-body p{margin:0 0 .35rem}.diagnostic-body em{display:block;font-style:normal;color:#334155;font-weight:700}
@media(max-width:991px){.diagnostic-summary-grid{grid-template-columns:1fr 1fr}.diagnostic-item{grid-template-columns:1fr}}


/* v1.5.1 — usuários, perfis e modo somente leitura */
.role-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.35rem .65rem;font-size:.78rem;font-weight:900;background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe}
.role-admin{background:#dcfce7;color:#14532d;border-color:#86efac}
.role-gestor{background:#e0f2fe;color:#075985;border-color:#7dd3fc}
.role-colaborador{background:#fef9c3;color:#713f12;border-color:#fde68a}
.role-visualizador,.role-demo{background:#f1f5f9;color:#334155;border-color:#cbd5e1}
.readonly-banner{border-radius:18px;font-weight:700}
.readonly-mode .btn-if,
.readonly-mode [data-del],
.readonly-mode [data-del-lesson],
.readonly-mode [data-edit],
.readonly-mode [data-edit-lesson],
.readonly-mode [data-user-delete],
.readonly-mode [data-user-edit],
.readonly-mode button[data-rule-toggle]{opacity:.55;cursor:not-allowed}
.user-access-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}
.user-access-card{border:1px solid #dbe6f3;border-radius:18px;padding:1rem;background:#fff}
.user-access-card strong{display:block;color:#07324b;font-size:1rem}
