:root {
    --color-bg: #f7f8fa;
    --color-surface: #ffffff;
    --color-border: #e2e5ea;
    --color-text: #1c1f26;
    --color-text-muted: #6b7280;
    --color-primary: #2f6feb;
    --color-primary-hover: #2559c4;
    --color-error-bg: #fdecec;
    --color-error-text: #a4262c;
    --radius: 6px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: linear-gradient(#e1f5fe, #81d4fa);
    background-attachment: fixed;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
}

/* --- Auth pages (login, contact) --------------------------------- */

.auth-page {
    max-width: 380px;
    margin: 10vh auto 0;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.auth-page h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

.auth-page form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-page label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.auth-page input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.auth-page button {
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
}

.auth-page button:hover {
    background: var(--color-primary-hover);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* --- Public landing page -------------------------------------------- */

.landing {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.landing-nav__inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.landing-nav__links a:not(.landing-btn) {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.landing-nav__links a:not(.landing-btn):hover {
    color: var(--color-primary);
}

.landing-brand img {
    height: 38px;
    display: block;
}

.landing-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.landing-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.landing-hero h1 {
    font-size: 2.6rem;
    line-height: 1.12;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.landing-hero__sub {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 1.75rem;
}

.landing-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.landing-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.landing-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.landing-btn--primary:hover {
    background: var(--color-primary-hover);
}

.landing-btn--ghost {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
}

.landing-btn--ghost:hover {
    border-color: var(--color-primary);
}

.landing-feature__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.landing-section {
    margin: 0 0 3rem;
}

.landing-section__title {
    text-align: center;
    font-size: 1.7rem;
    margin: 0 0 1.75rem;
}

.landing-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.landing-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
}

.landing-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.landing-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.landing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.landing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.landing-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.landing-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.landing-final {
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
}

.landing-final h2 {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
}

.landing-final p {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
}

html {
    scroll-behavior: smooth;
}

/* Screenshot frame + placeholder, with a soft glow behind so real images (or
   the placeholders) float and blend into the page rather than sitting flat. */
.landing-shot-wrap {
    position: relative;
    margin: 0;
}

.landing-shot-wrap::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 8%;
    bottom: -6%;
    background: radial-gradient(60% 60% at 50% 40%, rgba(47, 111, 235, 0.35), transparent 70%);
    filter: blur(38px);
    z-index: 0;
}

.landing-shot {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 60px rgba(20, 40, 80, 0.22);
    background: var(--color-surface);
    overflow: hidden;
}

.landing-shot--placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-style: dashed;
    background:
        repeating-linear-gradient(45deg, rgba(47, 111, 235, 0.05) 0 14px, rgba(47, 111, 235, 0.09) 14px 28px);
}

.landing-shot--wide {
    aspect-ratio: 16 / 8;
}

.landing-hero__shot {
    margin-top: 2.75rem;
}

/* Highlight tiles (grades / languages / alignment / trust) */
.landing-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 0 3.5rem;
}

.landing-highlight {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-highlight__big {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.landing-highlight span:last-child {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Big promotional banner: copy + report screenshots on a bold field */
.landing-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: #fff;
    border-radius: 18px;
    padding: 2.75rem;
    margin: 0 0 3.5rem;
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.3);
}

.landing-banner h2 {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0.35rem 0 0.9rem;
}

.landing-banner p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 1.1rem;
}

.landing-banner .landing-feature__eyebrow {
    color: #90caf9;
}

.landing-banner__shots {
    display: grid;
    gap: 1.1rem;
}

.landing-banner__shots .landing-shot-wrap::before {
    background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.28), transparent 70%);
}

.landing-banner__shots .landing-shot--placeholder {
    color: #e3f2fd;
    border-color: rgba(255, 255, 255, 0.5);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 14px, rgba(255, 255, 255, 0.13) 14px 28px);
}

.landing-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.landing-checklist li {
    position: relative;
    padding-left: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.landing-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Save-time band: copy + one screenshot */
.landing-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 0 0 3.5rem;
}

.landing-band h2 {
    font-size: 1.7rem;
    margin: 0 0 0.75rem;
}

.landing-band p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
}

/* Trust / testimonial */
.landing-trust {
    text-align: center;
    margin: 0 0 3.5rem;
}

