@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comic Neue", cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Floating particles animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

button {
    font-family: "Comic Neue", cursive;
    font-weight: 600;
}

.loginpage .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s infinite ease-in-out;
}

.loginpage .particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.loginpage .particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.loginpage .particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

.loginpage.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
}

/* Left Panel */
.loginpage .left-panel {
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 38%),
                radial-gradient(circle at 85% 70%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 44%),
                linear-gradient(135deg, #ff9adf 0%, #ff6fa6 55%, #ff6a7d 100%);
    padding: 70px 56px 64px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    border-radius: 20px 0px 0px 20px;
    overflow: hidden;
}

.loginpage .left-panel::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 30% 65%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 45% 35%, rgba(255,255,255,0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 50%, rgba(255,255,255,0.14) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 28%, rgba(255,255,255,0.10) 0 2px, transparent 3px);
    opacity: .9;
    pointer-events:none;
}

.loginpage .left-panel::-webkit-scrollbar {
    width: 6px;
}

.loginpage .left-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.loginpage .left-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.loginpage .elephant-container {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    animation: bounce 2s infinite ease-in-out;
    position: absolute;
    left: 44px;
    top: -46px;
    z-index: 2;
}

.loginpage .elephant img {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.loginpage .elephant {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Elephant SVG */
.loginpage .elephant svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.loginpage .welcome-text {
    color: white;
    text-align: left;
    margin-bottom: 18px;
    width: min(92%, 520px);
    float: left;
    position: relative;
    z-index: 2;
}

.loginpage .welcome-text h1 {
    font-size: 64px;
    font-weight: 900;
    margin-top: 180px;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    letter-spacing: 0.5px;

}

.loginpage .welcome-text p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loginpage .sparkles {
    position: absolute;
    bottom: 18px;
    right: 26px;
    font-size: 60px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.98;
}

.loginpage .sparkles img {
    width: 130px;
    height: auto;
    display: block;
    transform-origin: 50% 55%;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.20));
    animation: sparkleFloat 2.6s ease-in-out infinite;
}

@keyframes sparkleFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-8deg) scale(1);
        opacity: 0.92;
    }

    50% {
        transform: translateY(-16px) rotate(10deg) scale(1.07);
        opacity: 1;
    }
}

/* Right Panel */
.loginpage .right-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0px 20px 20px 0px;
}

.loginpage .right-panel::-webkit-scrollbar {
    width: 6px;
}

.loginpage .right-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.loginpage .right-panel::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.loginpage .right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.loginpage .login-form {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.loginpage .login-form h2 {
    color: #667eea;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.loginpage .form-group {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out calc(0.3s + var(--delay)) both;
}

.loginpage .form-group:nth-child(2) {
    --delay: 0.1s;
}

.loginpage .form-group:nth-child(3) {
    --delay: 0.2s;
}

.loginpage .form-group:nth-child(4) {
    --delay: 0.3s;
}

.loginpage select,
.loginpage input[type="text"],
.loginpage input[type="email"],
.loginpage input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 15px;
    background: #e8e8f5;
    color: #333;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.loginpage select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.loginpage input::placeholder,
.loginpage select {
    color: #999;
}

.loginpage input:focus,
.loginpage select:focus {
    background: #dce0f7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.loginpage .checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.loginpage .remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.loginpage .remember-me input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.loginpage .remember-me label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.loginpage .forgot-password {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.loginpage .forgot-password:hover {
    color: #667eea;
}

.loginpage .login-button {
    width: 250px;
    padding: 18px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #C06FB5 0%, #7A6CE4 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.loginpage .login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.loginpage .login-button:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 968px) {

    .loginpage .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        max-height: none;
        margin: 20px auto;
    }

    .loginpage .left-panel {
        padding: 40px 30px;
        min-height: auto;
        border-radius: 20px 20px 0px 0px;
    }

    .loginpage .elephant-container {
        width: 180px;
        height: 180px;
    }

    .loginpage .welcome-text h1 {
        font-size: 36px;
        margin-top: 40px;
    }

    .loginpage .welcome-text p {
        font-size: 14px;
    }

    .loginpage .sparkles {
        font-size: 40px;
    }

    .loginpage .right-panel {
        padding: 40px 30px;
        min-height: auto;
        border-radius: 0px 0px 20px 20px;
    }
}

@media (max-width: 480px) {

    .loginpage .login-container {
        border-radius: 20px;
        margin: 10px auto;
    }

    .loginpage .left-panel {
        padding: 80px 20px;
    }

    .loginpage .elephant-container {
        width: 150px;
        height: 150px;
    }

    .loginpage .welcome-text h1 {
        font-size: 50px;
    }

    .loginpage .welcome-text p {
        font-size: 16px;
    }

    .loginpage .sparkles {
        font-size: 35px;
        bottom: 30px;
        right: 30px;
    }

    .loginpage .right-panel {
        padding: 30px 20px;
    }

    .loginpage .login-form h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .loginpage select,
    .loginpage input[type="text"],
    .loginpage input[type="password"] {
        padding: 15px 18px;
        font-size: 14px;
    }

    .loginpage .form-group {
        margin-bottom: 15px;
    }

    .loginpage .checkbox-group {
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .loginpage .login-button {
        padding: 16px;
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .loginpage .elephant-container {
        width: 120px;
        height: 120px;
    }

    .loginpage .welcome-text h1 {
        font-size: 24px;
    }

    .loginpage .welcome-text p {
        font-size: 12px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {

    .loginpage .login-container {
        max-height: none;
        margin: 10px auto;
    }

    .loginpage .left-panel {
        padding: 80px 20px;
    }

    .loginpage .elephant-container {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .loginpage .welcome-text h1 {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .loginpage .welcome-text p {
        font-size: 16px;
    }

    .loginpage .right-panel {
        padding: 30px 20px;
    }

    .loginpage .login-form h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .loginpage .form-group {
        margin-bottom: 12px;
    }

    .loginpage .checkbox-group {
        margin-bottom: 15px;
    }
}

/*------Home teacher page------*/

.home_teacher {
    width: 100%;
    display: inline-block;
}

.home_teacher .particle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s infinite ease-in-out;
    z-index: 1;
}

.home_teacher .particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.home_teacher .particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 85%;
    animation-delay: 2s;
}

.home_teacher .particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

.home_teacher .particle:nth-child(4) {
    width: 70px;
    height: 70px;
    top: 80%;
    left: 50%;
    animation-delay: 1s;
}

/* Top Navigation */
.home_teacher .top-nav {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home_teacher .logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    width: 120px;
    float: left;
}

/* Hamburger Menu */
.home_teacher .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.home_teacher .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.home_teacher .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.home_teacher .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.home_teacher .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hamburger Menu */
.home_teacher .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.home_teacher .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.home_teacher .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.home_teacher .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.home_teacher .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.home_teacher .nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

@media (max-width: 968px) {
    .home_teacher .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 99;
        transition: right 0.3s ease;
    }

    .home_teacher .nav-menu.active {
        right: 0;
    }

    .home_teacher .hamburger {
        display: flex;
    }

    .home_teacher .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        margin-bottom: 5px;
    }

    .home_teacher .search-box {
        width: 100%;
        margin-top: 15px;
        padding: 10px 15px;
    }

    .home_teacher .search-box input {
        width: 100%;
    }
}

/* Mobile Menu Overlay */
.home_teacher .menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98;
}

.home_teacher .menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.home_teacher .nav-item {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home_teacher .nav-item.active {
    background: #8b7fe8;
    color: white;
}

.home_teacher .nav-item:hover {
    background: #8b7fe8;
    color: white;
}

.home_teacher .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
}

.home_teacher .search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 150px;
}

