.route-button,a.nav{font:inherit;text-decoration:none;cursor:pointer}
/* Added links wrap their labels in spans; match the original text-only labels. */
aside nav .nav>span:not(.menu-icon):not(.notification-bell){font-size:inherit;line-height:inherit;font-weight:inherit;min-width:0}
/* A consistent account area below the navigation, with room around each action. */
aside>.profile{display:flex;align-items:center;gap:10px;padding-top:24px;padding-bottom:14px;flex-shrink:0}
aside>.profile>b{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;padding:0}
aside>.profile>div{min-width:0;overflow-wrap:anywhere}
aside>#teacher-management,aside>#account-settings,aside>#logout{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:56px;flex-shrink:0;margin:0 0 10px;padding:12px 14px;border:1px solid #d5dfff;border-radius:12px;background:#fff;color:#2453d4;font-size:.9rem;font-weight:600;line-height:1.5;text-align:left;text-decoration:none;white-space:normal}
aside>#logout{position:static;background:#edf3ff;border-color:#edf3ff;margin-bottom:0}
aside>#teacher-management:hover,aside>#account-settings:hover,aside>#logout:hover{background:#e7efff}
.route-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border:1px solid #d5dfff;border-radius:14px;color:#2453d4;background:#fff;font-weight:600}
.route-button.primary{background:#3973f6;color:white}
aside nav a.nav{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;padding:14px 16px;color:#61718e;border-radius:12px;background:transparent}
aside nav a.nav.active{background:#e9efff;color:#3065ec;box-shadow:inset 4px 0 #3973f6}
.route-error{max-width:760px;margin:8vh auto;padding:32px;background:#ffffffd9;border-radius:24px}
.route-loading{padding:32px;color:#24345b}
.route-students{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.route-home{display:inline-block;margin:10px 0;color:#2453d4}
.sp-parent-nav{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:700px){aside nav a.nav{width:auto;padding:10px;font-size:.85rem}.route-error{margin:24px 12px;padding:24px}.route-button{padding:10px 14px}.landing-header .route-button{font-size:.85rem}}

html[aria-busy="true"]::after{content:"";position:fixed;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#3973f6,#11bcb3,#ffca42);z-index:10000;pointer-events:none}

.teacher-welcome{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:32px;padding:36px;border:1px solid #cce8ed;border-radius:24px;background:linear-gradient(120deg,#e0f9f2,#edf2ff);margin-bottom:32px}.teacher-welcome h2{font-size:clamp(24px,3vw,36px);line-height:1.2;margin:20px 0}.teacher-welcome p{line-height:1.7;color:#566d8b}.teacher-welcome img{width:100%;height:auto;max-width:420px}.teacher-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.teacher-shortcut{display:block;padding:24px;border:1px solid #dbe5fb;border-radius:20px;background:#fff;color:#183360;text-decoration:none}.teacher-shortcut:hover{border-color:#3974ff;background:#f8fbff}.teacher-shortcut:focus-visible{outline:3px solid #3974ff;outline-offset:3px}.teacher-shortcut h3{margin:16px 0 8px}.teacher-shortcut p{line-height:1.6;color:#61718e}.teacher-shortcut-go{color:#2453d4;font-weight:600}.teacher-shortcut-icon{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:14px;background:#eaf1ff}.teacher-shortcut-icon svg{width:26px;height:26px}.teacher-shortcuts-title{font-size:23px}@media(max-width:1000px){.teacher-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-welcome{grid-template-columns:1fr}.teacher-welcome img{max-width:260px}}@media(max-width:560px){.teacher-shortcuts{grid-template-columns:1fr}.teacher-welcome{padding:22px;gap:20px}.teacher-welcome img{max-width:220px}.teacher-welcome h2{font-size:27px}}
