:root {
    --bg: #f3efe6;
    --bg-top: #faf6ef;
    --surface: #fffdf8;
    --surface-strong: #fffaf0;
    --white: #fff;
    --surface-warm: #fffaf3;
    --surface-warm-soft: #f8f3ea;
    --surface-warm-alt: #f7f1e7;
    --surface-warm-note: #fff7ef;
    --surface-warm-tint: #f4eee1;
    --surface-warm-strong: #ead9bd;
    --surface-answer-gradient-end: #f7f0e2;
    --surface-warm-gradient-start: #fbf7ef;
    --surface-warm-gradient-end: #f5eddf;
    --scrollbar-track: #f8f4ec;
    --scrollbar-thumb: #c9bcaa;
    --surface-select-gradient-end: #f8efe1;
    --surface-panel-gradient-start: #faf5ec;
    --surface-panel-gradient-end: #f6eee0;
    --surface-gold-gradient-start: #efe0c6;
    --surface-gold-gradient-end: #e8d5b5;
    --surface-stamp-gradient-start: #f8f1e4;
    --surface-stamp-gradient-end: #f2e6d4;
    --surface-accordion: #fcf8f1;
    --surface-icon-soft: #f1e7d6;
    --surface-soft-overlay: rgba(255, 255, 255, 0.68);
    --text: #1f2933;
    --muted: #5f6c72;
    --line: #e0d7c8;
    --line-soft: #e5d8c6;
    --line-warm: #cdbfa9;
    --line-warm-soft: #dcc9aa;
    --line-warm-strong: #ccb493;
    --line-warm-gold: #cfb48c;
    --line-select: #d8c6ae;
    --line-select-focus: #b98a5a;
    --accent: #9f3a3d;
    --accent-dark: #7b292c;
    --accent-soft: rgba(159, 58, 61, 0.12);
    --accent-contrast: #8f6641;
    --success: #2f6f49;
    --success-bright: #2f8f4e;
    --success-soft: #e9f4ed;
    --error: #a1262f;
    --error-soft: #fbeaec;
    --danger-border: #e3b5ae;
    --danger-bg: #fff5f3;
    --danger-bg-hover: #fdebe8;
    --danger-text: #a54a3f;
    --danger-text-dark: #8d3a31;
    --danger-border-hover: #d79b92;
    --grade-ink: #7d252d;
    --neutral-border: #b9c0c5;
    --neutral-fill: #f0f2f4;
    --neutral-text: #8a949b;
    --toggle-track: #e6ddd0;
    --soft-meta: #a48f74;
    --success-fill: #e8f5ea;
    --flash-border: rgba(255, 255, 255, 0.18);
    --sticky-save-bg: rgba(123, 41, 44, 0.86);
    --floating-success-bg: rgba(47, 111, 73, 0.9);
    --focus-ring: rgba(159, 58, 61, 0.15);
    --focus-ring-warm: rgba(195, 142, 79, 0.16);
    --focus-ring-warm-strong: rgba(195, 142, 79, 0.18);
    --shadow: 0 18px 38px rgba(31, 41, 51, 0.08);
    --shadow-soft: 0 10px 24px rgba(31, 41, 51, 0.05);
    --shadow-subtle: 0 10px 24px rgba(31, 41, 51, 0.04);
    --shadow-card: 0 10px 24px rgba(31, 41, 51, 0.06);
    --shadow-float: 0 16px 34px rgba(31, 41, 51, 0.18);
    --shadow-sticky: 0 -10px 28px rgba(31, 41, 51, 0.22);
    --shadow-select: 0 10px 24px rgba(91, 63, 28, 0.08);
    --shadow-card-subtle: 0 8px 18px rgba(31, 41, 51, 0.04);
    --shadow-pill: 0 1px 4px rgba(31, 41, 51, 0.18);
    --shadow-accent: 0 10px 24px rgba(159, 58, 61, 0.18);
    --shadow-sticky-panel: 0 18px 34px rgba(31, 41, 51, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    overflow-y: scroll;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(159, 58, 61, 0.08), transparent 30%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

html {
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
    width: 14px;
}

html::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 3px solid var(--scrollbar-track);
}

a {
    color: var(--accent-dark);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 18px 20px;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-brand__logo {
    display: block;
    width: 256px;
    max-width: 70vw;
    height: auto;
    position: relative;
    top: 5px;
}

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 18px;
    text-decoration: none;
    color: var(--muted);
}

.site-nav a + a {
    border-left: 1px solid var(--line);
}

.site-nav a:first-child {
    padding-left: 0;
}

.site-nav__form {
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.site-nav__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 56px;
    width: 100%;
    flex: 1 0 auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    margin-top: 24px;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__brand {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer__brand a {
    color: var(--accent-dark);
    text-decoration: none;
}

.site-footer__brand a:hover {
    text-decoration: underline;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer__nav a {
    text-decoration: none;
    color: var(--accent-dark);
}

.hero-card,
.auth-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 40px;
}

.auth-card {
    max-width: 560px;
    margin: 20px auto 0;
    padding: 32px;
}

.auth-card--wide {
    max-width: 820px;
}

.panel {
    padding: 32px;
}

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.breadcrumbs {
    min-height: 1.25rem;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs__item {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
    overflow-wrap: anywhere;
}

.breadcrumbs__separator {
    flex: 0 0 auto;
    color: var(--soft-meta);
}

.breadcrumbs__link {
    color: var(--accent-dark);
    text-decoration: none;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
}

.breadcrumbs__current {
    color: var(--muted);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.info-card--content-height {
    align-self: start;
}

.info-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    background: var(--surface-strong);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.teacher-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.teacher-hub-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-warm-gradient-start) 0%, var(--surface-warm-gradient-end) 100%);
    box-shadow: var(--shadow-soft);
}

.teacher-hub-card h2 {
    margin-bottom: 10px;
}

.teacher-hub-card__eyebrow {
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.teacher-hub-card__meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.help-page {
    background:
        radial-gradient(circle at top right, rgba(161, 38, 47, 0.06) 0, rgba(161, 38, 47, 0.06) 180px, transparent 181px),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-warm-gradient-start) 100%);
}

.help-intro {
    max-width: 68ch;
    margin: 0;
    color: var(--text);
    line-height: 1.78;
    font-size: 1.18rem;
}

.help-toc__list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
    line-height: 1.7;
}

.help-toc__text-link {
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1.08rem;
}

.help-toc__text-link:hover {
    text-decoration: underline;
}

.help-section {
    scroll-margin-top: 24px;
}

.help-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.help-back-link {
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.help-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-warm-gradient-start) 0%, var(--surface-warm-gradient-end) 100%);
    box-shadow: var(--shadow-soft);
}

.help-card h3 {
    margin-bottom: 10px;
}

.help-section h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 1.22rem;
}

.help-section p {
    max-width: 72ch;
    line-height: 1.78;
    color: var(--text);
    font-size: 1.08rem;
}

.help-card p:last-child {
    margin-bottom: 0;
}

.help-steps,
.help-list {
    margin: 0;
    padding-left: 22px;
    max-width: 72ch;
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    line-height: 1.7;
    font-size: 1.06rem;
}

.help-list strong,
.help-steps strong {
    color: var(--accent-dark);
}

