:root{--bg:#f5f7fb;--panel:#fff;--text:#18202b;--muted:#6f7b8b;--line:#dde3ec;--primary:#2456d6;--primary2:#173d9e;--danger:#b42318;--shadow:0 8px 30px rgba(24,32,43,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:64px;background:#101827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:50}.brand{color:#fff;text-decoration:none;font-size:18px;font-weight:800}.topbar nav{display:flex;gap:18px;align-items:center}.container{max-width:1280px;margin:0 auto;padding:34px 24px 64px}h1{font-size:30px;line-height:1.2;margin:0 0 12px}h2{font-size:21px;margin:28px 0 14px}h3{font-size:15px}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.hero{padding:32px 0 24px}.hero h1{font-size:42px}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.module{display:flex;flex-direction:column;gap:7px;min-height:140px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--text);box-shadow:var(--shadow);text-decoration:none}.module b{font-size:22px}.module span{color:var(--muted)}.module.accent{border-color:#9db5f5;background:#edf3ff}.panel,.auth-card,.card,.passage-preview{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow)}.auth-card{max-width:460px;margin:56px auto}.auth-card.wide{max-width:650px}.auth-links{display:flex;justify-content:space-between;margin-top:18px}.page-head,.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.page-head p,.report-head p,.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-weight:700;cursor:pointer;text-decoration:none}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary2);text-decoration:none}.danger-btn{border-color:#f3b7b3;color:var(--danger)}.inline{display:inline}.linkbtn{border:0;background:none;color:inherit;cursor:pointer;font:inherit;padding:0}.linkbtn.danger{color:var(--danger)}.alert{padding:12px 14px;background:#eaf0ff;border:1px solid #c7d5ff;border-radius:9px;margin-bottom:14px}.alert.error{background:#fff0ef;border-color:#ffc9c4}.alert.success{background:#edfbf2;border-color:#bdebcf}form > p{display:flex;flex-direction:column;gap:6px;margin:0 0 15px}label{font-weight:650}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #cfd7e3;border-radius:8px;background:#fff;font:inherit}input[type=checkbox],input[type=radio]{width:auto}textarea{resize:vertical}.helptext{display:block;color:var(--muted);font-size:13px}.errorlist{color:var(--danger);padding-left:18px}.review-box{background:#f7f9fd;border:1px dashed #cbd5e3;padding:12px;border-radius:8px;margin:15px 0}.toolbar,.row{display:flex;gap:12px;align-items:end;margin:14px 0}.toolbar select{max-width:220px}.row>*{flex:1}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:#fafbfe}tr:last-child td{border-bottom:0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.card{display:flex;flex-direction:column;gap:8px}.card.clickable{color:var(--text);text-decoration:none}.card.clickable:hover{border-color:#9eb3e9}.tag-row{display:flex;gap:8px;flex-wrap:wrap}.tag{display:inline-flex;width:max-content;padding:3px 9px;border-radius:999px;background:#edf2fa;color:#45566e;font-size:12px;font-weight:700}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.checkrow{display:flex;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.checkrow:last-child{border-bottom:0}.passage-preview{max-height:440px;overflow:auto}.passage-preview img,.content-image{max-width:100%;height:auto}.question-list{display:flex;flex-direction:column;gap:12px;margin-top:16px}.question-card{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.qnum,.qbadge{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#eaf0ff;font-weight:800;color:#254da6;flex:0 0 auto}.grow{flex:1}.choice-edit{padding:14px 0;border-bottom:1px solid var(--line)}.choice-edit textarea{margin:8px 0}.thumb{display:block;max-width:160px;max-height:100px;margin-top:8px}.test-shell{max-width:1500px;margin:-10px auto 0}.test-head{position:sticky;top:64px;z-index:40;display:flex;justify-content:space-between;align-items:center;padding:13px 18px;background:#fff;border:1px solid var(--line);border-radius:0 0 12px 12px;box-shadow:0 5px 18px rgba(0,0,0,.07)}.timer{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}.test-block{margin:22px 0}.test-columns{display:grid;grid-template-columns:minmax(360px,1fr) minmax(430px,1fr);gap:18px;align-items:start}.passage-pane,.questions-pane,.independent-questions{background:#fff;border:1px solid var(--line);border-radius:14px}.passage-pane{position:sticky;top:128px;max-height:calc(100vh - 150px);overflow:auto;padding:24px}.questions-pane,.independent-questions{padding:14px}.passage-body{font:17px/1.75 Georgia,serif}.target-highlight{background:#fff176;padding:1px 0}.take-question{padding:18px;border:2px solid transparent;border-radius:10px;margin-bottom:10px;scroll-margin-top:140px}.take-question.active{border-color:#9eb7f6;background:#f7f9ff}.qtitle{display:flex;gap:12px;align-items:flex-start}.answers{display:flex;flex-direction:column;gap:9px;margin:14px 0 0 46px}.answer-choice{display:grid;grid-template-columns:auto 30px 1fr;gap:10px;align-items:start;border:1px solid var(--line);border-radius:9px;padding:11px 12px;cursor:pointer;font-weight:500}.answer-choice:hover{border-color:#9eb3e9;background:#fafcff}.letter{font-weight:800}.choice-image{display:block;max-width:260px;max-height:190px;margin-top:6px}.test-footer{position:sticky;bottom:12px;display:flex;justify-content:flex-end;gap:10px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:var(--shadow)}.result-hero{text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:55px;max-width:660px;margin:55px auto}.big-score{font-size:64px;font-weight:900;color:var(--primary)}.report-score{display:flex;flex-direction:column;text-align:right}.report-score b{font-size:35px}.report-score span{color:var(--muted)}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.subject-score{font-size:30px;font-weight:850}.subject-score span{font-size:16px;color:var(--muted)}@media(max-width:900px){.test-columns,.split,.report-grid{grid-template-columns:1fr}.passage-pane{position:relative;top:auto;max-height:none}.test-head{top:64px}.page-head,.report-head{flex-direction:column}.answers{margin-left:0}.container{padding:24px 14px 50px}}
.scoring-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.scoring-panel{min-width:0}.score-table-input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.45;white-space:pre}.score-ok{background:#e9f8ef;color:#15743b}.score-missing{background:#fff1e8;color:#9a4b12}.compact-table{max-height:260px}.scaled-badge{font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.score-pill{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:#eaf0ff;color:#254da6;font-size:20px;font-weight:900}.report-score small{color:var(--muted);max-width:260px}@media(max-width:900px){.scoring-grid{grid-template-columns:1fr}}

.rich-editor,.passage-body,.passage-preview,.qtitle>.rich-content,.qtitle>div,.answer-choice>span:last-child,.question-card .grow{white-space:normal;overflow-wrap:anywhere}.rich-editor{min-height:150px;border:1px solid #cfd7e3;padding:14px;border-radius:8px;background:white;font-weight:normal}.rich-editor img,.grow img,.qtitle img,.answer-choice img{max-width:100%;height:auto}.rich-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0}.rich-toolbar button,.rich-toolbar select{width:auto}.rich-editor p,.rich-editor div{margin:0}.rich-editor:focus{outline:2px solid #9eb7f6}

.passage-preview p,.question-card .grow p,.qtitle p,.answer-choice p{margin:0}.rich-editor p,.passage-body p,.passage-preview p{min-height:1em}

/* Rich document paragraphs are prose, never form-field flex containers. */
.rich-editor p,.rich-editor div,.passage-body p,.passage-preview p,.grow p,.qtitle p,.answer-choice p{display:block;white-space:normal}.rich-editor p{margin:0 0 .65em;min-height:1em}.rich-editor:empty::before{content:"Text를 입력하거나 Word에서 붙여넣으세요";color:var(--muted);pointer-events:none}.text-group{margin:28px 0;padding-top:18px;border-top:2px solid var(--line)}.text-group .page-head{align-items:center}.paste-tools-help{font-size:12px;color:var(--muted);margin:3px 0 8px}.rich-editor{resize:vertical;overflow:auto;min-height:180px;max-height:75vh}
