:root{--green:#123d35;--ink:#172c26;--muted:#62756d;--line:#dae5df;--bg:#f2f6f3;--gold:#e6b84b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}header{background:#fff;border-bottom:1px solid var(--line);padding:18px max(22px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--green);font-size:30px;font-weight:850}.brand span{font-size:18px;line-height:1.25}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:500}main{max-width:1160px;margin:auto;padding:40px 24px 64px}.intro{margin-bottom:28px}.eyebrow,.badge{font-size:11px;font-weight:800;letter-spacing:.13em;color:#37685a}.intro h1{font-size:clamp(30px,5vw,46px);letter-spacing:-.04em;line-height:1.1;margin:10px 0 15px}p{color:var(--muted)}h2,h3{line-height:1.2;letter-spacing:-.025em}h2{font-size:25px;margin:12px 0}h3{font-size:18px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 8px 28px #123d3506}.login{max-width:510px;border-top:4px solid var(--green)}.badge{background:#eaf3ee;border-radius:6px;padding:6px 9px}label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}input,select{font:inherit;color:var(--ink);width:100%;border:1px solid #b9ccc2;background:#fff;border-radius:9px;min-height:46px;padding:10px 12px}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:18px;font:700 14px/1.4 system-ui;border:1px solid var(--green);border-radius:9px;min-height:44px;padding:11px 17px;background:var(--green);color:#fff}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#fff;color:var(--green);border-color:#c6d8ce}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #dcad39;outline-offset:3px}form button{width:100%;margin-top:15px;justify-content:space-between}.student-hint{border-top:1px solid var(--line);margin-top:24px;padding-top:20px;font-size:14px}.student-hint p{margin-bottom:0}.controls{padding:22px;margin-bottom:30px}#teacher-controls{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:16px;margin-bottom:18px}.period-controls{display:flex;gap:16px}.period-controls .field{min-width:150px;max-width:280px;flex:1}.empty{text-align:center;border:1px dashed #bdcec5;padding:65px 20px;border-radius:18px}.empty h2{font-size:20px}.report-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0}.report-heading h2{text-transform:capitalize;font-size:27px}.report-heading p{margin:6px 0}.actions{display:flex;flex-wrap:wrap;gap:10px}.grades{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:center;padding:19px 20px;border-bottom:1px solid #e6ede8;white-space:nowrap}th{background:#edf4ef;color:#426052;font-size:12px;font-weight:750}th:first-child,td:first-child{text-align:left;white-space:normal;min-width:200px}tbody tr:last-child td{border-bottom:0}.grade{font-size:19px;font-weight:750;color:var(--green)}.missing{font-size:12px;color:#77897e}.source{display:block;font-size:10px;color:var(--muted);font-weight:400;white-space:normal;max-width:220px;margin:5px auto 0}.help{font-size:12px;line-height:1.6;margin:18px 3px}#share{margin-bottom:20px}#share input{margin:10px 0 16px;font-size:13px}#message{border:1px solid #e4bf77;background:#fff5df;padding:13px 16px;border-radius:10px;color:#6b4e1d}#no-grades{padding:25px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}footer{text-align:center;color:var(--muted);font-size:12px;padding:25px;border-top:1px solid var(--line)}@media(max-width:720px){main{padding:27px 16px 40px}header{padding:15px 18px}#teacher-controls{grid-template-columns:1fr}.report-heading{display:block}.report-heading .actions{margin-top:20px}.card{padding:20px}.grades{padding:0}th,td{padding:15px 13px}.period-controls .field{min-width:0}.report-heading h2{font-size:23px}}@media print{header,#login,.intro,.controls,.actions,#share,#message,footer{display:none!important}body{background:white}main{padding:0;max-width:none}.card{box-shadow:none}.report-heading{margin-top:0}.table-wrap{overflow:visible}th,td{padding:10px}.help{font-size:10px}}

.access-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start}.access-grid .login{max-width:none}#student-login-form label:not(:first-child){margin-top:16px}.teacher-login{border-top-color:#a2baaf}@media(max-width:720px){.access-grid{grid-template-columns:1fr}}

