.teacher-back{display:inline-block;margin-bottom:18px;color:var(--accent);font-size:13px;text-decoration:none}
.teacher-name{font-weight:650;color:var(--accent);text-decoration:none}.teacher-name:hover,.teacher-back:hover{text-decoration:underline}
.teacher-profile-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:20px}
.teacher-details{display:grid;grid-template-columns:1fr 1fr;gap:21px 24px;margin:22px 0}
.teacher-details dt{font-size:12px;color:var(--muted);margin-bottom:5px}.teacher-details dd{margin:0;overflow-wrap:anywhere;font-size:14px;white-space:pre-line}
.teacher-sharing{border-top:1px solid var(--line);padding-top:16px}.teacher-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:24px 0}
.teacher-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.teacher-section-head h2{margin:0}
.teacher-period{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 0;border-top:1px solid var(--line)}
.teacher-period-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.teacher-period p{margin:8px 0;font-size:14px}.teacher-period:last-child{padding-bottom:0}
.teacher-badge{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:600;background:#f7f0df;color:#795a18;white-space:nowrap}
.teacher-badge.confirmed{background:#e8f2ed;color:#2b624c}.teacher-badge.cancelled{background:#efeeee;color:#666}
.teacher-table{width:100%}.teacher-table th{white-space:normal}.teacher-table td{vertical-align:top}.teacher-table small,.teacher-period small{display:block;margin-top:6px;color:var(--muted);font-size:12px}
.teacher-table .teacher-badge{margin-top:7px}.teacher-filters{margin-bottom:18px}.teacher-filters label:first-child{flex:1;min-width:230px}
.teacher-history-filter{display:block;max-width:330px;font-size:12px;margin-bottom:18px}.teacher-history-filter select{margin-top:7px;width:100%}
.teacher-empty{padding:20px 0;color:var(--muted);max-width:700px;font-size:14px}.teacher-notes{white-space:pre-wrap;color:var(--muted)}
.teacher-stats .stat span{display:block}.teacher-planning>p{font-size:14px}
@media(max-width:1100px){.teacher-profile-layout{grid-template-columns:1fr}.teacher-planning{display:block}.teacher-actions{flex-direction:row;flex-wrap:wrap}}
@media(max-width:760px){.teacher-details{grid-template-columns:1fr}.teacher-section-head,.teacher-period{flex-direction:column;align-items:flex-start}.teacher-table{min-width:640px}.teacher-stats .stat strong{font-size:24px}}

@media(min-width:761px){.nav-switch{flex-direction:column}.nav-switch a{justify-content:flex-start;padding:8px 10px}}