/* Layout */
.home_teacher .container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.home_teacher .sidebar {
    width: 100px;
    background: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 65px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home_teacher .sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.home_teacher .sidebar-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.home_teacher .sidebar-item:active {
    transform: translateX(5px) scale(0.95);
}

.home_teacher .sidebar-item.active {
    background: #e8ebf7;
    border-left: 3px solid #8b7fe8;
}

.home_teacher .sidebar-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.home_teacher .sidebar-icon svg {
    width: 40px;
    height: auto;
}

.home_teacher .sidebar-label {
    font-size: 14px;
    font-weight: 700;
    color: #516ADD;
    text-align: center;
}

/* Main Content */
.home_teacher .main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.home_teacher .main-content:has(.live-class-page--gcr) {
    background: #f8f9fa;
    padding: 0;
}

/* Hero Section */
.home_teacher .hero-section {
    background: linear-gradient(135deg, #ff9ec4 0%, #d896e8 40%, #a78bfa 70%, #8b7fe8 100%);
    border-radius: 30px;
    padding: 50px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home_teacher .hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.home_teacher .elephant-hero {
    flex-shrink: 0;
}

.home_teacher .elephant-hero svg {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.home_teacher .hero-text h1 {
    font-size: 58px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0px 4px 14px 0px #00000040;

}

.home_teacher .hero-text h1 svg {
    width: auto;
    height: 60px;
    margin-bottom: -10px;
    display: inline-block;
}

.home_teacher .hero-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 600;
}

.home_teacher .hero-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    width: 70%;
}

.home_teacher .start-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: white;
    color: #ff6b9d;
    border-radius: 25px;
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.home_teacher .start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.home_teacher .start-button:active {
    transform: scale(0.95);
}

.home_teacher .start-button svg {
    width: 30px;
    height: auto;
}

.home_teacher .hero-decorations {
    position: absolute;
    right: 50px;
    top: 30px;
    font-size: 60px;
    animation: sparkle 1.5s infinite ease-in-out;
}

.home_teacher .hero-decorations svg {
    width: auto;
    height: 100px;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Section Title */
.home_teacher .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
    animation: fadeInLeft 0.8s ease-out;
}

.home_teacher .section-title svg {
    width: auto;
    height: 50px;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cards Grid */
.home_teacher .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.home_teacher .card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.home_teacher .card:nth-child(1) {
    animation-delay: 0.1s;
}

.home_teacher .card:nth-child(2) {
    animation-delay: 0.2s;
}

.home_teacher .card:nth-child(3) {
    animation-delay: 0.3s;
}

.home_teacher .card:nth-child(4) {
    animation-delay: 0.4s;
}

.home_teacher .card:nth-child(5) {
    animation-delay: 0.5s;
}

.home_teacher .card:nth-child(6) {
    animation-delay: 0.6s;
}

.home_teacher .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.home_teacher .card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.home_teacher .card-icon svg {
    width: 90px;
    height: auto;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.home_teacher .card-title {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.home_teacher .card-subtitle {
    font-size: 18px;
    color: #000;
    font-weight: 600;
    margin-bottom: 20px;
}

.home_teacher .card-description {
    font-size: 16px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 20px;
}

.home_teacher .card-button {
    width: 90%;
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(92.84deg, #FF7197 0.91%, #FF9773 95.44%);
    box-shadow: 0px 0px 24px 0px #0000001A;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.home_teacher .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 123, 157, 0.4);
}

.home_teacher .card-button:active {
    transform: translateY(0) scale(0.95);
}

/* Footer */
.home_teacher footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .home_teacher .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home_teacher .hero-content {
        gap: 30px;
    }

    .home_teacher .elephant-hero svg {
        width: 150px;
        height: 150px;
    }

    .home_teacher .hero-text h1 {
        font-size: 36px;
    }

    .home_teacher .hero-text h2 {
        font-size: 22px;
    }

    .home_teacher .nav-menu {
        gap: 8px;
    }

    .home_teacher .nav-item {
        padding: 8px 15px;
        font-size: 13px;
    }

    .home_teacher .search-box input {
        width: 120px;
    }
}

@media (max-width: 968px) {
    .home_teacher .hamburger {
        display: flex;
    }

    .home_teacher .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }

    .home_teacher .nav-menu.active {
        right: 0;
    }

    .home_teacher .nav-item {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .home_teacher .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .home_teacher .search-box input {
        width: 100%;
    }

    .home_teacher .sidebar {
        top: 55px;
    }
}

@media (max-width: 768px) {
    .home_teacher .sidebar {
        width: 80px;
    }

    .home_teacher .sidebar-icon {
        font-size: 24px;
    }

    .home_teacher .sidebar-label {
        font-size: 10px;
    }

    .home_teacher .main-content {
        padding: 20px;
    }

    .home_teacher .hero-section {
        padding: 30px;
    }

    .home_teacher .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .home_teacher .elephant-hero svg {
        width: 120px;
        height: 120px;
    }

    .home_teacher .hero-text h1 {
        font-size: 28px;
    }

    .home_teacher .hero-text h2 {
        font-size: 18px;
    }

    .home_teacher .hero-decorations {
        right: 20px;
        top: 20px;
        font-size: 40px;
    }

    .home_teacher .cards-grid {
        grid-template-columns: 1fr;
    }

    .home_teacher .section-title {
        font-size: 24px;
    }

    .home_teacher .hero-text p {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home_teacher .top-nav {
        padding: 10px 15px;
    }

    .home_teacher .logo {
        font-size: 20px;
    }

    .home_teacher .nav-menu {
        width: 100%;
        top: 60px;
        height: calc(100vh - 60px);
    }

    .home_teacher .sidebar {
        width: 60px;
        padding: 10px 0;
    }

    .home_teacher .sidebar-item {
        padding: 10px 5px;
    }

    .home_teacher .sidebar-icon {
        font-size: 20px;
    }

    .home_teacher .sidebar-label {
        font-size: 9px;
    }

    .home_teacher .main-content {
        padding: 15px;
    }

    .home_teacher .hero-section {
        padding: 20px;
        border-radius: 20px;
    }

    .home_teacher .hero-text h1 {
        font-size: 24px;
    }

    .home_teacher .hero-text h2 {
        font-size: 16px;
    }

    .home_teacher .hero-text p {
        font-size: 14px;
    }

    .home_teacher .section-title {
        font-size: 20px;
    }

    .home_teacher .card {
        padding: 20px;
    }
}


/*----------Teacher-zoon------------*/

.teacher_zoon {
    width: 100%;
    display: inline-block;
}

.teacher_zoon .home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f0f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.teacher_zoon .home-link:hover {
    background: #e0e0f0;
}

.teacher_zoon .nav-center {
    display: flex;
    gap: 10px;
}

.teacher_zoon .nav-tab {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.teacher_zoon .nav-tab.teacher {
    background: #8b7fe8;
    color: white;
}

.teacher_zoon .nav-tab.student {
    background: #e8ebf7;
    color: #666;
}

.teacher_zoon .nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.teacher_zoon .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.teacher_zoon .grade-select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    color: #666;
    cursor: pointer;
}

.teacher_zoon .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 20px 4px 5px;
    background: #8b7fe8;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teacher_zoon .user-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 127, 232, 0.4);
}

.teacher_zoon .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9ec4 0%, #8b7fe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.teacher_zoon .user-info {
    display: flex;
    flex-direction: column;
}

.teacher_zoon .user-name {
    font-size: 14px;
    font-weight: 600;
}

.teacher_zoon .user-role {
    font-size: 11px;
    opacity: 0.9;
}

#navMenu .grade-select,
#navMenu .user-profile {
    display: none;
}


/* Topic Cards Grid */
.teacher_zoon .topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.teacher_zoon .topic-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.teacher_zoon .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.teacher_zoon .topic-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.teacher_zoon .topic-icon.colors {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.teacher_zoon .topic-icon.body {
    background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
}

.teacher_zoon .topic-icon.numbers {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.teacher_zoon .topic-icon.animals {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
}

.teacher_zoon .topic-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.teacher_zoon .topic-description {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.5;
}

.teacher_zoon .teach-button {
    padding: 15px 40px;
    background: linear-gradient(101.46deg, #F96BA3 1.59%, #6C8AFE 97.31%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teacher_zoon .teach-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 127, 232, 0.4);
}

.teacher_zoon .teach-button:active {
    transform: scale(0.95);
}

.teacher_zoon .hero-text p {
    width: 100%;
    margin: 0px;
}


/* Responsive */
@media (max-width: 1200px) {
    .teacher_zoon .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {

    .teacher_zoon .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #navMenu .grade-select,
    #navMenu .user-profile {
        display: inline-block;
        width: 100%;
    }

    .teacher_zoon .user-avatar {
        width: 40px;
        height: 40px;
        float: left;
        display: inline-block;
        margin: 3px;
    }

    .teacher_zoon .user-info {
        display: inline-block;
        margin-left: 10px;
        margin-top: 3px;
    }

    .teacher_zoon .user-name {
        font-size: 15px;
    }

    .teacher_zoon .user-role {
        font-size: 13px;
    }

    .nav-right {
        display: none !important;
    }
}

@media (max-width: 768px) {


    .teacher_zoon .topics-grid {
        grid-template-columns: 1fr;
    }

    .teacher_zoon .topic-card {
        padding: 30px 25px;
    }

    .teacher_zoon .top-nav {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .teacher_zoon .logo {
        font-size: 24px;
    }

    .teacher_zoon .nav-left {
        flex: 1;
    }

    .teacher_zoon .nav-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .teacher_zoon .logo {
        font-size: 20px;
    }

    .teacher_zoon .home-link {
        padding: 8px 15px;
        font-size: 12px;
    }

    .teacher_zoon .user-profile {
        padding: 6px 15px 6px 6px;
    }

    .teacher_zoon .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .teacher_zoon .user-name {
        font-size: 13px;
    }

    .teacher_zoon .user-role {
        font-size: 10px;
    }

    .teacher_zoon .topic-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .teacher_zoon .topic-title {
        font-size: 20px;
    }

    .teacher_zoon .topic-card {
        padding: 25px 20px;
    }
}

/* Teacher Zone — aligned with teacher-dashboard tokens */
.tp-zone__crumb {
    margin-bottom: 1rem;
}

.tp-zone__masthead {
    margin-bottom: 1.5rem;
}

.tp-zone__masthead .teacher-dashboard__title {
    margin-bottom: 0.45rem;
}

.tp-zone__masthead .teacher-dashboard__lede {
    margin-bottom: 0;
}

/* Hero: class switcher sits in the same row as copy (dashboard hero layout) */
.teacher-dashboard__hero.tp-zone__hero {
    align-items: stretch;
}

@media (min-width: 720px) {
    .teacher-dashboard__hero.tp-zone__hero {
        align-items: center;
    }
}

.tp-zone__hero-aside {
    flex: 0 1 17.5rem;
    min-width: min(100%, 17.5rem);
    position: relative;
    z-index: 1;
}

.tp-zone__hero-aside .hw-field {
    margin-bottom: 0;
}

.tp-zone__hero-aside .hw-field__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b8f;
}

.tp-zone__hero-aside .hw-field__control {
    font-weight: 700;
    border-radius: 12px;
}

.tp-zone__topics {
    margin-top: 0.5rem;
}

/* Purple band — periwinkle field like reference (#7B68EE family) */
.tp-zone__topics-panel {
    padding: 1.5rem 1.35rem 1.65rem;
    border-radius: 28px;
    background: linear-gradient(165deg, #7c6bf0 0%, #6d5ae8 40%, #8b7fe8 100%);
    box-shadow:
        0 12px 40px rgba(91, 79, 207, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-zone__topics-head {
    margin-bottom: 1.2rem;
}

.tp-zone__topics-panel .tp-zone__topics-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.tp-zone__topics-panel .tp-zone__topics-sub {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(237, 233, 254, 0.92);
    max-width: 42rem;
}

.tp-zone__topics-panel .tp-zone__topics-sub strong {
    color: #fde68a;
    font-weight: 800;
}

.tp-zone__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (min-width: 900px) {
    .tp-zone__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tp-zone__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 25px;
    overflow: hidden;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

/* Rainbow top accent — magenta → pink → coral → amber (reference card strip) */
.tp-zone__card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #ec4899 0%,
        #d946ef 16%,
        #e11d48 42%,
        #f97316 72%,
        #fbbf24 100%
    );
}

.tp-zone__card:hover {
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(91, 79, 207, 0.12);
    transform: translateY(-3px);
}

.tp-zone__card > * {
    position: relative;
    z-index: 2;
}

.tp-zone__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 14px rgba(15, 23, 42, 0.1);
}

.tp-zone__icon-svg {
    width: 1.45rem;
    height: 1.45rem;
}

.tp-zone__icon-svg--nums {
    width: 1.75rem;
    height: 1.75rem;
}

.tp-zone__icon--colors {
    background: linear-gradient(145deg, #86efac 0%, #16a34a 100%);
}

.tp-zone__icon--body {
    background: linear-gradient(145deg, #fdba74 0%, #ea580c 100%);
}

.tp-zone__icon--numbers {
    background: linear-gradient(145deg, #7dd3fc 0%, #0284c7 100%);
}

.tp-zone__icon--animals {
    background: linear-gradient(145deg, #fda4af 0%, #e11d48 100%);
}

.tp-zone__card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #2f2f4a;
    line-height: 1.3;
}

.tp-zone__card-desc {
    margin: 0 0 1.15rem;
    flex: 1 1 auto;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #6b6b8f;
}

.tp-zone__btn-soon {
    box-sizing: border-box;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: #a8a29e;
    background: #f5f5f4;
    border: 2px dashed #d6d3d1;
    cursor: not-allowed;
    appearance: none;
    -webkit-appearance: none;
}

.tp-zone__empty {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(246, 244, 255, 0.95) 0%, #ffffff 100%);
    border: 1px solid rgba(232, 230, 242, 0.95);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.08);
}

.tp-zone__empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: #2f2f4a;
}

.tp-zone__empty-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: #5c5c78;
    max-width: 22rem;
    margin-inline: auto;
}

.tp-zone__empty-text a {
    color: #5b4fcf;
    font-weight: 800;
}

.tp-zone-modal {
    border-radius: 20px;
    max-width: min(32rem, calc(100vw - 2rem));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.tp-zone-modal__head {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.tp-zone-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2f2f4a;
}

.tp-zone-modal__close {
    color: #6b6b8f;
}

.tp-zone-modal__close:hover {
    color: #2f2f4a;
}

.tp-zone-modal__grid {
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .tp-zone__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-zone__card:hover {
        transform: none;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal Box */
.modal-box {
    background: #fff;
    width: 520px;
    border-radius: 20px;
    padding: 25px;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 46px;
    cursor: pointer;
    font-weight: 400;
}

/* Colors Grid */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-card {
    border-radius: 15px;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.color-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.color-card p {
    font-size: 13px;
    opacity: 0.95;
}

/* Individual Colors */
.red {
    background: #ff0000;
}

.blue {
    background: #0000ff;
}

.yellow {
    background: #ffeb00;
    color: #333;
}

.green {
    background: #00ff00;
    color: #333;
}

.orange {
    background: #ffa500;
}

.purple {
    background: #800080;
}


/*--------training_page--------------*/

.training_page .card {
    background: #ffffff;
    width: 100%;
    border-radius: 28px;
    padding: 0px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-size: 24px;
    display: inline-block;
}

/* Top selection */
.training_page .select-row {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-bottom: 1px solid #0000004F;
    padding: 30px 50px;
}

.training_page .select-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    cursor: pointer;
    width: 20%;
    margin-left: 6%;
    font-weight: bold;
}

.training_page .select-row input[type="radio"] {
    accent-color: #7b7cf6;
    width: 16px;
    height: 16px;
}

.training_page .record-btn {
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6fae, #7b7cf6);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.training_page .record-btn svg {
    width: auto;
    float: right;
    margin-left: 10px;
}

.training_page .record-btn:hover {
    background: linear-gradient(135deg, #7b7cf6, #ff6fae);
}

/* Live text */
.training_page .section-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    padding: 20px 50px 10px;

}

.training_page .live-text {
    background: #ecebff;
    border-radius: 16px;
    padding: 20px;
    min-height: 150px;
    font-size: 14px;
    color: #555;
    margin: 0px 50px 25px;
    width: calc(100% - 100px);
    text-align: left;
    border: 0px;
}

/* Accuracy bar */
.training_page .accuracy-title {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 0px 50px;
}

.training_page .accuracy-bar {
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    margin: 0px 50px;
}

.training_page .accuracy-bar div {
    flex: 1;
}

.training_page .poor {
    background: #ff2f2f;
}

.training_page .good {
    background: #ffe600;
}

.training_page .excellent {
    background: #1fbf65;
}

.training_page .accuracy-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #7D7D7D;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 10px 50px 0px;
}

/* Buttons */
.training_page .action-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0px 150px 50px;
}

.training_page .action-buttons button {
    border: none;
    padding: 15px 25px;
    border-radius: 22px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    min-width: 140px;
    background: linear-gradient(135deg, #ff6fae, #ff8f6f);
}

.training_page .action-buttons button:hover {
    border: none;
    padding: 15px 25px;
    border-radius: 22px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    min-width: 140px;
    background: linear-gradient(135deg, #ff8f6f, #ff6fae);
}

/* Responsive */
@media (max-width: 991px) {
    .training_page .select-row label {
        margin-left: 4%;
    }

    .home_teacher .section-title {
        padding: 20px 20px 10px;
    }

    .training_page .live-text {
        margin: 0px 20px 25px;
        width: calc(100% - 40px);
    }

    .training_page .accuracy-title {
        padding: 0px 20px;
    }

    .training_page .accuracy-bar {
        margin: 0px 20px;
    }

    .training_page .accuracy-labels {
        padding: 10px 20px 0px;
    }

    .training_page .action-buttons {
        margin: 30px 50px 50px;
    }

    .story-container {
        padding: 20px !important;
    }
}

@media (max-width: 600px) {

    .training_page .action-buttons {
        margin: 20px 0px 50px;
    }

    .training_page .card {
        padding: 20px;
        border-radius: 20px;
    }

    .training_page .select-row {
        gap: 15px;
    }

    .training_page .record-btn {
        margin-left: 0;
    }

    .training_page .select-row strong {
        width: 100%;
    }

    .training_page .select-row {
        padding: 20px;
    }

    .training_page .select-row label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        cursor: pointer;
        width: auto;
        margin: 0px 10px;
        font-weight: bold;
    }
}

@media (max-width: 400px) {
    .home_teacher .section-title {
        padding: 20px 0px 10px;
    }

    .training_page .live-text {
        margin: 0px 0px 25px;
        width: 100%;
    }

    .training_page .accuracy-title {
        padding: 0px;
    }

    .training_page .accuracy-bar {
        margin: 0px;
    }

    .training_page .accuracy-labels {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        color: #7D7D7D;
        font-weight: 600;
        margin-bottom: 40px;
        padding: 10px 0px 0px;
    }
}



.training_page .uploadstory-btn {
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6fae, #7b7cf6);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    margin-top: 40px;
}

.training_page .uploadstory-btn:hover {
    background: linear-gradient(135deg, #7b7cf6, #ff6fae);
}

.story-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 50px;
}

/* Book Cover */
.book-cover {
    flex-shrink: 0;
    width: 200px;
    height: 260px;
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.book-cover img {
    width: auto;
    height: 100%;
}

.book-inner {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
}

.book-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 127, 232, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.story-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.author-name {
    font-size: 11px;
    color: #999;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Content Area */
.content-area {
    flex: 1;
}

.read-aloud-button {
    padding: 10px 15px;
    background: #d1d5db;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    float: left;
    width: 170px;
    text-align: left;
}

.read-aloud-button:hover {
    background: #9ca3af;
    color: white;
}

.read-aloud-button:active {
    transform: scale(0.95);
}

.story-text-area {
    width: 100%;
    min-height: 200px;
    background: #e0e7ff;
    border: none;
    border-radius: 20px;
    padding: 25px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    resize: vertical;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.story-text-area::placeholder {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        width: 140px;
        height: 200px;
    }

    .content-area {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    .book-cover {
        width: 120px;
        height: 180px;
        padding: 15px;
    }

    .story-title {
        font-size: 14px;
    }

    .author-name {
        font-size: 10px;
    }

    .story-text-area {
        padding: 20px;
        font-size: 14px;
        min-height: 140px;
    }

    .read-aloud-button {
        padding: 8px 20px;
        font-size: 13px;
    }
}

.students_popup .colors-grid {
    grid-template-columns: auto;
}

.students_popup .colors-grid .color-card {
    height: 250px;
    margin-bottom: 20px;
    width: 100%;
    display: inline-block;
}

.color_txt {
    width: 100%;
    display: inline-block;
    text-align: center;
}

.color_txt h3 {
    color: #3B3B3B;
    font-weight: 700;
    font-style: Bold;
    font-size: 50px;
    line-height: 48px;
}

.color_txt p {
    font-size: 18px;
    font-weight: 600;
    color: #3B3B3B;
    margin-bottom: 25px;
    line-height: 1.5;
}

.action-buttons {
    text-align: center;
}

.SayIt_btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6fae, #7b7cf6);
    color: #fff;
    border: none;
    padding: 0px 25px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    line-height: 40px;
    height: 40px;
    margin: 10px;
}

.SayIt_btn svg {
    width: 18px;
    float: right;
    margin-left: 10px;
    margin-top: 7px;
}

.SayIt_btn:hover {
    background: linear-gradient(135deg, #7b7cf6, #ff6fae);
}

.NextColor_btn {
    display: inline-block;
    background: #fff;
    box-shadow: 0px 4px 34px 0px #0000001F;
    color: #3B3B3B;
    border: none;
    padding: 0px 25px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    line-height: 40px;
    height: 40px;
    margin: 10px;
}

.NextColor_btn:hover {
    background: linear-gradient(135deg, #7b7cf6, #ff6fae);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Master layout (Blade: resources/views/layouts/app.blade.php)
   Single CSS bundle — no Vite. See docs/LARAVEL_SYSTEM_DESIGN.md §9.
   -------------------------------------------------------------------------- */

body.app-shell {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

body.app-shell.loginpage {
    justify-content: flex-start;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.app-shell.app-shell--welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.app-shell:has(.student-dashboard),
body.app-shell:has(.page-shell-home),
body.app-shell:has(.page-shell-zone) {
    background-color: #fff;
}

.app-shell-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.app-shell-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.app-shell-main {
    flex: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-shell-main:has(.page-shell-home),
.app-shell-main:has(.page-shell-zone),
.app-shell-main:has(.loginpage-wrap),
.app-shell-main:has(.student-dashboard),
.app-shell-main:has(.welcome-page) {
    max-width: none;
    padding: 0;
    margin: 0;
}

.app-shell-main:has(.loginpage-wrap) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.loginpage-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
}

.app-shell-footer {
    flex-shrink: 0;
    border-top: 1px solid #e4e4e7;
    background: #fff;
}

.app-shell-footer--legal {
    background: #fafafa;
    text-align: center;
    font-size: 0.875rem;
    color: #52525b;
}

.app-shell-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Reusable actions (welcome, headers) */
.app-btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.app-btn--solid {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.app-btn--solid:hover {
    filter: brightness(1.05);
}

.app-btn--ghost {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.app-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.38);
}

.app-btn--lg {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
}

/* Welcome (/) */
.welcome-page {
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
    box-sizing: border-box;
}

.welcome-page__top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.welcome-page__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.welcome-page__hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-page__card {
    width: 100%;
    max-width: 36rem;
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.welcome-page__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #3b3b3b;
}

.welcome-page__lead {
    font-size: 1rem;
    line-height: 1.55;
    color: #5c5c5c;
    margin-bottom: 1.25rem;
}

.welcome-page__links {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.welcome-page__links li {
    margin-bottom: 0.5rem;
}

.welcome-page__links a {
    color: #7b7cf6;
    font-weight: 600;
    text-decoration: underline;
}

.welcome-page__links a:hover {
    color: #f5576c;
}

.welcome-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.welcome-page .app-btn--ghost {
    color: #fff;
}

.welcome-page .app-btn--solid {
    color: #fff;
}

/* Simple content pages (e.g. teacher dashboard stub) */
.app-page--padded {
    max-width: 42rem;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.app-page__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3b3b3b;
}

.app-page__lead {
    font-size: 1rem;
    line-height: 1.5;
    color: #5c5c5c;
}

/* Teacher web portal (dashboard + modules) */
.home_teacher.teacher-portal a.sidebar-item {
    text-decoration: none;
    color: inherit;
}

.home_teacher.teacher-portal .teacher-portal__nav-icon svg {
    width: 28px;
    height: 28px;
    color: #516add;
}

.home_teacher.teacher-portal .teacher-portal__layout {
    align-items: stretch;
}

.teacher-portal__topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.teacher-portal__topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.teacher-portal__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 12rem;
}

.teacher-portal__brand-link {
    text-decoration: none;
    color: inherit;
}

.teacher-portal__brand-link:hover .teacher-portal__brand-title {
    color: #5b4fcf;
}

.teacher-portal__brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(91, 79, 207, 0.25);
}

.brand-mark-aiaischool {
    display: block;
    vertical-align: middle;
}

.teacher-portal__brand-title {
    font-weight: 800;
    font-size: 1rem;
    color: #3b3b5c;
}

.teacher-portal__brand-sub {
    font-size: 0.8rem;
    color: #6b6b8f;
}

.teacher-portal__topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    flex: 1;
    justify-content: center;
}

.teacher-portal__topnav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #516add;
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
}

.teacher-portal__topnav-link:hover {
    background: #f0f2ff;
}

.teacher-portal__topnav-link.is-active {
    background: #e8ebf7;
    color: #3b4aa3;
}

.teacher-portal__user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.teacher-portal__user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b3b5c;
}

.teacher-portal__logout {
    margin: 0;
}

.teacher-portal__logout-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}

.teacher-portal__logout-btn:hover {
    filter: brightness(1.05);
}

.teacher-dashboard__welcome {
    margin-bottom: 1.5rem;
}

.teacher-dashboard {
    position: relative;
    isolation: isolate;
    padding-bottom: 0.25rem;
}

.teacher-dashboard::before {
    content: '';
    position: absolute;
    inset: -0.5rem -1.5rem 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 80% at 10% -30%, rgba(108, 99, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 90% 60% at 95% 10%, rgba(236, 72, 153, 0.1), transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 165, 233, 0.06), transparent 45%);
    pointer-events: none;
}

.teacher-dashboard__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.65rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 244, 255, 0.88) 38%, rgba(255, 248, 251, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 24px rgba(108, 99, 255, 0.08),
        0 18px 48px rgba(80, 80, 120, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.teacher-dashboard__hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
}

.teacher-dashboard__hero-blob--a {
    width: 14rem;
    height: 14rem;
    right: -4rem;
    top: -6rem;
    background: radial-gradient(circle, rgba(155, 109, 255, 0.55) 0%, transparent 68%);
    animation: teacher-dash-float 14s ease-in-out infinite;
}

.teacher-dashboard__hero-blob--b {
    width: 11rem;
    height: 11rem;
    left: -3rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.45) 0%, transparent 70%);
    animation: teacher-dash-float 18s ease-in-out infinite reverse;
}

@keyframes teacher-dash-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -8px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__hero-blob--a,
    .teacher-dashboard__hero-blob--b {
        animation: none;
    }
}

.teacher-dashboard__hero-text {
    flex: 1 1 16rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.teacher-dashboard__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c6fe8;
}

.teacher-dashboard__lede {
    margin: 0 0 0.65rem;
    max-width: 36rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    color: #5c5c78;
}

.teacher-dashboard__title-accent {
    background: linear-gradient(120deg, #5b4fcf 0%, #a855f7 40%, #ec4899 75%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.teacher-dashboard__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.teacher-dashboard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.teacher-dashboard__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #5b4fcf 0%, #8b5cf6 45%, #c026d3 100%);
    box-shadow: 0 8px 22px rgba(91, 79, 207, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.teacher-dashboard__btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(91, 79, 207, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Teacher Zone topic cards: full-width CTA — strip transparent border + heavy inset (fixes “double edge”) */
.tp-zone__card .teacher-dashboard__btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.25;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
}

.tp-zone__card .teacher-dashboard__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #5b4fcf 0%, #8b5cf6 52%, #c026d3 100%);
    box-shadow: 0 4px 14px rgba(91, 79, 207, 0.38);
}

.tp-zone__card .teacher-dashboard__btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(91, 79, 207, 0.45);
}

.tp-zone__card .teacher-dashboard__btn--primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.tp-zone__card .teacher-dashboard__btn--primary:focus {
    outline: none;
}

.tp-zone__card .teacher-dashboard__btn--primary:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.teacher-dashboard__btn--ghost {
    color: #4a3f9e;
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(216, 210, 245, 0.95);
    backdrop-filter: blur(6px);
}

.teacher-dashboard__btn--ghost:hover {
    border-color: #8b5cf6;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.12);
}

.teacher-dashboard__title {
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    font-weight: 800;
    color: #2f2f4a;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.teacher-dashboard__date {
    margin: 0;
    color: #6b6b8f;
    font-size: 0.9rem;
    font-weight: 700;
}

.teacher-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.teacher-dashboard__stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.15rem;
    border-radius: 20px;
    background: linear-gradient(165deg, #ffffff 0%, #faf9ff 100%);
    border: 1px solid rgba(236, 236, 245, 0.95);
    box-shadow: 0 8px 26px rgba(80, 80, 120, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.teacher-dashboard__stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(91, 79, 207, 0.12);
    border-color: rgba(200, 190, 255, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__stat:hover {
        transform: none;
    }
}

.teacher-dashboard__stat--accent {
    border-color: rgba(186, 230, 253, 0.85);
    background: linear-gradient(165deg, #f8fcff 0%, #ffffff 55%, #f5f3ff 100%);
}

.teacher-dashboard__stat-icon-wrap {
    flex-shrink: 0;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f0ff 0%, #ffffff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 6px 16px rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(232, 228, 255, 0.9);
}

.teacher-dashboard__stat--violet .teacher-dashboard__stat-icon-wrap {
    background: linear-gradient(145deg, #ede9ff 0%, #faf5ff 100%);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(108, 99, 255, 0.14);
}

.teacher-dashboard__stat--rose .teacher-dashboard__stat-icon-wrap {
    background: linear-gradient(145deg, #ffe4f0 0%, #fff5f9 100%);
    border-color: rgba(251, 207, 232, 0.85);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(236, 72, 153, 0.12);
}

.teacher-dashboard__stat--sky .teacher-dashboard__stat-icon-wrap {
    background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 100%);
    border-color: rgba(186, 230, 253, 0.9);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(14, 165, 233, 0.12);
}

.teacher-dashboard__stat--amber .teacher-dashboard__stat-icon-wrap {
    background: linear-gradient(145deg, #fef3c7 0%, #fffbeb 100%);
    border-color: rgba(253, 230, 138, 0.95);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(245, 158, 11, 0.12);
}

.teacher-dashboard__stat-icon {
    font-size: 1.45rem;
    line-height: 1;
}

.teacher-dashboard__stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.teacher-dashboard__stat-value {
    font-size: 1.45rem;
    font-weight: 900;
    color: #2f2f4a;
    line-height: 1.1;
}

.teacher-dashboard__stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b6b8f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.teacher-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.teacher-dashboard__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.teacher-dashboard__panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    border-radius: 22px;
    padding: 1.35rem 1.55rem;
    margin-bottom: 0;
    box-shadow:
        0 4px 18px rgba(80, 80, 120, 0.06),
        0 14px 40px rgba(80, 80, 120, 0.07);
    border: 1px solid rgba(232, 230, 242, 0.95);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.teacher-dashboard__panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7 35%, #ec4899 68%, #f59e0b);
    opacity: 0.92;
    border-radius: 22px 22px 0 0;
}

.teacher-dashboard__panel:hover {
    box-shadow:
        0 8px 26px rgba(91, 79, 207, 0.1),
        0 22px 50px rgba(80, 80, 120, 0.09);
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__panel:hover {
        transform: none;
    }
}

.teacher-dashboard__panel > * {
    position: relative;
    z-index: 1;
}

.teacher-dashboard__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teacher-dashboard__h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3b3b5c;
    margin: 0 0 1rem;
}

.teacher-dashboard__h2--in-head {
    margin-bottom: 0;
}

.teacher-dashboard__h2--solo {
    margin-bottom: 0.75rem;
}

.teacher-dashboard__empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(250, 249, 255, 0.95) 0%, #fff 100%);
    border: 1px dashed rgba(200, 190, 240, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.teacher-dashboard__empty--compact {
    padding: 1.25rem 1rem;
    text-align: left;
}

.teacher-dashboard__empty-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.5rem;
}

.teacher-dashboard__empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #3b3b5c;
}

.teacher-dashboard__empty-text {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #6b6b8f;
    line-height: 1.5;
}

.teacher-dashboard__class-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.teacher-dashboard__class-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(250, 249, 255, 0.95) 0%, #ffffff 55%, #fff8fb 100%);
    border: 1px solid rgba(236, 236, 245, 0.95);
    box-shadow: 0 6px 18px rgba(80, 80, 120, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-dashboard__class-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 26px rgba(108, 99, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__class-card:hover {
        transform: none;
    }
}

.teacher-dashboard__class-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4f46e5;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9ff 100%);
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(199, 210, 254, 0.85);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.teacher-dashboard__class-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.teacher-dashboard__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c63ff;
    text-decoration: none;
}

.teacher-dashboard__link:hover {
    text-decoration: underline;
}

.teacher-dashboard__class-title {
    font-weight: 700;
    color: #2f2f4a;
}

.teacher-dashboard__class-meta {
    font-size: 0.85rem;
    color: #6b6b8f;
}

.teacher-dashboard__quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.teacher-dashboard__quick {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.95rem 1rem 1.1rem;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 246, 255, 0.95) 50%, rgba(255, 245, 251, 0.9) 100%);
    border: 1px solid rgba(232, 230, 245, 0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(80, 80, 120, 0.06);
}

.teacher-dashboard__quick::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6c63ff;
    opacity: 0.85;
}

.teacher-dashboard__quick--live::before { background: #e11d48; }
.teacher-dashboard__quick--hw::before { background: #6c63ff; }
.teacher-dashboard__quick--pron::before { background: #0d9488; }
.teacher-dashboard__quick--prog::before { background: #d97706; }

.teacher-dashboard__quick:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 181, 255, 0.95);
    box-shadow: 0 14px 34px rgba(108, 99, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__quick:hover {
        transform: none;
    }
}

.teacher-dashboard__quick-ico {
    font-size: 1.05rem;
    font-weight: 900;
    color: #6c63ff;
    margin-bottom: 0.15rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(232, 228, 255, 0.9);
}

.teacher-dashboard__quick--live .teacher-dashboard__quick-ico { color: #e11d48; }
.teacher-dashboard__quick--hw .teacher-dashboard__quick-ico { color: #6c63ff; }
.teacher-dashboard__quick--pron .teacher-dashboard__quick-ico { color: #0d9488; }
.teacher-dashboard__quick--prog .teacher-dashboard__quick-ico { color: #d97706; }

.teacher-dashboard__quick-label {
    font-weight: 800;
    color: #3b3b5c;
    font-size: 0.95rem;
}

.teacher-dashboard__quick-desc {
    font-size: 0.8rem;
    color: #6b6b8f;
}

.teacher-dashboard__activity {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.teacher-dashboard__activity-row {
    display: grid;
    grid-template-columns: minmax(6rem, 9rem) 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(250, 249, 255, 0.65) 0%, #ffffff 100%);
    border: 1px solid rgba(236, 236, 245, 0.95);
    box-shadow: 0 4px 14px rgba(80, 80, 120, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.teacher-dashboard__activity-row:hover {
    border-color: rgba(199, 191, 255, 0.75);
    box-shadow: 0 8px 22px rgba(108, 99, 255, 0.08);
}

.teacher-dashboard__activity-row:last-child {
    border-bottom: none;
}

.teacher-dashboard__activity-student {
    font-weight: 800;
    color: #373752;
}

.teacher-dashboard__activity-text {
    color: #4a4a68;
}

.teacher-dashboard__activity-when {
    color: #6b6b8f;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(240, 237, 255, 0.85);
}

.teacher-dashboard__homework-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.teacher-dashboard__homework-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(236, 236, 245, 0.95);
    background: linear-gradient(135deg, #ffffff 0%, #faf9ff 100%);
    box-shadow: 0 4px 14px rgba(80, 80, 120, 0.04);
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-dashboard__homework-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(108, 99, 255, 0.1);
}

.teacher-dashboard__homework-row:last-child {
    border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
    .teacher-dashboard__homework-row:hover {
        transform: none;
    }
}

.teacher-dashboard__homework-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.teacher-dashboard__homework-title {
    font-weight: 800;
    color: #2f2f4a;
    font-size: 0.92rem;
}

.teacher-dashboard__homework-class {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b6b8f;
}

.teacher-dashboard__homework-due {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5b4fcf;
    background: linear-gradient(135deg, #f0edff 0%, #fdf4ff 100%);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(199, 191, 255, 0.65);
    box-shadow: 0 2px 10px rgba(91, 79, 207, 0.12);
}

.teacher-module__header {
    margin-bottom: 1.25rem;
}

.teacher-module__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2f2f4a;
    margin: 0 0 0.5rem;
}

.teacher-module__lead {
    margin: 0;
    color: #6b6b8f;
    font-size: 1rem;
    max-width: 40rem;
}

.teacher-module__card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
}

.teacher-module__body {
    margin: 0;
    color: #4a4a68;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .teacher-dashboard__activity-row {
        grid-template-columns: 1fr;
    }

    .teacher-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .teacher-dashboard__quick-grid {
        grid-template-columns: 1fr;
    }

    .teacher-portal__topnav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .teacher-portal__user {
        margin-left: 0;
    }
}

/* Teacher — Student progress report */
.tp-prog__header {
    margin-bottom: 1.25rem;
}

.tp-prog__filters-panel {
    margin-bottom: 1.25rem;
}

.tp-prog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.tp-prog__filters .hw-field {
    min-width: 14rem;
}

.tp-prog__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.tp-prog__summary-card {
    background: linear-gradient(165deg, #ffffff 0%, #faf9ff 100%);
    border: 1px solid #ececf5;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(80, 80, 120, 0.06);
}

.tp-prog__summary-card--accent {
    border-color: rgba(199, 191, 255, 0.75);
    background: linear-gradient(165deg, #f8f6ff 0%, #ffffff 100%);
}

.tp-prog__summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b8f;
    margin-bottom: 0.35rem;
}

.tp-prog__summary-value {
    font-size: 1.65rem;
    font-weight: 900;
    color: #2f2f4a;
    line-height: 1.1;
}

.tp-prog__section-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #3b3b5c;
}

.tp-prog__section-hint {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b6b8f;
    line-height: 1.45;
}

.tp-prog__chart-panel {
    margin-bottom: 1.25rem;
}

.tp-prog__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem 1.25rem;
}

.tp-prog__metric-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.tp-prog__metric-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #3b3b5c;
}

.tp-prog__metric-num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #5b4fcf;
}

.tp-prog__track {
    height: 10px;
    border-radius: 999px;
    background: #ececf5;
    overflow: hidden;
}

.tp-prog__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.tp-prog__fill--pronunciation { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.tp-prog__fill--reading { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.tp-prog__fill--vocabulary { background: linear-gradient(90deg, #d97706, #f59e0b); }
.tp-prog__fill--listening { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.tp-prog__fill--math { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.tp-prog__fill--communication { background: linear-gradient(90deg, #db2777, #f472b6); }

.tp-prog__table-head {
    margin-bottom: 1rem;
}

.tp-prog__table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #ececf5;
}

.tp-prog__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.tp-prog__table thead {
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
}

.tp-prog__table th {
    text-align: left;
    padding: 0.75rem 0.85rem;
    font-weight: 900;
    color: #3b3b5c;
    border-bottom: 1px solid #ececf5;
    white-space: nowrap;
}

.tp-prog__th-num {
    text-align: right;
}

.tp-prog__table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #f4f4fa;
    color: #4a4a68;
    font-weight: 600;
}

.tp-prog__table tbody tr:hover {
    background: rgba(250, 249, 255, 0.85);
}

.tp-prog__table tbody tr:last-child td {
    border-bottom: none;
}

.tp-prog__td-name {
    font-weight: 800;
    color: #2f2f4a;
}

.tp-prog__td-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tp-prog__empty-panel {
    margin-top: 0.5rem;
}

.tp-prog__empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px dashed rgba(200, 190, 240, 0.85);
}

.tp-prog__empty--inline {
    text-align: left;
    padding: 1.25rem 1rem;
}

.tp-prog__empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tp-prog__empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #3b3b5c;
}

.tp-prog__empty-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b6b8f;
    line-height: 1.55;
}

/* Teacher — Settings */
.tp-settings__header {
    margin-bottom: 1rem;
}

.tp-settings__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tp-settings__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 720px) {
    .tp-settings__grid {
        grid-template-columns: 1fr;
    }
}

.tp-settings__card--wide {
    grid-column: 1 / -1;
}

.tp-settings__h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #3b3b5c;
}

.tp-settings__hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b6b8f;
    line-height: 1.45;
}

.tp-settings__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.85rem 1rem;
    align-items: start;
}

.tp-settings__fields .hw-field--grow {
    grid-column: 1 / -1;
}

.tp-settings__checks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tp-settings__check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b3b5c;
}

.tp-settings__check input {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #6c63ff;
}

.tp-settings__check-text {
    line-height: 1.45;
}

.tp-settings__actions {
    display: flex;
    justify-content: flex-start;
}

/* Teacher — Pronunciation & accent training */
.pronunciation-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #6b6b8f;
}

.pronunciation-page__crumb a {
    color: #6c63ff;
    font-weight: 700;
    text-decoration: none;
}

.pronunciation-page__crumb a:hover {
    text-decoration: underline;
}

.pronunciation-page__crumb-sep {
    margin: 0 0.35rem;
    color: #a0a0b8;
}

.pronunciation-page__crumb-current {
    font-weight: 700;
    color: #3b3b5c;
}

.pronunciation-page__flash {
    background: #e8f7ef;
    color: #1b5e3a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.pronunciation-page__intro {
    margin-bottom: 1.5rem;
}

.pronunciation-page__lead {
    max-width: 46rem;
}

.pronunciation-page__callout {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(216, 210, 245, 0.95);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.92) 0%, rgba(255, 255, 255, 0.9) 60%);
    color: #3b3b5c;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 8px 22px rgba(108, 99, 255, 0.08);
}

.pronunciation-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0;
    margin: 0 0 1.25rem;
    list-style: none;
}

@media (min-width: 860px) {
    .pronunciation-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.pronunciation-steps__item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 210, 245, 0.85);
    border-radius: 16px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 10px 26px rgba(108, 99, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pronunciation-steps__title {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3b3b5c;
}

.pronunciation-steps__text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b6b8f;
    line-height: 1.4;
}

.pronunciation-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
}

.pronunciation-panel--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

@media (min-width: 980px) {
    .pronunciation-panel--grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 1.75rem;
        align-items: start;
    }
}

.pronunciation-panel__col {
    min-width: 0;
}

.pronunciation-panel__col--preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pronunciation-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    border: 1px solid rgba(232, 230, 242, 0.95);
    border-radius: 20px;
    padding: 1.25rem 1.25rem 1.15rem;
    box-shadow:
        0 4px 18px rgba(80, 80, 120, 0.06),
        0 14px 40px rgba(80, 80, 120, 0.06);
}

.pronunciation-card .pronunciation-transcript__box {
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
}

.pronunciation-panel__modes {
    border: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.pronunciation-panel__legend {
    font-weight: 800;
    font-size: 1rem;
    color: #3b3b5c;
    margin-bottom: 0.75rem;
}

.pronunciation-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pronunciation-mode__opt {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid #e0dff0;
    background: #faf9ff;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4a4a68;
}

.pronunciation-mode__opt:has(input:checked) {
    border-color: #8b7fe8;
    background: #e8ebf7;
    color: #3b4aa3;
}

.pronunciation-mode__opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pronunciation-panel__record {
    margin-bottom: 1.5rem;
}

.pronunciation-btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    padding: 0.65rem 1.25rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pronunciation-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pronunciation-btn--primary {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.pronunciation-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.pronunciation-btn__icon {
    font-size: 0.65rem;
    animation: pronunciation-pulse 1.2s ease-in-out infinite;
}

@keyframes pronunciation-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.pronunciation-btn--secondary {
    background: #f0f2ff;
    color: #4a4a9e;
    border: 1px solid #d8d4f0;
}

.pronunciation-btn--secondary:not(:disabled):hover {
    background: #e4e7ff;
}

.pronunciation-btn--accent {
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    color: #fff;
}

.pronunciation-btn--accent:not(:disabled):hover {
    filter: brightness(1.05);
}

.pronunciation-panel__hint {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: #6b6b8f;
    max-width: 36rem;
}

.pronunciation-transcript {
    margin-bottom: 1.5rem;
}

.pronunciation-panel__col--preview .pronunciation-transcript {
    margin-bottom: 0;
}

.pronunciation-transcript__title {
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
    margin: 0 0 0.5rem;
}

.pronunciation-transcript__box {
    min-height: 6rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #e8e6f2;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2f2f4a;
}

.pronunciation-transcript__placeholder {
    color: #9b9bb5;
    font-size: 0.95rem;
}

.pronunciation-accuracy {
    margin-bottom: 1.75rem;
}

.pronunciation-panel__col--preview .pronunciation-accuracy {
    margin-bottom: 0;
}

.pronunciation-accuracy__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pronunciation-accuracy__title {
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
    margin: 0;
}

.pronunciation-accuracy__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #6c63ff;
}

.pronunciation-accuracy__meter {
    height: 12px;
    border-radius: 999px;
    background: #eceaf5;
    overflow: hidden;
}

.pronunciation-accuracy__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #22c55e);
    transition: width 0.25s ease;
}

.pronunciation-accuracy__note {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: #8b8ba8;
}

.pronunciation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pronunciation-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem 1rem;
        align-items: start;
    }

    .pronunciation-actions__form {
        grid-column: span 1;
    }

    .pronunciation-actions__form--assign {
        grid-column: 1 / -1;
    }
}

.pronunciation-actions__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.pronunciation-actions__form--assign {
    flex-direction: column;
    align-items: stretch;
}

.pronunciation-assign__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a4a68;
    flex: 1;
    min-width: 12rem;
}

