@import "./tokens.css";
.record-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:20px; margin:20px 0; }
.record-grid > div { display:flex; flex-direction:column; gap:6px; min-width:0; overflow-wrap:anywhere; }
.plain-fieldset { border:0; padding:0; margin:0; min-width:0; }
.cor-document > .actions { margin-bottom:24px; }
.mobile-title {
    display: none;
}
.dashboard-filters > summary {
    display: none;
}
.panel > .button {
    align-self: flex-start;
}
.topbar > div {
    min-width: 0;
}
@media (max-width: 800px) {
    .desktop-title {
        display: none;
    }
    .mobile-title {
        display: inline;
    }
    .teacher-heading .page-heading > .button {
        display: none;
    }
    .teacher-classes-heading h2 {
        display: none;
    }
    .teacher-classes-heading {
        justify-content: flex-end;
    }
    .dashboard-filters > summary {
        display: list-item;
        padding: 12px 16px;
        background: white;
        border: 1px solid var(--color-border-default);
        border-radius: 8px;
        cursor: pointer;
        min-height: 48px;
    }
    .dashboard-filters .toolbar {
        margin-top: 16px;
    }
}
* {
    box-sizing: border-box;
}
html {
    color: var(--color-text-primary);
    background: var(--color-bg-canvas);
    font-family: var(--font-family-sans);
    font-size: 16px;
    line-height: 1.5;
}
body {
    margin: 0;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
}
a {
    color: var(--color-text-brand);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a,
button {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
    margin: 0;
}
h1 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
}
h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}
h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}
p {
    color: var(--color-text-secondary);
}
small,
.small {
    font-size: 14px;
    line-height: 20px;
}
small {
    display: block;
}
.strong,
strong {
    font-weight: 600;
}
.muted {
    color: var(--color-text-secondary);
}
hr {
    border: 0;
    border-top: 1px solid var(--color-bg-subtle);
    width: 100%;
    margin: 0;
}
.icon {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background: currentColor;
    mask-image: var(--icon-url);
    -webkit-mask-image: var(--icon-url);
    mask-size: 24px 24px;
    mask-repeat: no-repeat;
    mask-position: center;
}
.app-shell {
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: white;
    border-right: 1px solid var(--color-border-default);
    overflow-y: auto;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    min-height: 32px;
}
.brand .icon {
    color: var(--color-text-brand);
}
nav {
    display: grid;
    gap: 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px;
    border-radius: 8px;
    color: var(--color-text-primary);
    font-weight: 500;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}
