.app { max-width: 1160px; }
.screen { border-radius: 8px; }
.welcome { max-width: 780px; margin-left: auto; margin-right: auto; }
.welcome h2 { font-size: 28px; }
.preview-notice { font-size: 14px !important; color: #1d4ed8 !important; text-align: center; }
.scenario-head { align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.scenario-title { font-size: 24px; overflow-wrap: anywhere; }
.scenario-counter { max-width: 100%; }
.step-pill { margin-left: 0; }
.content-message { width: 100%; max-width: 620px; margin: auto; border: 1px solid #d1d5db; border-radius: 8px; color: #1f2937; font-family: inherit; overflow: hidden; }
.message-channel { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #f3f4f6; font-size: 12px; color: #4b5563; }
.message-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid #e5e7eb; }
.message-header > div { min-width: 0; overflow-wrap: anywhere; }
.message-avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e7eefc; color: #1d4ed8; font-weight: 800; }
.message-detail { font-size: 12px; color: #6b7280; }
.message-body { padding: 18px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.message-block + .message-block { margin-top: 16px; }
.block-heading { font-size: 19px; font-weight: 800; }
.block-link { color: #1d4ed8; text-decoration: underline; }
.block-action { padding-top: 12px; border-top: 1px solid #e5e7eb; font-weight: 700; }
.layout-chat .message-body, .layout-sms .message-body { background: #f7f8fa; }
.layout-chat .message-block, .layout-sms .message-block { width: fit-content; max-width: 94%; padding: 10px 14px; border-radius: 8px; background: #e8edf3; }
.layout-chat .message-channel { background: #e7eefc; color: #1d4ed8; }
.layout-sms .message-avatar { background: #ecfdf5; color: #15803d; }
.layout-page .message-channel { background: #ecfdf5; color: #15803d; }
.message-footer { padding: 12px 16px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; }
.qr-placeholder { display: grid; place-items: center; width: 96px; height: 96px; border: 5px dashed #6b7280; margin-bottom: 12px; font-size: 24px; font-weight: 800; color: #6b7280; }
.content-message .flag { white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.content-message .flag:focus-visible { outline: 3px solid #1d4ed8; }
.flag.missed-correct { background: #eff6ff; outline-color: #2563eb; color: #1e40af; }
.flag.missed-correct::after { color: #fff; background: #1d4ed8; }
.scenario-tag, .step-pill, .q-label { letter-spacing: 0; }
.sign-review { max-width: 760px; margin: 22px auto 0; }
.sign-review h3 { font-size: 18px; }
.sign-review ul { list-style: none; padding: 0; }
.sign-review li { padding: 14px 0; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.sign-review li b { display: block; margin-bottom: 4px; }
.review-found b, .reveal-note .found { color: #15803d; }
.review-missed b, .reveal-note .missed { color: #1d4ed8; }
.quiz-feedback p { margin-top: 10px; }
.safety-takeaway { border-top: 1px solid #d1d5db; padding-top: 12px; }
.case-workspace.question-mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.question-mode .quiz-q { margin-top: 0; }
.question-mode .content-message { font-size: 14px; }
.quiz-opt, .btn { font-family: inherit; white-space: normal; overflow-wrap: anywhere; }
.quiz-opt span:last-child { min-width: 0; }
#submit-status { text-align: center; padding: 14px 0; }
.result-score { text-align: center; font-size: 26px; color: #A53A2E; font-weight: 800; margin-bottom: 12px; }
.poster-stage { position: relative; width: 100%; line-height: 0; background: #f3f4f6; }
.poster-stage img { display: block; width: 100%; height: auto; margin: 0; user-select: none; }
.poster-stage.poster-interactive { cursor: crosshair; }
.poster-stage .poster-hotspot { position: absolute; display: block; margin: 0; padding: 0; min-width: 0; min-height: 0; max-width: none; border: 0; border-radius: 3px; outline: 0; box-shadow: none; background: transparent; color: transparent; transform: none; cursor: inherit; }
.poster-stage .poster-hotspot:hover { background: transparent; outline: 0; transform: none; box-shadow: none; }
.poster-stage .poster-hotspot:focus-visible { outline: 3px solid #A53A2E; outline-offset: -3px; }
.poster-stage .poster-hotspot.found-correct { background: rgb(21 128 61 / 18%); outline: 3px solid #15803d; outline-offset: -3px; }
.poster-stage .poster-hotspot.missed-correct { background: rgb(37 99 235 / 12%); outline: 3px dashed #2563eb; outline-offset: -3px; }
.poster-stage .poster-hotspot.found-wrong { background: rgb(220 38 38 / 10%); outline: 2px solid #dc2626; outline-offset: -2px; }
.poster-stage .poster-hotspot::after { top: 0; right: 0; }
.hotspot-index { display: none; }
.review-quote { color: #4b5563; margin-bottom: 5px; font-style: italic; }
.poster-tools { display: flex; justify-content: flex-end; padding: 6px 10px; background: #fff; border-top: 1px solid #e5e7eb; }
.poster-zoom, .poster-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; color: #A53A2E; font: 26px Arial,sans-serif; cursor: pointer; }
.reference-only:has(.poster-stage) { pointer-events: auto; }
.reference-only .poster-stage, .reference-only .message-body { pointer-events: none; }
.poster-dialog { margin: auto; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); width: fit-content; padding: 0; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; }
.poster-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.poster-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 15px; font-weight: 700; }
.poster-close { flex-shrink: 0; }
.poster-scroll { overflow: auto; max-width: calc(100vw - 26px); max-height: calc(100dvh - 210px); }
.poster-dialog-feedback { max-width: 600px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.poster-dialog-feedback:empty { display: none; }
.poster-unavailable .poster-hotspot { display: none; }
.image-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; font-size: 16px; line-height: 1.5; color: #A53A2E; }
@media (min-width: 768px) and (max-width: 820px) {
  .case-workspace.question-mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .case-workspace.question-mode { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .case-workspace.question-mode .ui-wrap { position: static; }
  .app { padding: 12px 10px 40px; }
  .screen { padding: 18px 14px; }
  .scenario-title { font-size: 21px; }
  .welcome h2 { font-size: 24px; }
  .message-header { padding: 12px; }
  .message-body { padding: 12px; font-size: 14px; }
  .message-block + .message-block { margin-top: 12px; }
  .block-heading { font-size: 17px; }
  .question-mode .message-header { padding: 10px 12px; }
  .question-mode .message-body { font-size: 13px; line-height: 1.6; }
  .question-mode .message-block + .message-block { margin-top: 10px; }
  .tutorial-demo { padding: 10px; }
  .nav-row .btn { flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