.pronunciation-assign__input {
    font: inherit;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #d8d4f0;
}

.pronunciation-page__unsupported {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff4e6;
    color: #9a5b00;
    border-radius: 12px;
    font-size: 0.9rem;
}

.pronunciation-feedback-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #d8d4f0;
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
}

.pronunciation-feedback-banner__status {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3b3b5c;
    line-height: 1.45;
}

.pronunciation-reference {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    max-width: 42rem;
}

.pronunciation-reference__label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b3b5c;
}

.pronunciation-reference__input {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d8d4f0;
}

.pronunciation-reference__hint {
    font-size: 0.78rem;
    color: #6b6b8f;
    line-height: 1.4;
}

.pronunciation-transcript__sub {
    margin: -0.25rem 0 0.65rem;
    font-size: 0.85rem;
    color: #6b6b8f;
    max-width: 40rem;
    line-height: 1.45;
}

.pronunciation-transcript__box.is-receiving {
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.35);
}

.pronunciation-transcript__final {
    font-weight: 600;
    color: #1e1e36;
}

.pronunciation-transcript__interim {
    color: #7a7a9a;
    font-weight: 500;
}

.pronunciation-accuracy--enhanced .pronunciation-accuracy__meter.is-high .pronunciation-accuracy__fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.pronunciation-accuracy--enhanced .pronunciation-accuracy__meter.is-mid .pronunciation-accuracy__fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.pronunciation-accuracy--enhanced .pronunciation-accuracy__meter.is-low .pronunciation-accuracy__fill {
    background: linear-gradient(90deg, #fb7185, #e11d48);
}

.pronunciation-model-match {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pronunciation-model-match.is-warn {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.pronunciation-model-match.is-bad {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Teacher — Interactive learning (Story / Reading) */
.interactive-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #6b6b8f;
}

.interactive-page__crumb a {
    color: #6c63ff;
    font-weight: 700;
    text-decoration: none;
}

.interactive-page__crumb a:hover {
    text-decoration: underline;
}

.interactive-page__crumb-sep {
    margin: 0 0.35rem;
    color: #a0a0b8;
}

.interactive-page__crumb-current {
    font-weight: 700;
    color: #3b3b5c;
}

/* Teacher — Students list */
.tp-students {
    position: relative;
    padding-bottom: 0.35rem;
}

.tp-students__header {
    align-items: center;
}

.tp-students__lead {
    margin: 0.35rem 0 0;
    max-width: 40rem;
}

.tp-students__stat {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 244, 255, 0.88) 55%, rgba(255, 248, 251, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 24px rgba(108, 99, 255, 0.08),
        0 18px 48px rgba(80, 80, 120, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tp-students__stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffe4f0 0%, #fff5f9 100%);
    border: 1px solid rgba(251, 207, 232, 0.85);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(236, 72, 153, 0.12);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tp-students__stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tp-students__stat-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: #2f2f4a;
    line-height: 1.1;
}

.tp-students__stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #6b6b8f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tp-students__filters-panel {
    margin-top: 1.05rem;
}

.tp-students__filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 860px) {
    .tp-students__filters {
        grid-template-columns: 16rem minmax(0, 1fr) auto;
        align-items: end;
    }
}

.tp-students__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.tp-students__grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 900px) {
    .tp-students__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .tp-students__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tp-students__card {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    padding: 1.05rem 1.1rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(232, 230, 242, 0.95);
    box-shadow:
        0 4px 18px rgba(80, 80, 120, 0.06),
        0 14px 40px rgba(80, 80, 120, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tp-students__card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 26px rgba(91, 79, 207, 0.1),
        0 22px 50px rgba(80, 80, 120, 0.09);
}

.tp-students__avatar {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #3b3b5c;
    background: linear-gradient(145deg, #ffe4f0 0%, #fff5f9 100%);
    border: 1px solid rgba(251, 207, 232, 0.85);
    flex-shrink: 0;
}

.tp-students__main {
    min-width: 0;
}

.tp-students__name {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 900;
    color: #2f2f4a;
    letter-spacing: -0.01em;
}

.tp-students__meta {
    margin: 0 0 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tp-students__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #3b4aa3;
    background: #e8ebf7;
    border: 1px solid rgba(216, 210, 245, 0.95);
}

.tp-students__pill--soft {
    background: rgba(255, 255, 255, 0.85);
    color: #4a3f9e;
}

.tp-students__pill--muted {
    background: #f4f4f7;
    color: #6b6b8f;
}

.tp-students__filters-panel .hw-field__control {
    border-radius: 14px;
}

.tp-students__filters-panel .hw-btn {
    border-radius: 14px;
}

.tp-students__sub {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6b8f;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.tp-students__empty {
    padding: 2rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(246, 244, 255, 0.95) 0%, #ffffff 100%);
    border: 1px solid rgba(232, 230, 242, 0.95);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.08);
    text-align: center;
}

.tp-students__empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: #2f2f4a;
}

.tp-students__empty-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: #5c5c78;
}

.interactive-page__flash {
    background: #e8f7ef;
    color: #1b5e3a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.interactive-page__intro {
    margin-bottom: 1.5rem;
}

.interactive-page__callout {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3730a3;
    max-width: 48rem;
}

.interactive-page__callout strong {
    color: #312e81;
}

.interactive-setup__lede,
.interactive-assign__lede {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #6b6b8f;
    line-height: 1.5;
    max-width: 44rem;
}

.interactive-setup__lede code {
    font-size: 0.85em;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: #f4f4fb;
    border: 1px solid #e8e6f2;
}

.interactive-story__caption {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b5b7a;
    margin-bottom: 0.45rem;
}

.interactive-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
    display: grid;
    gap: 1.5rem;
}

.interactive-setup__title,
.interactive-reading__title,
.interactive-assign__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
}