.landing-trust__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
}

.landing-quote {
    max-width: 680px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.landing-quote p {
    font-size: 1.15rem;
    line-height: 1.5;
    font-style: italic;
    margin: 0 0 0.75rem;
}

.landing-quote cite {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: normal;
}

#how-it-works {
    scroll-margin-top: 84px;
}

@media (max-width: 900px) {
    .landing-banner,
    .landing-band { grid-template-columns: 1fr; }
    .landing-banner { padding: 2rem; }
    .landing-highlights,
    .landing-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .landing-hero h1 { font-size: 2rem; }
    .landing-banner h2 { font-size: 1.5rem; }
    .landing-steps,
    .landing-cards,
    .landing-highlights { grid-template-columns: 1fr; }
}

/* --- Public homepage (legacy simple variant) ------------------------ */

.home-page {
    max-width: 480px;
    margin: 20vh auto 0;
    padding: 2rem;
    text-align: center;
}

.home-page h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.home-page__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.home-page__links a {
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.home-page__links a:hover {
    background: var(--color-surface);
}

/* --- Legal / policy pages ------------------------------------------- */

.legal-page {
    max-width: 820px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.legal-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.25rem;
}

.legal-box h1 {
    margin-top: 0;
}

/* --- Contact page --------------------------------------------------- */

.contact-page {
    max-width: 560px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.25rem;
}

.contact-card h1 {
    margin-top: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.contact-field input,
.contact-field textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    width: 100%;
}

.contact-field textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
}

/* Honeypot — kept off-screen so people never see it, but bots still fill it. */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Quote request page ----------------------------------------------- */

.quote-page {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.quote-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.25rem;
}

.quote-card h1 {
    margin-top: 0;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin-top: 1.25rem;
}

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.quote-field--full {
    grid-column: 1 / -1;
}

.quote-field input:not([type="checkbox"]),
.quote-field select,
.quote-field textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    width: 100%;
}

.quote-field textarea {
    resize: vertical;
}

.quote-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
}

.quote-checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.quote-checkbox-item span {
    white-space: nowrap;
}

button.quote-field--full {
    align-self: flex-start;
    justify-self: start;
}

@media (max-width: 560px) {
    .quote-form {
        grid-template-columns: 1fr;
    }
}

/* --- Auth cards (login, forgot password, change password) ------------ */

.auth-shell {
    max-width: 420px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}

.auth-card__logo {
    height: 52px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
}

.auth-card h1 {
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
    margin-top: 0.5rem;
}

.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.auth-card input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    width: 100%;
}

