/* V82 — Make Topic Wise Practice use the same CBT-style live-test experience as PYQ/Sample Papers. */
body.topic-exam-active{overflow:hidden!important;background:#e7edf5}
body.topic-exam-active>.announce,
body.topic-exam-active>.site-header,
body.topic-exam-active>footer,
body.topic-exam-active main>.topic-practice-hero,
body.topic-exam-active .topic-intro-card,
body.topic-exam-active #topicPracticeGrid,
body.topic-exam-active #topicSetPanel{display:none!important}
body.topic-exam-active main{margin:0!important;padding:0!important}
body.topic-exam-active #topicTestPanel{display:block!important;position:fixed!important;inset:0!important;z-index:15000!important;margin:0!important;padding:0!important;background:#e7edf5!important;overflow:hidden!important}
body.topic-exam-active #topicTestPanel>.topic-panel-head{display:none!important}
body.topic-exam-active #topicTestPanel>.topic-score{display:none!important}
body.topic-exam-active #topicTestPanel .topic-test-wrap{height:calc(100vh - 66px)!important;display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:12px!important;padding:12px!important;overflow:hidden!important;align-items:stretch!important}
body.topic-exam-active #topicTestPanel .topic-test-wrap>div:first-child{height:100%!important;min-height:0!important;overflow:hidden!important;background:#f8fafc;border:1px solid #bdccdd;border-radius:14px;box-shadow:0 8px 24px rgba(20,48,81,.10);display:flex;flex-direction:column}
body.topic-exam-active #topicQuestionBox{flex:1!important;min-height:0!important;overflow:auto!important;margin:0!important;border:0!important;border-radius:14px 14px 0 0!important;box-shadow:none!important;background:#f8fafc!important;padding:18px 20px 12px!important}
body.topic-exam-active .topic-directions{background:#edf4fc!important;border:1px solid #b9cde4!important;border-left:4px solid #0b3769!important;color:#183b64!important;border-radius:10px!important;font-weight:650}
body.topic-exam-active .topic-question-card h3{background:#fffdf8!important;border:1px solid #d7b35f!important;border-radius:12px!important;color:#102e54!important;padding:14px 15px!important;box-shadow:0 4px 13px rgba(44,60,79,.05)}
body.topic-exam-active .topic-option{background:#fff!important;border-color:#b7c9dc!important;color:#17395f!important;box-shadow:0 2px 6px rgba(31,60,93,.035)}
body.topic-exam-active .topic-option:hover{background:#f1f7fd!important;border-color:#719bc7!important}
body.topic-exam-active .topic-option:has(input:checked){background:#e5f0fb!important;border-color:#2367aa!important;color:#0c315b!important}
body.topic-exam-active .topic-actions{flex:0 0 auto!important;margin:0!important;padding:10px 14px!important;background:#f8fafc;border-top:1px solid #dfe7ef;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
body.topic-exam-active .topic-side{position:static!important;top:auto!important;width:auto!important;height:100%!important;max-height:none!important;min-height:0!important;overflow:auto!important;margin:0!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbe3ed!important;box-shadow:0 8px 24px rgba(24,45,73,.07)!important}
.topic-exam-topbar{height:66px;display:flex;align-items:center;gap:18px;padding:8px 14px 8px 18px;background:linear-gradient(135deg,#072750,#0d467e);color:#fff;border-bottom:3px solid #d3a642;box-shadow:0 5px 16px rgba(7,31,66,.15);z-index:5}
.topic-exam-title{min-width:0;flex:1}.topic-exam-title small{display:block;color:#f1ca64;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;margin-bottom:2px}.topic-exam-title strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.topic-exam-status{display:flex;align-items:center;gap:18px}.topic-exam-metric{min-width:92px;text-align:center;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22)}.topic-exam-metric span{display:block;font-size:8px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#dbe7f5}.topic-exam-metric strong{display:block;margin-top:1px;font-size:16px;line-height:1.1}.topic-exam-submit{border:0;border-radius:10px;background:linear-gradient(135deg,#d6aa42,#efc665);color:#102747;padding:11px 16px;font-weight:950;cursor:pointer}.topic-exam-omr-toggle{display:none;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;padding:9px 12px;font-weight:900}.topic-mobile-omr-close{display:none}
.topic-bubble.correct{background:#dff4e6!important;border-color:#4da96b!important;color:#18562c!important}.topic-bubble.wrong{background:#fde7e7!important;border-color:#d86b6b!important;color:#8b2525!important}.topic-bubble.unattempted{background:#eef1f5!important;border-color:#c6ced8!important;color:#667085!important}.topic-answer-review{margin-top:16px;padding:14px;border:1px solid #b7dec2;border-radius:12px;background:#eef8f1;color:#315b3d}.topic-answer-review p{margin:4px 0}
#topicScoreBox:not(.hidden){background:#fff;border:1px solid #d9e5f1;border-radius:18px;padding:22px;box-shadow:0 10px 28px rgba(13,49,95,.08);margin-bottom:18px}
/* Reuse the PYQ/Sample instruction appearance exactly. */
.topic-instruction-overlay{position:fixed;inset:0;z-index:20000;background:linear-gradient(145deg,#eef4fb 0%,#f8fafc 45%,#eef2f7 100%);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.topic-instruction-card{width:min(900px,100%);background:#fff;border:1px solid #dbe4ef;border-radius:22px;box-shadow:0 24px 70px rgba(8,31,63,.18);overflow:hidden}
.topic-instruction-head{padding:22px 26px;background:linear-gradient(135deg,#071f42,#0d4f91);color:#fff;border-bottom:3px solid #d7ad55}.topic-instruction-head small{display:block;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#f2cf83;margin-bottom:7px}.topic-instruction-head h2{margin:0;color:#fff;font-size:clamp(22px,3.2vw,34px);line-height:1.15}.topic-instruction-body{padding:24px 26px}.topic-test-facts{margin:0 0 22px;padding:13px 16px;border:1px solid #bfd2e8;border-radius:12px;background:linear-gradient(135deg,#f7fbff,#edf5ff);color:#0c2c55;font-size:13px;font-weight:800;line-height:1.55;text-align:center}.topic-instruction-body h3{margin:0 0 10px;color:#0b2b55;font-size:18px}.topic-instruction-list{list-style:none;counter-reset:topicInstruction;margin:0;padding:0;display:grid;gap:8px}.topic-instruction-list li{counter-increment:topicInstruction;position:relative;margin:0;padding:11px 14px 11px 48px;border-radius:11px;border:1px solid #dbe5f0;color:#243f62;font-weight:600;line-height:1.55}.topic-instruction-list li::before{content:counter(topicInstruction);position:absolute;left:12px;top:10px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-size:12px;font-weight:900;background:#2b67ad}.topic-instruction-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}.topic-instruction-actions button{border:0;border-radius:12px;padding:15px 24px;font-weight:900;cursor:pointer}.topic-instruction-actions .cancel{background:transparent;color:#5d6f83;padding-left:0}.topic-instruction-actions .start{background:linear-gradient(135deg,#d9ad4b,#f0cc78);color:#13213b;box-shadow:0 10px 24px rgba(195,145,43,.28)}
@media(max-width:820px){.topic-instruction-overlay{padding:10px;align-items:flex-start}.topic-instruction-card{margin:8px 0;border-radius:16px}.topic-instruction-head{padding:17px}.topic-instruction-body{padding:17px}.topic-test-facts{font-size:11px;text-align:left}.topic-instruction-list li{font-size:12.5px}.topic-instruction-actions{display:block}.topic-instruction-actions .start{display:block;width:100%;margin-top:14px}.topic-exam-topbar{height:58px;padding:7px 9px;gap:7px}.topic-exam-title small{display:none}.topic-exam-title strong{font-size:12px}.topic-exam-status{gap:6px}.topic-exam-metric{min-width:68px;padding:5px 6px}.topic-exam-metric:first-child{display:none}.topic-exam-metric span{font-size:7px}.topic-exam-metric strong{font-size:13px}.topic-exam-submit{padding:9px 10px;font-size:10px}.topic-exam-omr-toggle{display:inline-flex;font-size:10px}body.topic-exam-active #topicTestPanel .topic-test-wrap{display:block!important;padding:7px!important;height:calc(100vh - 58px)!important}body.topic-exam-active #topicTestPanel .topic-test-wrap>div:first-child{height:100%!important;border-radius:10px}body.topic-exam-active #topicQuestionBox{padding:12px 12px 8px!important}body.topic-exam-active .topic-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px!important}body.topic-exam-active .topic-side{position:fixed!important;top:0!important;right:-110%!important;bottom:0!important;width:min(88vw,380px)!important;height:100vh!important;z-index:15100!important;border-radius:0!important;transition:right .25s ease!important;padding-top:48px!important;box-shadow:-12px 0 38px rgba(7,31,66,.25)!important}body.topic-exam-active.topic-mobile-omr-open .topic-side{right:0!important}.topic-mobile-omr-close{display:block;position:absolute;top:9px;right:10px;z-index:3;border:0;border-radius:9px;background:#0b3769;color:#fff;padding:8px 11px;font-weight:900;cursor:pointer}}
