:root{
  --ec-primary:#2563eb;
  --ec-primary-dark:#1d4ed8;
  --ec-bg:#f3f7ff;
  --ec-surface:#ffffff;
  --ec-border:#dbe4f0;
  --ec-text:#14213d;
  --ec-muted:#6b7280;
  --ec-success:#16a34a;
  --ec-danger:#dc2626;
  --ec-warning:#f59e0b;
  --ec-shadow:0 12px 34px rgba(15,23,42,.08);
  --ec-radius:22px;
}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body.ec-body{
  background:linear-gradient(180deg,#eef4ff 0%,#f8fbff 200px,#f6f8fc 100%);
  color:var(--ec-text);
  min-height:100vh;
}
body.ec-auth{display:flex;align-items:center;justify-content:center;padding:18px;background:radial-gradient(circle at top,#dbeafe,transparent 35%),linear-gradient(180deg,#eef4ff,#f8fafc)}
.ec-home{background:
  radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 30%),
  radial-gradient(circle at right 20%, rgba(14,165,233,.12), transparent 26%),
  linear-gradient(180deg,#eef4ff 0%,#f8fbff 220px,#f6f8fc 100%)}
.ec-container{max-width:1120px;margin:0 auto;padding:18px 14px 90px}
.ec-auth-card,.ec-card{background:rgba(255,255,255,.96);border:1px solid rgba(219,228,240,.9);box-shadow:var(--ec-shadow);border-radius:var(--ec-radius)}
.ec-auth-card{width:min(100%,430px);padding:28px 22px}
.ec-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:1.25rem;margin-bottom:8px}
.ec-brand-badge{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,var(--ec-primary),#60a5fa);display:grid;place-items:center;color:#fff;font-size:1.25rem;box-shadow:0 10px 24px rgba(37,99,235,.28)}
.ec-subtitle{color:var(--ec-muted);margin-bottom:24px}
.ec-topbar{position:sticky;top:0;z-index:1000;background:rgba(248,251,255,.88);backdrop-filter:blur(10px);border-bottom:1px solid rgba(219,228,240,.8)}
.ec-topbar-inner{max-width:1120px;margin:0 auto;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ec-topbar-title{font-weight:800;letter-spacing:-.02em;font-size:1rem;line-height:1.15}
.ec-topbar-subtitle{font-size:.82rem;color:var(--ec-muted);line-height:1.1;margin-top:2px}
.ec-school-brand{display:flex;align-items:center;gap:10px;min-width:0}
.ec-school-brand > div{min-width:0}
.ec-school-logo-header{width:32px;height:32px;object-fit:cover;border-radius:10px;border:1px solid var(--ec-border);background:#fff;padding:2px;flex:0 0 auto}
.ec-topbar-page{text-align:right}
.ec-topbar-page-title{font-size:.92rem;font-weight:800;line-height:1.1}
.ec-topbar-page-subtitle{font-size:.76rem;color:var(--ec-muted);line-height:1.1;margin-top:2px}
.ec-user-pill{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--ec-border);padding:8px 12px;border-radius:999px;font-size:.92rem;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.ec-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--ec-primary),#7c3aed);color:#fff;font-weight:700}
.ec-page-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:18px}
.ec-page-title{font-size:1.5rem;font-weight:800;margin:0}
.ec-page-desc{color:var(--ec-muted);margin:4px 0 0}
.ec-card{padding:18px}
.ec-card + .ec-card{margin-top:16px}
.ec-section-title{font-size:1.05rem;font-weight:700;margin-bottom:14px}
.ec-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ec-stat{padding:16px;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--ec-border)}
.ec-stat-label{font-size:.86rem;color:var(--ec-muted)}
.ec-stat-value{font-size:1.7rem;font-weight:800;margin-top:4px}
.ec-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ec-menu-card{display:flex;align-items:flex-start;gap:14px;padding:18px;text-decoration:none;color:inherit;border-radius:22px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid var(--ec-border);box-shadow:0 10px 25px rgba(15,23,42,.04);min-height:112px}
.ec-menu-card:hover{transform:translateY(-1px);border-color:#bfd3ff}
.ec-menu-icon{width:52px;height:52px;border-radius:16px;background:#eff6ff;display:grid;place-items:center;font-size:1.35rem}
.ec-menu-title{font-weight:800;margin-bottom:3px}
.ec-menu-text{font-size:.92rem;color:var(--ec-muted)}
.form-control,.form-select,.btn{border-radius:16px!important;min-height:48px}
.form-control,.form-select{border-color:var(--ec-border);padding-inline:14px}
.form-control:focus,.form-select:focus{border-color:#93c5fd;box-shadow:0 0 0 .2rem rgba(37,99,235,.12)}
.btn{font-weight:700;padding-inline:16px}
.btn-primary{background:var(--ec-primary);border-color:var(--ec-primary)}
.btn-primary:hover{background:var(--ec-primary-dark);border-color:var(--ec-primary-dark)}
.btn-soft{background:#eff6ff;border:1px solid #bfdbfe;color:var(--ec-primary)}
.btn-soft:hover{background:#dbeafe;color:var(--ec-primary-dark)}
.ec-list{display:grid;gap:12px}
.ec-list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 16px;background:#fff;border:1px solid var(--ec-border);border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ec-item-title{font-weight:700}
.ec-item-sub{font-size:.9rem;color:var(--ec-muted)}
.ec-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#eff6ff;color:var(--ec-primary);font-size:.84rem;font-weight:700}
.ec-student-card{padding:16px;border:1px solid var(--ec-border);border-radius:20px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ec-actions{display:flex;gap:8px;flex-wrap:wrap}
.ec-table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border-radius:18px;border:1px solid var(--ec-border);background:#fff}
.table{margin-bottom:0}
.table thead th{white-space:nowrap;background:#f8fbff}
.ec-check-list{display:grid;gap:10px}
.ec-check-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#fff;border:1px solid var(--ec-border);border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ec-check-label{display:flex;gap:12px;align-items:center;flex:1;cursor:pointer}
.ec-check-input{width:24px;height:24px;accent-color:var(--ec-danger);flex:0 0 auto}
.ec-muted{color:var(--ec-muted)}
.ec-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.92rem;color:var(--ec-muted)}
.ec-bottom-nav{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);width:min(calc(100% - 16px),680px);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border:1px solid rgba(219,228,240,.9);box-shadow:0 10px 34px rgba(15,23,42,.12);border-radius:24px;padding:8px;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;z-index:1200}
.ec-nav-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;text-decoration:none;color:var(--ec-muted);border-radius:18px;font-size:.75rem;font-weight:700;padding:4px}
.ec-nav-link.active{background:#eff6ff;color:var(--ec-primary)}
.ec-nav-icon{font-size:1.15rem;line-height:1}
.ec-empty{padding:16px;border-radius:18px;background:#f8fbff;border:1px dashed #cbd5e1;color:var(--ec-muted)}
.ec-home-shell{max-width:1180px;margin:0 auto;padding:0 18px}
.ec-home-topbar{padding:18px 0}
.ec-home-topbar .ec-home-shell{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ec-home-logo{text-decoration:none;color:var(--ec-text);font-weight:900;font-size:1.15rem;letter-spacing:-.03em}
.ec-home-topbar-actions{display:flex;gap:10px;flex-wrap:wrap}
.ec-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:28px;align-items:center;padding:34px 0 20px}
.ec-home-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ec-home-title{font-size:clamp(2.2rem,5vw,4.3rem);line-height:.98;font-weight:900;letter-spacing:-.05em;margin:18px 0 14px;max-width:11ch}
.ec-home-text{font-size:1.05rem;line-height:1.7;color:#475569;max-width:60ch;margin:0}
.ec-home-highlight-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.ec-home-highlight{padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.78);border:1px solid rgba(191,219,254,.9);backdrop-filter:blur(10px)}
.ec-home-highlight strong{display:block;font-size:.96rem;margin-bottom:4px}
.ec-home-highlight span{display:block;color:#64748b;font-size:.9rem;line-height:1.5}
.ec-home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.ec-hero-panel{display:flex;justify-content:flex-end}
.ec-home-panel-card{width:100%;max-width:440px;padding:22px;border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(240,249,255,.94));border:1px solid rgba(191,219,254,.9);box-shadow:0 18px 48px rgba(37,99,235,.12)}
.ec-home-panel-tag{display:inline-flex;padding:7px 12px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.ec-home-flow{display:grid;gap:12px;margin-top:18px}
.ec-home-flow-step{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;padding:14px;border-radius:22px;background:#fff;border:1px solid #dbeafe}
.ec-home-flow-step span{width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#38bdf8);display:grid;place-items:center;color:#fff;font-weight:900}
.ec-home-flow-step strong{display:block;font-size:1rem;margin-bottom:3px}
.ec-home-flow-step small{display:block;color:#64748b;line-height:1.45}
.ec-home-panel-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:18px;margin-top:18px;border-top:1px solid #dbeafe}
.ec-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:8px 0 34px}
.ec-home-mobile-cta{display:none;padding-bottom:28px}
.ec-school-logo-thumb{width:56px;height:56px;object-fit:cover;border-radius:16px;border:1px solid var(--ec-border);background:#fff;padding:4px}
.ec-logo-preview-card{display:flex;align-items:center;gap:14px;padding:14px;border-radius:18px;background:#f8fbff;border:1px solid var(--ec-border)}
.ec-school-logo-preview{width:72px;height:72px;object-fit:cover;border-radius:18px;border:1px solid var(--ec-border);background:#fff;padding:6px}
@media (max-width: 991px){
  .ec-stats,.ec-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ec-hero{grid-template-columns:1fr}
  .ec-hero-panel{justify-content:flex-start}
  .ec-home-grid{grid-template-columns:1fr}
  .ec-home-highlight-list{grid-template-columns:1fr 1fr}
}
@media (max-width: 767px){
  .ec-container{padding:14px 12px 100px}
  .ec-topbar-inner{padding:12px}
  .ec-topbar-subtitle,.ec-user-pill span{display:none}
  .ec-school-logo-header{width:28px;height:28px;border-radius:8px}
  .ec-topbar-page-subtitle{display:none}
  .ec-page-title{font-size:1.28rem}
  .ec-stats,.ec-menu{grid-template-columns:1fr}
  .ec-list-item,.ec-check-item{align-items:flex-start;flex-direction:column}
  .ec-actions{width:100%}
  .ec-actions .btn{flex:1}
  .table{font-size:.92rem}
  .ec-home-shell{padding:0 14px}
  .ec-home-topbar{padding:12px 0 0}
  .ec-home-topbar .ec-home-shell{align-items:center;flex-direction:row}
  .ec-home-logo{font-size:1rem}
  .ec-home-topbar-actions{width:auto;gap:8px}
  .ec-home-topbar-actions .btn{min-height:42px;padding-inline:12px;font-size:.9rem}
  .ec-hero{gap:18px;padding:18px 0 10px}
  .ec-home-kicker{font-size:.72rem;padding:7px 10px}
  .ec-home-title{max-width:none;font-size:2.15rem;line-height:1.02;margin:14px 0 10px}
  .ec-home-text{font-size:.97rem;line-height:1.6}
  .ec-home-highlight-list{grid-template-columns:1fr;gap:10px;margin-top:16px}
  .ec-home-highlight{padding:13px 14px;border-radius:18px}
  .ec-home-actions{width:100%;gap:10px;margin-top:18px}
  .ec-home-actions .btn{width:100%;flex:none}
  .ec-hero-panel{display:block}
  .ec-home-panel-card{padding:16px;border-radius:24px}
  .ec-home-panel-tag{font-size:.72rem}
  .ec-home-flow{gap:10px;margin-top:14px}
  .ec-home-flow-step{grid-template-columns:36px 1fr;padding:12px;border-radius:18px}
  .ec-home-flow-step span{width:36px;height:36px;border-radius:12px;font-size:.92rem}
  .ec-home-flow-step strong{font-size:.95rem}
  .ec-home-panel-footer{align-items:flex-start;flex-direction:column;padding-top:14px;margin-top:14px}
  .ec-home-panel-footer .btn{width:100%}
  .ec-home-grid{gap:12px;padding:6px 0 18px}
  .ec-home-grid .ec-card{padding:16px}
  .ec-home-mobile-cta{display:block}
  .ec-logo-preview-card{align-items:flex-start;flex-direction:column}
}
@media (min-width: 768px){
  .ec-bottom-nav{display:none}
}

.ec-responsavel{padding:10px 14px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:.95rem}
.ec-resp-dia{font-size:.72rem;color:#475569;background:#f8fbff}

.ec-alert-count{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border-radius:999px;font-weight:800;font-size:.9rem;border:1px solid var(--ec-border);background:#fff;color:var(--ec-text)}
.ec-alert-count.is-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.ec-alert-count.is-ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.ec-alert-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 16px;border-radius:18px;border:1px solid #fecaca;background:linear-gradient(180deg,#fff,#fff7f7);box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ec-alert-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.ec-alert-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:.84rem;font-weight:800}
.ec-alert-banner{padding:14px 16px;border-radius:18px;border:1px solid #fed7aa;background:linear-gradient(180deg,#fff7ed,#fff)}
.ec-alert-banner-title{font-weight:800;color:#9a3412;margin-bottom:8px}
.ec-alert-banner-list{display:flex;flex-wrap:wrap;gap:8px}
.ec-alert-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#ffedd5;color:#9a3412;font-size:.85rem;font-weight:700}
@media (max-width: 767px){.ec-alert-card{align-items:flex-start;flex-direction:column}.ec-alert-meta{align-items:flex-start;text-align:left}}

.ec-card-menu{position:relative}
.ec-menu-alert-dot{width:22px;height:22px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 6px rgba(220,38,38,.15),0 0 0 12px rgba(220,38,38,.08);display:inline-block;animation:ecPulse 1.4s infinite}
.ec-alert-banner-strong{border-color:#fca5a5;background:linear-gradient(180deg,#fff1f2,#fff)}
.ec-alert-banner-head{display:flex;gap:14px;align-items:center}
.ec-alert-signal{width:58px;height:58px;border-radius:18px;background:#dc2626;color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:900;box-shadow:0 10px 22px rgba(220,38,38,.28);flex:0 0 auto}
@keyframes ecPulse{0%{transform:scale(1)}50%{transform:scale(1.08)}100%{transform:scale(1)}}
@media (max-width:767px){.ec-alert-banner-head{align-items:flex-start}.ec-alert-signal{width:50px;height:50px;font-size:1.7rem}}
