/* Teacher portal drawer: mobile-first and overlay-based at every viewport. */
.teacher-drawer-backdrop{position:fixed;inset:0;z-index:11990;background:rgba(15,23,42,.48);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease;-webkit-tap-highlight-color:transparent}
.teacher-drawer{position:fixed;z-index:12000;inset:0 auto 0 0;width:min(310px,86vw);height:100dvh;background:#fff;box-shadow:18px 0 48px rgba(15,23,42,.18);transform:translateX(-105%);transition:transform .25s cubic-bezier(.2,.75,.25,1);display:flex;flex-direction:column;padding:calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;color:#172033}
.teacher-drawer-open .teacher-drawer{transform:translateX(0)}.teacher-drawer-open .teacher-drawer-backdrop{opacity:1;visibility:visible}.teacher-drawer-open{overflow:hidden}
.teacher-drawer-head{display:flex;align-items:center;gap:11px;padding:7px 5px 18px;border-bottom:1px solid #edf0f5}
.teacher-drawer-brand{width:43px;height:43px;flex:0 0 43px;border-radius:14px;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:21px}
.teacher-drawer-brand-copy{min-width:0;flex:1}.teacher-drawer-brand-copy strong{display:block;font-size:15px;line-height:1.35;font-weight:700}.teacher-drawer-brand-copy small{display:block;color:#7b8496;font-size:11px;margin-top:3px}
.teacher-drawer-close,.teacher-menu-toggle{border:0;display:grid;place-items:center;cursor:pointer;background:transparent;color:#566176;border-radius:11px;-webkit-tap-highlight-color:transparent}
.teacher-drawer-close{width:36px;height:36px;font-size:20px}.teacher-drawer-close:active,.teacher-menu-toggle:active{background:#f0f4fa}
.teacher-drawer-label{padding:20px 10px 8px;color:#929bad;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:700}
.teacher-drawer-nav{display:grid;gap:5px}.teacher-drawer-link{width:100%;display:flex;align-items:center;gap:12px;min-height:47px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:#566176;text-align:left;font-family:inherit;font-size:13px;font-weight:500;line-height:1.3;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
.teacher-drawer-link i{width:21px;flex:0 0 21px;text-align:center;font-size:18px}.teacher-drawer-link .teacher-drawer-chevron{margin-left:auto;width:auto;font-size:14px;transition:transform .2s}.teacher-drawer-link:hover,.teacher-drawer-link:focus-visible{background:#f4f7fc;outline:none}.teacher-drawer-link.is-active{background:#eaf1ff;color:#1d4ed8;font-weight:650}
.teacher-drawer-subnav{display:grid;gap:3px;padding:3px 0 6px 33px}.teacher-drawer-subnav[hidden]{display:none}.teacher-drawer-subnav .teacher-drawer-link{min-height:40px;font-size:12px;padding-left:10px}.teacher-drawer-group.is-expanded>.teacher-drawer-link .teacher-drawer-chevron{transform:rotate(180deg)}
.teacher-drawer-foot{margin-top:auto;padding:18px 9px 4px;border-top:1px solid #edf0f5;color:#8a93a4;font-size:11px;line-height:1.5}.teacher-drawer-foot strong{display:block;color:#596579;font-size:12px;font-weight:600;margin-bottom:2px}
.teacher-menu-toggle{width:42px;height:42px;flex:0 0 42px;font-size:23px;background:#f4f7fc;color:#243047}
.teacher-dashboard-header .teacher-menu-toggle{margin-right:0}.teacher-header-content{flex:1}
.teacher-module-page{min-height:100vh;background:#f6f8fc;color:#172033;padding-bottom:32px}.teacher-module-topbar{display:flex;align-items:center;gap:13px;padding:16px;background:#fff;border-bottom:1px solid #e9edf4}.teacher-module-topbar h1{font-size:19px;line-height:1.3;margin:0;font-weight:700}.teacher-module-topbar p{margin:4px 0 0;color:#8490a3;font-size:12px}.teacher-module-body{padding:20px 16px}.teacher-module-notice{background:#fff;border:1px solid #e8edf5;border-radius:16px;padding:22px 18px;text-align:center;box-shadow:0 5px 20px rgba(20,40,80,.035)}.teacher-module-notice .notice-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#eaf1ff;color:#2563eb;font-size:23px;margin:0 auto 13px}.teacher-module-notice h2{font-size:16px;margin:0 0 8px}.teacher-module-notice p{font-size:13px;line-height:1.6;color:#758197;margin:0}
@media(min-width:700px){.teacher-drawer{width:320px}.teacher-module-body{padding:24px}}
@media(prefers-reduced-motion:reduce){.teacher-drawer,.teacher-drawer-backdrop,.teacher-drawer-link .teacher-drawer-chevron{transition:none}}
/* Sidebar logout section */
.teacher-drawer-account {
    padding: 14px 14px 8px;
    border-top: 1px solid #e8edf4;
}

.teacher-drawer-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    background: #fff7f7;
    color: #c03945;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.teacher-drawer-logout:hover {
    border-color: #fecaca;
    background: #feecec;
}

.teacher-drawer-logout:active {
    background: #fee2e2;
}

.teacher-drawer-logout:focus-visible {
    outline: 3px solid rgba(192, 57, 69, .2);
    outline-offset: 2px;
}

.teacher-drawer-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    background: #fee2e2;
    color: #b42332;
    font-size: 17px;
}