.help-section .help-steps + p,
.help-section .help-list + p {
    margin-top: 22px;
}

@media (max-width: 760px) {
    .help-section__header {
        align-items: flex-start;
    }
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.home-hero__main,
.home-student-entry {
    height: auto;
}

.home-side-entry {
    display: grid;
    gap: 18px;
}

.home-side-entry .eyebrow {
    align-self: flex-start;
}

.home-hero__main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(161, 38, 47, 0.1) 0, rgba(161, 38, 47, 0.1) 110px, transparent 111px),
        radial-gradient(circle at 78% 72%, rgba(157, 117, 42, 0.12) 0, rgba(157, 117, 42, 0.12) 84px, transparent 85px),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-warm-gradient-end) 100%);
}

.home-hero__main::after {
    content: '';
    position: absolute;
    inset: auto -40px -56px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(91, 33, 36, 0.05);
}

.home-hero__main > * {
    position: relative;
    z-index: 1;
}

.home-hero__main h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.home-hero__lead {
    margin-bottom: 12px;
    max-width: 58ch;
    font-size: 1.13rem;
    line-height: 1.72;
    color: var(--text);
}

.home-hero__sublead {
    margin-bottom: 24px;
    max-width: 56ch;
    color: var(--muted);
    line-height: 1.65;
}

.home-hero__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-highlight-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-subtle);
}

.home-highlight-card h2 {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.3;
}

.home-highlight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.home-hero__actions {
    align-items: center;
}

.home-student-entry {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(180deg, var(--surface-warm-gradient-start) 0%, var(--surface-warm-gradient-end) 100%);
    box-shadow: var(--shadow-soft);
}

.home-student-entry h2,
.home-teacher-note h2,
.home-spotlight h2 {
    margin-bottom: 10px;
}

.home-student-entry p,
.home-teacher-note p,
.home-spotlight p {
    color: var(--text);
    line-height: 1.7;
}

.home-student-entry__lead {
    margin-bottom: 0;
}

.home-teacher-entry {
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.home-teacher-register {
    background: linear-gradient(180deg, var(--surface-warm-gradient-start) 0%, var(--surface-warm-gradient-end) 100%);
    box-shadow: var(--shadow-soft);
}

.home-student-entry__form {
    margin-top: 18px;
}

.home-teacher-entry__form {
    margin-top: 6px;
}

.home-student-entry__button {
    margin-top: 6px;
    width: 100%;
    justify-content: center;
}

.home-teacher-entry__button,
.home-teacher-entry__register {
    width: 100%;
    justify-content: center;
}

.home-teacher-entry__button {
    margin-top: 6px;
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: var(--shadow-subtle);
}

.home-teacher-entry__register {
    margin-top: 6px;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-subtle);
}

.home-teacher-entry__button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.home-teacher-entry__register:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.home-overview {
    margin-top: 20px;
}

.home-step-list {
    display: grid;
    gap: 18px;
}

.home-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
}

.home-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
}

.home-step h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.home-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.home-feature-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    color: var(--text);
}

.home-feature-list li {
    position: relative;
    padding-left: 28px;
    line-height: 1.65;
}

.home-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.home-overview .panel__header h2 {
    margin-top: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.78fr);
    gap: 52px;
    align-items: center;
    padding: 34px 0 42px;
}

.home-hero__intro {
    align-self: start;
    max-width: 690px;
}

.home-kicker {
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0;
}

.home-hero__intro h1 {
    max-width: none;
    margin: 0 0 22px;
    font-size: clamp(2.25rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 650;
}

.home-hero__lead {
    max-width: 60ch;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1.68;
}

.home-hero__sublead {
    max-width: 62ch;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.home-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    color: var(--text);
    list-style: none;
    font-size: 0.98rem;
    font-weight: 650;
}

.home-hero__facts li {
    position: relative;
    padding-left: 21px;
}

.home-hero__facts li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}

.home-access {
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.home-access__student,
.home-access__teacher {
    padding: 25px 26px;
}

.home-access__student {
    background: var(--neutral-fill);
}

.home-access__teacher {
    border-top: 1px solid var(--line);
}

.home-access h2 {
    margin-bottom: 7px;
    font-size: 1.24rem;
}

.home-access h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.home-access p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-access .form-stack {
    gap: 10px;
}

.home-access .home-student-entry__form,
.home-access .home-teacher-entry__form {
    margin-top: 15px;
}

.home-access .home-student-entry__form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.home-access .home-student-entry__form .field {
    min-width: 0;
}

.home-access .home-student-entry__form .home-access__button {
    width: auto;
    white-space: nowrap;
}

.home-access__button {
    width: 100%;
}

.home-access__teacher .home-teacher-entry__form > .button {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 700;
}

.home-access__teacher .home-teacher-entry__form > .button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.home-access__account-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.home-access__account-links a {
    font-size: 1rem;
}

.home-access__teacher--logged-in {
    padding-top: 28px;
    padding-bottom: 28px;
}

.home-access__logged-in-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.home-section {
    margin-top: 76px;
}

.home-hero + .home-section {
    margin-top: 48px;
}

.home-section__heading {
    max-width: 760px;
    margin-bottom: 29px;
}

.home-section__heading h2,
.home-subjects__intro h2 {
    margin-bottom: 14px;
    font-size: 2.15rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.home-section__heading > p:last-child,
.home-subjects__intro > p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.72;
}

.home-correction__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(260px, 0.7fr);
    gap: 36px;
    align-items: center;
}

.home-video {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 8 / 5;
    border: 1px solid #cbd1d4;
    border-radius: 8px;
    background: #111;
    box-shadow: var(--shadow-card);
}

.home-video__player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
    object-fit: contain;
}

.home-correction__details {
    display: grid;
    gap: 0;
}

.home-correction__details .home-correction__details-title {
    margin: 0 0 17px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--accent);
    color: var(--accent-dark);
    font-size: 1.16rem;
    font-weight: 750;
    line-height: 1.35;
}

.home-correction__details > div {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.home-correction__details > div:first-of-type {
    padding-top: 0;
}

.home-correction__details > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-correction__details h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.home-correction__details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.home-correction__detail--accent h4 {
    color: var(--accent-dark);
}

.home-subjects {
    display: block;
    padding: 64px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-subjects__intro {
    max-width: 830px;
}

.home-subjects__intro h2 {
    font-size: 2.3rem;
}

.home-subjects__intro > p:last-child {
    font-size: 1.14rem;
}

.home-assessment-models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.home-assessment-model {
    padding: 36px;
}

.home-assessment-model + .home-assessment-model {
    border-left: 1px solid var(--line);
}

.home-assessment-model__label {
    margin-bottom: 13px;
    color: var(--accent-dark);
    font-size: 0.96rem;
    font-weight: 750;
}

.home-assessment-model--points .home-assessment-model__label {
    color: var(--success);
}

.home-assessment-model h3 {
    margin: 0 0 21px;
    font-size: 1.3rem;
    line-height: 1.35;
}

.home-assessment-model ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 19px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.55;
}

.home-workflow__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-workflow__steps li {
    position: relative;
    min-width: 0;
    padding: 0 20px;
    border-left: 1px solid var(--line);
}

.home-workflow__steps li:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-workflow__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 15px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent-dark);
    font-weight: 750;
}

