:root { font-family: system-ui, sans-serif; color: #172b4d; background: #edf4fa; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid #bdcfe1; padding: 16px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
h1 { font-size: 24px; margin: 0; } h2 { font-size: 21px; } h3 { font-size: 18px; }
main { max-width: 1100px; margin: auto; padding: 18px; }
section, article, details { background: white; border: 1px solid #bdcfe1; border-radius: 12px; padding: 20px; margin-bottom: 18px; min-width: 0; }
p { line-height: 1.6; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, .button { display: inline-block; padding: 11px 15px; background: #0869cd; color: white; border: 1px solid #0869cd; border-radius: 8px; margin: 6px 8px 6px 0; text-decoration: none; min-height: 44px; cursor: pointer; }
button:disabled { background: #e7edf5; border-color: #b9c6d7; color: #526070; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #172b4d; outline-offset: 3px; }
label { display: block; margin: 12px 0; line-height: 1.6; }
input:not([type=checkbox]), textarea { display: block; width: 100%; padding: 10px; border: 1px solid #8cabc9; border-radius: 7px; }
input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cards article { margin: 0; }
.videos { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-tile { background: #101d30; color: white; border-radius: 10px; padding: 10px; min-width: 0; }
.video-tile.interpreter { grid-column: 1 / -1; order: -1; border: 3px solid #1b78d9; }
video { display: block; width: 100%; max-height: 55vh; object-fit: contain; background: #101d30; }
.in-session .videos { position: sticky; top: 0; z-index: 2; background: #edf4fa; padding: 8px 0; height: min(38vh, 360px); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.in-session .video-tile { display: flex; flex-direction: column; min-height: 0; padding: 6px; }
.in-session .video-tile.interpreter { grid-column: 1; grid-row: 1 / span 2; }
.in-session .video-tile p { font-size: 12px; margin: 0 0 4px; line-height: 1.3; }
.in-session .video-tile video { flex: 1; min-height: 0; }
.draft { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-left: 3px solid #0869cd; margin: 8px 0; background: #edf6ff; }
#messages { max-height: 260px; overflow: auto; }
#status { min-height: 24px; }
@media (max-width: 600px) { main { padding: 10px; } section, article, details { padding: 14px; } header { padding: 14px; gap: 12px; } button, .button { max-width: 100%; } }
