/* Guided teacher UI — scoped to new components; student and admin layouts remain intact. */
.teacher-start{padding:30px;border:1px solid #fff;border-radius:24px;background:linear-gradient(125deg,#fffdfbde,#edf0ffd9);box-shadow:inset 0 1px #fff,0 12px 40px #2225540a;margin-bottom:22px}
.teacher-start h2{font-size:1.7rem;line-height:1.25;letter-spacing:-.04em;margin:8px 0 10px;color:#202349}
.teacher-start p{max-width:650px;color:#55607b;line-height:1.65}
.teacher-start-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.teacher-start .hint{font-size:.78rem;margin:0}
.teacher-next-action{color:#465474!important;margin-top:10px!important}
.teacher-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:800px){.teacher-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.teacher-assessment{gap:24px}.teacher-assessment>div{min-width:0}.teacher-assessment h3{overflow-wrap:anywhere}
.teacher-workflow{--wizard-accent:#242657;--wizard-muted:#56617b;--wizard-red:#b92c48;min-width:0}
.wizard-kicker{display:block;font-size:.66rem;font-weight:750;letter-spacing:.1em;color:#6c5573;line-height:1.5}
.wizard-progress{margin-bottom:27px;padding:8px;border:1px solid #fff;border-radius:20px;background:#ffffff80;box-shadow:inset 0 1px #fff}
.wizard-progress ol{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.wizard-step{display:flex;gap:9px;align-items:center;width:100%;padding:12px 9px;text-align:left;border-radius:13px;border:1px solid transparent;background:transparent;color:#57627b;box-shadow:none;min-height:70px;font-size:.75rem}
.wizard-step:hover{background:#ffffffae;transform:none}.wizard-step strong{display:block;font-weight:650;line-height:1.4}.wizard-step small{display:block;font-size:.64rem;margin-top:3px;line-height:1.3}
.wizard-step-number{display:grid;place-items:center;border:1px solid #d0d6e4;background:#fff9;border-radius:50%;width:29px;height:29px;flex:0 0 29px;font-size:.75rem;font-weight:750}
.wizard-step.is-current{background:#242657;color:#fff;border:1px solid #33386f;box-shadow:inset 0 1px #ffffff25,0 4px 12px #20235013}
.wizard-step.is-current .wizard-step-number{background:#ffffff18;border-color:#ffffff50;color:#fff}
.wizard-step.is-complete:not(.is-current) .wizard-step-number{border-color:#b5d4c8;background:#eef8f3;color:#28634e}
.wizard-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:22px}
.wizard-heading h2{font-size:1.65rem;letter-spacing:-.035em;margin:6px 0 9px;line-height:1.2;color:var(--wizard-accent)}
.wizard-heading h2:focus{outline:none}.wizard-heading p{font-size:.87rem;color:var(--wizard-muted);line-height:1.65;margin:0}
.wizard-panel[hidden],.wizard-errors[hidden]{display:none!important}
.wizard-panel{min-width:0}.wizard-card{margin-bottom:16px}.wizard-card>h3{font-size:1rem;color:#282b55;margin-top:0}
.wizard-card .hint{line-height:1.65}.wizard-card>label{margin-top:20px}
.wizard-route-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.wizard-route{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:27px;border-radius:23px;border:1px solid #fff;background:linear-gradient(135deg,#ffffffd9,#ffffffa6);box-shadow:inset 0 1px #fff,0 7px 25px #272b5706}
.wizard-route.is-featured{background:linear-gradient(135deg,#f8f9ffee,#edf0ffca);border-color:#c1c9e8}
.wizard-route h3{font-size:1.18rem;margin:16px 0 10px;letter-spacing:-.025em}
.wizard-route p{font-size:.85rem;line-height:1.75;color:#55617a;margin:0 0 21px;max-width:380px}
.wizard-route .wizard-kicker{margin-bottom:19px}.wizard-route small{font-size:.72rem;color:#5a647d;line-height:1.55;margin-top:13px}
.wizard-route button{margin-top:auto}.wizard-route-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;border:1px solid #bfc9ee;background:#e4eafe;color:#283e89;font-weight:800;font-size:1.35rem;box-shadow:inset 0 1px #fff}
.wizard-route-icon.is-manual{background:#fff4f4;border-color:#f0d9df;color:#aa2d4b;font-size:1.8rem;font-weight:450}
.wizard-import-guide{margin-top:21px;border:1px solid #d8ddec;background:#ffffffb8;border-radius:23px;padding:26px}
.wizard-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.wizard-section-head h3{font-size:1.1rem;color:#262953;margin:7px 0}.wizard-section-head p{font-size:.8rem;color:#57627c;margin:5px 0}
.wizard-file-type{font-size:.7rem;font-weight:700;letter-spacing:.08em;background:#edf0ff;border:1px solid #d8ddef;padding:9px 12px;border-radius:10px;color:#445080}
.wizard-import-steps{padding-left:23px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:24px 0}
.wizard-import-steps li{padding-left:3px;font-size:.84rem;line-height:1.6}.wizard-import-steps li::marker{color:#b12f4b;font-weight:800}.wizard-import-steps p{font-size:.8rem;color:#546079;margin:9px 0 14px;line-height:1.7}
.wizard-import-steps .button,.wizard-import-steps button{font-size:.75rem;display:inline-flex;text-decoration:none;justify-content:center;align-items:center;gap:5px}
.wizard-format-help{border-top:1px solid #d4daea;margin-top:20px;padding-top:17px;font-size:.84rem}
.wizard-format-help summary{font-weight:650;color:#313961;cursor:pointer;line-height:1.55;min-height:32px}
.wizard-format-help p{color:#55617b;line-height:1.7;font-size:.8rem}
.wizard-format-help pre{white-space:pre-wrap;border:1px solid #d8deeb;border-radius:13px;background:#f6f8fc;padding:18px;font-size:.8rem;line-height:1.7;color:#243154}
.wizard-callout{border:1px solid #e1d8c5;background:#fffbf0d9;border-radius:16px;padding:18px 20px;margin:18px 0;color:#675537;font-size:.83rem;line-height:1.65}
.wizard-callout p{margin:8px 0 13px}.wizard-callout button{font-size:.77rem}
.wizard-group{align-items:flex-start;border:1px solid #d8deeb;background:#ffffff9c;padding:13px;border-radius:13px;line-height:1.65;font-size:.81rem;cursor:pointer}
.wizard-group small{display:block;color:#8e3e43;font-size:.73rem;margin-top:4px}
.wizard-errors{border:1px solid #e3b7c1;background:#fff3f5;padding:20px;border-radius:16px;color:#8c2341;margin-bottom:20px;font-size:.85rem;line-height:1.65}
.wizard-errors ul{margin:10px 0 0;padding-left:20px}
.wizard-question{border:1px solid #d4dbea;border-radius:18px;background:#ffffffcf;margin-bottom:12px;box-shadow:0 5px 18px #25295305;overflow:hidden;scroll-margin-top:24px}
.wizard-question>summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer;padding:19px;min-width:0}
.wizard-question>summary::-webkit-details-marker{display:none}
.wizard-question>summary::after{content:"⌄";font-size:1.2rem;color:#60708a;margin-left:7px}
.wizard-question[open]>summary::after{content:"⌃"}
.wizard-question-number{width:30px;height:30px;border:1px solid #d5dced;background:#f1f4fc;border-radius:10px;display:grid;place-items:center;flex:0 0 30px;font-size:.78rem;color:#3c4c74;font-weight:750}
.wizard-question-title{min-width:0;flex:1}.wizard-question-title strong{display:block;font-size:.86rem;font-weight:600;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#252d50}
.wizard-question-title small{display:block;font-size:.7rem;color:#576681;margin-top:4px}
.wizard-question-state{font-size:.67rem;color:#895727;border:1px solid #e7d9bf;background:#fff9ed;padding:6px 8px;border-radius:8px;white-space:nowrap}
.wizard-question-state.is-ready{color:#29644d;border-color:#bedbcc;background:#f0faf4}
.wizard-question>.question{border:0;border-top:1px solid #d8dfed;border-radius:0;margin:0;box-shadow:none;background:#fff8}
.wizard-question .question-bar{background:#f1f4fa;color:#455575}
.wizard-question .question-bar strong{font-size:.8rem}
.wizard-question .question-body{padding:22px}
.wizard-question .question-body>label{margin-bottom:17px}
.wizard-question .grade-controls{padding:18px;background:#f0f3fad9;border:1px solid #dbe1ed;border-radius:14px;margin-top:20px}
.wizard-key-choice{padding:10px 12px;border:1px solid #d9e0eb;border-radius:11px;background:#fff;align-items:flex-start;line-height:1.55;flex:1 1 180px;color:#354464;font-size:.82rem}
.wizard-key-choice:has(input:checked){border-color:#7f9bc7;background:#f1f6ff}
.wizard-key-choice strong{color:#293b68;margin-right:5px}
.wizard-question .key-options{flex-wrap:wrap}
.wizard-question .row-actions button{font-size:.73rem}.wizard-question .option-row textarea{min-height:48px}
.wizard-add-question{display:flex;align-items:flex-end;gap:13px;flex-wrap:wrap}.wizard-add-question label{flex:1;min-width:190px;max-width:340px}
.wizard-empty{padding:30px;text-align:center;border:1px dashed #adb9d5;background:#ffffff68;border-radius:18px;margin:18px 0}
.wizard-empty h3{font-size:1rem;color:#2c355e}.wizard-empty p{font-size:.83rem;line-height:1.7;color:#56637c}
.wizard-scale-suggestions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.75rem;color:#59627c;margin-top:18px}
.wizard-review-status>p{font-size:.85rem;line-height:1.7;color:#52607a}
.wizard-review-status .card{margin:16px 0 0;border:1px solid #dde2ed;background:#f7f9fca6;box-shadow:none;padding:16px}
.wizard-review-status [data-action=publish]{display:none}
.wizard-primary-slot{display:contents}
.wizard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 22px;margin:20px 0 0}
.wizard-summary>div{min-width:0}.wizard-summary dt{font-size:.7rem;color:#5f6b83;margin-bottom:6px}.wizard-summary dd{margin:0;font-size:.9rem;font-weight:600;line-height:1.55;color:#2d375c;overflow-wrap:anywhere}
.wizard-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.wizard-check-group{border:1px solid #d8dfea;background:#ffffffc7;border-radius:17px;padding:18px}
.wizard-check-group>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.wizard-check-group>div>span{font-size:1rem;color:#96673e}.wizard-check-group>div>strong{font-size:.8rem;color:#34405e}.wizard-check-group .ghost{margin-left:auto}
.wizard-check-group.is-complete{border-color:#c1d9ce}.wizard-check-group.is-complete>div>span{color:#28674e}
.wizard-check-group p{font-size:.76rem;color:#456454;margin:12px 0 0}
.wizard-check-group ul{padding:0;list-style:none;margin:12px 0 0}.wizard-check-group li+li{margin-top:7px}
button.wizard-fix{padding:0;border:0;box-shadow:none;background:none;min-height:0;font-size:.76rem;font-weight:450;text-align:left;color:#8b3943;line-height:1.65;border-radius:3px}
button.wizard-fix:hover{text-decoration:underline;transform:none}
.wizard-review-check{margin:22px 0;background:#fff9;padding:19px;border-radius:15px;border:1px solid #d5ddea;font-size:.85rem;line-height:1.65}
.wizard-word-export{margin-top:18px;padding:20px;font-size:.82rem}.wizard-word-export summary{cursor:pointer;color:#455575;font-weight:600}
.wizard-footer{position:sticky;bottom:14px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;padding:18px 21px;background:linear-gradient(120deg,#fffffff0,#f5f7ffeb);border:1px solid #fff;border-radius:19px;box-shadow:0 8px 35px #1e24401c,inset 0 1px #fff;backdrop-filter:blur(20px) saturate(135%)}
.wizard-save-state{min-width:0}.wizard-save-state>strong{display:block;font-size:.78rem;color:#35476b}.wizard-save-state>span{display:block;font-size:.72rem;color:#5a6682;margin-top:5px}.wizard-save-state>small{display:block;font-size:.67rem;color:#56627b;margin-top:5px;max-width:310px;line-height:1.6}
.wizard-footer button{font-size:.79rem;white-space:nowrap}.wizard-footer button:disabled{opacity:.6;cursor:not-allowed}
@media(min-width:801px){.teacher-workflow{padding-bottom:135px}.wizard-footer{position:fixed;left:var(--wizard-left,320px);width:var(--wizard-width,calc(100vw - 356px));right:auto;bottom:16px;margin-top:0;box-sizing:border-box}.teacher-workflow input,.teacher-workflow select,.teacher-workflow textarea{scroll-margin-bottom:150px}}
.wizard-import-overview{display:flex;flex-direction:column;gap:8px;border-radius:14px;padding:18px;background:#edf2ff;color:#2c3c68;margin:17px 0}
.wizard-import-overview span{font-size:.8rem;overflow-wrap:anywhere}
.wizard-import-preview{max-height:40vh;overflow:auto;padding:2px 6px 2px 0;margin:20px 0;scrollbar-width:thin}
.wizard-import-question{border:1px solid #d7dfed;border-radius:12px;padding:14px;margin-bottom:9px;background:#fff}
.wizard-import-question summary{cursor:pointer;font-weight:600;font-size:.83rem;line-height:1.6;overflow-wrap:anywhere}
.wizard-import-question li,.wizard-import-question p{font-size:.8rem;line-height:1.6;white-space:pre-line}
.teacher-workflow :focus-visible,.wizard-import-question :focus-visible{outline:3px solid #6c91c9;outline-offset:3px}
body[data-page=editor] .main:has(.teacher-workflow){padding-bottom:35px}
body[data-page=editor] .main:has(.teacher-workflow){animation:none}
@media(min-width:801px) and (max-width:1180px){.wizard-progress ol{grid-template-columns:repeat(5,minmax(0,1fr))}.wizard-step{flex-direction:column;align-items:flex-start;gap:8px;padding:11px 8px;font-size:.69rem}.wizard-step small{font-size:.61rem}.wizard-footer{align-items:flex-start}.wizard-footer .row-actions{max-width:62%;justify-content:flex-end;gap:7px}}
@media(max-width:1000px){.wizard-import-steps{grid-template-columns:1fr;gap:21px}.wizard-checklist{grid-template-columns:1fr}.wizard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.teacher-start{padding:23px 20px;border-radius:19px}.teacher-start h2{font-size:1.35rem}.teacher-start p{font-size:.82rem}.teacher-start-actions{display:grid;grid-template-columns:1fr}.teacher-start-actions button{width:100%}.teacher-assessment{align-items:flex-start;flex-direction:column}.teacher-assessment>button{width:100%}.wizard-progress{padding:6px;margin-bottom:23px;border-radius:16px}.wizard-progress ol{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.wizard-step{display:flex;flex-direction:column;gap:7px;align-items:center;text-align:center;padding:9px 3px;min-height:89px;font-size:.58rem}.wizard-step-number{width:24px;height:24px;flex-basis:24px;font-size:.66rem}.wizard-step small{display:none}.wizard-step strong{line-height:1.4;overflow-wrap:anywhere}.wizard-heading{align-items:flex-start;gap:12px}.wizard-heading h2{font-size:1.4rem}.wizard-heading p{font-size:.8rem}.wizard-heading>button{max-width:90px;font-size:.66rem;padding:8px;line-height:1.5}.wizard-kicker{font-size:.59rem}.wizard-route-grid{grid-template-columns:1fr;gap:14px}.wizard-route{padding:23px}.wizard-route h3{font-size:1.1rem}.wizard-route p{font-size:.82rem}.wizard-route .wizard-kicker{margin-bottom:13px}.wizard-import-guide{padding:22px 20px}.wizard-section-head{flex-direction:column;align-items:flex-start;gap:10px}.wizard-section-head>.row-actions{width:100%}.wizard-question>summary{padding:16px 13px;gap:9px}.wizard-question-title strong{font-size:.79rem}.wizard-question-state{font-size:.57rem;padding:5px}.wizard-question-number{width:25px;height:25px;flex-basis:25px;font-size:.69rem}.wizard-question>summary::after{margin-left:0}.wizard-question .question-body{padding:18px 15px}.wizard-question .question-bar{flex-wrap:wrap;gap:10px;padding:13px}.wizard-question .grade-controls{padding:15px}.wizard-add-question{display:grid;grid-template-columns:1fr;width:100%}.wizard-add-question label{max-width:none;min-width:0}.wizard-summary{gap:17px}.wizard-summary dd{font-size:.82rem}.wizard-review-check{font-size:.8rem;padding:16px}.wizard-footer{position:static;flex-direction:column;align-items:stretch;padding:19px;margin-top:22px}.wizard-footer .row-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.wizard-footer .row-actions button:last-child{grid-column:1/-1;min-height:44px}.wizard-save-state>small{max-width:none}.wizard-import-preview{max-height:36vh}.wizard-key-choice{flex-basis:100%}}
@media(prefers-reduced-motion:no-preference){.wizard-panel:not([hidden]){animation:wizard-reveal .2s ease-out}@keyframes wizard-reveal{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-transparency:reduce){.wizard-footer,.wizard-route,.wizard-import-guide,.wizard-check-group{background:#f9faff;backdrop-filter:none}}
@media(forced-colors:active){.wizard-step.is-current{border:2px solid Highlight}.wizard-step,.wizard-question,.wizard-route,.wizard-footer{border:1px solid CanvasText}}
@media print{.wizard-progress,.wizard-heading>button,.wizard-footer{display:none}.wizard-panel[hidden]{display:none!important}.wizard-question{break-inside:avoid}}
