/* 기존 교육센터의 남색·파란색 버튼 및 테두리 스타일을 공유합니다. */
[hidden] { display: none !important; }
.exam-admin-tabs { display:flex; gap:8px; border-bottom:1px solid #dbe4ee; margin:0 0 24px; }
.exam-admin-tabs button { background:#f8fafc; border:1px solid #dbe4ee; border-bottom:0; border-radius:7px 7px 0 0; padding:13px 24px; font-family:inherit; font-size:15px; font-weight:700; color:#475569; cursor:pointer; }
.exam-admin-tabs button.active { background:#0d4a96; color:#fff; border-color:#0d4a96; }
.exam-section-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.exam-section-row h3,.exam-section-row h4 { margin:0; }
.exam-help { color:#64748b; font-size:13px; line-height:1.7; margin:12px 0; }
#examEditorForm .form-group input { box-sizing:border-box; width:100%; padding:12px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; font:inherit; font-size:14px; }
.exam-message { font-size:14px; line-height:1.7; color:#0d4a96; margin:14px 0; min-height:24px; }
.exam-message.is-error { color:#b42318; }
.exam-question-editor { border:1px solid #dbe4ee; background:#fbfcfe; border-radius:8px; padding:22px; margin:18px 0; }
.exam-question-editor label { display:flex; flex-direction:column; gap:8px; font-size:14px; font-weight:600; margin-top:16px; }
.exam-question-editor textarea,.exam-question-editor input,.exam-question-editor select { box-sizing:border-box; border:1px solid #cbd5e1; border-radius:6px; padding:12px; width:100%; font:inherit; background:#fff; }
.exam-options-editor { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
.exam-correct-label { max-width:220px; }
.exam-question-points { color:#0d4a96; font-size:13px; margin-right:auto; }
.exam-publish { display:inline-flex; gap:9px; align-items:center; font-size:14px; font-weight:700; }
.exam-publish input { width:17px; height:17px; accent-color:#0056b3; }
.exam-editor-actions { margin-top:22px; }
.exam-results-title { margin-top:32px; font-size:18px; }
.final-exam-card { margin:24px 0; padding:24px; border:1px solid #dbe4ee; border-radius:8px; background:#fff; }
.final-exam-card h3 { font-size:19px; margin:0; color:#172b4d; }
.final-exam-card p { color:#64748b; font-size:14px; line-height:1.7; margin:12px 0 0; }
.final-exam-action { display:inline-flex; gap:8px; align-items:center; justify-content:center; border:1px solid #0056b3; background:#0056b3; color:#fff; border-radius:6px; font:700 14px 'Pretendard',sans-serif; padding:12px 20px; cursor:pointer; text-decoration:none; }
.final-exam-action:disabled { cursor:not-allowed; background:#e2e8f0; border-color:#e2e8f0; color:#64748b; }
.final-exam-action.secondary { color:#0d4a96; background:#fff; border-color:#cbd5e1; }
.exam-page { background:#f4f6f8; }
.exam-page-header { max-width:1120px; padding:24px 20px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.exam-page-header a { color:#0d4a96; font-size:14px; font-weight:700; }
.exam-page-header strong { color:#172b4d; font-size:20px; }
.exam-page-main { max-width:1120px; margin:0 auto 40px; padding:0 20px; }
.exam-intro,.exam-result { background:#fff; border:1px solid #dbe4ee; border-radius:10px; padding:30px; }
.exam-intro h1 { font-size:25px; line-height:1.5; margin:0 0 22px; color:#172b4d; }
.exam-metadata { display:grid; grid-template-columns:160px 1fr; gap:12px; border-top:1px solid #e2e8f0; padding:20px 0; font-size:14px; }
.exam-metadata dt { font-weight:700; color:#334155; }.exam-metadata dd { margin:0; color:#475569; }
.exam-instructions { border-top:1px solid #e2e8f0; padding-top:20px; color:#475569; font-size:14px; line-height:1.9; }
.exam-instructions h2 { font-size:18px; color:#172b4d; margin:0 0 10px; }
.exam-instructions ol { padding-left:22px; list-style:decimal; }.exam-instructions li { list-style:decimal; }
.exam-agreement { display:flex; gap:9px; align-items:center; margin:24px 0; font-size:14px; font-weight:700; }
.exam-run-header { padding:24px; border-radius:9px 9px 0 0; background:#173a63; color:#fff; }
.exam-run-header h1 { font-size:22px; line-height:1.5; margin:0; }
.exam-run-header p { margin:8px 0 0; color:#dbeafe; font-size:13px; }
.exam-run-layout { display:grid; grid-template-columns:minmax(0,1fr) 230px; background:#fff; border:1px solid #dbe4ee; border-top:0; border-radius:0 0 9px 9px; }
.exam-question-list { max-height:65vh; overflow-y:auto; padding:26px; scroll-behavior:smooth; }
.exam-question { margin-bottom:34px; padding-bottom:26px; border-bottom:1px solid #e2e8f0; }
.exam-question h2 { background:#f4f6f9; border:1px solid #e2e8f0; padding:15px; font-size:16px; line-height:1.7; margin:0 0 18px; white-space:pre-wrap; }
.exam-answer { display:flex; gap:11px; align-items:flex-start; padding:12px 14px; border:1px solid transparent; border-radius:6px; cursor:pointer; font-size:17px; line-height:1.8; }
.exam-answer:has(input:checked) { border-color:#96b8e4; background:#eff6ff; }
.exam-answer input { margin-top:7px; accent-color:#0056b3; flex-shrink:0; }.exam-answer span { white-space:pre-wrap; }
.exam-omr { border-left:1px solid #dbe4ee; padding:18px 14px; max-height:65vh; overflow-y:auto; }
.exam-omr h2 { font-size:16px; color:#172b4d; margin:0; }.exam-omr p { font-size:12px; color:#64748b; margin:8px 0 15px; }
.exam-omr table { width:100%; border-collapse:collapse; text-align:center; font-size:12px; }.exam-omr th,.exam-omr td { border:1px solid #dbe4ee; padding:9px 4px; }.exam-omr th { background:#eff6ff; color:#173a63; }.exam-omr input { accent-color:#0056b3; margin:0; }.exam-omr button { border:0; color:#0d4a96; background:none; cursor:pointer; font:inherit; font-weight:700; }
.exam-submit-row { display:flex; justify-content:center; margin-top:24px; }.exam-result h2 { font-size:24px; color:#172b4d; margin-top:0; }.exam-score { font-size:46px; font-weight:800; color:#0056b3; margin:18px 0; }.exam-modal { position:fixed; inset:0; background:rgba(15,23,42,.5); display:flex; justify-content:center; align-items:center; z-index:1000; padding:20px; }.exam-modal-dialog { background:#fff; border-radius:10px; max-width:460px; padding:28px; box-shadow:0 18px 60px #0003; }.exam-modal-dialog h2 { margin-top:0; font-size:21px; }.exam-modal-dialog p { font-size:14px; line-height:1.8; color:#475569; }
@media(max-width:768px) { .exam-options-editor{grid-template-columns:1fr}.exam-run-layout{display:flex;flex-direction:column}.exam-omr{border-left:0;border-top:1px solid #dbe4ee;max-height:230px}.exam-question-list{max-height:none;padding:18px}.exam-intro{padding:22px}.exam-metadata{grid-template-columns:120px 1fr}.exam-page-header strong{font-size:17px}.final-exam-card{padding:18px}.exam-admin-tabs button{padding:12px 16px} }

/* 시험지 엑셀 첨부 및 접을 수 있는 간결한 문항 편집 */
.exam-excel-drop { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border:1px dashed #a9bed8; border-radius:8px; background:#f7faff; margin:4px 0 20px; }
.exam-excel-drop strong { color:#173a63; font-size:15px; }.exam-excel-drop p { color:#64748b; font-size:12px; margin:6px 0 0; line-height:1.6; }
.exam-excel-actions { display:flex; gap:8px; flex-shrink:0; }.exam-excel-actions .btn { padding:9px 13px; font-size:13px; white-space:nowrap; }
.exam-excel-drop.is-dragging { border:2px dashed #0056b3; background:#eaf3ff; }
.exam-list-toolbar { margin-top:14px; }.exam-text-button { background:none; border:0; padding:6px 8px; color:#0d4a96; cursor:pointer; font:inherit; font-size:12px; }
#examQuestions { max-height:610px; overflow-y:auto; padding-right:5px; overscroll-behavior:contain; }
details.exam-question-editor { padding:0; margin:7px 0; background:#fff; }
.exam-question-editor > summary { display:grid; grid-template-columns:12px 62px minmax(0,1fr) 52px 76px; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; list-style:none; min-height:48px; box-sizing:border-box; }
.exam-question-editor > summary::-webkit-details-marker { display:none; }
.exam-question-editor > summary::before { content:'▸'; color:#64748b; font-size:13px; }
.exam-question-editor[open] > summary::before { content:'▾'; }
.exam-question-editor[open] > summary { border-bottom:1px solid #e2e8f0; background:#f7faff; }
.exam-question-editor > summary h4 { font-size:13px; margin:0; color:#173a63; white-space:nowrap; }
.exam-question-summary-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#334155; font-size:13px; font-weight:500; }
.exam-question-summary-answer { text-align:right; font-size:12px; font-weight:700; color:#0d4a96; white-space:nowrap; }
.exam-question-editor .exam-question-points { margin:0; text-align:right; font-size:12px; white-space:nowrap; }
.exam-question-fields { padding:10px 16px 16px; }.exam-question-fields .exam-help { margin:0; font-size:12px; }
.exam-question-editor label { margin-top:9px; gap:5px; font-size:12px; }
.exam-question-editor textarea,.exam-question-editor input,.exam-question-editor select { padding:8px 10px; font-size:13px; line-height:1.5; }
.exam-options-editor { gap:0 12px; }.exam-correct-label { max-width:170px; }
.exam-question-fields .exam-remove { padding:5px 10px; font-size:12px; }
.exam-editor-actions { margin-top:16px; }.exam-editor-actions .btn { padding:10px 16px; font-size:14px; }
.exam-preview-toggle { display:flex; gap:8px; align-items:center; color:#0d4a96; font-size:14px; font-weight:700; }.exam-preview-toggle input { accent-color:#0056b3; }
.exam-preview-note { margin:0 0 16px; color:#64748b; font-size:13px; }
.exam-preview-key { color:#0056b3; font-weight:700; font-size:14px; margin:12px 14px; }
.exam-answer.exam-preview-correct { border-color:#73a98d; background:#eef9f1; }
.exam-message { white-space:pre-line; }
@media(max-width:768px){.exam-excel-drop{align-items:flex-start;flex-direction:column}.exam-excel-actions{flex-wrap:wrap}.exam-question-editor>summary{grid-template-columns:10px 50px minmax(0,1fr) 65px;gap:7px;padding:11px 9px}.exam-question-editor>summary .exam-question-points{display:none}#examQuestions{max-height:520px}.exam-options-editor{grid-template-columns:1fr}.exam-question-fields{padding:10px 12px}.exam-editor-actions{justify-content:flex-start}.exam-editor-actions .btn:last-child{margin-left:auto}}
