html,
body {
    background: #f6f8fb;
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.app-main {
    min-height: 100vh;
    padding-top: 64px;
}

.theme-toggle-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    margin-right: 0.25rem;
    width: 2.25rem;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.theme-toggle-icon {
    align-items: center;
    display: inline-flex;
}

.theme-toggle-icon--light,
.bse-theme-dark .theme-toggle-icon--dark {
    display: none;
}

.bse-theme-dark .theme-toggle-icon--light {
    display: inline-flex;
}

.landing-hero {
    background: linear-gradient(90deg, rgba(10, 49, 58, 0.9), rgba(10, 49, 58, 0.58)), url("img/main_splash.jpg") center/cover no-repeat;
    background-color: #0a313a;
    color: #fff;
    min-height: 420px;
}

.landing-hero .mud-typography {
    color: #fff;
}

.landing-hero__shade {
    align-items: center;
    display: flex;
    min-height: 420px;
}

.landing-hero__content {
    padding-bottom: 3rem;
    padding-top: 3rem;
}

.landing-hero__copy {
    max-width: 650px;
}

.landing-logo {
    height: auto;
    margin-bottom: 1rem;
    max-width: 96px;
}

.landing-actions {
    flex-wrap: wrap;
}

.public-copy {
    color: #1f2937;
    line-height: 1.65;
}

.public-copy .mud-typography,
.info-panel .mud-typography {
    color: #1f2937;
}

.info-panel {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    color: #1f2937;
}

.public-copy .mud-link,
.info-panel .mud-link {
    color: #0f766e;
}

.social-link {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    min-height: 2rem;
}

.social-icon {
    flex: 0 0 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
}

.social-icon-img {
    object-fit: contain;
}

.admin-header__stack,
.admin-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-tab-panel {
    padding: 1rem 0.25rem 0.25rem;
}

.admin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-stat {
    background: #f9fbfd;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    min-height: 96px;
}

.admin-stat-button {
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
    width: 100%;
}

.admin-stat-button:hover,
.admin-stat-button:focus-visible {
    border-color: #0f766e;
    box-shadow: 0 6px 18px rgba(15, 76, 92, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.admin-report-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-report-card-shell {
    min-width: 0;
}

.admin-report-full-width {
    grid-column: 1 / -1;
}

.admin-report-card {
    background: #f9fbfd;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    color: #1f2937;
    overflow: hidden;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.admin-report-card:hover,
.admin-report-card.selected {
    border-color: #0f766e;
    box-shadow: 0 6px 18px rgba(15, 76, 92, 0.12);
    transform: translateY(-1px);
}

.admin-report-card__button {
    align-items: flex-start;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.85rem;
    grid-template-columns: auto 1fr;
    min-height: 112px;
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.admin-report-card__button:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: -3px;
}

.admin-report-card__icon {
    align-items: center;
    background: #e8f4f2;
    border: 1px solid #b6d9d5;
    border-radius: 6px;
    color: #0f766e;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.admin-report-card__content {
    min-width: 0;
}

.report-args-panel {
    max-width: 560px;
}

.report-results-wrap {
    max-height: 60vh;
    overflow: auto;
}

.report-results-table th {
    position: sticky;
    top: 0;
    white-space: nowrap;
    z-index: 1;
}

.report-results-table td {
    white-space: nowrap;
}

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

.admin-table {
    border-collapse: collapse;
    font-size: 0.9rem;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #dbe3ec;
    padding: 0.65rem 0.55rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f2f6fa;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-table.compact th,
.admin-table.compact td {
    padding: 0.5rem;
}

.admin-table.selectable tbody tr {
    cursor: pointer;
}

.admin-table.selectable tbody tr:hover,
.admin-table tbody tr.selected {
    background: #e8f4f2;
}

.selectable .mud-table-row {
    cursor: pointer;
}

.mud-table tbody tr.selected {
    background: #e8f4f2;
}

.admin-actions {
    text-align: right !important;
    white-space: nowrap;
}

.admin-exam-result-meta {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-exam-result-meta div {
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
}

.admin-exam-result-meta span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-exam-result-meta strong {
    color: #0f4c5c;
}

.admin-pager {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.admin-check {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.compact-input {
    min-height: 42px;
}

.native-textarea {
    min-height: 120px;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    resize: vertical;
}

.score-input {
    max-width: 84px;
}

.pager-size {
    max-width: 92px;
}

.dashboard-panel {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
}

.mud-card {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
}

.h-100 {
    height: 100%;
}

.login-form {
    margin: 0;
}

.native-label {
    color: rgba(0, 0, 0, 0.6);
    display: block;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.native-input {
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    box-sizing: border-box;
    color: #1f2937;
    display: block;
    font: inherit;
    min-height: 56px;
    padding: 0 0.85rem;
    width: 100%;
}

.native-input:focus {
    border-color: #0f766e;
    outline: 2px solid rgba(15, 118, 110, 0.2);
}

.student-submit {
    align-items: end;
    display: flex;
}

.student-steps {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.student-steps li {
    margin-bottom: 0.75rem;
}

.login-actions {
    flex-wrap: wrap;
}

.exam-shell {
    color: #1f2937;
}

.exam-hotkey-host:focus {
    outline: none;
}

.exam-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    justify-content: center;
}

.exam-topbar,
.exam-progress-row,
.exam-question-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.exam-timer {
    align-items: flex-end;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-width: 168px;
    padding: 0.65rem 0.85rem;
}

.exam-timer span,
.exam-result-stat span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.exam-timer strong {
    color: #0f4c5c;
    font-size: 1.45rem;
    line-height: 1.2;
}

.exam-timer.warning {
    border-color: #d97706;
}

.exam-timer.warning strong {
    color: #b45309;
}

.exam-timer.danger {
    background: #fff1f2;
    border-color: #be123c;
}

.exam-timer.danger strong {
    color: #be123c;
}

.exam-progress {
    position: sticky;
    top: 72px;
    z-index: 2;
}

.exam-directions-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, 0.68);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1400;
}

.exam-directions-dialog {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    color: #1f2937;
    max-height: calc(100vh - 2rem);
    max-width: 760px;
    overflow: auto;
    padding: 1.25rem;
    width: 100%;
}

.exam-directions-header {
    align-items: flex-start;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
}

.exam-directions-icon {
    align-items: center;
    background: #e8f4f2;
    border: 1px solid #b6d9d5;
    border-radius: 6px;
    color: #0f766e;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.exam-directions-title {
    color: #0f4c5c;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0;
}

.exam-directions-summary {
    color: #475569;
    line-height: 1.5;
    margin: 0.35rem 0 0;
}

.exam-directions-list {
    border-top: 1px solid #dbe3ec;
    display: grid;
    gap: 0;
    margin-top: 1.25rem;
}

.exam-directions-item {
    align-items: center;
    border-bottom: 1px solid #dbe3ec;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 0.4fr) 1fr;
    padding: 1rem 0;
}

.exam-directions-keys {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.exam-key {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-bottom-width: 3px;
    border-radius: 6px;
    color: #0f4c5c;
    display: inline-flex;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0 0.55rem;
}

.exam-key-icon {
    min-width: 3rem;
}

.exam-key-divider {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.exam-directions-copy {
    display: grid;
    gap: 0.25rem;
}

.exam-directions-copy strong {
    color: #0f4c5c;
    font-size: 1rem;
}

.exam-directions-copy span {
    color: #475569;
    line-height: 1.45;
}

.exam-directions-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.exam-directions-start {
    align-items: center;
    background: #0f766e;
    border: 1px solid #0f766e;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 0.45rem;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
}

.exam-directions-start:hover,
.exam-directions-start:focus-visible {
    background: #0f4c5c;
    border-color: #0f4c5c;
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: 2px;
}

.exam-question-panel,
.exam-nav-panel {
    min-height: 100%;
}

.exam-question-text {
    line-height: 1.35;
}

.exam-question-media {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    margin-top: 1.25rem;
    overflow: hidden;
}

.exam-question-media img {
    display: block;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    width: 100%;
}

.exam-answer-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.exam-answer {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1f2937;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.8rem;
    grid-template-columns: 2rem 1fr;
    line-height: 1.35;
    min-height: 64px;
    padding: 0.85rem 1rem;
    text-align: left;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    width: 100%;
}

.exam-answer:hover,
.exam-answer:focus-visible {
    border-color: #0f766e;
    box-shadow: 0 4px 14px rgba(15, 76, 92, 0.11);
    outline: none;
}

.exam-answer.selected {
    background: #e8f4f2;
    border-color: #0f766e;
}

.exam-answer:disabled {
    cursor: progress;
    opacity: 0.78;
}

.exam-answer-letter {
    align-items: center;
    background: #eef2f7;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.exam-answer.selected .exam-answer-letter {
    background: #0f766e;
    color: #ffffff;
}

.exam-question-grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    margin-top: 1rem;
}

.exam-question-nav {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1f2937;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-width: 44px;
}

.exam-question-nav:hover,
.exam-question-nav:focus-visible {
    border-color: #0f766e;
    outline: none;
}

.exam-question-nav.answered {
    background: #e8f4f2;
    border-color: #5fb4ac;
}

.exam-question-nav.current {
    background: #0f4c5c;
    border-color: #0f4c5c;
    color: #ffffff;
}

.exam-result-stat {
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 96px;
    padding: 1rem;
}

.exam-result-stat strong {
    color: #0f4c5c;
    font-size: 1.6rem;
}

.exam-missed-section {
    border-top: 1px solid #dbe3ec;
    padding-top: 1.5rem;
}

.exam-missed-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.exam-missed-question {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    padding: 1rem;
}

.exam-question-media.compact {
    max-width: 420px;
}

.exam-missed-answers {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.exam-missed-answer {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    line-height: 1.35;
    padding: 0.75rem;
}

.exam-missed-answer.correct {
    background: #e8f4f2;
    border-color: #0f766e;
}

.exam-missed-answer.wrong {
    background: #fff1f2;
    border-color: #be123c;
}

.exam-missed-answer strong {
    border-radius: 999px;
    color: #1f2937;
    font-size: 0.72rem;
    white-space: nowrap;
}

.exam-choice {
    max-width: 760px;
}

.exam-choice-detail {
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 320px;
    padding: 1rem;
}

.exam-choice-detail span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.exam-choice-detail strong {
    color: #0f4c5c;
    font-size: 1.2rem;
}

.exam-print-permit {
    background: #ffffff;
    border: 2px solid #0f4c5c;
    border-radius: 6px;
    padding: 1.5rem;
}

.exam-permit-header {
    text-align: center;
}

.exam-permit-header h1,
.exam-permit-header h2 {
    color: #0f4c5c;
}

.exam-permit-message {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.5rem;
    text-align: center;
}

.exam-print-notice {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 1.5rem;
}

.exam-permit-details {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.exam-permit-details div {
    border-bottom: 1px solid #dbe3ec;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(180px, 0.35fr) 1fr;
    padding-bottom: 0.75rem;
}

.exam-permit-details dt {
    color: #475569;
    font-weight: 800;
}

.exam-permit-details dd {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

html.bse-theme-dark,
body.bse-theme-dark,
html:has(.bse-theme-dark),
body:has(.bse-theme-dark) {
    background: #0b1215;
    color-scheme: dark;
}

.bse-theme-dark {
    background: #0b1215;
    color: #e5edf0;
}

.bse-theme-dark .app-main {
    background: #0b1215;
    color: #e5edf0;
}

.bse-theme-dark .mud-paper {
    background-color: #101a20;
    border-color: #29414a;
    color: #e5edf0;
}

.bse-theme-dark .mud-typography,
.bse-theme-dark .mud-list-item-text,
.bse-theme-dark .mud-list-item-icon,
.bse-theme-dark .mud-tab,
.bse-theme-dark .mud-table,
.bse-theme-dark .mud-table-cell {
    color: #e5edf0;
}

.bse-theme-dark .mud-typography-body2,
.bse-theme-dark .mud-typography-subtitle1,
.bse-theme-dark .mud-typography-caption {
    color: #c8dbe1;
}

.bse-theme-dark .mud-drawer,
.bse-theme-dark .mud-tabs-panels,
.bse-theme-dark .mud-tabs-toolbar {
    background-color: #101a20;
    color: #e5edf0;
}

.bse-theme-dark .mud-nav-link,
.bse-theme-dark .mud-nav-link-text,
.bse-theme-dark .mud-nav-link-icon {
    color: #d9e7ec;
}

.bse-theme-dark .mud-nav-link.active,
.bse-theme-dark .mud-tab.mud-tab-active {
    color: #5cc9bd;
}

.bse-theme-dark .mud-divider {
    border-color: #29414a;
}

.bse-theme-dark .mud-button-text.mud-button-text-default,
.bse-theme-dark .mud-button-text.mud-button-text-primary {
    color: #5cc9bd;
}

.bse-theme-dark .mud-button-outlined.mud-button-outlined-primary {
    border-color: #5cc9bd;
    color: #5cc9bd;
}

.bse-theme-dark .mud-alert-outlined {
    background-color: #0f2530;
    border-color: #29414a;
    color: #d9e7ec;
}

.bse-theme-dark .public-copy,
.bse-theme-dark .exam-shell,
.bse-theme-dark .public-copy .mud-typography,
.bse-theme-dark .info-panel .mud-typography,
.bse-theme-dark .dashboard-panel .mud-typography {
    color: #e5edf0;
}

.bse-theme-dark .info-panel,
.bse-theme-dark .admin-stat,
.bse-theme-dark .admin-report-card,
.bse-theme-dark .dashboard-panel,
.bse-theme-dark .mud-card,
.bse-theme-dark .exam-question-panel,
.bse-theme-dark .exam-nav-panel,
.bse-theme-dark .exam-directions-dialog,
.bse-theme-dark .exam-timer,
.bse-theme-dark .exam-result-stat,
.bse-theme-dark .admin-exam-result-meta div,
.bse-theme-dark .exam-missed-question,
.bse-theme-dark .exam-choice-detail,
.bse-theme-dark .exam-print-permit {
    background: #101a20;
    border-color: #29414a;
    color: #e5edf0;
}

.bse-theme-dark .public-copy .mud-link,
.bse-theme-dark .info-panel .mud-link {
    color: #5cc9bd;
}

.bse-theme-dark .social-icon-img {
    filter: invert(1) brightness(1.8);
}

.bse-theme-dark .admin-table th {
    background: #14242a;
    color: #c8dbe1;
}

.bse-theme-dark .admin-table th,
.bse-theme-dark .admin-table td,
.bse-theme-dark .exam-question-media,
.bse-theme-dark .exam-directions-list,
.bse-theme-dark .exam-directions-item,
.bse-theme-dark .exam-missed-section,
.bse-theme-dark .exam-permit-details div {
    border-color: #29414a;
}

.bse-theme-dark .admin-table.selectable tbody tr:hover,
.bse-theme-dark .admin-table tbody tr.selected,
.bse-theme-dark .mud-table tbody tr.selected,
.bse-theme-dark .exam-answer.selected,
.bse-theme-dark .exam-question-nav.answered,
.bse-theme-dark .exam-missed-answer.correct {
    background: #123b38;
    border-color: #5cc9bd;
}

.bse-theme-dark .admin-stat-button:hover,
.bse-theme-dark .admin-stat-button:focus-visible,
.bse-theme-dark .admin-report-card:hover,
.bse-theme-dark .admin-report-card.selected,
.bse-theme-dark .exam-answer:hover,
.bse-theme-dark .exam-answer:focus-visible,
.bse-theme-dark .exam-question-nav:hover,
.bse-theme-dark .exam-question-nav:focus-visible {
    border-color: #5cc9bd;
    box-shadow: 0 6px 18px rgba(92, 201, 189, 0.14);
}

.bse-theme-dark .native-label,
.bse-theme-dark .exam-timer span,
.bse-theme-dark .exam-directions-summary,
.bse-theme-dark .exam-directions-copy span,
.bse-theme-dark .exam-key-divider,
.bse-theme-dark .exam-result-stat span,
.bse-theme-dark .admin-exam-result-meta span,
.bse-theme-dark .exam-choice-detail span,
.bse-theme-dark .exam-permit-details dt {
    color: #9fb3bd;
}

.bse-theme-dark .native-input,
.bse-theme-dark .exam-answer,
.bse-theme-dark .exam-question-nav,
.bse-theme-dark .exam-key,
.bse-theme-dark .exam-missed-answer {
    background: #0d171c;
    border-color: #3a5660;
    color: #e5edf0;
}

.bse-theme-dark .native-input::placeholder {
    color: #9fb3bd;
}

.bse-theme-dark .native-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.35);
}

.bse-theme-dark .native-input:focus {
    border-color: #5cc9bd;
    outline-color: rgba(92, 201, 189, 0.28);
}

.bse-theme-dark .exam-answer-letter {
    background: #263a43;
    color: #c8dbe1;
}

.bse-theme-dark .exam-directions-icon {
    background: #123b38;
    border-color: #5cc9bd;
    color: #5cc9bd;
}

.bse-theme-dark .admin-report-card__icon {
    background: #123b38;
    border-color: #5cc9bd;
    color: #5cc9bd;
}

.bse-theme-dark .exam-answer.selected .exam-answer-letter,
.bse-theme-dark .exam-question-nav.current {
    background: #5cc9bd;
    border-color: #5cc9bd;
    color: #062b32;
}

.bse-theme-dark .exam-timer strong,
.bse-theme-dark .exam-result-stat strong,
.bse-theme-dark .admin-exam-result-meta strong,
.bse-theme-dark .exam-choice-detail strong,
.bse-theme-dark .exam-directions-title,
.bse-theme-dark .exam-directions-copy strong,
.bse-theme-dark .exam-key,
.bse-theme-dark .exam-permit-header h1,
.bse-theme-dark .exam-permit-header h2 {
    color: #75ded2;
}

.bse-theme-dark .exam-permit-details dd,
.bse-theme-dark .exam-missed-answer strong {
    color: #e5edf0;
}

.bse-theme-dark .exam-timer.warning {
    background: #33250d;
    border-color: #d4a24a;
}

.bse-theme-dark .exam-timer.warning strong {
    color: #fbbf24;
}

.bse-theme-dark .exam-timer.danger,
.bse-theme-dark .exam-missed-answer.wrong {
    background: #3a1218;
    border-color: #f87171;
}

.bse-theme-dark .exam-timer.danger strong {
    color: #f87171;
}

@media (max-width: 600px) {
    .admin-report-grid {
        grid-template-columns: 1fr;
    }

    .exam-directions-dialog {
        padding: 1rem;
    }

    .exam-directions-header,
    .exam-directions-item {
        grid-template-columns: 1fr;
    }

    .exam-directions-actions {
        justify-content: stretch;
    }

    .exam-directions-start {
        width: 100%;
    }

    .exam-timer {
        align-items: flex-start;
        width: 100%;
    }

    .exam-progress {
        position: static;
    }

    .exam-answer {
        grid-template-columns: 1.75rem 1fr;
        padding: 0.75rem;
    }

    .exam-permit-details div {
        grid-template-columns: 1fr;
    }
}

@media print {
    html,
    body {
        background: #ffffff !important;
    }

    .mud-appbar,
    .mud-drawer,
    .exam-result-alert,
    .exam-result-summary,
    .exam-result-actions,
    #blazor-error-ui {
        display: none !important;
    }

    .app-main {
        padding-top: 0 !important;
    }

    .exam-shell {
        max-width: none !important;
        padding: 0 !important;
    }

    .exam-result {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .exam-print-permit {
        border: 0;
        border-radius: 0;
        color: #000000;
        margin: 0;
        padding: 0.25in;
    }

    .exam-permit-header h1,
    .exam-permit-header h2,
    .exam-result-stat strong {
        color: #000000 !important;
    }

    .exam-print-notice {
        border-color: #000000 !important;
        color: #000000 !important;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