.interactive-setup__row {
    display: grid;
    grid-template-columns: 240px 220px 1fr;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

.interactive-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.interactive-field--grow {
    min-width: 12rem;
}

.interactive-field--stack {
    margin-top: 0.25rem;
}

.interactive-field__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a4a68;
}

.interactive-field__control {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d8d4f0;
    background: #fff;
}

.interactive-field__control--textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.55;
}

.interactive-reading__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.interactive-reading__hint {
    margin: 0;
    font-size: 0.85rem;
    color: #6b6b8f;
}

.interactive-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.interactive-btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    padding: 0.65rem 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.interactive-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.interactive-btn--primary {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.interactive-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.interactive-btn__icon {
    font-size: 0.65rem;
    animation: interactive-pulse 1.2s ease-in-out infinite;
}

@keyframes interactive-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.interactive-btn--secondary {
    background: #f0f2ff;
    color: #4a4a9e;
    border: 1px solid #d8d4f0;
}

.interactive-btn--secondary:not(:disabled):hover {
    background: #e4e7ff;
}

.interactive-btn--accent {
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    color: #fff;
}

.interactive-btn--accent:not(:disabled):hover {
    filter: brightness(1.05);
}

.interactive-btn.is-on {
    outline: 3px solid rgba(108, 99, 255, 0.25);
}

.interactive-progress__meter {
    height: 12px;
    border-radius: 999px;
    background: #eceaf5;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.interactive-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #22c55e);
    transition: width 0.25s ease;
}

.interactive-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b6b8f;
}