.home-workflow__steps h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.home-workflow__steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.home-final {
    display: block;
    margin-top: 78px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 40px 42px 58px;
    border-top: 3px solid var(--accent);
    background: var(--neutral-fill);
}

.home-final h2 {
    margin-bottom: 8px;
    font-size: 2.15rem;
}

.home-final p {
    margin: 0;
    color: var(--muted);
}

.home-final .home-final__help {
    margin-top: 14px;
    font-size: 0.98rem;
    font-weight: 650;
}

.home-final__help a {
    color: var(--accent-dark);
    text-decoration: none;
}

.home-final__help a:hover {
    text-decoration: underline;
}

.home-final__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.home-page .page-content {
    padding-bottom: 0;
}

.home-page .site-footer {
    margin-top: 0;
    border-top: 0;
    background: #30373b;
}

.home-page .site-footer__brand {
    color: #dfe4e6;
}

.home-page .site-footer__brand a,
.home-page .site-footer__nav a {
    color: var(--white);
}

.home-page .site-footer__brand a:hover,
.home-page .site-footer__nav a:hover {
    text-decoration: underline;
}

.teacher-test-list {
    display: grid;
    gap: 16px;
}

.teacher-test-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-subtle);
}

.teacher-test-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.teacher-test-card__head h2,
.teacher-test-card__head h3 {
    margin-bottom: 0;
}

.teacher-test-card__created-at {
    margin-top: 10px;
}

.teacher-test-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.teacher-test-card__actions {
    margin-top: 16px;
}

.teacher-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.teacher-metric-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--white);
}

.teacher-metric-card__label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.teacher-metric-card__value {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
}

.teacher-metric-card__value--text {
    font-size: 1.15rem;
    line-height: 1.3;
}

.teacher-class-groups {
    display: grid;
    gap: 22px;
}

.teacher-class-group {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--white);
}

.teacher-class-group__head {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.teacher-class-group__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.teacher-class-group__title-row h3 {
    margin: 0;
}

.teacher-class-group__codes-link {
    font-size: 0.95rem;
    white-space: nowrap;
}

.teacher-class-group__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.teacher-class-group__meta span {
    padding-right: 12px;
}

.teacher-class-group__meta span + span {
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.teacher-class-group__meta strong {
    color: var(--text);
}

.teacher-bulk-status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.teacher-bulk-status-form label {
    margin-right: 2px;
    color: var(--text);
    font-weight: 700;
}

.teacher-bulk-status-form__select {
    min-width: 220px;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-select);
    background-color: var(--white);
    color: var(--text);
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-contrast) 50%),
        linear-gradient(135deg, var(--accent-contrast) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.teacher-bulk-status-form__select:focus {
    outline: none;
    border-color: var(--line-select-focus);
    box-shadow: 0 0 0 4px var(--focus-ring-warm);
}

.teacher-bulk-status-form__select:invalid {
    color: var(--muted);
}

.teacher-class-group__export-link {
    margin-left: 6px;
}

.teacher-class-group__export-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.teacher-class-group__export-actions .teacher-class-group__export-link {
    margin-left: 0;
}

.student-result-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    width: 100%;
}

.student-result-pdf-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.student-result-intro .eyebrow {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.student-result-title,
.student-result-description__text--intro,
.student-result-meta--intro {
    grid-column: 1 / -1;
}

.student-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.student-result-meta__item {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-warm-soft);
    border: 1px solid var(--line-soft);
}

.student-result-meta__item--combined {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.student-result-meta__row + .student-result-meta__row {
    padding-top: 0;
    border-top: 0;
    padding-left: 16px;
    border-left: 1px solid var(--line-soft);
}

.student-result-meta__label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.student-result-meta__value {
    line-height: 1.5;
    font-size: 1.02rem;
}

.student-result-description {
    display: none;
}

.student-result-description__text {
    line-height: 1.7;
    font-size: 1.06rem;
    color: var(--muted);
}

@media (max-width: 720px) {
    .student-result-intro {
        grid-template-columns: 1fr;
    }

    .student-result-pdf-button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    .student-result-meta__item--combined {
        grid-template-columns: 1fr;
    }

    .student-result-meta__row + .student-result-meta__row {
        padding-left: 0;
        border-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--line-soft);
    }
}

h1,
h2 {
    margin: 0 0 12px;
    line-height: 1.08;
}

h1 {
    margin: 6px 0 18px;
    font-size: clamp(1.55rem, 2.9vw, 2.45rem);
}

h2 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 14px;
    line-height: 1.6;
    font-size: 1.04rem;
}

.muted {
    color: var(--muted);
}

.button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.test-review-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.test-review-main {
    min-width: 0;
}

.test-review-edit-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    width: 100%;
}

.test-review-edit-actions__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
}

.test-review-edit-actions__links > * + * {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.test-review-edit-actions__links form {
    margin-block: 0;
}

.test-review-edit-actions__links .text-link-button {
    font-weight: 700;
}

.test-review-edit-actions__danger {
    margin-left: auto;
}

.test-review-secondary-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
    background: var(--accent);
    color: var(--white);
}

.button--primary:hover {
    background: var(--accent-dark);
}

.button[disabled] {
    cursor: not-allowed;
}

.button--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button--secondary:hover {
    background: var(--surface-warm-alt);
}
.button--danger {
    border-color: var(--danger-text);
    background: var(--danger-text);
    color: var(--white);
}

.button--danger:hover {
    border-color: var(--danger-text-dark);
    background: var(--danger-text-dark);
    color: var(--white);
}

.account-danger-zone {
    border-top-color: var(--danger-border);
}


.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
}

.field-hint {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.remember-login {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.remember-login input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    background: var(--white);
}

.field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    background: var(--white);
}

.field textarea {
    width: 100%;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: var(--white);
    resize: vertical;
}

.field input:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--accent);
}

.field .file-input {
    padding: 5px;
    color: var(--muted);
    cursor: pointer;
}

.field .file-input::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-warm-alt);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.field .file-input:hover::file-selector-button {
    border-color: var(--line-warm);
    background: var(--surface-warm);
}

.field select:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--accent);
}

.field textarea:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--accent);
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.alert {
    margin-bottom: 18px;
    border-radius: 14px;
    padding: 14px 16px;
}

.alert--error {
    background: var(--error-soft);
    color: var(--error);
}

.alert--success {
    background: var(--success-soft);
    color: var(--success);
}

.inline-note {
    margin-top: 18px;
    color: var(--muted);
}

.student-autosave-status {
    min-height: 1.5rem;
    margin: 2px 0 -8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.student-autosave-status[data-state="saving"],
.student-autosave-status[data-state="dirty"] {
    color: var(--text);
}

.student-autosave-status[data-state="error"] {
    color: var(--error);
    font-weight: 700;
}

.student-test-countdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
    color: var(--muted);
    font-size: 0.96rem;
}

