:root{font-family:Inter,"Noto Sans Tamil",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#eaf4fa;background:#071525;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 78% 0%,#12334a 0,transparent 34%),#071525}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.shell{max-width:1150px;margin:auto;padding:25px 20px 45px}.topbar{display:flex;align-items:center;gap:11px}.brandmark{height:43px;width:43px;border:1px solid #40d3b4;border-radius:12px;background:#123a42;display:grid;place-items:center;color:#5ef4d1;font-size:26px;font-weight:900}.brand{display:flex;flex-direction:column;line-height:1.05}.brand strong{font-size:20px;letter-spacing:2px}.brand strong span{color:#55edc9}.brand small{font-size:9px;letter-spacing:2.1px;color:#80a2b5;margin-top:7px}.topbadge{margin-left:auto;color:#7be9cb;border:1px solid #275967;border-radius:99px;padding:7px 11px;font-size:10px;letter-spacing:1px;font-weight:800}.hero{margin:51px 0 33px;max-width:850px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:2.4px;font-weight:800;color:#9cb8c7}.green-dot{display:inline-block;width:8px;height:8px;background:#51e2b7;border-radius:50%;box-shadow:0 0 0 5px #143b3d}.hero h1{font-size:clamp(41px,7vw,75px);line-height:1.13;letter-spacing:-2px;margin:19px 0}.hero h1 em{font-style:normal;color:#56e8c5}.hero p{font-size:15px;line-height:1.95;color:#b8ccd8;max-width:790px}.pillrow{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.pillrow span{font-size:11px;color:#9ddacb;border:1px solid #244c56;background:#0b2531;border-radius:99px;padding:8px 12px}.layout{display:grid;grid-template-columns:1fr 1.1fr;gap:20px}.panel{border:1px solid #254052;border-radius:20px;padding:24px;background:linear-gradient(145deg,#102536,#0a1d2d);box-shadow:0 12px 38px #00000017}.panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.panel-heading h2{font-size:17px;letter-spacing:-.1px;margin:0 0 4px}.panel-heading p{font-size:11px;color:#8faabe;margin:0;line-height:1.6}.numbox{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;border:1px solid #285364;border-radius:10px;color:#71edca;font-weight:800;font-size:12px}.uploadbox{display:flex;width:100%;align-items:center;justify-content:center;flex-direction:column;min-height:200px;border:1.5px dashed #376079;background:#0b2032;border-radius:16px;color:#e8f8ff;gap:10px;padding:20px}.uploadbox:hover,.uploadbox:focus-visible{border-color:#4ce4ba;background:#113041}.uploadicon{font-size:30px;background:#174c51;width:50px;height:50px;border-radius:14px;display:grid;place-items:center;color:#5cf0ca}.uploadbox strong{font-size:16px}.uploadbox small{color:#8daab9;font-size:11px}.upload-action{font-size:12px;color:#5aebc3;font-weight:800;margin-top:6px}.filename{color:#8eacba;margin:10px 0 19px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-grid{display:grid;gap:14px;grid-template-columns:1fr 1fr}.form-grid label{font-size:11px;color:#adc3d0;display:flex;gap:8px;flex-direction:column}.form-grid select{max-width:100%;min-width:0;width:100%;font-size:12px;padding:12px 8px;background:#091b2b;border:1px solid #325064;color:#e7f6fc;border-radius:10px}.cta{width:100%;margin-top:19px;border:0;border-radius:12px;background:#4bdfba;color:#062b2d;font-size:14px;font-weight:800;padding:16px 12px}.cta span{font-size:20px;margin-right:5px}.cta:not(:disabled):hover{background:#7ef4d6}.status{font-size:11px;color:#9fb9c9;margin:14px 0;line-height:1.7;min-height:22px}.progress-track{height:6px;width:100%;background:#213846;border-radius:99px;overflow:hidden;margin:6px 0 14px}.progress-track div{height:100%;width:0;background:linear-gradient(90deg,#37a8ac,#65eac2);transition:width .2s}.note{background:#122b37;border-radius:10px;padding:13px 14px;border-left:2px solid #ffc176;font-size:11px;line-height:1.9;color:#afc0cb}.note strong{color:#efc689}.video-stage{background:#03111e;min-height:320px;aspect-ratio:16/11;border:1px solid #23425a;border-radius:15px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.video-stage video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.video-stage canvas{width:100%;height:100%;position:absolute;inset:0;pointer-events:none}.empty-preview{display:flex;flex-direction:column;align-items:center;gap:9px;color:#abc2cf}.empty-preview .target{font-size:65px;color:#194956;margin-bottom:10px}.empty-preview b{font-size:17px}.empty-preview small{color:#7095a9;font-size:11px}.stage-chip{position:absolute;top:13px;left:13px;background:#073c3acc;color:#62edc8;border:1px solid #216a5f;border-radius:99px;padding:6px 10px;font-size:10px;font-weight:800;letter-spacing:1px}.legend{display:flex;gap:17px;color:#91acbb;font-size:11px;align-items:center;margin-top:15px}.legend span:last-child{margin-left:auto}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.teal{background:#51e6c2}.coral{background:#feaa89}.hint{font-size:11px;color:#87a7b9;line-height:1.8;margin:15px 0 0}.results-panel{margin-top:20px}.result-banner{display:flex;justify-content:space-between;align-items:center;background:#092d33;border:1px solid #22665e;border-radius:16px;padding:20px;gap:20px}.result-banner small{font-size:10px;color:#75cbb2;letter-spacing:1px}.result-banner strong{display:block;font-size:19px;margin-top:9px}.result-banner p{font-size:12px;color:#acc8c9;line-height:1.8;margin-bottom:0}.report-count{text-align:center;min-width:95px}.report-count strong{font-size:38px;color:#6beccc;margin:0}.report-count small{display:block}.finding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.finding{border:1px solid #2b4658;border-radius:14px;padding:18px;background:#0b2130}.finding .tag{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#b4cbd6;font-weight:800}.finding.review{border-color:#73543a}.finding.review .tag{color:#ffbe84}.finding.ok .tag{color:#72eac3}.finding.na .tag{color:#b2b0bf}.finding h3{font-size:15px;margin:12px 0 8px}.finding p{color:#afc4d0;font-size:12px;line-height:1.85;margin:0}.finding .metric{color:#89a5b2;font-size:11px;margin-top:12px;font-weight:700}.results-actions{display:flex;gap:10px;flex-wrap:wrap}.secondary{border:1px solid #37647a;background:#123347;border-radius:10px;color:#dbf6f7;padding:12px 17px;font-size:12px;font-weight:800}.disclaimer{font-size:11px;line-height:1.8;color:#88a7b9}.howto{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.howto>div{border:1px solid #1e3b4d;background:#0b2030;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px}.howto b{font-size:11px;color:#51e8c4}.howto strong{font-size:15px}.howto small{font-size:11px;color:#89a9b9;line-height:1.7}footer{text-align:center;color:#587e90;font-size:10px;letter-spacing:1px;margin-top:30px;line-height:1.8}@media(max-width:810px){.layout{grid-template-columns:1fr}.hero{margin:40px 0 27px}.panel{padding:18px}.video-stage{aspect-ratio:16/10;min-height:275px}.finding-grid{grid-template-columns:1fr}}@media(max-width:500px){.shell{padding:17px 13px 32px}.topbadge{font-size:8px;padding:6px}.brand strong{font-size:17px}.hero h1{font-size:43px}.form-grid{grid-template-columns:1fr}.video-stage{min-height:225px}.howto{grid-template-columns:1fr}.result-banner{align-items:flex-start}.report-count{min-width:75px}}
/* v0.2: mobile-first student management and comparison history */
.students-panel{margin-bottom:20px}
.student-row{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.student-pick{flex:1;min-width:230px}
.student-pick,.add-student-form label{display:flex;flex-direction:column;gap:9px;color:#a9c4d0;font-size:12px}
.student-pick select,.add-student-form input{width:100%;border:1px solid #37576a;background:#0a2030;color:#f2ffff;border-radius:11px;padding:13px;font:inherit;font-size:14px}
.student-total{font-size:12px;color:#7eafbe;margin-bottom:12px}
.student-total strong{color:#59e9c4}
.add-student-form{margin:17px 0 0;display:grid;grid-template-columns:1fr minmax(125px,.6fr) auto;align-items:end;gap:11px}
.add-student-form button{height:44px}
.student-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:15px;color:#8faebc;font-size:11px}
.student-actions span:last-child{margin-left:auto}
.student-actions b{color:#d7f3f1}
.text-button{border:0;padding:3px 0;background:none;font-size:12px;font-weight:700;color:#80e9d1}
.delete-text{color:#ffad9b}
.local-warning{padding:13px 15px;font-size:12px;color:#f3d5a2;background:#352c25;border:1px solid #75583a;line-height:1.85;border-radius:10px}
.history-panel{margin-top:20px}
.history-stats{display:flex;gap:12px}
.history-stats>div{flex:1;padding:18px;border:1px solid #2b5061;border-radius:13px;background:#0b2535;display:flex;flex-direction:column;gap:5px}
.history-stats small{font-size:11px;color:#86b4bb}
.history-stats strong{font-size:28px;color:#67eccc}
.history-subheading{font-size:15px;color:#d8f5f2;margin:25px 0 14px}
.improvement-panel{border:1px solid #2b5061;border-radius:13px;padding:17px;background:#0a2231}
.trend-summary strong{font-size:13px}
.muted{color:#a9c0ca;font-size:12px;line-height:1.9;margin:9px 0}
.trend-tally{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}
.trend-number{padding:13px 8px;background:#123343;border-radius:10px;text-align:center;display:flex;flex-direction:column;gap:7px}
.trend-number strong{font-size:30px;color:#bcd9e4}
.trend-number.good strong{color:#66edbb}
.trend-number.warn strong{color:#ffc49a}
.trend-number small{color:#b1d0d8;font-size:10px;line-height:1.6}
.comparison-rows{margin-top:15px;display:grid;gap:8px}
.comparison-row{display:flex;justify-content:space-between;gap:13px;border-top:1px solid #294657;padding-top:10px;font-size:11px}
.comparison-row span:first-child{font-weight:700}
.comparison-row span:last-child{color:#b4cbd6;text-align:right}
.improvement-panel h3{font-size:13px;margin-top:21px}
.trend-bars{display:flex;align-items:end;gap:10px;min-height:140px;overflow-x:auto;padding-top:13px}
.trend-bar-item{min-width:41px;flex:1;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:5px}
.trend-bar-item small{font-size:10px;color:#bdd3df}
.trend-column{width:100%;max-width:45px;min-height:8px;background:linear-gradient(#60e3c6,#2c96a7);border-radius:6px 6px 2px 2px}
.history-list{display:grid;gap:11px}
.history-item{border:1px solid #29495a;background:#0a2130;border-radius:12px;padding:14px}
.history-head{display:flex;gap:12px;justify-content:space-between;align-items:center}
.history-head>div{display:flex;flex-direction:column;gap:5px}
.history-head strong{font-size:13px;color:#e2f8f2}
.history-head small{font-size:11px;color:#91afc0;word-break:break-all}
.history-count{font-size:10px;color:#ffd5a7;background:#3a302c;border-radius:99px;padding:6px 10px;white-space:nowrap}
.history-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.secondary.tiny{font-size:11px;padding:9px 12px}
.backup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}
@media(max-width:680px){.add-student-form{grid-template-columns:1fr 1fr}.add-student-form button{grid-column:1/-1}.student-actions span:last-child{margin-left:0;width:100%}}
@media(max-width:390px){.add-student-form{grid-template-columns:1fr}.trend-tally{grid-template-columns:1fr 1fr 1fr}.comparison-row{flex-direction:column;gap:4px}}
