/* Standalone course editor: preserve editing behavior, unify controls with the website. */
body{background:#f5f6f7;color:#1e2633;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.75}
header{padding:22px 32px;border-color:#e3e7eb;background:#fff}
h1{font-size:24px;letter-spacing:-.025em;color:#162235}
h2{font-size:17px;color:#263448}
main{padding:24px 28px}
button{min-height:40px;border:1px solid #dbe2ea;border-radius:9px;padding:9px 15px;color:#4b5669;background:#fff;font-size:13px;font-weight:650;box-shadow:0 1px 2px #16223505;transition:background .15s,border-color .15s,box-shadow .15s}
button:hover{border-color:#f3b18d;color:#a9411d;background:#fff7f1;box-shadow:0 3px 9px #16223508}
button:disabled{opacity:.45;box-shadow:none}
button.primary,#save,#adopt{color:#fff;border-color:#f2602a;background:#f2602a;box-shadow:0 3px 10px #f2602a18}
button.primary:hover,#save:hover,#adopt:hover{background:#d94c1d;border-color:#d94c1d;color:#fff}
#back{background:#162235;border-color:#162235;color:#fff}
#back:hover{background:#263c55;border-color:#263c55}
#archive{color:#a44646;border-color:#edd8d8;background:#fff}
input,select,textarea{border-color:#dbe2ea;border-radius:9px;background:#fff;color:#263448;padding:10px 12px}
input:not([type=checkbox]),select{min-height:40px}
input[type=checkbox]{accent-color:#f2602a;margin-right:6px}
input[type=file]{max-width:100%;font-size:13px;background:#f8f9fb;padding:6px;border-style:dashed}
input[type=file]::file-selector-button{font:inherit;font-weight:650;border:0;border-radius:7px;background:#fff1e8;color:#a9411d;padding:9px 13px;margin-right:12px;cursor:pointer}
input[type=file]::file-selector-button:hover{background:#ffe1ce}
textarea{padding:15px;line-height:1.8;box-shadow:inset 0 1px 3px #16223504;min-height:265px}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #f2602a35;outline-offset:2px;border-color:#f2602a}
.box{border-color:#e3e7eb;border-radius:16px;padding:22px;box-shadow:0 4px 18px #16223504}
.muted{color:#687386;font-size:12px;line-height:1.8}
.toolbar{gap:10px;margin:12px 0 16px}
.field{gap:8px}
details{margin:12px 0;padding:0}
summary{color:#526071;font-size:13px;font-weight:650;padding:8px 0;cursor:pointer}
details[open]>summary{color:#a9411d;margin-bottom:8px}
.status{padding:12px 16px;border:1px solid #d8e6f0;background:#edf5fb;color:#315d82;border-radius:10px;font-size:13px;line-height:1.7}
.page{border:1px solid #e3e7eb;padding:8px;border-radius:11px;margin-bottom:12px;box-shadow:none;background:#fff}
.page img{border-radius:6px;margin-bottom:6px}
.page.current{border:2px solid #f2602a;background:#fff7f1;box-shadow:0 3px 10px #f2602a10}
.page small{color:#687386;font-weight:600}
.preview{border:1px solid #e3e7eb;border-radius:10px;background:#f0f3f6}
#fullImage{display:inline-flex;font-size:13px;font-weight:650;color:#a9411d;text-decoration:none;margin:12px 0}
#fullImage:hover{text-decoration:underline}
.candidate{border-color:#cce8d7;background:#edf8f1;border-radius:12px;padding:16px}
.footer{border-top:1px solid #e3e7eb;box-shadow:0 -5px 24px #1622350a;background:#fffffffa}
.footer .toolbar{margin-bottom:8px}
.draft-row>button:first-child{border-radius:9px}
@media(max-width:1000px){main{padding:16px}.box{padding:18px}}
@media(max-width:600px){header{padding:18px 16px}#back{margin-top:14px;width:100%}main{padding:12px}.box{padding:15px;border-radius:12px}.toolbar{gap:8px}.toolbar button{flex:1 1 auto}.page{padding:5px;border-radius:8px}.page small{font-size:10px}.footer .toolbar button{font-size:12px;padding:9px 10px}.draft-row>button:first-child{max-width:235px}textarea{min-height:230px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
