.sr-page { --st-accent: #4b5ba9; --st-soft: #eef0fa; }
.sr-workspace { display: grid; grid-template-columns: minmax(0,1fr) 310px; background: #fff; border: 1px solid var(--st-line); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 45px #1b284208; scroll-margin-top: 90px; }
.sr-play { padding: 30px 36px; }
.sr-toolbar { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.sr-toolbar fieldset { border: 0; padding: 0; margin: 0; }
.sr-toolbar legend { float: none; width: auto; margin: 0 0 8px; color: var(--st-muted); font-size: 11px; font-weight: 650; }
.sr-durations { display: flex; gap: 6px; }
.sr-durations button { min-height: 36px; border: 1px solid var(--st-line); border-radius: 7px; background: #fff; padding: 6px 12px; font-size: 12px; color: var(--st-ink); }
.sr-durations button[aria-pressed=true] { background: var(--st-ink); color: #fff; border-color: var(--st-ink); }
.sr-meters { display: grid; grid-template-columns: repeat(3,1fr); padding: 16px 0; border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); margin: 0 0 22px; }
.sr-meters > div { text-align: center; border-right: 1px solid var(--st-line); }
.sr-meters > div:last-child { border: 0; }
.sr-meters span { font-size: 11px; color: var(--st-muted); display: block; margin-bottom: 4px; }
.sr-meters strong { font-size: 25px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sr-stimulus { position: relative; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 10px; border: 1px solid #dfe3ee; border-radius: 16px; background: #f7f8fd; margin-bottom: 20px; }
.sr-rule { color: #455299; font-size: 13px; font-weight: 650; text-align: center; padding: 7px 15px; background: #e9edfb; border-radius: 30px; }
.sr-rule[data-rule=word] { color: #754d21; background: #f6ecd8; }
.sr-word { display: grid; place-items: center; min-height: 110px; font-size: clamp(30px,4vw,52px); font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin: 16px 0 0; max-width: 100%; }
.sr-word.sr-hidden-word { visibility: hidden; }
.sr-feedback { position: absolute; bottom: 14px; font-size: 12px; font-weight: 650; color: #23684c; min-height: 20px; }
.sr-feedback[data-correct=false] { color: #a64235; }
.sr-answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.sr-answers button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; border: 1px solid #dce1ec; border-radius: 10px; background: #fff; color: var(--st-ink); font-size: 13px; font-weight: 650; padding: 14px; text-align: left; }
.sr-answers button:hover:enabled { background: #f1f3fb; border-color: #7a85bc; }
.sr-answers kbd { background: #f1f3f8; color: #657087; border: 0; border-radius: 4px; font: inherit; font-size: 10px; padding: 3px 5px; }
.sr-swatch { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.sr-color-0 { background: #c13e36; }.sr-color-1 { background: #2c61bb; }.sr-color-2 { background: #237a50; }.sr-color-3 { background: #8052b1; }
.sr-status { min-height: 44px; text-align: center; font-size: 12px; color: var(--st-muted); margin: 0 0 12px !important; }
.sr-journal { background: #f0f2f9; }
.sr-journal h2 { font-size: 17px; }
.sr-journal .st-best { background: #293454; }
.sr-journal .st-best > span { color: #d0d6ee; }
.sr-scoring { font-size: 12px; border-top: 1px solid var(--st-line); margin: 22px 0 0 !important; padding-top: 18px; color: var(--st-muted) !important; }
.sr-curve { margin: 22px 0; border-top: 1px solid var(--st-line); padding-top: 18px; }
.sr-curve h3 { font-size: 15px; margin: 0 0 12px; }
.sr-sparkline { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 5px 0; border-bottom: 1px solid var(--st-line); }
.sr-sparkline span { display: block; flex: 1; max-width: 28px; min-width: 3px; background: #7c89c3; border-radius: 4px 4px 0 0; }
.sr-sparkline span:last-child { background: #414f91; }
.sr-result { background: #fff; border: 1px solid var(--st-line); border-radius: 18px; padding: 30px; margin: 28px 0; scroll-margin-top: 90px; }
.sr-result > div:first-child { display: flex; flex-wrap: wrap; gap: 8px 25px; align-items: baseline; }
.sr-result > div:first-child .st-eyebrow { width: 100%; }
.sr-result > div:first-child h2 { margin-bottom: 6px; }
.sr-result > div:first-child > p:last-child { color: var(--st-muted); font-size: 12px; }
.sr-result-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 18px 0 22px; }
.sr-result-metrics > div { border-left: 2px solid #aab4db; padding-left: 18px; }
.sr-result-metrics dt { font-size: 12px; font-weight: 500; color: var(--st-muted); }
.sr-result-metrics dd { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.sr-comparison { display: grid; grid-template-columns: repeat(3,1fr); padding: 14px 18px; gap: 20px; border-radius: 12px; background: #f0f2fa; margin-bottom: 15px; }
.sr-comparison span { font-size: 11px; color: var(--st-muted); display: block; }
.sr-comparison strong { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sr-result > p { font-size: 12px; color: var(--st-muted); max-width: 950px; }
.sr-result > p:last-child { margin-bottom: 0; }
.sr-modes { padding-top: 40px; scroll-margin-top: 90px; }
.sr-page .st-science { align-self: start; }
@media(max-width:991px) {
    .sr-workspace { grid-template-columns: minmax(0,1fr) 260px; }
    .sr-play { padding: 24px; }
    .sr-answers button { padding: 12px; gap: 7px; font-size: 11px; }
}
@media(max-width:767px) {
    .sr-workspace { grid-template-columns: 1fr; border-radius: 18px; }
    .sr-play { padding: 22px 18px; }
    .sr-toolbar { gap: 14px; }
    .sr-toolbar .st-mode { width: 100%; }
    .sr-toolbar .st-mode select { max-width: 100%; }
    .sr-toolbar fieldset { width: 100%; }
    .sr-durations button { flex: 1; min-height: 38px; }
    .sr-answers { gap: 8px; }
    .sr-answers kbd { display: none; }
    .sr-answers button { font-size: 11px; padding: 12px 9px; }
    .sr-swatch { width: 10px; height: 10px; }
    .sr-stimulus { min-height: 210px; }
    .sr-word { font-size: clamp(23px,6.4vw,40px); letter-spacing: -.7px; }
    .sr-rule { font-size: 12px; padding: 6px 10px; }
    .sr-meters strong { font-size: 24px; }
    .sr-meters span { font-size: 10px; }
    .sr-result { padding: 22px; }
    .sr-result-metrics { gap: 12px; }
    .sr-result-metrics > div { padding-left: 10px; }
    .sr-result-metrics dt { font-size: 10px; }
    .sr-result-metrics dd { font-size: 23px; }
    .sr-comparison { gap: 10px; padding: 12px; }
    .sr-comparison strong { font-size: 14px; }
    .sr-comparison span { font-size: 10px; }
    .sr-play .st-actions { flex-wrap: wrap; }
}
@media print {
    .sr-page,.sr-page * { visibility: visible !important; }
    .sr-page .st-shell > * { display: block !important; }
    .sr-page .st-shell > [hidden],.sr-page [hidden] { display: none !important; }
    .sr-workspace { border: 0; box-shadow: none; }
}
.sr-play > .st-actions { justify-content: flex-start; margin: 0 0 22px; }
.sr-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sr-status-row .sr-status { text-align: left; margin: 0 !important; min-height: 0; }
.sr-status-row > button { flex-shrink: 0; }
