@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Noto+Sans+Devanagari:wght@400;600&display=swap');
.test-shell{min-height:100vh;background:#f4f7fa;color:#14253a;font:16px/1.55 'DM Sans','Noto Sans Devanagari',sans-serif;padding:0 max(20px,calc((100vw - 1220px)/2)) 80px}.test-shell *{box-sizing:border-box}.test-shell h1,.test-shell h2,.test-shell h3{font-family:Manrope,'Noto Sans Devanagari',sans-serif;line-height:1.25;margin:0}.test-shell h1{font-size:clamp(32px,4vw,46px)}.test-shell h2{font-size:24px}.test-shell h3{font-size:18px}.test-shell p{color:#58697a;margin:9px 0 22px}.test-shell a{color:inherit;text-decoration:none}.test-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 0;border-bottom:1px solid #dce4eb;font-size:14px}.test-nav strong{letter-spacing:.1em;color:#a47717}.test-head{padding:45px 0 28px}.test-layout,.runner-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:24px}.test-card{background:#fff;border:1px solid #dce4eb;border-radius:14px;padding:28px;box-shadow:0 4px 24px rgba(16,35,55,.035);margin-bottom:20px}.test-card form{margin-top:24px}.test-card label:not(.answer-list label){display:block;font-weight:700;margin:14px 0}.test-card input:not([type=checkbox]):not([type=radio]),.test-search input{width:100%;padding:12px 14px;border:1px solid #bbc7d2;border-radius:7px;font:inherit;background:#fff;color:#14253a}.test-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.test-search{display:flex;gap:10px;margin-top:8px}.test-shell button,.test-primary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c2cbd5;border-radius:7px;padding:10px 15px;background:white;color:#14253a;font:700 14px 'DM Sans',sans-serif;cursor:pointer}.test-shell button:disabled{opacity:.5;cursor:not-allowed}.test-shell .test-primary{background:#142b44;color:#fff;border-color:#142b44;margin-top:14px}.test-question-list{max-height:330px;overflow:auto;border-top:1px solid #e0e6ed}.test-question-list label{display:flex!important;align-items:start;gap:10px;border-bottom:1px solid #e0e6ed;padding:12px 0;margin:0!important;font-weight:500!important}.test-question-list input{margin-top:5px}.test-question-list small{display:block;color:#687887;margin-top:5px}.test-list-item{border-top:1px solid #e0e6ed;padding:19px 0}.test-list-item p{margin:5px 0 12px}.test-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.test-actions a{font-weight:700;padding:10px}.test-alert,.test-success{padding:12px 16px;border-radius:8px;background:#ffeded!important;color:#8d2323!important}.test-success{background:#e7f6eb!important;color:#235e34!important}.test-report{border-top:2px solid #dce4eb;padding-top:20px}.test-report ol{padding-left:24px}.student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.test-eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;color:#a47717;text-transform:uppercase}.student-grid h2{margin:12px 0}.test-result{max-width:700px;margin:50px auto;text-align:center;padding:55px 30px}.test-result p{font-size:17px}.test-score{font-size:60px!important;font-weight:800;color:#a47717!important}.runner-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0}.runner-header h1{font-size:30px}.runner-header strong{white-space:nowrap;font-size:23px}.time-low{color:#bd2929}.runner-layout{grid-template-columns:minmax(0,1fr) 280px}.runner-layout .test-card h2{margin:18px 0}.question-hindi{font-size:19px;color:#14253a!important}.runner-image{max-width:100%;max-height:350px;object-fit:contain}.answer-list{display:grid;gap:12px;margin:28px 0}.answer-list label{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #dce4eb;border-radius:9px;cursor:pointer}.answer-list label.chosen{border-color:#ac842c;background:#fffae9}.answer-list b{background:#edf1f5;border-radius:6px;padding:4px 10px}.question-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.question-palette button.active{border-color:#a47717}.question-palette button.answered{background:#e7f6eb}@media(max-width:800px){.test-layout,.runner-layout,.student-grid{grid-template-columns:1fr}.test-nav strong{display:none}.test-card{padding:20px}.test-fields{grid-template-columns:1fr}.runner-header{align-items:start}.test-shell{padding-bottom:45px}}
.mcq-add{border-top:1px solid #dce4eb;margin-top:24px;padding-top:16px}.mcq-add p{font-size:14px}.mcq-editor{background:#f5f8fb;border:1px solid #dce4eb;border-radius:10px;padding:18px;margin:12px 0 24px}.mcq-editor h3{margin-bottom:12px}.mcq-editor textarea,.mcq-editor select{width:100%;min-height:44px;padding:12px 14px;border:1px solid #bbc7d2;border-radius:7px;font:inherit;background:white;color:#14253a}.mcq-editor textarea{min-height:85px;resize:vertical}.mcq-options{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}@media(max-width:600px){.mcq-options{grid-template-columns:1fr}}
.dashboard-shell{background:#f5f7fb}.dashboard-brand{font-weight:800;color:#bd8b2c!important;font-size:21px;letter-spacing:.01em}.dashboard-brand span{color:#142b44}.dashboard-welcome{margin:30px 0 24px;background:linear-gradient(110deg,#10273f,#20456c);border-radius:20px;color:#fff;padding:40px 44px;display:flex;align-items:center;justify-content:space-between;gap:20px}.dashboard-welcome h1{font-size:clamp(28px,3.5vw,42px);margin:10px 0}.dashboard-welcome p{color:#d8e5f2;margin:0}.dashboard-welcome .test-eyebrow{color:#f4c965}.dashboard-count{display:flex;flex-direction:column;text-align:center;min-width:140px;border-left:1px solid #66809a;padding-left:30px}.dashboard-count b{font-size:48px;line-height:1}.dashboard-count span{color:#d8e5f2}.dashboard-tabs{display:flex;gap:25px;border-bottom:1px solid #dce4eb;margin-bottom:24px}.dashboard-tabs button{border:0;border-radius:0;background:transparent;padding:12px 5px;color:#61738a}.dashboard-tabs button.selected{color:#142b44;border-bottom:3px solid #bb8b31}.dashboard-controls{display:flex;gap:16px;align-items:end;margin-bottom:24px}.dashboard-controls label{font-weight:700;flex:1}.dashboard-controls label:last-child{max-width:240px}.dashboard-controls input,.dashboard-controls select{display:block;margin-top:7px;width:100%;padding:12px 14px;border:1px solid #bdcad8;border-radius:9px;background:#fff;color:#14253a;font:inherit}.dashboard-test{min-height:230px;display:flex;flex-direction:column;margin:0}.dashboard-test h2{margin:12px 0 18px}.dashboard-test .test-primary{align-self:flex-start;margin-top:auto}.dashboard-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.dashboard-meta span{background:#f0f4f8;color:#536679;border-radius:6px;padding:5px 9px;font-size:14px}.dashboard-complete{color:#29784b!important;font-weight:700}.dashboard-result-score{font-size:27px;font-weight:800;color:#142b44!important}.dashboard-empty{grid-column:1/-1}@media(max-width:700px){.dashboard-welcome{padding:28px 22px}.dashboard-count{min-width:70px;padding-left:15px}.dashboard-count b{font-size:34px}.dashboard-count span{font-size:12px}.dashboard-controls{flex-direction:column;align-items:stretch}.dashboard-controls label:last-child{max-width:none}.dashboard-brand{font-size:17px}}
.test-card select{width:100%;padding:12px 14px;border:1px solid #bbc7d2;border-radius:7px;font:inherit;background:#fff;color:#14253a}.course-shell .test-head{padding-bottom:20px}.course-section-title{margin-bottom:20px!important}.course-section-title span{font-size:16px;background:#e6edf5;color:#274b70;border-radius:99px;padding:4px 11px;vertical-align:middle}.course-card{margin:0}.course-card h2{margin:11px 0}.course-card h3{font-size:17px;margin-top:22px}.course-card ul{padding-left:22px;color:#52657a;line-height:1.8}.course-card .course-date{color:#254d71;font-weight:700}.course-test-list{border-top:1px solid #e0e6ed;margin-top:25px}.course-test-list p{margin-bottom:0}.course-test-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #edf1f4;padding:14px 0}.course-test-row small{display:block;color:#66788a;margin-top:3px}.course-test-row a{color:#1f527d;font-weight:700;white-space:nowrap}.course-footer{margin-top:28px}.course-footer a{color:#1d527e;font-weight:700}
/* Enhanced CBT: original Naukari Crown palette and responsive components */
.runner-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:#536679;font-weight:700}.runner-toolbar label{display:flex;align-items:center;gap:8px}.runner-toolbar select{width:auto;padding:7px;font-size:14px}.runner-actions{border-top:1px solid #e4e9ef;padding-top:17px;margin-top:20px}.marked-button{background:#fff5df!important;border-color:#d19f3a!important;color:#674910!important}.palette-legend{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:15px;font-size:12px;color:#536679}.palette-legend span:nth-child(1){color:#27744a}.palette-legend span:nth-child(2){color:#9b711e}.question-palette button.answered{border-color:#59a77b;background:#e1f7eb;color:#145e36}.question-palette button.reviewed{border-color:#d2a24a;background:#fff0c6;color:#785418}.question-palette button.unanswered{border-color:#b8c9dc;background:#e9f2ff}.question-palette button.active{box-shadow:0 0 0 2px #183c65;outline:1px solid white}.palette-note{font-size:12px;margin:18px 0 0!important}.result-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.result-stat-grid div{padding:15px;background:#f4f7fc;border-radius:10px;display:flex;flex-direction:column}.result-stat-grid b{font-size:26px}.result-stat-grid span{color:#647387;font-size:13px}.subject-summary{display:grid;gap:9px;margin-top:20px}.subject-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e3ebf3;border-radius:10px;padding:10px 16px;flex-wrap:wrap}.subject-summary span{color:#687887}.answer-review article{padding:24px 0;border-bottom:1px solid #e2e8ed}.answer-review article h3{margin:11px 0}.review-options{display:grid;gap:7px;margin:16px 0}.review-options div{padding:9px 12px;border:1px solid #e5e9ef;border-radius:7px}.review-options .correct-option{background:#e3f7eb;border-color:#57ad76}.review-options .wrong-option{background:#fff0ef;border-color:#d88585}.test-card img{height:auto;object-fit:contain}.test-shell small{color:#62758a}.test-shell .runner-header small{display:block;margin-top:6px}.test-shell :focus-visible{outline:3px solid #e7b949;outline-offset:3px}
@media(max-width:600px){.result-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.runner-header{flex-direction:column;padding:22px 0}.runner-header strong{font-size:25px}.runner-toolbar{align-items:start}.answer-list label{padding:11px;gap:10px}.test-result{padding:28px 18px;margin:20px auto}.test-shell h1{font-size:28px}.test-shell h2{font-size:21px}}
.dashboard-controls-four{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(120px,1fr));align-items:end;gap:12px}.dashboard-controls-four label:last-child{max-width:none}@media(max-width:850px){.dashboard-controls-four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.dashboard-controls-four{grid-template-columns:1fr}}
.paste-paper{padding:17px;margin:17px 0;background:#f7f9fe;border:1px solid #dce6f2;border-radius:12px}.paste-paper summary{font-weight:800;color:#183d62;cursor:pointer}.paste-paper textarea{display:block;width:100%;padding:12px 14px;border:1px solid #bbc7d2;border-radius:8px;background:#fff;font:inherit;resize:vertical}.paste-preview{border-top:1px solid #dae4ef;padding:14px 0;margin-top:16px}.paste-preview>div{padding:12px 0;border-bottom:1px solid #dae4ef}.paste-preview small{display:block;overflow-wrap:anywhere}

/* PDF-to-question import: local extraction, human review, no auto-publishing */
.pdf-import-workflow{border:1px solid #d7e4f1;border-radius:13px;background:#f6f9fe;margin:24px 0;padding:19px;overflow-wrap:anywhere}
.pdf-import-workflow>summary{color:#123b68;font-size:17px;font-weight:800;cursor:pointer}
.pdf-import-workflow p,.pdf-import-workflow li{line-height:1.55}
.pdf-tag{background:#edf1f7;color:#536b83;font-size:12px;font-weight:800;border-radius:99px;padding:3px 9px;margin-left:8px}
.pdf-intro{color:#53677e;font-size:14px}.pdf-upload-grid,.pdf-row,.pdf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.pdf-import-workflow textarea,.pdf-import-workflow input:not([type="checkbox"]),.pdf-import-workflow select{width:100%;max-width:100%;padding:11px 12px;background:white;border:1px solid #b7cadf;border-radius:9px;font:inherit;color:#14253a;box-sizing:border-box}
.pdf-import-workflow textarea{resize:vertical;min-height:85px}.pdf-upload-grid label,.pdf-review-question label{min-width:0;display:block;margin:12px 0;font-weight:700;font-size:14px}
.pdf-upload-grid small{display:block;font-size:12px;margin-top:6px;overflow-wrap:anywhere}.pdf-small{color:#51657b!important;font-size:12px}
.pdf-issues{border:1px solid #e6b68f;background:#fff8ed;border-radius:8px;padding:12px 15px;margin:16px 0;font-size:13px;max-height:275px;overflow:auto}
.pdf-issues ul{padding-left:19px;margin:8px 0}.pdf-review{margin-top:18px;border-top:1px solid #ccdcec;padding-top:20px}
.pdf-review-header{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.pdf-review-header span{font-size:13px;color:#4b627b}
.pdf-source{margin:17px 0 22px;border:1px solid #d0def0;background:#eff5fb;border-radius:10px;padding:14px}
.pdf-source select{max-width:130px}.pdf-source pre{white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:230px;font:14px/1.6 'Noto Sans Devanagari','DM Sans',sans-serif;background:white;border:1px solid #d5e3f3;border-radius:6px;padding:13px}
.pdf-review-question{border:1px solid #d9e3ed;border-radius:10px;background:white;padding:14px;margin:13px 0}
.pdf-review-question>summary{font-size:14px;font-weight:700;cursor:pointer;line-height:1.7;overflow-wrap:anywhere}
.pdf-review-question>summary span{margin-right:8px;display:inline-block;padding:2px 7px;border-radius:7px;font-size:12px}
.pdf-status-danger{background:#fff0e5;color:#923d0e}.pdf-status-ok{background:#edf5ff;color:#1d5c91}
.pdf-review-question .pdf-check,.pdf-import-workflow .pdf-check{display:flex;gap:10px;align-items:flex-start;margin:20px 0;font-weight:700;font-size:13px}
.pdf-check input{margin-top:5px;flex-shrink:0}.pdf-import-workflow button{margin:12px 0 2px;max-width:100%}
@media(max-width:690px){.pdf-upload-grid,.pdf-row,.pdf-options{grid-template-columns:minmax(0,1fr)}.pdf-import-workflow{padding:12px}.pdf-source pre{max-height:170px}}

.pdf-review-workarea{display:grid;grid-template-columns:minmax(200px,0.85fr) minmax(0,1.2fr);gap:16px;align-items:start;margin:16px 0}
.pdf-review-workarea>.pdf-source{position:sticky;top:12px;margin:0;max-height:85vh;overflow:auto;min-width:0}
.pdf-edit-list{min-width:0;max-height:85vh;overflow:auto}
.pdf-source a{font-weight:800;display:inline-block;margin-top:8px;color:#19558b}
@media(max-width:850px){.pdf-review-workarea{grid-template-columns:minmax(0,1fr)}.pdf-review-workarea>.pdf-source{position:static;max-height:260px}.pdf-edit-list{max-height:none;overflow:visible}}

.pdf-attached-image{display:block;width:auto;max-width:100%;max-height:240px;margin-top:10px;border:1px solid #dce6ee;border-radius:8px;background:white}