.auth-card__submit {
    width: 100%;
    text-align: center;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.auth-card .alert {
    text-align: left;
    margin-bottom: 0.85rem;
}

.auth-card__links {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.auth-card__hint {
    margin: 0.85rem 0 0;
    text-align: center;
}

/* --- Authenticated app shell --------------------------------------- */

.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.app-nav__brand {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
}

.app-nav__brand img {
    height: 32px;
    width: auto;
    display: block;
}

.app-nav__links {
    display: flex;
    gap: 1.25rem;
}

.app-nav__links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
}

.app-nav__links a:hover {
    color: var(--color-primary);
}

.app-nav__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.app-nav__logout-form button {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.app-nav__logout-form button:hover {
    background: var(--color-bg);
}

.app-nav__dropdown {
    position: relative;
}

.app-nav__dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 0;
}

.app-nav__dropdown-toggle:hover {
    color: var(--color-primary);
}

.app-nav__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* No margin-top here on purpose: margin sits outside the hoverable
       box, so a gap here would let the cursor leave both the button and
       the menu while moving between them, dropping :hover and closing
       the menu before it can be clicked. Padding-top instead keeps the
       same visual spacing while staying inside the hoverable area. */
    padding-top: 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    min-width: 170px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.app-nav__dropdown--right .app-nav__dropdown-menu {
    left: auto;
    right: 0;
}

.app-nav__dropdown:hover .app-nav__dropdown-menu,
.app-nav__dropdown:focus-within .app-nav__dropdown-menu {
    display: block;
}

.app-nav__dropdown-menu a,
.app-nav__dropdown-menu .app-nav__logout-form button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.app-nav__dropdown-menu a:hover,
.app-nav__dropdown-menu .app-nav__logout-form button:hover {
    background: var(--color-bg);
}

.app-nav__logout-form {
    margin: 0;
}

/* --- Footer, shared across every page ------------------------------- */

.app-footer {
    max-width: 960px;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.app-footer__links {
    display: flex;
    gap: 1rem;
}

.app-footer__links a {
    color: var(--color-text-muted);
}

.app-footer__links a:hover {
    color: var(--color-primary);
}

.app-content {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.alert-success {
    background: #e6f7ec;
    color: #1e6b3c;
}

.alert-warning {
    background: #fff6e5;
    color: #8a5a00;
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.add-students-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.add-students-section h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.manual-student-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 420px;
}

.manual-student-form label,
.add-students-section > form > label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.manual-student-form input[type="text"],
.manual-student-form select,
.add-students-section input[type="file"] {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.assessment-fieldset {
    margin-top: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.assessment-fieldset legend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.4rem;
}

.checkbox-label {
    display: block;
    font-weight: 400 !important;
    margin-top: 0.4rem !important;
}

.multi-student-form__shared {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.multi-student-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.multi-student-form__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.multi-student-form__row > div {
    flex: 1 1 220px;
}

.multi-student-form__shared label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.multi-student-form__shared input[type="text"],
.multi-student-form__shared select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.student-rows-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.student-rows-table th,
.student-rows-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    text-align: left;
}

.student-rows-table input[type="text"],
.student-rows-table select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.student-rows-table input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.student-rows-table td:last-child button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    background: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
}

.student-rows-table td:last-child button:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

#add-student-row {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

#add-student-row:hover {
    background: var(--color-bg);
}

.add-students-section button {
    margin-top: 1.25rem;
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
}

.add-students-section button:hover {
    background: var(--color-primary-hover);
}

.overview-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.term-banner {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.term-banner__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.term-banner__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.term-banner__value {
    font-size: 1.1rem;
    font-weight: 700;
}

.school-filter {
    margin: 1rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.school-filter select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.grade-level-input {
    width: 70px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.grade-level-input:disabled,
.curriculum-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--color-surface);
}

.overview-table button[type="submit"] {
    padding: 0.35rem 0.75rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
}

.overview-table button[type="submit"]:hover {
    background: var(--color-primary-hover);
}

/* Shared box for the selected school AND class name/rename/delete — the
   class header is a visually-divided continuation of the same box (see
   .manage-class below), not a separate one. The student roster itself
   lives in its own .manage-students box underneath. */
.manage-selection {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.manage-school__header,
.manage-class__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.manage-school__header h2 {
    margin: 0;
}

/* Small muted label placed before the school/class name itself, in both
   the editable (form) and read-only (h2/h3) states. */
.manage-name-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 0.35rem;
}

.manage-class {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.manage-class__header h3 {
    margin: 0;
    font-size: 1rem;
}

/* Separate box below .manage-selection for the class's student roster. Sized
   to the table's own natural width (width: max-content), NOT the page's
   960px content column — the table's columns (several <select>s with their
   own min-width) can need more room than that, and it's fine for this box
   to end up wider than the school/class box above it rather than scrolling
   inside a cramped one. */
.manage-students {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    width: max-content;
}

.manage-students .overview-table {
    margin-bottom: 0;
}

.inline-rename-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-rename-form input[type="text"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.inline-rename-form button {
    padding: 0.4rem 0.8rem;
    border: none;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
}

.inline-rename-form button:hover {
    background: var(--color-primary-hover);
}

.delete-button {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
}

.delete-button:hover {
    background: var(--color-error-text);
    color: #fff;
}

.manage-student {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.manage-student:last-child {
    border-bottom: none;
}

.manage-student__edit-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.manage-student__edit-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    gap: 0.25rem;
}

.manage-field {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    min-width: 100px;
}

.manage-student__active-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem !important;
}

.overview-table .row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manage-student__edit-form button {
    padding: 0.45rem 0.9rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
}

.manage-student__edit-form button:hover {
    background: var(--color-primary-hover);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.overview-table th,
.overview-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    vertical-align: top;
}

.overview-table th {
    background: var(--color-bg);
    font-weight: 600;
}

.overview-table tbody tr:last-child td {
    border-bottom: none;
}

/* Overview page's status table (scoped with --status so it never touches the
   shared .overview-table used on Update Students). Rules come after the base
   .overview-table rules above so, at equal specificity, they win. */
.overview-table--status th,
.overview-table--status td {
    text-align: center;
    vertical-align: middle;
}

.overview-table--status th {
    background: #000;
    color: #fff;
    font-size: 1rem;
}

/* Alternating background per CLASS GROUP (assigned in the view, since a
   group spans a variable number of rows): white, then #E3F9FF. */
.overview-table--status tbody tr.overview-group--a td {
    background-color: #ffffff;
}
.overview-table--status tbody tr.overview-group--b td {
    background-color: #E3F9FF;
}

/* Status text colors (font only — the row background comes from the stripes). */
.overview-table--status td.status-good { color: #1f8a34; font-weight: 600; }
.overview-table--status td.status-bad { color: #c0392b; font-weight: 600; }
.overview-table--status td.status-warn { color: #b8860b; font-weight: 600; }
/* Digital "N/A" (bubble sheets column for online_digital classes): black. */
.overview-table--status td.status-na { color: #000; font-weight: 600; }

/* Warning icon next to "x/x uploaded" when some student has a partial
   (missing-page) bubble sheet scan — same red as status-bad. */
.missing-pages-warning {
    color: #c0392b;
    margin-left: 4px;
    cursor: help;
}

.placeholder-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Assessments download page ------------------------------------- */

.assessment-page-columns {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.assessment-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    min-width: 320px;
}

.assessment-panel--download {
    flex: 2 1 480px;
}

.assessment-panel--upload {
    flex: 1 1 300px;
}

.assessment-panel h2 {
    margin-top: 0;
}

.assessment-filters {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.assessment-filters > div,
.assessment-filters__field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

/* The browser's own [hidden] { display: none } rule is user-agent origin,
   so author-origin rules like the one above always beat it regardless of
   specificity — without this, an .assessment-filters__field with the
   hidden attribute still renders (just empty), which is exactly what was
   happening on this page. Higher-specificity than the plain class alone
   ([class] + [hidden] = two selectors) so it wins correctly. */
.assessment-filters__field[hidden] {
    display: none;
}

.assessment-filters label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    width: 140px;
    flex-shrink: 0;
}

.assessment-filters select {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    flex: 1;
    max-width: 260px;
}

.download-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100px;
    height: 130px;
    padding: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* .download-box sets display:flex, which (author origin) would otherwise beat
   the UA [hidden] rule and keep a hidden box visible — same trap as
   .assessment-filters__field[hidden]. Higher specificity restores hiding. */
.download-box[hidden] {
    display: none;
}

.download-box img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.download-box:hover {
    transform: scale(1.06);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 8px 22px;
}

/* Unavailable: grey the CONTENTS (not the box) so the hover reason overlay
   stays crisp, and don't enlarge on hover. */
.download-box--disabled {
    cursor: not-allowed;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 3px 8px;
}

.download-box--disabled img,
.download-box--disabled > span {
    opacity: 0.35;
    filter: grayscale(1);
}

.download-box--disabled:hover {
    transform: none;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 3px 8px;
}

/* Reason text, revealed on hover over a greyed box (content from data-reason). */
.download-box--disabled::after {
    content: attr(data-reason);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.download-box--disabled:hover::after {
    opacity: 1;
}

/* --- Reports page --------------------------------------------------- */

.report-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 1rem 0 1.25rem;
}

.report-tab {
    padding: 0.55rem 1.1rem;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius) var(--radius) 0 0;
}

.report-tab--active {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
}

.report-controls {
    max-width: 420px;
}

/* Report download buttons reuse the standard 100x130 .download-box styling
   (same as the Assessments page) — no size/layout override here. */

.curriculum-select {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

/* --- Student Assessments: bulk registration + per-type roster cell --- */

.assessment-bulk-registration {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.assessment-bulk-registration h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.assessment-bulk-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.assessment-bulk-form:last-child {
    margin-bottom: 0;
}

.assessment-bulk-form select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.assessment-bulk-form button[type="submit"] {
    padding: 0.4rem 0.8rem;
    border: none;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
}

.assessment-bulk-form button[type="submit"]:hover {
    background: var(--color-primary-hover);
}

.assessment-bulk-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.assessment-bulk-form.delete-form button[type="submit"] {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
}

.assessment-bulk-form.delete-form button[type="submit"]:hover {
    background: var(--color-error-text);
    color: #fff;
}

/* --- Bubble sheet upload --------------------------------------------- */

#bubble-sheet-upload-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

#bubble-sheet-upload-form button {
    padding: 0.55rem 1.2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
}

#bubble-sheet-upload-form button:hover {
    background: var(--color-primary-hover);
}

.upload-progress-bar {
    width: 100%;
    max-width: 500px;
    height: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

#upload-error-summary {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border-radius: var(--radius);
    max-width: 600px;
}

#upload-error-summary h3 {
    margin-top: 0;
    font-size: 1rem;
}

#upload-error-list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.term-banner__next {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.assessment-hidden {
    display: none;
}

.registration-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.registration-summary__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.registration-summary__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.registration-summary__value {
    font-size: 0.95rem;
    font-weight: 600;
}

.student-edit-row td {
    background: var(--color-bg);
    padding: 1rem;
}

.student-edit-row .manage-student__edit-form {
    border-bottom: none;
    padding: 0;
}

/* Re-asserts the red delete styling at matching specificity to
   .overview-table button[type="submit"] (added for a different page's
   Save button) — that rule was otherwise silently overriding
   .delete-button's colors whenever a delete button sits inside this
   table, same category of bug as the earlier Remove-button issue. */
.overview-table button.delete-button {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
}

.overview-table button.delete-button:hover {
    background: var(--color-error-text);
    color: #fff;
}


/* --- System Admin Dashboard: visually distinct on purpose ------------ */

.system-admin-nav {
    background: #1c1f26;
    border-bottom: 1px solid #333;
}

.system-admin-nav .app-nav__brand,
.system-admin-nav .app-nav__links a,
.system-admin-nav .app-nav__username {
    color: #fff;
}

.system-admin-nav .app-nav__links a:hover {
    color: #7db8ff;
}

.system-admin-nav .app-nav__logout-form button {
    background: none;
    border: 1px solid #555;
    color: #fff;
}

.system-admin-nav .app-nav__logout-form button:hover {
    background: #333;
}

.system-admin-body {
    background: #f0f2f5;
}

/* --- Owner account creation + registration -------------------------- */

.account-creation-form {
    max-width: 520px;
}

/* Small link styled as a button (e.g. "+ Add User"). */
.button-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.button-link:hover {
    background: var(--color-primary-hover);
}

.button-link--small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.button-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.account-creation-form > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.account-creation-form input[type="text"],
.account-creation-form input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

/* Scrollable terms box on the registration page — keeps a long agreement
   from pushing the password fields off-screen. */
.registration-terms {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--color-bg);
    font-size: 0.85rem;
}

.registration-terms h2 {
    margin-top: 0;
    font-size: 1rem;
}

/* --- User Management: filters, role/account reference, edit modal ----- */

.button-link--secondary {
    background: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.button-link--secondary:hover {
    background: var(--color-bg);
}

.user-help {
    margin: 0 0 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

.user-help summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-help__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.user-help__grid > div {
    flex: 1 1 320px;
}

.user-help__grid h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.user-help__hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.user-help__grid ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.user-help__grid li {
    margin-bottom: 0.35rem;
}

/* Modal sets display:flex, so the UA [hidden] rule needs the same override
   the download boxes use to stay hidden. */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__panel {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.modal__panel h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.modal__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.modal__grid input,
.modal__grid select {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
}

.modal__assign {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.modal__assign-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal__add-school {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.modal__add-school label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.modal__add-school select {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

/* Confirm dialog (confirm-modal.js) — a short message + two buttons
   doesn't need the edit-form modal's full width. */
.modal__panel--confirm {
    max-width: 420px;
}

.modal__panel--confirm p {
    margin: 0 0 1rem;
}

.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.class-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem 0.75rem;
    margin-bottom: 0.75rem;
}

.class-group legend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.4rem;
}

.class-group .checkbox-item {
    display: flex;
    margin-top: 0.3rem;
}
