:root{--navy:#102b4e;--gold:#e8c66c;--green:#176746;--muted:#536678;--line:#dce4eb;--purple:#713ca1;--red:#b63140}*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#172c44;font:16px/1.55 system-ui,'Noto Sans Tamil',Arial,sans-serif}header{display:flex;align-items:center;gap:12px;padding:12px max(16px,calc((100vw - 1120px)/2));background:var(--navy);color:var(--gold)}header img{width:60px;height:60px;object-fit:contain;border-radius:50%;background:white}header b{font-size:17px;letter-spacing:.03em}header small{display:block;color:white}header .open{margin-left:auto;color:white;font-size:12px;white-space:nowrap}main{max-width:1120px;margin:auto;padding:18px 14px 30px;min-height:400px}footer{background:var(--navy);color:#f4e4bc;text-align:center;padding:24px 14px;font-size:13px;overflow-wrap:anywhere}footer a,footer .link{color:white}a{color:#125d7e}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(24px,4vw,38px);line-height:1.2}h2{font-size:23px;line-height:1.3}h3{font-size:18px}small,.muted{color:var(--muted);font-size:13px}header small{font-size:12px}button,input,select{font:inherit}button{background:white;border:1px solid #b9cad8;color:var(--navy);font-weight:650;border-radius:9px;padding:10px 14px;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--green);border-color:var(--green);color:white}button.review{background:var(--purple);color:white;border-color:var(--purple)}button.danger{color:var(--red);border-color:#d6a6ac}button.link{border:0;background:none;text-decoration:underline;padding:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #458cd8;outline-offset:2px}input:not([type=checkbox]),select{width:100%;border:1px solid #b9cad8;border-radius:8px;background:white;color:var(--navy);padding:10px}label{display:block;font-weight:650;margin:10px 0 4px}label.check{display:flex;align-items:flex-start;gap:8px;font-weight:400}label.check input{margin-top:6px}.card{border:1px solid var(--line);border-radius:14px;background:white;padding:18px;margin-bottom:14px;box-shadow:0 3px 13px #102b4e08}.hero{background:linear-gradient(130deg,#102b4e,#25466c);color:white;border-radius:15px;padding:25px;margin-bottom:14px}.gold{color:var(--gold)}.hero p{color:#e6eef6}.row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.between{justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.stat{background:#f2f6fa;padding:12px;border:1px solid var(--line);border-radius:10px}.stat b{display:block;font-size:23px;color:var(--navy)}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(235px,290px);gap:12px}.quizhead{position:sticky;top:0;z-index:2;background:white;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:12px}.timer{font-weight:800;font-variant-numeric:tabular-nums;color:#b63140;font-size:20px}.stem{font-size:18px;font-weight:650;white-space:pre-wrap;overflow-wrap:anywhere}.option{display:block;width:100%;text-align:left;white-space:pre-wrap;font-weight:500;margin:8px 0;overflow-wrap:anywhere}.selected{background:#e7f0fe;border:2px solid #3169b0}.correct{background:#e1f3e7;border-color:#25854f;color:#12582d}.wrong{background:#fbe7e8;border-color:#b63140;color:#85242c}.feedback{background:#edf6ef;padding:14px;border-left:4px solid #25854f;white-space:pre-wrap;margin:12px 0}.palette{display:grid;grid-template-columns:repeat(auto-fill,minmax(37px,1fr));gap:6px;max-height:350px;overflow:auto;padding:5px}.palette button{padding:7px 2px;font-size:13px;min-height:36px}.unvisited{background:#e5e7eb;color:#344151}.unanswered{background:#b63140;color:white}.answered{background:#176746;color:white}.marked{background:#713ca1;color:white}.both{background:#713ca1;color:white}.current{outline:3px solid #e6b63f;outline-offset:1px}.legend{font-size:12px;display:grid;gap:4px;margin:12px 0}.legend span{display:inline-block;width:15px;height:15px;border-radius:3px;vertical-align:middle;margin-right:4px}.quote{background:#fbf6e8;border:1px solid #e5d5a2;border-radius:12px;text-align:center;padding:18px;margin:14px 0}.quote .kural{font-weight:700;font-size:clamp(14px,2.6vw,20px);line-height:1.9}.quote p{margin:8px 0}.notice{background:#fff5dc;border:1px solid #e8d298;border-radius:8px;padding:11px;margin-bottom:12px}.error{color:#a21e31;font-weight:600}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:9px;border:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}th{background:#eff4f9}details{border-bottom:1px solid var(--line);padding:10px 0}summary{cursor:pointer;font-weight:650}.bar{height:10px;border-radius:9px;background:#dfe7ee;overflow:hidden}.bar i{height:100%;display:block;background:var(--green)}.history{max-height:450px;overflow:auto}.chart{width:100%;height:auto}.actions{margin-top:12px}.modal{position:fixed;inset:0;background:#102b4e99;display:grid;place-items:center;padding:16px;z-index:10}.modal .card{width:min(500px,100%);max-height:90vh;overflow:auto}.hidden{display:none!important}body.testing footer{display:none}body.testing header img{width:36px;height:36px}body.testing header small{display:none}.community a{display:inline-block;margin:4px 10px 4px 0}.mini{width:44px;height:44px;object-fit:contain;vertical-align:middle}.admin .tablewrap{max-height:450px} @media(max-width:680px){main{padding:10px}.columns{display:flex;flex-direction:column}.card{padding:13px}.hero{padding:18px}.quizhead{position:relative}.palette{max-height:220px}.open{display:none}header b{font-size:14px}header img{width:46px;height:46px}.row.actions button{flex:1 1 40%}.stem{font-size:16px}.option{padding:12px}.quote{padding:12px}.quote .kural{font-size:14px}} @media print{header,footer,button,.no-print{display:none!important}body{background:white}.card{box-shadow:none;break-inside:avoid}}