/* ── Identidade visual EEMR (mesmos tokens do sistema: assets/product.css) ── */
:root{--green:#22664e;--green-dark:#194e3c;--green-soft:#eaf3ee;--dark:#172d29;--ink:#222b36;--muted:#687481;--line:#e5e8ed;--bg:#f5f6f8}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}
.hero{background:var(--dark);color:#f1f7f3;border:0;padding:0;display:block;position:relative;overflow:hidden}
.hero:after{content:'';position:absolute;width:320px;height:320px;border:52px solid #ffffff07;border-radius:50%;right:-90px;top:-120px;pointer-events:none}
.hero-in{max-width:1160px;margin:0 auto;padding:28px 24px 76px;display:flex;align-items:center;gap:22px;position:relative;z-index:1}
.hero-logo{flex:0 0 auto;width:92px;height:92px;border-radius:18px;background:#fff;display:grid;place-items:center;padding:8px;box-shadow:0 10px 28px #0000003a,0 0 0 4px #ffffff14}
.hero-logo img{max-width:100%;max-height:100%;object-fit:contain}
.hero-id{flex:1;min-width:0}
.hero-eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#9fc1b0;font-weight:650;margin:0 0 6px}
.hero-id h1{margin:0;font-size:30px;font-weight:650;letter-spacing:-.03em;line-height:1.2;color:#fff}
.hero-id p{margin:6px 0 0;font-size:13px;color:#c4d5cd}
.hero-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.hero-gov{display:flex;align-items:center;gap:10px;color:#9fb8ac;font-size:10px;line-height:1.35;text-align:right}
.hero-gov img{width:44px;height:auto}
.hero #logout{min-height:34px;padding:6px 14px;font-size:12px;background:#ffffff10;color:#e6f1ec;border-color:#ffffff30}
.hero #logout:hover{background:#ffffff1c;filter:none}
main{margin-top:-54px;padding-top:0;position:relative;z-index:2}
.card{border-radius:12px;border-color:var(--line);box-shadow:0 2px 4px #14253a03}
.login{border-top:3px solid var(--green);box-shadow:0 10px 24px #14253a0d}
.teacher-login{border-top-color:#9db8ab}
.eyebrow,.badge{color:var(--green);font-weight:650;letter-spacing:.1em}
.badge{background:var(--green-soft)}
h2{font-weight:650}
label{font-size:12px;font-weight:600;color:#4c5966}
input,select{border-color:#dfe5e9;border-radius:7px;font-size:14px;min-height:44px}
input:focus,select:focus{outline:none;border-color:#78a58e;box-shadow:0 0 0 3px #22664e1a}
button:focus-visible,a:focus-visible{outline:3px solid #83ad94;outline-offset:3px}
button{font:600 13px/1.4 inherit;font-family:inherit;border-radius:7px;background:var(--green);border-color:var(--green)}
button:hover{filter:none;background:var(--green-dark)}
.secondary{background:#fff;color:var(--green);border-color:#cfdcd4}
.secondary:hover{background:var(--green-soft)}
.controls{box-shadow:0 10px 24px #14253a0d}
.empty{background:#fff;border-color:#d6dde3;border-radius:12px}
.report-heading h2{font-size:26px;letter-spacing:-.03em}
th{background:#f8f9fb;color:#7b8792;font-size:11px;font-weight:600}
th,td{border-bottom-color:#edf0f3}
tbody th{color:var(--ink);font-size:14px;font-weight:600;background:#fff}
.grade{font-size:20px;font-weight:650;color:var(--ink)}
#message{border-radius:8px}
footer{border-top:0;color:#8a95a0;font-size:11px}

/* Progressão entre bimestres */
.delta{display:inline-block;font-size:11px;font-weight:650;border-radius:6px;padding:1px 7px;white-space:nowrap;margin-top:6px}
td .delta{display:table;margin:6px auto 0}
.delta-up{color:#1f6b45;background:#e6f2eb}.delta-down{color:#b4360c;background:#fdece4}.delta-eq{color:#5b6773;background:#eef1f4}
.progress{padding:0;margin-bottom:22px;overflow:hidden}
.progress-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding:20px 22px 12px}
.progress-eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--green);font-weight:650;margin:0 0 4px}
.progress-head h3{margin:0;font-size:18px;font-weight:650}
.progress-sub{margin:4px 0 0;font-size:12px}
.progress-avg-wrap{text-align:right}
.progress-avg{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:650;letter-spacing:-.02em}
.progress-avg b{color:#9aa4ad;font-weight:500}
.progress-avg .delta{margin:0;font-size:12px}
.progress-avg-wrap small{font-size:11px;color:#8a95a0}
.progress-counts{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 16px}
.progress-counts .delta{margin:0;font-size:12px;padding:3px 10px}
.progress-lists{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #edf0f3}
.progress-lists>div{padding:16px 22px}
.progress-lists>div+div{border-left:1px solid #edf0f3}
.progress-lists h4{margin:0 0 10px;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.06em;color:#71808a}
.progress-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #f1f3f5}
.progress-item:last-child{border-bottom:0}
.progress-name{font-size:13px;font-weight:550}
.progress-val{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.progress-val small{color:#8a95a0}
.progress-val .delta{margin:0}
.progress-none{font-size:12px;margin:0}
.progress-note{margin:0;padding:12px 22px;font-size:11px;background:#fafbfc;border-top:1px solid #edf0f3}

@media(max-width:720px){
 .hero-in{padding:20px 16px 64px;gap:14px}.hero-logo{width:64px;height:64px;border-radius:14px;padding:6px}
 .hero-id h1{font-size:22px}.hero-id p{font-size:12px}.hero-gov{display:none}
 main{margin-top:-44px}
 .progress-lists{grid-template-columns:1fr}.progress-lists>div+div{border-left:0;border-top:1px solid #edf0f3}
 .progress-head,.progress-counts,.progress-lists>div{padding-left:16px;padding-right:16px}.progress-avg-wrap{text-align:left}
}
@media print{
 header.hero{display:block!important;background:#fff;color:var(--ink);border-bottom:2px solid var(--green)}
 .hero:after,.hero #logout,.hero-id p#intro-text{display:none}
 .hero-in{padding:6px 0 12px}.hero-logo{box-shadow:none;border:1px solid var(--line);width:70px;height:70px}
 .hero-id h1{color:var(--ink);font-size:22px}.hero-eyebrow,.hero-gov{color:var(--muted)}
 main{margin-top:12px}
 .progress{break-inside:avoid}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
