#see #lobby, #see #lobby > .oa-lobby { grid-template-columns: minmax(0, 1fr); }
#jse-lobby { width: min(100%, 900px); }
#jse-lobby h1 span { white-space: normal; text-wrap: balance; }
.oa-exam-active #see #lobby { display: contents; }

/* Let the whole exam stack center when it fits and grow with the exhibit. */
#see #work {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: min(100%, 920px);
    margin: 0 auto;
}
#see .oa-exam-header h1 .oa-title-line { white-space: normal; }
#see .oa-exam-header h1 .oa-title-line > span { color: var(--oa-accent); white-space: normal; }
#see .jse-workspace { width: min(100%, 840px); margin-inline: auto; padding: 0; }
#see .jse-workspace > * { width: 100%; min-width: 0; }
#see #cases button { min-height: 44px; }
#see #brief, #see #answerform {
    border: 1px solid #dce3f2;
    border-radius: 14px;
    background: white;
    padding: clamp(14px, 2.4vw, 24px);
    text-align: center;
}
#see #brief h2 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 26px); }
#see #brief p { color: var(--oa-muted); }
#see #prompt { font-size: clamp(18px, 2vw, 26px); line-height: 1.4; margin: 0 0 12px; }
#see #prompt:focus { outline: none; }
#see #control input[type="text"] { display: block; width: min(100%, 250px); margin: 6px auto 0; }
#see #control label.choice {
    display: block;
    width: min(100%, 340px);
    margin: 6px auto;
    padding: 10px;
    border: 1px solid #d0d9ed;
    border-radius: 8px;
    cursor: pointer;
}
#see #control .choice:has(input:checked) { background: #eef2ff; border-color: var(--oa-accent); }
#see #control .choice:has(input:focus-visible) { outline: 2px solid var(--oa-accent); outline-offset: -3px; }
#see #control .choice input:focus-visible { outline: none; }
#see .hint { color: var(--oa-muted); font-size: 13px; }
#see .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#see #validation { color: #9c2341; }
#see #status { width: min(calc(100% - 28px), 840px); margin: 0 auto; text-align: center; }
#see #status:empty { display: none; }

#see .charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#see figure { margin: 0; background: #fbfcff; border: 1px solid #dce3f2; border-radius: 9px; padding: 9px; }
#see figcaption { font-weight: 650; font-size: 14px; }
#see figure svg { display: block; width: 100%; height: auto; }
#see .legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
#see #brief .legend { justify-content: center; }
#see .legend i { font-style: normal; }
#see .table-scroll { max-width: 100%; overflow-x: auto; }
#see .table-scroll table { border-collapse: collapse; font-size: 14px; margin-block: 8px; }
#see #brief table { margin-inline: auto; }
#see .table-scroll :is(th, td) { padding: 5px 9px; border: 1px solid #dbe2ee; text-align: right; }
#see .table-scroll :is(th, td):first-child { text-align: left; }
#see mjx-container[jax="SVG"] { max-width: 100%; }
#see mjx-container[jax="SVG"] svg { max-width: 100%; height: auto; }

#see #oa-funnel-title { scroll-margin-top: calc(var(--oa-header-height, 78px) + 24px); }
.jse-review-case { margin-block: 24px; }
.jse-review-case:not(:has(.oa-review-question:not([hidden]))) { display: none; }
.jse-review-case > header { margin-bottom: 12px; }
.jse-review-case > header h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.jse-review-case [data-jse-exhibit] > p { margin-bottom: 8px; }
.jse-review-case .oa-question-list { margin-top: 12px; }
.jse-review-case .oa-question-list > li + li { margin-top: 12px; }
.jse-review-case .oa-answer-details { grid-column: 1 / -1; }

@media (max-width: 650px) {
    #see #work { gap: 16px; }
    #see .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) and (max-height: 740px) {
    #see #lobby > .oa-lobby { padding-block-start: 22px; }
    #jse-lobby .oa-breadcrumb { position: static; margin-bottom: 20px; }
}