.student-test-countdown strong {
    min-width: 5.5rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.student-test-countdown[data-state="ending"] strong,
.student-test-countdown[data-state="expired"] strong {
    color: var(--error);
}

.section-block {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.section-block--no-line {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.section-block--no-line + .section-block--no-line {
    margin-top: 38px;
}

.accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.18s ease, opacity 0.18s ease, margin-top 0.18s ease;
}

.accordion-panel.is-open {
    max-height: 480px;
    opacity: 1;
    margin-top: 22px;
    margin-bottom: 18px;
}

.accordion-panel__inner {
    padding-top: 4px;
    padding-bottom: 10px;
}

.review-settings-toggle {
    margin-top: 4px;
    justify-content: space-between;
    min-width: 280px;
    padding-right: 14px;
}

.review-settings-section {
    margin-bottom: 26px;
}

.review-settings-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--surface-warm-tint);
    color: var(--accent-dark);
    font-size: 0.95rem;
    transition: transform 0.18s ease, background 0.18s ease;
}

.review-settings-toggle[aria-expanded="true"] .review-settings-toggle__icon {
    transform: rotate(180deg);
    background: var(--accent-soft);
}

.grade-boundary-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.assign-action-stack {
    display: grid;
    gap: 10px;
}

.assign-settings-summary {
    display: grid;
    justify-items: start;
    gap: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.assign-settings-summary__dates {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    white-space: nowrap;
}

.assign-settings-summary__dates strong {
    color: var(--text);
}

.assign-settings-summary__details {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.84rem;
}

.assign-settings-summary__details strong {
    color: var(--text);
}

.data-table th.assign-student-count,
.data-table td.assign-student-count {
    text-align: center;
}

.assign-action-stack__buttons {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.assign-parent-row.is-expanded td {
    border-bottom: 0;
}

.assign-parent-row.has-followup-note td {
    border-bottom: 0;
}

.assign-edit-row td,
.assign-create-row td {
    padding-top: 0;
    border-top: 0;
}

.assign-info-row td {
    border-top: 0;
    padding-top: 0;
}

.assign-missing-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2px 0 8px;
    color: var(--muted);
    line-height: 1.5;
}

.assign-inline-editor {
    margin-top: 6px;
    padding: 18px 18px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
}

.assign-inline-editor h3 {
    margin-bottom: 12px;
}

.assign-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label-with-help {
    display: flex;
    align-items: center;
    gap: 7px;
}

.field-label-with-help label {
    font-weight: 600;
}

.context-help-button--small {
    width: 21px;
    height: 21px;
    font-size: 0.78rem;
}

@media (max-width: 700px) {
    .assign-settings-grid {
        grid-template-columns: 1fr;
    }
}

.grade-boundary-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.grade-boundary-row span:first-child {
    font-weight: 600;
    line-height: 1.4;
}

.grade-boundary-row span:last-child {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.grade-boundary-row__input {
    min-height: 44px;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 0 6px;
    background: var(--white);
    font: inherit;
    text-align: center;
    font-weight: 700;
}

.grade-boundary-row__input:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--accent);
}

.grade-boundary-row__input[readonly] {
    color: var(--muted);
    background: var(--surface-strong);
    cursor: not-allowed;
}

.test-form-settings .muted {
    margin-top: 0;
    margin-bottom: 18px;
    line-height: 1.5;
}

.test-form-settings .eyebrow,
.test-delete-section .eyebrow {
    margin-bottom: 14px;
}

.test-form-settings .panel__header,
.test-delete-section .panel__header {
    margin-bottom: 8px;
}

.test-form-settings h2,
.test-delete-section h2 {
    margin: 0 0 6px;
}

.test-form-settings {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.test-delete-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.test-delete-section__button {
    margin-top: 6px;
}

.test-item-rows {
    display: grid;
    gap: 14px;
}

.test-item-row {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card-subtle);
}

