/* Student's stylesheet provides the actual Escolio UI. Only Teacher-specific
   composition and native elements that replace React wrappers are defined here. */
[hidden]{display:none!important}
.teacher-shell{display:flex}
.teacher-shell>.navigation{display:flex;flex-direction:column}
.teacher-nav-content{display:flex;flex:1;flex-direction:column;gap:8px;min-height:0}
.teacher-shell .workspace{display:flex;flex-direction:column;min-height:100dvh}
.teacher-shell .profile-footer{margin-top:auto}
.teacher-shell .profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.teacher-shell svg,dialog svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.teacher-top{display:grid;grid-template-columns:210px minmax(0,1fr);gap:8px;margin-bottom:16px}
.teacher-top .quick{margin-bottom:0;min-width:0}
.teacher-top .quick-card{min-width:0}
.teacher-top .quick-main{padding-right:14px;padding-bottom:12px}
.context-picker{display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-rows:1fr 1fr;background:var(--selected);border:1px solid var(--border);border-radius:3px;overflow:hidden;min-width:0}
.context-picker select{appearance:none;background:transparent;border:0;border-radius:0;padding:0 28px 0 12px;width:100%;height:100%;min-width:0;color:var(--foreground);font:inherit;cursor:pointer;outline-offset:-2px}
.context-picker label{position:relative;display:block;min-width:0}
.context-picker label:first-child{border-bottom:1px solid var(--border)}
.context-picker label svg{position:absolute;right:8px;top:50%;transform:translateY(-50%);pointer-events:none;width:16px;height:16px;color:inherit}
.context-picker label.subject-colored{background:var(--subject);color:#fff}
.context-picker label.subject-colored select{color:inherit}
.context-picker option{background:var(--surface);color:var(--foreground)}
.context-picker .reset{grid-column:2;grid-row:1/3;width:100%;height:100%;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent}
.context-picker .reset svg{width:18px;height:18px}
.teacher-example-label{color:var(--muted-foreground);font-size:12px;margin-left:auto}
.teacher-plan .day-column,.teacher-plan .time-column{height:calc(var(--period-height)*var(--teacher-period-count))}
.teacher-plan .lesson-tile>.lesson{width:100%;height:100%;inset:0}
.teacher-plan .lesson-tile.is-selected>.lesson{outline:2px solid #1762df;outline-offset:-2px}
.teacher-plan .lesson-progress{position:absolute;inset:0 auto 0 0;width:var(--progress);background:#ffffff20;pointer-events:none}
.teacher-plan .lesson>*:not(.lesson-progress){position:relative}
.teacher-shell .app-footer a{text-decoration:underline;text-underline-offset:2px}
.teacher-account{border:1px solid var(--border);background:var(--surface);padding:14px;display:flex;align-items:center;gap:12px;border-radius:3px}
.teacher-account .danger{color:#be2434;margin-left:auto}
.teacher-account a{text-decoration:underline}
.teacher-shell .mobile-app-header{display:none}
.teacher-shell .logo-button img{width:34px;height:34px;object-fit:contain}
.teacher-loading{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted-foreground)}
.teacher-loading img{width:38px;height:38px}
.teacher-loading strong{font-size:24px;color:var(--foreground)}
dialog{width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--border);border-radius:3px;background:var(--surface);color:var(--foreground);margin:auto}
dialog::backdrop{background:#0005}
dialog header{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;background:var(--selected);border-bottom:1px solid var(--border)}
dialog .dialog-content{padding:14px}
.lesson-subject{display:block;background:var(--subject);color:#fff;padding:8px 12px;margin-bottom:12px;border-radius:3px}
.lesson-info dl{display:grid;grid-template-columns:70px 1fr;gap:8px}
.lesson-info dt{color:var(--muted-foreground)}
.lesson-info dd{margin:0}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--foreground);color:var(--surface);padding:10px 14px;border-radius:3px;z-index:90;display:none}
#toast.visible{display:block}
.clock-hand{transform-origin:12px 12px}
@media(prefers-reduced-motion:no-preference){.clock-hand{transition:transform .65s cubic-bezier(.25,.75,.25,1)}}
@media(max-width:1100px) and (min-width:768px){.teacher-top{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:767px){
 .teacher-shell .mobile-app-header{display:flex}
 .teacher-shell>.navigation:not(.mobile-app-header){display:flex;flex-direction:row}
 .teacher-nav-content{flex-direction:row;justify-content:center;align-items:center}
 .teacher-shell>.navigation:not(.mobile-app-header) .logo-button,.teacher-shell>.navigation:not(.mobile-app-header) .profile-footer{display:none}
 .teacher-shell>.navigation:not(.mobile-app-header) [data-nav-view]{flex:0 0 90px!important}
 .teacher-shell .workspace{width:100%;margin-left:0}
 .teacher-top{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:12px}
 .context-picker{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;grid-template-rows:36px}
 .context-picker label:first-child{border-bottom:0;border-right:1px solid var(--border)}
 .context-picker .reset{grid-column:3;grid-row:1}
 .teacher-top .quick-main{padding-right:10px;padding-bottom:10px}
 .teacher-example-label{font-size:11px}
 .teacher-account{flex-wrap:wrap}
 #toast{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}
