:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#173536;background:#f5f5f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible,.upload-zone:focus-within{outline:3px solid #e5a45e;outline-offset:2px}h1,h2,h3,p{margin-top:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:none;background:#183b3b;color:#ecf5ee;padding:30px 18px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:1px 10px 37px}.brand-mark{width:38px;height:38px;border-radius:12px;background:#d4e4a5;color:#183b3b;display:grid;place-items:center;font-size:22px;font-weight:800}.brand strong{display:block;font-size:17px;letter-spacing:.02em}.brand small{display:block;font-size:11px;color:#acc3ba;margin-top:2px;letter-spacing:.13em}.side-nav{display:grid;gap:7px}.nav-link{width:100%;border:0;background:transparent;color:#bacdc5;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 17px;border-radius:12px;font-weight:650;font-size:14px}.nav-link span{font-size:20px;line-height:1;width:20px}.nav-link:hover,.nav-link.active{background:#2e5650;color:white}.sidebar-bottom{margin-top:auto;padding:0 10px}.sidebar-bottom p{color:#a0b7af;font-size:11px;line-height:1.7;margin:16px 0 0}.text-button{background:transparent;border:0;color:inherit;padding:7px 0}.sidebar-settings{font-size:13px;color:#e5f1e9;display:flex;gap:10px;align-items:center}.main-content{width:min(100%,1440px);padding:37px clamp(24px,4.1vw,70px) 80px;margin:0 auto}.topbar,.overview-heading,.section-heading,.modal-heading,.preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.topbar{align-items:center;margin-bottom:33px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.18em;font-weight:800;color:#699484;margin-bottom:7px}.topbar h1{font-size:28px;line-height:1.2;letter-spacing:-.04em;margin:0;font-weight:800}.today-label{font-size:13px;color:#758783}.topbar-right{display:flex;align-items:center;gap:10px}.mobile-settings{display:none}.class-section{border-bottom:1px solid #dce4dc;margin-bottom:28px}.class-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin}.class-tab{border:0;background:transparent;color:#70837e;padding:13px 18px 15px;font-weight:750;white-space:nowrap;position:relative;display:flex;align-items:center;gap:8px}.class-tab.active{color:#183b3b}.class-tab.active:after{content:"";position:absolute;bottom:0;left:13px;right:13px;background:#2f7867;height:3px;border-radius:3px 3px 0 0}.class-tab:hover{color:#183b3b}.class-dot{width:8px;height:8px;border-radius:50%;background:#80b8a2}.class-tab.physics .class-dot{background:#d5a473}.class-tab .tab-count{font-size:11px;font-weight:800;background:#e2ebe5;border-radius:30px;min-width:21px;height:21px;padding:0 6px;display:grid;place-items:center;color:#466d60}.overview{background:#e9f0e8;border:1px solid #dce8dd;border-radius:18px;padding:26px 29px 28px;margin-bottom:37px;box-shadow:0 2px 10px #213a2b08}.overview-heading{align-items:end;margin-bottom:24px}.overview h2{font-size:24px;letter-spacing:-.03em;margin:0}.overview-hint{font-size:12px;color:#627b6d;margin:0 0 3px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.stat-card{background:#fff;border:1px solid #e3eae1;border-radius:13px;padding:20px 22px;min-height:132px;display:flex;flex-direction:column}.stat-card span{font-size:12px;font-weight:700;color:#6b8275}.stat-card strong{font-size:36px;line-height:1.25;letter-spacing:-.05em;margin:8px 0 1px}.stat-card small{font-size:11px;color:#83938a;line-height:1.4}.warning-stat strong{color:#b4663b}.workspace{min-height:300px}.section-heading{align-items:end;margin-bottom:20px}.section-heading h2{font-size:22px;letter-spacing:-.03em;margin:0}.primary-button,.secondary-button,.small-button,.danger-button{border:1px solid transparent;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:750;transition:background .15s,transform .15s;white-space:nowrap}.primary-button{background:#1d6054;color:white;box-shadow:0 3px 9px #1d60541b}.primary-button:hover{background:#164c43;transform:translateY(-1px)}.primary-button span{font-size:18px;vertical-align:-1px;margin-right:3px}.secondary-button,.small-button{background:white;border-color:#d6e1db;color:#235b50}.secondary-button:hover,.small-button:hover{background:#edf4ef}.danger-button{background:#fff5f2;color:#ad5847;border-color:#f0d0c8}.danger-button:hover{background:#ffe9e2}.assignments-list{display:grid;gap:15px}.assignment-card{background:#fff;border:1px solid #e1e9e2;border-radius:16px;display:grid;grid-template-columns:174px minmax(0,1fr);overflow:hidden;box-shadow:0 3px 12px #1c3d2a08}.sample-thumb{border:0;background:#e8eee8;min-height:196px;height:100%;width:100%;position:relative;display:grid;place-items:center;overflow:hidden;color:#648279}.sample-thumb img{width:100%;height:100%;max-height:250px;object-fit:cover;object-position:top}.sample-thumb iframe{border:0;width:100%;height:100%;min-height:196px;pointer-events:none;background:white}.sample-thumb .file-icon{font-size:35px;line-height:1;margin-bottom:6px}.sample-thumb .file-label{font-size:11px;font-weight:750;letter-spacing:.06em}.sample-thumb.has-file:after{content:"查看樣本";position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:#183b3bd9;color:white;padding:5px 10px;border-radius:50px;font-size:11px;white-space:nowrap}.assignment-body{min-width:0;padding:20px 22px 18px}.assignment-top{display:flex;justify-content:space-between;gap:12px}.assignment-meta{font-size:11px;font-weight:750;color:#729284;letter-spacing:.03em;margin:0 0 5px}.assignment-top h3{font-size:18px;line-height:1.4;letter-spacing:-.02em;margin:0 0 12px;word-break:break-word}.assignment-actions{display:flex;gap:4px}.icon-button{width:31px;height:31px;border:1px solid #e1e9e2;border-radius:8px;background:#fff;color:#547568;display:grid;place-items:center;font-size:17px;flex:none}.icon-button:hover{background:#eef4ef}.assignment-status{display:flex;align-items:center;gap:9px;padding-bottom:13px;border-bottom:1px solid #edf0ec}.status-pill{font-size:11px;font-weight:800;padding:5px 9px;border-radius:30px;background:#fff0e7;color:#b86538}.status-pill.clear{background:#e9f4e9;color:#37765b}.muted{font-size:12px;color:#82928a}.missing-list{display:flex;flex-wrap:wrap;gap:8px;padding:13px 0 14px;min-height:55px}.missing-chip{display:inline-flex;align-items:center;gap:7px;border-radius:7px;background:#f7f1e7;border:1px solid #e9ddcb;padding:5px 5px 5px 9px;font-size:12px;font-weight:650;color:#705c40}.missing-chip button{border:0;background:#fff;color:#5a866f;border-radius:5px;font-size:11px;font-weight:750;padding:3px 6px}.missing-chip button:hover{background:#e9f5e9}.all-clear{font-size:12px;color:#7b8e84;margin:0;align-self:center}.assignment-footer{display:flex;justify-content:flex-end}.small-button{padding:7px 11px;font-size:12px}.empty-state{background:#fff;border:1px dashed #ccdcd0;border-radius:16px;padding:56px 22px;text-align:center;color:#698477}.empty-illustration{width:74px;height:74px;border-radius:18px;background:#e9f2e9;margin:0 auto 17px;display:grid;place-items:center;color:#42836b;font-size:34px;transform:rotate(-5deg)}.empty-state h3{color:#25483d;font-size:18px;margin-bottom:8px}.empty-state p{font-size:13px;line-height:1.6;margin-bottom:19px}.empty-state .primary-button{display:inline-block}.roster{background:#fff;border:1px solid #e1e9e2;border-radius:15px;overflow:hidden}.roster-summary{padding:16px 20px;background:#f8faf7;color:#71867a;font-size:12px;border-bottom:1px solid #e7ede7}.roster-table{width:100%;border-collapse:collapse;text-align:left}.roster-table th{font-size:11px;color:#809187;letter-spacing:.06em;font-weight:750;background:#fcfdfb;padding:13px 20px}.roster-table td{border-top:1px solid #eff2ed;padding:15px 20px;font-size:13px}.roster-table tr:first-child td{border-top:0}.roster-table .student-name{font-weight:750;color:#23443b}.roster-table .count{font-size:17px;font-weight:800}.warning-badge{display:inline-block;background:#fff0e7;color:#b36137;padding:5px 9px;border-radius:7px;font-weight:800;font-size:12px}.warning-badge.none{background:#eef3ee;color:#819086}.progress-track{height:5px;background:#e7eee6;border-radius:10px;margin-top:6px;width:90px;overflow:hidden}.progress-fill{height:100%;background:#d5a473;border-radius:10px}.roster-table .subtle{color:#8b9a90;font-size:11px}.row-actions{text-align:right}.row-actions button{border:0;background:none;color:#a96d5d;font-size:12px;padding:5px}.row-actions button:hover{text-decoration:underline}.modal,.preview-modal{border:0;border-radius:18px;box-shadow:0 24px 80px #102a2760;padding:0;max-width:min(480px,calc(100vw - 28px));width:100%;color:#173536;background:#fff}.modal::backdrop,.preview-modal::backdrop{background:#10282299;backdrop-filter:blur(3px)}.modal-form{padding:27px 30px 26px}.modal-heading{align-items:start;margin-bottom:23px}.modal-heading h2,.preview-heading h2{font-size:22px;letter-spacing:-.03em;margin:0;line-height:1.3}.close-button{border:0;background:#f0f4ef;color:#627a6e;border-radius:9px;width:30px;height:30px;font-size:22px;display:grid;place-items:center;line-height:1;flex:none}.close-button:hover{background:#e0ebe2}.field{display:block;font-weight:750;font-size:12px;margin-bottom:19px;color:#3f5b4e}.field input:not([type=file]),.field textarea,.search-input{display:block;width:100%;border:1px solid #d9e3db;background:#fbfcfa;border-radius:9px;padding:11px 12px;margin-top:7px;color:#1e3b31;font-size:14px;outline:none}.field input:focus,.field textarea:focus,.search-input:focus{border-color:#4e9678;box-shadow:0 0 0 3px #4e967820}.field textarea{resize:vertical;min-height:140px}.required{color:#b96b44}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:128px;background:#f8faf7;border:1.5px dashed #bdd1c1;border-radius:10px;margin-top:8px;cursor:pointer}.upload-zone:hover{background:#eff6ed}.upload-icon{font-size:25px;color:#549277;line-height:1}.upload-zone strong{font-size:12px}.upload-zone small{font-size:11px;color:#8a9c90;font-weight:500}.selected-file{font-size:12px;color:#557565;margin-top:7px;word-break:break-all}.form-note{font-size:11px;color:#819087;line-height:1.6;margin:0 0 14px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.dialog-context{font-size:13px;color:#657e70;line-height:1.5;margin:-8px 0 18px}.checklist{border:1px solid #e1e9e2;border-radius:10px;max-height:290px;overflow:auto;margin:13px 0 10px}.check-row{display:flex;align-items:center;gap:10px;padding:11px 13px;font-size:13px;border-bottom:1px solid #eff2ed;cursor:pointer}.check-row:last-child{border-bottom:0}.check-row:hover{background:#f8faf7}.check-row input{accent-color:#246b58;width:16px;height:16px}.check-empty{padding:26px;text-align:center;color:#87988a;font-size:12px}.preview-modal{max-width:min(850px,calc(100vw - 28px));max-height:calc(100vh - 28px);display:none;flex-direction:column}.preview-modal[open]{display:flex}.preview-heading{padding:20px 23px;border-bottom:1px solid #e8ede8;align-items:center}.preview-content{padding:18px;overflow:auto;min-height:250px;display:grid;place-items:center;background:#f2f4f0}.preview-content img{display:block;max-width:100%;max-height:calc(100vh - 165px);object-fit:contain;box-shadow:0 2px 20px #1735361a}.preview-content iframe{display:block;border:0;width:100%;height:min(75vh,900px);background:white}.toast{position:fixed;bottom:26px;right:26px;padding:11px 17px;background:#183b3b;color:#fff;border-radius:10px;font-size:13px;box-shadow:0 9px 30px #183b3b38;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translateY(0)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:920px){.sidebar{width:210px}.main-content{padding:29px 25px 60px}.overview{padding:23px}.sample-thumb{min-height:175px}.assignment-card{grid-template-columns:140px minmax(0,1fr)}}@media(max-width:680px){.app-shell{display:block}.sidebar{width:100%;height:auto;position:static;padding:13px 18px 0;display:block}.brand{padding:0 0 13px}.brand-mark{width:32px;height:32px;font-size:18px}.brand strong{font-size:15px}.brand small{display:none}.side-nav{display:flex;gap:6px;margin:0 -18px;padding:0 18px}.nav-link{width:auto;border-radius:9px 9px 0 0;padding:9px 14px;font-size:12px}.nav-link span{font-size:16px;width:16px}.sidebar-bottom{display:none}.main-content{padding:23px 17px 50px}.topbar{margin-bottom:21px}.topbar h1{font-size:24px}.today-label{font-size:11px}.mobile-settings{display:grid}.class-section{margin-bottom:20px}.class-tab{font-size:12px;padding:12px 13px}.overview{padding:19px 16px 16px;margin-bottom:29px}.overview-heading{align-items:start;display:block;margin-bottom:16px}.overview h2{font-size:21px}.overview-hint{margin:8px 0 0;font-size:11px}.stats-grid{gap:7px}.stat-card{padding:11px 9px;min-height:102px}.stat-card span{font-size:10px}.stat-card strong{font-size:28px;margin:7px 0 2px}.stat-card small{font-size:9px}.section-heading h2{font-size:19px}.primary-button{padding:9px 11px;font-size:12px}.assignment-card{grid-template-columns:105px minmax(0,1fr)}.sample-thumb,.sample-thumb iframe{min-height:165px}.assignment-body{padding:14px 13px 13px}.assignment-top h3{font-size:15px;margin-bottom:8px}.assignment-meta{font-size:10px}.assignment-actions{gap:3px}.icon-button{width:27px;height:27px;font-size:15px}.missing-list{gap:5px}.missing-chip{font-size:11px}.roster{overflow-x:auto}.roster-table{min-width:565px}.modal-form{padding:22px 20px}.toast{right:16px;left:16px;bottom:16px;text-align:center}}@media(max-width:390px){.assignment-card{display:block}.sample-thumb,.sample-thumb iframe{height:140px;min-height:140px}.sample-thumb img{max-height:140px}.stat-card small{display:none}.stat-card{min-height:77px}.class-tab .tab-count{display:none}}
/* Follow-up states inside each homework card */
.missing-chip .remove-record{color:#ab7665}
.submitted-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border-top:1px solid #f0f2ee;padding:11px 0 12px;color:#809188;font-size:11px}
.submitted-chip{display:inline-flex;align-items:center;gap:4px;background:#eef4ef;color:#5d7667;border-radius:6px;padding:4px 4px 4px 8px;font-size:11px}
.submitted-chip button{border:0;background:transparent;color:#658371;padding:0 3px;font-size:13px;line-height:1}
.submitted-chip button:hover{color:#2d5947}
.assignment-footer{gap:8px;flex-wrap:wrap}
.tracking-open-button{background:#1d6054;color:#fff;border-color:#1d6054}
.tracking-open-button:hover{background:#164c43;color:#fff}
.student-detail{display:block;margin-top:3px;color:#87998c;font-size:11px;font-weight:500}
.tracking-modal{border:0;border-radius:18px;box-shadow:0 24px 80px #102a2760;padding:0;max-width:min(800px,calc(100vw - 28px));width:100%;max-height:calc(100vh - 28px);color:#173536;background:#fff}
.tracking-modal::backdrop{background:#10282299;backdrop-filter:blur(3px)}
.tracking-modal[open]{display:flex;flex-direction:column}
.tracking-heading{display:flex;justify-content:space-between;gap:18px;padding:25px 27px 18px;border-bottom:1px solid #e8eee8}
.tracking-heading h2{font-size:22px;letter-spacing:-.03em;margin:0 0 8px}
.tracking-help{font-size:12px;line-height:1.6;color:#768a7c;margin:0}
.tracking-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 27px;border-bottom:1px solid #edf1ed}
.tracking-toolbar .search-input{margin:0;max-width:290px}
.tracking-toolbar span{color:#68806f;font-size:12px;white-space:nowrap}
.tracking-rows{overflow:auto;min-height:180px}
.tracking-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1fr) auto;align-items:center;gap:15px;padding:12px 27px;border-bottom:1px solid #eff2ed}
.tracking-row:last-child{border-bottom:0}
.tracking-row:hover{background:#fbfcfa}
.tracking-person strong{display:block;font-size:13px}
.tracking-person small,.tracking-info small{display:block;color:#8a9b8e;font-size:11px;margin-top:3px}
.tracking-info{display:flex;flex-direction:column;align-items:flex-start}
.tracking-status{display:inline-block;font-size:11px;font-weight:800;border-radius:20px;padding:4px 8px;background:#fff0e7;color:#ad633b}
.tracking-status.neutral{background:#eff3ef;color:#83958a}
.tracking-status.submitted{background:#e9f4e9;color:#37765b}
.tracking-actions{display:flex;gap:5px}
.tracking-actions button{border:1px solid #dce6dc;border-radius:8px;background:#fff;color:#496c58;font-size:12px;font-weight:750;padding:8px 11px;min-width:70px}
.tracking-actions button:hover:not(:disabled){background:#eff6ef}
.tracking-actions button.selected.pending{background:#fff0e7;border-color:#eac9b4;color:#a65a34}
.tracking-actions button.selected.submitted{background:#e6f2e7;border-color:#c4dfc9;color:#2d7455}
.tracking-actions button:disabled{opacity:1;cursor:default}
@media(max-width:680px){.tracking-heading{padding:19px 17px 14px}.tracking-heading h2{font-size:18px}.tracking-toolbar{padding:12px 17px;display:block}.tracking-toolbar .search-input{max-width:none}.tracking-toolbar span{display:block;margin-top:7px}.tracking-row{grid-template-columns:1fr auto;gap:7px;padding:12px 17px}.tracking-info{grid-column:1;grid-row:2}.tracking-actions{grid-column:2;grid-row:1 / span 2}.tracking-actions button{min-width:55px;padding:7px 8px;font-size:11px}}
@media(max-width:390px){.tracking-row{grid-template-columns:1fr}.tracking-info,.tracking-actions{grid-column:1;grid-row:auto}.tracking-actions{margin-top:5px}}
.status-choice{border:0;padding:0;margin:0 0 17px;display:flex;flex-wrap:wrap;gap:8px}
.status-choice legend{font-size:12px;font-weight:750;color:#3f5b4e;margin-bottom:8px}
.status-choice label{display:flex;align-items:center;gap:5px;border:1px solid #dbe6dd;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:750;cursor:pointer}
.status-choice label:has(input:checked){background:#eaf4ed;border-color:#8fbda4;color:#245e48}
.status-choice input{accent-color:#246b58}
.status-choice small{font-size:10px;font-weight:500;color:#81958a}
.absent-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:#809188;font-size:11px;border-top:1px solid #eff2ed;padding:10px 0 11px}
.absent-chip{background:#eef0f8;color:#5c6892;border-radius:6px;padding:4px 8px}
.tracking-status.absent{background:#e9edf9;color:#54658f}
.tracking-actions button.selected.absent{background:#e9edf9;border-color:#cbd4ec;color:#4f6292}
.tracking-actions button.clear-status{min-width:27px;padding:7px 6px;color:#a26c61}
.archived-row{grid-template-columns:minmax(120px,1fr) auto}
.archive-card{background:#fff;border:1px solid #e1e9e2;border-radius:15px;padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:22px;box-shadow:0 3px 12px #1c3d2a08}
.archive-card h3{font-size:17px;letter-spacing:-.02em;margin:0 0 12px}
.archive-counts{display:flex;flex-wrap:wrap;gap:7px}
.archive-counts span{background:#f0f4ef;color:#5f7968;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700}
.archive-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
@media(max-width:680px){.archive-card{display:block;padding:17px}.archive-actions{justify-content:flex-start;margin-top:15px}.tracking-actions button{min-width:50px}.archived-row{grid-template-columns:1fr auto}}

.field select{display:block;width:100%;border:1px solid #d9e3db;background:#fbfcfa;border-radius:9px;padding:11px 12px;margin-top:7px;color:#1e3b31;font-size:14px;outline:none}
.field select:focus{border-color:#4e9678;box-shadow:0 0 0 3px #4e967820}
.topic-group{display:grid;gap:11px}
.topic-group-heading{display:flex;align-items:center;gap:10px;margin:5px 0 1px;padding:0 2px}
.topic-group-heading h3{font-size:15px;color:#315e50;margin:0;font-weight:800}
.topic-group-heading span{font-size:11px;color:#8a9b8e;background:#e7eee7;border-radius:20px;padding:3px 8px}
.topic-cards{display:grid;gap:15px}
/* Batch status selection and monthly records */
.batch-student-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-bottom:1px solid #eff2ed}
.batch-student-row:last-child{border-bottom:0}
.batch-student-name strong{display:block;font-size:13px}
.batch-student-name small{display:block;margin-top:3px;color:#849389;font-size:11px}
.batch-student-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.batch-status-option{display:flex;align-items:center;gap:5px;border:1px solid #dbe6dd;border-radius:8px;padding:6px 8px;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.batch-status-option:has(input:checked){background:#eaf4ed;border-color:#8fbda4;color:#245e48}
.batch-status-option input{accent-color:#246b58}
.records-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.record-panel{background:#fff;border:1px solid #e1e9e2;border-radius:15px;padding:20px 21px;align-self:start}
.record-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.record-panel-heading h3{font-size:16px;margin:0}
.record-panel-heading>span{color:#85958a;font-size:11px}
.month-control{display:flex;align-items:center;gap:6px;color:#6d8275;font-size:11px;font-weight:700}
.month-control input{max-width:145px;padding:7px;border:1px solid #d9e3db;border-radius:7px;background:#fbfcfa;color:#1e3b31;font:inherit}
.record-list{list-style:none;margin:0 0 17px;padding:0;border-top:1px solid #eef2ed}
.record-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 2px;border-bottom:1px solid #eef2ed;font-size:13px}
.record-list li strong{font-size:13px}
.record-list li small{display:block;color:#85958a;font-size:11px;margin-top:3px}
.record-empty{color:#84968a;font-size:12px;line-height:1.6;margin:10px 0 20px}
@media(max-width:900px){.records-grid{grid-template-columns:1fr}}
@media(max-width:390px){.batch-student-row{align-items:flex-start;flex-direction:column}.batch-student-actions{justify-content:flex-start}}
@media(max-width:680px){.side-nav{overflow-x:auto;white-space:nowrap}.nav-link{flex:none}}

/* Daily homework records */
.tracking-date{display:flex;align-items:center;gap:7px;color:#496a59;font-size:11px;font-weight:750;white-space:nowrap}
.tracking-date input{border:1px solid #d9e3db;background:#fbfcfa;border-radius:8px;padding:8px;color:#1e3b31;font:inherit}
.tracking-toolbar .search-input{max-width:220px}
.daily-history{grid-column:1 / -1;min-width:0;color:#657d6d;font-size:11px}
.daily-history summary{cursor:pointer;font-weight:700;width:max-content}
.daily-history ul{list-style:none;margin:8px 0 0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.daily-history li{display:flex;gap:5px;border:1px solid #dce7dc;border-radius:7px;padding:5px 7px;background:#f8faf7}
.submission-details{border-top:1px solid #eff2ed;padding:10px 0 12px;color:#607f6d;font-size:11px}
.submission-details summary{cursor:pointer;font-weight:750;width:max-content}
.submission-details .submitted-list{border:0;padding:8px 0 0}
@media(max-width:680px){.tracking-date{margin-bottom:8px}.tracking-toolbar .search-input{max-width:none}.tracking-toolbar span{white-space:normal}}

.long-absent-badge{display:inline-block;vertical-align:middle;margin-left:5px;padding:3px 6px;border-radius:5px;background:#eeeaf8;color:#67558e;font-size:10px;font-weight:800}
.long-absent-toggle{border:1px solid #d9e2d9;border-radius:7px;background:#fff;color:#547364;padding:6px 8px;font-size:11px;font-weight:750;white-space:nowrap}
.long-absent-toggle:hover{background:#f0f5ef}
.long-absent-toggle.active{background:#f2eef9;color:#67558e;border-color:#d9ceeb}
.no-management{display:inline-flex;align-items:center;color:#7b8d80;font-size:12px;padding:7px 0}
.excellent-count{font-size:11px;font-weight:750;color:#447a5d;background:#ebf5e9;border-radius:20px;padding:5px 9px;white-space:nowrap}@media(max-width:680px){.roster-table{min-width:720px}}

/* Daily batch follow-up */
.daily-row{grid-template-columns:minmax(120px,1fr) minmax(150px,1fr) auto}
.daily-options{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.daily-options label{display:flex;align-items:center;gap:5px;border:1px solid #dbe6dd;border-radius:8px;padding:7px 9px;color:#4d6d58;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.daily-options label:has(input:checked){background:#eaf4ed;border-color:#8fbda4;color:#245e48}
.daily-options input{accent-color:#246b58}
.tracking-savebar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 27px;border-top:1px solid #e8eee8;background:#fff}
.tracking-savebar span{font-size:11px;color:#758b7b;line-height:1.5}
@media(max-width:680px){.daily-row{grid-template-columns:1fr}.daily-row .tracking-info,.daily-options{grid-column:1;grid-row:auto}.daily-options{justify-content:flex-start}.tracking-savebar{padding:13px 17px}.tracking-savebar span{max-width:50%}}

.historical-record-note{background:#f0f6ed;border:1px solid #d9e9d9;border-radius:8px;padding:9px 11px;color:#426c56}.today-missing-option{border-color:#edd9c8;color:#a4663d}.today-missing-option:has(input:checked){background:#fff1e6;border-color:#d4a278;color:#95552c}.batch-status-option:has(input:disabled){opacity:.45;cursor:not-allowed}.backup-tools{border-top:1px solid #e5ede6;margin-top:5px;padding-top:18px}.backup-tools>strong{display:block;font-size:13px;margin-bottom:7px}.backup-actions{display:flex;flex-wrap:wrap;gap:8px}

#assignmentDetailTopic{min-height:76px}
.assignment-detail-topic{font-size:12px;line-height:1.5;color:#5d796b;margin:-5px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:500}
.assignment-detail-topic strong{font-weight:750}

.cloud-gate{min-height:100vh;padding:24px;display:grid;place-items:center;background:#f5f5f0}
.cloud-login{width:min(100%,440px);padding:34px;background:#fff;border:1px solid #e1e9e2;border-radius:18px;box-shadow:0 12px 40px #1c3d2a10}
.cloud-login h1{font-size:26px;margin:0 0 10px;letter-spacing:-.04em}
.cloud-login>p:not(.eyebrow):not(.cloud-login-message){font-size:13px;line-height:1.65;color:#71867a;margin:0 0 24px}
.cloud-login .primary-button{width:100%;margin-top:4px}
.cloud-login-message{font-size:12px;color:#a55141;line-height:1.6;min-height:20px;margin:14px 0 0}
@media(max-width:520px){.cloud-gate{padding:16px}.cloud-login{padding:25px 20px}}

/* First-day corrections and dated missing records */
#firstRecordDate:disabled{background:#edf1ec;color:#607769}
.missing-record-panel{grid-column:1 / -1}
.missing-record-list{max-height:520px;overflow:auto;margin:0}
.missing-record-list li{align-items:flex-start}
.missing-record-list li span{min-width:0}
.missing-record-list li small{overflow-wrap:anywhere}
.missing-record-list time{flex:none;color:#557360;font-size:12px;font-weight:750;white-space:nowrap}
@media(max-width:480px){.missing-record-list li{flex-direction:column;gap:3px}}

/* Three-class daily collection overview */
.today-total{align-self:end;border-radius:30px;background:#e7f0e8;color:#276551;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.today-intro{max-width:790px;margin:-5px 0 23px;color:#657e70;font-size:12px;line-height:1.7}
.today-content{display:grid;gap:25px}
.today-class{min-width:0}
.today-class-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.today-class-heading h3{margin:0;color:#244d3e;font-size:17px}
.today-class-heading span{color:#708b78;font-size:12px;font-weight:700}
.today-class>.record-empty{background:#fff;border:1px solid #e1e9e2;border-radius:12px;padding:17px;margin:0}
.today-card{background:#fff;border:1px solid #e1e9e2;border-radius:14px;margin-bottom:11px;overflow:hidden;box-shadow:0 3px 12px #1c3d2a08}
.today-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f8faf7;border-bottom:1px solid #e9eee8;padding:14px 17px}
.today-card-heading h4{font-size:15px;margin:0;color:#25453b}
.today-card-heading .assignment-meta{margin:0 0 3px}
.today-card-heading .status-pill{white-space:nowrap}
.today-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(190px,1.35fr) auto;align-items:center;gap:12px;padding:11px 17px;border-top:1px solid #eff2ed}
.today-person strong{display:block;font-size:13px}
.today-person small,.today-row-meta small{display:block;color:#87988b;font-size:11px;margin-top:4px}
.today-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.today-actions .small-button{padding:7px 9px}
.today-missing-button{border-color:#ead7c2;color:#96613b}
.today-unrecorded{display:flex;align-items:center;flex-wrap:wrap;gap:7px;background:#f5f8f1;border:1px dashed #d6e3d1;border-radius:12px;padding:12px 15px;color:#54715c;font-size:12px}
.today-unrecorded strong{margin-right:5px}
@media(max-width:850px){.today-row{grid-template-columns:minmax(100px,1fr) minmax(140px,1fr)}.today-actions{grid-column:1 / -1;justify-content:flex-start}}
@media(max-width:520px){.today-card-heading{align-items:flex-start}.today-row{grid-template-columns:1fr;gap:7px}.today-actions{grid-column:1}.today-intro{font-size:11px}.today-total{font-size:11px}}

/* Compact monthly list and warning follow-up */
.excellent-details{border:1px solid #e1e9e2;border-radius:10px;overflow:hidden}
@media(min-width:901px){.record-panel:has(.excellent-details[open]){grid-column:1 / -1}}
.excellent-details>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 13px;cursor:pointer;color:#315e50;font-size:12px;font-weight:750;list-style:none;background:#f8faf7}
.excellent-details>summary::-webkit-details-marker{display:none}
.excellent-details>summary:focus-visible,.warning-history>summary:focus-visible{outline:3px solid #e5a45e;outline-offset:-3px}
.excellent-chevron{font-size:18px;line-height:1;transition:transform .15s}
.excellent-details[open] .excellent-chevron{transform:rotate(180deg)}
.excellent-scroll{height:260px;min-height:110px;max-height:60vh;overflow:auto;resize:vertical;padding:0 13px 8px}
.excellent-scroll .record-list{margin-bottom:0}
.warning-student-list{display:grid;gap:9px}
.warning-student{border:1px solid #e6ece5;border-radius:10px;padding:12px;background:#fcfdfb}
.warning-student-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.warning-student-top strong{font-size:13px}
.warning-student-top small{display:block;margin-top:4px;color:#829388;font-size:11px;line-height:1.4}
.warning-student-top .warning-badge{white-space:nowrap}
.warning-handle-button{margin-top:10px}
.warning-history{margin-top:10px;border-top:1px solid #e9efe8;padding-top:9px}
.warning-history>summary{cursor:pointer;color:#47715b;font-size:11px;font-weight:750}
.warning-history ul{list-style:none;margin:8px 0 0;padding:0;max-height:220px;overflow:auto}
.warning-history li{display:flex;justify-content:space-between;gap:9px;padding:7px 0;border-top:1px solid #edf1ec;color:#617a69;font-size:11px}
.warning-history time{white-space:nowrap;font-weight:700}
.warning-history li span{overflow-wrap:anywhere}
.warning-history .text-button{font-size:11px;color:#a25e49;padding:0;flex:none}
@media(max-width:520px){.record-panel{padding:17px}.record-panel-heading{align-items:flex-start;flex-wrap:wrap}.excellent-scroll{height:220px}}
/* Daily workflow and settings clarity */
.today-guide{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#edf4ec;border:1px solid #dce9d8;border-radius:13px;padding:13px 16px;margin:-2px 0 18px}
.today-guide strong{display:block;color:#315b46;font-size:13px}
.today-guide p{margin:3px 0 0;color:#557360;font-size:12px;line-height:1.55}
.today-guide .small-button{flex:none;background:#fff}
.today-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 19px}
.today-filters{display:inline-flex;flex-wrap:wrap;gap:5px;background:#edf2ed;border:1px solid #e1e9e2;border-radius:11px;padding:4px}
.today-filter{border:0;border-radius:8px;background:transparent;color:#4b6858;padding:9px 12px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.today-filter.active{background:#fff;color:#1c5c48;box-shadow:0 1px 5px #24483418}
.today-filter:focus-visible,.today-guide .small-button:focus-visible{outline:3px solid #e5a45e;outline-offset:2px}
.today-filter span{margin-left:3px;color:#648371}
.today-search{display:grid;gap:4px;min-width:235px;color:#54715c;font-size:11px;font-weight:750}
.today-search input{width:100%;border:1px solid #d9e4db;background:#fff;border-radius:9px;padding:9px 11px;color:#24453a;font:inherit;font-size:12px}
.today-search input:focus-visible{outline:3px solid #d8e9dd;outline-offset:1px}
.today-assignment-detail{margin:5px 0 0;color:#698375;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.today-unrecorded{margin-bottom:11px}
.settings-section{border-top:1px solid #e5ede6;padding-top:17px;margin-top:16px}
.settings-section:first-of-type{border-top:0;padding-top:0;margin-top:0}
.settings-section h3{font-size:14px;color:#284d3e;margin:0 0 7px}
.settings-section .dialog-context{margin:0 0 11px}
.settings-section .form-note{margin:5px 0 11px}
.cloud-account{display:inline-block;max-width:100%;overflow-wrap:anywhere;background:#edf4ef;border:1px solid #d7e7dc;border-radius:8px;padding:8px 10px;margin:2px 0 5px;color:#285743;font-size:12px;font-weight:750}
.cloud-conflict-actions{margin:10px 0 14px;padding:13px;border:1px solid #e8c9a6;border-radius:10px;background:#fff7ed}
.cloud-conflict-actions p{margin:0 0 10px;color:#765139;font-size:12px;line-height:1.6}
.cloud-conflict-actions button{margin:0 7px 7px 0}
@media(max-width:680px){.today-guide{align-items:flex-start;flex-direction:column}.today-toolbar{align-items:stretch;flex-direction:column}.today-filters{align-self:flex-start}.today-search{min-width:0;width:100%}}
/* Student-first records layout */
#recordsView .records-grid{grid-template-columns:minmax(0,1fr);gap:16px}
#recordsView .record-panel{min-width:0;padding:22px 24px;box-shadow:0 4px 18px #1c3d2a07}
#recordsView .record-panel-heading{margin-bottom:16px}
#recordsView .record-panel-heading h3{font-size:17px;color:#24483a}
.record-panel-intro{font-size:12px;line-height:1.6;color:#708778;margin:-7px 0 16px}
.warning-student-list,.student-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:11px}
.warning-student{min-width:0;background:#fff;border:1px solid #dce8dd;border-left:4px solid #c5d8c8;border-radius:12px;padding:15px 15px 12px;box-shadow:0 2px 8px #1c3d2a08}
.warning-student.has-pending{border-left-color:#d29a68}
.warning-student-top{gap:10px}
.warning-student-top>div{min-width:0}
.warning-student-top strong{display:block;font-size:15px;line-height:1.45;color:#23463b}
.warning-student-top small{margin-top:6px;font-size:11px;color:#6d8376;line-height:1.5}
.warning-student-top .warning-badge{font-size:11px;border-radius:20px;white-space:nowrap}
.warning-handle-button{margin-top:12px;background:#f4faf5;border-color:#cfe0d1}
.warning-history{margin-top:12px;padding:9px 10px;background:#f7faf7;border:1px solid #e9f0e9;border-radius:8px}
.warning-history>summary{list-style:none;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;line-height:1.5}
.warning-history>summary::-webkit-details-marker{display:none}
.warning-history>summary::after{content:"⌄";font-size:17px;line-height:1;transition:transform .15s}
.warning-history[open]>summary::after{transform:rotate(180deg)}
.warning-history ul{margin-top:8px;max-height:260px}
.warning-history li{align-items:start;display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.45}
.warning-history li time{font-variant-numeric:tabular-nums;color:#527663}
.warning-history li.handled-entry{display:flex;align-items:center;justify-content:space-between;background:#eef5ee;border-radius:6px;padding:7px}
.excellent-scroll .record-list{border:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;padding-top:9px}
.excellent-scroll .record-list li{min-width:0;border:1px solid #e4eee5;border-radius:9px;padding:10px 12px;background:#fbfdfb}
.excellent-scroll .record-list li strong{overflow-wrap:anywhere}
.student-record{min-width:0;background:#fff;border:1px solid #dce8dd;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #1c3d2a08}
.student-record[open]{border-color:#a8cbb3}
.student-record>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:78px;padding:15px 16px;cursor:pointer;list-style:none}
.student-record>summary::-webkit-details-marker{display:none}
.student-record>summary:hover{background:#f7faf7}
.student-record>summary:focus-visible{outline:3px solid #e5a45e;outline-offset:-3px}
.student-record-identity{min-width:0}
.student-record-identity strong{display:block;color:#23463b;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.student-record-identity small{display:block;margin-top:5px;color:#7e9185;font-size:11px;font-variant-numeric:tabular-nums}
.student-record-tail{flex:none;display:flex;align-items:center;gap:8px}
.student-record-count{background:#fff0e7;color:#a85f38;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.student-record-chevron{font-size:18px;color:#6b8b77;line-height:1;transition:transform .15s}
.student-record[open] .student-record-chevron{transform:rotate(180deg)}
.student-record-events{list-style:none;margin:0;padding:4px 16px 12px;border-top:1px solid #e8eee8;background:#fbfdfb;max-height:320px;overflow:auto}
.student-record-events li{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:start;gap:10px;padding:11px 0;border-bottom:1px solid #e8eee8}
.student-record-events li:last-child{border-bottom:0}
.student-record-events time{font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;color:#4c7a64;white-space:nowrap}
.student-record-events li span{min-width:0}
.student-record-events strong{display:block;color:#2a4c3e;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.student-record-events small{display:block;margin-top:3px;color:#829488;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:680px){#recordsView .record-panel{padding:17px}.warning-student-list,.student-record-grid{grid-template-columns:1fr}.student-record>summary{padding:13px}.student-record-events{padding-left:13px;padding-right:13px}}
@media(max-width:390px){.student-record-tail{gap:3px}.student-record-count{padding:5px 7px}.student-record-events li,.warning-history li{grid-template-columns:74px minmax(0,1fr);gap:7px}}


.teacher-approval-list { list-style:none; padding:0; display:grid; gap:12px; }
.teacher-approval-list li { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--border, #d8e3dd); padding-top:12px; }
.teacher-approval-list strong { overflow-wrap:anywhere; }
.teacher-approval-list .secondary-button { flex-shrink:0; }
.cloud-login > .secondary-button { width:100%; margin-top:10px; }
