:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#183c32;background:#f5f7f3;font-size:15px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:28px;background:white;border-bottom:1px solid #dce4db;padding:20px 4vw}header>a{font-weight:750;font-size:21px;color:#234c38;text-decoration:none}header>span{color:#66796b}nav{margin-left:auto;display:flex;gap:8px}button,a.button{border:1px solid #bdcebf;background:white;padding:10px 17px;border-radius:5px;color:#244e39;cursor:pointer;text-decoration:none;font:inherit}button:hover{background:#edf3e9}button.primary,.active{background:#284f3d;color:white}button:disabled{opacity:.5;cursor:wait}main{max-width:1240px;margin:auto;padding:32px 28px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:13px;color:#6a7c6a;margin:0}h1{font-size:30px;margin:10px 0 20px}h2{font-size:20px;margin:0 0 16px}h3{font-size:16px;margin:0 0 12px}input,select,textarea{font:inherit;border:1px solid #becdbf;border-radius:4px;padding:10px;background:white;max-width:100%}input:not([type=checkbox]),select,textarea{width:100%}.heading input{width:300px}label{display:block;margin:10px 0 5px;color:#4b6252}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.card,.panel{border:1px solid #d6e0d3;background:white;padding:24px;border-radius:8px;margin:12px 0}.card{border-top:3px solid #658764}.card button{margin-top:16px}.meta{color:#738074;font-size:13px;line-height:1.8}.pill{display:inline-block;background:#eef3e9;color:#4d6745;font-size:12px;padding:3px 8px;border-radius:3px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row>*{flex:1;min-width:150px}.notice{padding:14px 18px;background:#eef2e7;border-left:3px solid #8a9d6c;line-height:1.8}#status{min-height:24px;color:#8a4e2b}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.reader-top{position:sticky;top:0;background:white;border-bottom:1px solid #dce4db;display:flex;align-items:center;gap:15px;padding:14px 20px;z-index:4}.reader-top strong{flex:1}#actions{display:flex;gap:8px}dialog{padding:0;border:0;width:96vw;height:94vh;max-width:none;max-height:none;border-radius:7px}dialog::backdrop{background:#12271fcc}#viewer{padding:24px;background:#e8ece5;min-height:85%;position:relative}.document-page{display:block;max-width:100%;width:850px;height:auto;margin:0 auto 22px;box-shadow:0 3px 15px #0002}iframe{width:100%;height:76vh;border:0;background:white}.stage{position:relative;background:#122119;display:flex;align-items:center;justify-content:center;min-height:65vh}.stage img{display:block;max-width:100%;max-height:76vh;object-fit:contain}.stage:fullscreen{width:100vw;height:100vh}.stage:fullscreen img{max-height:95vh}.stage .brand{position:absolute;bottom:16px;left:18px;color:#f5fff0bb;font-size:13px;pointer-events:none}.controls{display:flex;gap:12px;justify-content:center;align-items:center;padding:12px;flex-wrap:wrap}.controls input{width:80px}.watermark{position:absolute;pointer-events:none;color:#ffffff55;animation:drift 15s ease-in-out infinite alternate}@keyframes drift{to{transform:translate(25px,12px)}}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;border-bottom:1px solid #e1e7dd;padding:12px 8px;vertical-align:top}.scroll{overflow:auto}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.checklist{display:flex;flex-wrap:wrap;gap:10px}.checklist label{background:#f0f4ed;padding:8px;margin:0}.checklist input{width:auto}.empty{padding:60px 20px;text-align:center;color:#6e7e6e}.small{font-size:13px}.result{border-left:3px solid #6c9360;padding:15px;background:#f3f7ef;margin:15px 0}a{color:#325d43}form button{margin-top:15px}.hq-nav{padding-bottom:10px}.error{color:#a43f2a}@media(max-width:700px){header{gap:10px;flex-wrap:wrap;padding:15px}header>span{display:none}nav{gap:4px}nav button{padding:8px}.split{grid-template-columns:1fr}main{padding:22px 15px}.heading{align-items:flex-start;flex-direction:column}.heading input{width:100%}.reader-top{flex-wrap:wrap}#viewer{padding:8px}.grid{grid-template-columns:1fr 1fr;gap:10px}.card{padding:16px}.row>*{min-width:120px}h1{font-size:25px}}

.stage{min-height:0;aspect-ratio:16/9}.stage img{max-height:76vh}#viewer:fullscreen{padding:0;background:#122119;overflow:auto}#viewer:fullscreen .stage{height:calc(100vh - 70px);aspect-ratio:auto}#viewer:fullscreen img{max-height:calc(100vh - 75px)}

#reader.immersive{width:100vw;height:100vh;max-width:none;max-height:none;inset:0;margin:0;border-radius:0}#reader.immersive .reader-top,#reader.immersive #reader-status{display:none}#reader.immersive #viewer{padding:0;background:#122119;min-height:100vh}#reader.immersive .stage{height:calc(100vh - 75px);aspect-ratio:auto}#reader.immersive .stage img{max-height:calc(100vh - 75px)}#reader.immersive .controls{color:white;margin:0}

.allocation{display:grid;grid-template-columns:240px 1fr;gap:22px}.teacher-list button{display:block;width:100%;text-align:left;margin:8px 0}.teacher-list button.selected{background:#284f3d;color:white}.teacher-list small{display:block;font-size:12px;opacity:.7;margin-top:5px}.stage-group{border:1px solid #dce4d9;margin:20px 0;border-radius:6px;overflow:hidden}.stage-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#f2f5ed}.stage-heading h3,.stage-heading label{margin:0}.allocation-lessons{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;padding:20px}.allocation-lessons label{display:flex;gap:10px;margin:0;padding:12px;border:1px solid #e1e7dc;border-radius:4px}.allocation-save{display:flex;gap:16px;align-items:center;margin-top:24px}.request-line{display:flex;gap:24px;padding:16px 0;border-bottom:1px solid #e1e7dd}@media(max-width:700px){.allocation{grid-template-columns:1fr}.teacher-list{display:flex;gap:8px;flex-wrap:wrap}.teacher-list h2{width:100%}.teacher-list button{width:auto;min-width:120px}.allocation-lessons{grid-template-columns:1fr}}

.panel>details>summary{cursor:pointer;font-size:17px;font-weight:600;list-style:none}.panel>details>summary:before{content:"＋";margin-right:10px}.panel>details[open]>summary:before{content:"−"}.panel>details>form{margin-top:20px}details pre{max-width:600px}.panel:has(>details){padding:18px 24px}

#reader.immersive #viewer iframe,#viewer:fullscreen iframe{display:block;height:100dvh}

#reader.software-reader #reader-layout{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr);background:white}
#reader.software-reader #reader-layout:fullscreen{width:100%;height:100dvh}
#reader.software-reader #reader-status:empty{display:none}
#reader.software-reader #viewer{grid-row:3;min-width:0;min-height:0;padding:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
#reader.software-reader iframe{display:block;width:100%;height:100%;border:0}
#reader.software-reader.immersive .reader-top{display:flex}
#reader.software-reader.immersive #viewer{min-height:0}
.software-brand{min-height:27px;display:flex;justify-content:space-between;align-items:center;gap:2px 12px;flex-wrap:wrap;overflow-wrap:anywhere;padding:4px 22px;background:#f5faf7;color:#63786f;font-size:12px;line-height:1.3}
