/* Fase 22 — prontuário acadêmico, boletim, avaliações rápidas e apoiadores. */
.teacher-academic-overview,.report-hero,.report-panel,.report-card,.supporters-portal{margin:clamp(1.2rem,3vw,2.4rem) 0;padding:clamp(1rem,3vw,2rem);border:1px solid color-mix(in srgb,var(--gold,#d9aa4c) 42%,transparent);border-radius:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface,#0d1924) 94%,transparent),color-mix(in srgb,var(--gold,#d9aa4c) 6%,var(--surface,#0d1924)));box-shadow:0 24px 80px rgba(0,0,0,.16)}
.academic-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:1rem;margin-top:1.25rem}
.academic-student-card{display:grid;gap:1rem;padding:1.15rem;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--surface,#0d1924) 92%,transparent);min-width:0}
.academic-student-card__identity{display:flex;align-items:center;gap:.8rem;min-width:0}.academic-student-card__identity h3,.academic-student-card__identity p{margin:.1rem 0;overflow-wrap:anywhere}
.academic-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;font-weight:800;color:#07121c;background:linear-gradient(145deg,#f7d486,#b77818)}
.academic-student-card__progress{display:grid;grid-template-columns:68px 1fr;align-items:center;gap:.9rem;min-width:0}.academic-student-card__progress span,.academic-student-card__progress small{display:block;color:var(--muted)}.academic-student-card__progress strong{display:block;overflow-wrap:anywhere}
.academic-progress-ring{--academic-progress:0;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle closest-side,var(--surface,#0d1924) 76%,transparent 78% 99%),conic-gradient(var(--gold,#d9aa4c) calc(var(--academic-progress)*1%),rgba(255,255,255,.12) 0)}
.academic-progress-ring strong{font-size:.95rem;color:var(--gold,#d9aa4c)}
.academic-student-card dl{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:0}.academic-student-card dl div{padding:.65rem;border-radius:12px;background:rgba(127,127,127,.07)}.academic-student-card dt{font-size:.75rem;color:var(--muted)}.academic-student-card dd{margin:.2rem 0 0;font-weight:750;overflow-wrap:anywhere}
.student-record-dialog{width:min(1120px,calc(100% - 1rem));max-height:92dvh;padding:0;border:1px solid color-mix(in srgb,var(--gold,#d9aa4c) 55%,transparent);border-radius:24px;color:var(--text);background:var(--bg,#07121c);box-shadow:0 35px 120px rgba(0,0,0,.65);overflow:auto}.student-record-dialog::backdrop{background:rgba(1,7,13,.8);backdrop-filter:blur(6px)}.student-record-dialog>[data-student-detail-body]{padding:clamp(1rem,4vw,2.4rem)}.student-record-dialog__close{position:sticky;z-index:3;top:.7rem;left:calc(100% - 3.4rem);width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:1.6rem;cursor:pointer}
.student-record-summary,.report-summary-grid,.grade-weights,.grade-weight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0 1.5rem}.student-record-summary article,.report-summary-grid article,.grade-weights article,.grade-weight-grid article{display:grid;gap:.25rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:rgba(127,127,127,.06)}.student-record-summary span,.report-summary-grid span,.grade-weights span,.grade-weight-grid span{color:var(--muted);font-size:.8rem}.student-record-summary strong,.report-summary-grid strong,.grade-weights strong,.grade-weight-grid strong{font-size:clamp(1.3rem,3vw,2rem);color:var(--gold,#d9aa4c)}.student-record-summary small,.report-summary-grid small,.grade-weights small,.grade-weight-grid small{color:var(--muted)}
.academic-table-wrap{max-width:100%;overflow-x:auto}.academic-module-table small{display:block;max-width:260px;color:var(--muted)}
.student-comment-list{display:grid;gap:.8rem}.student-comment{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(220px,1fr) minmax(260px,1fr);gap:1rem;align-items:start;padding:1rem;border:1px solid var(--line);border-radius:16px;background:rgba(127,127,127,.05)}.student-comment>div{display:grid;gap:.3rem}.student-comment small{color:var(--muted)}.student-comment blockquote{margin:0;padding:.75rem;border-left:3px solid var(--gold,#d9aa4c);white-space:pre-wrap}.student-comment form{display:grid;grid-template-columns:90px 1fr auto;gap:.5rem;align-items:end}.student-comment form label{font-size:.75rem}.student-comment form input{width:100%;margin-top:.25rem}.student-comment form button{min-height:42px}
.quick-assessment textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85rem}.quick-assessment-list,.staff-list{display:grid;gap:.6rem;margin-top:1rem}.quick-assessment-list article,.staff-list article{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem;border:1px solid var(--line);border-radius:14px}.quick-assessment-list strong,.quick-assessment-list small,.staff-list strong,.staff-list small{display:block}.quick-assessment-list small,.staff-list small{color:var(--muted)}
.admin-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.supporters-admin{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.report-hero,.report-hero__inner{display:flex;justify-content:space-between;align-items:end;gap:1.5rem}.report-progress{display:grid;place-items:center;text-align:center;flex:0 0 170px;width:170px;height:170px;border-radius:50%;border:1px solid color-mix(in srgb,var(--gold,#d9aa4c) 60%,transparent);background:radial-gradient(circle,rgba(217,170,76,.16),transparent 70%)}.report-progress strong{font-size:2.5rem;color:var(--gold,#d9aa4c)}.report-progress span{display:block;max-width:110px;color:var(--muted)}.report-table-wrap{overflow-x:auto}.report-table small{display:block;color:var(--muted)}
.profile-report-link{display:flex;flex-direction:column;justify-content:center;gap:.3rem;padding:1rem;border:1px solid color-mix(in srgb,var(--gold,#d9aa4c) 50%,transparent);border-radius:16px;color:inherit;text-decoration:none;background:rgba(217,170,76,.07)}.profile-report-link strong{color:var(--gold,#d9aa4c)}
.supporters-hero{padding:clamp(7rem,14vw,12rem) 0 5rem;background:linear-gradient(90deg,rgba(3,10,18,.96),rgba(3,10,18,.58)),url('../assets/campaign/onda-tecnologia.png') center/cover no-repeat}.supporters-hero h1{max-width:850px}.supporters-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.supporters-grid article{display:grid;grid-template-columns:150px 1fr;gap:1.2rem;padding:1rem;border:1px solid var(--line);border-radius:22px;background:var(--surface)}.supporters-grid img{width:150px;aspect-ratio:1;object-fit:contain;border-radius:14px;background:#05090d}.supporters-portal{text-align:center}

html[data-theme="light"] .teacher-academic-overview,html[data-theme="light"] .report-hero,html[data-theme="light"] .report-panel,html[data-theme="light"] .report-card,html[data-theme="light"] .academic-student-card,html[data-theme="light"] .student-record-dialog,html[data-theme="light"] .supporters-portal{color:#13202b;background:#f7f4ed}html[data-theme="light"] .academic-progress-ring{background:radial-gradient(circle closest-side,#f7f4ed 76%,transparent 78% 99%),conic-gradient(#a66a10 calc(var(--academic-progress)*1%),#ded7c9 0)}html[data-theme="light"] .student-record-dialog__close{color:#13202b;background:#fff}html[data-theme="light"] .student-comment,html[data-theme="light"] .student-record-summary article,html[data-theme="light"] .report-summary-grid article,html[data-theme="light"] .grade-weights article,html[data-theme="light"] .grade-weight-grid article{color:#13202b;background:#fff}html[data-theme="light"] .supporters-hero{color:#fff}

@media(max-width:860px){.student-record-summary,.report-summary-grid,.grade-weights,.grade-weight-grid{grid-template-columns:1fr 1fr}.student-comment{grid-template-columns:1fr}.student-comment form{grid-template-columns:100px 1fr auto}.admin-tools-grid,.supporters-grid{grid-template-columns:1fr}.report-hero,.report-hero__inner{align-items:flex-start;flex-direction:column}.report-progress{width:130px;height:130px;flex-basis:130px}.teacher-table-wrap,.teacher-finance-table,.academic-table-wrap,.report-table-wrap{max-width:calc(100vw - 2rem);overflow-x:auto;-webkit-overflow-scrolling:touch}.teacher-shell{overflow-x:hidden}}
@media(max-width:560px){.teacher-academic-overview{padding:.8rem;border-radius:18px}.academic-roster{grid-template-columns:1fr}.academic-student-card dl{grid-template-columns:1fr 1fr}.academic-student-card__progress{grid-template-columns:58px 1fr}.academic-progress-ring{width:56px;height:56px}.student-record-summary,.report-summary-grid,.grade-weights,.grade-weight-grid{grid-template-columns:1fr}.student-comment form{grid-template-columns:1fr}.quick-assessment-list article,.staff-list article{align-items:flex-start;flex-direction:column}.supporters-grid article{grid-template-columns:92px 1fr}.supporters-grid img{width:92px}.student-record-dialog{border-radius:16px}.student-record-dialog>[data-student-detail-body]{padding:.8rem}.teacher-card__head{align-items:flex-start;flex-direction:column}}
@media print{.student-record-dialog{position:static;width:100%;max-height:none;border:0}.student-record-dialog__close{display:none}}