.test-item-row__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.test-item-row__number {
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin-right: 8px;
    border-radius: 999px;
    border: 1px solid #d7c9b3;
    background: linear-gradient(180deg, #f8f3ea 0%, #efe5d5 100%);
    color: var(--text-strong);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.test-item-row__kind {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid var(--line-soft);
    min-width: 0;
    flex: 0 1 auto;
}

.test-item-row__kind-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-kind-switch {
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(159, 58, 61, 0.35);
    border-radius: 8px;
    background: var(--accent-soft);
}

.task-kind-switch__option {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    cursor: pointer;
}

.task-kind-switch__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.task-kind-switch__option span {
    min-height: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.task-kind-switch__option:hover span {
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.5);
}

.task-kind-switch__option input:checked + span {
    background: var(--white);
    color: var(--accent-dark);
    box-shadow: var(--shadow-pill);
}

.task-kind-switch__option input:focus-visible + span {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

.task-kind-switch__option input:disabled + span {
    cursor: default;
    opacity: 0.72;
}

.context-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line-warm);
    border-radius: 50%;
    background: var(--surface-warm-soft);
    color: var(--accent-dark);
    font: inherit;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.context-help-button:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.context-help-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.test-item-row__points input {
    min-width: 0;
}

.test-item-row__points span {
    margin: 0;
    white-space: nowrap;
}

.test-item-row__points {
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-item-row__points .extra-correction-row__value-input {
    width: 88px !important;
    min-width: 88px;
    max-width: 88px;
}

.test-item-row__actions {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.test-item-row__kind + .test-item-row__actions,
.test-item-row__points.hidden + .test-item-row__actions {
    margin-left: auto;
}

.context-help-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-float);
}

.context-help-dialog::backdrop {
    background: rgba(31, 41, 51, 0.42);
}

.context-help-dialog__content {
    padding: 24px;
}

.context-help-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.context-help-dialog__header h2 {
    margin: 0;
}

.context-help-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface-warm-soft);
    color: var(--text);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.context-help-dialog__close:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.context-help-dialog__close:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.context-help-dialog__body > p {
    margin-top: 0;
}

.context-help-dialog__list {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
}

.context-help-dialog__list div {
    display: grid;
    gap: 4px;
}

.context-help-dialog__list dt {
    font-weight: 700;
}

.context-help-dialog__list dd {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.assignment-status-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.assignment-student-code {
    white-space: nowrap;
}

.assignment-tools-hint {
    margin: -4px 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.assignment-tools-hint__line {
    display: block;
}

.assignment-tools-hint__line + .assignment-tools-hint__line {
    margin-top: 7px;
}

.assignment-edit-button,
.assignment-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.assignment-info-button,
.assignment-info-symbol {
    border: 1px solid rgba(159, 58, 61, 0.32);
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.assignment-info-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 2px;
    vertical-align: middle;
}

.assignment-edit-button:hover,
.assignment-info-button:hover {
    background: var(--surface-warm-soft);
}

.assignment-edit-button:focus-visible,
.assignment-info-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.assignment-edit-dialog {
    width: min(620px, calc(100vw - 32px));
}

.assignment-edit-form .context-help-dialog__header p {
    margin: 5px 0 0;
}

.assignment-edit-period {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assignment-edit-period legend {
    padding: 0 6px;
    font-weight: 700;
}

.assignment-edit-warning {
    margin: 18px 0 0;
}

.assignment-edit-actions {
    justify-content: flex-end;
}

.test-export-actions {
    justify-content: flex-end;
}

.assignment-progress-dialog {
    width: min(480px, calc(100vw - 32px));
}

.assignment-progress-dialog .context-help-dialog__header p {
    margin: 5px 0 0;
}

.assignment-progress-loading {
    margin: 0;
    color: var(--muted);
}

.assignment-progress-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
}

.assignment-progress-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 14px;
    background: var(--white);
}

.assignment-progress-list div + div {
    border-top: 1px solid var(--line-soft);
}

.assignment-progress-list dt {
    color: var(--muted);
}

.assignment-progress-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.js-assignment-progress-timestamp-label,
.js-assignment-progress-timestamp-value {
    white-space: pre-line;
}

.assignment-progress-note {
    margin: 12px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.assignment-progress-actions {
    margin-top: 20px;
    justify-content: center;
}

@media (max-width: 620px) {
    .assignment-edit-period {
        grid-template-columns: 1fr;
    }

    .assignment-progress-list div {
        display: grid;
        gap: 4px;
    }

    .assignment-progress-list dd {
        text-align: left;
    }
}

.test-item-row__move,
.test-item-row__remove {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.test-item-row__move {
    border: 1px solid var(--line-soft);
    background: var(--surface-soft);
    color: var(--text-strong);
    font-size: 1rem;
}

.test-item-row__move:hover:not(:disabled),
.test-item-row__move:focus-visible:not(:disabled) {
    background: #ece4d6;
    border-color: #cdbda4;
}

.test-item-row__remove {
    border: 1px solid #d96f6f;
    background: #fff4f2;
    color: #b64040;
    font-size: 1.35rem;
}

.test-item-row__remove:hover:not(:disabled),
.test-item-row__remove:focus-visible:not(:disabled) {
    background: #ffe6e1;
    border-color: #c55353;
    color: #992f2f;
}

.test-item-row__move:disabled,
.test-item-row__remove:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.test-item-add-button {
    min-height: 46px;
    padding-inline: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-card-subtle);
}

.button-row--center {
    justify-content: center;
}

.section-block > ul.muted {
    margin: 0 0 18px 20px;
    padding: 0;
    line-height: 1.6;
}

.section-block > ul.muted li + li {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .grade-boundary-row__input {
        width: 76px !important;
        min-width: 76px;
        max-width: 76px;
    }

    .test-item-row__top {
        flex-direction: column;
        align-items: stretch;
    }

    .test-item-row__kind,
    .test-item-row__points {
        margin-left: 0;
    }

    .test-item-row__kind {
        width: 100%;
        flex: none;
        padding-left: 0;
        border-left: 0;
    }

    .test-item-row__points span {
        display: block;
        margin-bottom: 6px;
    }

    .test-item-row__actions {
        margin-left: auto;
    }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-warm-tint);
    color: var(--text);
}

.tag--summary {
    background: var(--surface-warm-strong);
    color: var(--accent-dark);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table th {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.status-column-heading {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.status-column-heading__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
}

.status-column-heading__refresh:hover {
    color: var(--accent);
    text-decoration: none;
}

.status-column-heading__refresh:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 3px;
}

.data-table--middle td {
    vertical-align: middle;
}

.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;
}

.admin-readonly-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-readonly-note {
    border-color: var(--line-warm);
    background: var(--surface-warm-alt);
    color: var(--text);
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.admin-summary-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 16px;
    border-right: 1px solid var(--line);
    background: var(--surface-strong);
}

.admin-summary-item:last-child {
    border-right: 0;
}

.admin-summary-item strong {
    font-size: 1.55rem;
}

.admin-summary-item span {
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.admin-section-heading h2,
.admin-section-heading p {
    margin-bottom: 0;
}

.admin-search {
    display: flex;
    align-items: end;
    gap: 8px;
}

.admin-search .field input {
    min-width: 240px;
}

.admin-table {
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
}

.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.admin-status-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
}

.admin-status-grid > div:last-child {
    border-right: 0;
}

.admin-status-grid span,
.admin-detail-list dt {
    color: var(--muted);
}

.admin-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.admin-detail-list {
    margin: 0;
}

.admin-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.admin-detail-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

@media (max-width: 720px) {
    .admin-section-heading,
    .admin-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search .field input {
        min-width: 0;
    }

    .admin-summary-grid,
    .admin-status-grid,
    .admin-two-column {
        grid-template-columns: 1fr 1fr;
    }

    .admin-two-column {
        grid-template-columns: 1fr;
    }

    .admin-summary-item,
    .admin-status-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.table-sort-button__icon {
    color: var(--soft-meta);
    font-size: 0.92em;
    line-height: 1;
}

.table-sort-button:hover .table-sort-button__icon,
.table-sort-button:focus-visible .table-sort-button__icon {
    color: var(--accent-dark);
}

.table-sort-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--focus-ring-warm);
    border-radius: 8px;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link--danger {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--danger-border);
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-weight: 700;
    text-decoration: none;
}

.text-link--danger:hover {
    color: var(--danger-text-dark);
    text-decoration: none;
    background: var(--danger-bg-hover);
    border-color: var(--danger-border-hover);
}

.text-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.text-link-button.text-link--danger {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--danger-border);
    border-radius: 999px;
    background: var(--danger-bg);
}

.table-cell-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.student-personal-code {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.student-portal-list {
    display: grid;
    gap: 12px;
}

.student-portal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.student-portal-card h3,
.student-portal-card p {
    margin: 0;
}

.student-portal-card__status {
    margin-top: 5px !important;
    color: var(--accent-dark);
    font-weight: 700;
}

@media (max-width: 620px) {
    .student-portal-card {
        align-items: stretch;
        flex-direction: column;
    }

    .student-portal-card .button {
        width: 100%;
    }
}

.checkbox-list {
    display: grid;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.checkbox-item input {
    margin: 0;
}

.checkbox-item--spread {
    justify-content: space-between;
    gap: 16px;
}

.checkbox-item__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    cursor: pointer;
}

.button--compact {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.94rem;
    white-space: nowrap;
}

.button--nowrap {
    white-space: nowrap;
}

.assign-status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--success-fill);
    color: var(--success-bright);
    font-weight: 800;
    line-height: 1;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 5px;
    border: 1px solid var(--line-warm-strong);
    accent-color: var(--accent);
    cursor: pointer;
}

.table-checkbox:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--focus-ring-warm-strong);
}

.task-list {
    display: grid;
    gap: 14px;
}

.task-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 16px;
}

.task-card__meta {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.task-card__prompt {
    line-height: 1.6;
}

.field--top-gap {
    margin-top: 14px;
}

.answer-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-warm-soft);
    border: 1px solid var(--line);
    line-height: 1.6;
}

.answer-comment {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-warm-note);
    border: 1px solid var(--line);
    line-height: 1.6;
}

.answer-comment--notice {
    background: var(--surface-warm-soft);
    border-color: var(--line-warm-soft);
}

.extra-corrections {
    margin-top: 6px;
    padding: 0;
}

.extra-corrections__list {
    display: grid;
    gap: 12px;
}

.extra-correction-row {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-card-subtle);
}

.extra-correction-row__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.extra-correction-row__field {
    width: auto;
    flex: 0 0 auto;
}

.extra-correction-row__field--value {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    flex: 0 0 auto;
}

.extra-correction-row__field--value span {
    margin: 0;
    white-space: nowrap;
}

