.teacher-schedule-page{
  padding:28px 0 46px;
}

.teacher-schedule-hero{
  display:grid;
  gap:22px;
  padding:24px;
  margin-bottom:20px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(59,31,94,.12);
  border-radius:22px;
  box-shadow:0 12px 34px rgba(16,24,40,.08);
}

.teacher-schedule-kicker{
  margin:0 0 5px;
  color:#3B1F5E;
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.teacher-schedule-hero h1{
  margin:0;
  color:#2B1248;
  font-size:clamp(28px,4vw,42px);
  line-height:1.08;
}

.teacher-schedule-subtitle{
  margin:10px 0 0;
  color:rgba(30,27,34,.70);
  font-size:16px;
}

.teacher-picker{
  min-width:0;
}

.teacher-picker label{
  display:block;
  margin-bottom:7px;
  color:#3B1F5E;
  font-weight:800;
}

.teacher-picker-row{
  display:flex;
  gap:8px;
}

.teacher-picker select{
  width:100%;
  min-height:48px;
  padding:0 44px 0 14px;
  border:1px solid rgba(59,31,94,.20);
  border-radius:14px;
  background:#fff;
  color:#2B1248;
  font:inherit;
  font-weight:650;
  outline:none;
}

.teacher-picker select:focus{
  border-color:#6FD9CD;
  box-shadow:0 0 0 4px rgba(111,217,205,.20);
}

.teacher-picker button{
  min-height:48px;
  padding:0 18px;
  border:0;
  border-radius:14px;
  background:#3B1F5E;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.teacher-summary{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 14px;
}

.teacher-summary span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(159,231,221,.42);
  border:1px solid rgba(59,31,94,.11);
  color:#2B1248;
}

.teacher-week{
  overflow:hidden;
  border:1px solid rgba(59,31,94,.12);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(16,24,40,.08);
}

.teacher-week-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.teacher-week-table{
  width:100%;
  min-width:1050px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}

.teacher-week-table th,
.teacher-week-table td{
  border-right:1px solid rgba(59,31,94,.10);
  border-bottom:1px solid rgba(59,31,94,.10);
}

.teacher-week-table tr:last-child th,
.teacher-week-table tr:last-child td{
  border-bottom:0;
}

.teacher-week-table th:last-child,
.teacher-week-table td:last-child{
  border-right:0;
}

.teacher-week-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:13px 10px;
  background:#E5F9F6;
  color:#2B1248;
  text-align:center;
}

.teacher-week-table .lesson-head,
.teacher-week-table .lesson-number{
  width:70px;
  min-width:70px;
  text-align:center;
}

.teacher-week-table .lesson-number{
  position:sticky;
  left:0;
  z-index:1;
  padding:12px 8px;
  background:#F6FFFD;
  color:#3B1F5E;
  font-size:18px;
  font-weight:900;
}

.teacher-week-table td{
  min-width:165px;
  height:116px;
  padding:8px;
  vertical-align:top;
  background:#fff;
}

.day-short{
  display:block;
  font-size:16px;
  font-weight:900;
}

.day-full{
  display:block;
  margin-top:2px;
  color:rgba(30,27,34,.60);
  font-size:12px;
  font-weight:650;
}

.lesson-empty{
  display:flex;
  min-height:84px;
  align-items:center;
  justify-content:center;
  color:rgba(30,27,34,.26);
  font-size:20px;
}

.lesson-card{
  padding:10px;
  margin-bottom:7px;
  border:1px solid rgba(59,31,94,.12);
  border-radius:13px;
  background:linear-gradient(180deg,#FAFFFE 0%,#F0FBF9 100%);
}

.lesson-card:last-child{
  margin-bottom:0;
}

.lesson-card--conflict{
  border-width:2px;
}

.lesson-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:7px;
  margin-bottom:7px;
}

.lesson-group{
  color:#3B1F5E;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
}

.lesson-group:hover{
  text-decoration:underline;
}

.lesson-time{
  flex:0 0 auto;
  color:rgba(30,27,34,.60);
  font-size:11px;
  white-space:nowrap;
}

.lesson-subject{
  color:#1E1B22;
  font-size:14px;
  line-height:1.32;
  font-weight:700;
  overflow-wrap:anywhere;
}

.lesson-room{
  margin-top:7px;
  color:rgba(30,27,34,.68);
  font-size:12px;
  overflow-wrap:anywhere;
}

.teacher-empty-state,
.teacher-note{
  padding:28px;
  border:1px solid rgba(59,31,94,.12);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 34px rgba(16,24,40,.06);
}

.teacher-empty-state h2{
  margin:0 0 8px;
  color:#2B1248;
}

.teacher-empty-state p,
.teacher-note{
  margin-top:0;
  color:rgba(30,27,34,.70);
}

.teacher-note{
  margin-top:14px;
  padding:16px 18px;
}

@media (min-width:800px){
  .teacher-schedule-hero{
    grid-template-columns:minmax(0,1fr) minmax(300px,420px);
    align-items:end;
  }
}

@media (max-width:767px){
  .teacher-schedule-page{
    padding-top:18px;
  }

  .teacher-schedule-hero{
    padding:18px;
    border-radius:18px;
  }

  .teacher-week-table{
    min-width:950px;
  }
}
