* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 18px/1.45 Arial, sans-serif; color: #172033; background: #f6f8fc; }
header { text-align: center; padding: 24px 16px; background: white; border-bottom: 1px solid #e4e8f0; }
h1 { margin: 6px 0 0; }
h2 { margin-bottom: 4px; }
h2 + p { margin-top: 0; }
a { color: #245ab1; }
main { max-width: 1240px; margin: 24px auto; padding: 0 16px; }
button { cursor: pointer; font: inherit; color: inherit; background: white; border: 1px solid #71819a; border-radius: 9px; padding: 7px 13px; }
button:hover:not(:disabled) { background: #e6effc; }
button[aria-pressed="true"], button[aria-pressed="true"]:hover { background: #244f91; color: white; border-color: #244f91; }
:focus-visible { outline: 3px solid #214eaa; outline-offset: 3px; }
.modes, .options, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.activity { display: flex; flex-wrap: wrap; align-items: start; gap: 20px; margin: 16px 0; padding: 16px;
  background: white; border: 1px solid #dce3ef; border-radius: 16px; }
.questions { flex: 1 1 320px; min-width: 0; }
fieldset { margin: 0 0 12px; min-width: 0; border: 1px solid #dce3ef; border-radius: 10px; }
legend { font-weight: bold; }
.options label { position: relative; cursor: pointer; }
.options input { position: absolute; opacity: 0; }
.options span { display: block; padding: 6px 10px; border-radius: 8px; border: 1px solid #71819a; }
.options input:checked + span { background: #244f91; color: white; border-color: #244f91; }
.options input:focus-visible + span { outline: 3px solid #214eaa; outline-offset: 2px; }
#status { margin: 10px 0; font-weight: bold; }
#practice { flex: 0 1 300px; }
#portrait { display: block; width: 100%; height: auto; border-radius: 10px; }
#scenario { display: inline; }
.speaker { padding: 0; font-size: 14px; width: 31px; height: 29px; line-height: 1; }
.chart-scroll { overflow: auto; border: 1px solid #dce3ef; border-radius: 12px; background: white; }
.chart { position: relative; min-width: 1000px; }
.chart img { display: block; width: 100%; height: auto; }
.tile { position: absolute; border-radius: 5px; }
.tile .pick { position: absolute; inset: 0; border: 0; padding: 0; border-radius: inherit; background: transparent; }
.tile .pick:hover:not(:disabled) { background: #ffffff45; }
.tile .pick:disabled { cursor: default; }
.tile .speaker { position: absolute; right: 1px; bottom: 1px; width: 24px; height: 20px; font-size: 12px; border-color: #17203360; }
#section-highlight {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  outline: 4px solid #ffd400;
  border-radius: 5px;
}
.tile .pick[aria-pressed="true"] { box-shadow: inset 0 0 0 4px #172033; background: transparent; }
.scroll-tip { display: none; }
@media (max-width: 1035px) { .scroll-tip { display: block; } }