.extra-correction-row__value-input {
    width: 76px !important;
    min-width: 76px;
    max-width: 76px;
    min-height: 44px;
    padding: 0 6px;
}

.extra-correction-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--line-warm-soft);
    border-radius: 999px;
    background: var(--surface-warm);
    color: var(--accent-dark);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.extra-correction-row__remove:hover {
    background: var(--white);
    border-color: var(--line-warm-strong);
    color: var(--accent);
}

.extra-correction-row__top > .extra-correction-row__comment-input {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    padding: 0 16px;
    background: var(--white);
}

.extra-correction-row__top > .extra-correction-row__comment-input::placeholder {
    color: var(--soft-meta);
}

@media (max-width: 720px) {
    .extra-correction-row__top {
        flex-wrap: wrap;
        align-items: center;
    }
}

.extra-correction-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.extra-correction-list li + li {
    margin-top: 6px;
}

.answer-correct-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    align-self: center;
}

.answer-correct-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-correct-toggle__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--neutral-border);
    background: var(--neutral-fill);
    color: var(--neutral-text);
    font-weight: 700;
    transition: all 0.15s ease;
}

.answer-correct-toggle input:checked ~ .answer-correct-toggle__box {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.answer-correct-toggle__label {
    font-weight: 700;
    color: var(--text);
}

.answer-correct-toggle--compact {
    position: absolute;
    right: 0;
    bottom: 0;
    gap: 0;
}

.answer-correct-toggle--compact .answer-correct-toggle__box {
    width: 34px;
    height: 34px;
}

.answer-correct-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-weight: 700;
}

.answer-correct-badge--compact {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0;
    min-width: 34px;
    min-height: 34px;
    justify-content: center;
    border-radius: 999px;
}

.answer-box--plain {
    margin-bottom: 10px;
}

.answer-evaluation {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 10px 0 12px;
}

.answer-evaluation__summary {
    font-size: 0.98rem;
}

.review-correction-accordion {
    border-radius: 16px;
    background: var(--surface-accordion);
    border: 1px solid var(--line-soft);
}

.review-correction-accordion[open] {
    background: var(--surface-warm);
}

.review-correction-accordion__summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    cursor: pointer;
}

.review-correction-accordion__summary::-webkit-details-marker {
    display: none;
}

.review-correction-accordion__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.review-correction-accordion__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--surface-icon-soft);
    color: var(--accent-dark);
    font-size: 0.95rem;
    transition: transform 0.16s ease;
    flex: 0 0 auto;
}

.review-correction-accordion[open] .review-correction-accordion__icon {
    transform: rotate(180deg);
}

.review-correction-accordion__body {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.review-inline-number-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-inline-number-field span {
    margin: 0;
}

.review-inline-number-field__control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-inline-number-field input:not(.extra-correction-row__value-input) {
    width: 76px !important;
    min-width: 76px;
    max-width: 76px;
    min-height: 44px;
    padding: 0 6px;
}

.review-inline-number-field .extra-correction-row__value-input {
    width: 76px !important;
    min-width: 76px;
    max-width: 76px;
    min-height: 44px;
    padding: 0 6px;
}

.review-inline-number-field__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border: 1px solid var(--line-warm-soft);
    border-radius: 999px;
    background: var(--surface-warm);
    color: var(--accent-dark);
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.review-inline-number-field__clear:hover {
    background: var(--white);
    border-color: var(--line-warm-strong);
}

.review-inline-number-field__suffix {
    color: var(--muted);
    font-weight: 600;
}

.review-inline-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.review-inline-tools__extras {
    width: 100%;
}

.review-extra-errors__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid var(--line-warm);
    background: var(--white);
    color: var(--accent-dark);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    cursor: pointer;
}

.review-extra-errors__button:hover {
    background: var(--surface-warm);
    border-color: var(--line-warm-strong);
}

.answer-total-summary {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-warm-soft);
    border: 1px solid var(--line);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.answer-total-summary__divider {
    color: var(--soft-meta);
}

.field--inline {
    min-width: 220px;
}

.field--inline span {
    font-size: 0.92rem;
}

.field--inline-compact {
    max-width: 240px;
}

.field--inline-compact span {
    font-size: 0.92rem;
}

.answer-empty {
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--white);
}

.student-review-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.student-review-list {
    display: grid;
    gap: 24px;
}

.student-review-section {
    display: grid;
    gap: 12px;
}

.student-review-summary {
    max-width: none;
    width: 100%;
}

.student-status-heading {
    margin-top: 22px;
    margin-bottom: 0;
}

.student-status-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-warm-soft);
    border: 1px solid var(--line);
}

.student-status-flow__step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
}

.student-status-flow__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--line-warm);
    background: var(--white);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.student-status-flow__label {
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.student-status-flow__connector {
    color: var(--soft-meta);
    font-weight: 700;
}

.student-status-flow__step.is-complete {
    color: var(--success);
}

.student-status-flow__step.is-complete .student-status-flow__marker {
    background: var(--success-soft);
    border-color: rgba(47, 111, 73, 0.25);
    color: var(--success);
}

.student-status-flow__step.is-current {
    color: var(--accent-dark);
}

.student-status-flow__step.is-current .student-status-flow__marker {
    background: var(--surface-warm);
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: var(--shadow-pill);
}

.student-status-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-top: 6px;
}

.student-status-actions__side {
    display: flex;
    flex: 1 1 0;
}

.student-status-actions__side--left {
    justify-content: flex-start;
}

.student-status-actions__side--right {
    justify-content: flex-end;
}

.student-status-actions .button {
    box-shadow: var(--shadow-accent);
}

.student-review-grade-row {
    display: flex;
    align-items: end;
    gap: 18px;
    flex-wrap: wrap;
}

.student-review-grade-row--manual {
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.student-review-grade-inline-label {
    font-weight: 700;
}

.student-review-grade-inline-input {
    width: min(18rem, 100%);
    min-width: 12rem;
    min-height: 48px;
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    background: var(--white);
}

.student-review-grade-inline-input:focus {
    outline: 2px solid var(--focus-ring);
    border-color: var(--accent);
}

.student-review-actions {
    margin-top: 28px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-panel-gradient-start) 0%, var(--surface-panel-gradient-end) 100%);
    border: 1px solid var(--line-warm-soft);
    box-shadow: var(--shadow-soft);
    justify-content: center;
}

