#psa-choice-rt {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin: 0 auto;
  padding: 22px;
  color: #172c47;
  background: #fffaf0;
  border: 1px solid #c7d4df;
  border-radius: 15px;
  font: inherit;
  text-align: left;
}
#psa-choice-rt * { box-sizing: border-box; }
#psa-choice-rt [hidden] { display: none !important; }
#psa-choice-rt .crt-top { display: flex; align-items: center; justify-content: space-between; gap: 7px 12px; min-height: 44px; flex-wrap: wrap; }
#psa-choice-rt .crt-progress { flex: 1 0 7em; margin: 0; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
#psa-choice-rt progress { display: block; width: 100%; max-width: 195px; height: 7px; margin-top: 7px; accent-color: #bf4d0a; }
#psa-choice-rt button { margin: 0; min-width: 0; font: inherit; line-height: 1.12; cursor: pointer; touch-action: manipulation; }
#psa-choice-rt button:focus, #psa-choice-rt .crt-display:focus { outline: 3px solid #185da6; outline-offset: 3px; }
#psa-choice-rt .crt-pause { min-height: 44px; padding: 8px 17px; border: 1px solid #172c47; border-radius: 7px; background: #172c47; color: #fff; font-weight: 700; }
#psa-choice-rt .crt-instruction { margin: 16px 0 12px; color: #344b65; line-height: 1.6; }
#psa-choice-rt .crt-work { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
#psa-choice-rt .crt-display {
  flex: 1 1 200px; min-width: 0; min-height: 158px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; border: 1px solid #145b88; border-radius: 10px;
  background: #176ba0; color: #fff; text-align: center; transform: none; transition: none;
  user-select: none; -webkit-user-select: none;
}
#psa-choice-rt .crt-display[aria-disabled="true"] { cursor: default; }
#psa-choice-rt .crt-display[data-state="waiting"] { background: #dc2626; border-color: #b91c1c; }
#psa-choice-rt .crt-display[data-state="ready"] { background: #12803a; border-color: #106d32; }
#psa-choice-rt .crt-cue { color: #fff; font: bold 76px/1 Arial, sans-serif; }
#psa-choice-rt[data-phase="idle"] .crt-cue,
#psa-choice-rt[data-phase="paused"] .crt-cue,
#psa-choice-rt[data-phase="done"] .crt-cue { font: inherit; font-size: 34px; font-weight: 700; line-height: 1.2; }
#psa-choice-rt .crt-caption { margin-top: 8px; line-height: 1.4; font-size: 16px; font-weight: 700; }
#psa-choice-rt .crt-pad { width: 198px; max-width: 100%; padding: 0; margin: 0; text-align: center; font-size: 0; }
#psa-choice-rt .crt-pad button { display: inline-block; width: 30%; min-height: 54px; padding: 3px 0; margin: 1.5%; vertical-align: top; border: 1px solid #647e98; border-bottom-width: 3px; border-radius: 7px; background: #f6f9fc; color: #172c47; font-size: 13px; font-weight: 700; user-select: none; -webkit-user-select: none; }
#psa-choice-rt .crt-pad button:first-child { display: block; margin: 0 auto 3px; }
#psa-choice-rt .crt-pad button b { display: block; font: bold 23px/1 Arial, sans-serif; }
#psa-choice-rt .crt-pad button:disabled { cursor: default; opacity: .62; }
#psa-choice-rt .crt-pad button:enabled:active { color: #fff; background: #8d3c0c; border-color: #8d3c0c; }
#psa-choice-rt .crt-status { flex: 1; margin: 0; padding-left: 10px; border-left: 3px solid #bf4d0a; color: #344b65; font-size: 15px; line-height: 1.65; }
#psa-choice-rt .crt-results { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid #c7d4df; }
#psa-choice-rt .crt-results h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.3; color: #172c47; }
#psa-choice-rt .crt-results p { margin: 8px 0 0; line-height: 1.6; overflow-wrap: break-word; }
#psa-choice-rt .crt-metrics { display: flex; flex-wrap: wrap; margin: 0; gap: 10px 32px; }
#psa-choice-rt .crt-metrics dt { color: #344b65; font-size: 14px; }
#psa-choice-rt .crt-metrics dd { margin: 2px 0 0; font-weight: 750; font-size: 23px; line-height: 1.3; font-variant-numeric: tabular-nums; }
#psa-choice-rt .crt-errors { color: #344b65; font-size: 14px; }
@media (max-width: 550px) {
  #psa-choice-rt { padding: 14px; }
  #psa-choice-rt .crt-work { display: block; }
  #psa-choice-rt .crt-display { width: 100%; min-height: 125px; }
  #psa-choice-rt .crt-cue { font-size: 62px; }
  #psa-choice-rt .crt-pad { margin: 14px auto 0; }
}
#psa-choice-rt .crt-pad kbd { font: inherit; }
#psa-choice-rt .crt-keys { margin-top: 10px; padding: 12px; background: #f6f9fc; border: 1px solid #c7d4df; border-radius: 8px; }
#psa-choice-rt .crt-key-actions button {
  min-height: 42px; padding: 5px 2px; background: transparent; color: #254e76; border: 0; text-decoration: underline; font-size: 15px;
}
#psa-choice-rt .crt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; max-width: 100%; }
#psa-choice-rt .crt-option { padding: 7px 12px; min-height: 44px; background: #fff; color: #254e76; border: 1px solid #738599; border-radius: 7px; font-size: 15px; font-weight: 650; white-space: nowrap; }
#psa-choice-rt .crt-option[aria-expanded="true"], #psa-choice-rt .crt-option[aria-pressed="true"] { background: #e7eff6; border-color: #254e76; }
#psa-choice-rt .crt-option:disabled { color: #53677d; border-color: #c7d4df; cursor: default; }
#psa-choice-rt .crt-feedback { display: flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 12px; }
#psa-choice-rt .crt-keys p { margin: 4px 0 9px; color: #344b65; font-size: 14px; line-height: 1.65; }
#psa-choice-rt .crt-bindings { display: flex; flex-wrap: wrap; gap: 8px; }
#psa-choice-rt .crt-bindings button { min-height: 44px; padding: 6px 11px; border: 1px solid #738599; border-radius: 6px; color: #172c47; background: #fff; }
#psa-choice-rt .crt-bindings [aria-pressed="true"] { color: #fff; background: #743308; border-color: #743308; }
#psa-choice-rt .crt-bindings kbd { display: inline-block; min-width: 1.5em; margin-left: 2px; border: 1px solid currentColor; border-radius: 3px; text-align: center; font: 700 14px/1.4 monospace; }
#psa-choice-rt .crt-key-actions button { margin-right: 16px; }
#psa-choice-rt .crt-keys .crt-key-message { margin-bottom: 0; }
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) {
  display: flex; flex-direction: column;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  margin: 0; padding: 16px; border: 0; border-radius: 0;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-top {
  position: sticky; top: 0; top: env(safe-area-inset-top, 0px); z-index: 1;
  padding: 2px 0; background: #fff;
}
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) > * { flex: 0 0 auto; }
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-work { display: flex; flex: 1 0 auto; flex-wrap: nowrap; }
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-display { align-self: stretch; flex: 1 1 auto; }
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-pad { flex: 0 0 auto; }
#psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-display[data-state="ready"] .crt-cue { font-size: 88px; font-size: clamp(72px, 15vmin, 150px); }
@media (max-width: 550px) {
  #psa-choice-rt .crt-option { padding-right: 9px; padding-left: 9px; }
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-work { flex-direction: column; gap: 10px; }
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-pad { margin: 0 auto; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-work { flex-direction: row; gap: 12px; }
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-display { width: auto; min-height: 112px; }
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-instruction { margin: 6px 0; }
  #psa-choice-rt[data-fullscreen]:not([data-fullscreen="off"]) .crt-feedback { margin-top: 5px; }
}
