: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}}
