/* Shared rebuilt teacher modules: real records, clear role boundaries and phone-first controls. */
.tf-empty{padding:28px;color:var(--tw-muted,#64748b);line-height:2}.tf-empty h2{color:#173a56;font-size:19px;margin:0 0 7px}.tf-student{display:flex;align-items:center;gap:18px;padding:23px;border-radius:17px;background:linear-gradient(115deg,#16384f,#0d646d);color:#fff;margin-bottom:22px}.tf-student .tw-avatar{background:#ffffff1f;color:#fff;width:58px;height:58px}.tf-student h2{font-size:22px;margin:0 0 5px}.tf-student p{font-size:12px;line-height:1.9;margin:0;color:#d0e5e9}.tf-student>label{margin-inline-start:auto;display:grid;gap:6px;font-size:10px;min-width:220px}.tf-student select{padding:10px 12px;border-radius:9px;border:1px solid #ffffff45;background:#fff;color:#153f57;max-width:310px}.tf-period{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 20px}.tf-period>div{display:flex;border:1px solid #d8e3ed;background:#fff;border-radius:10px;padding:4px;gap:3px}.tf-period button{font:inherit;font-size:12px;padding:8px 17px;border:0;background:transparent;color:#526c83;border-radius:7px}.tf-period button.active{background:#0b7d88;color:#fff}.tf-period>label{font-size:11px;color:#576f85}.tf-period input{border:1px solid #d4e0ea;border-radius:8px;background:white;padding:8px 10px;min-height:40px;color:#22435b}.tf-period small{font-size:10px;color:#6e8294}.tf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.tf-stats>article{border-radius:14px;border:1px solid #dce6ee;background:#fff;padding:20px;display:flex;flex-direction:column;gap:9px;min-width:0}.tf-stats>article:nth-child(2){background:#fff8f6;border-color:#f0ded7}.tf-stats>article:nth-child(3){background:#f0f5ff;border-color:#d8e3f7}.tf-stats>article:nth-child(4){background:#f5f3ff;border-color:#e4dff4}.tf-stats article>span{font-size:11px;color:#627a90}.tf-stats article>b{font-size:29px;color:#173f5a}.tf-stats small{font-size:10px;color:#667f94}.tf-score{display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap}.tf-score b{font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}.tf-score span{font-size:10px}.tf-score.weak{color:#b63845}.tf-score.strong{color:#205db2}.tf-score.steady{color:#247577}.tf-unrecorded{font-size:11px;color:#6f8192}.tf-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.tf-records{padding:3px 20px}.tf-records>article{display:flex;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #e7edf2;align-items:center}.tf-records>article:last-child{border-bottom:0}.tf-records article strong{font-size:13px;color:#25435b}.tf-records article small{display:block;color:#7a8b9a;font-size:10px;margin-top:5px}.tf-records article p{font-size:12px;line-height:1.9;margin:10px 0}.tf-encouragement{margin:9px 20px;padding:12px 14px;border-radius:9px;background:#ecf6f4;color:#287566;font-size:12px}.tf-key{font-size:10px;color:#718499;margin:14px 20px 18px;line-height:1.9}.tf-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.tf-links:empty{display:none}.tf-links{padding:20px;margin-bottom:20px}.tf-links h2{font-size:17px;margin:0 0 12px}.tu-link-request{border-top:1px solid #e2e8f0;padding:15px 0}.tu-link-request p{font-size:12px;color:#5c778b}.tu-link-request button{margin-inline-end:8px}.tu-security-note{font-size:12px;line-height:2;background:#fff6e8;border:1px solid #ecdbba;border-radius:10px;padding:13px 15px;color:#7b623c}.tu-accounts{display:grid;gap:15px}.tu-account{border:1px solid #dce6ef;border-radius:12px;padding:18px;margin:12px 0;background:#f8fbfe}.tu-account h3{font-size:15px;margin:0 0 12px}.tu-account p{font-size:12px;line-height:1.95;color:#526c82}.tu-account dl{display:grid;grid-template-columns:100px 1fr;gap:12px;font-size:12px}.tu-account dd{margin:0;overflow-wrap:anywhere}.tu-account code{direction:ltr;unicode-bidi:isolate;font-size:16px;padding:5px 8px;background:#eaf0f8;border-radius:5px;display:inline-block}.tu-account .tw-button{font-size:11px}.th-class{display:grid;gap:7px;font-size:11px;color:#647c91;min-width:260px}.th-items{display:grid;gap:18px}.th-card{background:#fff;border:1px solid #dbe6ef;border-radius:15px;overflow:hidden;box-shadow:0 4px 16px #133d5b06}.th-card>header{display:flex;justify-content:space-between;gap:16px;align-items:start;padding:22px 24px 5px}.th-card h2{font-size:20px;margin:12px 0 7px;color:#1b405c}.th-card .tw-tag+.tw-tag{margin-inline-start:7px}.th-body{padding:5px 24px 22px;font-size:14px;line-height:2;color:#49667e;overflow-wrap:anywhere}.th-card>footer{padding:13px 24px;background:#f5f9fc;border-top:1px solid #e2eaf2;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#648097}.th-images{display:flex;gap:12px;flex-wrap:wrap;padding:0 24px 22px}.th-images>button{border:1px solid #b9d8e3;background:#edf7fa;padding:13px 18px;border-radius:9px;color:#2e7087;font:inherit;font-size:12px}.th-attachment{max-width:100%;max-height:460px;object-fit:contain;border:1px solid #d8e4ee;border-radius:9px;background:#f5f7fa}.th-upload-status{font-size:12px;color:#087f87;line-height:1.9}.tc-notifications{background:#fff;border:1px solid #d7e5ee;border-radius:14px;padding:20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:23px}.tc-notifications strong{font-size:14px}.tc-notifications p{font-size:11px;color:#628094;margin:5px 0}.tc-notifications>small{flex-basis:100%;font-size:10px;line-height:1.9;color:#758b9d}.tc-notify-options{display:flex;gap:15px;flex-wrap:wrap;margin-inline-start:auto;font-size:11px}.tc-notify-options label{display:flex;align-items:center;gap:5px}.tc-week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tc-day{background:#f0f5f9;border:1px solid #dce6ee;border-radius:13px;padding:12px;min-height:180px}.tc-day.today{background:#e9f5f4;border-color:#88c7c6}.tc-day>header{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#254d68;padding:3px 1px 12px}.tc-day>header>span{font-size:9px;background:#087f87;color:#fff;padding:2px 7px;border-radius:6px}.tc-day>p{font-size:10px;color:#7a8d9e;line-height:1.9;padding:12px 3px}.tc-slot{border:1px solid #d8e3ed;border-inline-start:3px solid #3c9aab;background:#fff;color:#234660;text-align:right;font:inherit;border-radius:9px;padding:12px 10px;width:100%;margin-bottom:11px;display:block;transition:box-shadow .15s,border-color .15s}.tc-slot:nth-of-type(2n){border-inline-start-color:#8b76c1}.tc-slot:hover{border-color:#86b9c6;box-shadow:0 5px 12px #20485b0c}.tc-time{display:block;font-size:10px;color:#21818d;margin-bottom:7px}.tc-slot strong{display:block;font-size:13px}.tc-slot small{display:block;font-size:9px;color:#7e90a0;margin-top:5px}.tt-status{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.tt-status>span{padding:9px 13px;background:#edf4fa;border:1px solid #d7e5ef;border-radius:9px;font-size:11px;color:#4b6c84}.tt-tabs{display:flex;gap:8px;overflow-x:auto;border-bottom:1px solid #d9e4ed;margin-bottom:22px;padding-bottom:12px}.tt-tabs button{border:1px solid #d3e0eb;border-radius:9px;background:#fff;color:#58728a;min-height:43px;padding:10px 18px;white-space:nowrap;font:inherit;font-size:12px}.tt-tabs button[aria-current=page]{background:#133f59;border-color:#133f59;color:#fff}.tt-panel{padding:25px}.tt-panel>h2{font-size:21px;margin:0 0 12px;color:#254a64}.tt-note{font-size:11px;line-height:2;color:#6b8194}.tt-panel .tw-fields{margin:20px 0}.tt-types{border:1px solid #dce7ee;border-radius:9px;padding:13px 15px;display:flex;gap:14px;flex-wrap:wrap}.tt-types legend{padding:0 7px;font-size:12px}.tt-types label{font-size:11px;display:flex;align-items:center;gap:5px}.tt-paper{padding:25px;margin-top:22px}.tt-paper>header{display:flex;justify-content:space-between;align-items:start;gap:15px}.tt-paper h2{font-size:22px;margin:10px 0}.tt-paper header p{font-size:12px;color:#647e92}.tt-paper ol{padding-inline-start:25px}.tt-paper ol>li{padding:17px 9px;border-bottom:1px solid #e1e9f0}.tt-paper h3{font-size:15px;line-height:2;margin:0 0 9px;white-space:pre-wrap}.tt-paper ul{font-size:13px;line-height:2.1;padding-inline-start:22px}.tt-paper small{font-size:10px;color:#8292a1}.tt-answer{background:#f0f7f4;color:#277562;padding:12px;font-size:12px;line-height:2;border-radius:8px;white-space:pre-wrap}.tt-answer-option{font-size:11px;margin:20px 0}.tt-history{display:flex;gap:18px;align-items:center;justify-content:space-between;border-top:1px solid #e0e8ef;padding:17px 0}.tt-history strong{font-size:13px}.tt-history small{display:block;font-size:10px;color:#778c9d;margin-top:5px}.tt-import-input{display:flex;gap:15px;align-items:end;margin:18px 0}.tt-import-input label{flex:1}.tt-ocr-status{font-size:12px;color:#0f7885;line-height:2;margin-bottom:16px}.tt-panel details{border:1px solid #dce7ef;border-radius:10px;padding:15px;margin:20px 0}.tt-panel summary{cursor:pointer;font-size:12px;color:#52748d}.tt-panel textarea{width:100%;padding:12px;border:1px solid #d5e0e9;border-radius:9px;font:inherit;font-size:12px;line-height:1.9;margin:12px 0}.tt-roster-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}.tt-roster{min-width:900px}.tt-roster input:not([type=checkbox]){width:100%;min-width:120px;border:1px solid #d8e3ec;border-radius:7px;background:#fff;padding:8px 10px;font:inherit;font-size:11px}.tt-roster td{padding:10px}.tt-roster input[type=checkbox],.tt-check input{width:18px;height:18px;accent-color:#087f87}.tt-panel>[data-tt-preview]{margin-top:20px}.tt-preview{padding:20px;margin:20px 0;border:1px solid #bedfdc;background:#f0f8f6;border-radius:12px}.tt-preview h3{font-size:16px;margin:0 0 10px}.tt-preview p,.tt-preview li{font-size:11px;line-height:2}.tt-preview ul{max-height:250px;overflow:auto;padding-inline-start:22px}.tt-preview .tw-check{display:flex;margin:10px 0;font-size:11px}.tt-preview button{margin-top:12px}.tt-roster-error{margin-top:15px}
@media(max-width:1100px){.tf-stats{gap:10px}.tf-stats>article{padding:15px}.tc-week{grid-template-columns:repeat(3,minmax(0,1fr))}.tf-columns{grid-template-columns:1fr}.tc-notifications{gap:12px}.tc-notify-options{margin-inline-start:0}}
@media(max-width:700px){.tf-student{padding:18px;gap:12px;flex-wrap:wrap}.tf-student h2{font-size:20px}.tf-student>label{flex-basis:100%;margin:6px 0 0;min-width:0}.tf-student select{max-width:none}.tf-stats{grid-template-columns:1fr 1fr;gap:10px}.tf-stats>article{padding:15px;gap:7px}.tf-stats article>b{font-size:25px}.tf-stats article>span{font-size:10px}.tf-score{gap:5px}.tf-score b{font-size:20px}.tf-period{gap:12px}.tf-period>div{flex:1;justify-content:center}.tf-period>div button{flex:1;padding:8px 13px}.tf-period>small{flex-basis:100%}.tf-records{padding:0 16px}.tf-records>article{gap:10px}.tf-records article strong{font-size:12px}.tf-columns{gap:15px}.tf-key{margin:12px 16px;font-size:9px}.th-card>header{padding:18px 18px 5px}.th-body{padding:5px 18px 18px;font-size:13px}.th-card h2{font-size:18px}.th-card>footer{padding:12px 18px}.th-images{padding:0 18px 18px}.tc-week{grid-template-columns:1fr 1fr;gap:10px}.tc-day{padding:10px;min-height:120px}.tc-slot{padding:11px 9px}.tc-notifications{padding:17px}.tc-notifications>small{font-size:9px}.tc-notify-options{font-size:10px;gap:12px}.tt-tabs button{font-size:11px;padding:9px 12px}.tt-status{gap:7px}.tt-status>span{font-size:10px;padding:8px 10px}.tt-panel,.tt-paper{padding:18px}.tt-panel>h2{font-size:18px}.tt-import-input{align-items:stretch;flex-direction:column}.tt-history{gap:10px;align-items:start}.tt-history strong{font-size:12px}.tt-paper>header{flex-wrap:wrap}.tt-paper h2{font-size:20px}.tt-paper h3{font-size:13px}.tt-paper ol{padding-inline-start:20px}.tt-paper ol>li{padding:14px 4px}.tt-types{gap:11px}.tu-account dl{grid-template-columns:85px 1fr;font-size:11px}.tu-account code{font-size:14px}.tf-shortcuts .tw-button{flex:1;font-size:11px}.th-class{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.tc-slot{transition:none}}
@media print{.tw-print .tt-paper{border:0;padding:0;box-shadow:none}.tw-print .tt-paper>header,.tw-print .tt-answer-option,.tw-print .tt-note,.tw-print button{display:none}.tw-print .tt-paper li{break-inside:avoid}.tw-print .tt-paper .tt-answer{color:#222;background:none;border:1px solid #aaa}}