:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #132b2c; background: #eef5f3; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
body.dashboard-alert { background: #ffa39a; }
main { max-width: 1320px; margin: auto; padding: clamp(18px, 4vw, 52px); }
.dashboard main { max-width: none; padding: clamp(10px, 1.5vw, 20px); }
h1 { font-size: clamp(28px, 4vw, 43px); letter-spacing: -.04em; margin: 0; }
header { margin-bottom: 2rem; }
p { margin: .45rem 0 1rem; }
button, input { font: inherit; border-radius: .55rem; padding: .58rem .85rem; }
button { border: 1px solid #12534a; background: #12534a; color: white; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.secondary { background: white; color: #12534a; }
input { display: block; width: 100%; border: 1px solid #96aba7; background: white; color: inherit; }
label { display: block; font-weight: 600; }
form { max-width: 360px; }
form button { margin-top: .8rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.toolbar label { flex: 1 1 260px; }
#summary { margin: .5rem 0; font-weight: 600; }
#notice { margin-top: 1rem; color: #8f301e; }
#grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 520px) { #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 750px) { #grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 950px) { #grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1150px) { #grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { min-width: 0; border: 2px solid #c7d9d5; border-radius: 12px; background: white; overflow: hidden; }
.tile[data-warning="true"] { border-color: #b84936; }
.tile[data-warning="true"] .status { color: #8f301e; }
.tile h2 { font-size: 1rem; margin: 8px 12px 0; overflow-wrap: anywhere; }
.tile .status { margin: 1px 12px 8px; font-size: .875rem; }
.tile video, .tile img { display: block; width: 100%; aspect-ratio: 16/9; background: #102525; object-fit: contain; }

textarea { display: block; width: min(100%, 35rem); font: inherit; padding: .55rem; }
.student-title { border: 0; background: transparent; color: inherit; padding: 0; font-weight: inherit; text-align: left; text-decoration: underline; }
.tab-status { font-weight: 600; }
dialog { width: min(90vw, 42rem); max-height: 80vh; padding: 1rem; border: 1px solid #96aba7; border-radius: .65rem; }
dialog form { float: right; }
dialog form button { margin: 0; }
#activity-list li { margin-bottom: .65rem; overflow-wrap: anywhere; }
#tab-monitor { margin-top: 1rem; }
