:root { font-family: system-ui, sans-serif; color: #212121; background: #f5f5f5; }
body { margin: 0; min-height: 100vh; }
.teacher { background: #212121; }
.student { background: #e66565; }
.acting { background: #B23C3C; }
.acting header { color: #fff; }
.acting header :focus-visible { outline-color: #fff; }
.acting .workspace { border: 3px solid #B23C3C; }
.user-bar { flex-wrap: wrap; justify-content: flex-end; }
.acting-controls label { margin-top: 0; }
.acting-controls select { width: 16rem; }
header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; color: white; }
.student header { color: #212121; }
.user-bar { display: flex; align-items: center; gap: 1rem; }
.card { box-sizing: border-box; width: min(32rem, 90%); margin: 5rem auto; padding: 2rem; background: white; border-radius: .5rem; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input { box-sizing: border-box; width: 100%; padding: .65rem; margin-top: .25rem; border: 1px solid #666; border-radius: .25rem; font: inherit; }
button { margin-top: 1.5rem; padding: .65rem 1rem; border: 0; border-radius: .25rem; color: white; background: #212121; cursor: pointer; font: inherit; }
header button { margin: 0; border: 1px solid currentColor; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.teacher header :focus-visible { outline-color: white; }
.student header :focus-visible { outline-color: #212121; }
.error { padding: .75rem; color: white; background: #991b1b; }
.register { width: min(70rem, 95%); margin: 2rem auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .75rem; border-bottom: 1px solid #888; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 45rem) { .register { overflow-x: auto; } }
.workspace { box-sizing: border-box; width: min(72rem, 95%); margin: 2rem auto; padding: 2rem; background: white; border-radius: .5rem; }
.workspace section { margin-top: 2.5rem; }
.lab-card { border: 1px solid #888; border-radius: .5rem; padding: 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.lab-card h3 { margin-top: 0; }
.destroy-form { max-width: 32rem; }
.mark-sheet { margin-top: 1.5rem; border-top: 1px solid #ccc; }
.marks li { padding: .5rem; }
.verdict-satisfied { color: #167438; }
.verdict-unsatisfied { color: #b23c3c; font-weight: bold; }
.verdict-unknown { color: #555; }
.stale { color: #991b1b; }
button:disabled { opacity: .55; cursor: not-allowed; }
.teacher .workspace { color: #212121; }
.teacher .workspace a { color: #17418b; }
select { box-sizing: border-box; display: block; width: min(30rem, 100%); padding: .65rem; font: inherit; }
.member { border-top: 2px solid #888; padding-top: 1rem; }
.scenario-group { margin-left: 1rem; }
.member[hidden], .lab-card[hidden], .destroy-form[hidden] { display: none; }
.scenarios form { margin: 1rem 0; }
.scenarios fieldset { border: 1px solid #888; }
.scenarios .check { font-weight: normal; }
.scenarios .check input { width: auto; margin-right: .5rem; }
.scenarios pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
#cluster { background: #212121; color: #fff; border-radius: .5rem; padding: 1.5rem; }
#cluster-labs { padding-left: 1.5rem; overflow-wrap: anywhere; }
#cluster-labs li { margin: 1rem 0; }
.resource-meters { display: flex; flex-wrap: wrap; gap: 1rem; }
.resource-meter { display: grid; gap: .25rem; }
.resource-meter meter { width: 10rem; }
#cluster :focus-visible { outline-color: #fff; }

.capture-evidence { white-space: pre-wrap; overflow-wrap: anywhere; }

.hint-text { white-space: pre-wrap; overflow-wrap: anywhere; }

.stored-result, .result-proof { overflow-wrap: anywhere; }
.stored-result pre, pre.result-proof { white-space: pre-wrap; overflow-wrap: anywhere; }
.result-proof dt { font-weight: bold; margin-top: .5rem; }
.result-proof dd { margin-left: 1rem; }
.stored-score { font-size: 1.2rem; font-weight: bold; }

.class-results { overflow-wrap: anywhere; }
