/* Additions inherit the existing classroom palette and typography. */
.grades-help{font-size:.875rem;line-height:1.7;color:#475569;margin:12px 0 20px;max-width:80ch}
.grades-six-settings{margin:0 0 24px;padding:16px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;color:#334155}
.grades-six-settings[hidden]{display:none}
.grades-electives,.grades-compare-controls{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 20px}
.grades-electives label,.grades-compare-controls label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:#334155;font-weight:600}
.grades-electives select,.grades-compare-controls select,.grades-compare-controls input{min-height:44px;padding:8px 12px;border:1px solid #94a3b8;border-radius:8px;background:white;color:#1e293b;font:inherit;max-width:100%;caret-color:#4f46e5}
.grades-compare-controls input::placeholder{color:#64748b}
.grades-compare-heading h2{font-size:1.5rem;font-weight:700;color:#1e293b}
.grades-compare-heading p{color:#475569;margin:8px 0 20px}
#comparisonContent{min-width:0}
#comparisonContent h3{font-size:1.125rem;font-weight:700;color:#1e293b;margin:32px 0 12px}
.grades-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #cbd5e1;border-radius:12px;scrollbar-color:#94a3b8 #f1f5f9}
.grades-compare-table{width:100%;border-collapse:collapse;text-align:left;font-size:.875rem;font-variant-numeric:tabular-nums;color:#334155;white-space:nowrap}
.grades-compare-table th,.grades-compare-table td{padding:12px 16px;border-bottom:1px solid #e2e8f0}
.grades-compare-table thead th{background:#f1f5f9;font-weight:700}
.grades-compare-table tbody th{font-weight:600}
.grades-compare-table tbody tr:last-child>*{border-bottom:0}
.grades-compare-table tbody tr:hover{background:#f8fafc}
.grades-compare-table small{font-size:.75rem;color:#475569}
.grades-compare-table th small{display:block;font-weight:400;margin-top:4px}
.grades-chart-wrap{height:340px;position:relative;width:100%;min-width:0;margin:16px 0}
.grades-mean-details{margin-top:12px;color:#334155;font-size:.875rem}
.grades-mean-details summary{cursor:pointer;padding:12px 0;text-decoration:underline;text-underline-offset:4px}
#comparisonContent :focus-visible,.grades-six-settings :focus-visible{outline:3px solid #4f46e5;outline-offset:3px}
#comparisonContent ::selection{background:#e0e7ff;color:#312e81}
#tab-comparison{white-space:nowrap}
@media(max-width:640px){body[data-classroom-tool=grades] .max-w-7xl{padding:16px}body[data-classroom-tool=grades] .glass-panel{padding:16px}body[data-classroom-tool=grades] header .max-w-7xl{flex-wrap:wrap;gap:12px}body[data-classroom-tool=grades] .glass-panel>div:first-child{flex-wrap:wrap;gap:12px}body[data-classroom-tool=grades] #dashboard{padding:0}body[data-classroom-tool=grades] #dashboard>div{padding:16px}body[data-classroom-tool=grades] #dashboard>div:first-child{flex-wrap:nowrap;gap:0;padding:0 8px}.grades-compare-controls>*{flex:1;min-width:140px}.grades-compare-table th,.grades-compare-table td{padding:10px 12px}.grades-chart-wrap{height:300px}}
@media(prefers-reduced-motion:reduce){#comparisonContent *{transition:none;animation:none}}
/* The original offscreen toast still appeared in tall page captures. Hide it until needed. */
#error-toast:not(.show){visibility:hidden;pointer-events:none}
body[data-classroom-tool=grades] .tab-btn{white-space:nowrap;flex-shrink:0}
