.yjwe-manager-shell{max-width:1180px;margin:24px auto 48px;padding:0 14px;box-sizing:border-box;font-family:inherit;color:#173f59}.yjwe-manager-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:20px 0 18px;border-bottom:1px solid #d8e2e9}.yjwe-manager-head small{color:#678092;letter-spacing:.02em}.yjwe-manager-head h1{margin:5px 0 5px;font-size:30px;color:#123f5b}.yjwe-manager-head p{margin:0;color:#607584}.yjwe-manager-user{min-width:150px;text-align:right;padding:8px 0}.yjwe-manager-user span{display:block;font-weight:700}.yjwe-manager-user small{display:block;margin-top:3px}.yjwe-manager-flow{display:grid;grid-template-columns:1fr 28px 1fr 28px 1fr 28px 1fr;gap:7px;align-items:stretch;margin:18px 0}.yjwe-manager-flow>div{display:grid;grid-template-columns:34px 1fr;column-gap:9px;align-items:center;border:1px solid #dbe4ea;background:#fff;padding:12px 13px;border-radius:9px}.yjwe-manager-flow b{grid-row:1/3;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef3f7;color:#35566d;font-size:12px}.yjwe-manager-flow span{font-weight:700;font-size:14px}.yjwe-manager-flow small{color:#768896}.yjwe-manager-flow i{display:flex;align-items:center;justify-content:center;font-style:normal;color:#8b9aa5}.yjwe-manager-flow .is-done{background:#f6fbf8;border-color:#cfe4d5}.yjwe-manager-flow .is-done b{background:#2e7044;color:#fff}.yjwe-manager-flow .is-now{background:#f5faff;border-color:#9fc1da}.yjwe-manager-flow .is-now b{background:#174f74;color:#fff}.yjwe-manager-card{border:1px solid #d8e2e9;background:#fff;border-radius:10px;padding:20px;margin-top:14px}.yjwe-manager-title{display:flex;justify-content:space-between;gap:20px;align-items:end;padding-bottom:14px;border-bottom:1px solid #e5ebef}.yjwe-manager-title h2,.yjwe-manager-next h2{margin:4px 0 0;font-size:22px;color:#173f59}.yjwe-manager-title a,.yjwe-manager-grade-head a{color:#0d5d8d;text-decoration:none}.yjwe-manager-grades{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.yjwe-manager-grades>article{border:1px solid #dfe7ec;background:#fbfdff;padding:15px;border-radius:8px}.yjwe-manager-grade-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.yjwe-manager-grade-head span{font-size:18px;font-weight:700}.yjwe-manager-grade-head a{font-size:13px}.yjwe-manager-subjects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.yjwe-manager-subjects>div{padding:11px 12px;border:1px solid #e3e9ed;background:#fff}.yjwe-manager-subjects small{display:block;color:#718693;font-size:11px}.yjwe-manager-subjects b{display:block;margin-top:4px;font-size:14px}.yjwe-manager-next{display:flex;justify-content:space-between;align-items:center;gap:20px}.yjwe-manager-next p{margin:7px 0 0;color:#637886}.yjwe-manager-lock{white-space:nowrap;padding:7px 11px;border-radius:999px;background:#eef2f5;color:#687b88;font-size:12px}.yjwe-manager-foot{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:18px;padding:13px 2px;border-top:1px solid #dde5ea;color:#738693;font-size:12px}.yjwe-manager-foot a{color:#375e76;text-decoration:none}.yjwe-manager-denied{max-width:720px;margin:60px auto;padding:28px;border:1px solid #d9e2e8;background:#fff;text-align:center;color:#334f60}.yjwe-manager-denied h2{margin-top:0;color:#173f59}@media(max-width:850px){.yjwe-manager-head,.yjwe-manager-title,.yjwe-manager-next,.yjwe-manager-foot{align-items:flex-start;flex-direction:column}.yjwe-manager-user{text-align:left}.yjwe-manager-flow{grid-template-columns:1fr}.yjwe-manager-flow i{transform:rotate(90deg)}.yjwe-manager-grades,.yjwe-manager-subjects{grid-template-columns:1fr}}
.yjwe-manager-lock.is-live{background:#eaf7ee;color:#28643c}.yjwe-manager-create .yjwe-manager-title{align-items:center}.yjwe-manager-create .yjwe-manager-title p{margin:6px 0 0;color:#637886}.yjwe-manager-question-form{margin-top:18px}.yjwe-form-grid{display:grid;gap:12px;margin-bottom:12px}.yjwe-form-grid-4{grid-template-columns:1fr 1fr 1.6fr 1fr}.yjwe-form-grid-2{grid-template-columns:3fr 1fr}.yjwe-manager-question-form label{display:block}.yjwe-manager-question-form label>span{display:block;margin:0 0 6px;font-size:12px;color:#5f7483}.yjwe-manager-question-form input,.yjwe-manager-question-form select,.yjwe-manager-question-form textarea{width:100%;box-sizing:border-box;border:1px solid #ccd9e1;border-radius:6px;background:#fff;color:#173f59;font:inherit;padding:9px 10px}.yjwe-manager-question-form textarea{resize:vertical;line-height:1.5}.yjwe-form-full{margin:0 0 12px}.yjwe-choice-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.yjwe-choice-inputs label{display:grid;grid-template-columns:28px 1fr;gap:7px;align-items:start}.yjwe-choice-inputs label>span{margin:10px 0 0;text-align:center;font-weight:700;color:#0d5d8d}.yjwe-form-actions{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-top:14px}.yjwe-form-actions label{width:170px}.yjwe-manager-primary{border:1px solid #174f74;border-radius:6px;background:#174f74;color:#fff;padding:10px 18px;font-weight:700;cursor:pointer}.yjwe-manager-primary:hover{background:#123f5b}.yjwe-manager-help{margin:11px 0 0;color:#6b7f8d;font-size:12px}.yjwe-manager-notice{margin:14px 0 0;padding:11px 13px;border-radius:7px;border:1px solid}.yjwe-manager-notice.is-ok{background:#f0f8f3;border-color:#cce3d3;color:#27623b}.yjwe-manager-notice.is-warn{background:#fff9ed;border-color:#ead7ac;color:#765616}@media(max-width:850px){.yjwe-form-grid-4,.yjwe-form-grid-2,.yjwe-choice-inputs{grid-template-columns:1fr}.yjwe-form-actions{align-items:stretch;flex-direction:column}.yjwe-form-actions label{width:100%}.yjwe-manager-primary{width:100%}}
.yjwe-manager-title p{margin:6px 0 0;color:#637886}.yjwe-manager-drafts .yjwe-manager-title{align-items:center}.yjwe-manager-empty{padding:18px 0 4px;color:#6b7f8d}.yjwe-manager-table-wrap{margin-top:14px;overflow-x:auto}.yjwe-manager-table{width:100%;border-collapse:collapse;min-width:850px;font-size:13px}.yjwe-manager-table th,.yjwe-manager-table td{padding:4px 5px;border-bottom:1px solid #e3eaee;text-align:left;vertical-align:middle}.yjwe-manager-table th{background:#f7fafc;color:#5d7280;font-weight:700}.yjwe-manager-table tr.is-editing td{background:#f3f9fd}.yjwe-draft-state{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef4f8;color:#315e78;font-size:11px;white-space:nowrap}.yjwe-manager-qtext{max-width:310px}.yjwe-manager-secondary{display:inline-block;border:1px solid #9bb7c9;border-radius:5px;background:#fff;color:#174f74!important;text-decoration:none!important;padding:6px 10px;white-space:nowrap}.yjwe-manager-secondary:hover{background:#f3f8fb}.yjwe-manager-editbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:14px 0 0;padding:10px 12px;border:1px solid #cfe0eb;background:#f5faff;border-radius:6px;color:#315e78}.yjwe-manager-editbar a{color:#0d5d8d;text-decoration:none;font-size:12px}@media(max-width:850px){.yjwe-manager-editbar{align-items:flex-start;flex-direction:column}.yjwe-manager-qtext{max-width:none}}

/* V1.2.4 STEP 2B-4A: AI 1차 해설 검토 — 운영 관리자 수동 호출 전용 */
.yjwe-ai-review{margin-top:22px;padding-top:22px;border-top:1px solid #dbe5ed}
.yjwe-ai-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.yjwe-ai-review-head small{color:#527086;font-size:12px}
.yjwe-ai-review-head h3{margin:4px 0 6px;font-size:21px;color:#113f5d}
.yjwe-ai-review-head p{margin:0;color:#587083;line-height:1.65}
.yjwe-ai-status{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:12px;white-space:nowrap}
.yjwe-ai-status.is-ready{background:#eaf7ef;color:#267144}
.yjwe-ai-status.is-off{background:#f4f4f4;color:#777}
.yjwe-ai-review-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding:14px;background:#f7fafc;border:1px solid #dce7ef;border-radius:10px}
.yjwe-ai-review-action span{font-size:13px;color:#637989}
.yjwe-ai-review-button{font-weight:700!important}
.yjwe-ai-review-result{margin-top:16px;border:1px solid #cadde9;border-radius:12px;padding:16px;background:#fff}
.yjwe-ai-review-result.is-stale{border-color:#dfb45d;background:#fffbf2}
.yjwe-ai-stale{margin-bottom:14px;padding:10px 12px;border-radius:8px;background:#fff1cf;color:#7d5711;font-size:13px}
.yjwe-ai-review-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.yjwe-ai-review-meta small{color:#718696}
.yjwe-ai-verdict{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.yjwe-ai-verdict.is-ok{background:#e9f7ef;color:#246b40}
.yjwe-ai-verdict.is-warn{background:#fff5d9;color:#77550b}
.yjwe-ai-verdict.is-check{background:#fcebee;color:#8a3442}
.yjwe-ai-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.yjwe-ai-review-grid article{border:1px solid #e1e9ef;border-radius:9px;padding:13px;background:#fbfdfe}
.yjwe-ai-review-grid h4{margin:0 0 8px;font-size:14px;color:#164765}
.yjwe-ai-review-grid p{margin:0;white-space:normal;line-height:1.7;color:#243f52}
.yjwe-ai-suggestion{grid-column:1/-1}
.yjwe-ai-suggestion .yjwe-manager-secondary{margin-top:12px}
.yjwe-ai-suggestion small{display:inline-block;margin-left:8px;color:#748796}
@media(max-width:760px){.yjwe-ai-review-head{display:block}.yjwe-ai-status{margin-top:10px}.yjwe-ai-review-grid{grid-template-columns:1fr}.yjwe-ai-suggestion{grid-column:auto}}

/* V1.2.5 STEP 2B-4A: 합격 실전형 AI 검토 — 보기별 교정 + 시험 기억사항 */
.yjwe-ai-choice-section{margin-top:14px;padding:14px;border:1px solid #dce7ef;border-radius:10px;background:#fbfdfe}
.yjwe-ai-choice-section>h4{margin:0 0 11px;font-size:14px;color:#164765}
.yjwe-ai-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.yjwe-ai-choice-grid article{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:start;padding:12px;border:1px solid #e1e9ef;border-radius:8px;background:#fff}
.yjwe-ai-choice-source>strong{display:flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:50%;background:#eef5f9;color:#174f74;font-size:13px}
.yjwe-ai-choice-grid p{margin:1px 0 0;line-height:1.65;color:#243f52}
.yjwe-ai-memory{margin-top:14px;padding:14px 15px;border:1px solid #cfe1d4;border-radius:10px;background:#f4faf6}
.yjwe-ai-memory h4{margin:0 0 8px;font-size:14px;color:#2b6740}
.yjwe-ai-memory p{margin:0;line-height:1.7;color:#274a35}
.yjwe-ai-suggestion{margin-top:14px;border:1px solid #d8e4eb;border-radius:10px;padding:14px;background:#fff}
.yjwe-ai-suggestion h4{margin:0 0 8px;font-size:14px;color:#164765}
.yjwe-ai-suggestion p{margin:0;line-height:1.7;color:#243f52}
@media(max-width:760px){.yjwe-ai-choice-grid{grid-template-columns:1fr}}

/* V1.2.6 STEP 2B-4A: 전문가 반복편집 — AI 해설 다듬기 + 재검증 */
.yjwe-ai-cycle{margin-top:14px;padding:10px 12px;border:1px solid #d7e5ed;border-radius:8px;background:#f8fbfd;color:#476478;font-size:13px;line-height:1.6}
.yjwe-ai-cycle b{color:#174f74}
.yjwe-ai-review-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.yjwe-ai-review-button,.yjwe-ai-verify-button{font-weight:700!important;cursor:pointer}
.yjwe-ai-verify-button{border-color:#b7a77a!important;color:#6a5623!important;background:#fffdf6!important}
.yjwe-ai-verify-button:hover{background:#fff8dd!important}
@media(max-width:760px){.yjwe-ai-review-buttons{width:100%}.yjwe-ai-review-buttons .yjwe-manager-secondary{flex:1;text-align:center}}

/* V1.2.7 STEP 2B-4A: 강한 구조형 경량 해설 편집 — 굵게/빨강/파랑/형광/①~④ */
.yjwe-explanation-field>span{font-weight:700;color:#173f59}
.yjwe-explain-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 8px;padding:8px 9px;border:1px solid #d7e1e8;border-radius:7px;background:#f7fafc}
.yjwe-explain-toolbar button{border:1px solid #b9cad5;border-radius:5px;background:#fff;color:#27495f;padding:6px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.yjwe-explain-toolbar button:hover{background:#eef5f9}
.yjwe-explain-toolbar button.is-red{color:#b42318;border-color:#e3b1ac}
.yjwe-explain-toolbar button.is-blue{color:#0b5fa5;border-color:#a8c8df}
.yjwe-explain-toolbar button.is-highlight{color:#6b5310;background:#fff7c7;border-color:#eadc83}
.yjwe-explain-toolbar button.is-template{margin-left:auto;color:#173f59;background:#edf6fb;border-color:#a9c8db}
.yjwe-rich-explanation{width:100%;box-sizing:border-box;min-height:250px;padding:15px 16px;border:1px solid #bfcfda;border-radius:7px;background:#fff;color:#173f59;font-size:15px;line-height:1.85;outline:none;white-space:normal;overflow-wrap:anywhere}
.yjwe-rich-explanation:focus{border-color:#4b8eb6;box-shadow:0 0 0 2px rgba(50,125,167,.10)}
.yjwe-rich-explanation:empty:before{content:attr(data-placeholder);color:#8a9ba7;pointer-events:none}
.yjwe-mark-red{color:#b42318;font-weight:700}
.yjwe-mark-blue{color:#0b5fa5;font-weight:700}
.yjwe-mark-highlight{background:#fff0a8;color:#473b0c;font-weight:700;padding:1px 3px;border-radius:3px}
.yjwe-format-help{display:block;margin-top:7px;color:#6f8390;font-size:11px;line-height:1.55}
.yjwe-ai-structured-preview{padding:13px 14px;border:1px solid #dce7ef;border-radius:8px;background:#fbfdfe;color:#203f54;line-height:1.8}
.yjwe-ai-structured-preview .yjwe-mark-red{color:#b42318}
.yjwe-ai-structured-preview .yjwe-mark-blue{color:#0b5fa5}
.yjwe-ai-structured-preview .yjwe-mark-highlight{background:#fff0a8;color:#473b0c}
@media(max-width:760px){.yjwe-explain-toolbar button.is-template{margin-left:0}.yjwe-rich-explanation{min-height:230px;font-size:14px}}


/* V1.2.8 STEP 2B-4B: 보기별 선택형 수치·기준 공식자료 확인 */
.yjwe-ai-choice-card{grid-template-columns:30px minmax(0,1fr)!important}
.yjwe-ai-choice-body{min-width:0}
.yjwe-choice-standard-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px dashed #dbe5eb}
.yjwe-choice-standard-form small{color:#7a8d99;font-size:11px}
.yjwe-choice-standard-button{border:1px solid #9bb7c9;border-radius:5px;background:#f8fcff;color:#174f74;padding:6px 9px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.yjwe-choice-standard-button:hover{background:#edf7fc}
.yjwe-choice-standard-button:disabled{opacity:.48;cursor:not-allowed}
.yjwe-choice-standard-result{margin-top:10px;padding:11px 12px;border:1px solid #bfd6e3;border-radius:8px;background:#f8fcff}
.yjwe-choice-standard-result.is-stale{border-color:#dfb45d;background:#fffbf2}
.yjwe-choice-standard-stale{margin-bottom:9px;padding:7px 8px;border-radius:6px;background:#fff1cf;color:#795413;font-size:11px;line-height:1.5}
.yjwe-choice-standard-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.yjwe-choice-standard-meta b{color:#0b5fa5;font-size:12px}
.yjwe-choice-standard-meta small{color:#7a8d99;font-size:10px}
.yjwe-choice-standard-result dl{margin:0;display:grid;gap:7px}
.yjwe-choice-standard-result dl>div{display:grid;grid-template-columns:95px 1fr;gap:8px;align-items:start}
.yjwe-choice-standard-result dt{font-size:11px;font-weight:700;color:#637989}
.yjwe-choice-standard-result dd{margin:0;color:#263f50;font-size:12px;line-height:1.6}
.yjwe-choice-standard-result .is-correction dd{font-weight:700;color:#174f74}
.yjwe-choice-standard-sources{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid #dce8ef}
.yjwe-choice-standard-sources span{font-size:11px;font-weight:700;color:#637989}
.yjwe-choice-standard-sources a{font-size:11px;color:#0b5fa5;text-decoration:none;border-bottom:1px dotted #75a6c6}
.yjwe-choice-standard-note{display:block;margin-top:8px;color:#7a6652;font-size:10px;line-height:1.5}
@media(max-width:600px){.yjwe-choice-standard-result dl>div{grid-template-columns:1fr}.yjwe-choice-standard-result dt{margin-bottom:-3px}}
/* V1.2.9: first-pass AI draft button — no API call until the manager clicks it. */
.yjwe-ai-draft-button{border-color:#9fbfd3!important;background:#edf7fc!important;color:#174f74!important;font-weight:800!important}
.yjwe-ai-draft-button:hover{background:#e2f2fa!important}

/* V1.2.10: 보기 번호만 자연스럽게 표시하고, 실제로 틀린 핵심 구절만 붉게 강조 */
.yjwe-ai-choice-card{display:block!important;padding:13px 14px!important}
.yjwe-ai-choice-source{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:start}
.yjwe-ai-choice-source>strong{display:flex!important;width:27px!important;height:27px!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:#eef5f9!important;color:#174f74!important;font-size:13px!important}
.yjwe-ai-choice-source>p{margin:1px 0 0!important;line-height:1.7!important;color:#173f59!important}
.yjwe-ai-choice-body{margin-left:39px;min-width:0}
.yjwe-ai-choice-body strong{display:inline!important;width:auto!important;height:auto!important;border-radius:0!important;background:none!important;color:inherit!important;font-size:inherit!important}
.yjwe-ai-choice-reason{margin-top:7px!important;color:#526a7a!important}
.yjwe-ai-choice-corrected{margin-top:7px!important;padding:8px 10px;border-left:3px solid #78aaca;background:#f7fbfe;border-radius:3px;line-height:1.65!important}
.yjwe-ai-choice-corrected>strong{color:#36586e!important}
.yjwe-ai-choice-corrected .yjwe-mark-blue{color:#0b5fa5;font-weight:700}
@media(max-width:600px){.yjwe-ai-choice-body{margin-left:0;margin-top:7px}.yjwe-ai-choice-source{grid-template-columns:28px minmax(0,1fr)}}


/* V1.2.11: 보기 문장 안의 굵은/붉은 강조가 번호 배지 스타일을 상속받지 않도록 범위 고정 */
.yjwe-ai-choice-source>p strong,.yjwe-ai-choice-source>p .yjwe-mark-red,.yjwe-ai-choice-source>p .yjwe-mark-blue{display:inline!important;width:auto!important;height:auto!important;min-width:0!important;border-radius:0!important;background:none!important;align-items:initial!important;justify-content:initial!important;font-size:inherit!important;line-height:inherit!important}
.yjwe-ai-choice-source>p .yjwe-mark-red{color:#b42318!important;font-weight:700!important}
.yjwe-ai-choice-source>p .yjwe-mark-blue{color:#0b5fa5!important;font-weight:700!important}

/* V1.2.12 안정화: 2열 보기 카드가 긴 URL/출처 문자열 때문에 한쪽으로 눌리지 않도록 최소폭과 줄바꿈만 보강 */
.yjwe-ai-choice-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.yjwe-ai-choice-grid>article,.yjwe-ai-choice-card,.yjwe-ai-choice-source,.yjwe-ai-choice-body,.yjwe-choice-standard-result,.yjwe-choice-standard-result dl,.yjwe-choice-standard-result dl>div,.yjwe-choice-standard-result dd{min-width:0}
.yjwe-choice-standard-result dd,.yjwe-choice-standard-result dd a,.yjwe-choice-standard-sources a,.yjwe-choice-standard-note{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){.yjwe-ai-choice-grid{grid-template-columns:1fr!important}}


/* V1.2.13: 저장된 작업본 복사 → 새 문제 입력 보조 */
.yjwe-manager-table tr.is-copying td{background:#fffaf0}
.yjwe-manager-row-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}
.yjwe-manager-copy{border-color:#8eb9a4;color:#246247!important;background:#fbfffd}
.yjwe-manager-copy:hover{background:#f0faf5}
.yjwe-manager-editbar.is-copy{border-color:#c9dfd1;background:#f5fbf7;color:#315f47}
.yjwe-manager-copy-note{margin:10px 0 0;padding:10px 12px;border:1px solid #d7e7dc;background:#fbfefc;border-radius:6px;color:#4a6656;font-size:12px;line-height:1.6}
@media(max-width:850px){.yjwe-manager-row-actions{align-items:stretch}.yjwe-manager-row-actions .yjwe-manager-secondary{text-align:center}}


/* V1.3.0 DEV: 보기 즉시해설 작업본 + ①~④ 기반 종합해설 */
.yjwe-rule-v13{margin-top:18px;padding:16px;border:2px solid #b8d5e6;border-radius:10px;background:#f9fcfe}
.yjwe-rule-v13-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #dce8ef}
.yjwe-rule-v13-head small{color:#5e7d91}.yjwe-rule-v13-head h4{margin:3px 0 6px;font-size:17px;color:#123f5b}.yjwe-rule-v13-head p{margin:0;color:#607889;line-height:1.6;font-size:12px}.yjwe-rule-v13-head>span{white-space:nowrap;padding:6px 9px;border-radius:999px;background:#eaf7ee;color:#28643c;font-size:11px}
.yjwe-guide-edit-form{margin-top:14px}.yjwe-guide-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.yjwe-guide-edit-card{min-width:0;border:1px solid #dce7ee;border-radius:8px;background:#fff;padding:12px}.yjwe-guide-edit-source{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:start;padding-bottom:9px;border-bottom:1px dashed #dce5eb}.yjwe-guide-edit-source>strong{display:flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#eef5f9;color:#174f74;font-size:12px}.yjwe-guide-edit-source p{margin:1px 0 0;line-height:1.6;color:#173f59;font-size:13px}.yjwe-guide-fields{display:grid;grid-template-columns:1fr 2fr;gap:8px 10px;margin-top:10px}.yjwe-guide-fields label{display:block}.yjwe-guide-fields label.is-wide{grid-column:1/-1}.yjwe-guide-fields span{display:block;margin-bottom:4px;color:#5d7484;font-size:10.5px;font-weight:700}.yjwe-guide-fields input,.yjwe-guide-fields select,.yjwe-guide-fields textarea{width:100%;box-sizing:border-box;border:1px solid #cbd9e1;border-radius:5px;padding:7px 8px;font:inherit;font-size:12px;color:#173f59;background:#fff}.yjwe-guide-fields textarea{resize:vertical;line-height:1.55}.yjwe-rule-actions{display:flex;align-items:center;gap:10px;margin-top:12px}.yjwe-rule-actions small,.yjwe-summary-workflow small{color:#718692;font-size:11px;line-height:1.5}.yjwe-rule-empty{margin-top:12px;padding:12px;border:1px dashed #c6d7e1;background:#fff;color:#6a7f8d;font-size:12px}.yjwe-summary-workflow{margin-top:15px;padding-top:14px;border-top:1px solid #dce8ef}.yjwe-summary-workflow>form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.yjwe-summary-generate{font-weight:800!important;background:#eef7fb!important;border-color:#9ec2d7!important}.yjwe-summary-draft{margin-top:12px;padding:13px;border:1px solid #cbdde8;border-radius:8px;background:#fff}.yjwe-summary-draft.is-stale{border-color:#dfb45d;background:#fffbf2}.yjwe-summary-draft h5{margin:0 0 8px;font-size:13px;color:#174f74}.yjwe-summary-draft>.yjwe-manager-secondary{margin-top:9px}.yjwe-summary-draft>small{display:block;margin-top:7px}.yjwe-manager-table tr.is-copying td{background:#fffaf0}
@media(max-width:760px){.yjwe-rule-v13-head,.yjwe-rule-actions{flex-direction:column;align-items:stretch}.yjwe-guide-edit-grid{grid-template-columns:1fr}.yjwe-guide-fields{grid-template-columns:1fr}.yjwe-guide-fields label.is-wide{grid-column:auto}}

/* V1.3.1 DEV: 보기 원문 바로 아래에서 보기별 즉시해설 작성 */
.yjwe-choice-inputs{align-items:start}
.yjwe-choice-compose{min-width:0;border:1px solid #d9e5ec;border-radius:8px;background:#fbfdfe;padding:10px}
.yjwe-choice-text-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;align-items:start}
.yjwe-choice-text-row .yjwe-choice-no{margin:10px 0 0;text-align:center;font-weight:700;color:#0d5d8d;font-size:15px}
.yjwe-choice-text-row textarea{background:#fff}
.yjwe-choice-inline-editor{margin:8px 0 0 35px;padding:9px 10px 10px;border-top:1px dashed #cfdee7;background:#f7fbfd;border-radius:0 0 6px 6px}
.yjwe-choice-inline-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px}
.yjwe-choice-inline-title strong{font-size:12px;color:#174f74}.yjwe-choice-inline-title small{font-size:10.5px;color:#7a8d99}
.yjwe-choice-inline-top{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px}
.yjwe-choice-inline-editor label>span{margin:0 0 4px!important;font-size:10.5px!important;color:#647b8a!important}
.yjwe-choice-inline-editor input,.yjwe-choice-inline-editor select,.yjwe-choice-inline-editor textarea{padding:7px 8px!important;font-size:12px!important;border-color:#cbd9e1!important;background:#fff!important}
.yjwe-choice-inline-wide{margin-top:7px}
.yjwe-rule-inline-note{margin-top:12px;padding:10px 12px;border:1px solid #d6e4ec;border-radius:7px;background:#fff;color:#567082;font-size:12px;line-height:1.6}
@media(max-width:850px){.yjwe-choice-inline-editor{margin-left:0}.yjwe-choice-inline-top{grid-template-columns:1fr}}
.yjwe-choice-inline-editor label{display:block!important;grid-template-columns:none!important;gap:0!important;align-items:initial!important}

/* V1.3.4 DEV: 저장된 작업본 정렬 선택 */
.yjwe-draft-sort{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin:12px 0 9px}.yjwe-draft-sort label{display:flex;align-items:center;gap:6px;color:#587181;font-size:12px}.yjwe-draft-sort select{min-width:105px;padding:6px 28px 6px 8px;border:1px solid #cbd9e1;border-radius:5px;background:#fff;color:#173f59}.yjwe-draft-sort .yjwe-manager-secondary{padding:6px 11px}@media(max-width:600px){.yjwe-draft-sort{justify-content:flex-start;flex-wrap:wrap}}

/* V1.3.5: 문제 입력칸 이미지 Ctrl+V 붙여넣기만 추가 */
.yjwe-manager-question-editor{min-height:108px;width:100%;box-sizing:border-box;border:1px solid #ccd9e1;border-radius:6px;background:#fff;color:#173f59;padding:10px 11px;font-size:15px;line-height:1.65;overflow:auto}
.yjwe-manager-question-editor:empty:before{content:attr(data-placeholder);color:#8a989f}
.yjwe-manager-question-editor img{display:block;max-width:100%;height:auto;margin:8px 0}

/* V1.3.6 외부 작업자 전용 로그인 */
.yjwe-manager-login-shell{max-width:520px;margin-top:70px}.yjwe-manager-login-card{border:1px solid #d8e2e9;background:#fff;border-radius:12px;padding:30px;box-shadow:0 8px 28px rgba(24,62,87,.08)}.yjwe-manager-login-card>small{color:#6b8292}.yjwe-manager-login-card h1{margin:5px 0 8px;font-size:28px;color:#173f59}.yjwe-manager-login-card>p{margin:0 0 22px;color:#667d8c}.yjwe-manager-login-card form{display:grid;gap:14px}.yjwe-manager-login-card label{display:grid;gap:6px;color:#294f68;font-size:14px}.yjwe-manager-login-card input{width:100%;box-sizing:border-box;border:1px solid #cbd8e0;border-radius:7px;padding:11px 12px;font-size:16px;background:#fff}.yjwe-manager-login-card button{border:0;border-radius:7px;background:#174f74;color:#fff;padding:12px 16px;font-size:16px;cursor:pointer}.yjwe-manager-login-error{margin:0 0 14px;padding:10px 12px;border:1px solid #e4bebe;background:#fff6f6;color:#8a3636;border-radius:7px}.yjwe-manager-login-note{margin-top:15px;color:#7a8e9c;font-size:12px;text-align:center}
.yjwe-manager-login-card input[type="submit"]{width:100%;border:0;border-radius:7px;background:#174f74;color:#fff;padding:12px 16px;font-size:16px;cursor:pointer}
.yjwe-manager-login-card input[type="checkbox"]{width:auto}


/* V1.3.9.1 DEV: HWP형 공학수식 입력 — 기존 웹 관리자 안에만 추가 */
.yjwe-hwp-formula-field{margin-top:12px;padding:13px 14px;border:1px solid #cbdde8;border-radius:8px;background:#fbfdfe}
.yjwe-hwp-formula-field>span{display:block;margin-bottom:7px;color:#174f74;font-weight:800}
.yjwe-hwp-toolbar{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}.yjwe-hwp-toolbar button{border:1px solid #cbd9e1;background:#fff;color:#31576d;border-radius:5px;padding:6px 8px;font-size:11.5px;cursor:pointer}.yjwe-hwp-toolbar button:hover{background:#f0f7fb}
#yjwe-engineering-formula{width:100%;min-height:115px;box-sizing:border-box;border:1px solid #cbd9e1;border-radius:6px;background:#fff;padding:9px 10px;font:13px/1.65 Consolas,"Malgun Gothic",monospace;color:#173f59;resize:vertical}
.yjwe-hwp-rule{margin:6px 0;color:#5f7786;font-size:11px}.yjwe-hwp-preview{min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:auto;padding:10px 12px;border:1px solid #dce6ec;border-radius:6px;background:#fff}.yjwe-hwp-preview math{font-size:1.35em}.yjwe-hwp-preview[data-yjwe-hwp-error="1"]{color:#a53831;background:#fff8f7;border-color:#ecc9c5}.yjwe-hwp-empty{color:#8a9aa4;font-size:12px}

/* V1.3.9.4 DEV: 관리자/학생 동일 HWP V0.1.2 MathML 렌더러 */
.yjwe-hwp-preview{max-width:100%;overflow-x:auto;overflow-y:hidden}
.yjwe-hwp-preview math{max-width:none;white-space:nowrap}

/* V1.3.9.5 DEV - 공학문제 3단 작성 규칙 */
.yjwe-memory-field{display:block;margin-top:14px}
.yjwe-memory-field>span{display:block;font-weight:700;margin-bottom:6px}
.yjwe-memory-field textarea{width:100%;min-height:78px;resize:vertical}


/* V1.3.9.6 DEV - 저장 작업본 학생용 새창 미리보기 */
.yjwe-manager-editbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.yjwe-manager-preview-link{white-space:nowrap}
.yjwe-web-student-preview{
  width:min(1180px,calc(100% - 28px));
  margin:18px auto 30px;
}
.yjwe-web-preview-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:15px 17px;
  margin-bottom:12px;
  border:1px solid #d4e0e6;
  border-radius:10px;
  background:#fff;
}
.yjwe-web-preview-head small{display:block;color:#607885;margin-bottom:4px}
.yjwe-web-preview-head h1{margin:0;font-size:19px;line-height:1.45}
.yjwe-web-preview-head p{margin:6px 0 0;color:#627784;font-size:13px}
.yjwe-web-preview-rule{
  margin:0 0 10px;
  padding:9px 11px;
  border:1px solid #d7e3e9;
  border-radius:7px;
  background:#f8fbfc;
  color:#4d6877;
  font-size:13px;
}
@media(max-width:760px){
  .yjwe-web-preview-head{flex-direction:column}
}


/* V1.3.9.7 DEV - 학생용 보기 버튼을 문제번호 바로 아래 왼쪽에 고정 */
.yjwe-manager-editbar-v1397{display:block}
.yjwe-manager-editbar-v1397>strong{display:block;margin-bottom:10px}
.yjwe-manager-preview-fixed{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.yjwe-manager-preview-main{
  display:inline-block;
  padding:9px 15px;
  border:1px solid #174f74;
  border-radius:6px;
  background:#174f74;
  color:#fff!important;
  font-size:14px!important;
  font-weight:700;
  text-decoration:none!important;
  white-space:nowrap
}
.yjwe-manager-preview-main:hover{background:#123f5b}
.yjwe-manager-preview-fixed small{color:#607785;font-size:12px}
.yjwe-manager-back-link{display:inline-block;margin-top:9px}


/* V1.3.9.9 DEV - 미완성 작업본도 학생용 미리보기 허용 */
.yjwe-preview-empty-note{
  margin:0;
  color:#7a8c96;
  font-style:normal;
}


/* V1.3.9.11 DEV - 보기 해설 입력영역 단순화 */
.yjwe-choice-inline-editor-simple{
  padding:10px 11px 11px;
}
.yjwe-choice-simple-row{
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  gap:10px;
  align-items:start;
}
.yjwe-choice-status,
.yjwe-choice-review{
  margin:0!important;
}
.yjwe-choice-review textarea{
  min-height:64px!important;
}
.yjwe-choice-extra{
  margin-top:8px;
  border-top:1px dashed #d6e1e7;
  padding-top:7px;
}
.yjwe-choice-extra summary{
  cursor:pointer;
  color:#526d7c;
  font-size:11.5px;
  font-weight:600;
  user-select:none;
}
.yjwe-choice-extra[open] summary{
  margin-bottom:7px;
}
.yjwe-choice-extra-grid{
  display:grid;
  grid-template-columns:minmax(0,0.85fr) minmax(0,1.65fr);
  gap:8px;
}
.yjwe-choice-extra-grid label{
  margin:0!important;
}
@media(max-width:850px){
  .yjwe-choice-simple-row,
  .yjwe-choice-extra-grid{
    grid-template-columns:1fr;
  }
}


/* V1.3.9.12 DEV - 외부 관리자 최종 승인 */
.yjwe-draft-state.is-approved{
  background:#eaf7ee;
  color:#226a3b;
}
.yjwe-final-approval{
  margin-top:16px;
  padding:16px;
  border:1px solid #cbdde6;
  border-radius:9px;
  background:#fbfdfe;
}
.yjwe-final-approval-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:11px;
}
.yjwe-final-approval-head small{
  color:#607987;
}
.yjwe-final-approval-head h3{
  margin:3px 0 5px;
  font-size:19px;
}
.yjwe-final-approval-head p{
  margin:0;
  color:#607784;
  font-size:13px;
}
.yjwe-approval-revision{
  padding:5px 9px;
  border-radius:999px;
  background:#eef5f8;
  color:#315d73;
  font-size:12px;
  white-space:nowrap;
}
.yjwe-approval-state{
  padding:10px 11px;
  border-radius:7px;
  font-size:13px;
  margin-bottom:10px;
}
.yjwe-approval-state.is-ready{
  border:1px solid #b9d9c2;
  background:#f0faf3;
  color:#256b3b;
}
.yjwe-approval-state.is-ok{
  border:1px solid #cbdde6;
  background:#f5f9fb;
  color:#426273;
}
.yjwe-approval-state.is-warn{
  border:1px solid #ead7a4;
  background:#fffaf0;
  color:#7a5a18;
}
.yjwe-approval-form{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.yjwe-final-approve-button[disabled]{
  opacity:.45;
  cursor:not-allowed;
}
.yjwe-approval-form small,
.yjwe-approval-owner-only{
  color:#617886;
  font-size:12px;
}
@media(max-width:760px){
  .yjwe-final-approval-head{flex-direction:column}
}


/* V1.3.9.14 DEV - 외부 관리자 보기 입력을 2칸 → 1줄씩 세로배치 */
.yjwe-choice-inputs{
  grid-template-columns:1fr!important;
  gap:12px!important;
}
.yjwe-choice-compose{
  width:100%;
}
.yjwe-choice-text-row textarea{
  min-height:86px;
}

/* V1.3.9.26: 회차 우선 → 회차 안 1등급/2등급 + 초고밀도 작업열 */
.yjwe-draft-round-groups{display:grid;gap:7px;margin-top:8px}
.yjwe-draft-round-block{border:1px solid #d6e2e9;border-radius:7px;background:#fff;overflow:hidden}
.yjwe-draft-round-title{display:flex;align-items:center;gap:5px;min-height:34px;padding:3px 7px;background:#f3f8fb;color:#173f59;cursor:pointer;list-style:none;border-bottom:1px solid transparent}
.yjwe-draft-round-block[open]>.yjwe-draft-round-title{border-bottom-color:#dce7ed}
.yjwe-draft-round-title::-webkit-details-marker{display:none}
.yjwe-draft-round-title strong{font-size:13.5px;color:#123f5b}
.yjwe-draft-round-count{margin-left:auto;color:#4c7860;font-size:10px;font-weight:700}
.yjwe-draft-group-arrow{display:inline-flex;align-items:center;justify-content:center;width:13px;color:#6d8290;font-size:17px;line-height:1;transition:transform .15s ease}
.yjwe-draft-round-block[open]>.yjwe-draft-round-title .yjwe-draft-group-arrow{transform:rotate(90deg)}
.yjwe-draft-round-body{display:grid;gap:0}
.yjwe-draft-grade-section{min-width:0;background:#fff}
.yjwe-draft-grade-section+.yjwe-draft-grade-section{border-top:1px solid #dfe7ec}
.yjwe-draft-grade-title{display:flex;align-items:center;gap:6px;min-height:28px;padding:2px 6px;background:#fafcfd;border-bottom:1px solid #e5ebef}
.yjwe-draft-grade-g1 .yjwe-draft-grade-title{background:#f8fbfd}
.yjwe-draft-grade-g2 .yjwe-draft-grade-title{background:#fbfcfb}
.yjwe-draft-grade-title strong{font-size:11.5px;color:#173f59}
.yjwe-draft-grade-title span{margin-left:auto;font-size:9.5px;color:#607b8b}
.yjwe-draft-grade-empty{padding:5px 7px;color:#768995;font-size:10.5px}
.yjwe-manager-table-wrap-compact{margin-top:0}
.yjwe-manager-table-compact{min-width:900px;table-layout:fixed;font-size:11.5px}
.yjwe-manager-table-compact .yjwe-col-state{width:58px}
.yjwe-manager-table-compact .yjwe-col-subject{width:55px}
.yjwe-manager-table-compact .yjwe-col-number{width:38px}
.yjwe-manager-table-compact .yjwe-col-question{width:auto}
.yjwe-manager-table-compact .yjwe-col-actions{width:255px}
.yjwe-manager-table-compact .yjwe-col-date{width:88px}
.yjwe-manager-table-compact th,.yjwe-manager-table-compact td{padding:2px 3px;line-height:1.15;white-space:nowrap}
.yjwe-manager-table-compact th{font-size:10.5px}
.yjwe-manager-table-compact .yjwe-manager-qtext{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yjwe-manager-table-compact .yjwe-draft-state{padding:2px 4px;font-size:9.25px}
.yjwe-manager-table-compact .yjwe-manager-row-actions{gap:4px;padding-left:3px;padding-right:3px;flex-wrap:nowrap;overflow:visible}
.yjwe-manager-table-compact .yjwe-manager-row-actions .yjwe-manager-secondary{padding:2px 6px;font-size:10.25px;line-height:1.2;flex:0 0 auto}
.yjwe-manager-table-compact .yjwe-manager-date,.yjwe-manager-table-compact .yjwe-date-head{text-align:right}
.yjwe-manager-table-compact .yjwe-manager-date{color:#5f7482;font-size:10.25px}
.yjwe-delete-question-form{display:inline-flex;margin:0}
.yjwe-manager-delete{border-color:#d7a4a4!important;color:#9b2f2f!important;background:#fffafa!important;cursor:pointer}
.yjwe-manager-delete:hover{background:#fff0f0!important}
@media(max-width:850px){.yjwe-draft-round-title{min-height:31px}.yjwe-draft-grade-title{min-height:26px}.yjwe-manager-table-compact{min-width:900px}}


/* =========================================================
   V1.3.9.27 DEV - 문제/보기 인라인 작업대
   - 문제 자리: 수정/수식/원본/AI
   - 보기 자리: 공식정답/AI판단/공식자료/수식/해설
========================================================= */
.yjwe-question-workbench{margin-top:10px}
.yjwe-question-workbench-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:6px
}
.yjwe-question-workbench-head>span{
  color:#536e7f;font-size:12px;font-weight:700
}
.yjwe-question-quick-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap
}
.yjwe-question-quick-actions .yjwe-manager-secondary,
.yjwe-question-quick-actions .yjwe-quick-link{
  min-height:29px!important;padding:5px 9px!important;font-size:11.5px!important;
  line-height:1.25!important;white-space:nowrap
}
.yjwe-question-quick-actions .is-disabled{
  opacity:.45;cursor:not-allowed;display:inline-flex;align-items:center
}
.yjwe-official-answer-chip{
  display:inline-flex;align-items:center;min-height:29px;padding:4px 9px;
  border-radius:999px;background:#eaf7ee;color:#24673b;
  font-size:11.5px;font-weight:800;white-space:nowrap
}
.yjwe-apply-ai-all{background:#eef7fb!important;border-color:#90b8cf!important;font-weight:800!important}

.yjwe-choice-source-stack{min-width:0}
.yjwe-choice-source-badges{
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 5px
}
.yjwe-choice-official-badge,
.yjwe-choice-ai-status,
.yjwe-choice-check-badge{
  display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;
  border-radius:999px;font-size:10.5px;font-weight:800;line-height:1
}
.yjwe-choice-official-badge{background:#eaf7ee;color:#23663a}
.yjwe-choice-ai-status{background:#edf4f8;color:#416579}
.yjwe-choice-ai-status.is-right{background:#edf8f0;color:#2d6b43}
.yjwe-choice-ai-status.is-wrong{background:#fff1ef;color:#9a4037}
.yjwe-choice-check-badge{background:#f5f0ff;color:#66509a}

.yjwe-choice-tools{
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:7px
}
.yjwe-choice-tool{
  border:1px solid #b9cdd9;background:#fff;color:#245874;border-radius:5px;
  padding:4px 7px;font-size:10.5px;line-height:1.25;cursor:pointer;
  white-space:nowrap
}
.yjwe-choice-tool:hover{background:#f1f7fa}
.yjwe-choice-tool.is-disabled{opacity:.45;cursor:default}
.yjwe-choice-search{border-color:#99c6ad;color:#2d6b48}
.yjwe-choice-tool-note{
  margin-left:auto;color:#7a8d98;font-size:9.8px;line-height:1.35
}

.yjwe-choice-ai-suggestion{
  margin:0 0 8px;padding:7px 8px;border:1px solid #d8e6ee;
  border-radius:6px;background:#fff
}
.yjwe-choice-ai-suggestion b{color:#1d5f83;font-size:11.5px}
.yjwe-choice-ai-suggestion>span{
  margin-left:6px;padding:2px 6px;border-radius:999px;background:#eef4f7;
  color:#536f80;font-size:11px
}
.yjwe-choice-ai-suggestion p{
  margin:5px 0 0;color:#304f62;font-size:12.5px;line-height:1.45
}
.yjwe-choice-ai-suggestion small{
  display:block;margin-top:5px;color:#336f93;font-size:11.5px;line-height:1.45
}

.yjwe-choice-check-inline{
  margin:0 0 8px;padding:7px 8px;border:1px solid #cde2d5;border-radius:6px;
  background:#fbfffc;color:#395f4a;font-size:10.8px
}
.yjwe-choice-check-inline.is-stale{border-color:#e3c783;background:#fffaf0}
.yjwe-choice-check-inline>div:first-child{
  display:flex;justify-content:space-between;gap:8px;align-items:center
}
.yjwe-choice-check-inline p{margin:4px 0 0;line-height:1.45}
.yjwe-choice-check-inline p strong{margin-right:5px}
.yjwe-choice-check-inline .is-corrected{color:#256389}
.yjwe-choice-check-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}
.yjwe-choice-check-links a{font-size:10.5px}

.yjwe-choice-formula-editor{
  margin-top:8px;padding-top:7px;border-top:1px dashed #d6e1e7
}
.yjwe-choice-formula-editor>summary{
  cursor:pointer;color:#526d7c;font-size:11px;font-weight:700;user-select:none
}
.yjwe-choice-formula-editor[open]>summary{margin-bottom:7px}
.yjwe-choice-formula-editor .yjwe-hwp-toolbar{margin:0 0 6px}
.yjwe-choice-formula-editor .yjwe-hwp-input{
  width:100%;min-height:70px;box-sizing:border-box;border:1px solid #cbd9e1;
  border-radius:5px;background:#fff;padding:7px 8px;
  font:12px/1.55 Consolas,"Malgun Gothic",monospace;color:#173f59;resize:vertical
}
.yjwe-choice-formula-editor .yjwe-hwp-preview{
  min-height:56px;margin-top:6px;padding:6px 8px
}
.yjwe-choice-compose.is-ai-applied{
  outline:2px solid #8fc1db;outline-offset:1px;transition:.2s
}

/* 문제 전체 수식은 기본 접힘. 문제 옆 '수식' 버튼으로 바로 개폐 */
.yjwe-hwp-formula-field>summary{
  cursor:pointer;list-style:none;color:#174f74;font-weight:800
}
.yjwe-hwp-formula-field>summary::-webkit-details-marker{display:none}
.yjwe-hwp-formula-field>summary:before{content:"▸";margin-right:7px}
.yjwe-hwp-formula-field[open]>summary:before{content:"▾"}
.yjwe-hwp-formula-field[open]>summary{margin-bottom:8px}
.yjwe-hwp-input#yjwe-engineering-formula{
  width:100%;min-height:115px;box-sizing:border-box;border:1px solid #cbd9e1;
  border-radius:6px;background:#fff;padding:9px 10px;
  font:13px/1.65 Consolas,"Malgun Gothic",monospace;color:#173f59;resize:vertical
}

/* 기존 큰 AI 결과는 일상 작업을 방해하지 않도록 상세보기로 접음 */
.yjwe-ai-detail{
  margin-top:16px;border:1px solid #dbe5ed;border-radius:8px;background:#fbfdfe
}
.yjwe-ai-detail>summary{
  cursor:pointer;padding:10px 12px;color:#40677f;font-size:12px;font-weight:800
}
.yjwe-ai-detail[open]>summary{border-bottom:1px solid #dbe5ed}
.yjwe-ai-detail .yjwe-ai-review{margin-top:0;padding:14px;border-top:0}

/* 원래 2열 보기 입력은 폭이 좁아도 한 자리에서 읽기 쉽게 */
.yjwe-choice-compose{padding:8px!important}
.yjwe-choice-inline-editor-simple{padding:8px 9px 9px!important}
.yjwe-choice-simple-row{grid-template-columns:92px minmax(0,1fr);gap:7px}
.yjwe-choice-inline-editor input,
.yjwe-choice-inline-editor select,
.yjwe-choice-inline-editor textarea{padding:6px 7px!important}
.yjwe-choice-review textarea{min-height:58px!important}

@media(max-width:900px){
  .yjwe-question-workbench-head{align-items:flex-start;flex-direction:column}
  .yjwe-question-quick-actions{justify-content:flex-start}
  .yjwe-choice-tool-note{width:100%;margin-left:0}
}

/* =========================================================
   V1.3.9.28 DEV - 대량 검수 작업속도
   - 미검수/검수완료 필터
   - AI 초안 최대 5문제 순차 생성
   - 검수완료/재검수 표시
   - 다음 문제 즉시 이동
========================================================= */
.yjwe-review-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:9px 0 8px;flex-wrap:wrap
}
.yjwe-review-toolbar .yjwe-draft-sort{margin:0;justify-content:flex-start}
.yjwe-bulk-ai-box{display:flex;align-items:center;gap:8px;min-width:0}
.yjwe-bulk-ai-button{font-weight:800!important;border-color:#7daec8!important;background:#f5fbfe!important}
.yjwe-bulk-ai-button:disabled{opacity:.45;cursor:not-allowed}
.yjwe-bulk-ai-progress{color:#667f8e;font-size:10.5px;white-space:nowrap}

.yjwe-review-state{
  display:inline-flex;align-items:center;justify-content:center;min-height:20px;
  padding:2px 5px;border-radius:999px;font-size:9.5px;font-weight:800;white-space:nowrap
}
.yjwe-review-state.is-pending{background:#fff4e5;color:#8a5a14}
.yjwe-review-state.is-done{background:#eaf7ee;color:#22643a}
.yjwe-review-state.is-stale{background:#fff0ed;color:#a13c30}
.yjwe-state-cell{white-space:nowrap}
.yjwe-state-cell .yjwe-review-state{margin-right:2px}
.yjwe-state-cell small{font-size:8.75px;color:#708490}

.yjwe-review-editbar{align-items:center}
.yjwe-review-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.yjwe-review-toggle-form{display:inline-flex;margin:0}
.yjwe-review-edit-actions .yjwe-manager-secondary{padding:5px 8px;font-size:11px}
.yjwe-review-complete-button{border-color:#7eb998!important;color:#2c7149!important;background:#f7fcf8!important;font-weight:800!important}
.yjwe-next-question,.yjwe-next-pending{font-weight:800!important}
.yjwe-next-pending{border-color:#d1a86b!important;color:#815a22!important;background:#fffaf2!important}
.yjwe-save-next{margin-left:4px;font-weight:800!important}

/* 상태 문자열이 바뀌어도 문제 칸을 침범하지 않게 최소폭만 소폭 조정 */
.yjwe-manager-table-compact .yjwe-col-state{width:64px}
.yjwe-manager-table-compact .yjwe-state-cell{padding-left:2px;padding-right:2px}

@media(max-width:760px){
  .yjwe-review-toolbar{align-items:flex-start;flex-direction:column}
  .yjwe-bulk-ai-box{width:100%;flex-wrap:wrap}
  .yjwe-review-edit-actions{justify-content:flex-start}
  .yjwe-bulk-ai-progress{white-space:normal}
}


/* V1.3.9.29 - 중복 기존문제 바로 열기 */
.yjwe-duplicate-detail{margin-top:7px;font-weight:700}
.yjwe-duplicate-open-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.yjwe-duplicate-open-form small{color:#6f7f89}


/* V1.3.9.30 - 동일 번호 다중충돌 전체 표시 */
.yjwe-duplicate-candidates{display:grid;gap:8px;margin-top:10px}
.yjwe-duplicate-candidate{padding:10px 12px;border:1px solid #e2c98b;border-radius:8px;background:#fffdf7}
.yjwe-duplicate-candidate p{margin:5px 0 8px;color:#425466}


/* V1.3.9.32 DEV - 문제번호 옆 작은 공식정답 칸 */
.yjwe-number-answer-inline{
  display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;align-items:end;min-width:0
}
.yjwe-number-answer-inline label{min-width:0;margin:0!important}
.yjwe-official-answer-compact select{
  width:100%!important;min-width:72px!important;height:39px!important;
  padding:7px 8px!important;text-align:center!important;font-weight:800!important;
  color:#225f38!important;border-color:#9fcdb0!important;background:#f7fcf8!important
}
.yjwe-official-answer-compact>span{color:#33704a!important;font-weight:700!important}
@media(max-width:850px){
  .yjwe-number-answer-inline{grid-template-columns:minmax(0,1fr) 92px}
}

/* V1.3.9.34 DEV — V1.3.9.33 파일럿 계승 + AI 초안 표시 글자 1px 확대 */
.yjwe-expert-cycle{margin:12px 0 16px;padding:14px 16px;border:1px solid #9fbfd3;border-radius:8px;background:#f7fbfd;box-shadow:0 3px 10px rgba(22,78,116,.06)}
.yjwe-expert-cycle-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.yjwe-expert-cycle-head small{display:block;color:#587181;font-size:12px;margin-bottom:2px}
.yjwe-expert-cycle-head h3{margin:0 0 4px;font-size:19px;color:#113f5f}
.yjwe-expert-cycle-head p{margin:0;color:#516873;font-size:13px;line-height:1.55}
.yjwe-cycle-save-state{flex:0 0 auto;min-width:150px;padding:8px 10px;border-radius:6px;background:#e8f5ec;color:#21663a;font-size:12px;font-weight:700;text-align:center}
.yjwe-cycle-save-state.is-busy{background:#eef5fa;color:#1d5e84}
.yjwe-cycle-save-state.is-error{background:#fff0f0;color:#b52727}
.yjwe-cycle-flow{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 10px;padding-top:10px;border-top:1px dashed #c5d7e2}
.yjwe-cycle-flow span{padding:5px 8px;border:1px solid #d1dde4;border-radius:999px;background:#fff;color:#657983;font-size:11px;white-space:nowrap}
.yjwe-cycle-flow span.is-done{border-color:#a9d3b5;background:#eef8f1;color:#247143;font-weight:700}
.yjwe-cycle-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.yjwe-cycle-actions .yjwe-manager-primary,.yjwe-cycle-actions .yjwe-manager-secondary{margin:0}
.yjwe-cycle-rule{margin:9px 0 0;color:#5c6f79;font-size:12px;line-height:1.5}
.yjwe-cycle-rule strong{color:#b34b20}
.yjwe-ai-formula-suggest{display:block;margin-top:6px;padding:5px 7px;border-radius:5px;background:#f1f6fb;color:#235f87;font-weight:600}
/* 파일럿 문제에서는 보기 자체가 학생형 카드처럼 보이도록 입력부를 조금 더 명료하게. */
.yjwe-expert-cycle + form .yjwe-choice-compose{border-color:#c5d7e1;background:#fff}
@media (max-width:780px){.yjwe-expert-cycle-head{display:block}.yjwe-cycle-save-state{margin-top:8px;text-align:left}.yjwe-cycle-actions{align-items:stretch}.yjwe-cycle-actions>*{flex:1 1 auto;text-align:center}}


/* V1.3.9.35 DEV — 39회 1등급 1번: AI 초안 자체를 바로 수정·저장 */
.yjwe-choice-ai-editable{padding:10px 12px!important;background:#fbfdff!important;border:1px solid #c7dbe8!important}
.yjwe-ai-edit-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.yjwe-ai-edit-head b{font-size:12.5px!important;color:#115b84}
.yjwe-ai-edit-head span{font-size:11px!important;color:#70838e}
.yjwe-ai-edit-main{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start}
.yjwe-ai-edit-main label,.yjwe-ai-edit-correction label{display:block;margin:0}
.yjwe-ai-edit-main label>span,.yjwe-ai-edit-correction label>span{display:block;margin:0 0 4px;color:#536b79;font-size:11px;font-weight:700}
.yjwe-ai-edit-status select{width:100%;height:36px;padding:5px 7px;font-weight:700}
.yjwe-ai-edit-review textarea,.yjwe-ai-edit-correction textarea,.yjwe-ai-edit-correction input{width:100%;box-sizing:border-box;border:1px solid #c9d7df;border-radius:6px;background:#fff;color:#163d57;font-size:12.5px!important;line-height:1.55;padding:8px 10px}
.yjwe-ai-edit-review textarea{min-height:68px;resize:vertical}
.yjwe-ai-edit-correction{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.6fr);gap:8px;margin-top:8px;padding-top:8px;border-top:1px dashed #d9e4ea}
.yjwe-ai-edit-correction textarea{min-height:58px;resize:vertical}
.yjwe-ai-edit-formula{margin-top:8px;padding-top:6px;border-top:1px dashed #d9e4ea}
.yjwe-ai-edit-formula summary{cursor:pointer;color:#1b6288;font-size:11.5px;font-weight:700}
.yjwe-ai-edit-formula .yjwe-hwp-input{font-size:12.5px!important}
@media(max-width:780px){.yjwe-ai-edit-main,.yjwe-ai-edit-correction{grid-template-columns:1fr}}

/* V1.3.9.36 DEV — 전문가 저장본 우선 + 보기 근처 AI 반복검토 + 최소 서식툴 */
.yjwe-cycle-compact{
  margin:10px 0 12px;padding:9px 11px;border:1px solid #b9cfdd;border-radius:7px;background:#f8fbfd
}
.yjwe-cycle-compact-main{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.yjwe-cycle-compact-main>strong{font-size:13px;color:#123f5d}
.yjwe-cycle-compact-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.yjwe-cycle-compact-actions .yjwe-manager-primary,.yjwe-cycle-compact-actions .yjwe-manager-secondary{margin:0!important;padding:7px 10px!important;min-height:34px!important}
.yjwe-cycle-compact-status{margin-top:7px;color:#21663a;font-size:11.5px;font-weight:700}
.yjwe-cycle-compact-status.is-busy{color:#1d5e84}.yjwe-cycle-compact-status.is-error{color:#b52727}
.yjwe-cycle-compact>small{display:block;margin-top:3px;color:#6a7d88;font-size:10.5px;line-height:1.45}

.yjwe-ai-edit-review>span,.yjwe-ai-edit-corrected>span{display:block;margin:0 0 4px;color:#536b79;font-size:11px;font-weight:700}
.yjwe-choice-rich-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0 0 5px}
.yjwe-choice-rich-toolbar button{height:28px;padding:3px 8px;border:1px solid #bfd0da;border-radius:5px;background:#fff;color:#244b62;font-size:11px;font-weight:700;cursor:pointer}
.yjwe-choice-rich-toolbar button:hover{background:#f2f7fa;border-color:#8fb0c3}
.yjwe-choice-rich-toolbar button.is-red{color:#c42920}.yjwe-choice-rich-toolbar button.is-blue{color:#176ba0}
.yjwe-choice-rich-editor{min-height:68px;padding:8px 10px;border:1px solid #c9d7df;border-radius:6px;background:#fff;color:#163d57;font-size:12.5px;line-height:1.6;outline:none;box-sizing:border-box;overflow-wrap:anywhere}
.yjwe-choice-rich-editor:focus{border-color:#68a8cb;box-shadow:0 0 0 2px rgba(28,117,166,.08)}
.yjwe-choice-rich-editor ol,.yjwe-choice-rich-editor ul{margin:5px 0 5px 22px;padding-left:12px}
.yjwe-choice-rich-editor li{margin:2px 0}
.yjwe-ai-edit-corrected{min-width:0}

@media(max-width:780px){
  .yjwe-cycle-compact-main{align-items:flex-start}.yjwe-cycle-compact-actions{width:100%}
  .yjwe-cycle-compact-actions>*{flex:1 1 auto;text-align:center}
}

/* V1.3.9.37 DEV — 파일럿 단순화: 반복검토 버튼 50%급 경량화 + 종합해설 반복검토 */
.yjwe-cycle-compact{margin:7px 0 9px;padding:6px 8px;border-radius:6px}
.yjwe-cycle-compact-main{gap:6px}
.yjwe-cycle-compact-main>strong{font-size:11.5px}
.yjwe-cycle-compact-actions{gap:4px}
.yjwe-cycle-compact-actions .yjwe-manager-primary,
.yjwe-cycle-compact-actions .yjwe-manager-secondary,
.yjwe-summary-cycle-actions .yjwe-manager-primary,
.yjwe-summary-cycle-actions .yjwe-manager-secondary{
  min-height:25px!important;height:25px!important;padding:2px 7px!important;border-radius:4px!important;font-size:10.5px!important;line-height:19px!important;font-weight:700!important
}
.yjwe-cycle-compact-status{margin-top:4px;font-size:10.5px}
.yjwe-cycle-compact>small{margin-top:2px;font-size:9.8px}

/* 별도 '틀린 핵심/옳은 문장' 편집열은 파일럿에서 제거하고 해설 한 칸에 집중 */
.is-cycle-pilot .yjwe-ai-edit-main{grid-template-columns:78px minmax(0,1fr);gap:7px}
.is-cycle-pilot .yjwe-choice-rich-editor{min-height:72px}

.yjwe-pilot-summary{margin:12px 0 4px;padding:11px 12px;border:1px solid #b9cfdd;border-radius:8px;background:#f8fbfd}
.yjwe-pilot-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.yjwe-pilot-summary-head>div:first-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.yjwe-pilot-summary-head strong{font-size:14px;color:#123f5d}
.yjwe-pilot-summary-head span{font-size:10.5px;color:#6a7d88}
.yjwe-summary-cycle-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.yjwe-summary-cycle-status{margin:3px 0 7px;color:#21663a;font-size:10.5px;font-weight:700}
.yjwe-summary-cycle-status.is-error{color:#b52727}.yjwe-summary-cycle-status.is-busy{color:#1d5e84}
.yjwe-pilot-summary-toolbar{margin:0 0 6px;padding:5px 6px;gap:4px;border-radius:6px}
.yjwe-pilot-summary-toolbar button{padding:3px 7px;font-size:10.5px;min-height:26px}
.yjwe-pilot-summary-editor{min-height:145px;padding:10px 11px;font-size:13px;line-height:1.65}
.yjwe-pilot-summary-editor ol,.yjwe-pilot-summary-editor ul{margin:6px 0 6px 24px;padding-left:12px}
.yjwe-pilot-summary-editor li{margin:2px 0}
.yjwe-pilot-summary-memory{display:block;margin-top:8px}
.yjwe-pilot-summary-memory>span{display:block;margin-bottom:4px;color:#536b79;font-size:10.5px;font-weight:700}
.yjwe-pilot-summary-memory textarea{width:100%;box-sizing:border-box;min-height:56px;padding:7px 9px;border:1px solid #c9d7df;border-radius:6px;background:#fff;color:#163d57;font-size:12px;line-height:1.55;resize:vertical}

@media(max-width:780px){
  .yjwe-cycle-compact-actions,.yjwe-summary-cycle-actions{width:auto}
  .yjwe-cycle-compact-actions>*,.yjwe-summary-cycle-actions>*{flex:0 0 auto!important}
  .yjwe-pilot-summary-head{display:block}.yjwe-summary-cycle-actions{margin-top:6px}
}


/* V1.3.9.38 DEV — 공통 인라인 수식툴: 문제·보기·해설·종합해설 공용 */
.yjwe-common-math-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:5px 0 6px;padding:4px 5px;border:1px solid #d5e0e7;border-radius:5px;background:#f8fbfd}
.yjwe-common-math-toolbar>span{font-size:10px;font-weight:800;color:#6b7f8b;margin-right:2px}
.yjwe-common-math-toolbar button{height:26px;padding:2px 7px;border:1px solid #bfd0da;border-radius:5px;background:#fff;color:#244b62;font-size:10.5px;font-weight:700;cursor:pointer;line-height:20px}
.yjwe-common-math-toolbar button:hover{background:#edf6fb;border-color:#8eb3c8}
.yjwe-common-math-toolbar-inline{display:inline-flex;vertical-align:middle;margin:0 0 5px 6px;padding:0;border:0;background:transparent}
.yjwe-choice-rich-toolbar+.yjwe-common-math-toolbar-inline{margin-left:0}
.yjwe-choice-source-math{margin:0 0 5px;padding:0;border:0;background:transparent}
.yjwe-choice-source-rich{min-height:70px;width:100%;box-sizing:border-box;border:1px solid #c9d7df;border-radius:6px;background:#fff;color:#163d57;padding:9px 11px;font-size:15px;line-height:1.65;outline:none;overflow-wrap:anywhere}
.yjwe-choice-source-rich:focus{border-color:#68a8cb;box-shadow:0 0 0 2px rgba(28,117,166,.08)}
.yjwe-inline-math{display:inline-flex;align-items:center;vertical-align:middle;min-height:1.25em;margin:0 .12em;padding:0 .18em;border-radius:3px;background:transparent;cursor:pointer;white-space:nowrap}
.yjwe-inline-math:hover{background:transparent;box-shadow:0 0 0 1px #9cc2d7}
.yjwe-inline-math.is-copy-selected{background:#dceef8;box-shadow:0 0 0 2px #5f98b8;outline:0}
.yjwe-inline-math.is-copied{box-shadow:0 0 0 2px #4f8f6f}
.yjwe-inline-math math{display:inline-block!important;margin:0!important;font-size:1em}
.yjwe-inline-math-dialog{width:min(620px,calc(100vw - 28px));border:1px solid #9fb9c9;border-radius:8px;padding:0;box-shadow:0 18px 50px rgba(14,47,68,.24)}
.yjwe-inline-math-dialog::backdrop{background:rgba(20,43,58,.28)}
.yjwe-inline-math-dialog-box{padding:12px 14px;margin:0}
.yjwe-inline-math-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.yjwe-inline-math-dialog-head strong{font-size:14px;color:#143f5b}
.yjwe-inline-math-dialog-head button{border:0;background:transparent;font-size:21px;line-height:1;color:#647985;cursor:pointer}
.yjwe-inline-math-dialog-toolbar{margin:0 0 7px}
.yjwe-inline-math-dialog-input{width:100%;min-height:72px;box-sizing:border-box;border:1px solid #bdd0db;border-radius:6px;padding:8px 10px;font:13px/1.5 Consolas,Monaco,monospace;color:#173f59;resize:vertical}
.yjwe-inline-math-dialog-preview{min-height:58px;margin-top:7px;padding:8px 10px;border:1px solid #d5e1e8;border-radius:6px;background:#fbfdfe;text-align:center;overflow:auto}
.yjwe-inline-math-dialog-preview math{font-size:1.12em}
.yjwe-inline-math-dialog-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-top:8px}
.yjwe-inline-math-dialog-actions .yjwe-manager-primary,.yjwe-inline-math-dialog-actions .yjwe-manager-secondary{margin:0!important;min-height:30px!important;padding:5px 9px!important;font-size:11px!important}
.yjwe-inline-math-dialog-box>small{display:block;margin-top:6px;color:#687d89;font-size:10.5px;line-height:1.45}
@media(max-width:780px){.yjwe-common-math-toolbar-inline{display:flex;margin-left:0}.yjwe-inline-math-dialog-actions>*{flex:1 1 auto}}


/* V1.3.9.39 DEV — 공통 텍스트/수식 편집툴. 위/아래첨자는 일반 선택 텍스트 서식 */
.yjwe-common-edit-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:5px 0 6px;padding:0;border:0;background:transparent}
.yjwe-common-edit-toolbar button{height:27px;padding:2px 8px;border:1px solid #bfd0da;border-radius:5px;background:#fff;color:#244b62;font-size:10.5px;font-weight:700;cursor:pointer;line-height:21px}
.yjwe-common-edit-toolbar button:hover{background:#edf6fb;border-color:#8eb3c8}
.yjwe-common-edit-toolbar button.is-red{color:#b42318}.yjwe-common-edit-toolbar button.is-blue{color:#0b5fa5}
.yjwe-common-edit-toolbar-inline{margin-top:3px}
.yjwe-manager-question-editor .yjwe-mark-red,.yjwe-choice-source-rich .yjwe-mark-red{color:#b42318;font-weight:700}
.yjwe-manager-question-editor .yjwe-mark-blue,.yjwe-choice-source-rich .yjwe-mark-blue{color:#0b5fa5;font-weight:700}
.yjwe-manager-question-editor sup,.yjwe-choice-source-rich sup,.yjwe-choice-rich-editor sup,.yjwe-rich-explanation sup{font-size:.72em;line-height:0;vertical-align:super}
.yjwe-manager-question-editor sub,.yjwe-choice-source-rich sub,.yjwe-choice-rich-editor sub,.yjwe-rich-explanation sub{font-size:.72em;line-height:0;vertical-align:sub}
@media(max-width:780px){.yjwe-common-edit-toolbar button{padding:2px 6px}}


/* V1.3.9.40 DEV — 종합해설 AI 결과는 큰 상시 박스 대신 필요할 때만 여는 소형 대화창 */
.yjwe-summary-ai-dialog{width:min(680px,calc(100vw - 32px));max-height:80vh;padding:0;border:0;border-radius:10px;box-shadow:0 18px 60px rgba(13,48,70,.22);color:#173f59}
.yjwe-summary-ai-dialog::backdrop{background:rgba(18,42,58,.28)}
.yjwe-summary-ai-dialog-box{padding:14px 16px;background:#fff}
.yjwe-summary-ai-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid #dbe7ee}
.yjwe-summary-ai-dialog-head strong{font-size:14px;color:#174f74}.yjwe-summary-ai-dialog-head button{border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:#607987}
.yjwe-summary-ai-dialog-comment{margin:9px 0 0;color:#5e7482;font-size:11px}.yjwe-summary-ai-dialog-text{margin-top:9px;max-height:260px;overflow:auto;white-space:pre-wrap;font-size:13px;line-height:1.65}
.yjwe-summary-ai-dialog-memory,.yjwe-summary-ai-dialog-formula{margin-top:9px;padding:8px 9px;border:1px solid #e0e8ed;border-radius:6px;background:#f8fbfd;font-size:11.5px;line-height:1.55}
.yjwe-summary-ai-dialog-actions{display:flex;gap:6px;align-items:center;margin-top:12px}.yjwe-summary-ai-dialog-box>small{display:block;margin-top:7px;color:#718692;font-size:10.5px}

/* V1.3.9.43: 이 문제의 핵심정리 지식 DB 메타 */
.yjwe-summary-knowledge-meta{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;margin:10px 0 8px;padding:9px 10px;border:1px solid #d8e5ec;border-radius:7px;background:#fbfdfe}
.yjwe-summary-knowledge-meta label{display:grid;gap:4px;min-width:0}.yjwe-summary-knowledge-meta label>span{font-size:11px;font-weight:700;color:#587182}
.yjwe-summary-knowledge-meta select,.yjwe-summary-knowledge-meta input{width:100%;box-sizing:border-box;border:1px solid #cbd9e1;border-radius:5px;padding:7px 8px;background:#fff;color:#173f59;font:inherit;font-size:12px}
.yjwe-summary-knowledge-meta select{font-size:15px;letter-spacing:1px}.yjwe-summary-knowledge-meta .is-wide{min-width:0}
@media(max-width:760px){.yjwe-summary-knowledge-meta{grid-template-columns:1fr}}

/* V1.3.9.46: 선택한 저장문제 바로 아래 인라인 편집 */
.yjwe-manager-table .yjwe-inline-editor-row>td{padding:10px 0 16px;border-bottom:1px solid #c9dce8;background:#f8fbfd;vertical-align:top}
.yjwe-inline-editor-row [data-yjwe-inline-editor-slot]{display:block;width:100%;box-sizing:border-box}
.yjwe-inline-editor-row .yjwe-manager-create.is-inline-editor{margin:0 8px;padding:16px 18px;border-color:#b9d1df;border-radius:8px;box-shadow:0 4px 14px rgba(23,79,116,.06)}
.yjwe-inline-editor-row .yjwe-manager-create.is-inline-editor .yjwe-manager-title{padding-bottom:10px}
.yjwe-inline-editor-row .yjwe-manager-create.is-inline-editor .yjwe-manager-question-form{margin-top:12px}
.yjwe-manager-table tr.is-editing+tr.yjwe-inline-editor-row>td{border-top:2px solid #73a7c7}
.yjwe-manager-table tr.is-copying+tr.yjwe-inline-editor-row>td{border-top:2px solid #d8b46c;background:#fffdf7}
@media(max-width:850px){.yjwe-inline-editor-row .yjwe-manager-create.is-inline-editor{margin:0 3px;padding:13px 10px}}


/* V1.3.9.51 — 수정본 저장과 최종 승인을 한 번에 처리하는 승인 도장 */
.yjwe-save-approve-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.yjwe-approve-stamp-button{border-color:#245f42!important;background:#245f42!important;color:#fff!important;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.yjwe-approve-stamp-button:hover{background:#1d4f36!important;border-color:#1d4f36!important}
.yjwe-approve-stamp-compact{padding:5px 9px!important;font-size:11px!important;min-height:auto!important}
@media(max-width:850px){.yjwe-save-approve-actions{width:100%;display:grid;grid-template-columns:1fr}.yjwe-save-approve-actions .yjwe-manager-primary{width:100%}}


/* V1.3.9.52 DEV — 공학용 수식편집기: times/cdot · 글자크기 · =줄맞춤 · it/rm */
.yjwe-hwp-toolbar{align-items:center}
.yjwe-hwp-toolbar button.is-active,.yjwe-hwp-toolbar button[aria-pressed="true"]{background:#e5f2f8;border-color:#6fa4bf;color:#123f59;box-shadow:inset 0 0 0 1px rgba(66,126,157,.12)}
.yjwe-hwp-toolbar button[data-yjwe-hwp-wrap="it"],.yjwe-inline-math-dialog-toolbar button[data-yjwe-dialog-wrap="it"]{font-style:italic}
.yjwe-hwp-toolbar button[data-yjwe-hwp-wrap="rm"],.yjwe-inline-math-dialog-toolbar button[data-yjwe-dialog-wrap="rm"]{font-style:normal;font-family:"Times New Roman","Malgun Gothic",serif}
.yjwe-hwp-size-control{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 5px;border:1px solid #cbd9e1;border-radius:5px;background:#fff;color:#31576d;font-size:10.5px;font-weight:700;white-space:nowrap}
.yjwe-hwp-size-control select{height:23px;min-width:58px;border:0;border-left:1px solid #d7e2e8;background:#fff;color:#244b62;padding:0 3px;font-size:10.5px;outline:0}
.yjwe-hwp-preview math mtable,.yjwe-inline-math-dialog-preview math mtable{margin-left:auto;margin-right:auto}
.yjwe-hwp-preview math mtd,.yjwe-inline-math-dialog-preview math mtd{padding:.08em .16em}
@media(max-width:780px){.yjwe-hwp-size-control{height:27px}.yjwe-hwp-size-control select{min-width:52px}}

/* V1.3.9.54 — 보기별 AI↔전문가 순차 작업 + 종합해설 연계 */
.yjwe-cycle-guide{font-size:11px;color:#5f7482;line-height:1.45}
.yjwe-choice-ai-run{border-color:#6f9fbd!important;background:#f3f9fc!important;color:#164f73!important;font-weight:800!important}
.yjwe-choice-finish{border-color:#568b68!important;color:#245f42!important;font-weight:800!important}
.yjwe-choice-flow-status{display:inline-flex;align-items:center;min-height:27px;padding:2px 7px;border-radius:5px;background:#f5f8fa;color:#617682;font-size:10.5px;line-height:1.35}
.yjwe-choice-flow-status.is-busy{background:#eef7fb;color:#1d5e84}.yjwe-choice-flow-status.is-error{background:#fff3f2;color:#b42318}
.yjwe-choice-compose.is-choice-complete{border-color:#91b9a0!important;box-shadow:inset 3px 0 0 #5f9672}
.yjwe-choice-compose.is-choice-complete .yjwe-choice-flow-status{background:#eef8f1;color:#25643a;font-weight:700}
.yjwe-summary-student-view{border-color:#6b95b1!important;font-weight:800!important}
@media(max-width:780px){.yjwe-choice-flow-status{width:100%;box-sizing:border-box}.yjwe-cycle-guide{display:block;width:100%}}


/* V1.3.9.55 — 보기 해설 박스 넘침 방지 + 종합해설 AI 버튼 분리 */
.yjwe-choice-compose,.yjwe-choice-ai-editable,.yjwe-ai-edit-main,.yjwe-ai-edit-review,.yjwe-choice-source-stack,.yjwe-pilot-summary{min-width:0;max-width:100%;box-sizing:border-box}
.yjwe-ai-edit-review,.yjwe-choice-rich-editor,.yjwe-choice-source-rich,.yjwe-pilot-summary-editor{width:100%;max-width:100%;box-sizing:border-box;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
.yjwe-choice-rich-editor,.yjwe-choice-source-rich,.yjwe-pilot-summary-editor{overflow-x:hidden}
.yjwe-choice-rich-editor *,.yjwe-choice-source-rich *,.yjwe-pilot-summary-editor *{max-width:100%;box-sizing:border-box}
.yjwe-choice-rich-editor .yjwe-inline-math,.yjwe-choice-source-rich .yjwe-inline-math,.yjwe-pilot-summary-editor .yjwe-inline-math{max-width:100%;overflow-x:auto;overflow-y:hidden}
.yjwe-summary-ai-draft,.yjwe-summary-ai-review{white-space:nowrap}

/* V1.3.9.56 — 1단계 보기 종합정리 → 2단계 시험 출제내용 반복정리 */
.yjwe-summary-stage{min-width:0;max-width:100%;box-sizing:border-box}
.yjwe-summary-stage+.yjwe-summary-stage{margin-top:14px;padding-top:14px;border-top:1px dashed #bfd2de}
.yjwe-summary-stage-two{padding:12px;border:1px solid #cbdde7;border-radius:8px;background:#fff}
.yjwe-summary-stage-two.is-locked{background:#f6f8f9;opacity:.68}
.yjwe-summary-stage-two.is-locked textarea{background:#f8f9fa}
.yjwe-exam-points-editor textarea{min-height:132px;font-size:13px;line-height:1.7;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.yjwe-summary-student-view.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:auto;background:#f3f5f6!important;color:#83939c!important;border-color:#ccd7dd!important}
.yjwe-summary-cycle-actions button[disabled]{opacity:.5;cursor:not-allowed}
@media(max-width:780px){.yjwe-summary-stage-two{padding:9px}.yjwe-exam-points-editor textarea{min-height:150px}}

/* V1.3.9.57: 종합정리/시험 출제내용은 실제 목록과 완성 수식으로 표시 */
.yjwe-pilot-summary-editor ol,
.yjwe-pilot-summary-editor ul,
.yjwe-memory-rich ol,
.yjwe-memory-rich ul{margin:8px 0 8px 1.65em;padding:0;}
.yjwe-pilot-summary-editor li,
.yjwe-memory-rich li{margin:0 0 7px 0;padding-left:3px;line-height:1.75;}
.yjwe-exam-points-rich{min-height:170px;}
.yjwe-exam-points-rich[aria-disabled="true"]{background:#f5f7f9;cursor:not-allowed;}
.yjwe-inline-math{display:inline-block;max-width:100%;vertical-align:middle;overflow-x:auto;overflow-y:hidden;}
.yjwe-pilot-summary-editor .yjwe-inline-math math,
.yjwe-memory-rich .yjwe-inline-math math{vertical-align:middle;}


/* V1.3.9.58: 최종해설/시험 출제내용 문단 정렬 */
.yjwe-pilot-summary-editor .yjwe-align-left{text-align:left!important;text-justify:auto;}
.yjwe-pilot-summary-editor .yjwe-align-center{text-align:center!important;text-justify:auto;}
.yjwe-pilot-summary-editor .yjwe-align-right{text-align:right!important;text-justify:auto;}
.yjwe-pilot-summary-editor .yjwe-align-justify{text-align:justify!important;text-justify:inter-word;}
.yjwe-pilot-summary-editor p,.yjwe-pilot-summary-editor div{margin:0 0 8px;line-height:1.75;}


/* V1.3.9.59: 종합해설 아래 간략 핵심정리 */
.yjwe-compact-core-box{margin-top:12px;padding:12px;border:1px solid #dce5ef;border-radius:8px;background:#fbfdff;min-width:0}
.yjwe-compact-core-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.yjwe-compact-core-head strong{font-size:14px}.yjwe-compact-core-head span{font-size:12px;color:#64748b}
.yjwe-compact-core-editor{min-height:68px;background:#fff}
.yjwe-compact-core-editor .yjwe-inline-math,.yjwe-core-concept-rich .yjwe-inline-math{max-width:100%}


/* V1.3.9.68 — 해설 편집영역 마우스 포인터/입력 커서 가시성 강화 */
.yjwe-choice-rich-editor[contenteditable="true"],
.yjwe-pilot-summary-editor[contenteditable="true"],
.yjwe-compact-core-editor[contenteditable="true"]{
  cursor:text!important;
  caret-color:#075985!important;
}
.yjwe-choice-rich-editor[contenteditable="true"]:hover,
.yjwe-pilot-summary-editor[contenteditable="true"]:hover,
.yjwe-compact-core-editor[contenteditable="true"]:hover{
  border-color:#7aa9c3;
}
.yjwe-choice-rich-editor[contenteditable="true"]:focus,
.yjwe-pilot-summary-editor[contenteditable="true"]:focus,
.yjwe-compact-core-editor[contenteditable="true"]:focus{
  border-color:#3f8fb8!important;
  box-shadow:0 0 0 2px rgba(35,112,154,.14)!important;
}

/* V1.3.9.69 — 보기/종합정리 이미지 삽입 + 편집 커서 소폭 축소 */
.yjwe-choice-source-rich img,.yjwe-pilot-summary-editor img{display:block;max-width:100%;height:auto;margin:8px 0;border-radius:4px}
.yjwe-image-uploading{display:inline-block;padding:2px 6px;border-radius:4px;background:#f1f5f9;color:#64748b;font-size:11px}



/* V1.3.9.70 — 편집기 이미지 선택/크기조절 */
.yjwe-choice-source-rich img,.yjwe-pilot-summary-editor img,.yjwe-manager-question-editor img{cursor:pointer}
.yjwe-rich-image-selected{outline:2px solid #2b7ca8;outline-offset:2px;box-shadow:0 0 0 2px rgba(43,124,168,.16)}


/* V1.3.9.74 — 사람 판단 우선: AI 결과는 편집칸을 덮지 않고 별도 제안으로만 표시 */
.yjwe-ai-proposal-box{margin:8px 0 10px;padding:10px 12px;border:1px solid #b9d3e2;border-radius:7px;background:#f8fcff;box-sizing:border-box}
.yjwe-ai-proposal-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:7px;color:#174f74}.yjwe-ai-proposal-head strong{font-size:12.5px}.yjwe-ai-proposal-head span{font-size:11px;color:#647b8a}
.yjwe-ai-proposal-body{padding:9px 10px;border:1px solid #d8e5ec;border-radius:6px;background:#fff;font-size:12.5px;line-height:1.7;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
.yjwe-ai-proposal-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}


/* V1.4.0 STABILIZE — 가독성 + AI 위험신호 */
.yjwe-choice-text-row textarea{font-size:15px;line-height:1.65}
.yjwe-ai-signal{display:inline-flex;align-items:center;border-radius:999px;padding:2px 7px;font-size:10.5px;font-weight:800;white-space:nowrap}
.yjwe-ai-signal.is-ok{background:#eaf7ef;color:#23653b;border:1px solid #b8d9c3}
.yjwe-ai-signal.is-warn{background:#fff3e8;color:#9a4b13;border:1px solid #edc49f}
.yjwe-ai-signal.is-neutral{background:#eef4f7;color:#526c7b;border:1px solid #d4e0e6}
.yjwe-ai-risk{margin:7px 0;padding:7px 9px;border:1px solid #ecd1a9;border-radius:6px;background:#fff9ef;color:#7e541e;font-size:11.5px;line-height:1.55}
.yjwe-ai-risk.is-danger{border-color:#e0b3b3;background:#fff4f4;color:#9b2c2c;font-weight:700}
.yjwe-ai-proposal-sources{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid #e0e7eb;font-size:11px}
.yjwe-ai-proposal-sources strong{color:#425f70}.yjwe-ai-proposal-sources a{color:#176a94;text-decoration:none}.yjwe-ai-proposal-sources a:hover{text-decoration:underline}
.yjwe-bulk-ai-box.is-stabilized{padding:7px 9px;border:1px solid #dce6eb;border-radius:6px;background:#f8fbfc;color:#6a7d88;font-size:11px}


/* =========================================================
   RC7.2 CLEAN - 관리자 저장목록 번호순 고정 + 작업/수정일 겹침 방지
========================================================= */
.yjwe-fixed-sort-note{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border:1px solid #c8d9e3;border-radius:5px;background:#f7fbfd;color:#315e78;font-size:10.5px;font-weight:800;white-space:nowrap}
.yjwe-manager-table-compact .yjwe-manager-row-actions form{flex:0 0 auto;margin:0}
.yjwe-manager-table-compact .yjwe-manager-date{position:relative;z-index:1;background:#fff;padding-left:7px;padding-right:5px}
.yjwe-manager-table-compact tr.is-editing .yjwe-manager-date{background:#f3f9fd}
.yjwe-manager-table-compact tr.is-copying .yjwe-manager-date{background:#fffaf0}

/* HWP VISUAL 0.2.0 — 관리자 전용 직접 수식 편집. 저장형식/학생렌더러는 기존 HWP 원문 유지. */
.yjwe-inline-math-dialog{width:min(820px,calc(100vw - 28px));box-shadow:none}
.yjwe-inline-math-dialog::backdrop{background:rgba(20,43,58,.18)}
.yjwe-inline-math-dialog-toolbar{gap:6px;margin-bottom:9px}
.yjwe-inline-math-dialog-toolbar button{height:32px;padding:4px 10px;font-size:12.5px;line-height:22px;box-shadow:none}
.yjwe-inline-math-dialog-toolbar button:hover{box-shadow:none}
.yjwe-hwp-size-control{height:32px;font-size:12px}.yjwe-hwp-size-control select{height:27px;font-size:12px;min-width:64px}
.yjwe-inline-math-visual,.yjwe-hwp-visual{min-height:170px;border:1px solid #c8d8e2;border-radius:7px;background:#fff;padding:18px 20px;overflow:auto;box-sizing:border-box;cursor:text}
.yjwe-hwp-visual{min-height:145px;margin:8px 0}
.yjwe-inline-math-source-details,.yjwe-hwp-source-details{margin-top:8px;border-top:1px solid #e3ebf0;padding-top:6px}
.yjwe-inline-math-source-details>summary,.yjwe-hwp-source-details>summary{cursor:pointer;color:#587386;font-size:11.5px;font-weight:700;user-select:none}
.yjwe-inline-math-source-details .yjwe-inline-math-dialog-input,.yjwe-hwp-source-details .yjwe-hwp-input{margin-top:7px;font-size:14px!important;line-height:1.55!important;box-shadow:none!important}
.yjwe-inline-math-dialog-preview,.yjwe-hwp-source-details .yjwe-hwp-preview{margin-top:7px}
.yjwe-inline-math:hover{background:transparent;box-shadow:none;outline:1px solid #c3d7e3}
.yjwe-inline-math.is-copy-selected{background:#eef6fa;box-shadow:none;outline:2px solid #6f9db8}
.yjwe-inline-math.is-copied{box-shadow:none;outline:2px solid #5d9476}

.yjml-stage{position:relative;cursor:text;color:#173f59}
.yjml-grid{display:grid;grid-template-columns:max-content minmax(0,1fr) auto;grid-auto-flow:row;align-items:center;row-gap:.58em;column-gap:8px;width:100%;font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;color:#173f59}
.yjml-cell{min-width:0;display:flex;align-items:center;min-height:2.05em}
.yjml-left-cell{grid-column:1;justify-content:flex-end;text-align:right}
.yjml-right-cell{grid-column:2;justify-content:flex-start;min-width:8em}
.yjml-full-cell{grid-column:1 / 3;justify-content:stretch;width:100%}
.yjml-field{display:inline-block;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:3px;padding:.12em .08em!important;margin:0!important;min-height:1.7em;line-height:1.25;color:#173f59;caret-color:#075985;outline:none!important;font-size:var(--yjml-font-size,18px);--caret-color:#075985;--selection-background-color:#dceef7;--contains-highlight-background-color:#eef7fb}
.yjml-left-cell .yjml-field{width:max-content;min-width:.15em;text-align:right}
.yjml-right-cell .yjml-field,.yjml-full-cell .yjml-field{width:100%;min-width:4em}
.yjml-cell.is-active{background:#fbfdff;border-radius:4px}
.yjml-row-remove{grid-column:3;align-self:center;border:1px solid #d7a8a3;border-radius:5px;background:#fff;color:#a43831;padding:5px 8px;white-space:nowrap;font:600 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;cursor:pointer}
.yjml-row-remove:hover,.yjml-row-remove:focus{background:#fff1ef;border-color:#c96f65;outline:2px solid #f3cbc6;outline-offset:1px}
.yjml-field:focus{background:#fbfdff!important}
.yjml-field::part(menu-toggle),.yjml-field::part(virtual-keyboard-toggle){display:none}
.yjml-loading,.yjml-load-failed{padding:14px 10px;color:#647987;font:13px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}
.yjml-load-failed{color:#9b3b32;background:#fff8f7;border:1px solid #efcbc7;border-radius:6px}
.yjml-hint{margin-top:12px;color:#6b7f8d;font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}
.yjwe-inline-math-visual[data-yjml-error="1"]:after,.yjwe-hwp-visual[data-yjml-error="1"]:after{content:attr(data-error-message);display:block;color:#a43831;background:#fff7f6;border:1px solid #efcbc7;border-radius:5px;padding:8px 10px;margin-top:8px;font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}
@media(max-width:780px){.yjwe-inline-math-dialog{width:calc(100vw - 16px)}.yjwe-inline-math-visual,.yjwe-hwp-visual{padding:14px 12px;min-height:145px}.yjwe-inline-math-dialog-toolbar button{height:30px;padding:3px 8px;font-size:11.5px}}

/* V0.3.10 — 검수완료는 페이지 맨 아래에서 한 번에 처리 */
.yjwe-final-review-complete{margin:18px 0 4px;padding:16px 18px;border:2px solid #7eb998;border-radius:9px;background:#f7fcf8;display:flex;align-items:center;justify-content:space-between;gap:18px}
.yjwe-final-review-copy{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.yjwe-final-review-copy>strong{font-size:14px;color:#1d5132}
.yjwe-final-review-copy>small{flex-basis:100%;color:#5d7468;font-size:12px;line-height:1.55}
.yjwe-review-complete-final{min-width:190px;white-space:nowrap;font-weight:800!important}
.yjwe-review-complete-final.is-complete{background:#2d7049!important;border-color:#2d7049!important;color:#fff!important;opacity:1!important}
.yjwe-review-complete-final.is-submitting{pointer-events:none;opacity:.72!important}
@media(max-width:780px){.yjwe-final-review-complete{display:block}.yjwe-review-complete-final{width:100%;margin-top:12px}}
.yjwe-inline-math.yjwe-formula-invalid{outline:3px solid #dc2626;outline-offset:3px;background:#fef2f2}