.interactive-progress__value {
    font-weight: 800;
    color: #6c63ff;
}

.interactive-story__box {
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #e8e6f2;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2f2f4a;
}

.interactive-story__placeholder {
    color: #9b9bb5;
    font-size: 0.95rem;
}

.interactive-word {
    padding: 0.05rem 0.18rem;
    border-radius: 8px;
    cursor: pointer;
}

.interactive-word:hover {
    background: rgba(108, 99, 255, 0.08);
}

.interactive-word.is-spoken {
    background: rgba(34, 197, 94, 0.16);
}

.interactive-word.is-current {
    background: rgba(251, 191, 36, 0.22);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.interactive-word.is-manual {
    background: rgba(108, 99, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.45);
}

.interactive-page__unsupported {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff4e6;
    color: #9a5b00;
    border-radius: 12px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .interactive-setup__row {
        grid-template-columns: 1fr;
    }
}

/* Teacher — Vocabulary builder */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vocab-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #6b6b8f;
}

.vocab-page__crumb a {
    color: #6c63ff;
    font-weight: 700;
    text-decoration: none;
}

.vocab-page__crumb a:hover {
    text-decoration: underline;
}

.vocab-page__crumb-sep {
    margin: 0 0.35rem;
    color: #a0a0b8;
}

