/* Bounded drawings keep the question and its text options close together. */
.has-scene-layout .scene-question{margin:0 auto;padding:12px 16px 16px;border:1px solid #d7dfd2;border-radius:14px;max-width:720px;background:#fff;text-align:center}
.scene-question figcaption{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#42604d;margin-bottom:8px}
.scene-paper.graphic-paper{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:12px;min-width:0;width:100%;box-sizing:border-box;margin:0 auto 12px}
.has-scene-layout .scene-paper>svg,.scene-blackboard .scene-paper>svg{display:block;width:100%;height:auto;max-width:600px;max-height:320px;min-height:0;margin:0 auto;overflow:visible}
.scene-blackboard.numeric-blackboard{max-width:1040px}
.scene-instruction{font-size:1.07rem;line-height:1.65;margin:12px 0 20px}
.scene-workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);gap:22px;align-items:start}
.scene-workspace-single{grid-template-columns:minmax(0,1fr)}
.scene-drawing,.scene-facts{min-width:0}
.scene-blackboard .scene-paper>svg{max-height:350px}
.scene-focus-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.scene-blackboard button{white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:44px;transition:none}
.scene-focus-controls button[aria-pressed=true]{background:#eaff36;color:#12352a;border-color:#eaff36}
.scene-note{font-size:.82rem;line-height:1.55;color:#d5e6dc}
.scene-evidence{width:100%;border-collapse:collapse;font-size:.92rem;color:#f6fff8;table-layout:fixed}
.scene-evidence caption{text-align:left;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;padding:10px 0;color:#eaff36}
.scene-evidence th,.scene-evidence td{padding:12px 10px;border-bottom:1px solid #6c897d;vertical-align:top;text-align:left;overflow-wrap:anywhere;white-space:normal;line-height:1.45;font-size:.9rem;letter-spacing:normal;text-transform:none;background:transparent;color:inherit}
.scene-evidence th{width:56%;font-weight:500}.scene-evidence td{font-weight:700}
.scene-motion-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}.scene-motion-controls input{flex-basis:100%;width:100%;min-height:44px;accent-color:#dfff42}.scene-motion-controls p{flex-basis:100%;font-size:.85rem}.scene-motion-controls select{color:#15382b;background:white;min-height:40px}
svg [data-scene-mark]{--scene-mark-color:#007e91}
svg [data-scene-active="1"]{--scene-mark-color:#c05100}
svg [data-scene-active="2"]{--scene-mark-color:#9648af}
svg [data-scene-active="3"]{--scene-mark-color:#276d37}
svg [data-scene-mark=true]:not(.scene-mark-off):is(path,polygon,circle,rect,line),svg [data-scene-mark=true]:not(.scene-mark-off)>:is(path,polygon,circle,rect,line){stroke:var(--scene-mark-color);stroke-width:3.5px;vector-effect:non-scaling-stroke}
.scene-swatch{display:inline-block;width:12px;height:12px;border-radius:50%;background:#33d8ed;border:1px solid currentColor;margin-right:7px}.scene-swatch[data-scene-color="1"]{background:#ffa05c}.scene-swatch[data-scene-color="2"]{background:#dba4ef}.scene-swatch[data-scene-color="3"]{background:#92db87}
/* Added guide rectangles/brackets disappear entirely when marks are off. */
svg>rect[data-scene-mark].scene-mark-off,svg>path[data-scene-mark].scene-mark-off{visibility:hidden}
@media(max-width:760px){.scene-workspace{grid-template-columns:minmax(0,1fr);gap:14px}.scene-blackboard .scene-paper>svg{max-height:300px}.has-scene-layout .scene-paper>svg{max-height:260px}.has-scene-layout .scene-question{padding:10px}.scene-paper.graphic-paper{padding:10px}.scene-instruction{font-size:1rem}.scene-evidence th,.scene-evidence td{padding:9px 6px}}
@media(prefers-reduced-motion:reduce){.scene-blackboard *{animation:none!important;transition:none!important}}
