/* Whole-exam import follows the existing teacher blue workspace. */
.exam-packages-page{--ep-ink:#263d55;--ep-muted:#61758a;--ep-blue:#24569a;--ep-line:#dce5ef;color:var(--ep-ink);font-size:16px;min-width:0;padding:26px 0 44px}
.exam-packages-page *{box-sizing:border-box}
.exam-packages-page :is(h1,h2,h3,p,ul){margin:0}
.exam-packages-page :is(button,input,select,textarea){font:inherit}
.exam-packages-page :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #789dc9;outline-offset:3px}
.exam-packages-page :is(input,select,textarea){min-height:44px;min-width:0;max-width:100%;border:1px solid #c9d8e9;border-radius:12px;padding:10px 12px;background:#fcfdff;color:var(--ep-ink)}
.exam-packages-page input[type=checkbox]{width:19px;height:19px;min-height:0;padding:0;accent-color:var(--ep-blue);flex:none}
.exam-packages-page .btn{min-height:44px;border:1px solid #cedbea;border-radius:999px;padding:10px 17px;background:#fff;color:#365f8e;box-shadow:none;font-size:15px;font-weight:500;line-height:1.5}
.exam-packages-page .btn.primary{background:var(--ep-blue);color:#fff;border-color:var(--ep-blue)}
.exam-packages-page .btn:hover{background:#eef4fc;border-color:#a9c2e0}
.exam-packages-page .btn.primary:hover{background:#194477}
.exam-packages-page .btn:disabled{opacity:.55;cursor:not-allowed}
.ep-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.ep-heading h1{font-size:30px;line-height:1.35;letter-spacing:-.035em}
.ep-heading p{color:var(--ep-muted);font-size:15px;line-height:1.8;margin-top:8px;max-width:650px}
.ep-eyebrow{display:block;font-size:13px;font-weight:500;color:#54759c;line-height:1.7;margin-bottom:7px}
.ep-heading-actions,.ep-actions,.ep-inline,.ep-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ep-heading-actions{justify-content:flex-end;flex:none}
.ep-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0;margin:0 0 22px!important}
.ep-steps li{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:2px solid #d5e1ef;color:#70859e;font-size:15px;min-height:50px}
.ep-steps li>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #c6d7e9;border-radius:50%;font-size:13px;flex:none}
.ep-steps li[aria-current=step]{border-color:var(--ep-blue);color:var(--ep-blue);font-weight:600}
.ep-steps li[aria-current=step]>span{background:var(--ep-blue);border-color:var(--ep-blue);color:#fff}
.ep-layout{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:22px;align-items:start}
.ep-main,.ep-aside{min-width:0;display:grid;gap:18px}
.ep-card{border:1px solid var(--ep-line);border-radius:24px;padding:25px 27px;background:#fff;min-width:0;overflow:hidden}
.ep-card h2{font-size:22px;line-height:1.4;letter-spacing:-.025em}
.ep-card h3{font-size:17px;line-height:1.5}
.ep-card>p,.ep-card header>p{color:var(--ep-muted);line-height:1.8;margin-top:9px;font-size:15px}
.ep-card header{margin-bottom:21px}
.ep-form{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:21px}
.ep-form>*{min-width:0}
.ep-field{display:grid;gap:7px;min-width:0;color:#3e5b7d;font-size:15px}
.ep-field>span:first-child{font-weight:600}
.ep-field small,.ep-hint{font-size:13px;line-height:1.8;color:var(--ep-muted);font-weight:400}
.ep-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ep-wide{grid-column:1/-1}
.ep-field input,.ep-field select,.ep-field textarea{width:100%}
.ep-field textarea{resize:vertical;min-height:84px;line-height:1.8}
.ep-upload{padding:23px 20px;border:1px dashed #a8c2e0;border-radius:18px;background:#f5f9ff;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:10px}
.ep-upload input{width:100%;padding:10px;background:#fff;border-color:#d7e2f0}
.ep-upload input::file-selector-button{background:#eaf2fc;color:#345f92;border:1px solid #ccdcef;border-radius:999px;padding:8px 13px;margin-right:12px;font:inherit;cursor:pointer}
.ep-file-list{list-style:none;padding:0;display:grid;gap:8px}
.ep-file-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e4ebf4;align-items:flex-start;font-size:14px;overflow-wrap:anywhere}
.ep-file-list li:last-child{border-bottom:0}
.ep-file-list li>span:last-child{color:#647e9a;font-size:13px;flex:none}
.ep-note{padding:14px 16px;border:1px solid #dae5f3;border-radius:14px;background:#f3f7fd;color:#547397;line-height:1.85;font-size:14px}
.ep-error{padding:14px 16px;border:1px solid #e7cfc8;border-radius:14px;background:#fbf5f3;color:#854d42;line-height:1.85;font-size:14px;margin:0 0 17px}
.ep-error:empty,.ep-error[hidden]{display:none}
.ep-actions{border-top:1px solid #e4ebf3;padding-top:18px;justify-content:space-between}
.ep-actions .ep-hint{flex:1;min-width:120px}
.ep-actions .btn.primary{margin-left:auto}
.ep-aside .ep-card{padding:22px;background:#f7faff}
.ep-aside h2,.ep-aside h3{font-size:16px}
.ep-aside p{font-size:14px;line-height:1.85}
.ep-summary{margin:17px 0 0;display:grid;gap:11px}
.ep-summary>div{display:flex;gap:16px;justify-content:space-between;font-size:14px;line-height:1.7}
.ep-summary dt{color:#6b8199;flex:none}
.ep-summary dd{margin:0;text-align:right;color:#3e5f83;overflow-wrap:anywhere}
.ep-status{display:inline-flex;align-items:center;border:1px solid #d4e1f1;border-radius:999px;padding:3px 10px;background:#edf4fc;color:#476b98;font-size:13px;font-weight:500;line-height:1.7}
.ep-status.partial{border-color:#e1d8ca;background:#f8f5ef;color:#7a664a}
.ep-checkbox{display:flex;align-items:flex-start;gap:10px;line-height:1.85;color:#4d6988;font-size:15px;cursor:pointer}
.ep-checkbox input{margin-top:5px}
.ep-check-list{display:flex;gap:9px 18px;flex-wrap:wrap}
.ep-check-list label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.ep-scope{min-width:0;padding:17px 19px;background:#f6f9fe;border:1px solid #dce6f2;border-radius:16px}
.ep-scope h3{font-size:15px;margin-bottom:9px}
.ep-subject-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ep-subject-list .ep-field{font-size:14px}
.ep-subject-list input{padding:8px 10px;min-width:0}
.ep-task-list{list-style:none;padding:0;display:grid;gap:0}
.ep-task-list li{padding:15px 0;border-top:1px solid #e5ecf4;display:flex;align-items:center;justify-content:space-between;gap:18px}
.ep-task-list li:first-child{border-top:0}
.ep-task-list h3{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.ep-task-list p{font-size:13px;line-height:1.8;color:#6c819b;margin-top:5px}
.ep-task-list .btn{flex:none;font-size:14px}
.ep-progress{margin:16px 0 0;display:grid;gap:9px;font-size:14px;color:#5e7b9c}
.ep-progress progress{width:100%;height:10px;accent-color:var(--ep-blue)}
.ep-section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}
.ep-section-title>p{font-size:14px;color:#64809d}
.ep-details{border-top:1px solid #e1e9f3;padding:15px 0;min-width:0}
.ep-details:last-child{padding-bottom:0}
.ep-details summary{cursor:pointer;color:#3f6592;line-height:1.8;font-size:15px;min-height:44px;overflow-wrap:anywhere}
.ep-details[open]>summary{margin-bottom:12px}
.ep-mapping-table,.ep-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
.ep-mapping-table{min-width:560px}
.ep-table{min-width:720px}
.ep-table th,.ep-mapping-table th{padding:12px 11px;background:#f1f6fc;color:#577494;font-weight:500;border-bottom:1px solid #dbe5f1}
.ep-table td,.ep-mapping-table td{padding:12px 11px;border-bottom:1px solid #e4ebf4;vertical-align:top;line-height:1.8;color:#456382;overflow-wrap:anywhere;max-width:300px}
.ep-mapping-table select{min-width:160px;font-size:14px}
.ep-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #dee7f2;border-radius:15px;overscroll-behavior-x:contain}
.ep-table small{font-size:12px;color:#7086a0;display:block}
.ep-table .ep-before{color:#7a8da2}
.ep-pagination{justify-content:space-between;margin-top:14px;font-size:13px;color:#607d9b}
.ep-pagination .btn{font-size:13px;padding:8px 15px}
.ep-problems{list-style:none;padding:0;display:grid;gap:12px}
.ep-problems li{border:1px solid #e0e7f0;background:#f9fbfe;border-radius:14px;padding:15px 17px;color:#4c698a;line-height:1.8;font-size:14px}
.ep-problems strong{display:block;font-weight:600;color:#365a85;margin-bottom:5px}
.ep-problems .ep-field{margin-top:11px;font-size:14px}
.ep-source{margin-top:6px;color:#6d839d;font-size:13px;overflow-wrap:anywhere}
.ep-source details{margin-top:5px}
.ep-source summary{cursor:pointer;min-height:36px;padding-top:6px}
.ep-counts{display:flex;flex-wrap:wrap;gap:9px 21px;margin:18px 0;font-size:14px;line-height:1.9;color:#567493}
.ep-counts strong{color:#2d5689;font-weight:600;margin:0 4px}
.ep-complete{padding:23px 25px;background:#f1f6fd;border:1px solid #d8e5f5;border-radius:18px;margin-bottom:22px}
.ep-complete h2{font-size:23px;color:#315d92}
.ep-complete p{color:#56789c;font-size:15px;line-height:1.85;margin-top:10px}
.ep-loader{padding:42px 25px;text-align:center;color:#58789e;background:#fff;border:1px solid var(--ep-line);border-radius:24px;font-size:15px;line-height:1.8}
.ep-empty{padding:25px;border:1px dashed #c7d8eb;border-radius:18px;color:#617c99;font-size:15px;line-height:1.85}
.ep-muted{color:var(--ep-muted)}
@media(max-width:1050px){.ep-layout{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.ep-card{padding:23px}.ep-aside .ep-card{padding:20px}.ep-subject-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.ep-layout{grid-template-columns:minmax(0,1fr)}.ep-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-heading{align-items:flex-start}.ep-heading-actions{flex-direction:column}.ep-heading h1{font-size:28px}}
@media(max-width:600px){.exam-packages-page{padding:17px 0 28px}.ep-heading{gap:12px;margin-bottom:18px}.ep-heading h1{font-size:26px}.ep-heading p{font-size:14px}.ep-heading-actions .btn{font-size:13px;padding:9px 12px}.ep-heading-actions{gap:8px}.ep-eyebrow{font-size:12px}.ep-steps{gap:10px;margin-bottom:18px!important}.ep-steps li{font-size:13px;gap:6px;min-height:48px;white-space:nowrap}.ep-steps li>span{width:24px;height:24px;font-size:12px}.ep-card{padding:21px 18px;border-radius:24px}.ep-card h2{font-size:21px}.ep-card header{margin-bottom:18px}.ep-fields{grid-template-columns:minmax(0,1fr);gap:15px}.ep-wide{grid-column:auto}.ep-aside{grid-template-columns:1fr}.ep-upload{padding:18px 14px}.ep-upload input{font-size:14px}.ep-upload input::file-selector-button{margin-right:7px;padding:8px 10px}.exam-packages-page :is(.btn,input,select,textarea){min-height:48px}.exam-packages-page :is(input,select,textarea){font-size:16px}.exam-packages-page input[type=checkbox]{min-height:0}.ep-form{gap:18px}.ep-actions{gap:13px}.ep-actions .btn.primary{width:100%;margin:0}.ep-actions .ep-hint{flex-basis:100%;order:2}.ep-check-list{gap:7px 14px}.ep-check-list label{min-height:48px}.ep-subject-list{gap:10px}.ep-task-list li{align-items:flex-start;gap:12px}.ep-task-list .btn{font-size:13px;padding:10px 13px}.ep-details summary{min-height:48px}.ep-table{font-size:14px}.ep-pagination .btn{padding:9px 13px}.ep-section-title{align-items:flex-start;flex-wrap:wrap}.ep-note,.ep-error{padding:13px 14px;font-size:14px}.ep-checkbox{font-size:14px}.ep-source summary{min-height:44px}.ep-heading-actions .btn{min-height:48px}}
@media(prefers-reduced-motion:reduce){.exam-packages-page *{scroll-behavior:auto!important;transition:none!important}}

.exam-packages-page .ep-heading{scroll-margin-top:24px}