.vocab-page__crumb-current {
    font-weight: 700;
    color: #3b3b5c;
}

.vocab-page__flash {
    background: #e8f7ef;
    color: #1b5e3a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.vocab-page__intro {
    margin-bottom: 1.5rem;
}

.vocab-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
    display: grid;
    gap: 1.75rem;
}

.vocab-section__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
}

.vocab-section__hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #6b6b8f;
    max-width: 40rem;
}

.vocab-add__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vocab-btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    padding: 0.65rem 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.vocab-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vocab-btn--primary {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.vocab-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.vocab-btn__icon {
    font-size: 0.65rem;
    animation: vocab-pulse 1.2s ease-in-out infinite;
}

@keyframes vocab-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.vocab-btn--secondary {
    background: #f0f2ff;
    color: #4a4a9e;
    border: 1px solid #d8d4f0;
}

.vocab-btn--secondary:not(:disabled):hover {
    background: #e4e7ff;
}

.vocab-btn--accent {
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    color: #fff;
}

.vocab-btn--accent:not(:disabled):hover {
    filter: brightness(1.05);
}

.vocab-btn--ghost {
    background: transparent;
    color: #6c63ff;
    border: 1px dashed #c4c0e8;
}

.vocab-btn--ghost:not(:disabled):hover {
    background: #f5f4ff;
}

.vocab-transcript__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a4a68;
    margin-bottom: 0.35rem;
}

