@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

.local-test-badge{display:inline-block;font-size:.7rem;font-weight:600;letter-spacing:.02em;line-height:1.4;padding:2px 7px;border:1px solid #ead8bd;border-radius:4px;background:#fbefe4;color:#986139}

:root{color-scheme:light;--ink:#173c46;--text:#2d454a;--muted:#6e7e80;--paper:#f6f5f0;--card:#fffefa;--line:#dce4df;--green:#4e7969;--green-soft:#e9f0e8;--blue-soft:#eaf0f2;--orange:#b46b3b;--orange-soft:#fbefe4;--danger:#a7443a;--shadow:0 12px 40px #183c4607;font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;font-size:15px;line-height:1.7;color:var(--text);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,summary,select{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--ink);line-height:1.4}h1{font-size:clamp(1.9rem,4.4vw,2.8rem);font-weight:700;letter-spacing:-.035em}h2{font-size:1.3rem;letter-spacing:-.02em}h3{font-size:1.02rem}input,select{color:var(--text);background:var(--card);border:1px solid #cbd7d0;border-radius:10px;padding:11px 13px;width:100%;min-height:46px}input::placeholder{color:#83908d}select{padding-right:34px;accent-color:var(--green)}option{color:var(--text);background:var(--card)}input[type=checkbox]{width:19px;height:19px;min-height:19px;margin:0;accent-color:var(--green);flex-shrink:0}input[type=search]::-webkit-search-cancel-button{cursor:pointer}::selection{background:#c8ded1;color:var(--ink)}:focus-visible{outline:3px solid #6b9cba;outline-offset:3px}button:focus-visible,input:focus-visible{outline-offset:2px}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:.83rem}.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.13em;color:var(--green);margin-bottom:9px}.skip-link{position:fixed;top:8px;left:8px;transform:translateY(-150%);padding:10px;background:var(--ink);color:white;z-index:100}.skip-link:focus{transform:none}.site-header{height:88px;border-bottom:1px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(26px,calc((100vw - 1220px)/2))}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;flex-shrink:0}.brand-mark{width:37px;height:40px;border:1.5px solid var(--green);border-radius:4px 11px 11px 4px;display:grid;place-items:center;font-family:Georgia,serif;font-size:23px;font-weight:700;color:var(--green);box-shadow:inset 4px 0 0 var(--green-soft)}.brand-name{font-size:1.04rem;letter-spacing:.06em;font-weight:700;color:var(--ink)}.brand-caption{font-size:.65rem;letter-spacing:.18em;color:var(--muted);text-transform:uppercase;margin-top:1px}.header-side{display:flex;align-items:center;gap:15px;font-size:.8rem;color:var(--muted)}.header-label{border-left:1px solid var(--line);padding-left:20px;letter-spacing:.08em}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border:1px solid transparent;border-radius:10px;padding:10px 17px;font-size:.9rem;font-weight:600;text-decoration:none;line-height:1.4;transition:background .15s,border-color .15s,transform .15s}.button:not(:disabled):active{transform:translateY(1px)}.primary{background:var(--ink);color:#fff}.primary:not(:disabled):hover{background:#24535b}.secondary{background:var(--card);border-color:#cbd7d0;color:var(--ink)}.secondary:not(:disabled):hover{background:var(--green-soft);border-color:#9eb5a7}.soft{background:var(--green-soft);color:#37624f;border-color:transparent}.soft:not(:disabled):hover{background:#dce9dd}.text-button{border:0;background:none;color:var(--green);font-size:.84rem;padding:7px 4px;min-height:34px;display:inline-flex;gap:6px;align-items:center;justify-content:center;text-decoration:none}.text-button:hover{text-decoration:underline}.icon-button{border:1px solid var(--line);border-radius:8px;width:32px;height:32px;display:grid;place-items:center;background:var(--card);color:var(--ink);line-height:1;padding:0;font-size:17px}.icon-button:not(:disabled):hover{background:var(--green-soft);border-color:#a8beb0}.tag{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:.73rem;line-height:1.2;padding:6px 9px;border-radius:6px;background:var(--blue-soft);color:#53707a}.tag.complete{background:var(--green-soft);color:#426d54}.tag.pending{background:var(--orange-soft);color:#a2673d}.tag.neutral{background:#f0f0eb;color:var(--muted)}.tag-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.loading-screen{min-height:70vh;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--muted)}.loading-dot{width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;display:inline-block;animation:spin 1s linear infinite}.busy-inline{padding:32px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}.page-wrap{max-width:1100px;margin:auto;padding:54px 28px 80px}.student-hero{display:flex;justify-content:space-between;gap:36px;align-items:flex-end;padding-bottom:37px}.student-hero h1{margin-bottom:13px}.student-hero p{font-size:.94rem;max-width:540px}.hero-note{min-width:185px;border-left:1px solid #cbd7d0;padding-left:26px}.hero-note strong{font-family:Georgia,serif;font-size:2.6rem;line-height:1;color:var(--green);font-weight:400}.hero-note span{font-size:.82rem;color:var(--muted);margin-left:8px}.hero-note p{font-size:.78rem;margin-top:6px}.section-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:27px 0 19px}.section-heading .title-pair{display:flex;align-items:center;gap:10px}.section-heading h2{font-size:1.15rem}.section-heading p{font-size:.83rem;color:var(--muted)}.section-rule{height:1px;background:var(--line);margin-top:34px}.course-summary{border:1px solid var(--line);border-radius:15px;padding:20px 24px;margin-bottom:19px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:var(--green-soft)}.course-summary h3{margin-bottom:5px}.course-summary p{font-size:.82rem;color:#637a6e}.course-summary .pill{font-size:.8rem;background:#fff9;padding:7px 12px;border-radius:20px;color:#4a725e}.assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.assignment-card{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:23px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:17px;min-width:0}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.assignment-number{font-size:.73rem;letter-spacing:.08em;color:var(--muted);font-weight:600}.assignment-card h3{font-size:1.08rem;font-weight:600;overflow-wrap:anywhere}.assignment-prompt{font-size:.83rem;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.assignment-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e9ede7;padding-top:17px}.assignment-status{font-size:.78rem;color:var(--muted)}.assignment-footer .button{min-height:37px;padding:8px 12px;font-size:.8rem}.review-list{display:flex;flex-direction:column;gap:12px}.review-course{border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}.review-course summary{list-style:none;padding:20px 23px;display:flex;justify-content:space-between;gap:15px;align-items:center;cursor:pointer}.review-course summary::-webkit-details-marker{display:none}.review-course summary::after{content:'＋';color:var(--green);font-size:19px;line-height:1}.review-course[open] summary::after{content:'−'}.review-course summary:hover{background:#eff4ec}.review-course summary:focus-visible{outline-offset:-4px}.review-course summary h3{font-size:.96rem}.review-course summary p{font-size:.78rem;color:var(--muted);margin-top:4px}.review-course summary .review-stats{margin-left:auto;color:var(--muted);font-size:.78rem}.review-course .assignment-grid{padding:0 20px 20px}.review-course .assignment-card{box-shadow:none;background:#fafbf7}.empty-box{border:1px dashed #cbd7d0;background:#fff9;border-radius:13px;text-align:center;padding:42px 23px}.empty-box h3{font-size:1.04rem;margin-bottom:9px}.empty-box p{font-size:.87rem;color:var(--muted);max-width:440px;margin:0 auto}.empty-icon{font-size:28px;color:#83a592;margin-bottom:12px}.page-footer{margin-top:38px;color:#87948e;font-size:.74rem;display:flex;align-items:center;gap:9px}.footer-dot{width:5px;height:5px;background:#84a494;border-radius:50%}.error-panel{border:1px solid #ead1c9;border-radius:12px;background:#fff5f1;color:#8f4d40;padding:20px 23px;margin:20px 0}.error-panel h2{color:#8f4d40;font-size:1.1rem;margin-bottom:9px}.error-panel p{font-size:.88rem;overflow-wrap:anywhere}.error-panel .button{margin-top:18px}.login-layout{max-width:1050px;margin:70px auto 100px;padding:0 28px;display:grid;grid-template-columns:1fr 390px;gap:80px;align-items:center}.login-copy h1{font-size:2.8rem;margin-bottom:23px}.login-copy>p{font-size:1rem;max-width:480px;color:var(--muted)}.login-points{list-style:none;padding:0;margin:32px 0 0;display:grid;gap:16px}.login-points li{display:flex;gap:14px;align-items:center;font-size:.9rem}.login-points span{width:26px;height:26px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:.7rem;font-weight:600}.login-card{padding:38px 32px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:var(--shadow)}.login-card h2{margin-bottom:12px}.login-card>p{font-size:.87rem;color:var(--muted);margin-bottom:24px}.login-card .button{width:100%;min-height:49px}.login-note{font-size:.76rem!important;margin:19px 0 0!important;text-align:center}.google-mark{font-size:18px;font-weight:700;font-family:Arial,sans-serif;margin-right:4px}.teacher-shell{max-width:1380px;margin:auto;display:grid;grid-template-columns:270px minmax(0,1fr);min-height:calc(100vh - 88px)}.student-sidebar{padding:33px 23px;border-right:1px solid var(--line)}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.sidebar-heading h2{font-size:1.1rem}.sidebar-heading .text-button{font-size:.8rem}.student-sidebar input{font-size:.83rem;background:#fff9}.student-list{display:flex;flex-direction:column;gap:7px;margin-top:18px}.student-item{text-align:left;padding:13px 14px;border:1px solid transparent;border-radius:10px;background:none;color:var(--text);width:100%;display:flex;gap:11px;align-items:center}.student-item:hover{background:#edf0e8}.student-item.active{background:var(--green-soft);border-color:#cbded0}.student-avatar{width:33px;height:35px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:#e6e9e0;color:#6d8777;font-weight:600;font-size:.86rem}.student-item.active .student-avatar{background:#d4e3d4;color:var(--green)}.student-item .student-name{font-size:.86rem;font-weight:600;overflow-wrap:anywhere}.student-item .student-sub{font-size:.68rem;color:var(--muted);margin-top:2px}.sidebar-note{font-size:.73rem;color:var(--muted);border-top:1px solid var(--line);padding-top:19px;margin-top:26px;line-height:1.8}.sidebar-empty{font-size:.8rem;color:var(--muted);padding:25px 8px;text-align:center}.teacher-main{padding:36px 36px 70px;min-width:0}.teacher-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:27px;border-bottom:1px solid var(--line)}.teacher-hero h1{font-size:1.7rem;overflow-wrap:anywhere}.student-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.teacher-hero .muted{font-size:.8rem;margin-top:8px}.hero-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:320px}.hero-actions .button{font-size:.8rem;min-height:37px;padding:9px 12px}.teacher-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--card);margin-top:24px}.metric{padding:17px 21px}.metric+.metric{border-left:1px solid var(--line)}.metric-label{color:var(--muted);font-size:.75rem;margin-bottom:5px}.metric strong{font-size:1.5rem;font-weight:600;color:var(--ink)}.metric .unit{font-size:.76rem;color:var(--muted);margin-left:7px}.teacher-current{margin:26px 0 32px}.teacher-current .section-heading{margin-top:0}.progress-table{width:100%;border-collapse:collapse;font-size:.82rem;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}.progress-table th{text-align:left;padding:11px 15px;font-size:.72rem;font-weight:500;background:#edf1e9;color:var(--muted)}.progress-table td{padding:14px 15px;border-top:1px solid var(--line);vertical-align:middle}.progress-table td:first-child{width:52%;font-weight:500;color:var(--ink)}.progress-table td small{display:block;color:var(--muted);font-size:.72rem;font-weight:400;margin-top:3px}.progress-table .tag{font-size:.68rem}.assignment-editor{padding-top:2px}.editor-heading{margin-bottom:20px;display:flex;gap:15px;justify-content:space-between;align-items:center}.editor-heading h2{font-size:1.16rem;margin-bottom:5px}.editor-heading p{font-size:.8rem;color:var(--muted)}.editor-title-field{margin-bottom:22px}.field-label{font-size:.8rem;display:block;font-weight:600;color:var(--ink);margin-bottom:7px}.editor-title-field input{max-width:560px;background:var(--card)}.editor-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:19px;align-items:start}.editor-panel{border:1px solid var(--line);background:var(--card);border-radius:13px;overflow:hidden}.panel-heading{padding:18px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h3{font-size:.93rem}.panel-heading p{font-size:.72rem;color:var(--muted)}.panel-count{font-size:.73rem;min-width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green)}.library-tools{padding:13px 15px;display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;background:#f9faf5}.library-tools input,.library-tools select{font-size:.75rem;min-height:39px;padding:7px 10px;border-radius:8px}.library-tools select{padding-right:7px}.material-list{max-height:470px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c8d6cc #f6f7f1}.material-option{display:flex;align-items:flex-start;gap:10px;padding:15px 17px;border-top:1px solid #edf0e9;cursor:pointer}.material-option:first-child{border-top:0}.material-option:hover{background:#f3f6ee}.material-option:has(input:checked){background:#edf4e9}.material-option input{margin-top:3px}.material-option h4{font-size:.8rem;line-height:1.5;margin:0 0 4px;font-weight:600;color:var(--ink)}.material-option p{font-size:.73rem;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.selection-list{list-style:none;padding:0;margin:0}.selection-row{display:flex;align-items:center;gap:9px;padding:15px 15px;border-top:1px solid #edf0e9}.selection-row:first-child{border-top:0}.selection-index{font-size:.72rem;color:#78917e;min-width:17px;font-variant-numeric:tabular-nums}.selection-label{font-size:.78rem;color:var(--ink);font-weight:500;flex:1;overflow-wrap:anywhere}.sort-actions{display:flex;gap:4px}.sort-actions .icon-button{width:27px;height:28px;font-size:14px}.selection-empty{padding:43px 20px;color:var(--muted);font-size:.81rem;line-height:1.9;text-align:center}.selection-hint{padding:12px 16px;border-top:1px solid var(--line);font-size:.72rem;color:var(--muted);background:#f9faf5}.editor-footer{margin-top:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-top:20px;border-top:1px solid var(--line)}.editor-footer p{font-size:.75rem;color:var(--muted);max-width:340px}.editor-buttons{display:flex;gap:9px;flex-shrink:0}.editor-buttons .button{font-size:.82rem;min-height:43px}.notice{padding:12px 16px;background:var(--orange-soft);border-radius:9px;color:#91653d;font-size:.8rem;margin:17px 0}.teacher-empty{max-width:510px;padding:85px 0;margin:auto;text-align:center}.teacher-empty h1{font-size:1.7rem;margin-bottom:14px}.teacher-empty p{font-size:.9rem;color:var(--muted);margin-bottom:25px}.dialog{border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);padding:30px;max-width:480px;width:calc(100% - 32px);box-shadow:0 25px 100px #173c4633;max-height:calc(100dvh - 40px);overflow:auto}.dialog::backdrop{background:#102f3a66;backdrop-filter:blur(3px)}.dialog h2{margin-bottom:13px}.dialog p{font-size:.86rem}.dialog .field-label{margin-top:22px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.publish-list{padding-left:23px;margin:21px 0;font-size:.85rem;max-height:230px;overflow:auto;color:var(--ink)}.publish-list li{padding:5px 0}.inline-error{color:var(--danger)!important;font-size:.8rem!important;margin-top:13px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border:1px solid #416269;box-shadow:0 8px 35px #173c4622;border-radius:11px;padding:12px 20px;font-size:.85rem;max-width:calc(100vw - 32px);width:max-content;z-index:40}.toast.error{background:#884d43;border-color:#a96d61}.link-display{background:#fff;border:1px solid var(--line);padding:10px;border-radius:8px;font-size:.75rem;word-break:break-all;margin-top:12px}.teacher-review{margin-top:35px}.refreshing{opacity:.62;pointer-events:none}
@media(min-width:1440px){.teacher-shell{max-width:1320px}.site-header{padding-left:max(35px,calc((100vw - 1260px)/2));padding-right:max(35px,calc((100vw - 1260px)/2))}}
@media(max-width:1100px){.teacher-shell{grid-template-columns:230px minmax(0,1fr)}.teacher-main{padding:30px 24px}.student-sidebar{padding:30px 16px}.editor-columns{grid-template-columns:1fr}.material-list{max-height:320px}.editor-footer{flex-direction:column}.editor-buttons{width:100%;justify-content:flex-end}.login-layout{gap:45px;grid-template-columns:1fr 350px}.teacher-hero{flex-direction:column}.hero-actions{justify-content:flex-start;max-width:none}}
@media(max-width:760px){.site-header{height:75px;padding:0 20px}.brand-mark{width:31px;height:35px;font-size:20px}.brand{gap:10px}.brand-name{font-size:.96rem}.brand-caption{font-size:.55rem}.header-side{gap:8px}.header-label{padding-left:12px;font-size:.71rem}.header-email{display:none}.page-wrap{padding:35px 20px 55px}.student-hero{align-items:flex-start;gap:20px;padding-bottom:15px}.student-hero h1{font-size:1.9rem}.student-hero p{font-size:.85rem}.hero-note{display:none}.assignment-grid{grid-template-columns:1fr}.course-summary{padding:18px;align-items:flex-start}.course-summary .pill{white-space:nowrap;font-size:.72rem}.assignment-card{padding:20px;gap:14px}.review-course summary{padding:18px}.review-course summary .review-stats{font-size:.7rem}.review-course .assignment-grid{padding:0 12px 12px}.section-heading{margin-top:24px}.section-heading p{font-size:.74rem}.login-layout{display:block;margin:36px auto 60px;padding:0 23px}.login-copy h1{font-size:2.1rem;margin-bottom:16px}.login-copy>p{font-size:.91rem}.login-points{gap:10px;margin:23px 0}.login-points li{font-size:.82rem}.login-card{padding:28px;margin-top:30px}.teacher-shell{display:block}.student-sidebar{padding:20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-heading{margin-bottom:12px}.student-sidebar input{min-height:40px;padding:8px 12px}.student-list{flex-direction:row;overflow-x:auto;margin-top:12px;gap:6px;padding-bottom:3px}.student-item{flex-shrink:0;width:auto;max-width:230px;padding:9px 12px}.student-avatar{width:28px;height:30px;font-size:.75rem}.student-item .student-name{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.student-sub,.sidebar-note{display:none}.sidebar-empty{padding:12px}.teacher-main{padding:25px 20px 50px}.teacher-hero{padding-bottom:22px;gap:15px}.teacher-hero h1{font-size:1.55rem}.teacher-metrics{margin-top:20px}.metric{padding:14px 13px}.metric strong{font-size:1.3rem}.metric-label{font-size:.67rem}.metric .unit{font-size:.65rem;margin-left:4px}.progress-table th,.progress-table td{padding:12px 10px}.progress-table td:first-child{width:48%;font-size:.75rem}.progress-table .updated-cell{display:none}.progress-table .tag{padding:5px 7px;font-size:.63rem}.progress-table td small{font-size:.65rem}.editor-title-field input{font-size:.85rem}.editor-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-buttons .button{padding:11px 8px;font-size:.79rem}.editor-heading p{font-size:.75rem}.teacher-current{margin-bottom:28px}.dialog{padding:25px}.dialog-actions .button{font-size:.84rem}.error-panel{padding:18px}.teacher-empty{padding:40px 0}.page-footer{font-size:.68rem;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.teacher-view-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:31px}
.view-tab{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:9px;display:flex;align-items:center;gap:8px;padding:9px 16px;font-size:.86rem;font-weight:600;min-height:41px}
.view-tab:hover{background:#edf1e9;color:var(--ink)}
.view-tab.active{background:var(--green-soft);border-color:#cddfd0;color:#365e4f}
.draft-dot{width:6px;height:6px;border-radius:50%;background:var(--orange);display:inline-block}
.weekly-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}
.weekly-heading h1{font-size:clamp(1.5rem,2.7vw,2.05rem);letter-spacing:-.025em;margin-bottom:10px}
.weekly-heading p{font-size:.85rem;color:var(--muted)}
.weekly-heading .button{flex-shrink:0;font-size:.8rem;min-height:39px}
.week-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--card);border:1px solid var(--line);border-radius:11px;padding:14px 17px}
.week-range-controls{display:flex;align-items:center;gap:15px;min-width:0}
.week-range-controls strong{font-size:.91rem;font-weight:600;color:var(--ink);line-height:1.7}
.week-range-controls .icon-button{flex-shrink:0}
.week-navigation>.text-button{flex-shrink:0;font-size:.77rem}
.student-entry .login-card { max-width: 30rem; margin: 3rem auto; }
.student-entry .login-card h1 { font-size: 1.6rem; }
.student-entry .login-card button + button { margin-top: 10px; }
.student-email { overflow-wrap: anywhere; }
.student-course .button { flex-shrink: 0; }
.student-course h3 { overflow-wrap: anywhere; }
.student-course { flex-wrap: wrap; }
.student-home > section + section { margin-top: 30px; }
.student-home .student-course { background: var(--card); }
.cumulative-workbook {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: clamp(18px, 3vw, 30px);
  background: #e2eee4;
  border: 1px solid #a8bfb0;
  border-inline-start: 5px solid var(--green);
  border-radius: 14px;
}
.cumulative-workbook h2 { font-size: 1.45rem; }
.cumulative-workbook p { color: var(--text); margin-top: 5px; font-size: .88rem; }

.selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.student-management {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0;
}
.student-management .text-button { min-height: 44px; }
.text-button.delete-action { color: var(--danger); min-height: 44px; }
.lesson-management { display: flex; justify-content: flex-end; padding: 0 8px; }
.review-course .lesson-management { padding: 0 18px 5px; }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:not(:disabled):hover { background: #85392f; }
#management-title, #management-description { overflow-wrap: anywhere; }
.management-dialog-actions { flex-wrap: wrap; }
.management-dialog-actions [hidden] { display: none; }
#management-confirm-delete { margin-right: auto; }

@media (max-width: 520px) {
  .teacher-header { height: auto; min-height: 75px; flex-wrap: wrap; gap: 4px 12px; padding-block: 10px; }
  .teacher-header .header-side { margin-left: auto; }
  .teacher-header .header-label { display: none; }
  .teacher-header .text-button { min-height: 44px; white-space: nowrap; }
}
.weekly-explanation{font-size:.76rem;color:var(--muted);margin:13px 2px 25px;line-height:1.85;max-width:780px}
.weekly-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:30px}
.weekly-totals>div{padding:20px 20px 17px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.weekly-totals>div>span{display:block;font-size:.76rem;color:var(--muted);margin-bottom:7px}
.weekly-totals strong{display:block;color:var(--ink);font-weight:600;font-size:1.9rem;line-height:1.4;font-variant-numeric:tabular-nums}
.weekly-totals strong small{font-size:.7rem;font-weight:400;color:var(--muted);margin-left:7px}
.weekly-totals p{font-size:.71rem;color:var(--muted);line-height:1.7;margin-top:7px}
.weekly-table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 16px}
.weekly-table-heading h2{font-size:1.08rem}
.weekly-table-heading h2 span{font-size:.74rem;font-weight:400;color:var(--muted);margin-left:9px;white-space:nowrap}
.weekly-table-heading>span{font-size:.7rem;color:var(--muted)}
.weekly-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:.81rem;table-layout:fixed;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.weekly-table thead th{font-size:.72rem;font-weight:500;color:var(--muted);background:#edf1e9;padding:13px 12px;vertical-align:top;line-height:1.6}
.weekly-table thead th:first-child{width:23%}
.weekly-table thead th:nth-child(2){width:23%}
.weekly-table thead th:nth-child(3){width:20%}
.weekly-table thead th:nth-child(4){width:15%}
.weekly-table thead th:last-child{width:19%}
.weekly-table thead small{font-size:.64rem;font-weight:400;display:block;margin-top:3px}
.weekly-student-row>th,.weekly-student-row>td{padding:17px 12px 16px;vertical-align:top;font-weight:400}
.weekly-student-group+.weekly-student-group .weekly-student-row>th,.weekly-student-group+.weekly-student-group .weekly-student-row>td{border-top:1px solid var(--line)}
.weekly-student-name{display:block;font-size:.87rem;font-weight:600;color:var(--ink);overflow-wrap:anywhere;margin-bottom:5px}
.weekly-student-row th small{display:block;color:var(--muted);font-size:.64rem;font-weight:400;margin-top:7px;line-height:1.6}
.weekly-student-row>td>strong{font-size:1.1rem;font-weight:600;color:var(--ink);display:block;font-variant-numeric:tabular-nums}
.weekly-student-row>td>small{font-size:.66rem;display:block;color:var(--muted);margin-top:5px;line-height:1.8}
.weekly-student-row .mobile-metric-hint{display:none}
.weekly-student-row .tag{font-size:.63rem;padding:4px 7px}
.count-done{color:#4e7969}
.count-pending{color:#a4683e!important}
.weekly-row-action .button{font-size:.7rem;min-height:36px;padding:8px 10px;white-space:nowrap}
.weekly-detail-row>td{padding:0 12px 15px}
.weekly-pending{border:1px solid #e3e9df;border-radius:8px;background:#fafbf7;overflow:hidden}
.weekly-pending summary{list-style:none;display:flex;align-items:center;gap:13px;cursor:pointer;padding:10px 13px;font-size:.72rem;color:var(--text)}
.weekly-pending summary::-webkit-details-marker{display:none}
.weekly-pending summary:hover{background:#edf3e9}
.weekly-pending summary:focus-visible{outline-offset:-3px}
.weekly-pending summary::after{content:'＋';margin-left:auto;color:var(--green);font-size:16px;line-height:1}
.weekly-pending[open] summary::after{content:'−'}
.weekly-pending-counts{color:var(--muted);font-size:.68rem}
.weekly-pending-body{padding:1px 14px 15px}
.weekly-pending-group h4{font-size:.74rem;color:var(--ink);margin:14px 0 7px;font-weight:600}
.weekly-pending-group h4 span{color:var(--muted);font-size:.68rem;font-weight:400;margin-left:7px}
.weekly-pending-group ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.weekly-pending-group li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #e7ece3}
.weekly-pending-group li:last-child{border-bottom:0;padding-bottom:0}
.weekly-pending-group li>div{min-width:0}
.weekly-item-title{font-size:.76rem;display:block;color:var(--ink);overflow-wrap:anywhere}
.weekly-pending-group li small{font-size:.67rem;display:block;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.weekly-pending-group .tag{font-size:.65rem;flex-shrink:0}
.weekly-row-error{font-size:.74rem;padding:11px 13px;color:#8c5b40;background:var(--orange-soft);border-radius:8px;line-height:1.7}
@media(max-width:1100px){.weekly-table thead th,.weekly-student-row>th,.weekly-student-row>td{padding-left:9px;padding-right:9px}.weekly-row-action .button{font-size:.67rem;padding:8px}.weekly-table thead th:first-child{width:22%}.weekly-table thead th:nth-child(2){width:24%}.weekly-totals>div{padding:17px 15px}.weekly-totals p{font-size:.67rem}}
@media(max-width:760px){.teacher-view-tabs{margin-bottom:25px;gap:5px}.view-tab{font-size:.8rem;padding:9px 13px}.weekly-heading{gap:10px;margin-bottom:20px}.weekly-heading h1{font-size:1.5rem}.weekly-heading p{font-size:.77rem}.weekly-heading .button{font-size:.73rem;min-height:36px;padding:8px 10px}.week-navigation{flex-wrap:wrap;padding:13px;gap:8px}.week-range-controls{gap:10px;flex:1;justify-content:space-between}.week-range-controls strong{font-size:.78rem}.week-range-controls .icon-button{width:28px;height:29px;font-size:14px}.week-navigation>.text-button{margin-left:auto;font-size:.73rem;min-height:25px;padding:3px}.weekly-explanation{font-size:.71rem;margin-bottom:20px}.weekly-totals{gap:8px;margin-bottom:25px}.weekly-totals>div{padding:14px 10px}.weekly-totals>div>span{font-size:.67rem;line-height:1.6;margin-bottom:6px}.weekly-totals strong{font-size:1.5rem}.weekly-totals strong small{font-size:.62rem;margin-left:4px}.weekly-totals p{font-size:.64rem;line-height:1.7}.weekly-table-heading{align-items:flex-start;gap:8px}.weekly-table-heading h2{font-size:1rem}.weekly-table-heading h2 span{display:block;margin:3px 0 0;font-size:.68rem}.weekly-table-heading>span{font-size:.63rem;text-align:right;line-height:1.8;max-width:120px}.weekly-table{display:block;background:transparent;border:0;overflow:visible}.weekly-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.weekly-student-group{display:block;border:1px solid var(--line);border-radius:11px;background:var(--card);margin-bottom:13px;overflow:hidden}.weekly-student-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.weekly-student-row>th{grid-column:1/-1;padding:16px 15px 11px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.weekly-student-name{font-size:.9rem;margin:0;max-width:100%}.weekly-student-row>th small{flex-basis:100%;margin:0;font-size:.66rem}.weekly-student-row>td{padding:10px 12px 14px;min-width:0}.weekly-student-group+.weekly-student-group .weekly-student-row>th,.weekly-student-group+.weekly-student-group .weekly-student-row>td{border-top:0}.weekly-student-row>td::before{content:attr(data-label);display:block;color:var(--muted);font-size:.64rem;line-height:1.5;margin-bottom:5px;white-space:normal}.weekly-student-row>td>strong{font-size:1.2rem}.weekly-student-row>td>small{font-size:.62rem;line-height:1.8;margin-top:4px}.weekly-student-row>td+td:not(.weekly-row-action){border-left:1px solid #edf0e9}.weekly-student-row .mobile-metric-hint{display:block;font-size:.59rem}.weekly-student-row>td.weekly-row-action{grid-column:1/-1;padding:0 12px 14px}.weekly-row-action::before{display:none!important}.weekly-row-action .button{min-height:37px;padding:8px 13px;font-size:.74rem}.weekly-detail-row{display:block}.weekly-detail-row>td{display:block;padding:0 12px 13px}.weekly-pending summary{padding:11px 12px;gap:8px;flex-wrap:wrap;font-size:.7rem}.weekly-pending-counts{font-size:.65rem}.weekly-pending-body{padding:0 11px 13px}.weekly-pending-group li{gap:9px}.weekly-pending-group h4{font-size:.7rem}.weekly-item-title{font-size:.73rem}.weekly-pending-group li small{font-size:.64rem}.weekly-pending-group .tag{font-size:.6rem;padding:5px 7px}.weekly-row-error{font-size:.7rem}}
