:root{font-family:Inter,Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#202638;background:#f7f8fb}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}.app{display:flex;min-height:100vh}.sidebar{width:268px;flex:none;background:#fff;border-right:1px solid #edf0f4;display:flex;flex-direction:column;height:100vh;position:sticky;top:0;padding:26px 16px 16px}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 26px}.brandmark{font-size:30px;font-weight:850;letter-spacing:-2px;color:#222b44}.brandmark span{color:#6b7bf4}.brand strong{display:block;font-size:15px;letter-spacing:-.4px}.brand small{display:block;font-size:11px;color:#9199aa;margin-top:3px}.nav{display:grid;gap:5px}.navitem{width:100%;text-align:left;background:none;border:0;padding:13px 15px;color:#788196;border-radius:11px;font-weight:650;font-size:13px;display:flex;gap:14px}.navitem.active{background:#eff1ff;color:#5966d7}.sidetitle{display:flex;justify-content:space-between;font-size:11px;font-weight:800;letter-spacing:.8px;color:#a3a9b5;margin:32px 12px 12px}.search{width:100%;padding:11px 13px;border:1px solid #edf0f5;background:#f9fafc;border-radius:10px;outline:none;font-size:12px}.unitlist{overflow:auto;margin-top:12px;flex:1}.unititem{display:block;width:100%;text-align:left;border:0;background:none;border-radius:10px;padding:11px 12px;color:#697387;font-size:12px;line-height:1.5}.unititem.active{background:#f0f2ff;color:#5362d2;font-weight:750}.unititem small{display:block;font-size:10px;color:#a1a8b8;margin-bottom:3px}.sidefoot{border-top:1px solid #edf0f4;padding:18px 8px 4px;font-size:11px;color:#737d91;line-height:1.8}.sidefoot span{color:#adb4c0}main{min-width:0;flex:1}.top{height:74px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;padding:0 45px;background:#fff}.breadcrumb{font-size:11px;font-weight:750;letter-spacing:1.2px;color:#a0a8b7}.topright{display:flex;align-items:center;gap:9px;font-size:11px;color:#8992a4}.statusdot{width:7px;height:7px;border-radius:50%;background:#45b99a}.avatar{display:grid;place-items:center;background:#eaeefe;color:#6976d8;width:32px;height:32px;border-radius:50%;font-weight:800;margin-left:15px}.menubtn{display:none}.content{max-width:1090px;margin:0 auto;padding:44px 46px 80px}.eyebrow{font-size:11px;color:#6372d7;letter-spacing:1.6px;font-weight:800;display:flex;justify-content:space-between}.eyebrow span{color:#a8afbe;font-size:10px}h1{font-size:29px;letter-spacing:-1.3px;margin:15px 0 9px;font-weight:800}.subtitle{color:#949daf;font-size:13px;margin:0 0 29px}.stages{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.stage{display:flex;align-items:center;text-align:left;gap:13px;background:#fff;border:1px solid #ebedf3;border-radius:15px;padding:19px 17px;box-shadow:0 3px 14px #1f2b5110;color:#778196}.stage.active{border:1.5px solid #7785ed;box-shadow:0 5px 24px #6c7cf01c}.stageNo{font-size:22px;font-weight:850;color:#c1c7d4}.stage.active .stageNo{color:#6776df}.stage b{font-size:13px;color:#29324a;display:block}.stage small{font-size:11px;color:#9fa7b6;display:block;margin-top:4px}.stageCheck{margin-left:auto;color:#aeb7c8}.practice{background:#fff;border:1px solid #eceef4;border-radius:20px;padding:31px 36px;box-shadow:0 12px 45px #23305c0a}.practiceHead{display:flex;justify-content:space-between;align-items:center}.pill{background:#eff1ff;color:#6372df;padding:7px 10px;border-radius:7px;font-size:10px;letter-spacing:.6px;font-weight:800}.micro{font-size:12px;color:#909aab;margin-left:12px}.counter{font-size:12px;color:#8c95a5;font-weight:750}.bar{height:5px;background:#f0f2f7;border-radius:9px;margin:22px 0 30px;overflow:hidden}.bar div{height:100%;width:0;background:#7b87ed;transition:width .3s}.prompt{background:#f8f9fd;border:1px solid #f1f2f8;border-radius:15px;padding:27px 28px;margin-bottom:27px}.prompt span{font-size:10px;letter-spacing:1.3px;color:#9da6b7;font-weight:800}.prompt h2{font-size:21px;letter-spacing:-.6px;line-height:1.6;margin:13px 0 0}.answerLabel{font-size:12px;font-weight:750;color:#3e485f;margin-bottom:11px}.dropzone{border:1.5px dashed #d9dff0;border-radius:12px;min-height:94px;padding:15px;display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:9px}.empty{font-size:12px;color:#b2b9c6;padding:18px 0}.wordbank{display:flex;flex-wrap:wrap;gap:9px;margin:19px 0 6px}.chip{background:#fff;border:1px solid #e1e5ee;border-radius:9px;padding:11px 14px;font-size:13px;color:#3c4761;box-shadow:0 2px 4px #202d4510}.chip.selected{background:#eef0ff;color:#5263d5;border-color:#d8dcff}.chip:disabled{opacity:.25;cursor:default}.answer{width:100%;border:1px solid #dfe4ee;border-radius:12px;padding:17px;min-height:125px;resize:vertical;outline:none;line-height:1.7;font-size:15px}.answer:focus{border-color:#8995ec;box-shadow:0 0 0 3px #7683e91a}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.btn{border:0;border-radius:10px;padding:13px 21px;font-size:12px;font-weight:750}.btn.primary{background:#6777df;color:white;box-shadow:0 5px 12px #6879dd32}.btn.secondary{background:#f0f2f8;color:#687389}.btn span{margin-left:14px}.footnav{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f2f6;margin-top:28px;padding-top:20px}.footnav button{background:none;border:0;color:#6977d7;font-weight:700;font-size:12px}.footnav span{color:#aab1bf;font-size:11px}.feedback{margin-top:16px;border-radius:11px;padding:16px 18px;font-size:13px;line-height:1.7;background:#f0f7f3;color:#287457}.feedback.bad{background:#fff6e9;color:#94642b}.feedback b{display:block}.notice{font-size:12px;line-height:1.8;color:#929baa;margin-top:19px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0 26px}.stat{background:white;border:1px solid #eceef4;border-radius:15px;padding:24px}.stat b{display:block;font-size:28px;color:#4b5ec8}.stat span{color:#9ba4b5;font-size:12px}.tablewrap{overflow:auto;background:white;border:1px solid #eceef4;border-radius:14px;margin-bottom:18px}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#f9faff;color:#8d96a7;font-weight:750;padding:15px}td{padding:14px 15px;border-top:1px solid #f0f1f5;color:#647085}td:first-child{color:#303a51;font-weight:650;min-width:220px}.progressLink{background:none;border:0;color:inherit;text-align:left;cursor:pointer}.tag{padding:5px 8px;background:#f0f2f6;border-radius:6px;font-size:11px}.tag.done{background:#e6f6ef;color:#26966c}.mistake{background:#fff;border:1px solid #eceef4;padding:18px 22px;border-radius:13px;margin:12px 0}.mistake small{color:#8993a5}.mistake strong{display:block;margin:9px 0;font-size:14px}.mistake p{color:#6977d7;font-size:13px}.emptyState{padding:60px 20px;text-align:center;color:#a1a9b7;background:white;border-radius:14px}.warn{color:#9b7140}.hidden{display:none!important}@media(max-width:950px){.sidebar{width:220px}.content{padding:35px 25px}.top{padding:0 25px}.stages{gap:8px}.stage{padding:15px 10px;gap:8px}.stageNo{font-size:18px}}@media(max-width:700px){.sidebar{position:fixed;z-index:10;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 40px #0001}.sidebar.open{transform:none}.menubtn{display:block;border:0;background:none;font-size:19px}.top{height:62px;padding:0 17px}.breadcrumb{font-size:9px}.topright{font-size:10px}.content{padding:26px 15px}.eyebrow span{display:none}h1{font-size:24px}.stages{gap:6px}.stage{display:block;text-align:center;padding:13px 5px}.stageNo{display:block}.stage b{font-size:11px}.stage small{font-size:9px}.stageCheck{display:none}.practice{padding:22px 17px}.prompt{padding:22px 18px}.prompt h2{font-size:18px}.actions{justify-content:stretch}.actions button{flex:1}.footnav span{display:none}.stats{gap:8px}.stat{padding:15px}.stat b{font-size:21px}}
.groupTitle{font-size:10px;font-weight:800;letter-spacing:.03em;color:#9aa1b5;padding:20px 10px 7px;line-height:1.5}.inlineLink{background:transparent;border:0;color:#6b5ce7;font-weight:750;cursor:pointer;text-decoration:underline}.cue{border:1px dashed #c9c7eb;background:#f8f7ff;padding:16px 20px;border-radius:13px;margin-bottom:18px}.cue span{font-size:11px;color:#756c9b;font-weight:800}.cue p{margin:8px 0 0;line-height:1.7;color:#363150;font-size:15px}.notice{line-height:1.8}.unititem small{line-height:1.6}

.originalReveal{margin-top:14px;padding:13px 16px;border:1px solid #d7dded;border-radius:12px;background:#fff;color:#30364b}
.originalReveal summary{cursor:pointer;font-weight:700}
.originalReveal[open] summary{margin-bottom:10px}
.originalReveal p{font-size:17px;font-weight:650;line-height:1.7;margin:8px 0;color:#273458;overflow-wrap:anywhere}
.originalReveal small{color:#667085}

/* V3: vivid blue sidebar and focused English exercise */
.sidebar{background:linear-gradient(170deg,#0877df 0%,#1165d1 55%,#1953b5 100%);border-right:0;color:#fff}
.brandmark,.brandmark span,.brand strong{color:#fff}.brand small,.sidefoot,.sidefoot span{color:#d7eaff}
.navitem{color:#dbeeff}.navitem.active,.navitem:hover{background:#ffffff29;color:#fff}
.sidetitle,.groupTitle{color:#cce6ff}.search{background:#ffffffef;border:1px solid #a8d3ff;color:#174b80}
.unititem{color:#e0efff}.unititem small{color:#b8d9fa}.unititem.active,.unititem:hover{background:#ffffff30;color:white}.unititem.active small{color:#fff}
.sidefoot{border-color:#ffffff40}.stage.active{background:#e6f2ff;border:2px solid #1780ec;box-shadow:0 7px 22px #1776dc27}.stage.active .stageNo,.stage.active b,.stage.active .stageCheck{color:#086bcf}
.prompt{background:#f7faff;border-color:#e5eefb;padding:18px 23px;margin-bottom:22px}.prompt span{font-size:10px}.prompt h2{font-size:15px;line-height:1.7;font-weight:600;margin-top:7px;color:#586a85}
.answerLabel{font-size:14px;color:#1263b5;font-weight:800}.dropzone{background:#f4f9ff;border:2px dashed #83b9f4;min-height:116px;padding:18px;gap:10px;align-items:center}
.chip{font-size:18px;line-height:1.4;font-weight:650;padding:12px 16px;border-color:#c6d7ee;color:#1b3e69;touch-action:manipulation}
.chip.selected{background:#e2f0ff;border-color:#85baf2;color:#1359a5;cursor:grab}.chip.dragging{opacity:.35}.tokenDelete{font-size:15px;margin-left:10px;color:#e05262;font-weight:800}
.wordbank{gap:10px}.answer{font-size:20px;line-height:1.8;border:2px solid #bcd8f6;background:#f8fbff;min-height:165px}
.arrangeTools{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}.arrangeTools button{background:#eef5ff;color:#1c6cc5;border:1px solid #c9def7;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:700}
@media(max-width:700px){.chip{font-size:17px;padding:10px 12px}.prompt h2{font-size:14px}.answer{font-size:19px}.sidebar{background:linear-gradient(170deg,#0877df,#1953b5)}}
/* V4: dominant English composition, clear prompt hierarchy, vivid sidebar, stronger current stage */
:root{--blue:#0878dd;--ink:#153b68}
.sidebar{background:linear-gradient(165deg,#0699ed 0%,#087bdc 48%,#0a5bba 100%)}
.brandmark{color:white}.navitem.active{background:#ffffff38;border-left:3px solid white}
.stage.active{background:#167cdd;border:2px solid #167cdd;color:#fff;box-shadow:0 7px 22px #167cdd43}
.stage.active .stageNo,.stage.active b,.stage.active small,.stage.active .stageCheck{color:white}
.stage:not(.active):hover{border-color:#94c3fa;background:#f4f9ff}
.prompt{padding:14px 21px;background:#f7f9fd;border-color:#e5eaf4;margin-bottom:18px}
.prompt h2{font-size:15px;line-height:1.65;color:#425b77;font-weight:550}
.answerLabel{font-size:15px;color:#075da9;font-weight:850;letter-spacing:-.02em}
.dropzone{background:#eff7ff;border:2px dashed #529ce4;min-height:140px;padding:20px;gap:11px;align-items:flex-start}
.wordbank{padding:16px 4px 4px;gap:11px}
.chip{font-size:20px;font-weight:750;line-height:1.3;white-space:normal;overflow-wrap:anywhere;box-shadow:0 3px 8px #154e8720;padding:13px 17px}
.chip.selected{display:inline-flex;align-items:center;background:white;color:#0558a5;border:2px solid #83b7ef;gap:11px;min-height:56px;cursor:grab;touch-action:pan-y}
.chip.decoy{border-style:solid}
.tokenActions{display:inline-flex;align-items:center;gap:4px;border-left:1px solid #dde9fb;padding-left:7px}
.tokenActions button{padding:5px 7px;min-width:26px;border:0;background:#eff6ff;color:#116cc6;font-size:12px;font-weight:800;border-radius:5px}
.tokenActions .miniDelete{background:#fff0f0;color:#cd4056;font-size:18px}
.tokenActions button:disabled{opacity:.24;cursor:default}
.bankHeading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:23px}
.bankHeading .answerLabel{margin:0}
.levelControl{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#587294}
.levelControl select{padding:7px 10px;border:1px solid #b9d7f3;border-radius:8px;color:#155d9f;background:white;font-size:12px}
.difficultyText{font-weight:600;font-size:12px;color:#7c93b2}
.dragHelp{font-size:12px;color:#657f9e;margin-top:14px;line-height:1.7}
.answer{font-size:21px;min-height:175px;padding:20px;line-height:1.75;color:#173d6a}
@media(max-width:700px){.chip{font-size:18px;padding:11px 12px}.chip.selected{font-size:18px}.prompt h2{font-size:14px}.answer{font-size:20px}.dropzone{min-height:125px}.tokenActions button{padding:5px}}

.chip.selected.touchDragging{opacity:.55;transform:scale(.98)}
@media (pointer:coarse){.chip.selected{touch-action:none}}

/* V5: visual simplicity: semantic phrases; touch + desktop drag both directions */
.arrangeTools,.tokenActions,.levelControl{display:none!important}
.dropzone{min-height:155px;padding:22px;gap:12px;background:#eef8ff}
.wordbank{min-height:110px;border:2px dashed #b9d9f6;border-radius:13px;background:#f9fcff;padding:18px;align-content:flex-start}
.wordbank .chip:disabled{opacity:.28}
.chip{font-size:19px;line-height:1.45;padding:14px 17px;border-radius:10px}
.chip.selected{min-height:56px;user-select:none;touch-action:none;cursor:grab}
.chip.selected:active{cursor:grabbing}
.chip.dragGhost{position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);opacity:.92;box-shadow:0 10px 32px #1468ab48;white-space:nowrap;max-width:80vw}
.chip.selected.touchDragging{opacity:.22}
.bankHeading{margin-top:24px}
.dragHelp{font-size:12px;color:#51789e}
@media(max-width:700px){.wordbank{padding:13px;min-height:100px}.dropzone{padding:14px;min-height:135px}.chip{font-size:17px;padding:12px 13px}}

/* v7 · 직접 영작 오답 재도전 */
.draftControls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:11px;color:#64748b;font-size:12px}
.clearDraft{border:1px solid #bfd5ee;background:#f0f7ff;color:#1365ae;padding:10px 14px;border-radius:9px;font-size:12px;font-weight:800}
.clearDraft:hover{background:#deefff}
.sentenceDiff{background:#fff;border:1px solid #f5c6c6;border-radius:12px;padding:17px 18px;margin-top:12px;color:#253858}
.diffTitle{font-size:12px;color:#384762;font-weight:800;margin-bottom:13px}
.diffTitle small{font-weight:500;color:#c83e47;margin-left:7px}
.diffLine{font-size:19px;line-height:2.05;overflow-wrap:anywhere;word-break:normal}
.diff-ok{color:#253858}
.diff-error{color:#c62836;background:#fff0f0;border-bottom:2px solid #e65b65;padding:2px 3px;border-radius:3px;font-weight:850}
.diff-missing{color:#aa3646;background:#ffe9ed;border:1px dashed #d16d80;padding:2px 4px;border-radius:4px;font-size:14px;font-weight:800}
.diffAdvice{font-size:12px;margin-top:11px;color:#7a4250;line-height:1.7}
.firstHint{background:#fff8e8;padding:10px 12px;border-radius:7px}
@media(max-width:650px){.draftControls{flex-wrap:wrap}.diffLine{font-size:17px}}