.vocab-transcript__box {
    min-height: 4.5rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #e8e6f2;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #2f2f4a;
}

.vocab-transcript__placeholder {
    color: #9b9bb5;
    font-size: 0.95rem;
}

.vocab-page__unsupported {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff4e6;
    color: #9a5b00;
    border-radius: 12px;
    font-size: 0.9rem;
}

.vocab-list-section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.vocab-field--inline {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    max-width: 28rem;
}

.vocab-field__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a4a68;
}

.vocab-field__control {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d8d4f0;
}

.vocab-table-wrap {
    position: relative;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.vocab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.vocab-table th {
    text-align: left;
    padding: 0.5rem 0.65rem;
    background: #f3f2fb;
    color: #3b3b5c;
    font-weight: 800;
    border-bottom: 1px solid #e0dff0;
}

.vocab-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #eceaf5;
    vertical-align: middle;
}

.vocab-table__input {
    width: 100%;
    min-width: 8rem;
    font: inherit;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid #d8d4f0;
}

.vocab-table__actions {
    width: 6rem;
    text-align: right;
}

.vocab-row-remove {
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.vocab-row-remove:hover {
    background: #fee2e2;
}

.vocab-table__empty {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #6b6b8f;
}

.vocab-table__empty[hidden] {
    display: none;
}

.vocab-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vocab-project {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.vocab-project[hidden] {
    display: none;
}

.vocab-project__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 40, 0.72);
}

.vocab-project__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(96vw, 920px);
    max-height: 90vh;
    overflow: auto;
    background: #0f0f1a;
    color: #f4f4ff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.vocab-project__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    background: #0f0f1a;
    z-index: 1;
}

.vocab-project__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.vocab-project__close {
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
}

.vocab-project__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vocab-project__body {
    padding: 1.5rem 1.75rem 2rem;
}

.vocab-project__list-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #c4b5fd;
}

.vocab-project__row {
    margin-bottom: 1.5rem;
}

.vocab-project__gu {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.vocab-project__en {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    color: rgba(244, 244, 255, 0.88);
    letter-spacing: 0.02em;
}

/* Teacher — Homework & review */
.hw-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #6b6b8f;
}

.hw-page__crumb a {
    /* color: #6c63ff; */
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.hw-page__crumb a:hover {
    text-decoration: underline;
}

.hw-page__crumb-sep {
    margin: 0 0.35rem;
    color: #a0a0b8;
}

.hw-page__crumb-current {
    font-weight: 700;
    color: #3b3b5c;
}

.hw-page__flash {
    background: #e8f7ef;
    color: #1b5e3a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.hw-page__flash--error {
    background: #fdecec;
    color: #8a1f1f;
}

.hw-page__intro {
    margin-bottom: 1.5rem;
}

.hw-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
}

.hw-filters {
    display: grid;
    grid-template-columns: 220px 220px 1fr;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.hw-filters--assign {
    grid-template-columns: 260px 1fr 200px;
}

.hw-assign {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eeeaf8;
}

.hw-assign__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hw-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
}

.hw-section__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
}

.hw-subtitle {
    margin: 1rem 0 0.45rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #4a4a68;
}

.hw-meta {
    border: 1px solid #e8e6f2;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: #faf9ff;
}

.hw-meta__row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(216, 212, 240, 0.5);
}

.hw-meta__row:last-child {
    border-bottom: none;
}

.hw-meta__label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #6b6b8f;
}

.hw-meta__value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2f2f4a;
}

.hw-box {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #e8e6f2;
    color: #2f2f4a;
    line-height: 1.65;
    white-space: pre-wrap;
}

.hw-muted {
    margin: 0.25rem 0 0;
    color: #6b6b8f;
    font-size: 0.9rem;
}

.hw-empty {
    margin: 0;
    color: #6b6b8f;
    font-size: 0.95rem;
}

.hw-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hw-field__error {
    font-size: 0.85rem;
    font-weight: 700;
    color: #b42318;
}

.hw-field--grow {
    min-width: 12rem;
}

.hw-field--stack {
    margin-bottom: 0.85rem;
}

.hw-field__label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b3b5c;
}

.hw-field__control {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d8d4f0;
}

.hw-field__control--textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.55;
}

.hw-field__hint {
    font-size: 0.78rem;
    color: #6b6b8f;
    line-height: 1.45;
}

.hw-btn {
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 14px;
    padding: 0.7rem 1.2rem;
    border: none;
    cursor: pointer;
}

.hw-btn--primary {
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    color: #fff;
}

.hw-btn--primary:hover {
    filter: brightness(1.05);
}

@media (max-width: 1000px) {
    .hw-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hw-filters {
        grid-template-columns: 1fr;
    }
}

/* Teacher — Live classroom (integration shell) */
.live-class-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #6b6b8f;
}

.live-class-page__lead {
    margin: 0.35rem 0 0;
    max-width: 48rem;
}

.live-class-page__crumb a {
    /* color: #6c63ff; */
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.live-class-page__crumb a:hover {
    text-decoration: underline;
}

.live-class-page__crumb-sep {
    margin: 0 0.35rem;
    color: #a0a0b8;
}

.live-class-page__crumb-current {
    font-weight: 700;
    color: #3b3b5c;
}

.live-class-page__intro {
    margin-bottom: 1.5rem;
}

.live-class-page__flash--error {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.live-class-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.live-class-panel__embed {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
    min-height: 320px;
    overflow: hidden;
    border: 1px solid #e8e6f2;
}

.live-class-panel__embed-placeholder {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f4f3ff 0%, #fff 55%);
}

.live-class-panel__embed-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #3b3b5c;
}

.live-class-panel__embed-text {
    margin: 0;
    font-size: 0.92rem;
    color: #6b6b8f;
    max-width: 22rem;
    line-height: 1.5;
}

.live-class-panel__aside {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 8px 28px rgba(80, 80, 120, 0.08);
    border: 1px solid #e8e6f2;
}

.live-class-aside__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #3b3b5c;
}

.live-class-aside__body {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a4a68;
}

.live-class-aside__list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4a4a68;
}

.live-class-aside__list code {
    font-size: 0.85em;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    background: #f4f4fb;
    border: 1px solid #e8e6f2;
}

.live-class-aside__hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #6b6b8f;
}

.live-class-aside__hint code {
    font-size: 0.85em;
}

.live-class-zoom-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.live-class-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.live-class-field__label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b3b5c;
}

.live-class-field__control {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d8d4f0;
}

.live-class-btn {
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 14px;
    padding: 0.7rem 1.2rem;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.live-class-btn--primary {
    background: linear-gradient(135deg, #2d8cff, #0b5cff);
    color: #fff;
}

.live-class-btn--primary:hover {
    filter: brightness(1.05);
}

.live-class-btn--secondary {
    background: #f0f2ff;
    color: #4a4a9e;
    border: 1px solid #d8d4f0;
}

.live-class-btn--ghost {
    background: rgba(255, 255, 255, 0.75);
    color: #4a3f9e;
    border: 1px solid rgba(216, 210, 245, 0.95);
}

.live-class-btn--accent {
    background: linear-gradient(135deg, #8b7fe8, #6c63ff);
    color: #fff;
}

.live-transcribe {
    padding: 1.35rem 1.45rem;
}

.live-transcribe__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.live-transcribe__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c6fe8;
}

.live-transcribe__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: #2f2f4a;
    letter-spacing: -0.02em;
}

.live-transcribe__sub {
    margin: 0;
    max-width: 36rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    color: #5c5c78;
}

.live-transcribe__status {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b4aa3;
    background: #e8ebf7;
    border: 1px solid rgba(216, 210, 245, 0.95);
}

.live-transcribe__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
}

.live-transcribe__dot {
    font-size: 0.65rem;
    margin-right: 0.35rem;
}

.live-transcribe__box {
    min-height: 11rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #e8e6f2;
    font-size: 1.15rem;
    line-height: 1.65;
    color: #2f2f4a;
}

.live-transcribe__placeholder {
    color: #9b9bb5;
    font-size: 0.95rem;
}

.live-transcribe__final {
    font-weight: 600;
    color: #1e1e36;
}

.live-transcribe__interim {
    color: #7a7a9a;
    font-weight: 500;
}