.student-review-actions .button {
    min-height: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

.student-review-actions .button--primary {
    box-shadow: var(--shadow-accent);
}

.review-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.review-section-head__eyebrow {
    color: var(--accent-dark);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.review-section-head__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.review-answer-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.review-sentence-panel {
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
}

.review-sentence-panel + .review-sentence-panel,
.review-sentence-panel + .review-correction-panel,
.review-correction-panel {
    margin-top: 14px;
}

.review-correction-panel {
    padding-top: 2px;
}

.review-sentence-panel--source {
    background: linear-gradient(180deg, var(--surface-gold-gradient-start) 0%, var(--surface-gold-gradient-end) 100%);
    border-color: var(--line-warm-gold);
}

.review-sentence-panel--answer {
    background: linear-gradient(180deg, var(--surface-warm-gradient-start) 0%, var(--surface-answer-gradient-end) 100%);
    border-color: var(--line-warm-soft);
}

.review-sentence-panel--sticky {
    position: sticky;
    top: 18px;
    background: linear-gradient(180deg, var(--surface-gold-gradient-start) 0%, var(--surface-gold-gradient-end) 100%);
    border-color: var(--line-warm-gold);
    box-shadow: var(--shadow-sticky-panel);
    z-index: 3;
}

.review-sentence-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.review-sentence-panel__head--meta-only {
    justify-content: flex-end;
}

.review-sentence-panel__label {
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.review-sentence-panel__head .review-sentence-panel__label {
    margin-bottom: 0;
}

.review-sentence-panel__meta {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.review-sentence-panel__meta--top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.review-sentence-panel__meta--error {
    color: var(--error);
}

.review-sentence-panel__meta--ok {
    color: var(--success);
}

.student-result-points-meta {
    top: 1.7rem;
    color: var(--accent-dark);
}

.review-sentence-panel__text {
    line-height: 1.7;
}

.review-sentence-panel__text--source {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.45;
}

.review-sentence-panel--sticky .review-sentence-panel__text--source {
    font-size: clamp(1.45rem, 2.15vw, 1.9rem);
}

.review-sentence-panel__text--answer {
    font-size: clamp(1.28rem, 1.85vw, 1.62rem);
    line-height: 1.45;
}

.review-sentence-panel__answer-row {
    position: relative;
}

.review-sentence-panel__answer-text {
    font-size: clamp(1.28rem, 1.85vw, 1.62rem);
    padding-right: 48px;
    padding-bottom: 8px;
}

.answer-empty--inside {
    background: var(--surface-soft-overlay);
}

.answer-empty--unanswered {
    background: var(--error-soft);
}

.correction-list {
    display: grid;
    gap: 14px;
}

.correction-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 16px;
}

.correction-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.answer-words {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 10px;
    line-height: 2.1;
    font-size: clamp(1.28rem, 1.85vw, 1.62rem);
}

.answer-words--interactive {
    cursor: pointer;
}

.word-mark {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-top: 1.2rem;
}

.word-mark.is-active {
    color: var(--error);
}

.word-mark__label {
    min-height: 1rem;
    font-size: 0.78rem;
    color: var(--accent-dark);
    line-height: 1;
}

.word-mark__code {
    position: absolute;
    left: 50%;
    top: 0.18rem;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent-dark);
    line-height: 1;
    white-space: nowrap;
}

.word-mark__comment {
    color: var(--error);
}

.word-mark__text {
    position: relative;
    display: inline-block;
    padding-bottom: 9px;
    border-bottom: 3px solid transparent;
    line-height: 1.45;
}

.word-mark--struck .word-mark__content {
    text-decoration-line: line-through;
    text-decoration-color: var(--error);
    text-decoration-thickness: 2px;
}

.word-mark--value-0 .word-mark__text {
    border-bottom: 0;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--error);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.word-mark__print-wave {
    display: none;
}

.word-mark--value-0-5 .word-mark__text,
.word-mark--value-1 .word-mark__text {
    background-image: linear-gradient(var(--error), var(--error));
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: 0 calc(100% - 4px);
}

.word-mark--value-0-5 .word-mark__text {
    margin-left: -5px;
    padding-left: 5px;
}

.word-mark--value-0-5 .word-mark__text::before,
.word-mark--value-1-5 .word-mark__text::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 0.7em;
    border-left: 3px solid var(--error);
}

.word-mark--value-1-5 .word-mark__text,
.word-mark--value-2 .word-mark__text {
    background-image:
        linear-gradient(var(--error), var(--error)),
        linear-gradient(var(--error), var(--error));
    background-repeat: no-repeat;
    background-size: 100% 3px, 100% 3px;
    background-position: 0 calc(100% - 4px), 0 100%;
}

.word-mark--value-1-5 .word-mark__text {
    margin-left: -5px;
    padding-left: 5px;
}

.word-mark--consequence .word-mark__text::after {
    content: "";
    position: absolute;
    right: -2px;
    top: calc(100% - 7px);
    width: 0;
    height: 0.7em;
    border-right: 3px solid var(--error);
}

.correction-panel {
    position: sticky;
    top: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow);
}

.correction-panel.hidden {
    display: none;
}

.correction-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.correction-panel__close {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.correction-panel__word {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-warm-soft);
    border: 1px solid var(--line);
    color: var(--error);
    font-weight: 700;
}

.correction-panel__section {
    margin-bottom: 16px;
}

.correction-panel__label {
    margin-bottom: 8px;
    font-weight: 700;
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-grid--small .choice-chip {
    min-width: 54px;
}

.choice-chip {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    font: inherit;
    cursor: pointer;
}

.choice-chip--secondary {
    background: var(--surface-warm-soft);
}

.choice-chip.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.js-evaluation-mode-group {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-warm);
    border-radius: 16px;
    background: #eee4d4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(83, 60, 33, 0.05);
    width: fit-content;
}

.js-evaluation-mode-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.js-evaluation-mode-option:hover {
    background: rgba(255, 255, 255, 0.42);
    transform: none;
}

.js-evaluation-mode-option.is-disabled {
    cursor: default;
    opacity: 0.68;
    box-shadow: none;
}

.js-evaluation-mode-option.is-disabled:hover {
    border-color: transparent;
    background: transparent;
    transform: none;
}

.js-evaluation-mode-option.is-disabled.is-selected:hover {
    border-color: #d4c4ab;
    background: var(--white);
    transform: none;
}

