.stontastic-question{min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.stontastic-question .classroom-question-text{flex:1;min-height:0;width:100%;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;font-size:26px;font-weight:800;line-height:1.18;text-align:center;scrollbar-width:thin}
.stontastic-question .classroom-question-open{flex:none;min-height:30px;border:0;border-radius:7px;background:#e7edf0;color:#0874ca;padding:3px 12px;font:700 17px/1.2 Arial,sans-serif;cursor:pointer}
.question-reader{box-sizing:border-box;width:min(900px,96vw);height:min(820px,94vh);height:min(820px,94dvh);max-width:96vw;max-height:94dvh;margin:auto;padding:0;border:2px solid #c7af87;border-radius:18px;background:#fff6df;color:#243b50;font:18px/1.45 Arial,sans-serif;overflow:hidden}
.question-reader[open]{display:flex;flex-direction:column}.question-reader::backdrop{background:#24170fcc}
.question-reader header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid #d5c7a4;background:#f5e8cb}
.question-reader h2{margin:0;font-size:22px;line-height:1.2}.question-reader button{cursor:pointer}.question-reader header button{flex:none;min-height:44px;padding:8px 15px;border:0;border-radius:9px;background:#0874ca;color:#fff;font:700 16px Arial,sans-serif}
.question-reader-body{flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;padding:20px 24px;overflow-wrap:anywhere;scrollbar-gutter:stable}
.question-reader-prompt{margin:0 0 18px;white-space:pre-wrap;font-size:clamp(20px,2.2vw,28px);font-weight:700;line-height:1.5}
.question-reader-body svg{max-width:100%;height:auto}.question-reader-body figure{margin:12px 0}.question-reader-guide{font-size:16px}.question-reader summary{color:#0874ca;font-weight:700;cursor:pointer;min-height:32px}.question-reader details p{white-space:pre-wrap}
.question-reader-controls{flex:none;max-height:44%;overflow:auto;overscroll-behavior:contain;border-top:1px solid #d5c7a4;background:#f5e8cb;padding:12px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;align-items:center}
.question-reader button:focus-visible,.classroom-question-open:focus-visible{outline:3px solid #d82d45;outline-offset:2px}
@media(max-width:600px){.question-reader{width:98vw;max-width:98vw;height:96dvh;max-height:96dvh;border-radius:12px}.question-reader header{padding:10px 12px}.question-reader h2{font-size:18px}.question-reader-body{padding:15px}.question-reader-controls{padding:10px 12px;max-height:48%}.question-reader-prompt{font-size:21px}}
@media(max-height:500px){.question-reader header{padding:5px 12px}.question-reader header button{min-height:34px}.question-reader-controls{max-height:42%;padding:6px 12px;gap:5px}.question-reader-prompt{font-size:20px}}

.question-reader [hidden]{display:none!important}
.question-reader header{width:100%;max-width:none;margin:0;box-sizing:border-box}
.question-reader-body,.question-reader-controls{min-width:0;box-sizing:border-box}

.question-reader-controls{grid-template-columns:minmax(0,1fr) auto}
.question-reader-controls>label{grid-column:1/-1}
.question-reader-controls>input{box-sizing:border-box;width:100%;min-width:0;padding:8px 10px;font:inherit}
.question-reader-controls>button{min-width:0;min-height:38px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.question-visual-scroll{min-width:0;max-width:100%;overflow:auto;background:#fff;color:#183749;border:1px solid #a9c1cf;border-radius:8px;padding:6px}
.question-visual-scroll table{border-collapse:collapse;width:max-content;min-width:100%;font:16px/1.3 Arial,sans-serif}
.question-visual-scroll caption{font-weight:700;text-align:left;padding:6px}
.question-visual-scroll th,.question-visual-scroll td{min-width:4em;max-width:16em;border:1px solid #bbced7;padding:6px 9px;text-align:center;overflow-wrap:anywhere}
.question-visual-scroll th{background:#e5f1f6}
.question-visual-note{font-size:14px;margin-top:5px}
@media(max-width:370px){
  .question-reader header{gap:6px}
  .question-reader header button{max-width:46%;white-space:normal;padding:6px 8px}
  .question-reader h2{overflow-wrap:anywhere}
}
