body:has(.teacher-layout){font-family:Cairo,Tahoma,Arial,sans-serif;background:#eef4f5;color:#103551}body:has(.teacher-layout)>header,body:has(.teacher-layout) main>nav,body:has(.teacher-layout) main>h2{display:none}body:has(.teacher-layout) main{max-width:1180px;margin:14px auto}.teacher-hero{background:linear-gradient(110deg,#0c2439,#104d59,#25615c);border:1px solid #c3a96b;border-radius:18px;padding:24px 20px;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.teacher-brand{display:flex;align-items:center;gap:12px}.teacher-brand img{width:60px;height:60px;object-fit:contain;background:#fff;border-radius:12px}.teacher-brand h1{font-size:27px}.teacher-brand h1 span{color:#e8c86e}.teacher-brand p{margin:6px 0 0;color:#b7dfe6;font-size:14px}.teacher-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.teacher-badges>span{border:1px solid #ffffff35;background:#ffffff12;border-radius:30px;padding:9px}.teacher-badges button{background:white!important;color:#103551;margin:0}.teacher-layout section{padding:20px;border:1px solid #d4e2e7;border-radius:18px;box-shadow:0 8px 24px #17354908}.teacher-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.teacher-steps div{border:1px solid #d4e2e7;border-radius:12px;background:#f6fafb;padding:14px;text-align:center;display:grid;gap:5px}.teacher-steps div:nth-child(-n+2){border-color:#c9a650}.teacher-steps b{color:#078e9b}.teacher-steps span{font-size:13px}.teacher-workspace h2{margin:5px 0;font-size:23px}.teacher-help{font-size:12px;color:#65849b;line-height:1.8}.teacher-week{max-width:320px;margin-right:auto;font-size:14px}.teacher-materials{border:1px solid #c6dfe8;background:#f7fbfc;border-radius:16px;padding:14px}.teacher-materials h3{margin:0;font-size:20px}.reference-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}.reference-cards>button{height:140px;min-width:0;margin:0;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:8px;text-align:right;padding:15px;background:linear-gradient(#fff,#f7fbfc)!important;color:#0b3451;border:1px solid #c7a75d;border-radius:14px;box-shadow:0 4px 12px #1a486614}.reference-cards strong{font-size:15px;line-height:1.5}.reference-cards>button>span{font-size:12px;color:#6686a0}.reference-cards>button>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.reference-cards small{background:#eef4f7;border-radius:20px;padding:5px;font-size:10px;color:#65849b}.reference-cards b{font-size:10px;background:#078e97;color:white;padding:6px;border-radius:20px}.reference-schedule,.reference-plan-table{min-width:760px;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #bad3df;border-radius:14px;overflow:hidden}.reference-schedule th,.reference-plan-table th{background:#0c3546!important;color:white;padding:12px;text-align:center}.reference-schedule td{background:#f7fafb;padding:5px;text-align:center;height:54px;border-color:#d8e5ea}.reference-schedule th:first-child{width:60px}.reference-schedule th small{color:#c7e3ed}.schedule-subject{border-radius:8px;color:#fff;padding:10px 4px;font-size:13px}.schedule-subject small{color:#fff;font-size:10px}.subject-tone-1{background:#ad6b16}.subject-tone-2{background:#91526f}.subject-tone-3{background:#7b7948}.schedule-notice{background:#edf8f5;border:1px solid #bde0dc;color:#04747d;padding:12px;border-radius:10px;font-size:12px}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.editor-heading h2{font-size:22px}.status-pill{border-radius:25px;padding:8px 12px;background:#edf5f7;font-size:12px;white-space:nowrap}.reference-suggestions{border:1px dashed #7dcdd9;border-radius:16px;background:#f3fbfc;padding:18px;margin:15px 0}.reference-suggestions h3{margin:0}.reference-suggestions p{font-size:12px;color:#65849b}.lesson-chip{display:inline-block;border:1px solid #a8d6e0;padding:8px 12px;background:#fff;border-radius:25px;font-size:12px;margin:4px}.reference-plan-table th:nth-child(1){width:8%}.reference-plan-table th:nth-child(2){width:6%}.reference-plan-table th:nth-child(3){width:16%}.reference-plan-table th:nth-child(4){width:34%}.reference-plan-table th:nth-child(5){width:18%}.reference-plan-table th:nth-child(6){width:18%}.reference-plan-table td{padding:8px;background:#eff8fe;border-color:#d4e3ec;font-size:12px;text-align:center}.reference-plan-table tr:nth-child(even) td{background:#e2f1f8}.reference-plan-table tbody th{background:#eff8fe!important;color:#0c3546}.reference-plan-table input,.reference-plan-table textarea{background:#fff;color:#103551;border-color:#c6d8e3;margin:0;padding:12px;min-width:0;border-radius:12px;font-size:13px}.reference-plan-table textarea{min-height:74px;resize:vertical}.reference-plan-table .lesson-picker{width:auto;max-width:100%;margin:5px 0 0;padding:5px;color:#fff;background:#14986a;border:0;font-size:11px}.reference-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.reference-actions button{flex:1;min-width:180px;margin:0;background:#0b6976;border:1px solid #c9a650;font-weight:bold;padding:16px}.reference-actions #smart-assistant{background:linear-gradient(110deg,#0c2439,#105763)}.auto-send{margin:12px 0;font-size:13px}.auto-send input{width:auto;margin:0 8px}.locked-plan{background:#fff9e8;border:1px solid #e7c462;color:#82611b;padding:18px;border-radius:13px;margin:14px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
:root[data-theme=night] body:has(.teacher-layout){background:#10242d;color:#e6f2f6}:root[data-theme=night] .teacher-layout section{background:#19323d;border-color:#355565}:root[data-theme=night] .teacher-materials,:root[data-theme=night] .reference-suggestions{background:#142c36}:root[data-theme=night] .teacher-steps div{background:#213d47}:root[data-theme=night] .reference-cards>button{background:linear-gradient(#234956,#1b3640)!important;color:#e6f2f6}:root[data-theme=night] .reference-plan-table td,:root[data-theme=night] .reference-schedule td{background:#19323d;color:#e6f2f6}:root[data-theme=night] .reference-plan-table input,:root[data-theme=night] .reference-plan-table textarea{background:#112730;color:#edf7fa}
@media(max-width:650px){.teacher-brand h1{font-size:20px}.teacher-hero{padding:18px 12px}.teacher-brand img{width:48px;height:48px}.teacher-steps{grid-template-columns:repeat(2,1fr)}.reference-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-cards>button{height:166px;padding:12px}.reference-cards>button>div{flex-direction:column;align-items:flex-start}.reference-actions button{min-width:100%;}.teacher-layout section{padding:14px}.teacher-week{max-width:none}}@media(max-width:360px){.reference-cards{grid-template-columns:1fr}}

.teacher-week{margin-right:0;margin-left:auto}body:has(.teacher-layout) main{display:flex;flex-direction:column}body:has(.teacher-layout) main>.preferences{order:2;margin-top:20px}.reference-schedule .schedule-subject{border:1px solid #d2b16b}

.autosave-badge{display:flex;align-items:center;padding:12px;color:#087e65;background:#edf9f4;border:1px solid #a8d9c9;border-radius:12px;font-size:13px}#save-status{color:#087e65;font-size:13px}
