.self-mock-exam{display:grid;gap:24px;padding:24px 0 36px;color:var(--text);font-family:var(--sans)}
.self-mock-exam button,.sme-create-dialog button{font-family:inherit}
.sme-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.sme-eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--text-faint);margin:0 0 10px}
.sme-heading h1{font-size:32px;letter-spacing:-1px;margin:0 0 10px;font-weight:650}
.sme-heading p:not(.sme-eyebrow){color:var(--text-faint);line-height:1.8;font-size:14px;margin:0}
.sme-heading>.button{flex-shrink:0}
.sme-overview{display:grid;grid-template-columns:150px 150px 1fr;align-items:center;gap:24px;padding:25px 28px;background:var(--surface);border:1px solid var(--border);border-radius:20px}
.sme-overview>div{display:flex;flex-direction:column;gap:10px}
.sme-overview>div>span{font-size:12px;color:var(--text-faint)}
.sme-overview strong{font-size:28px;font-weight:600;line-height:1.2}
.sme-overview strong small{font-size:12px;font-weight:400;color:var(--text-faint)}
.sme-overview>p{font-size:13px;line-height:1.9;color:var(--text-faint);margin:0;padding-left:28px;border-left:1px solid var(--border)}
.sme-running-banner,.sme-ready-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:22px 25px;border:1px solid #c8d7b9;border-radius:16px;background:#edf3e6}
.sme-running-banner strong,.sme-ready-note strong{font-size:15px;font-weight:600}
.sme-running-banner p,.sme-ready-note p{font-size:12px;line-height:1.8;color:var(--text-soft);margin:6px 0 0}
.sme-ready-note>div{flex:1;min-width:220px}
.sme-ready-note>.sme-error{width:100%}
.sme-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.sme-list-heading h2{font-size:19px;margin:0;font-weight:600}
.sme-list-heading>span{font-size:12px;color:var(--text-faint)}
.sme-exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sme-exam-card{min-width:0;display:flex;flex-direction:column;padding:23px;background:var(--surface);border:1px solid var(--border);border-radius:18px}
.sme-exam-card.is-running{border-color:#a4bf88}
.sme-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sme-subject{color:var(--text-soft);font-size:12px}
.sme-status{font-size:11px;white-space:nowrap;color:var(--text-faint);border:1px solid var(--border);padding:4px 8px;border-radius:6px}
.is-running .sme-status,.sme-status.is-running{color:#4b722f;border-color:#bad0a7;background:#edf5e5}
.is-submitted .sme-status,.sme-status.is-submitted{color:#76599a;border-color:#d8cbe8;background:#f4effa}
.sme-exam-card h3{font-size:17px;font-weight:600;line-height:1.7;overflow-wrap:anywhere;margin:17px 0 7px}
.sme-exam-card>p{font-size:12px;color:var(--text-faint);margin:0 0 22px}
.sme-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}
.sme-card-bottom>small{font-size:11px;line-height:1.7;color:var(--text-faint)}
.sme-card-bottom .button{font-size:12px;min-height:36px;padding:8px 12px;white-space:nowrap}
.sme-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;padding:60px 24px;background:var(--surface);border:1px solid var(--border);border-radius:20px}
.sme-empty-symbol{font-size:42px;color:#809b65;line-height:1}
.sme-empty h2{font-size:20px;line-height:1.8;font-weight:600;margin:20px 0 4px}
.sme-empty p{font-size:13px;line-height:2;color:var(--text-faint);margin:10px 0 24px}
.sme-storage-note{font-size:11px;color:var(--text-faint);line-height:1.8;margin:0}
.sme-detail{display:grid;gap:20px;min-width:0}
.sme-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.sme-detail-heading>div:first-child{min-width:0}
.sme-detail-heading .button{padding:7px 10px;min-height:32px;font-size:11px;margin-right:10px;margin-bottom:12px}
.sme-detail-heading h2{font-size:24px;line-height:1.7;overflow-wrap:anywhere;margin:0 0 8px;font-weight:600}
.sme-detail-heading p{font-size:12px;line-height:1.8;color:var(--text-faint);margin:0}
.sme-countdown{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0;padding:17px 23px;background:var(--surface);border:1px solid var(--border);border-radius:14px}
.sme-countdown>span{font-size:12px;color:var(--text-soft)}
.sme-countdown>strong{font-size:29px;font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:1px;font-weight:600}
.sme-countdown>small{font-size:10px;color:var(--text-faint)}
.sme-countdown.is-urgent{border-color:var(--warning-border);background:var(--warning-soft)}
.sme-countdown.is-urgent>strong{color:var(--warning)}
.sme-complete{display:grid;gap:8px;text-align:right;flex-shrink:0}
.sme-complete>strong{font-size:16px;font-weight:600;color:var(--success)}
.sme-complete>span{font-size:12px;color:var(--text-faint)}
.sme-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:18px;align-items:start}
.sme-paper-pane,.sme-answer-pane{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:20px}
.sme-pane-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:15px}
.sme-pane-title h3{font-size:15px;font-weight:600;margin:0}
.sme-pane-title>span{font-size:11px;color:var(--text-faint)}
.sme-file-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:13px}
.sme-file-tabs button{max-width:220px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid var(--border);border-radius:8px;color:var(--text-soft);background:var(--surface);font-size:11px;padding:8px 10px;cursor:pointer}
.sme-file-tabs button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-ink)}
.sme-preview{min-height:440px;max-height:800px;overflow:auto;display:flex;align-items:flex-start;justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--surface-subtle)}
.sme-preview>p{padding:35px 20px;line-height:1.8;font-size:12px;color:var(--text-faint)}
.sme-preview iframe{width:100%;height:680px;border:0;background:white}
.sme-preview img{display:block;max-width:100%;height:auto}
.sme-preview-tools{display:flex;flex-wrap:wrap;gap:16px;padding-top:13px}
.sme-preview-tools a{font-size:11px;line-height:1.7;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.sme-answer-label{font-size:12px;line-height:1.8;color:var(--text-faint);display:block;margin-bottom:12px}
.sme-answer{display:block;width:100%;min-height:380px;resize:vertical;border:1px solid var(--border);border-radius:9px;padding:15px;background:var(--surface);color:var(--text);font:13px/1.9 var(--sans);box-sizing:border-box}
.sme-answer[readonly]{background:var(--surface-subtle)}
.sme-save-status,.sme-score-status{font-size:11px;line-height:1.8;margin:10px 0 0;color:var(--text-faint)}
.sme-answer-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-top:20px}
.sme-answer-actions>.button,.sme-submit-confirm .button{font-size:12px}
.sme-submit-confirm{min-width:0;text-align:right}
.sme-submit-confirm summary{cursor:pointer;display:inline-block;font-size:12px;padding:12px 0;text-decoration:underline;text-underline-offset:4px;color:var(--text-soft)}
.sme-submit-confirm p{max-width:220px;font-size:11px;line-height:1.8;color:var(--text-faint);margin:8px 0 12px}
.sme-score-form{margin-top:25px;padding-top:22px;border-top:1px solid var(--border)}
.sme-score-form h3{font-size:16px;font-weight:600;margin:0 0 10px}
.sme-score-form>p{font-size:12px;line-height:1.8;color:var(--text-faint)}
.sme-score-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0}
.sme-score-form label,.sme-create-fields label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--text-soft)}
.sme-score-form input,.sme-score-form textarea,.sme-create-fields input,.sme-create-fields select{box-sizing:border-box;min-width:0;width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;font:13px/1.7 var(--sans);padding:10px 11px}
.sme-score-form textarea{resize:vertical}
.sme-score-form>.button{margin-top:16px;font-size:12px}
.sme-error,.sme-save-status.is-error,.sme-score-status.is-error{color:var(--danger);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.sme-error[hidden]{display:none}
.sme-create-dialog{box-sizing:border-box;width:min(600px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--border);border-radius:21px;background:var(--surface);color:var(--text);padding:0;box-shadow:0 22px 90px #0003}
.sme-create-dialog::backdrop{background:#1b231b77;backdrop-filter:blur(4px)}
.sme-create-form{padding:28px;font-family:var(--sans)}
.sme-create-form header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:24px}
.sme-create-form h2{font-size:23px;font-weight:600;line-height:1.6;margin:0 0 6px}
.sme-create-form header p:not(.sme-eyebrow){font-size:12px;color:var(--text-faint);line-height:1.8;margin:0}
.sme-close{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;border:1px solid var(--border);color:var(--text-soft);background:var(--surface);font-size:21px;cursor:pointer}
.sme-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.sme-full{grid-column:1/-1}
.sme-upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;border:1px dashed #abbc98;border-radius:13px;background:var(--surface-subtle);padding:24px 14px;margin:23px 0 13px;cursor:pointer}
.sme-upload>span{font-size:25px;line-height:1;color:#829866}
.sme-upload strong{font-size:14px;font-weight:500}
.sme-upload small{font-size:11px;line-height:1.7;color:var(--text-faint)}
.sme-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.sme-upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.sme-selected-files{list-style:none;padding:0;margin:0;max-height:160px;overflow:auto}
.sme-selected-files li{display:flex;align-items:baseline;gap:15px;justify-content:space-between;padding:7px 0;font-size:12px;line-height:1.7;color:var(--text-soft)}
.sme-selected-files li span{min-width:0;overflow-wrap:anywhere}
.sme-selected-files small{font-size:10px;white-space:nowrap;color:var(--text-faint)}
.sme-file-limit,.sme-create-footnote{font-size:11px;color:var(--text-faint);line-height:1.8;margin:11px 0}
.sme-create-form footer{display:flex;justify-content:flex-end;gap:12px;margin-top:23px}
.sme-create-footnote{text-align:right;margin-bottom:0}
.self-mock-exam button:focus-visible,.sme-create-dialog button:focus-visible,.sme-submit-confirm summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.self-mock-exam button:disabled,.sme-create-dialog button:disabled{opacity:.5;cursor:not-allowed}
.sme-paper-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sme-paper-actions .button{font-size:12px;min-height:34px;padding:8px 11px}
.sme-paper-file-names{display:grid;gap:5px;margin:-8px 0 18px;min-width:0}
.sme-paper-file-names span{font-size:11px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sme-paper-library>.sme-detail>.sme-paper-pane{max-width:960px;width:100%;box-sizing:border-box;justify-self:center}
.sme-source-options{display:flex;flex-wrap:wrap;gap:10px 20px;border:0;border-top:1px solid var(--border);padding:19px 0 0;margin:22px 0 0;min-width:0}
.sme-source-options legend{font-size:12px;color:var(--text-soft);padding:0 7px 0 0}
.sme-source-options label{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer}
.sme-source-options input{accent-color:var(--accent-ink)}
.sme-source-options small{font-size:10px;color:var(--text-faint)}
.sme-existing-paper{margin:20px 0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-subtle)}
.sme-existing-paper label{display:grid;gap:10px;font-size:12px;color:var(--text-soft)}
.sme-existing-paper select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:13px var(--sans)}
.sme-existing-paper p{font-size:11px;line-height:1.8;color:var(--text-faint);margin:12px 0 0}
.sme-question-source{margin:18px 0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-subtle)}
.sme-question-selects{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.6fr);gap:14px}
.sme-question-selects label{display:grid;gap:8px;min-width:0;font-size:12px;color:var(--text-soft)}
.sme-question-selects select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:13px var(--sans)}
.sme-question-source>p{margin:12px 0 0;color:var(--text-faint);font-size:11px;line-height:1.8}
[data-sme-upload-source][hidden],[data-sme-library-source][hidden],[data-sme-question-source][hidden]{display:none}
@media(max-width:580px){.sme-paper-library .sme-card-bottom{align-items:flex-start;flex-direction:column}.sme-existing-paper select{font-size:16px}.sme-source-options label{font-size:12px}.sme-paper-actions{gap:7px}}
@media(max-width:580px){.sme-question-selects{grid-template-columns:1fr}.sme-question-selects select{font-size:16px}.sme-source-options{gap:12px 16px}.sme-create-form footer{flex-wrap:wrap}.sme-create-form footer>.button{flex:1 1 120px}}
html[data-theme=dark] .sme-ready-note,html[data-theme=dark] .sme-running-banner{background:#293624;border-color:#49623b}
html[data-theme=dark] .is-running .sme-status,html[data-theme=dark] .sme-status.is-running{background:#2c3923;border-color:#577241;color:#bad899}
html[data-theme=dark] .is-submitted .sme-status,html[data-theme=dark] .sme-status.is-submitted{background:#332b41;border-color:#5a4872;color:#c9afe7}
@media(max-width:1100px){.sme-workspace{grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr)}.sme-paper-pane,.sme-answer-pane{padding:16px}.sme-overview{grid-template-columns:120px 120px 1fr;gap:18px}.sme-card-bottom{align-items:flex-start;flex-direction:column}.sme-preview iframe{height:600px}}
@media(max-width:850px){.sme-workspace{grid-template-columns:1fr}.sme-preview{min-height:280px;max-height:620px}.sme-preview iframe{height:560px}.sme-answer{min-height:320px}.sme-overview{grid-template-columns:1fr 1fr}.sme-overview>p{grid-column:1/-1;padding:16px 0 0;border-left:0;border-top:1px solid var(--border)}.sme-heading h1{font-size:28px}.sme-complete{align-items:flex-start;text-align:left}.sme-detail-heading{align-items:flex-start}}
@media(max-width:580px){.self-mock-exam{gap:19px;padding:16px 0 28px}.sme-heading{align-items:flex-start;flex-direction:column;gap:16px}.sme-heading h1{font-size:26px}.sme-heading p:not(.sme-eyebrow){font-size:12px}.sme-heading>.button{min-height:40px;font-size:12px}.sme-eyebrow{font-size:10px}.sme-overview{padding:21px}.sme-exam-grid{grid-template-columns:1fr}.sme-exam-card{padding:20px}.sme-card-bottom{flex-direction:row;align-items:center}.sme-list-heading>span{font-size:10px}.sme-empty{padding:36px 18px}.sme-empty h2{font-size:18px}.sme-empty p{font-size:12px}.sme-running-banner,.sme-ready-note{padding:19px}.sme-running-banner{align-items:flex-start}.sme-detail-heading{flex-direction:column;gap:16px}.sme-detail-heading h2{font-size:21px}.sme-countdown{flex-direction:row;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:14px 16px}.sme-countdown>strong{font-size:23px;margin-left:auto}.sme-countdown>small{display:none}.sme-ready-note>div{min-width:0;flex-basis:100%}.sme-pane-title>span{font-size:10px}.sme-paper-pane,.sme-answer-pane{padding:14px}.sme-preview{min-height:220px}.sme-preview iframe{height:450px}.sme-answer{min-height:280px;font-size:14px}.sme-storage-note{font-size:10px}.sme-create-form{padding:22px 19px}.sme-create-form h2{font-size:20px}.sme-create-fields{gap:14px}.sme-create-fields input,.sme-create-fields select,.sme-score-form input,.sme-score-form textarea{font-size:16px}.sme-create-form footer .button{font-size:12px}.sme-upload small{font-size:10px}.sme-complete>span{font-size:11px}}
