body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.teacher-shell {
    width: min(1080px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.teacher-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 248, 0.92));
    border: 1px solid rgba(216, 224, 239, 0.95);
    border-radius: 28px;
    box-shadow: 0 22px 54px rgba(20, 33, 61, 0.14);
    padding: 28px;
}

.teacher-hero {
    margin-bottom: 20px;
}

.teacher-kicker {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d556b;
}

.teacher-hero h1,
.teacher-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #17283b;
}

.teacher-copy {
    margin: 12px 0 0;
    color: #425466;
    font-size: 1rem;
}

.teacher-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 26px 0 0;
}

.teacher-grid-submenu {
    margin-top: 22px;
}

.teacher-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(920px, 100%);
    margin: 38px auto 0;
}

.teacher-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(920px, 100%);
    min-height: 96px;
    padding: 20px 26px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(20, 33, 61, 0.18);
    text-align: left;
}

.teacher-button-compact {
    width: 100%;
    min-height: 84px;
    padding: 18px 22px;
}

.teacher-button strong {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.2;
}

.teacher-button small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.97rem;
    line-height: 1.4;
}

.teacher-button-slate {
    background: linear-gradient(135deg, #607d8b, #78909c);
}

.teacher-button-forest {
    background: linear-gradient(135deg, #5c7a67, #789784);
}

.teacher-button-copper {
    background: linear-gradient(135deg, #9b6b52, #bb8970);
}

.teacher-button-ink {
    background: linear-gradient(135deg, #4a5568, #657287);
}

.teacher-button-steel {
    background: linear-gradient(135deg, #55708c, #708aa4);
}

.teacher-button-plum {
    background: linear-gradient(135deg, #7a5a7d, #957397);
}

.teacher-button-moss {
    background: linear-gradient(135deg, #708b4a, #8aa463);
}

.teacher-button-charcoal {
    background: linear-gradient(135deg, #5a5a63, #74747d);
}

.teacher-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.teacher-link,
.teacher-logout,
.teacher-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #17324d;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.teacher-link.secondary,
.teacher-logout {
    background: #e9eef5;
    color: #17324d;
}

.teacher-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.teacher-form label {
    font-weight: 700;
    color: #17324d;
}

.teacher-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c7d4ea;
    border-radius: 14px;
    font-size: 1rem;
}

.teacher-status {
    min-height: 24px;
    margin: 6px 0 0;
    color: #8a4b2a;
    font-weight: 700;
}

.teacher-status.ok {
    color: #325f44;
}

.section-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.section-card {
    padding: 22px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid #d8e0ef;
}

.section-card h2 {
    margin: 0 0 8px;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.print-link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    color: #143c7d;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #d8e0ef;
}

.print-link:hover,
.teacher-button:hover,
.teacher-link:hover,
.teacher-logout:hover,
.teacher-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .teacher-shell {
        width: calc(100vw - 20px);
        padding-top: 18px;
    }

    .teacher-card,
    .section-card {
        padding: 20px;
    }

    .teacher-button {
        width: 100%;
        min-height: 88px;
        padding: 18px 18px;
    }

    .teacher-button-compact {
        min-height: 80px;
    }

    .teacher-button small {
        font-size: 0.92rem;
    }

    .teacher-secondary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 30px;
    }

    .teacher-links {
        flex-direction: column;
    }

    .teacher-link,
    .teacher-logout,
    .teacher-submit {
        width: 100%;
    }
}
