/* Practical accessibility and administration styles. */
:root { --ink: #222838; --muted: #535b6d; --purple: #6546ae; --purple-dark: #50348e; --line: #dedee6; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
input::placeholder, textarea::placeholder { color: #626a7b; }
:focus-visible { outline: 3px solid #263d94; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #263d94; outline-offset: 2px; }
select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b7bdc9; border-radius: 9px; padding: 11px 12px; max-width: 100%; min-width: 0; }
button:disabled { cursor: not-allowed; }
.page-footer { flex-wrap: wrap; color: #555d6d; font-size: .75rem; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.page-footer a, .v2-policy a { text-decoration: underline; text-underline-offset: 3px; }
.sidebar-course, .sidebar-note, .sidebar .nav-group-label, .reference-card small { color: #b8c0d7; }
.sidebar .nav-item { font-size: .8rem; }
.sidebar .nav-item .icon { color: #aab4d1; }
.sidebar .nav-item.active, .sidebar .nav-item.active .icon { color: #e5dbff; }
.topbar-label, .user-role, .eyebrow, .page-heading .eyebrow, .badge-outline,
.page-description, .module-card > p, .module-meta, .module-progress > div:first-child,
.module-number, .learning-note, .learning-note strong, .feature-strip small,
.feature-strip strong, .progress-summary p:not(.eyebrow), .next-summary p:not(.eyebrow),
.class-header p, .student-name small, .class-code span, .metric-card > span,
.metric-card p, .field-hint, .muted, .help-card p, .help-steps p,
.workbook-card-header p, .pending-message, .review-student span,
.lesson-row-copy > span, .lesson-row-copy small, .teacher-feedback,
.module-heading > div > p:not(.eyebrow), .aside-tip, .module-side-progress,
.dialog-intro, .auth-footer, .help-card > p, .auth-footer .icon,
.account-profile > p, .account-password > p, .account-data > p,
.lesson-block-heading p, .read-checkpoint small, .lesson-validation p,
.lesson-validation li small, .quiz-result p, .python-status { color: #555d6e; }
.eyebrow, .module-meta, .module-number, .module-progress > div:first-child,
.feature-strip small, .feature-strip strong, .progress-summary p:not(.eyebrow),
.next-summary p:not(.eyebrow), .learning-note, .module-preview,
.lesson-row-copy small, .badge, .button-small, .class-header p { font-size: .75rem; }
.module-card > p, .page-description, .field-hint, .course-prose, .help-card p { font-size: .875rem; }
.text-link, .back-link, .button-ghost, .hero-text-link, .filter-tabs > button { color: #604484; font-size: .8125rem; }
.welcome-hero .hero-copy > p, .hero-footnote, .hero-pill { color: #5a506e; }
.welcome-hero .hero-copy > p { font-size: .875rem; }
.welcome-hero h2 span { color: #6b4697; }
.hero-footnote, .hero-pill { font-size: .75rem; }
.badge-neutral { color: #555c6d; }
.badge-amber { color: #775016; }
.badge-violet { color: #66468b; }
.badge-mint { color: #286447; }
.badge-rose { color: #924048; }
.button-danger { background: #fff1ef; color: #9b2f2f; border-color: #ce9898; }
.button-danger:hover { background: #ffe3e1; }
.module-preview, .module-progress strong, .progress-module-header > strong { color: #604484; }
.accent-blue .module-preview, .accent-blue .module-progress strong { color: #365a7b; }
.accent-rose .module-preview, .accent-rose .module-progress strong { color: #834464; }
.accent-mint .module-preview, .accent-mint .module-progress strong { color: #326447; }
.accent-amber .module-preview, .accent-amber .module-progress strong { color: #75561e; }
.accent-cyan .module-preview, .accent-cyan .module-progress strong { color: #346268; }
.accent-peach .module-preview, .accent-peach .module-progress strong { color: #805336; }
.heading-actions, .v2-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.heading-actions { justify-content: flex-end; }
.v2-actions .button { white-space: normal; text-align: center; }
.v2-school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 24px 0; }
.v2-school-card { padding: 24px; }
.v2-school-card h2 { font-size: 1.2rem; }
.v2-school-card .v2-actions { margin-top: 12px; }
.v2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 12px; }
.v2-stats dt { font-size: .8125rem; color: var(--muted); }
.v2-stats dd { margin: 4px 0 0; font-weight: 650; font-size: 1.2rem; }
.v2-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 24px 0; }
.v2-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; }
.v2-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: end; gap: 15px; margin-bottom: 14px; }
.v2-grid-form label, .v2-grid-form input, .v2-grid-form select { width: 100%; }
.v2-grid-form label { display: grid; gap: 8px; font-size: .875rem; font-weight: 550; }
.v2-grid-form .form-error { grid-column: 1 / -1; }
.v2-class-card { overflow: hidden; }
.v2-class-tools { padding: 0 24px 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.v2-class-card table { font-size: .8125rem; }
.v2-class-card table th, .v2-class-card table td { white-space: normal; }
.v2-class-card table th:first-child { min-width: 130px; }
.v2-class-card table td:nth-child(2) { overflow-wrap: anywhere; }
.v2-empty { padding: 0 24px 20px; color: var(--muted); font-size: .875rem; }
.v2-data-note { margin-top: 28px; }
.v2-policy { background: #fff1cf; border: 1px solid #b48b33; padding: 15px 19px; border-radius: 9px; color: #604417; font-size: .875rem; line-height: 1.6; margin-bottom: 25px; }
.v2-preference, .v2-checkbox { display: flex; align-items: flex-start; gap: 11px; font-size: .875rem; line-height: 1.5; margin: 15px 0; }
.v2-checkbox input, .v2-preference input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; padding: 0; accent-color: var(--purple); }
.v2-preference { padding: 17px 0; border-bottom: 1px solid var(--line); }
.v2-preference strong, .v2-preference small { display: block; }
.v2-preference small { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.v2-preferences { margin-bottom: 25px; }
.v2-impact { padding: 17px; border: 1px solid #d0a5a5; background: #fff2ee; border-radius: 10px; margin: 18px 0; color: #773535; }
.v2-impact h3 { font-size: 1rem; }
.v2-impact p:last-child { margin-bottom: 0; }
.v2-preview-table { max-height: 340px; overflow-y: auto; margin: 18px 0; }
.v2-preview-table table { font-size: .8125rem; }
.v2-secret-uri, .v2-recovery-codes { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875rem; overflow-wrap: anywhere; }
.v2-provider-list { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.v2-provider-list h3 { font-size: 1rem; }
.v2-provider-list .button { margin-top: 10px; }
.v2-mfa-challenge { background: #f0ecfa; border-radius: 9px; padding: 18px; margin: 20px 0; }
.v2-mfa-challenge p { font-size: .875rem; }
.v2-reference { margin: 22px 0; padding: 22px; }
.v2-reference h2 { font-size: 1.15rem; }
.v2-reference h3 { font-size: .95rem; }
.v2-reference p, .v2-reference ul { font-size: .875rem; }
.v2-reference ul { padding-left: 20px; }
.v2-reference li { margin: 6px 0; }
dialog { max-width: min(680px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
dialog .field-label { display: block; }
dialog .field-label input, dialog .field-label select { display: block; width: 100%; margin-top: 8px; }
dialog fieldset { border: 1px solid #bcc2cf; border-radius: 9px; margin: 20px 0; }
dialog p, dialog li { font-size: .875rem; }
.form-error { color: #9a232b; background: #fff1ef; border-radius: 6px; padding: 10px 12px; font-size: .875rem; }
.form-error[hidden] { display: none; }
html.pref-largeText { font-size: 20px; }
.pref-largeText body { font-size: 1rem; }
.pref-largeText .main-content p, .pref-largeText .main-content li,
.pref-largeText .main-content td, .pref-largeText .main-content th,
.pref-largeText .main-content label, .pref-largeText .main-content small,
.pref-largeText .main-content .button, .pref-largeText .main-content .text-link,
.pref-largeText .main-content input, .pref-largeText .main-content textarea,
.pref-largeText .main-content select, .pref-largeText .nav-item,
.pref-largeText dialog p, .pref-largeText dialog label, .pref-largeText dialog li,
.pref-largeText dialog input, .pref-largeText dialog textarea, .pref-largeText dialog button { font-size: 1rem; }
.pref-largeText .sidebar-course { white-space: normal; line-height: 1.6; }
.pref-largeText .topbar { min-height: 80px; height: auto; padding-top: 16px; padding-bottom: 16px; }
.pref-highContrast { --ink: #101318; --muted: #202632; --purple: #433080; --purple-dark: #30215f; --line: #7b8392; }
.pref-highContrast .card, .pref-highContrast input, .pref-highContrast textarea, .pref-highContrast select { border-color: #596273; }
.pref-highContrast .main-content p, .pref-highContrast .main-content li, .pref-highContrast .main-content small,
.pref-highContrast .main-content .eyebrow, .pref-highContrast .main-content .field-hint,
.pref-highContrast .module-meta, .pref-highContrast .module-preview, .pref-highContrast .text-link,
.pref-highContrast .back-link, .pref-highContrast .topbar-label, .pref-highContrast .user-role,
.pref-highContrast .page-footer, .pref-highContrast dialog p { color: #202632; }
.pref-highContrast .sidebar { background: #111722; color: #fff; }
.pref-highContrast .sidebar a, .pref-highContrast .sidebar small, .pref-highContrast .sidebar .nav-group-label { color: #fff; }
.pref-reduceDistractions .hero-art, .pref-reduceDistractions .art-plus, .pref-reduceDistractions .art-dot, .pref-reduceDistractions .orbit { display: none; }
.pref-reduceDistractions *, .pref-reduceDistractions *::before, .pref-reduceDistractions *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 950px) { .v2-grid-form { grid-template-columns: 1fr; } .heading-actions { justify-content: flex-start; } .v2-class-tools { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) {
  .v2-school-card, .v2-reference { padding: 19px; }
  .v2-class-tools { padding: 0 16px 18px; }
  .class-header { flex-wrap: wrap; gap: 18px; }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .page-footer { margin-left: 20px; margin-right: 20px; }
  .v2-class-card .v2-actions { min-width: 160px; }
  .v2-toolbar { align-items: flex-start; }
  .v2-toolbar label { width: 100%; }
  .v2-toolbar select { width: 100%; }
  .v2-school-grid { grid-template-columns: 1fr; }
  .pref-largeText .module-grid, .pref-largeText .metric-grid { grid-template-columns: 1fr; }
  .topbar-right { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Text in the learning and correction screens must remain readable on pale cards. */
.check-list li, .module-side-progress > span, .keypoints ul,
.read-checkpoint strong, .read-checkpoint small, .read-checkpoint p,
.lesson-outline button, .lesson-outline button > span, .lesson-validation h3,
.lesson-validation p:not(.eyebrow), .lesson-validation li, .lesson-validation li small,
.lesson-block-heading p:not(.eyebrow), .quiz-question legend > span,
.quiz-option, .option-letter, .quiz-explanation, .quiz-result,
.activity-title h3 > span, .activity-card .course-prose, .rubric,
.metric-card > p, .metric-card > strong small, .metric-card > span:not(.metric-icon),
.progress-module-header p, table, thead, tbody th,
.empty-state h3, .empty-state p, .workbook-card-header p:not(.eyebrow),
.submission-answer, .compact-review > div > span, .compact-review-date,
.create-class p, .class-code, .class-code strong, .table-progress,
.review-student > div > span, .expected-answer .course-prose,
.admin-section > p, .account-profile > p:not(.field-hint),
.help-steps, .help-steps strong, .help-steps p,
.login-prompt p, .loading-card, .error-screen p, dialog > p,
.auth-footer, .delete-confirmation { color: #515969; }
summary, .field-label, .auth-tabs button, .auth-tabs button.active,
.auth-footer a, .copy-token, .lesson-resources a,
.filter-tabs > button.selected, .keypoints .eyebrow, .course-section-number { color: #60447f; }
.answer-field, .review-card textarea { color: #252b3b; }
.info-banner, .info-banner strong { color: #544166; }
.table-check, .score-good, .lesson-validation .done,
.read-checkpoint .read-confirmed strong, .quiz-option.correct-option,
.quiz-explanation.correct, .quiz-result.result-success { color: #286448; }
.quiz-option.incorrect-option, .quiz-explanation.incorrect { color: #923244; }
.icon-button { color: #535d70; }
.toast-error { color: #fff; background: #973344; }
.lesson-order, .lesson-complete .lesson-order, .expected-answer summary { color: #60447f; }
.v2-operation-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 17px; margin: 22px 0; }
.v2-operation-checks article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.v2-operation-checks h3 { font-size: .95rem; margin-bottom: 12px; }
.v2-operation-checks p { margin: 12px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.v2-stats .v2-fact-text { font-size: .9375rem; line-height: 1.6; }
@media (max-width: 780px) {
  .sidebar { visibility: hidden; }
  .menu-open .sidebar { visibility: visible; }
}
