* { box-sizing: border-box; }
:root { color: #17213b; background: #f5f7fb; font: 16px/1.55 Arial, Helvetica, sans-serif; --blue: #193bc4; --line: #e4e8f0; }
body { margin: 0; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; background: white; border-bottom: 1px solid var(--line); padding: 1rem max(1.25rem, calc((100vw - 75rem)/2)); }
header img { width: min(168px, 52vw); height: auto; }
header p { margin: 0; font-weight: bold; }
main { max-width: 75rem; margin: auto; padding: clamp(1rem, 4vw, 3rem) 1.25rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: 1.1rem; align-items: start; }
h1, h2 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: 1.25rem; }
button, .button { display: inline-block; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: white; min-height: 44px; padding: .6rem .9rem; font: inherit; font-weight: bold; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
a { color: var(--blue); }
label { display: block; font-weight: bold; margin: .75rem 0; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; border: 1px solid #77859e; border-radius: 7px; min-height: 44px; padding: .55rem .7rem; font: inherit; color: inherit; background: white; }
textarea { min-height: 8rem; resize: vertical; }
:focus-visible { outline: 3px solid #193bc4; outline-offset: 3px; }
.badge { display: inline-block; font-weight: bold; background: #fff3c4; padding: .2rem .6rem; border-radius: 5px; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .5rem; }
#status { position: sticky; bottom: 0; text-align: center; background: #17213b; color: white; padding: .65rem; }
#status:empty { display: none; }
.classroom { max-width: 92rem; font-size: clamp(1.15rem, 2.1vw, 2rem); }
.classroom h1 { font-size: clamp(2rem, 5vw, 5rem); }
.classroom h2 { font-size: 1.45em; }
.qr { width: clamp(150px, 18vw, 340px); max-width: 100%; display: block; }
.submission { white-space: pre-wrap; }
.cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5em 1em; list-style: none; padding: 0; }
.cloud li { font-size: clamp(1rem, calc(.8rem + var(--weight) * 2vw), 3.6rem); font-weight: bold; color: var(--blue); }
.cloud small { font-size: .55em; margin-inline-start: .3em; }
.cloud .highlight { background: #ffce26; border-radius: .25em; padding: .12em .25em; color: #17213b; }
.poll, .wall { list-style: none; padding: 0; }
.poll meter { width: 100%; height: 1.1em; display: block; }
.wall li, fieldset { border: 1px solid var(--line); padding: .5em .75em; border-radius: 8px; }
.stimulus { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 8px; }
.quickbar { position: sticky; top: .5rem; z-index: 2; margin-bottom: 1rem; padding: .65rem; background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; }
.quickbar[open] { max-height: 85vh; overflow-y: auto; background: white; }
.quickbar summary.button { width: fit-content; list-style: none; }
