/* Gradebook Enterprise — Teacher Mobile Workspace 2026.08.27.015 */

.teacher-mobile-workspace{
  display:grid;gap:18px;max-width:1280px;margin:0 auto
}
.teacher-home-hero,.teacher-timetable-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  padding:26px 28px;border:1px solid var(--gb-brand-border,#cfe0f3);border-radius:22px;
  background:linear-gradient(135deg,var(--gb-surface,#fff),var(--gb-brand-wash,#f5f9ff));
  box-shadow:var(--gb-shadow-sm,0 10px 30px #102a430d)
}
.teacher-home-kicker{
  display:block;margin-bottom:8px;color:var(--gb-brand-strong,var(--school-accent-dark));
  font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase
}
.teacher-home-hero h1,.teacher-timetable-hero h1{margin:0;color:var(--gb-text,#102a43);font-size:clamp(28px,3vw,42px);line-height:1.05}
.teacher-home-hero p,.teacher-timetable-hero p{max-width:760px;margin:10px 0 0;color:var(--gb-muted,#63768a);line-height:1.65}
.teacher-hero-action{white-space:nowrap;font-weight:800;text-decoration:none!important}

.teacher-mobile-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.teacher-mobile-kpis article{
  min-height:120px;padding:18px;border:1px solid var(--gb-line,#dce4ee);border-radius:18px;background:var(--gb-surface,#fff);box-shadow:var(--gb-shadow-sm,0 10px 30px #102a430d)
}
.teacher-mobile-kpis span,.teacher-mobile-kpis small{display:block;color:var(--gb-muted,#63768a)}
.teacher-mobile-kpis strong{display:block;margin:7px 0;color:var(--gb-text,#102a43);font-size:28px}

.teacher-today-list{display:grid;gap:10px}
.teacher-today-list article{
  display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:14px;padding:14px 16px;
  border:1px solid var(--gb-line,#dce4ee);border-radius:15px;background:var(--gb-surface-soft,#f8fafc)
}
.teacher-today-list time{color:var(--gb-brand-strong,var(--school-accent-dark));font-weight:900}
.teacher-today-list article>div{display:grid;gap:3px}.teacher-today-list article span,.teacher-today-list article em{color:var(--gb-muted,#63768a);font-style:normal;font-size:12px}
.teacher-empty{padding:22px;border:1px dashed var(--gb-brand-border,#cfe0f3);border-radius:16px;text-align:center}.teacher-empty p{color:var(--gb-muted,#63768a)}

.teacher-mobile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.teacher-mobile-actions>a{
  display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--gb-line,#dce4ee);border-radius:17px;
  background:var(--gb-surface,#fff);text-decoration:none!important;color:var(--gb-text,#102a43)!important
}
.teacher-mobile-actions>a>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--gb-brand-soft,#eef4ff);color:var(--gb-brand-strong,var(--school-accent-dark));font-weight:900}
.teacher-mobile-actions>a div{display:grid;gap:2px}.teacher-mobile-actions small{color:var(--gb-muted,#63768a)}

.teacher-timetable-hero{align-items:center}
.teacher-notification-state{
  min-width:300px;max-width:390px;display:grid;gap:6px;padding:16px;border:1px solid var(--gb-line,#dce4ee);
  border-radius:16px;background:var(--gb-surface,#fff)
}
.teacher-notification-state.active{border-color:var(--gb-brand-border,#cfe0f3);background:var(--gb-brand-wash,#f5f9ff)}
.teacher-notification-state span{color:var(--gb-muted,#63768a);font-size:12px;line-height:1.5}
.teacher-notification-state>div{display:flex;gap:8px;flex-wrap:wrap}.teacher-notification-state form{margin:0}

.teacher-week-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.teacher-day-card{border:1px solid var(--gb-line,#dce4ee);border-radius:18px;background:var(--gb-surface,#fff);overflow:hidden;box-shadow:var(--gb-shadow-sm,0 8px 24px #102a430a)}
.teacher-day-card.today{border-color:var(--gb-brand-border,#cfe0f3);box-shadow:0 0 0 2px color-mix(in srgb,var(--school-accent) 8%,transparent)}
.teacher-day-card>header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 14px;border-bottom:1px solid var(--gb-line,#dce4ee);background:var(--gb-surface-soft,#f8fafc)}
.teacher-day-card>header span{display:block;color:var(--gb-brand-strong,var(--school-accent-dark));font-size:9px;font-weight:900;letter-spacing:.1em}.teacher-day-card>header h2{margin:2px 0 0;font-size:15px}.teacher-day-card>header>b{font-size:10px;color:var(--gb-muted,#63768a)}
.teacher-day-empty{margin:0;padding:18px 14px;color:var(--gb-muted,#63768a);font-size:12px}
.teacher-day-lessons{display:grid}
.teacher-day-lessons>section{position:relative;display:grid;grid-template-columns:52px 1fr 28px;gap:9px;padding:13px 10px;border-bottom:1px solid var(--gb-line,#dce4ee)}
.teacher-day-lessons>section:last-child{border-bottom:0}.teacher-day-lessons time{color:var(--gb-brand-strong,var(--school-accent-dark));font-size:13px;font-weight:900}.teacher-day-lessons time small{display:block;font-size:8px}
.teacher-day-lessons section>div{display:grid;gap:2px;min-width:0}.teacher-day-lessons section>div b,.teacher-day-lessons section>div span,.teacher-day-lessons section>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teacher-day-lessons section>div span,.teacher-day-lessons section>div small{font-size:10px;color:var(--gb-muted,#63768a)}
.teacher-remove-lesson{width:28px;height:28px;min-height:28px!important;padding:0!important;border-radius:50%!important;background:transparent!important;color:#b42318!important;font-size:18px!important}
.teacher-timetable-editor{max-width:850px}.teacher-day-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:4px 0 18px}.teacher-day-picker label{cursor:pointer}.teacher-day-picker input{position:absolute;opacity:0;pointer-events:none}.teacher-day-picker span{display:grid;place-items:center;min-height:44px;border:1px solid var(--gb-line,#dce4ee);border-radius:12px;background:var(--gb-surface,#fff);font-weight:800}.teacher-day-picker input:checked+span{background:var(--school-accent);border-color:var(--school-accent);color:#fff}
.teacher-custom-time[hidden]{display:none!important}.teacher-push-cron code{display:block;overflow:auto;margin:12px 0;padding:12px;border-radius:10px;background:#0b1726;color:#d9e7f7;font-size:12px;white-space:nowrap}

/* Phone app — deliberately simpler and denser than desktop pages. */
@media(max-width:800px){
  body.enterprise-shell-v3 .teacher-mobile-workspace{gap:14px}
  .teacher-home-hero,.teacher-timetable-hero{display:grid;gap:16px;padding:18px;border-radius:18px}
  .teacher-home-hero h1,.teacher-timetable-hero h1{font-size:30px}
  .teacher-home-hero p,.teacher-timetable-hero p{font-size:14px;line-height:1.55}
  .teacher-hero-action{justify-self:start}
  .teacher-mobile-kpis{grid-template-columns:1fr 1fr;gap:10px}
  .teacher-mobile-kpis article{min-height:106px;padding:15px;border-radius:16px}
  .teacher-mobile-kpis strong{font-size:25px}
  .teacher-mobile-actions{grid-template-columns:1fr 1fr}
  .teacher-mobile-actions>a{min-height:78px;padding:13px}
  .teacher-notification-state{min-width:0;max-width:none;width:100%}
  .teacher-week-board{grid-template-columns:1fr;gap:10px}
  .teacher-day-card>header{padding:12px 14px}
  .teacher-day-lessons>section{grid-template-columns:58px 1fr 30px;padding:13px}
  .teacher-timetable-editor{max-width:none}
  .teacher-day-picker{gap:6px}.teacher-day-picker span{font-size:12px;padding-inline:4px}
  .teacher-timetable-editor .form-grid{grid-template-columns:1fr}
}

/* The installed phone app keeps the current page clear of the native-style
   bottom bar and uses an opaque navigation surface. */
html.gradebook-installed-app.gradebook-phone-app .teacher-mobile-workspace{padding-bottom:8px}
html[data-theme="dark"] .teacher-home-hero,
html[data-theme="dark"] .teacher-timetable-hero,
html[data-theme="dark"] .teacher-mobile-kpis article,
html[data-theme="dark"] .teacher-mobile-actions>a,
html[data-theme="dark"] .teacher-day-card,
html[data-theme="dark"] .teacher-notification-state{background:var(--gb-surface,#111d2c);border-color:var(--gb-line,#30455e)}

.teacher-reminder-inline{margin-top:6px}
.teacher-reminder-inline label{display:flex;align-items:center;gap:6px;color:var(--gb-muted,#63768a);font-size:9px;font-weight:800}
.teacher-reminder-inline select{min-height:30px!important;width:auto!important;padding:4px 24px 4px 8px!important;border-radius:9px!important;font-size:11px!important}
.teacher-school-set{color:var(--gb-brand-strong,var(--school-accent-dark))!important;font-weight:800}
.teacher-locked-lesson{display:grid;place-items:center;width:28px;height:28px;color:var(--gb-muted,#63768a);font-size:12px}


/* Release 2026.08.27.015 — phone-first timetable refinement */
@media(max-width:800px){
  .teacher-timetable-hero{padding:16px!important;border-radius:18px!important}
  .teacher-timetable-hero h1{font-size:29px!important;line-height:1.08!important}
  .teacher-timetable-hero p{font-size:14px!important}
  .teacher-notification-state{padding:13px!important;border-radius:14px!important}
  .teacher-notification-state>div{display:grid!important;grid-template-columns:1fr!important}
  .teacher-notification-state button{width:100%}
  .teacher-day-card{border-radius:16px!important}
  .teacher-day-card>header{position:sticky;top:0;background:var(--gb-surface-soft,#f8fafc);z-index:1}
  .teacher-day-lessons>section{grid-template-columns:60px minmax(0,1fr) 32px!important;gap:8px!important}
  .teacher-reminder-inline label{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;font-size:11px!important}
  .teacher-reminder-inline select{width:100%!important;min-height:40px!important;font-size:14px!important}
  .teacher-timetable-editor{padding:15px!important}
  .teacher-day-picker{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
  .teacher-day-picker span{min-height:46px!important;font-size:11px!important}
}


/* Release 2026.08.27.030 — teacher portal mobile UI quality pass */
@media(max-width:800px){
  .teacher-mobile-workspace{width:100%!important;max-width:none!important;margin:0!important;gap:12px!important}
  .teacher-home-hero,.teacher-timetable-hero{box-shadow:none!important;border-color:var(--gb-line,#dce4ee)!important;background:var(--gb-surface,#fff)!important}
  .teacher-home-hero h1,.teacher-timetable-hero h1{font-size:clamp(27px,8vw,32px)!important;letter-spacing:-.035em!important}
  .teacher-home-hero p,.teacher-timetable-hero p{max-width:none!important;color:var(--gb-muted,#64748b)!important}
  .teacher-mobile-kpis{gap:9px!important}.teacher-mobile-kpis article{box-shadow:none!important;border-radius:17px!important}
  .teacher-mobile-actions{gap:9px!important}.teacher-mobile-actions>a{border-radius:17px!important;box-shadow:none!important}
  .teacher-week-board{gap:12px!important}.teacher-day-card{box-shadow:none!important;border-radius:18px!important}
  .teacher-day-card>header{position:relative!important;top:auto!important}
  .teacher-day-lessons>section{align-items:flex-start!important}
  .teacher-reminder-inline{margin-top:8px!important}.teacher-reminder-inline label{gap:7px!important}
  .teacher-notification-state{box-shadow:none!important}
}

/* ========================================================================== 
   Step 5.245 — Professional My Timetable UI/UX
   Release 2026.09.23.291
   ========================================================================== */
.teacher-timetable-pro{max-width:1360px!important;gap:16px!important}
.teacher-timetable-hero-pro{
  align-items:stretch!important;
  padding:24px 26px!important;
  border-radius:22px!important;
  border:1px solid #d9e5f2!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdff 58%,#f2f7ff 100%)!important;
  box-shadow:0 14px 36px rgba(15,42,70,.055)!important;
}
.teacher-timetable-intro{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1}
.teacher-timetable-hero-pro h1{font-size:clamp(30px,3vw,44px)!important;letter-spacing:-.035em!important}
.teacher-timetable-hero-pro p{max-width:760px!important;margin-top:8px!important;font-size:14px!important;line-height:1.55!important}
.teacher-schedule-facts{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin-top:18px}
.teacher-schedule-facts>span{display:grid;gap:2px;min-width:112px;padding:9px 12px;border:1px solid #dce7f3;border-radius:12px;background:rgba(255,255,255,.78)}
.teacher-schedule-facts>span:first-child{min-width:172px}
.teacher-schedule-facts b{font-size:12px;color:#102a43;line-height:1.2}
.teacher-schedule-facts small{font-size:9px;color:#718198;font-weight:700;letter-spacing:.01em}

.teacher-timetable-pro .teacher-notification-state{
  min-width:290px!important;max-width:330px!important;align-self:center;
  grid-template-columns:38px 1fr!important;gap:8px 10px!important;padding:15px!important;
  border-radius:16px!important;background:#fff!important;border-color:#dbe5ef!important;
  box-shadow:0 8px 20px rgba(15,42,70,.045)!important
}
.teacher-timetable-pro .teacher-notification-state.active{background:#f5fbf8!important;border-color:#bfe7d4!important}
.teacher-notification-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#edf5ff;color:#1769e0;font-size:13px}
.teacher-notification-state.active .teacher-notification-icon{background:#ddf6e9;color:#087a4d}
.teacher-notification-copy{display:grid;gap:3px;min-width:0}
.teacher-notification-copy>b{font-size:12px;color:#102a43}
.teacher-notification-copy>span{font-size:10px!important;line-height:1.45!important}
.teacher-notification-actions{grid-column:1/-1!important;display:flex!important;gap:7px!important;margin-top:2px}
.teacher-notification-actions button{min-height:36px!important;padding:8px 12px!important;border-radius:10px!important;font-size:10px!important;font-weight:800!important}

.teacher-week-section{padding:2px 0 0}
.teacher-week-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 2px 10px}
.teacher-week-heading>div{display:grid;gap:2px}
.teacher-week-kicker{font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#1769e0}
.teacher-week-heading h2{margin:0;font-size:20px;letter-spacing:-.02em;color:#102a43}
.teacher-week-heading p{margin:2px 0 0;font-size:11px;color:#6a7d92}
.teacher-week-add{min-height:38px!important;padding:8px 14px!important;border-radius:11px!important;font-size:11px!important;white-space:nowrap}

.teacher-timetable-pro .teacher-week-board{
  grid-template-columns:repeat(5,minmax(190px,1fr))!important;
  gap:10px!important;overflow-x:auto!important;overscroll-behavior-inline:contain;padding:2px 1px 7px;
  scrollbar-width:thin
}
.teacher-timetable-pro .teacher-day-card{
  min-height:245px;border-radius:16px!important;border-color:#dce5ef!important;box-shadow:none!important;
  background:#fff!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease
}
.teacher-timetable-pro .teacher-day-card:hover{border-color:#c8d8ea!important;box-shadow:0 10px 24px rgba(15,42,70,.055)!important;transform:translateY(-1px)}
.teacher-timetable-pro .teacher-day-card.today{border-color:#8bb7fb!important;box-shadow:0 0 0 2px rgba(37,99,235,.08)!important}
.teacher-timetable-pro .teacher-day-card>header{padding:11px 12px!important;background:#fbfcfe!important;border-bottom-color:#e5ebf2!important}
.teacher-day-title{display:grid;gap:1px;min-width:0}
.teacher-day-title span{font-size:8px!important;color:#2870df!important;letter-spacing:.13em!important}
.teacher-day-title h3{margin:0;font-size:13px;line-height:1.2;color:#102a43}
.teacher-day-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.teacher-day-header-actions>em{padding:3px 6px;border-radius:999px;background:#eaf3ff;color:#1769e0;font-size:7px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.teacher-day-header-actions>b{font-size:8px!important;color:#718198!important;white-space:nowrap}
.teacher-day-add-button{width:27px!important;height:27px!important;min-height:27px!important;padding:0!important;border-radius:9px!important;border:1px solid #dbe6f2!important;background:#fff!important;color:#1769e0!important;font-size:15px!important;line-height:1!important;box-shadow:none!important}
.teacher-day-add-button:hover{background:#edf5ff!important;border-color:#b9d3f5!important}

.teacher-timetable-pro .teacher-day-empty{min-height:185px;margin:0!important;padding:24px 14px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;color:#7c8da2!important}
.teacher-timetable-pro .teacher-day-empty>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f3f6fa;color:#9aa9bb;font-size:15px;margin-bottom:2px}
.teacher-timetable-pro .teacher-day-empty>b{font-size:10px;color:#5d7087}
.teacher-timetable-pro .teacher-day-empty>small{max-width:150px;font-size:9px;line-height:1.4;color:#8a99ab}
.teacher-timetable-pro .teacher-day-empty>button{min-height:31px!important;margin-top:5px;padding:6px 9px!important;border-radius:9px!important;font-size:9px!important}

.teacher-timetable-pro .teacher-day-lessons{display:grid!important}
.teacher-timetable-pro .teacher-day-lessons>section{
  grid-template-columns:46px minmax(0,1fr) 26px!important;gap:8px!important;padding:12px 10px!important;
  align-items:start!important;border-bottom-color:#edf1f5!important;background:#fff
}
.teacher-lesson-time{display:grid;align-content:start;justify-items:start;gap:1px;padding-top:1px;color:#1769e0!important;font-size:11px!important;line-height:1.05}
.teacher-lesson-time small{font-size:7px!important;letter-spacing:.06em;color:#6f8197!important}
.teacher-lesson-main{display:grid!important;gap:4px!important;min-width:0}
.teacher-lesson-heading{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.teacher-lesson-heading>b{font-size:11px!important;color:#102a43!important;white-space:normal!important;line-height:1.25}
.teacher-class-chip{display:inline-flex!important;width:max-content;max-width:100%;padding:2px 6px;border-radius:999px;background:#eef4ff;color:#225fb8!important;font-size:7px!important;font-weight:900!important;line-height:1.45!important}
.teacher-lesson-meta{font-size:8px!important;line-height:1.35!important;color:#73859a!important;white-space:normal!important}
.teacher-timetable-pro .teacher-school-set{display:inline-flex!important;width:max-content;padding:2px 6px;border-radius:999px;background:#f2f5f8;font-size:7px!important}
.teacher-timetable-pro .teacher-reminder-inline{margin-top:4px!important}
.teacher-timetable-pro .teacher-reminder-inline label{display:flex!important;align-items:center!important;gap:4px!important;font-size:8px!important;white-space:nowrap}
.teacher-reminder-label{color:#78899d;font-weight:800}
.teacher-timetable-pro .teacher-reminder-inline select{min-height:27px!important;width:auto!important;max-width:82px;padding:3px 21px 3px 7px!important;border-radius:8px!important;font-size:9px!important;background-color:#fbfcfe!important}
.teacher-timetable-pro .teacher-remove-lesson{width:25px!important;height:25px!important;min-height:25px!important;border:1px solid transparent!important;font-size:15px!important;color:#c84b4b!important}
.teacher-timetable-pro .teacher-remove-lesson:hover{background:#fff1f1!important;border-color:#ffd3d3!important}
.teacher-timetable-pro .teacher-locked-lesson{width:25px;height:25px;font-size:10px}

.teacher-timetable-editor-pro{max-width:none!important;padding:0!important;overflow:hidden;border-radius:18px!important;border-color:#dce5ef!important;box-shadow:none!important}
.teacher-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;border-bottom:1px solid #e4ebf2;background:#fbfcfe}
.teacher-editor-heading h2{margin:2px 0 3px;font-size:19px;letter-spacing:-.02em;color:#102a43}
.teacher-editor-heading .muted{margin:0;max-width:720px;font-size:11px;line-height:1.5}
.teacher-sync-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:7px 10px;border:1px solid #d4e8dc;border-radius:999px;background:#f3fbf6;color:#16734d;font-size:9px;font-weight:900}
.teacher-sync-badge i{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#dff5e7;font-style:normal}
.teacher-schedule-form{display:grid;grid-template-columns:1fr 1.2fr 1.7fr;gap:0;padding:0!important}
.teacher-form-section{padding:17px 18px;border-right:1px solid #e7edf3;min-width:0}
.teacher-form-section:last-of-type{border-right:0}
.teacher-form-section-head{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px}
.teacher-form-section-head>span{flex:0 0 24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#edf4ff;color:#1769e0;font-size:9px;font-weight:900}
.teacher-form-section-head>div{display:grid;gap:1px;min-width:0}
.teacher-form-section-head b{font-size:11px;color:#102a43}
.teacher-form-section-head small{font-size:8px;color:#8090a3;line-height:1.35}
.teacher-timetable-pro .teacher-day-picker{grid-template-columns:repeat(5,minmax(38px,1fr))!important;gap:5px!important;margin:0!important}
.teacher-timetable-pro .teacher-day-picker span{min-height:39px!important;padding:0 5px!important;border-radius:9px!important;font-size:9px!important;font-weight:900!important}
.teacher-timetable-pro .teacher-day-picker input:checked+span{box-shadow:0 5px 12px rgba(37,99,235,.16)}
.teacher-assignment-grid{grid-template-columns:1fr 1fr!important;gap:9px!important;margin:0!important}
.teacher-time-grid{display:grid;grid-template-columns:1.35fr .9fr .82fr;gap:9px;align-items:start}
.teacher-schedule-form label{font-size:9px!important;font-weight:800!important;color:#4e6178!important;gap:5px!important}
.teacher-schedule-form select,.teacher-schedule-form input{min-height:40px!important;border-radius:10px!important;font-size:10px!important;padding-top:7px!important;padding-bottom:7px!important}
.teacher-period-field>small{font-size:8px!important;line-height:1.35!important;color:#8190a2!important;margin-top:1px}
.teacher-timetable-pro .teacher-custom-time{grid-template-columns:1fr 1fr!important;gap:9px!important;margin:9px 0 0!important}
.teacher-form-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid #e5ebf2;background:#fbfcfe}
.teacher-form-actions p{display:flex;align-items:center;gap:6px;margin:0;font-size:9px;color:#718198}
.teacher-form-actions p>span{color:#1769e0;font-weight:900}
.teacher-form-actions button{min-height:41px!important;padding:9px 15px!important;border-radius:11px!important;font-size:10px!important;white-space:nowrap;box-shadow:0 6px 14px rgba(37,99,235,.14)!important}
.teacher-form-actions button[disabled]{opacity:.72;cursor:wait}

html[data-theme="dark"] .teacher-timetable-hero-pro{background:linear-gradient(135deg,#111c2b,#122032)!important;border-color:#2b3f56!important;box-shadow:none!important}
html[data-theme="dark"] .teacher-schedule-facts>span,html[data-theme="dark"] .teacher-timetable-pro .teacher-notification-state,html[data-theme="dark"] .teacher-timetable-pro .teacher-day-card,html[data-theme="dark"] .teacher-timetable-editor-pro{background:#111d2c!important;border-color:#2d4056!important}
html[data-theme="dark"] .teacher-schedule-facts b,html[data-theme="dark"] .teacher-notification-copy>b,html[data-theme="dark"] .teacher-week-heading h2,html[data-theme="dark"] .teacher-day-title h3,html[data-theme="dark"] .teacher-lesson-heading>b,html[data-theme="dark"] .teacher-editor-heading h2,html[data-theme="dark"] .teacher-form-section-head b{color:#edf4fb!important}
html[data-theme="dark"] .teacher-timetable-pro .teacher-day-card>header,html[data-theme="dark"] .teacher-editor-heading,html[data-theme="dark"] .teacher-form-actions{background:#142235!important;border-color:#2b3d52!important}
html[data-theme="dark"] .teacher-timetable-pro .teacher-day-lessons>section{background:#111d2c!important;border-color:#293a4f!important}
html[data-theme="dark"] .teacher-form-section{border-color:#293a4f!important}
html[data-theme="dark"] .teacher-class-chip{background:#17345c!important;color:#a9cffd!important}
html[data-theme="dark"] .teacher-timetable-pro .teacher-reminder-inline select{background:#152235!important;color:#e8f1fa!important;border-color:#344960!important}

@media(max-width:1180px){
  .teacher-schedule-form{grid-template-columns:1fr 1fr!important}
  .teacher-form-section:nth-of-type(3){grid-column:1/-1;border-top:1px solid #e7edf3!important;border-right:0!important}
  .teacher-time-grid{grid-template-columns:1.2fr 1fr 1fr}
}

@media(max-width:900px){
  .teacher-timetable-hero-pro{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;padding:20px!important}
  .teacher-timetable-pro .teacher-notification-state{min-width:0!important;max-width:none!important;width:100%!important;grid-template-columns:36px 1fr auto!important;align-items:center!important}
  .teacher-notification-actions{grid-column:auto!important;justify-self:end}
  .teacher-week-heading{align-items:center}
  .teacher-timetable-pro .teacher-week-board{grid-template-columns:repeat(5,minmax(220px,1fr))!important}
  .teacher-schedule-form{grid-template-columns:1fr!important}
  .teacher-form-section{border-right:0!important;border-top:1px solid #e7edf3!important}
  .teacher-form-section:first-of-type{border-top:0!important}
  .teacher-form-section:nth-of-type(3){grid-column:auto!important}
}

@media(max-width:700px){
  .teacher-timetable-pro{gap:12px!important}
  .teacher-timetable-hero-pro{padding:16px!important;border-radius:18px!important}
  .teacher-timetable-hero-pro h1{font-size:29px!important}
  .teacher-timetable-hero-pro p{font-size:13px!important}
  .teacher-schedule-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}
  .teacher-schedule-facts>span,.teacher-schedule-facts>span:first-child{min-width:0;padding:8px 10px}
  .teacher-timetable-pro .teacher-notification-state{grid-template-columns:34px 1fr!important;gap:8px!important;padding:12px!important}
  .teacher-notification-actions{grid-column:1/-1!important;justify-self:stretch;display:grid!important;grid-template-columns:1fr!important}
  .teacher-notification-actions button{width:100%!important}
  .teacher-week-heading{align-items:flex-end;gap:10px;margin-bottom:8px}
  .teacher-week-heading p{display:none}
  .teacher-week-heading h2{font-size:18px}
  .teacher-week-add{padding:7px 10px!important;font-size:10px!important}
  .teacher-timetable-pro .teacher-week-board{display:flex!important;overflow-x:auto!important;gap:9px!important;scroll-snap-type:x mandatory;padding:2px 1px 9px}
  .teacher-timetable-pro .teacher-day-card{flex:0 0 min(84vw,330px);min-height:230px;scroll-snap-align:start}
  .teacher-timetable-pro .teacher-day-card.today{scroll-snap-stop:always}
  .teacher-editor-heading{padding:15px;display:grid;gap:10px}
  .teacher-sync-badge{justify-self:start}
  .teacher-form-section{padding:15px}
  .teacher-assignment-grid,.teacher-time-grid,.teacher-timetable-pro .teacher-custom-time{grid-template-columns:1fr!important}
  .teacher-form-actions{display:grid;grid-template-columns:1fr;gap:10px;padding:13px 15px}
  .teacher-form-actions button{width:100%!important}
  .teacher-form-actions p{order:2;justify-content:center;text-align:center;font-size:8px}
}

@media(max-width:390px){
  .teacher-schedule-facts{grid-template-columns:1fr 1fr}
  .teacher-timetable-pro .teacher-day-picker{gap:4px!important}.teacher-timetable-pro .teacher-day-picker span{min-height:38px!important;font-size:8px!important}
  .teacher-timetable-pro .teacher-day-card{flex-basis:88vw}
}

/* ========================================================================== 
   Step 5.247 — Professional Teacher Dashboard
   Release 2026.09.23.293
   ========================================================================== */
.teacher-dashboard-pro{max-width:1260px!important;gap:14px!important}
.teacher-dashboard-pro .panel{box-shadow:none!important}
.teacher-dashboard-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,370px);align-items:center;gap:28px;
  padding:25px 28px;border:1px solid #d7e3f0;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fbfdff 64%,#f2f7ff 100%);
  box-shadow:0 14px 36px rgba(15,42,70,.05)
}
.teacher-dashboard-hero-copy{min-width:0}
.teacher-dashboard-hero-copy h1{margin:0;color:#0f1f3a;font-size:clamp(30px,3.2vw,44px);line-height:1.02;letter-spacing:-.04em}
.teacher-dashboard-hero-copy p{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 0;color:#687b92;font-size:13px;line-height:1.55}
.teacher-dashboard-hero-copy p strong{color:#173b67;font-size:12px;padding:5px 9px;border-radius:999px;background:#edf4ff;border:1px solid #d5e4fb}
.teacher-dashboard-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:16px 17px;border:1px solid #d7e3f0;border-radius:16px;background:#fff}
.teacher-dashboard-next>span{grid-column:1/-1;color:#1c69dd;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.teacher-dashboard-next>strong{color:#102a43;font-size:14px;line-height:1.25}
.teacher-dashboard-next>small{grid-column:1;color:#6e8096;font-size:10px;line-height:1.45}
.teacher-dashboard-next>a{grid-column:2;grid-row:2/4;align-self:center;min-height:39px!important;padding:9px 13px!important;border-radius:11px!important;font-size:10px!important;white-space:nowrap}

.teacher-dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.7fr);gap:12px;align-items:stretch}
.teacher-dashboard-today{padding:0!important;border-radius:18px!important;overflow:hidden;border-color:#dce6f1!important;background:#fff!important}
.teacher-dashboard-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:17px 18px 13px}
.teacher-dashboard-section-head.compact{padding:0 0 11px}
.teacher-dashboard-section-head>div{display:grid;gap:2px;min-width:0}
.teacher-dashboard-eyebrow{color:#1c69dd;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.teacher-dashboard-section-head h2{margin:0;color:#102a43;font-size:18px;line-height:1.2;letter-spacing:-.02em}
.teacher-dashboard-section-head p{margin:2px 0 0;color:#718298;font-size:10px;line-height:1.5}
.teacher-dashboard-section-head>a{color:#1769e8;text-decoration:none;font-size:10px;font-weight:800;white-space:nowrap}
.teacher-dashboard-empty-day{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 18px 18px;padding:14px;border:1px dashed #cbd9e8;border-radius:14px;background:#fbfdff}
.teacher-dashboard-empty-day>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#edf4ff;color:#1769e8;font-weight:900}
.teacher-dashboard-empty-day b{display:block;color:#183651;font-size:12px}
.teacher-dashboard-empty-day p{margin:3px 0 0;color:#74869a;font-size:10px;line-height:1.45}
.teacher-dashboard-empty-day>a{min-height:34px!important;padding:7px 10px!important;border-radius:10px!important;font-size:9px!important}
.teacher-dashboard-lesson-list{display:grid;padding:0 18px 16px}
.teacher-dashboard-lesson-list article{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 2px;border-top:1px solid #edf1f5}
.teacher-dashboard-lesson-list article:first-child{border-top:0}
.teacher-dashboard-lesson-list time{display:inline-flex;align-items:center;justify-content:center;min-height:31px;border-radius:9px;background:#edf4ff;color:#1769e8;font-size:10px;font-weight:900}
.teacher-dashboard-lesson-list b,.teacher-dashboard-lesson-list span{display:block}
.teacher-dashboard-lesson-list b{color:#173650;font-size:11px}.teacher-dashboard-lesson-list span,.teacher-dashboard-lesson-list small{color:#7a8a9d;font-size:9px}.teacher-dashboard-lesson-list small{white-space:nowrap}

.teacher-dashboard-glance{padding:17px 18px;border:1px solid #dce6f1;border-radius:18px;background:#fff}
.teacher-dashboard-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.teacher-dashboard-metrics article{display:grid;gap:2px;padding:12px;border:1px solid #e4ebf3;border-radius:13px;background:#fafcff}
.teacher-dashboard-metrics strong{color:#102a43;font-size:21px;line-height:1}.teacher-dashboard-metrics span{color:#74869a;font-size:9px;font-weight:700}
.teacher-dashboard-glance-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #edf1f5;color:#61758d;font-size:9px;font-weight:700}

.teacher-dashboard-flow,.teacher-dashboard-responsibilities{padding:16px 18px 18px;border:1px solid #dce6f1;border-radius:18px;background:#fff}
.teacher-dashboard-flow>.teacher-dashboard-section-head,.teacher-dashboard-responsibilities>.teacher-dashboard-section-head{padding:0 0 12px}
.teacher-dashboard-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.teacher-dashboard-flow-grid>a{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:84px;padding:13px;border:1px solid #dce6f1;border-radius:14px;background:#fff;text-decoration:none!important;color:#102a43!important;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.teacher-dashboard-flow-grid>a:hover{background:#f8fbff;border-color:#bad1f2;transform:translateY(-1px)}
.teacher-flow-step{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#edf4ff;color:#1769e8;font-weight:900;font-size:12px}
.teacher-dashboard-flow-grid>a>div{display:grid;gap:1px;min-width:0}.teacher-dashboard-flow-grid small{color:#7c8da1;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.teacher-dashboard-flow-grid b{font-size:11px}.teacher-dashboard-flow-grid p{margin:2px 0 0;color:#6d8096;font-size:9px;line-height:1.35}.teacher-dashboard-flow-grid i{font-style:normal;color:#8aa0ba;font-weight:800}

.teacher-dashboard-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.teacher-dashboard-task-grid>a{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:72px;padding:12px;border:1px solid #dce6f1;border-radius:14px;background:#fff;text-decoration:none!important;color:#102a43!important}
.teacher-dashboard-task-grid>a:hover{background:#f8fbff;border-color:#bad1f2}
.teacher-dashboard-task-grid>a>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f2f6fb;color:#245fae;font-size:9px;font-weight:900;letter-spacing:.02em}
.teacher-dashboard-task-grid>a>div{display:grid;gap:2px;min-width:0}.teacher-dashboard-task-grid b{font-size:10px}.teacher-dashboard-task-grid small{color:#718398;font-size:8px;line-height:1.35}.teacher-dashboard-task-grid i{font-style:normal;color:#8ca1b8;font-weight:800}.teacher-dashboard-task-grid em{position:absolute;top:8px;right:8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e64646;color:#fff;font-size:9px;font-style:normal;font-weight:900}
.teacher-dashboard-report-task{border-color:#cbdcf5!important;background:#fbfdff!important}

html[data-theme="dark"] .teacher-dashboard-hero,html[data-theme="dark"] .teacher-dashboard-next,html[data-theme="dark"] .teacher-dashboard-today,html[data-theme="dark"] .teacher-dashboard-glance,html[data-theme="dark"] .teacher-dashboard-flow,html[data-theme="dark"] .teacher-dashboard-responsibilities,html[data-theme="dark"] .teacher-dashboard-flow-grid>a,html[data-theme="dark"] .teacher-dashboard-task-grid>a{background:#0f1e31!important;border-color:#293d55!important}
html[data-theme="dark"] .teacher-dashboard-hero-copy h1,html[data-theme="dark"] .teacher-dashboard-next>strong,html[data-theme="dark"] .teacher-dashboard-section-head h2,html[data-theme="dark"] .teacher-dashboard-metrics strong,html[data-theme="dark"] .teacher-dashboard-flow-grid>a,html[data-theme="dark"] .teacher-dashboard-task-grid>a{color:#f2f7ff!important}
html[data-theme="dark"] .teacher-dashboard-hero-copy p,html[data-theme="dark"] .teacher-dashboard-empty-day p,html[data-theme="dark"] .teacher-dashboard-section-head p,html[data-theme="dark"] .teacher-dashboard-glance-foot,html[data-theme="dark"] .teacher-dashboard-flow-grid p,html[data-theme="dark"] .teacher-dashboard-task-grid small{color:#9eacc0!important}
html[data-theme="dark"] .teacher-dashboard-empty-day,html[data-theme="dark"] .teacher-dashboard-metrics article{background:#0c1929!important;border-color:#2a4058!important}

@media(max-width:1050px){
  .teacher-dashboard-hero{grid-template-columns:1fr}.teacher-dashboard-next{max-width:none}
  .teacher-dashboard-main-grid{grid-template-columns:1fr}.teacher-dashboard-task-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
  .teacher-dashboard-pro{gap:11px!important}
  .teacher-dashboard-hero{padding:18px;border-radius:18px;gap:15px}
  .teacher-dashboard-hero-copy h1{font-size:32px}.teacher-dashboard-hero-copy p{font-size:12px}
  .teacher-dashboard-next{grid-template-columns:1fr;padding:13px;border-radius:14px}.teacher-dashboard-next>a{grid-column:1;grid-row:auto;justify-self:start;margin-top:4px}
  .teacher-dashboard-section-head{padding:14px 14px 10px}.teacher-dashboard-section-head h2{font-size:17px}
  .teacher-dashboard-empty-day{grid-template-columns:38px 1fr;margin:0 14px 14px;padding:12px}.teacher-dashboard-empty-day>a{grid-column:1/-1;width:100%;justify-content:center}
  .teacher-dashboard-lesson-list{padding:0 14px 13px}.teacher-dashboard-lesson-list article{grid-template-columns:70px 1fr auto}
  .teacher-dashboard-glance{padding:14px}.teacher-dashboard-flow,.teacher-dashboard-responsibilities{padding:14px;border-radius:16px}
  .teacher-dashboard-flow-grid{grid-template-columns:1fr;gap:7px}.teacher-dashboard-flow-grid>a{min-height:72px}
  .teacher-dashboard-task-grid{grid-template-columns:1fr 1fr;gap:7px}.teacher-dashboard-task-grid>a{min-height:70px}
}
@media(max-width:520px){
  .teacher-dashboard-hero-copy h1{font-size:29px}
  .teacher-dashboard-main-grid{gap:9px}.teacher-dashboard-metrics{gap:7px}
  .teacher-dashboard-task-grid{grid-template-columns:1fr}
  .teacher-dashboard-flow-grid>a,.teacher-dashboard-task-grid>a{grid-template-columns:34px minmax(0,1fr) 16px;padding:11px}
  .teacher-flow-step,.teacher-dashboard-task-grid>a>span{width:34px;height:34px}
}

/* Teacher home owns its own page title; suppress the redundant outer Dashboard heading. */
body:has(.teacher-dashboard-pro) .page-head{display:none!important}
.teacher-dashboard-task-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
