*{box-sizing:border-box}
html{width:100%;overflow-x:hidden}
body{margin:0;background:#f4f6f7;color:#17232b;font-family:system-ui,-apple-system,"Noto Sans Bengali",Arial,sans-serif;overflow-x:hidden}
button,input,select{font:inherit}
.wrap{width:100%;max-width:1200px;margin:auto;padding:16px;min-width:0}
.hero{background:#17303a;color:#fff;border-radius:18px;padding:22px;margin-bottom:14px;min-width:0;overflow:hidden}
.hero-brand{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-width:0}
.hero-copy{min-width:0}
.hero-copy>div:first-child{overflow-wrap:anywhere}
.hero h1{margin:4px 0;font-size:28px;line-height:1.15;overflow-wrap:anywhere}
.hero p{margin:0;color:#c7d4d9;font-size:14px}
.hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:460px;min-width:0;margin-left:auto}
.motivation-quote{max-width:390px;padding-top:3px;color:#e3eef1;text-align:right;font-size:14px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
.sheets-link{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:8px 10px;border:1px solid rgba(255,255,255,.26);border-radius:10px;background:#fff;color:#17303a;text-decoration:none;font-size:12px;line-height:1.3;font-weight:800;text-align:center;overflow-wrap:anywhere;word-break:break-word;transition:transform .12s ease,background .12s ease}
.sheets-link:hover{background:#eef4f6;transform:translateY(-1px)}
.sheets-link:focus-visible{outline:2px solid #fff;outline-offset:2px}
.topbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}
.control{width:100%;min-width:0;padding:10px 12px;border-radius:10px;border:1px solid #d2dbe0;background:#fff;font:inherit}
.topbar #session{flex:0 1 220px}
.grow{flex:1;min-width:220px}
.class-tabs,.subject-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;min-width:0}
.tab{border:1px solid #d2dbe0;background:#fff;color:#17303a;border-radius:10px;padding:9px 13px;font:inherit;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.tab:hover{border-color:#9fb0b8}.tab.active{background:#17303a;color:#fff;border-color:#17303a}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:18px 0 10px;min-width:0}.section-head h2{margin:0;font-size:20px;overflow-wrap:anywhere}.section-head .muted{font-size:13px}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat{background:#fff;border:1px solid #dbe2e6;border-radius:14px;padding:13px;min-width:0}.stat small{color:#6d7b83}.stat b{font-size:21px;display:block;margin-top:4px;overflow-wrap:anywhere}
.card{background:#fff;border:1px solid #dbe2e6;border-radius:14px;padding:14px;margin-bottom:12px;min-width:0}.tablewrap{overflow:auto;border:1px solid #dbe2e6;border-radius:12px;background:#fff;max-width:100%}.table{width:100%;border-collapse:collapse;min-width:720px}.table th,.table td{padding:9px 10px;border-bottom:1px solid #edf0f2;text-align:left}.table th{font-size:12px;color:#5f6d75;background:#f8fafb;position:sticky;top:0}.rank{font-weight:800}.clickrow{cursor:pointer}.clickrow:hover td{background:#f8fafb}
.exam-panel{border:1px solid #dbe2e6;border-radius:14px;background:#fff;margin-bottom:12px;overflow:hidden;min-width:0}.exam-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;background:#f8fafb;border-bottom:1px solid #edf0f2;min-width:0}.exam-head>div{min-width:0}.exam-head h3{margin:0;font-size:17px;overflow-wrap:anywhere}.exam-head .muted{font-size:12px;overflow-wrap:anywhere}.exam-body{padding:0}.result-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e8eef0;color:#17303a;font-size:12px;font-weight:700;white-space:nowrap}
.student-result{margin-top:14px;min-width:0}.resulthead{background:#17303a;color:#fff;border-radius:14px;padding:16px;margin-bottom:12px;min-width:0;overflow:hidden}.resulthead h2{overflow-wrap:anywhere}.subjectbox{border:1px solid #dbe2e6;border-radius:12px;background:#fff;padding:13px;margin-bottom:12px;min-width:0}.marks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.mark{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid #edf0f2;min-width:0}.mark span,.mark b{overflow-wrap:anywhere}.muted{color:#708087}.empty{padding:18px;text-align:center;color:#718087}.footer{text-align:center;color:#89969d;font-size:12px;padding:18px}.search-note{font-size:12px;color:#718087;margin-top:8px}
@media(max-width:760px){.wrap{padding:12px}.hero{padding:17px}.hero-brand{gap:12px}.hero-actions{max-width:330px}.motivation-quote{max-width:330px;font-size:13px}.sheets-link{font-size:15px;padding:7px 6px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{display:grid;grid-template-columns:1fr;align-items:stretch}.topbar #session,.grow{min-width:0;width:100%;flex:none}.table{min-width:660px}}
@media(max-width:520px){.wrap{padding:8px}.hero{padding:13px;border-radius:14px}.hero-brand{flex-direction:column;align-items:stretch;gap:7px}.hero-actions{max-width:none;align-items:stretch;gap:6px}.hero h1{font-size:21px;line-height:1.18;margin:3px 0}.hero p{font-size:11px}.motivation-quote{max-width:none;padding:6px 0 0;font-size:12px;line-height:1.4;text-align:right}.sheets-link{width:100%;font-size:15px;padding:8px 6px}.topbar{gap:7px;margin-top:12px}.control{font-size:13px;padding:9px 10px}.class-tabs,.subject-tabs{gap:5px;margin-bottom:10px}.tab{padding:7px 9px;font-size:12px;border-radius:8px}.section-head{align-items:flex-start;flex-direction:column;gap:5px;margin:14px 0 8px}.section-head h2{font-size:17px}.section-head .muted{font-size:11px}.grid{grid-template-columns:1fr 1fr;gap:7px}.stat{padding:9px;border-radius:11px}.stat small{font-size:9px;line-height:1.25}.stat b{font-size:16px;line-height:1.15}.card{padding:10px;border-radius:12px}.tablewrap{border-radius:10px}.table{min-width:0;table-layout:fixed;font-size:11px}.table th,.table td{padding:7px 6px;word-break:break-word}.table th{font-size:9px}.exam-head{padding:10px;align-items:flex-start}.exam-head h3{font-size:14px}.exam-head .muted{font-size:10px}.result-badge{font-size:9px;padding:4px 6px}.resulthead{padding:12px;border-radius:12px}.resulthead h2{font-size:19px;margin:4px 0}.subjectbox{padding:10px;border-radius:10px}.marks{grid-template-columns:1fr}.mark{padding:8px 9px;font-size:11px}.empty{padding:12px;font-size:11px}.footer{font-size:10px;padding:12px}}
@media(max-width:360px){.wrap{padding:6px}.hero{padding:11px}.hero h1{font-size:19px}.motivation-quote{font-size:11px}.sheets-link{font-size:14px;padding:7px 5px}.tab{font-size:11px;padding:6px 8px}.grid{gap:5px}.stat{padding:8px}.stat b{font-size:15px}.table{font-size:10px}.table th{font-size:8.5px}.table th,.table td{padding:6px 5px}}