.js-evaluation-mode-option.is-selected {
    background: var(--white);
    border-color: #d4c4ab;
    color: var(--accent-dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(83, 60, 33, 0.10);
}

@media (max-width: 640px) {
    .js-evaluation-mode-group {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch__track {
    position: relative;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: var(--toggle-track);
    border: 1px solid var(--line);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.toggle-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-pill);
    transition: transform 0.15s ease;
}

.toggle-switch__label {
    font-weight: 700;
}

.toggle-switch.is-selected .toggle-switch__track {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch.is-selected .toggle-switch__thumb {
    transform: translateX(18px);
}

.toggle-switch.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.test-danger-form__button:disabled {
    background: #d8b1b3;
    border-color: #d8b1b3;
    color: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.test-danger-form__button:disabled:hover {
    background: #d8b1b3;
}

.result-summary-stamp {
    display: grid;
    grid-template-columns: fit-content(28rem) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.result-summary-stamp__panel,
.result-summary-stamp__comment {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.result-summary-stamp__panel {
    padding: 20px 18px;
    background: linear-gradient(180deg, var(--surface-stamp-gradient-start) 0%, var(--surface-stamp-gradient-end) 100%);
    border-color: var(--line-warm-soft);
    text-align: center;
    box-shadow: var(--shadow-card);
    width: max-content;
    min-width: 180px;
    max-width: 100%;
}

.result-summary-stamp__eyebrow {
    margin-bottom: 7px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.result-summary-stamp__grade {
    margin-bottom: 12px;
    font-size: clamp(1.95rem, 3.75vw, 3rem);
    line-height: 0.9;
    font-weight: 700;
    color: var(--grade-ink);
}

.result-summary-stamp__meta {
    display: block;
    color: var(--accent-dark);
    font-weight: 700;
}

.result-summary-stamp__comment {
    padding: 20px 22px;
}

.result-summary__label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-summary__value {
    font-size: 1.8rem;
    font-weight: 700;
}

.result-summary__text {
    line-height: 1.6;
    font-size: 1.18rem;
}

.grade-key {
    display: grid;
    gap: 8px;
}

.grade-key__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
}

.grade-key-card {
    margin-top: 16px;
}

.legal-section h2 {
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 0 0 14px 22px;
    padding: 0;
    line-height: 1.6;
}

.legal-section li + li {
    margin-top: 6px;
}

@media (max-width: 720px) {
    .result-summary-stamp {
        grid-template-columns: 1fr;
    }

    .teacher-test-card__head,
    .teacher-class-group__head {
        flex-direction: column;
        align-items: stretch;
    }

    .teacher-hub-grid,
    .teacher-metric-grid {
        grid-template-columns: 1fr;
    }

    .teacher-class-group__meta {
        flex-wrap: wrap;
    }
}

.item-review-shell {
    position: relative;
    display: grid;
    gap: 20px;
}

.review-mode-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.review-mode-switch {
    width: fit-content;
    max-width: 100%;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
    padding: 3px;
    border: 1px solid rgba(159, 58, 61, 0.35);
    border-radius: 8px;
    background: var(--accent-soft);
}

.review-mode-switch__option {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

.review-mode-switch__option:hover {
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.5);
}

.review-mode-switch__option.is-active {
    background: var(--white);
    color: var(--accent-dark);
    box-shadow: var(--shadow-pill);
}

.review-mode-switch__option.is-active:hover {
    background: var(--white);
    color: var(--accent-dark);
}

.review-answer-card--item .review-sentence-panel__head--meta-only {
    justify-content: flex-start;
}

.review-answer-card--group .review-sentence-panel__meta {
    width: 100%;
    line-height: 1.6;
}

.review-sentence-panel__meta-label {
    margin-right: 5px;
    color: var(--text);
}

.review-sentence-panel__meta-list {
    overflow-wrap: anywhere;
}

.item-review-reference__inner {
    position: relative;
    max-width: calc(100% - 320px);
}

.item-review-reference {
    position: sticky;
    top: 18px;
    z-index: 3;
}

.item-review-direct-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.item-review-direct-list {
    display: grid;
    gap: 14px;
}

.item-review-direct-list__cards {
    display: grid;
    gap: 16px;
}

.sticky-save-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--sticky-save-bg);
    border-top: 1px solid var(--flash-border);
    box-shadow: var(--shadow-sticky);
}

.sticky-save-bar .button {
    min-width: min(420px, 100%);
    background: var(--surface-warm-note);
    color: var(--accent-dark);
    border-color: transparent;
}

.sticky-save-bar .button:hover {
    background: var(--white);
}

.floating-flash-stack {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
}

.floating-flash {
    margin-bottom: 0;
    width: min(520px, 100%);
    padding: 10px 22px;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid var(--flash-border);
    box-shadow: var(--shadow-float);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(6px);
}

.floating-flash.alert--success {
    background: var(--floating-success-bg);
    color: var(--white);
}

.floating-flash.alert--error {
    background: var(--sticky-save-bg);
    color: var(--white);
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 18px;
    }

    .home-hero__intro {
        max-width: none;
    }

    .home-access {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .home-access__teacher {
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .home-correction__grid,
    .home-subjects {
        grid-template-columns: 1fr;
    }

    .home-correction__details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-correction__details .home-correction__details-title {
        grid-column: 1 / -1;
    }

    .home-correction__details > div,
    .home-correction__details > div:first-of-type,
    .home-correction__details > div:last-child {
        padding: 0 18px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .home-correction__details > div:first-of-type {
        padding-left: 0;
    }

    .home-correction__details > div:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .home-subjects {
        gap: 30px;
    }

    .home-workflow__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 0;
    }

    .home-workflow__steps li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

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

    .home-spotlight__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__highlights {
        grid-template-columns: 1fr;
    }

    .home-hero {
        gap: 28px;
        padding-bottom: 34px;
    }

    .home-hero__intro h1 {
        max-width: none;
        font-size: 2rem;
    }

    .home-hero__lead {
        font-size: 1.1rem;
    }

    .home-access {
        display: block;
    }

    .home-access__student,
    .home-access__teacher {
        padding: 22px;
    }

    .home-access__teacher {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-access .home-student-entry__form {
        grid-template-columns: 1fr;
    }

    .home-access .home-student-entry__form .home-access__button {
        width: 100%;
    }

    .home-section {
        margin-top: 58px;
    }

    .home-hero + .home-section {
        margin-top: 42px;
    }

    .home-section__heading h2,
    .home-subjects__intro h2 {
        font-size: 1.75rem;
    }

    .home-correction__details {
        grid-template-columns: 1fr;
    }

    .home-correction__details > div,
    .home-correction__details > div:first-of-type,
    .home-correction__details > div:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-correction__details > div:first-of-type {
        padding-top: 0;
    }

    .home-correction__details > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .home-subjects {
        padding: 42px 0;
    }

    .home-assessment-models {
        grid-template-columns: 1fr;
    }

    .home-assessment-model {
        padding: 23px;
    }

    .home-assessment-model + .home-assessment-model {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-workflow__steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-workflow__steps li,
    .home-workflow__steps li:nth-child(odd) {
        padding: 19px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-workflow__steps li:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .home-final {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 58px;
        padding: 32px 20px 50px;
    }

    .home-final__actions {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .home-final__actions .button {
        width: 100%;
    }

    .site-header__inner,
    .site-footer__inner,
    .panel__header,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card,
    .auth-card,
    .panel {
        padding: 24px;
    }

    .test-review-header {
        grid-template-columns: 1fr;
    }

    .test-review-edit-actions__danger {
        margin-left: 0;
    }

    .test-review-secondary-actions {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .test-review-edit-actions__links {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .test-review-edit-actions__links > * + * {
        margin: 10px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid var(--line-soft);
        border-left: 0;
    }

    .student-review-shell,
    .item-review-direct-shell {
        grid-template-columns: 1fr;
    }

    .review-mode-switch {
        width: 100%;
    }

    .review-mode-switch-row {
        align-items: flex-start;
    }

    .review-mode-switch__option {
        white-space: normal;
    }

    .item-review-reference__inner {
        max-width: none;
    }

    .correction-panel {
        position: static;
    }

    .correction-card__head {
        flex-direction: column;
    }

    .review-section-head,
    .review-sentence-panel__head,
    .correction-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-status-flow {
        align-items: flex-start;
    }

    .student-status-flow__connector {
        display: none;
    }

    .student-status-actions,
    .student-status-actions__side {
        display: grid;
    }

    .student-status-actions__side--right {
        justify-content: stretch;
    }

    .review-sentence-panel--sticky {
        position: static;
    }

    .item-review-reference {
        position: static;
    }

    .sticky-save-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .floating-flash-stack {
        padding-left: 16px;
        padding-right: 16px;
    }

    .extra-correction-row {
        grid-template-columns: 1fr;
    }
}
