#teacher-panel:not(.hidden) ~ #student-panel #student-bottom-nav,
body:has(#teacher-panel:not(.hidden)) #student-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#teacher-sidebar .tdash-sidebar-profile-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0.45rem !important;
}
#teacher-sidebar .tdash-profile-trigger {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
}
#teacher-sidebar #teacher-sidebar-name,
#teacher-sidebar .tdash-teacher-name,
#teacher-panel #t-header-title {
    display: block !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    min-width: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}
#teacher-sidebar .tdash-profile-name-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}
#teacher-sidebar #teacher-sidebar-branch {
    writing-mode: horizontal-tb !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#teacher-sidebar .tdash-bday-countdown-link,
#tdash-bday-strip {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    gap: 0.4rem;
    order: 3;
    width: 100% !important;
    max-width: 100%;
    margin-top: 0;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 0.7rem;
    background: #facc15;
    color: #713f12;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    white-space: normal !important;
    cursor: pointer;
}
#tdash-bday-strip.hidden,
#tdash-bday-strip:has(#teacher-sidebar-birthday-countdown.hidden) {
    display: none !important;
}
#teacher-sidebar .tdash-nav-item[data-nav="ai"] > i:first-child {
    background: #fef3c7;
    color: #d97706;
}
#teacher-sidebar .tdash-nav-item[data-nav="drive"] > i:first-child {
    background: #dbeafe;
    color: #1d4ed8;
}
.sa-mentor-select {
    width: 100%;
    max-width: 14rem;
    padding: 0.28rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
}
.tai-loc-btn.is-on { color: #0f766e; background: #ccfbf1; }
.tai-loc-btn.is-busy { opacity: 0.6; }
.t-header-icon-btn {
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.s360-card-grid,
.s360-live-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)) !important;
    gap: 0.85rem !important;
    align-items: start;
}
.s360-live-card {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
}
.s360-live-card.is-g5 { box-shadow: inset 4px 0 0 #2563eb; }
.s360-live-card.is-g6 { box-shadow: inset 4px 0 0 #ca8a04; }
.s360-live-card.is-g7 { box-shadow: inset 4px 0 0 #15803d; }
.s360-live-card.is-g8 { box-shadow: inset 4px 0 0 #92400e; }
#mentor-alerts-drawer:not([open]) .s360-drawer-body { display: none; }
#sidebar-panel-mentor { display: none !important; }
#tdash-sidebar-logo-img,
#app-logo-small {
    object-fit: contain !important;
    background: #fff !important;
}
.gd-title,
.gd-btn {
    text-transform: none !important;
}
#login-developer-credit {
    position: relative;
    margin: 0.85rem auto 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}
#login-developer-credit .login-developer-credit-name {
    display: block;
    margin-top: 0.15rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fff;
}
#login-screen .mp-login-color-band {
    display: flex;
    height: 0.42rem;
    overflow: hidden;
    border-radius: 1.15rem 1.15rem 0 0;
}
#login-screen .mp-login-band { flex: 1; }
#login-screen .mp-login-band.is-navy { background: #0b1f3a; }
#login-screen .mp-login-band.is-forest { background: #14532d; }
#login-screen .mp-login-band.is-white { background: #fff; }
#login-screen .mp-login-band.is-red { background: #b91c1c; }
#login-screen .login-form-card {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
#login-screen .login-role-badge {
    color: #f8fafc !important;
    font-weight: 800;
}
#login-screen .login-logo-wrap {
    width: min(100%, 18rem) !important;
    height: auto !important;
    max-height: none !important;
    background: #fff !important;
    padding: 0.7rem 0.85rem !important;
    border: 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.22) !important;
    outline: none !important;
}
#login-screen .login-logo-wrap img,
#login-screen #app-logo-large {
    width: 100% !important;
    height: auto !important;
    max-height: 10.5rem !important;
    object-fit: contain !important;
    filter: none !important;
    box-shadow: none !important;
}
#login-screen .login-brand-title:not(.sr-only) { display: none !important; }
#login-screen .login-role-indicator {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.55rem 0 0.7rem;
}
#login-screen .login-role-badge {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    padding: 0.38rem 0.7rem !important;
    letter-spacing: 0.01em;
}
#login-panel-wrapper main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 26rem);
}
#login-developer-credit {
    position: relative;
    margin: 0.9rem auto 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.74);
}
#login-developer-credit .login-developer-credit-name {
    display: block;
    margin-top: 0.18rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fff;
}