.live-transcribe__save {
    margin-top: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.live-transcribe__save-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 860px) {
    .live-transcribe__save-row {
        grid-template-columns: minmax(0, 1fr) 16rem;
        align-items: end;
    }
}

.live-transcribe__hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #6b6b8f;
}

.live-transcribe__unsupported {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    background: #fff4e6;
    color: #9a5b00;
    border-radius: 12px;
    font-size: 0.9rem;
}

.live-transcribe__divider {
    border: none;
    height: 1px;
    background: #e8e6f2;
    margin: 1.25rem 0 1.1rem;
}

.live-bilingual__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.live-bilingual__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c6fe8;
}

.live-bilingual__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #2f2f4a;
    letter-spacing: -0.02em;
}

.live-bilingual__sub {
    margin: 0;
    max-width: 44rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    color: #5c5c78;
}

.live-bilingual__actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.live-bilingual__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.live-bilingual__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 860px) {
    .live-bilingual__row {
        grid-template-columns: minmax(0, 1fr) 16rem;
        align-items: end;
    }
}

.live-bilingual__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 900px) {
    .live-bilingual__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.live-bilingual__box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.live-bilingual__label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b3b5c;
}

.live-bilingual__textarea {
    font: inherit;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #d8d4f0;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
    line-height: 1.55;
    min-height: 9.5rem;
    resize: vertical;
}

.live-bilingual__save {
    align-self: flex-start;
}

@media (max-width: 900px) {
    .live-class-panel {
        grid-template-columns: 1fr;
    }
}

/* Student — live class banner (teacher-posted join link) */
.student-live-broadcast {
    margin: 0 auto 1.25rem;
    max-width: 56rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.student-live-broadcast--top {
    position: sticky;
    top: 0;
    z-index: 90;
}

@keyframes student-live-blink {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75));
        opacity: 0.9;
    }
}

@keyframes student-live-pulse {
    0%,
    100% {
        box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
    }
    50% {
        box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45);
    }
}

.student-live-broadcast__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 55%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.student-live-broadcast__icon {
    font-size: 2rem;
    line-height: 1;
}

.student-live-broadcast__icon--blink {
    animation: student-live-blink 1.05s ease-in-out infinite;
}

.student-live-broadcast--top .student-live-broadcast__inner {
    animation: student-live-pulse 1.4s ease-in-out infinite;
}

.student-live-broadcast__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.student-live-broadcast__title {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.student-live-broadcast__meta {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.95;
    line-height: 1.4;
}

.student-live-broadcast__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-live-broadcast__cta:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

.math-page .student-live-broadcast,
.student-homework-page .student-live-broadcast,
.student-pronunciation-page .student-live-broadcast {
    padding-left: 0;
    padding-right: 0;
}

.student-profile-missing {
    margin: 0 auto 1.25rem;
    max-width: 56rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.student-profile-missing__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: #fff8e6;
    border: 1px solid #f59e0b;
    color: #78350f;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.student-profile-missing__icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.student-profile-missing__text {
    min-width: 0;
}

.student-profile-missing__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 1rem;
}

.student-profile-missing__meta {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    opacity: 0.95;
}

/* —— Live classroom: Google Classroom–inspired stream layout —— */
.live-class-page--gcr {
    min-height: calc(100vh - 120px);
}

.gcr-live {
    min-height: inherit;
}

.gcr-live__bar {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #fff;
    border-bottom: 1px solid #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.15);
}

.gcr-live__bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.gcr-live__bar-back {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5f6368;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.gcr-live__bar-back:hover {
    background: #f1f3f4;
    color: #202124;
}

.gcr-live__bar-back span {
    margin-left: 0.15rem;
}

.gcr-live__bar-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 12rem;
    min-width: 0;
}

.gcr-live__bar-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcr-live__bar-text {
    min-width: 0;
}

.gcr-live__bar-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6368;
    line-height: 1.2;
}

.gcr-live__bar-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
    color: #202124;
    letter-spacing: 0;
    line-height: 1.25;
    font-family: "Google Sans", "Segoe UI", system-ui, sans-serif;
}

.gcr-live__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-left: auto;
}

.gcr-live__end-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.gcr-live__end-select {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #202124;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 999px;
    padding: 0.4rem 0.6rem;
    max-width: 10.5rem;
}

.gcr-live__end-btn {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fff;
    border: 1px solid rgba(185, 28, 28, 0.35);
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.gcr-live__end-btn:hover {
    background: rgba(185, 28, 28, 0.08);
    transform: translateY(-1px);
}

.gcr-live__end-btn:active {
    transform: translateY(0);
}

.gcr-live__tab {
    font-size: 0.875rem;
    font-weight: 500;
    color: #5f6368;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 4px 4px 0 0;
    border-bottom: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.gcr-live__tab:hover {
    background: #f1f3f4;
    color: #202124;
}

.gcr-live__tab.is-active {
    color: #1967d2;
    border-bottom-color: #1967d2;
    cursor: default;
}

.gcr-live__alert {
    max-width: 1200px;
    margin: 0.75rem auto 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-sizing: border-box;
}

.gcr-live__alert--error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f9ab9e;
    margin-left: 1rem;
    margin-right: 1rem;
}

.gcr-live__alert--success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
    margin-left: 1rem;
    margin-right: 1rem;
}

.gcr-live__layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .gcr-live__layout {
        grid-template-columns: 1fr;
    }

    .gcr-live__tabs {
        width: 100%;
        margin-left: 0;
        border-top: 1px solid #f1f3f4;
        padding-top: 0.5rem;
    }
}

.gcr-live__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.gcr-live__stream-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.25), 0 2px 6px 2px rgba(60, 64, 67, 0.1);
}

.gcr-live__stream-avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: grid;
    place-items: center;
}

.gcr-live__stream-banner-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #3c4043;
}

.gcr-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.25), 0 2px 6px 2px rgba(60, 64, 67, 0.1);
    overflow: hidden;
}

.gcr-card--rail {
    padding: 1.1rem 1.15rem;
}

.gcr-card--rail + .gcr-card--rail {
    margin-top: 1rem;
}

.gcr-card__heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    font-family: "Google Sans", "Segoe UI", system-ui, sans-serif;
}

.gcr-card__text {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #5f6368;
}

.gcr-card__hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #b45309;
    background: #fffbeb;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

.gcr-card__hint code {
    font-size: 0.85em;
    padding: 0.05rem 0.25rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.gcr-card__fineprint {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #80868b;
}

.gcr-card__fineprint code {
    font-size: 0.85em;
    padding: 0.1rem 0.3rem;
    background: #f1f3f4;
    border-radius: 4px;
}

.gcr-card__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: #5f6368;
    line-height: 1.5;
}

.gcr-card__actions {
    margin-bottom: 0.75rem;
}

.gcr-card__actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.gcr-copy-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.gcr-copy-row__input {
    flex: 1;
    min-width: 0;
}

.gcr-copy-row__btn {
    flex-shrink: 0;
}

.live-class-homework-block {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e8eaed;
}

.live-class-homework-block__title {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #202124;
}

.live-class-homework-block__sub {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #5f6368;
}

.live-class-field__help {
    margin-top: -0.1rem;
    font-size: 0.75rem;
    color: #80868b;
    line-height: 1.35;
}

.live-class-field__error {
    margin: 0;
    font-size: 0.75rem;
    color: #c5221f;
}

.live-class-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.live-class-homework-block__checktext {
    font-size: 0.8125rem;
    color: #202124;
    line-height: 1.35;
}

.gcr-card__inline-form {
    display: inline;
    margin: 0;
}

.gcr-card__fine-inline {
    margin: -0.15rem 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #5f6368;
}

.gcr-card__field {
    margin-top: 0.5rem;
}

.gcr-card__form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8eaed;
}

.gcr-card--muted {
    background: #fafafa;
}

.gcr-live__rail {
    position: sticky;
    top: 56px;
    align-self: start;
}

@media (max-width: 960px) {
    .gcr-live__rail {
        position: static;
    }
}

/* GCR: transcription & bilingual inside cards */
.live-class-page--gcr .live-transcribe {
    padding: 1.15rem 1.2rem 1.25rem;
}

.live-class-page--gcr .live-transcribe__eyebrow,
.live-class-page--gcr .live-bilingual__eyebrow {
    color: #80868b;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.live-class-page--gcr .live-transcribe__title,
.live-class-page--gcr .live-bilingual__title {
    color: #202124;
    font-weight: 400;
    font-size: 1.125rem;
    font-family: "Google Sans", "Segoe UI", system-ui, sans-serif;
}

.live-class-page--gcr .live-transcribe__sub,
.live-class-page--gcr .live-bilingual__sub {
    color: #5f6368;
}

.live-class-page--gcr .live-transcribe__status {
    background: #e8f0fe;
    color: #1967d2;
    border: 1px solid #d2e3fc;
    font-weight: 500;
}

.live-class-page--gcr .live-transcribe__box {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    min-height: 140px;
}

.live-class-page--gcr .live-class-field__label {
    color: #5f6368;
    font-weight: 500;
    font-size: 0.8125rem;
}

.live-class-page--gcr .live-class-field__control {
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #202124;
}

.live-class-page--gcr .live-class-field__control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.live-class-page--gcr .live-class-btn {
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.live-class-page--gcr .live-class-btn--primary {
    background: #1a73e8;
    color: #fff;
    box-shadow: none;
}

.live-class-page--gcr .live-class-btn--primary:hover {
    background: #1765cc;
    filter: none;
}

.live-class-page--gcr .live-class-btn--secondary {
    background: #fff;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.live-class-page--gcr .live-class-btn--secondary:hover {
    background: #f8f9fa;
}

.live-class-page--gcr .live-class-btn--ghost {
    background: transparent;
    color: #1a73e8;
    border: 1px solid transparent;
}

.live-class-page--gcr .live-class-btn--ghost:hover {
    background: #f1f3f4;
}

.live-class-page--gcr .live-class-btn--accent {
    background: #0f9d58;
    color: #fff;
    box-shadow: none;
}

.live-class-page--gcr .live-class-btn--accent:hover {
    background: #0c7c45;
    filter: none;
}

.live-class-page--gcr .live-bilingual__textarea {
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
}

.live-class-page--gcr .live-transcribe__hint {
    color: #80868b;
}

.live-class-page--gcr .live-transcribe__divider {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 1.25rem 0;
}

.live-class-page--gcr .live-bilingual {
    padding:10px;
}

.live-class-page--gcr .live-bilingual__head {
    margin-bottom: 1rem;
}