.nav-item .icon {
    color: var(--color-text-secondary);
}
.nav-item:hover {
    background: var(--color-bg-subtle);
    text-decoration: none;
}
.nav-item.active {
    background: var(--color-bg-brand-soft);
    color: var(--color-text-brand);
}
.nav-item.active .icon {
    color: inherit;
}
.account {
    margin-top: auto;
    border-top: 1px solid var(--color-bg-subtle);
    padding-top: 16px;
    display: grid;
    gap: 8px;
}
.person {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
}
.person small {
    color: var(--color-text-secondary);
}
.account-link {
    font-size: 14px;
    padding: 8px 12px;
}
.avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-brand-soft);
    color: var(--color-text-brand);
    font-weight: 500;
}
.app-body {
    margin-left: 248px;
    min-width: 0;
}
.topbar {
    height: 88px;
    padding: 16px 24px;
    background: white;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.topbar > div {
    flex: 1;
}
.topbar strong {
    font-size: 20px;
}
.topbar small {
    color: var(--color-text-secondary);
}
.main {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.page-heading p {
    margin-top: 8px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.panel {
    border: 1px solid var(--color-border-default);
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.button {
    border: 1px solid transparent;
    min-height: 48px;
    padding: 11px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    transition: background 0.12s;
    color: var(--color-text-on-brand);
    background: var(--color-bg-brand);
    text-align: center;
    max-width: 100%;
}
.button:hover {
    background: var(--color-bg-brand-hover);
    text-decoration: none;
}
.button.secondary {
    color: var(--color-text-brand);
    border-color: var(--color-border-default);
    background: white;
}
.button.secondary:hover {
    background: var(--color-bg-brand-soft);
}
.button.ghost {
    color: var(--color-text-secondary);
    background: transparent;
}
.button.ghost:hover {
    background: var(--color-bg-subtle);
}
.button.danger {
    color: white;
    background: var(--color-bg-destructive);
}
.button:disabled {
    color: var(--color-text-muted);
    background: var(--color-bg-disabled);
    border-color: var(--color-border-default);
}
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
}
.badge.success {
    color: var(--color-text-success);
    background: var(--color-bg-success);
}
.badge.warning {
    color: var(--color-text-warning);
    background: var(--color-bg-warning);
}
.badge.danger {
    color: var(--color-text-danger);
    background: var(--color-bg-danger);
}
.badge.info {
    color: var(--color-text-info);
    background: var(--color-bg-info);
}
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 16px;
    background: var(--color-bg-info);
    color: var(--color-text-info);
}
.alert > div {
    min-width: 0;
}
.alert .icon {
    margin-top: 2px;
}
.alert strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}
.alert ul {
    padding-left: 20px;
    margin: 4px 0 0;
}
.alert.warning {
    background: var(--color-bg-warning);
    color: var(--color-text-warning);
}
.alert.danger {
    background: var(--color-bg-danger);
    color: var(--color-text-danger);
}
.alert.success {
    background: var(--color-bg-success);
    color: var(--color-text-success);
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.stat {
    background: white;
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.stat-value {
    font-size: 32px;
    line-height: 40px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.class-card,
.material-card {
    background: white;
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.material-card {
    gap: 16px;
    padding: 20px;
}
.class-card .actions {
    margin-top: auto;
}
.overline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-brand);
    font-size: 14px;
    font-weight: 600;
}
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.field .label {
    font-weight: 500;
}
.field input,
.field select,
.field textarea,
.input {
    width: 100%;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
    padding: 11px 16px;
    background: white;
    color: var(--color-text-primary);
    min-height: 48px;
    min-width: 0;
}
.field textarea {
    min-height: 112px;
    resize: vertical;
}
.field input[type="file"] {
    padding: 10px;
}
.field input[type="checkbox"],
.field input[type="radio"] {
    width: 24px;
    min-height: 24px;
    accent-color: var(--color-bg-brand);
}
.field-error {
    color: var(--color-text-danger);
    font-size: 14px;
}
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 12px 0;
}
.checkbox input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 2px 0;
    accent-color: var(--color-bg-brand);
}
.search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
    padding: 0 16px;
    background: white;
    color: var(--color-text-secondary);
    flex: 1;
    max-width: 400px;
    min-width: 180px;
}
.search input {
    border: 0;
    background: none;
    outline-offset: 3px;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
}
.toolbar {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}
.toolbar > .field {
    min-width: 160px;
    flex: 1;
    max-width: 300px;
}
.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 4px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    font-size: 14px;
    font-weight: 600;
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    padding: 14px 16px;
    white-space: nowrap;
}
td {
    padding: 20px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-bg-subtle);
    min-height: 64px;
}
td.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
td small {
    color: var(--color-text-secondary);
}
td .button {
    min-height: 40px;
    padding: 7px 12px;
}
tbody tr:last-child td {
    border-bottom: 0;
}
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.table-footer .button {
    min-height: 40px;
    padding: 7px 24px;
}
.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    min-height: 200px;
}
.empty .icon {
    color: var(--color-text-secondary);
}
.empty p {
    max-width: 480px;
}
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-default);
    flex-wrap: wrap;
    padding-bottom: 8px;
}
.tabs button {
    border: 0;
    background: transparent;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--color-text-secondary);
}
.tabs button[aria-selected="true"] {
    background: var(--color-bg-brand-soft);
    color: var(--color-text-brand);
    font-weight: 600;
}
.accordion {
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    background: white;
    overflow: hidden;
}
.accordion summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 500;
    min-height: 64px;
}
.accordion > div {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.action-menu {
    position: relative;
}
.action-menu summary {
    list-style: none;
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-text-secondary);
}
.action-menu summary:hover {
    background: var(--color-bg-subtle);
}
.action-menu[open] > a {
    position: absolute;
    right: 0;
    top: 50px;
    min-width: 210px;
    padding: 16px;
    background: white;
    box-shadow: 0 6px 24px #172c4520;
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    z-index: 2;
}
.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--color-bg-subtle);
    overflow: hidden;
}
.progress-track > span {
    display: block;
    height: 100%;
    background: var(--color-bg-brand);
}
dialog {
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
    padding: 24px;
    background: white;
    color: var(--color-text-primary);
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    box-shadow: 0 16px 64px #172c4530;
}
dialog::backdrop {
    background: #0d1b2c80;
}
.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.dialog-heading .button {
    min-width: 48px;
    padding: 12px;
}
.dialog-heading + p {
    margin-bottom: 24px;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.navigation-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--color-text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 100;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 12px;
    background: white;
    padding: 12px;
    z-index: 200;
}
.skip-link:focus {
    top: 12px;
}
.mobile-only {
    display: none;
}
.mobile-drawer {
    padding: 16px;
    width: 300px;
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
}
.mobile-drawer[open] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-card {
    width: min(440px, 100%);
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
    padding: 32px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.auth-card .brand {
    margin-bottom: 12px;
}
.auth-card h1 {
    font-size: 28px;
    line-height: 36px;
}
.auth-card .button {
    width: 100%;
}
.login-note {
    font-size: 14px;
    line-height: 22px;
    border-top: 1px solid var(--color-bg-subtle);
    padding-top: 20px;
}
.score-input {
    width: 100px;
    padding: 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
}
.score-table {
    min-width: 600px;
}
.cor-document {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    display: grid;
    gap: 24px;
}
.cor-heading {
    text-align: center;
}
.record-list {
    display: grid;
    gap: 12px;
}
.record-item {
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.record-item > div {
    min-width: 0;
}
.repeat-row {
    display: flex;
    align-items: end;
    gap: 12px;
}
.repeat-row > .field {
    flex: 1;
    min-width: 0;
}
.setup-tabs {
    position: sticky;
    top: 0;
    background: var(--color-bg-canvas);
    z-index: 4;
    padding-top: 8px;
}
.number {
    font-variant-numeric: tabular-nums;
}
.error-page {
    text-align: center;
    max-width: 520px;
    margin: 80px auto;
    display: grid;
    gap: 24px;
}
.text-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
}
@media (min-width: 1600px) {
    .main {
        max-width: 1500px;
        margin: 0 auto;
    }
}
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading > .button {
        flex-shrink: 0;
    }
}
@media (max-width: 800px) {
    .sidebar {
        display: none;
    }
    .app-body {
        margin: 0;
    }
    .topbar {
        height: 80px;
        padding: 16px;
    }
    .topbar strong {
        font-size: 16px;
    }
    .topbar small {
        font-size: 12px;
    }
    .main {
        padding: 16px;
        gap: 24px;
    }
    .mobile-only {
        display: inline-flex;
    }
    .page-heading {
        flex-wrap: wrap;
    }
    .page-heading h1 {
        font-size: 30px;
    }
    .page-heading > .button {
        width: 100%;
    }
    .card-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        gap: 16px;
    }
    .stat {
        padding: 16px;
    }
    .panel {
        padding: 20px;
    }
    .class-card {
        padding: 24px;
    }
    .toolbar > .field,
    .search {
        max-width: none;
        flex-basis: 100%;
    }
    .toolbar > .button {
        flex: 1;
    }
    .table-footer {
        flex-wrap: wrap;
    }
    .table-footer > .actions {
        width: 100%;
        justify-content: space-between;
    }
    .table-scroll table {
        min-width: 620px;
    }
    .record-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .record-item > .actions {
        width: 100%;
    }
    .record-item .button {
        width: 100%;
    }
    .repeat-row {
        flex-wrap: wrap;
    }
    .repeat-row > .field {
        flex-basis: 40%;
    }
    .auth-card {
        padding: 24px;
    }
    .cor-document {
        padding: 20px;
    }
    .setup-tabs {
        position: static;
    }
    .button {
        white-space: normal;
    }
    .tabs button {
        padding: 12px;
    }
    .dialog-heading h2 {
        font-size: 22px;
    }
}
.student-directory-cards {
    display: none;
}
.student-grade-cards,
.student-subject-cards {
    display: none;
}
.student-grade-card,
.student-subject-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}
.student-grade-card + .student-grade-card,
.student-subject-card + .student-subject-card {
    border-top: 1px solid var(--color-border-default);
}
.profile-grade-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--color-bg-subtle);
    border-radius: 8px;
    padding: 16px;
}
.profile-grade-result > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-official-grade {
    font-size: 28px;
    line-height: 36px;
    font-variant-numeric: tabular-nums;
}
.student-directory-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}
.student-directory-card + .student-directory-card {
    border-top: 1px solid var(--color-border-default);
}
.student-directory-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}
.student-directory-card dt {
    font-size: 14px;
    color: var(--color-text-secondary);
}
.student-directory-card dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}
.student-directory-card .button {
    width: 100%;
}
.student-list-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    text-decoration: none;
}
.student-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-brand-soft);
    color: var(--color-text-brand);
    font-size: 18px;
    font-weight: 600;
}
.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.student-avatar.large {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
    font-size: 36px;
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 44px;
}
.student-hero {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 32px;
}
.student-photo-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.student-photo-block .button {
    padding: 8px;
}
.student-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.student-identity h1 {
    overflow-wrap: anywhere;
}
.student-number {
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.student-hero > .button {
    align-self: flex-start;
}
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.student-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}
.student-details > div {
    min-width: 0;
}
.student-details dt {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.student-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.profile-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.profile-summary + .profile-summary {
    border-top: 1px solid var(--color-border-default);
    padding-top: 20px;
}
.profile-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.profile-record-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.profile-record-heading p {
    margin-top: 6px;
}
.cell-detail {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}
.official-grade {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}
.grade-changes {
    margin-top: 12px;
}
.grade-changes summary,
.profile-subjects summary {
    color: var(--color-text-brand);
    cursor: pointer;
    padding: 12px 0;
    min-height: 44px;
}
.grade-changes p {
    margin-top: 12px;
}
.student-file p {
    overflow-wrap: anywhere;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .student-directory-table {
        display: none;
    }
    .student-grade-table,
    .student-subject-table {
        display: none;
    }
    .student-grade-cards,
    .student-subject-cards {
        display: flex;
        flex-direction: column;
    }
    .student-directory-cards {
        display: flex;
        flex-direction: column;
    }
    .student-hero {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    .student-identity {
        flex-basis: calc(100% - 140px);
    }
    .student-identity h1 {
        font-size: 26px;
        line-height: 34px;
    }
    .student-hero > .button {
        width: 100%;
    }
    .student-avatar.large {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        font-size: 30px;
    }
    .student-photo-block {
        max-width: 100px;
    }
    .student-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-record-heading {
        flex-direction: column;
    }
    .profile-quick-links {
        flex-direction: column;
    }
    .student-file > .button {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    .sidebar,
    .topbar,
    .no-print,
    .page-heading,
    .navigation-status,
    .skip-link,
    .alert,
    .tabs,
    .table-footer,
    .toolbar {
        display: none !important;
    }
    .app-body {
        margin: 0;
    }
    .main,
    .panel {
        padding: 0;
        border: 0;
    }
    .main {
        display: block;
    }
    .table-scroll {
        overflow: visible;
    }
    table {
        min-width: 0 !important;
        font-size: 11px;
    }
    td,
    th {
        padding: 8px;
        border-bottom: 1px solid #ccc;
    }
    thead {
        display: table-header-group;
    }
    .cor-document {
        max-width: none;
        padding: 0;
    }
    .panel h3 {
        margin: 16px 0;
    }
    .report-summary {
        display: block;
    }
    body,
    html {
        background: white;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
}
/* Phase 1 meeting and final-grade forms. */
.subject-choice { padding: 18px; border: 1px solid var(--border, #d9e1ee); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.subject-choice legend { font-weight: 600; padding: 0 6px; }
.subject-choice small { display: block; }
.phase-cards { display: none; }
.meeting-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.4fr) repeat(2, minmax(110px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.meeting-row > *, .student-grade-row > * { min-width: 0; }
.student-grade-row {
    display: grid;
    grid-template-columns: minmax(160px, 2fr) minmax(100px, 1fr) minmax(130px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border, #d9e1ee);
}
.student-grade-row small, .student-grade-row strong { display: block; overflow-wrap: anywhere; }
.grade-history { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .phase-table { display: none; }
    .phase-cards { display: grid; gap: 14px; }
    .meeting-row, .student-grade-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .meeting-row > :first-child, .student-grade-row > :first-child, .student-grade-row > button { grid-column: 1 / -1; }
    .meeting-row input, .meeting-row select { max-width: 100%; }
}
