/* Guided workspace: the shared RocketReader / speedreading.com app shell. */
body.rr-guided{--gui-control-line:#7c8aa0;--gui-on-primary:#fff}
body.rr-guided.rr-dark{--gui-control-line:#849ab6;--gui-on-primary:#182231}
body.rr-guided{--gui-bg:#f2f5fa;--gui-chrome:#f8fafc;--gui-panel:#fff;--gui-canvas:#fbfcfe;--gui-ink:#1e293b;--gui-muted:#52627a;--gui-line:#d5deea;--gui-primary:#285fbe;--gui-soft:#e7effd;--gui-answer:#f8fafc;--gui-good:#d4f1e1;--gui-bad:#ffe1df;background:var(--gui-bg)!important;color:var(--gui-ink)!important;font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;margin:0!important;min-height:100vh;color-scheme:light}
body.rr-guided.rr-dark{--gui-bg:#182231;--gui-chrome:#1c293a;--gui-panel:#223247;--gui-canvas:#192535;--gui-ink:#edf2fa;--gui-muted:#bdcadd;--gui-line:#40536a;--gui-primary:#a8c8ff;--gui-soft:#304766;--gui-answer:#293b52;--gui-good:#244d3b;--gui-bad:#602f38;color-scheme:dark}
body.rr-guided *{box-sizing:border-box}
body.rr-guided button,body.rr-guided input,body.rr-guided select,body.rr-guided textarea{font-family:inherit}
body.rr-guided a{color:var(--gui-primary)}
body.rr-guided :focus-visible{outline:3px solid var(--gui-primary);outline-offset:3px}
body.rr-guided h1,body.rr-guided h2,body.rr-guided h3{font-family:inherit;color:var(--gui-ink)}
body.rr-guided h1{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin:0 0 10px}
body.rr-guided p{line-height:1.6}
.rr-gui-icon{width:21px;height:21px;flex:none;vertical-align:middle}
.rr-workspace-header{min-height:86px;display:flex;align-items:center;gap:24px;padding:12px 28px;border-bottom:1px solid var(--gui-line);background:var(--gui-chrome)}
.rr-workspace-brand{display:inline-flex;align-items:center;flex:none}
.rr-workspace-brand img{width:170px;height:auto;max-height:64px;object-fit:contain;display:block}
.rr-workspace-brand .sr-brand-images{width:205px}.rr-workspace-brand .sr-brand-images img{width:100%;max-height:none}
.rr-workspace-brand .rr-brand-dark{display:none}
.rr-dark .rr-workspace-brand .rr-brand-light{display:none}
.rr-dark .rr-workspace-brand .rr-brand-dark{display:block}
.rr-workspace-tagline{font-size:13px;color:var(--gui-muted)}
.rr-workspace-account{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:13px;flex-wrap:wrap}
.rr-workspace-account img{border-radius:50%;vertical-align:middle}
.rr-workspace-account button,.rr-theme-button{border:1px solid var(--gui-line);border-radius:7px;background:var(--gui-panel);color:var(--gui-ink);min-height:40px;padding:8px 12px;cursor:pointer;font-size:13px;line-height:1.2}
.rr-theme-button{font:inherit}
.rr-skip-link{position:absolute;left:10px;top:-100px;z-index:10000;background:var(--gui-panel);padding:10px;border:2px solid var(--gui-primary)}
.rr-skip-link:focus{top:10px}
.rr-workspace-body{display:grid;grid-template-columns:182px minmax(0,1fr);min-height:calc(100vh - 89px)}
.rr-workspace-sidebar{display:flex;flex-direction:column;gap:20px;padding:22px 12px;border-right:1px solid var(--gui-line);background:var(--gui-chrome)}
.rr-workspace-sidebar nav{display:grid;gap:5px}
body.rr-guided .rr-nav-button{display:flex;align-items:center;gap:12px;width:100%;min-height:45px;padding:10px 12px;color:var(--gui-muted);background:transparent;border:0;border-radius:8px;font-size:14px;line-height:1.25;text-align:left;cursor:pointer}
body.rr-guided .rr-nav-button:hover{background:var(--gui-answer);color:var(--gui-ink)}
body.rr-guided .rr-nav-button[aria-current=page]{background:var(--gui-soft);color:var(--gui-primary);font-weight:600}
.rr-nav-done{margin-left:auto;font-size:12px}
.rr-workspace-settings{margin-top:auto;padding-top:16px;border-top:1px solid var(--gui-line)}
.rr-workspace-main{padding:28px 32px;min-width:0;width:100%;max-width:1500px;margin:0 auto}
.rr-workspace-heading{margin-bottom:24px}
.rr-eyebrow{display:block;color:var(--gui-primary);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:9px}
.rr-workspace-heading p{margin:0;color:var(--gui-muted);font-size:14px}
.rr-workspace-heading #lesson_title{display:block;font-size:13px;color:var(--gui-muted);margin-top:6px}
.rr-guided-columns{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:32px;align-items:start}
body.rr-guided #guts.rr-guided-guts{min-width:0;background:transparent!important;color:var(--gui-ink);padding:0!important;overflow-wrap:break-word}
.rr-context-panel{padding:8px 0;color:var(--gui-muted);font-size:13px}
.rr-context-panel h2{font-size:14px;margin:0 0 14px;font-weight:600}
.rr-context-panel dl{margin:0}
.rr-context-panel dl>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.rr-context-panel dt{color:var(--gui-muted)}
.rr-context-panel dd{margin:0;color:var(--gui-ink)}
.rr-context-panel hr{border:0;border-top:1px solid var(--gui-line);margin:24px 0}
.rr-context-panel p{margin:0 0 12px}
.rr-context-panel button{background:none;border:0;color:var(--gui-primary);font:inherit;padding:6px 0;text-align:left;cursor:pointer}
body.rr-guided #rr_active_time{color:var(--gui-ink)!important;font:500 14px/1.4 inherit;white-space:nowrap}
.rr-owner-tools{font-size:12px;margin-top:24px;color:var(--gui-muted)}
.rr-owner-tools summary{cursor:pointer}
body.rr-guided #erode-card{max-width:100%}
body.rr-guided #erode-card .flip-card-back{background:var(--gui-panel);color:var(--gui-ink);border-color:var(--gui-control-line)}
body.rr-guided #erode-card .flip-card-front{background:var(--gui-primary);color:var(--gui-on-primary);border-color:var(--gui-primary)}
body.rr-guided #erode-card .blur-char,body.rr-guided #er_blur_proto .blur-char{min-width:0}
body.rr-guided .erode-help{color:var(--gui-muted)}
body.rr-guided .erode-modal{background:var(--gui-panel);color:var(--gui-ink);border-color:var(--gui-control-line)}
body.rr-guided .erode-modal button{background:var(--gui-panel);color:var(--gui-ink);border-color:var(--gui-control-line)}
body.rr-guided .blur-prototype{background:var(--gui-canvas);color:var(--gui-ink);border-color:var(--gui-control-line)}
body.rr-guided #er_blur_intensity_label{color:var(--gui-muted)}
body.rr-guided .erode-next{gap:8px;flex-wrap:wrap}
body.rr-guided #erode-options,body.rr-guided #erode-reveal{background:var(--gui-panel);color:var(--gui-ink);border-color:var(--gui-control-line)}
body.rr-guided #erode-next{background:var(--gui-primary);color:var(--gui-on-primary);border-color:var(--gui-primary)}
.rr-passage-label{font-size:12px;font-weight:400;margin-right:6px;color:var(--gui-muted)}
body.rr-guided .flash-wrap{background:var(--gui-panel);border:1px solid var(--gui-line);border-radius:14px;padding:22px;width:100%;max-width:610px;text-align:left}
body.rr-guided #flash_tbl{width:520px;max-width:100%;margin:0 auto 20px;border:0;border-spacing:0;background:var(--gui-canvas);border-radius:9px;table-layout:fixed}
body.rr-guided #flash_tbl #word_cell{height:200px;padding:0;position:relative;border:1px solid var(--gui-line);background:var(--gui-canvas)!important;color:var(--gui-ink)!important;border-radius:9px;overflow:hidden}
body.rr-guided #word_cell .flashbox{position:absolute;inset:12px clamp(12px,2vw,20px);display:flex;align-items:center;justify-content:center;text-align:center}
.rr-guided .flashbox .txt{display:inline-block;line-height:1.05;word-break:break-word}
body.rr-guided .rr-answer-heading{font-size:13px;color:var(--gui-muted);margin:0 0 12px}
body.rr-guided #entry_cell .choices-wrap{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.rr-guided #entry_cell .btn{width:100%;min-width:0;min-height:64px;white-space:normal;overflow-wrap:anywhere;text-align:center;padding:12px;line-height:1.4;font-size:15px;color:var(--gui-ink);background:var(--gui-answer);border:1px solid var(--gui-line);border-radius:8px;box-shadow:none;cursor:pointer}
body.rr-guided #entry_cell .btn:hover{border-color:var(--gui-primary)}
.rr-level-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:22px 0 10px;font-size:12px;color:var(--gui-muted)}
.rr-level-heading #level_badge{font-size:12px;color:var(--gui-primary);background:var(--gui-soft);border-radius:5px;padding:4px 8px;white-space:nowrap}
.rr-progress-track{height:5px;border-radius:4px;background:var(--gui-line);overflow:hidden}
.rr-progress-track>span{display:block;height:100%;background:var(--gui-primary);transition:width .2s}
body.rr-guided .flash-ctrls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:22px;padding-top:14px;border-top:1px solid var(--gui-line)}
body.rr-guided .flash-ctrls .ctrl-btn{border:0;border-radius:6px;background:transparent;color:var(--gui-muted);font-size:13px;line-height:1.3;height:auto;min-height:40px;padding:8px 10px;cursor:pointer}
body.rr-guided .flash-ctrls .ctrl-btn:hover{background:var(--gui-soft);color:var(--gui-primary)}
body.rr-guided .flash-ctrls .rr-return-button{margin-left:auto}
body.rr-guided #flash_instructions{max-width:610px;color:var(--gui-muted);font:inherit;background:transparent;border:0;padding:0 0 12px}
body.rr-guided #flash_level_chart_wrap{max-width:610px;width:100%;margin:0 0 12px}
body.rr-guided .rev-msg{position:absolute;top:5px;left:8px;right:8px;font-size:13px;background:var(--gui-bad);color:var(--gui-ink);padding:4px;border-radius:4px}
body.rr-guided .flash-opts-modal{background:var(--gui-panel);color:var(--gui-ink);border:1px solid var(--gui-line);max-width:calc(100vw - 32px)}
body.rr-guided .lesson-wrap{max-width:1000px;margin:0 auto;padding:36px 24px}
body.rr-guided .rr-session-intro{margin:32px 0 24px;max-width:560px}
body.rr-guided .rr-session-intro p{color:var(--gui-muted)}
body.rr-guided .lesson-dialog{margin:0;max-width:600px;background:var(--gui-panel)!important;border:1px solid var(--gui-line);box-shadow:none;border-radius:14px;padding:24px}
body.rr-guided .lesson-dialog h1{color:var(--gui-ink)!important;font-size:23px}
body.rr-guided .lesson-dialog .lesson-list td{color:var(--gui-ink)!important;background:transparent}
body.rr-guided .lesson-dialog .lesson-list label{display:block;font-size:15px;padding:12px;min-height:48px;color:var(--gui-ink)!important}
body.rr-guided .clock-icons{display:none}
body.rr-guided .rr-login-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:70px;width:100%;max-width:1080px;padding:40px 28px;align-items:center}
body.rr-guided .rr-login-intro h1{font-size:43px;letter-spacing:-1.3px;margin:28px 0 18px;line-height:1.12}
.rr-login-intro p{color:var(--gui-muted);max-width:410px;font-size:16px}
.rr-login-intro .rr-main-cta{display:inline-flex;gap:10px;align-items:center;margin:16px 0 0;min-height:48px;padding:12px 20px;background:#285fbe;color:#fff;border:0;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}
.rr-login-intro .rr-trial-note{font-size:13px;margin:12px 0 28px}
.rr-login-benefits{display:grid;gap:16px;margin-top:22px}
.rr-login-benefits>div{display:flex;gap:12px;align-items:center;color:var(--gui-muted);font-size:14px}
.rr-login-benefits svg{color:var(--gui-primary)}
body.rr-guided .rr-login-card{padding:28px;background:var(--gui-panel);border:1px solid var(--gui-line);border-radius:14px;box-shadow:0 14px 40px #0b172910}
body.rr-guided .rr-login-card>h2{font-size:24px;margin:0 0 8px}
body.rr-guided .rr-login-card>p{color:var(--gui-muted);font-size:14px;margin:0 0 24px}
body.rr-guided .rr-login-row{display:block}
body.rr-guided .rr-login-fields{width:100%;max-width:none;gap:16px}
body.rr-guided .rr-login-label{display:block;width:100%}
body.rr-guided .rr-login-input-wrap{width:100%;max-width:none}
body.rr-guided .rr-login-input-field{width:100%;max-width:none;height:46px;color:var(--gui-ink);background:var(--gui-canvas);border:1px solid var(--gui-line);border-radius:7px;font-size:15px}
body.rr-guided .rr-login-actions{margin-top:16px;width:100%}
body.rr-guided .rr-login-actions input{width:100%;height:46px;border-radius:7px;background:#285fbe;color:white;border:0;font-size:15px}
body.rr-guided .rr-login-divider{color:var(--gui-muted);font-size:12px;margin:22px 0 16px}
body.rr-guided .rr-login-links{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:20px}
body.rr-guided .rr-login-links a{font-size:12px}
.rr-login-field-name{display:block;font-size:13px;color:var(--gui-muted);margin-bottom:6px}
body.rr-guided .rr-modal-box{background:var(--gui-panel)!important;color:var(--gui-ink)!important}
@media(min-width:1600px){.rr-workspace-main{padding:38px 54px}.rr-guided-columns{gap:48px;grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:1120px){.rr-guided-columns{grid-template-columns:minmax(0,1fr)}.rr-context-panel{display:none}.rr-workspace-main{padding:26px 24px}.rr-workspace-tagline{display:none}}
@media(max-width:760px){.rr-workspace-body{display:block}.rr-workspace-sidebar{padding:8px 12px;border:0;border-bottom:1px solid var(--gui-line);display:block}.rr-workspace-sidebar nav{display:flex;overflow:auto;gap:4px;padding:3px 1px 8px}.rr-workspace-sidebar .rr-nav-button{width:auto;flex:none;min-height:42px;padding:8px 10px;font-size:12px;gap:7px}.rr-workspace-settings{margin:4px 0 0;padding:0;border:0}.rr-workspace-settings .rr-nav-button{display:inline-flex}.rr-workspace-header{padding:12px 16px;gap:12px;flex-wrap:wrap}.rr-workspace-brand img{width:145px}.rr-workspace-brand .sr-brand-images{width:175px}.rr-workspace-account{gap:6px}.rr-workspace-account>span{display:none}.rr-workspace-account button{font-size:12px;padding:7px 9px;min-height:36px}.rr-workspace-main{padding:24px 16px}.rr-workspace-heading{margin-bottom:20px}body.rr-guided h1{font-size:26px}body.rr-guided .flash-wrap{padding:14px}body.rr-guided #flash_tbl #word_cell{height:200px}body.rr-guided #entry_cell .btn{font-size:14px;min-height:64px;padding:10px 8px}body.rr-guided .rr-login-layout{grid-template-columns:1fr;gap:28px;padding:24px 18px}body.rr-guided .rr-login-intro h1{font-size:34px;margin:24px 0 16px}.rr-login-benefits{display:none}body.rr-guided .rr-login-card{padding:24px}.rr-login-intro .rr-trial-note{margin-bottom:0}.rr-level-heading{flex-wrap:wrap}.rr-level-heading #level_badge{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.rr-progress-track>span{transition:none}}
.rr-flash-paused{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--gui-canvas);color:var(--gui-muted);font-size:20px;z-index:2}
body.rr-guided #entry_cell[inert]{opacity:.5}

/* Shared ordinary controls; specialised navigation and answer layouts retain
   their geometry through their more specific component rules. */
body.rr-guided :where(button,input[type=button],input[type=submit],input[type=reset]){font-family:inherit;font-size:14px;line-height:1.3;min-height:40px;max-width:100%;padding:9px 13px;border:1px solid var(--gui-line);border-radius:7px;background:var(--gui-panel);color:var(--gui-ink);box-shadow:none;cursor:pointer;vertical-align:middle}
body.rr-guided :where(button,input[type=button],input[type=submit],input[type=reset]):hover:not(:disabled){border-color:var(--gui-primary)}
body.rr-guided :where(button,input[type=button],input[type=submit],input[type=reset]):disabled{opacity:.5;cursor:default}
body.rr-guided .rr-action-button{margin:8px 6px 8px 0}
body.rr-guided [data-rr-theme]{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.rr-theme-icon{width:18px;height:18px;flex-shrink:0}.rr-theme-sun{display:none}.rr-dark .rr-theme-moon{display:none}.rr-dark .rr-theme-sun{display:block}
body.rr-guided .rr-lesson-caption{display:inline-flex!important;align-items:center;gap:10px;color:var(--gui-ink)!important;font-size:15px!important}
.rr-lesson-caption-icon{display:inline-flex;color:var(--gui-primary)}
.rr-report-root{color:var(--gui-ink,#1e293b);background:transparent;font:inherit;min-width:0}
body.rr-guided #guts .rr-report-title,body.rr-guided #guts .rr-report-section-title,body.rr-guided #guts .rr-report-subtitle{color:var(--gui-ink,#1e293b);line-height:1.25;margin:18px 0 12px}
.rr-report-root .rr-report-title{font-size:23px}.rr-report-root .rr-report-section-title{font-size:20px}.rr-report-root .rr-report-subtitle{font-size:16px}
.rr-report-root .rr-report-note,.rr-report-root .rr-sparkline__range{color:var(--gui-muted,#52627a);font-size:13px}
.rr-report-root .rr-sparkline{--rr-sparkline-bg:var(--gui-canvas,#fbfcfe);--rr-sparkline-border:var(--gui-line,#d5deea);--rr-sparkline-axis:var(--gui-line,#d5deea);--rr-sparkline-line:var(--gui-muted,#52627a);--rr-sparkline-text:var(--gui-muted,#52627a);--rr-sparkline-hard:var(--gui-primary,#285fbe);--rr-sparkline-basic:var(--gui-primary,#285fbe);--rr-sparkline-web:#4884ae;--rr-sparkline-custom:#398860;--rr-sparkline-other:var(--gui-muted,#52627a);--rr-sparkline-flash:var(--gui-primary,#285fbe);--rr-sparkline-point-hover:var(--gui-ink,#1e293b);--rr-sparkline-comp-low:#c85552;--rr-sparkline-comp-midlow:#ba802b;--rr-sparkline-comp-mid:#4884ae;--rr-sparkline-comp-high:#398860;margin:12px 0;max-width:100%;overflow:auto}
.rr-report-root .rr-collapsible{margin:8px 0 20px;max-width:100%;overflow:auto}.rr-report-root .rr-collapsible.is-collapsed>table{display:none}.rr-report-root .rr-collapsible__toggle{margin-bottom:8px}.rr-report-root .rr-collapsible__icon{margin-right:6px}
.rr-report-root table{border-collapse:collapse;max-width:100%}.rr-report-root .rr-report-table{background:var(--gui-panel,#fff);border:1px solid var(--gui-line,#d5deea)}.rr-report-root .rr-report-table td,.rr-report-root .rr-report-table th{padding:8px 10px;color:var(--gui-ink,#1e293b);border-color:var(--gui-line,#d5deea)}.rr-report-root .rr-report-table th{background:var(--gui-soft,#e7effd)}
.rr-report-root .rr-vocab-report__cell--mastered{background:var(--gui-good,#d4f1e1)}.rr-report-root .rr-vocab-report__cell--known{background:var(--gui-soft,#e7effd)}.rr-report-root .rr-vocab-report__cell--regressed{background:var(--gui-bad,#ffe1df)}.rr-report-root .rr-vocab-report__cell--learning{background:var(--gui-answer,#f8fafc)}
@media(pointer:coarse){body.rr-guided :where(button,input[type=button],input[type=submit],input[type=reset]){min-height:44px}}
@media print{.rr-report-root{color:#17283b;background:#fff}.rr-report-root .rr-collapsible>table{display:table!important}.rr-report-root .rr-collapsible__toggle{display:none}.rr-report-root .rr-sparkline{--rr-sparkline-bg:#fff;--rr-sparkline-text:#333;--rr-sparkline-axis:#ddd;--rr-sparkline-border:#ccc}}

/* The shell owns its layout; legacy exercise tables keep their own alignment. */
.rr-workspace-main,.rr-context-panel,.rr-login-layout,.lesson-wrap{text-align:left}
body.rr-guided .rr-guided-columns #guts{background:transparent!important}
body.rr-guided #entry_cell{padding:0;overflow:visible}
body.rr-guided .rr-login-input-wrap{background:var(--gui-canvas);border:1px solid var(--gui-line);border-radius:7px;overflow:hidden}
body.rr-guided .rr-login-input-wrap .rr-login-input-field{border:0;background:transparent!important;border-radius:0;box-shadow:none}
body.rr-guided .rr-login-input-action,body.rr-guided .rr-login-input-icon{background:transparent!important;color:var(--gui-muted)}
body.rr-guided .rr-login-field-name{text-transform:capitalize}

.rr-guided-columns.rr-flash-columns{grid-template-columns:minmax(0,610px) 190px}
.rr-guided #flash_instructions{font-family:inherit!important}
.rr-guided #flash_instructions b,.rr-guided #flash_instructions strong{font-family:inherit}
@media(max-width:1120px){.rr-guided-columns.rr-flash-columns{grid-template-columns:minmax(0,1fr)}}

body.rr-guided .rr-session-start{min-height:46px;padding:10px 20px;background:#285fbe;color:#fff;border:0;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;width:100%;margin-top:16px}
body.rr-guided .lesson-list tr:has(input:checked){background:var(--gui-soft)}
body.rr-guided .lesson-list input{accent-color:#285fbe}
body.rr-guided .lesson-dialog h2{font-size:21px;margin:0 0 12px}
/* Wide legacy question tables scroll inside the activity, not the whole page. */
body.rr-guided .rr-guided-columns>#guts{max-width:100%;overflow-x:auto}
body.rr-guided .lesson-list{width:100%;border-collapse:separate;border-spacing:0 6px}

.rr-workspace-heading #lesson_title:empty{display:none}

/* Reserve space before images/Google controls arrive; keep sign-in anchored. */
body.rr-guided .rr-auth-page{align-items:flex-start!important}
body.rr-guided .rr-auth-page #guts{background:transparent!important}
.rr-workspace-brand img{height:64px}
.rr-workspace-brand .rr-brand-speed{height:56px}
body.rr-guided .rr-google-create{min-height:44px}
@media(max-width:760px){.rr-workspace-brand img{height:54px}.rr-workspace-brand .rr-brand-speed{height:49px}}

/* Read: the passage owns one scroll area; the workspace and next step stay put. */
body.rr-guided:has(.rr-reader-view){height:100vh!important;height:100dvh!important;min-height:0;overflow:hidden}
body.rr-guided:has(.rr-reader-view) #lform{height:100%;margin:0}
body.rr-guided:has(.rr-reader-view) #rr-workspace{height:100%;display:flex;flex-direction:column}
body.rr-guided:has(.rr-reader-view) .rr-workspace-header{flex-shrink:0}
body.rr-guided:has(.rr-reader-view) .rr-workspace-body{flex:1;min-height:0}
body.rr-guided:has(.rr-reader-view) .rr-workspace-sidebar{min-height:0;overflow-y:auto}
body.rr-guided:has(.rr-reader-view) .rr-workspace-main{min-height:0;height:100%;display:flex;flex-direction:column;padding:24px 32px;background:var(--gui-bg)!important}
body.rr-guided:has(.rr-reader-view) .rr-workspace-heading,body.rr-guided:has(.rr-reader-view) .rr-owner-tools{display:none}
body.rr-guided:has(.rr-reader-view) .rr-guided-columns{display:block;flex:1;min-height:0;height:100%}
body.rr-guided:has(.rr-reader-view) .rr-guided-columns>#guts{height:100%;min-height:0;overflow:hidden}
.rr-read-stage:has(.rr-reader-view){height:100%;min-height:0;display:flex;flex-direction:column}
body.rr-guided .rr-reader-view{display:flex;flex-direction:column;min-height:0;height:100%;width:100%;max-width:1060px;margin:0 auto;border:1px solid var(--gui-line);border-radius:14px;background:var(--gui-panel);color:var(--gui-ink);text-align:left}
.rr-reader-header{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;padding:22px 28px;border-bottom:1px solid var(--gui-line);flex-shrink:0}
.rr-reader-heading{min-width:0}
body.rr-guided #guts .rr-reader-heading h1{font-size:25px;line-height:1.25;letter-spacing:-.4px;margin:0 0 8px;color:var(--gui-ink)!important}
.rr-reader-heading .rr-eyebrow{margin-bottom:7px}
.rr-reader-heading p{font-size:13px;color:var(--gui-muted);margin:0}
.rr-reader-tools{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0}
.rr-reader-time{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--gui-muted);white-space:nowrap}
body.rr-guided .rr-reader-time #rr_active_time{font-size:13px;font-weight:600;line-height:1.4}
.rr-reader-settings{position:relative;font-size:13px}
.rr-reader-settings summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid var(--gui-line);border-radius:7px;background:var(--gui-canvas);color:var(--gui-ink);padding:8px 12px;cursor:pointer;white-space:nowrap}
.rr-reader-settings summary::-webkit-details-marker{display:none}
.rr-reader-settings[open] summary{border-color:var(--gui-primary);color:var(--gui-primary)}
.rr-reader-aa{font-size:19px;line-height:1;font-weight:600}
.rr-reader-settings-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:300px;max-width:calc(100vw - 36px);max-height:min(400px,65dvh);overflow-y:auto;display:grid;gap:9px;padding:20px;border:1px solid var(--gui-line);border-radius:10px;background:var(--gui-panel);box-shadow:0 12px 36px #0b172933}
body.rr-guided #rr-text-settings label{font-size:12px;font-weight:600;color:var(--gui-muted);margin:6px 0 0;line-height:1.4;text-align:left}
body.rr-guided #rr-text-settings select{width:100%;height:42px;padding:8px 10px;font-size:14px;color:var(--gui-ink);background:var(--gui-canvas);border:1px solid var(--gui-line);border-radius:6px}
.rr-reader-size-control{display:flex;align-items:center;gap:12px;min-height:42px}
.rr-reader-size-control input{width:100%;min-width:0;accent-color:var(--gui-primary)}
.rr-reader-size-control output{white-space:nowrap;font-size:13px;color:var(--gui-ink);font-variant-numeric:tabular-nums}
body.rr-guided .rr-reader-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:28px 36px;scroll-padding:20px}
body.rr-guided .rr-reader-prose{display:block;max-width:68ch;width:100%;margin:0 auto;color:var(--gui-ink);font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.6;overflow-wrap:break-word}
body.rr-guided .rr-reader-prose>p:first-child{margin-top:0}
body.rr-guided .rr-reader-prose>p:last-child{margin-bottom:0}
body.rr-guided .rr-reader-prose a{color:var(--gui-primary);text-decoration-color:var(--gui-primary);text-underline-offset:3px}
.rr-reader-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-shrink:0;padding:14px 24px;border-top:1px solid var(--gui-line);border-radius:0 0 14px 14px;background:var(--gui-panel);font-size:13px;color:var(--gui-muted)}
body.rr-guided .rr-reader-next{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:11px 18px;background:var(--gui-primary);color:var(--gui-panel);border:1px solid var(--gui-primary);border-radius:7px;font-size:14px;line-height:1.4;font-weight:600;cursor:pointer}
.rr-reader-chapters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 28px;border-bottom:1px solid var(--gui-line);font-size:13px;color:var(--gui-muted)}
.rr-reader-chapters .rr-chapter-link{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;border:1px solid var(--gui-line);border-radius:6px;color:var(--gui-ink);text-decoration:none}
.rr-reader-chapters .rr-chapter-link[aria-current=page]{background:var(--gui-soft);color:var(--gui-primary);border-color:var(--gui-primary)}
@media(max-width:760px){
 body.rr-guided:has(.rr-reader-view) .rr-workspace-main{padding:12px}
 .rr-reader-header{padding:16px;gap:14px;flex-wrap:wrap}
 body.rr-guided #guts .rr-reader-heading h1{font-size:21px}
 .rr-reader-heading p{display:none}
 .rr-reader-tools{width:100%;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
 body.rr-guided .rr-reader-scroll{padding:20px 18px}
 .rr-reader-footer{padding:12px 16px}
 .rr-reader-footer>span{display:none}
 body.rr-guided .rr-reader-next{width:100%}
 .rr-reader-settings-panel{right:0}
 .rr-reader-chapters{padding:8px 16px}
}
/* Short/zoomed viewports retain normal page scrolling instead of clipping controls. */
@media(max-height:600px){
 body.rr-guided:has(.rr-reader-view){height:auto!important;min-height:100vh;overflow:auto}
 body.rr-guided:has(.rr-reader-view) #lform,body.rr-guided:has(.rr-reader-view) #rr-workspace{height:auto}
 body.rr-guided:has(.rr-reader-view) .rr-workspace-body{min-height:0}
 body.rr-guided:has(.rr-reader-view) .rr-workspace-main,body.rr-guided:has(.rr-reader-view) .rr-guided-columns,body.rr-guided:has(.rr-reader-view) .rr-guided-columns>#guts,.rr-read-stage:has(.rr-reader-view){height:auto}
 body.rr-guided .rr-reader-scroll{flex:none;max-height:65vh;min-height:220px}
}
@media(max-width:760px){
 body.rr-guided:has(.rr-reader-view) .rr-workspace-body{display:flex;flex-direction:column}
 body.rr-guided:has(.rr-reader-view) .rr-workspace-sidebar{flex:none;overflow:visible}
 body.rr-guided:has(.rr-reader-view) .rr-workspace-main{flex:1;height:auto}
}

/* Compact lesson picker; one shared appearance for Vocabulary and Memory. */
body.rr-guided #guts #vocab.rr-compact-picker{max-width:900px;width:100%;color:var(--gui-ink)}
body.rr-guided #guts .rr-compact-picker #vocab_header{margin:0 0 22px;padding:0}
body.rr-guided #guts .rr-compact-picker #tabs{border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit}
body.rr-guided #guts .rr-compact-picker #tabs>ul{display:flex;gap:24px;background:transparent;border:0;border-bottom:1px solid var(--gui-line);border-radius:0;margin:0;padding:0}
body.rr-guided #guts .rr-compact-picker #tabs>ul li{float:none;top:0;margin:0;padding:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;list-style:none}
body.rr-guided #guts .rr-compact-picker #tabs>ul a{display:block;padding:10px 0;color:var(--gui-muted);font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;text-decoration:none}
body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-active,body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-selected{border-bottom-color:var(--gui-primary)}
body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-active a,body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-selected a{color:var(--gui-primary)}
body.rr-guided #guts .rr-compact-picker #tabs-1,body.rr-guided #guts .rr-compact-picker #tabs-2{padding:12px 0 0!important;margin:0!important;background:transparent;border:0;color:inherit}
body.rr-guided #guts .rr-compact-picker .chip-pane{height:auto;max-height:180px;overflow:auto}
body.rr-guided #guts .rr-compact-picker .chip-row{gap:7px;margin:0}
body.rr-guided #guts .rr-compact-picker .chip{height:auto;min-height:36px;background:var(--gui-panel);border:1px solid var(--gui-line);color:var(--gui-muted);border-radius:7px;padding:7px 11px}
body.rr-guided #guts .rr-compact-picker .chip.is-selected{background:var(--gui-soft);border-color:var(--gui-primary);color:var(--gui-primary)}
body.rr-guided #guts .rr-picker-content{width:100%;min-width:0}
body.rr-guided #guts .rr-picker-category{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
body.rr-guided #guts .rr-picker-eyebrow{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--gui-muted);margin-bottom:4px}
body.rr-guided #guts .rr-picker-category h2{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:19px;font-weight:500;line-height:1.4;margin:0}
body.rr-guided #guts .rr-picker-category h2>span{overflow-wrap:anywhere}
body.rr-guided #guts .rr-picker-category h2 small{font-size:12px;font-weight:400;color:var(--gui-muted);white-space:nowrap}
body.rr-guided #guts .rr-picker-category-actions,body.rr-guided #guts .rr-picker-lesson-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
body.rr-guided #guts .rr-compact-picker button,body.rr-guided #guts .rr-picker-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:inherit;font-size:13px;font-weight:500;line-height:1.3;min-height:38px;margin:0;padding:8px 11px;border:1px solid var(--gui-line);border-radius:7px;color:var(--gui-ink);background:var(--gui-panel);box-shadow:none;cursor:pointer;white-space:normal}
body.rr-guided #guts .rr-compact-picker button:hover,body.rr-guided #guts .rr-picker-menu>summary:hover{border-color:var(--gui-primary);background:var(--gui-soft)}
body.rr-guided #guts .rr-compact-picker button.rr-picker-start{color:var(--gui-on-primary);background:var(--gui-primary);border-color:var(--gui-primary)}
body.rr-guided #guts .rr-compact-picker button.rr-picker-start:hover{filter:brightness(.95)}
body.rr-guided #guts .rr-compact-picker button.rr-picker-delete{color:var(--gui-ink)}
body.rr-guided #guts .rr-compact-picker button:disabled{opacity:.6;cursor:wait}
body.rr-guided #guts .rr-compact-picker #div_main{float:none;overflow:visible;height:auto!important;max-height:none!important;width:auto;padding:0}
body.rr-guided #guts .rr-compact-picker #hovert{display:block;width:100%;height:auto;border:0;overflow:visible;background:transparent}
body.rr-guided #guts .rr-picker-lesson{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--gui-line);background:transparent;min-width:0}
body.rr-guided #guts .rr-picker-lesson:first-child{border-top:1px solid var(--gui-line)}
body.rr-guided #guts .rr-picker-lesson-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;height:38px;border-radius:9px;background:var(--gui-soft);color:var(--gui-primary)}
body.rr-guided #guts .rr-picker-lesson-copy{min-width:0;flex:1}
body.rr-guided #guts .rr-picker-lesson h3{font-family:inherit;font-size:17px;font-weight:500;line-height:1.4;margin:0 0 3px;overflow-wrap:anywhere}
body.rr-guided #guts .rr-picker-lesson p{margin:0;font-size:12px;line-height:1.5;color:var(--gui-muted);overflow-wrap:anywhere}
body.rr-guided #guts .rr-picker-dot{margin:0 7px}
body.rr-guided #guts .rr-picker-menu{position:relative;flex:none}
body.rr-guided #guts .rr-picker-menu>summary{list-style:none;width:38px;padding:5px;font-size:22px;line-height:1}
body.rr-guided #guts .rr-picker-menu>summary::-webkit-details-marker{display:none}
body.rr-guided #guts .rr-picker-menu[open]{z-index:25}
body.rr-guided #guts .rr-picker-menu-items{position:absolute;top:calc(100% + 5px);right:0;z-index:25;width:max-content;min-width:180px;max-width:calc(100vw - 40px);padding:6px;border:1px solid var(--gui-line);border-radius:8px;background:var(--gui-panel);box-shadow:0 8px 22px #0002}
body.rr-guided #guts .rr-picker-menu-items button{display:flex;justify-content:flex-start;width:100%;border:0;background:transparent;text-align:left;min-height:40px}
body.rr-guided #guts .rr-picker-training{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
body.rr-guided #guts .rr-picker-training button{background:transparent;border-color:transparent;color:var(--gui-muted);font-weight:400}
body.rr-guided #guts .rr-picker-empty{padding:18px 0;border-block:1px solid var(--gui-line);font-size:14px}
body.rr-guided #guts .rr-picker-dialog{position:fixed;inset:0;width:min(460px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;margin:auto;padding:22px;border:1px solid var(--gui-control-line);border-radius:12px;background:var(--gui-panel);color:var(--gui-ink);box-shadow:0 18px 60px #0004}
body.rr-guided #guts .rr-picker-dialog::backdrop{background:#0007}
body.rr-guided #guts .rr-picker-dialog h3{margin:0 0 14px;font-size:19px}
body.rr-guided #guts .rr-picker-dialog p{font-size:14px;margin:10px 0}
body.rr-guided #guts .rr-picker-dialog label{display:block;font-size:13px;margin-bottom:6px;color:inherit}
body.rr-guided #guts .rr-picker-dialog input{width:100%;font:inherit;font-size:16px;padding:9px 10px;min-height:42px;background:var(--gui-canvas);color:var(--gui-ink);border:1px solid var(--gui-control-line);border-radius:6px}
body.rr-guided #guts .rr-picker-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
/* Existing category/new-lesson dialogs inherit the same website theme. */
body.rr-guided #guts .rr-compact-picker .modal-box{background:var(--gui-panel);color:var(--gui-ink);border:1px solid var(--gui-line);border-radius:12px;max-width:min(520px,calc(100vw - 32px));margin:60px auto;padding:22px;box-sizing:border-box;overflow:auto;max-height:calc(100vh - 100px)}
body.rr-guided #guts .rr-compact-picker .modal-box h3{margin:0 0 12px;font-size:19px}
body.rr-guided #guts .rr-compact-picker .modal-box input[type=text]{max-width:100%;box-sizing:border-box;color:var(--gui-ink);background:var(--gui-canvas);border:1px solid var(--gui-control-line);padding:8px;border-radius:6px}
body.rr-guided #guts .rr-compact-picker .modal-box input[type=button]{min-height:38px;margin:4px;cursor:pointer}
body.rr-guided #guts .rr-compact-picker .cc-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body.rr-guided #guts .rr-compact-picker .cc-list label{display:block;margin:8px 0}
@media(max-width:760px){body.rr-guided #guts .rr-picker-category{flex-wrap:wrap;align-items:flex-start}body.rr-guided #guts .rr-picker-category-actions{margin-left:auto}body.rr-guided #guts .rr-picker-lesson{flex-wrap:wrap}body.rr-guided #guts .rr-picker-lesson-actions{width:100%;padding-left:52px;flex-wrap:wrap}body.rr-guided #guts .rr-picker-lesson-actions button{min-height:40px}body.rr-guided #guts .rr-picker-training{margin-top:10px}body.rr-guided #guts .rr-compact-picker .cc-columns{grid-template-columns:1fr}}
@media(pointer:coarse){body.rr-guided #guts .rr-compact-picker button,body.rr-guided #guts .rr-picker-menu>summary{min-height:44px}}
/* Picker instructions and activity already appear in the shared page heading. */
body.rr-guided:has(.rr-picker-content) #lesson_title,body.rr-guided:has(.rr-picker-content) #topNumb,body.rr-guided:has(.rr-picker-content) .rr-context-panel{display:none!important}
body.rr-guided:has(.rr-picker-content) .rr-guided-columns{grid-template-columns:minmax(0,1fr)}
body.rr-guided #guts .rr-compact-picker .chip{background:var(--gui-panel)!important;color:var(--gui-muted)!important;border-color:var(--gui-line)!important}
body.rr-guided #guts .rr-compact-picker .chip.is-selected{background:var(--gui-soft)!important;color:var(--gui-primary)!important;border-color:var(--gui-primary)!important}

body.rr-guided #guts .rr-picker-category h2,body.rr-guided #guts .rr-picker-lesson h3{color:var(--gui-ink)}
body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-active,body.rr-guided #guts .rr-compact-picker #tabs>ul li.ui-tabs-selected{background:transparent;box-shadow:none}

/* Reuse the shared website theme; only authoring layout lives here. */
body.rr-guided #guts .rr-lesson-editor{max-width:960px;width:100%;min-width:0;color:var(--gui-ink)}
body.rr-guided:has(.rr-lesson-editor) #lesson_title,body.rr-guided:has(.rr-lesson-editor) #topNumb,body.rr-guided:has(.rr-lesson-editor) .rr-context-panel{display:none!important}
body.rr-guided:has(.rr-lesson-editor) .rr-guided-columns{grid-template-columns:minmax(0,1fr)}
body.rr-guided:has(.rr-lesson-editor) .rr-workspace-heading{display:none}
.rr-lesson-editor .rr-le-heading,.rr-lesson-editor .rr-le-pane-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.rr-lesson-editor .rr-le-breadcrumb,.rr-lesson-editor .rr-le-help,.rr-lesson-editor .rr-le-count,.rr-lesson-editor .rr-le-status{color:var(--gui-muted);font-size:13px;line-height:1.5;margin:6px 0}
body.rr-guided #guts .rr-lesson-editor h1{font-size:24px;line-height:1.3;margin:6px 0}
body.rr-guided #guts .rr-lesson-editor h2{font-size:18px;line-height:1.4;margin:0}
body.rr-guided #guts .rr-lesson-editor :is(h1,h2){color:var(--gui-ink)!important}
.rr-lesson-editor .rr-le-toolbar,.rr-lesson-editor .rr-le-row-actions,.rr-lesson-editor .rr-le-savebar,.rr-lesson-editor .rr-le-dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.rr-lesson-editor .rr-le-toolbar{margin-bottom:18px}
.rr-lesson-editor .rr-le-count{margin-left:auto}
body.rr-guided #guts .rr-lesson-editor button{font-family:inherit;font-weight:500;font-size:13px;line-height:1.4;margin:0;min-height:40px;padding:8px 12px;white-space:normal}
body.rr-guided #guts .rr-lesson-editor button.rr-le-primary{background:var(--gui-primary);color:var(--gui-on-primary);border-color:var(--gui-primary)}
.rr-lesson-editor button:disabled{opacity:.5;cursor:default}
.rr-lesson-editor .rr-le-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--gui-line);min-width:0}
.rr-lesson-editor .rr-le-row:first-child{border-top:1px solid var(--gui-line)}
.rr-lesson-editor .rr-le-number{font-size:12px;color:var(--gui-muted);flex:0 0 24px}
.rr-lesson-editor .rr-le-copy{flex:1;min-width:0}
.rr-lesson-editor .rr-le-copy strong{font-weight:600;overflow-wrap:anywhere}
.rr-lesson-editor .rr-le-copy p{margin:3px 0 0;color:var(--gui-muted);font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rr-lesson-editor .rr-le-pane{min-width:0;padding:20px;margin:14px 0;background:var(--gui-panel);border:1px solid var(--gui-line);border-radius:10px}
.rr-lesson-editor .rr-le-editor-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr);gap:16px}
.rr-lesson-editor .rr-le-field{display:grid;gap:6px;margin-bottom:14px;min-width:0;font-size:13px;color:var(--gui-ink)}
body.rr-guided #guts .rr-lesson-editor :is(input[type=text],textarea,select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-family:inherit;font-weight:400;font-size:16px;line-height:1.5;color:var(--gui-ink);background:var(--gui-canvas);border:1px solid var(--gui-control-line);border-radius:6px;padding:8px 10px;margin:0;min-height:42px;resize:vertical}
.rr-lesson-editor .rr-le-answer{display:flex;align-items:center;gap:12px}
.rr-lesson-editor .rr-le-answer .rr-le-field{flex:1}
.rr-lesson-editor input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--gui-primary);margin:9px 0 0}
.rr-lesson-editor .rr-le-extras{border-top:1px solid var(--gui-line);padding-top:12px;margin-top:12px}
.rr-lesson-editor .rr-le-extras summary{cursor:pointer;padding:4px 0 14px;font-size:13px;color:var(--gui-muted)}
.rr-lesson-editor .rr-le-savebar{justify-content:flex-end;margin-top:18px}
body.rr-guided #guts .rr-lesson-editor .rr-le-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:22px;border:1px solid var(--gui-control-line);border-radius:12px;background:var(--gui-panel);color:var(--gui-ink);box-shadow:0 18px 60px #0004}
.rr-lesson-editor .rr-le-dialog::backdrop{background:#0007}
.rr-lesson-editor .rr-le-dialog-actions{justify-content:flex-end;margin-top:16px}
.rr-lesson-editor .rr-le-preview-label{font-size:13px;color:var(--gui-muted);margin:10px 0}
.rr-lesson-editor .rr-le-preview-frame{display:block;width:100%;height:clamp(260px,55dvh,500px);border:1px solid var(--gui-line);border-radius:8px;background:var(--gui-canvas)}
.rr-lesson-editor :focus-visible{outline:2px solid var(--gui-primary);outline-offset:3px}
@media(max-width:600px){.rr-lesson-editor .rr-le-editor-top{grid-template-columns:minmax(0,1fr);gap:0}.rr-lesson-editor .rr-le-row{flex-wrap:wrap}.rr-lesson-editor .rr-le-row-actions{margin-left:auto}.rr-lesson-editor .rr-le-pane{padding:14px}.rr-lesson-editor .rr-le-heading{flex-wrap:wrap}.rr-lesson-editor .rr-le-count{margin-left:0}}
@media(pointer:coarse){body.rr-guided #guts .rr-lesson-editor button{min-height:44px}}
/* The existing exercise renderer inside both preview dialogs uses these same tokens. */
body.rr-guided.rr-question-preview{min-height:0;margin:0!important;padding:14px;background:var(--gui-canvas)!important;color:var(--gui-ink)!important}
body.rr-question-preview #guts{padding:0!important;min-width:0!important;width:100%!important;overflow-wrap:anywhere}
body.rr-question-preview #guts table{max-width:100%;color:var(--gui-ink);background:transparent}
body.rr-question-preview #ans,body.rr-question-preview #sideA li,body.rr-question-preview #sideB li{background:var(--gui-panel)!important;color:var(--gui-ink)!important;border-color:var(--gui-control-line)!important}
body.rr-question-preview .rrRating,body.rr-question-preview .rr-act-wrap,body.rr-question-preview #action_col{display:none!important}

/* Native reading picker: category first, reading second, with contained scrolling. */
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser){gap:28px;grid-template-columns:minmax(0,1fr) 210px}
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser)>#guts{overflow:visible}
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser)>.rr-context-panel{padding:20px;border:1px solid var(--gui-line);border-radius:12px;background:var(--gui-panel);min-width:0}
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser)>.rr-context-panel h2{display:flex;align-items:center;gap:7px;margin-bottom:16px}
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser)>.rr-context-panel hr{margin:20px 0}
body.rr-guided .rr-guided-columns:has(.rr-reading-chooser)>.rr-context-panel dl>div{flex-wrap:wrap;gap:4px 10px}
body.rr-guided .rr-reading-chooser{width:100%;min-width:0;text-align:left}
body.rr-guided .rr-reading-chooser-intro{margin:0 0 20px}
body.rr-guided #guts .rr-reading-chooser-intro h2{font-size:21px;line-height:1.3;letter-spacing:-.3px;margin:0 0 5px;color:var(--gui-ink)}
body.rr-guided .rr-reading-chooser-intro p{font-size:13px;line-height:1.5;color:var(--gui-muted);margin:0}
body.rr-guided .rr-reading-category-section{border:1px solid var(--gui-line);border-radius:12px;padding:18px 20px;background:var(--gui-panel);margin:0 0 22px}
body.rr-guided .rr-reading-step-heading{display:flex;align-items:flex-start;gap:11px;margin:0 0 14px}
body.rr-guided .rr-reading-step{display:flex;align-items:center;justify-content:center;flex:none;width:27px;height:27px;border-radius:50%;background:var(--gui-soft);color:var(--gui-primary);font-size:12px;font-weight:700;line-height:1}
body.rr-guided #guts .rr-reading-step-heading h3{font-size:15px;line-height:1.5;font-weight:650;letter-spacing:0;margin:0;color:var(--gui-ink)}
body.rr-guided .rr-reading-step-heading p{font-size:12px;line-height:1.5;margin:2px 0 0;color:var(--gui-muted)}
body.rr-guided .rr-reading-step-heading p:empty{display:none}
body.rr-guided .rr-reading-category-controls .chip-row{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0}
body.rr-guided .rr-reading-category-controls #rr_pick_bot_row:not(:empty){margin-top:14px;padding-top:14px;border-top:1px solid var(--gui-line)}
body.rr-guided .rr-reading-category-controls input.chip{margin:0;min-height:37px;padding:8px 11px;border:1px solid var(--gui-line);border-radius:7px;background:var(--gui-canvas);color:var(--gui-ink);font-size:12px;line-height:1.3;box-shadow:none;font-weight:500}
body.rr-guided .rr-reading-category-controls #rr_pick_top_row input.chip{font-size:13px}
body.rr-guided .rr-reading-category-controls input.chip:hover{border-color:var(--gui-primary);background:var(--gui-soft);color:var(--gui-ink)}
body.rr-guided .rr-reading-category-controls input.chip.is-selected{border-color:var(--gui-primary);background:var(--gui-soft);color:var(--gui-primary);font-weight:650;box-shadow:inset 0 0 0 1px var(--gui-primary)}
/* Override the legacy id-based chip palette with the shared live-theme tokens. */
body.rr-guided #guts .rr-reading-chooser .rr-reading-category-controls input.chip{background:var(--gui-canvas)!important;color:var(--gui-ink)!important;border:1px solid var(--gui-line)!important}
body.rr-guided #guts .rr-reading-chooser .rr-reading-category-controls input.chip.is-selected{background:var(--gui-soft)!important;color:var(--gui-primary)!important;border:1px solid var(--gui-primary)!important}
body.rr-guided .rr-reading-list-section{min-width:0}
body.rr-guided .rr-reading-list-section>.rr-reading-step-heading{margin-bottom:12px}
body.rr-guided .rr-reading-list{float:none!important;width:100%;height:auto!important;max-height:min(54vh,570px);max-height:min(54dvh,570px);overflow:auto!important;padding:0!important;border:1px solid var(--gui-line);border-radius:10px;background:var(--gui-panel);overscroll-behavior:contain;scroll-padding:48px 8px;scrollbar-gutter:stable}
body.rr-guided .rr-reading-list #rowhighlighttable{width:100%;min-width:0;border:0;border-collapse:separate;border-spacing:0;table-layout:fixed;margin:0;background:var(--gui-panel);color:var(--gui-ink);font-size:13px}
body.rr-guided .rr-reading-list #rowhighlighttable th{position:sticky;top:0;z-index:1;background:var(--gui-answer);color:var(--gui-muted);font-size:11px;line-height:1.4;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:12px 10px;text-align:left;white-space:nowrap;border:0;border-bottom:1px solid var(--gui-line)}
body.rr-guided .rr-reading-list #rowhighlighttable .rr-reading-count{width:58px;text-align:center}
body.rr-guided .rr-reading-list #rowhighlighttable .rr-reading-level{width:80px}
body.rr-guided .rr-reading-list #rowhighlighttable td{padding:7px 10px;border:0;border-bottom:1px solid var(--gui-line);background:var(--gui-panel);color:var(--gui-ink);vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
body.rr-guided .rr-reading-list #rowhighlighttable tr:last-child td{border-bottom:0}
body.rr-guided .rr-reading-list #rowhighlighttable tr:hover td,body.rr-guided .rr-reading-list #rowhighlighttable tr:focus-within td{background:var(--gui-soft)!important;color:var(--gui-ink)!important}
body.rr-guided .rr-reading-list #rowhighlighttable td.rr-reading-title-cell{padding:0}
body.rr-guided .rr-reading-list .rr-reading-title-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:11px 10px;border:0;border-radius:0;background:transparent;color:var(--gui-ink);text-align:left;font-size:13px;line-height:1.5;font-weight:500;white-space:normal;overflow-wrap:anywhere}
body.rr-guided .rr-reading-list .rr-reading-title-button>span{color:var(--gui-primary);flex:none;font-size:17px}
body.rr-guided .rr-reading-list .rr-reading-title-button:hover{background:transparent;color:var(--gui-ink)}
body.rr-guided .rr-reading-list .rr-reading-title-button:focus-visible{outline-offset:-3px}
body.rr-guided .rr-reading-list .brain-stack{white-space:nowrap}
@media(max-width:1120px){body.rr-guided .rr-guided-columns:has(.rr-reading-chooser){grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 body.rr-guided .rr-reading-chooser-intro{margin-bottom:16px}
 body.rr-guided #guts .rr-reading-chooser-intro h2{font-size:19px}
 body.rr-guided .rr-reading-category-section{padding:16px 14px;margin-bottom:20px}
 body.rr-guided .rr-reading-category-controls .chip-row{gap:7px}
 body.rr-guided .rr-reading-category-controls input.chip{min-height:40px;padding:8px 10px}
 body.rr-guided .rr-reading-category-controls #rr_pick_top_row input.chip{font-size:12px}
 body.rr-guided .rr-reading-list #rowhighlighttable .rr-reading-count{width:48px}
 body.rr-guided .rr-reading-list #rowhighlighttable .rr-reading-level{width:67px}
 body.rr-guided .rr-reading-list #rowhighlighttable th,body.rr-guided .rr-reading-list #rowhighlighttable td{padding-left:7px;padding-right:7px}
 body.rr-guided .rr-reading-list .rr-reading-title-button{padding:10px 7px;gap:8px}
 body.rr-guided .rr-reading-list{max-height:54vh;max-height:54dvh}
}

/* Settings geometry uses the existing app theme and shared editing-field classes. */
body.rr-guided .rr-settings-dialog{position:fixed;inset:0;width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--gui-line);border-radius:14px;background:var(--gui-panel);color:var(--gui-ink);box-shadow:0 18px 60px #0004;overflow:auto;text-align:left}
body.rr-guided .rr-settings-dialog::backdrop{background:#08132680}
.rr-settings-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid var(--gui-line);position:sticky;top:0;z-index:1;background:var(--gui-panel)}
body.rr-guided .rr-settings-header h2{display:flex;align-items:center;gap:9px;margin:0;font-size:21px;line-height:1.3;color:inherit}
.rr-settings-content{padding:0 24px 6px}
.rr-settings-content:empty{min-height:100px}
.rr-settings-section{padding:20px 0;border-bottom:1px solid var(--gui-line)}
.rr-settings-section:last-of-type{border-bottom:0}
body.rr-guided .rr-settings-section h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;margin:0 0 12px;line-height:1.4;color:inherit}
.rr-settings-section h3 svg{width:18px;height:18px;color:var(--gui-primary)}
.rr-settings-table{width:100%;border-collapse:collapse;font-size:13px;background:transparent}
.rr-settings-table th,.rr-settings-table td{padding:7px 0;vertical-align:middle;border:0;background:transparent;line-height:1.45;overflow-wrap:anywhere}
.rr-settings-table th{font-weight:400;text-align:left;width:32%;padding-right:14px;color:var(--gui-muted)}
.rr-settings-table td:last-child{text-align:right;padding-left:14px}
.rr-settings-table td:last-child:not([colspan]){width:1%;white-space:nowrap}
.rr-settings-table td button{white-space:nowrap}
.rr-settings-table td[colspan]{text-align:left;padding-left:0}
.rr-settings-dialog button{font-size:13px}
.rr-settings-volume{display:flex;align-items:center;gap:8px}
.rr-settings-volume input[type=range]{width:100%;min-width:60px;max-width:160px;accent-color:var(--gui-primary)}
.rr-settings-volume output{font-size:12px;min-width:35px;white-space:nowrap}
.rr-settings-documents{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}
.rr-settings-dialog #rr-settings-status{font-size:13px;margin:0;padding:0 24px;color:var(--gui-muted)}
.rr-settings-dialog #rr-settings-status:not(:empty){padding-top:10px;padding-bottom:18px}
body.rr-guided .rr-settings-child{width:min(480px,calc(100vw - 32px));padding:24px}
.rr-settings-child-view h3{display:flex;align-items:center;gap:9px;font-size:19px;margin:0 0 18px;line-height:1.4;color:inherit}
.rr-settings-child-view p{font-size:13px;color:var(--gui-muted)}
.rr-settings-field{display:grid;gap:7px;margin:14px 0;font-size:13px}
.rr-settings-field input{width:100%;min-width:0;min-height:42px;padding:9px 10px;font:inherit;font-size:16px;border-radius:6px}
.rr-settings-radio{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}
.rr-settings-radio input{width:18px;height:18px;accent-color:var(--gui-primary)}
.rr-settings-actions,.rr-settings-child .rr-edit-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:22px}
.rr-settings-child .rr-edit-dialog-actions input,.rr-settings-child .rr-edit-dialog-actions button{margin:0}
.rr-settings-password table{width:100%;border-collapse:collapse;font-size:13px}
.rr-settings-password td{padding:6px 0;vertical-align:middle}
.rr-settings-password td:first-child{padding-right:12px}
.rr-settings-password input[type=password],.rr-settings-password input[type=text]{width:100%;min-width:0;min-height:42px;padding:9px 10px;font:inherit;font-size:16px;border-radius:6px}
@media(max-width:480px){
 .rr-settings-header{padding:16px}
 .rr-settings-content{padding:0 16px 6px}
 .rr-settings-table th{width:31%;padding-right:8px}
 .rr-settings-table td:last-child{padding-left:8px}
 .rr-settings-table{font-size:12px}
 body.rr-guided .rr-settings-dialog button{font-size:12px;padding:8px 10px}
 body.rr-guided .rr-settings-child{padding:20px 16px}
 .rr-settings-password table,.rr-settings-password tbody,.rr-settings-password tr,.rr-settings-password td{display:block;width:100%}
 .rr-settings-password td:first-child{padding:10px 0 0}
}

/* Shared busy indicator: exact existing brand artwork, scoped to its own markup. */
.rr-vocab-loading.rr-busy-loader{
  --rr-busy-mark:#1a60b2;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin:0;
  padding:12px 0;
  color:var(--gui-ink,#1e293b);
  text-align:start;
}
.rr-dark .rr-busy-loader,.rr-guts-dark .rr-busy-loader,[data-theme='dark'] .rr-busy-loader{
  --rr-busy-mark:#abd0ff;
  color:var(--gui-ink,#edf2fa);
}
.rr-busy-loader .rr-busy-loader__mark{
  display:block;
  flex:0 0 52px;
  width:52px;
  height:52px;
  animation:rrBusyMarkRotate 1.6s linear infinite;
  transform-origin:center;
}
.rr-busy-loader .rr-busy-loader__image{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.rr-busy-loader .rr-busy-loader__text{
  min-width:0;
  font-size:1rem;
  font-weight:600;
  line-height:1.5;
  overflow-wrap:anywhere;
}
/* The selected bird's original alpha preserves its geometry in both palettes.
   Browsers without CSS masks retain the exact original full-color image. */
@supports ((mask-image:url('')) or (-webkit-mask-image:url(''))){
  .rr-busy-loader .rr-busy-loader__mark--speed{
    background-color:var(--rr-busy-mark);
    -webkit-mask:url('/rr_img/speedreading-blue/bird-128.89e5976054b9.webp') center/contain no-repeat;
    mask:url('/rr_img/speedreading-blue/bird-128.89e5976054b9.webp') center/contain no-repeat;
  }
  .rr-busy-loader .rr-busy-loader__mark--speed .rr-busy-loader__image{visibility:hidden}
}
@keyframes rrBusyMarkRotate{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .rr-busy-loader .rr-busy-loader__mark{animation:none;transform:none}
}

/* RocketReader's chosen public palette: www/inc/marketing.css :root and dark.
   Scope the native mapping to this brand; semantic feedback/control contrast
   tokens retain their existing values. */
body.rr-guided[data-brand=rocketreader]{--gui-bg:#e8eef5;--gui-panel:#fff;--gui-chrome:#f7faff;--gui-canvas:#f1f6fc;--gui-answer:#f1f6fc;--gui-soft:#f1f6fc;--gui-ink:#17283b;--gui-muted:#455b70;--gui-line:#c8d5e3;--gui-primary:#075e96;--gui-on-primary:#fff;--rr-chrome-dark:var(--gui-bg);background:var(--gui-bg)!important;color:var(--gui-ink)!important}
body.rr-guided.rr-dark[data-brand=rocketreader]{--gui-bg:#253344;--gui-panel:#33455b;--gui-chrome:#29394c;--gui-canvas:#2b3c50;--gui-answer:#2b3c50;--gui-soft:#2b3c50;--gui-ink:#edf3fa;--gui-muted:#c7d4e2;--gui-line:#596f89;--gui-primary:#afd8ff;--gui-on-primary:#17283b}
body.rr-guided[data-brand=rocketreader] .rr-workspace-main{background:var(--gui-bg)!important}
/* These two legacy surfaces have their own ink declarations rather than inherit. */
body.rr-guided[data-brand=rocketreader] #guts,body.rr-guided[data-brand=rocketreader] .rr-login-card{color:var(--gui-ink)}

.rr-demo{margin:0;min-height:100%;height:auto!important;background:var(--gui-bg);color:var(--gui-ink);padding:12px;box-sizing:border-box}.rr-demo main{max-width:960px;margin:0 auto}.rr-demo h1{font-size:1.6rem;margin:.2em 0}.rr-demo-header{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;margin-bottom:12px}.rr-demo form{margin:0}.rr-demo #guts{position:static!important;min-width:0}.rr-demo .rr-demo-result{padding:20px;border:1px solid var(--gui-line);border-radius:12px}.rr-demo-start{padding:12px;margin-bottom:12px}.rr-demo [hidden]{display:none!important}.rr-demo .flash-ctrls{display:flex;flex-wrap:wrap}.rr-demo .choices-wrap{padding:0}.rr-demo #flash_tbl{max-width:100%;width:100%}.rr-demo-error{padding:16px;border:1px solid currentColor}

/* Keep native passage controls usable inside narrow public demo frames. */
@media(max-width:600px){
 .rr-demo table:has(>tbody>tr>td>#textCell){display:block;width:100%;max-width:100%;box-sizing:border-box}
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody,
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr,
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr>td{display:block;width:100%;box-sizing:border-box}
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr:has(#startBtn){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr:has(#startBtn)>td{width:auto;min-width:0;padding:0!important}
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr:has(#startBtn)>td:last-child{flex-basis:100%;width:100%}
 .rr-demo table:has(>tbody>tr>td>#textCell)>tbody>tr:has(#startBtn)>td>div{flex-wrap:wrap;min-width:0!important;max-width:100%;box-sizing:border-box}
 .rr-demo table:has(>tbody>tr>td>#s2_range),
 .rr-demo table:has(>tbody>tr>td>#s2_range)>tbody,
 .rr-demo table:has(>tbody>tr>td>#s2_range)>tbody>tr,
 .rr-demo table:has(>tbody>tr>td>#s2_range)>tbody>tr>td{display:block;width:100%;box-sizing:border-box}
 .rr-demo table:has(>tbody>tr>td>#s2_range)>tbody>tr>td{text-align:left}
 .rr-demo table:has(>tbody>tr>td>#sl_range){width:100%}
 .rr-demo #s2_range,.rr-demo #sl_range{width:100%!important;min-width:0;max-width:100%;box-sizing:border-box}
}
@media(max-width:600px){
 .rr-demo .rr-reader-tools{flex-wrap:wrap}
}
@media(max-width:360px){
 .rr-demo .rr-reader-settings{width:100%;max-width:100%}
 .rr-demo .rr-reader-settings-panel{width:100%;max-width:100%;box-sizing:border-box}
}
@media(max-width:360px){
 .rr-demo #rr_comp_header,.rr-demo #rr_comp_header>tbody{display:block;width:100%}
 .rr-demo #rr_comp_header>tbody>tr{display:flex;width:100%;flex-wrap:wrap;gap:12px;align-items:center}
 .rr-demo #rr_comp_header>tbody>tr>td{display:block;width:auto}
 .rr-demo #div_main select{display:block;max-width:100%;width:100%;box-sizing:border-box;margin-top:6px}
}

/* The anonymous Read shell uses document flow instead of the signed-in workspace's viewport/flex chain. */
body.rr-guided.rr-demo:has(.rr-reader-view){height:auto!important;min-height:0;overflow:visible}
body.rr-guided.rr-demo .rr-read-stage:has(.rr-reader-view),body.rr-guided.rr-demo .rr-reader-view{height:auto;min-height:0}
body.rr-guided.rr-demo .rr-reader-scroll{flex:none;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto}

/* Anonymous native Vocabulary/Memory: retain one usable question column on phones. */
.rr-demo .rr-demo-study .rr-question-body>p{text-align:left;max-width:70ch;margin-left:auto;margin-right:auto}
@media(max-width:600px){
 .rr-demo .rr-demo-question-layout{display:block;width:100%;padding:0!important}
 .rr-demo .rr-demo-question-layout>tbody{display:flex;flex-direction:column;gap:14px;width:100%}
 .rr-demo .rr-demo-question-layout>tbody>tr{display:contents}
 .rr-demo .rr-demo-question-layout>tbody>tr>td{display:none}
 .rr-demo .rr-demo-question-layout>tbody>tr:has(>td#action_col)>td:has(>span),
 .rr-demo .rr-demo-question-layout>tbody>tr:has(>td#action_col)>td:has(.flashcard){display:block;order:0;width:100%}
 .rr-demo .rr-demo-question-layout>tbody>tr>td:has(>.mc-wrap){display:block;order:1;width:100%}
 .rr-demo .rr-demo-question-layout>tbody>tr>td[bgcolor]{display:block;order:-1;padding:6px 10px;background:var(--gui-soft)!important;color:var(--gui-ink);border-radius:6px}
 .rr-demo .rr-demo-question-layout>tbody>tr>td#hintt{display:block;order:2;width:100%;padding:0!important;text-align:left}
 .rr-demo .rr-demo-question-layout>tbody>tr>td#action_col{display:block;order:3;width:100%;padding:0!important}
 .rr-demo .rr-demo-question-layout #qwrap{display:block!important;width:100%}
 .rr-demo .rr-demo-question-layout .flashcard{width:100%;padding-right:54px}
 .rr-demo .rr-demo-question-layout .mc-wrap{display:block!important;width:100%}
 .rr-demo .rr-demo-question-layout .mc-wrap>table{width:100%!important}
 .rr-demo .rr-demo-question-layout #mc_hint_cell{width:52px!important}
 .rr-demo .rr-demo-question-layout .rr-act-wrap{flex-direction:row;justify-content:flex-end;gap:10px;padding:0}
 .rr-demo .rr-demo-question-layout button.rr-act{width:auto}
}
/* The native Blur options dialog also fits inside a small public embed. */
@media(max-width:360px){
 .rr-demo .erode-modal{min-width:0;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}
 .rr-demo .erode-modal select,.rr-demo .erode-modal input[type=range]{max-width:100%}
}

/* Shared native Vocabulary and Memory exercises, including public samples. */
.rr-question{width:100%;max-width:900px;min-width:0;margin:0 0 20px;border:1px solid var(--gui-line);border-radius:14px;background:var(--gui-panel);color:var(--gui-ink);overflow-wrap:anywhere}
.rr-question *{box-sizing:border-box}
.rr-question-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--gui-line)}
.rr-question-heading{display:flex;align-items:center;gap:12px;min-width:0}
.rr-question-icon{display:flex;color:var(--gui-primary)}
.rr-question-icon .rr-gui-icon{width:25px;height:25px}
.rr-question-heading h2{font-size:18px;line-height:1.3;margin:0;color:var(--gui-ink)}
.rr-question-kind{display:block;font-size:12px;color:var(--gui-muted);margin-top:3px}
.rr-question-progress{display:grid;gap:6px;min-width:130px;font-size:12px;color:var(--gui-muted);text-align:right}
.rr-question-progress progress{width:100%;height:5px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:var(--gui-line);accent-color:var(--gui-primary)}
.rr-question-progress progress::-webkit-progress-bar{background:var(--gui-line)}
.rr-question-progress progress::-webkit-progress-value{background:var(--gui-primary)}
.rr-question-progress progress::-moz-progress-bar{background:var(--gui-primary)}
.rr-question-revision{padding:8px 22px;background:var(--gui-soft);color:var(--gui-primary);font-size:12px}
.rr-question-body{padding:24px 22px;min-width:0}
.rr-question #qwrap{display:block;min-width:0;width:100%}
.rr-question .rr-question-prompt{font-size:21px;line-height:1.45;font-weight:500;color:var(--gui-ink);text-align:left;margin:0 0 20px}
.rr-question img{max-width:100%;height:auto}
.rr-question .mc-opts{display:grid;gap:10px;width:100%}
.rr-question .rr-question-choice{min-width:0;border:1px solid var(--gui-control-line);border-radius:9px;background:var(--gui-answer);color:var(--gui-ink);overflow:hidden}
.rr-question .rr-question-choice>button{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:12px 15px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;line-height:1.45;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.rr-question .rr-question-choice:hover{border-color:var(--gui-primary);background:var(--gui-soft)}
.rr-question .rr-question-choice.mc-correct{background:var(--gui-good);color:var(--gui-ink)}
.rr-question .rr-question-choice.mc-wrong{background:var(--gui-bad);color:var(--gui-ink)}
.rr-question-option-key{display:inline-flex;align-items:center;justify-content:center;flex:none;width:27px;height:27px;border:1px solid currentColor;border-radius:6px;font-size:12px;opacity:.8}
.rr-question-hints{padding:12px 14px;margin-top:18px;border-left:3px solid var(--gui-primary);border-radius:0 6px 6px 0;background:var(--gui-soft);color:var(--gui-ink);font-size:14px;line-height:1.55}
.rr-question-hints:empty,.rr-question-feedback:empty{display:none}
.rr-question-feedback{font-size:14px;margin:12px 0 0;color:var(--gui-ink)}
.rr-question-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 18px;border-top:1px solid var(--gui-line)}
.rr-question .rr-act-wrap{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto;padding:0}
.rr-question button:not(.rr-question-choice>button){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 12px;border:1px solid var(--gui-control-line);border-radius:7px;background:var(--gui-panel);color:var(--gui-ink);font:inherit;font-size:13px;line-height:1.4;cursor:pointer;text-align:center}
.rr-question button:not(.rr-question-choice>button):hover{background:var(--gui-soft);border-color:var(--gui-primary)}
.rr-question button:focus-visible,.rr-question [tabindex]:focus-visible,.rr-question input:focus-visible{outline:3px solid var(--gui-primary);outline-offset:3px}
.rr-question #rr_reveal_btn{background:var(--gui-primary);color:var(--gui-on-primary);border-color:var(--gui-primary)}
.rr-question .flashcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;max-width:none;min-height:180px;margin:0;padding:24px;border:1px solid var(--gui-control-line);border-radius:10px;background:var(--gui-canvas);color:var(--gui-ink);font-size:23px;line-height:1.5;text-align:center}
.rr-question .flashcard[role=region]{display:block;text-align:left}
.rr-question .flashcard[role=button]{cursor:pointer}
.rr-question .flashcard.card3d{transform:perspective(700px) rotateY(0);transition:transform .2s ease;transform-style:preserve-3d}
.rr-question .flashcard.card3d.flip{transform:perspective(700px) rotateY(90deg)}
.rr-question-answer{font-size:23px;line-height:1.5}
.rr-question .rr-rate-shell{display:grid;gap:18px;width:100%;font-size:14px;line-height:1.5;text-align:left}
.rr-question .rr-rate-expl{padding-top:14px;border-top:1px solid var(--gui-line);color:var(--gui-muted)}
.rr-question .rr-rate{margin:0;padding:0;color:var(--gui-ink);font-size:14px}
.rr-question .rr-rate-head{font-size:14px;font-weight:600;margin-bottom:10px}
.rr-question .rr-rate-scale{display:grid;grid-template-columns:auto minmax(60px,1fr) auto;align-items:center;gap:12px}
.rr-question .rr-rate-scale input{width:100%;min-width:0;height:32px;margin:0;accent-color:var(--gui-primary);cursor:pointer}
.rr-question .rr-rate-min,.rr-question .rr-rate-max{font-size:12px;color:var(--gui-muted)}
.rr-question .rr-rate-tip{margin-top:8px;font-size:13px;font-weight:500;color:var(--gui-primary);text-align:center}
.rr-question .wo{display:inline-block;background:var(--gui-primary);color:transparent;border-radius:3px;padding:0 3px;margin:0 2px;line-height:1.2}
.rr-question .wo.reveal,.rr-question .wo:hover,.rr-question .wo:focus{background:transparent;color:inherit}
.rr-question .rr-match-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.rr-question .rr-match-columns ul{display:grid;align-content:start;gap:10px;min-width:0;margin:0;padding:0;list-style:none}
.rr-question .rr-match-columns li{min-width:0;min-height:48px;padding:12px;border:1px solid var(--gui-control-line);border-radius:8px;background:var(--gui-answer);color:var(--gui-ink);font-size:15px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.rr-question .dragbox{cursor:grab;touch-action:none}
.rr-question .rr-question-drop-hover,.rr-question .rr-question-selected,.rr-question .cls_selected{border-color:var(--gui-primary);background:var(--gui-soft)}
/* Completion state remains owned by the shared drag kernel. */
.rr-question .rr-match-columns .cls_completed{background:var(--gui-good);color:var(--gui-ink)}
.rr-question .ord-layout-wrap{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:24px;align-items:start}
.rr-question #ord_wrap{width:100%;min-width:0;overflow:visible}
.rr-question #ordList{position:relative;list-style:none;margin:0;padding:0 0 0 var(--ord-item-h,32px);overflow:visible}
.rr-question #ordList li.opt{display:block;margin:8px 0;padding:12px 14px;min-width:0;min-height:46px;border:1px solid var(--gui-control-line);border-radius:8px;background:var(--gui-answer);color:var(--gui-ink);cursor:grab;line-height:1.4;font-size:15px}
.rr-question #ordList li.opt:hover,.rr-question #ordList li.ord-hover,.rr-question #ordList .ord-dragging{background:var(--gui-soft);border-color:var(--gui-primary)}
.rr-question #ordList li.ord-spacer{height:calc(var(--ord-item-h,32px)/2);min-height:0;margin:0;padding:0;border:0;background:transparent;cursor:default}
.rr-question #ordList .ord-placeholder{height:3px;min-height:3px;padding:0;border:0;margin:10px 0;background:transparent;position:relative;overflow:visible;visibility:visible!important;z-index:2}
.rr-question #ordList .ui-sortable-placeholder{visibility:visible!important}
.rr-question #ordList .ord-drop-line{position:absolute;top:0;left:calc(-1 * var(--ord-item-h,32px) - 10px);height:3px;width:var(--ord-item-h,32px);border-radius:3px;background:var(--gui-primary)}
.rr-question #ordList .ord-drop-line:after{content:'';position:absolute;right:-9px;top:50%;transform:translateY(-50%);border-left:9px solid var(--gui-primary);border-top:6px solid transparent;border-bottom:6px solid transparent}
.rr-question #ord_side{min-width:0;text-align:center}
.rr-question .gauge-wrap{width:84px;height:84px;margin:0 auto 14px}
.rr-question .circle-progress-value{stroke:var(--gui-primary)}
.rr-question .circle-progress-circle{stroke:var(--gui-line)}
.rr-question .circle-progress-text{fill:var(--gui-ink);font-family:inherit}
.rr-question .rr-question-order-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.rr-question .ord-expl{font-size:14px;color:var(--gui-muted);margin:16px 0 0}
.rr-question-result{padding:22px}
.rr-question-result h2{font-size:20px;margin:0 0 16px}
.rr-question-result .rr-question-score{font-size:22px;line-height:1.5;margin:0}
@media(max-width:600px){.rr-question-header{align-items:flex-start;gap:14px;padding:16px;flex-wrap:wrap}.rr-question-progress{min-width:100%;text-align:left}.rr-question-body{padding:20px 16px}.rr-question .rr-question-prompt{font-size:19px}.rr-question .flashcard{min-height:160px;padding:18px;font-size:21px}.rr-question-actions{padding:12px;gap:8px}.rr-question .rr-act-wrap{gap:6px}.rr-question .rr-match-columns{gap:10px}.rr-question .rr-match-columns li{padding:10px 8px;font-size:14px}.rr-question .ord-layout-wrap{grid-template-columns:minmax(0,1fr);gap:16px}.rr-question #ord_side{display:flex;align-items:center;flex-wrap:wrap;gap:12px;text-align:left}.rr-question .gauge-wrap{flex:none;margin:0;width:70px;height:70px}.rr-question #ord_hint_slot{width:100%}.rr-question .rr-rate-scale{gap:8px}.rr-question-result{padding:18px}}
@media(prefers-reduced-motion:reduce){.rr-question .flashcard.card3d{transition:none}}

/* Native Matching keeps its drop/scoring kernel and exposes its interaction states. */
.rr-question .rr-match-instructions{margin:0 0 16px;color:var(--gui-muted);font-size:14px;line-height:1.5;text-align:left}
.rr-question .rr-match-columns li{width:100%;margin:0;box-sizing:border-box}
.rr-question .rr-match-columns .rr-match-source-active{outline:2px solid var(--gui-primary);outline-offset:2px}
.rr-question .rr-match-columns .rr-match-eligible{background:var(--gui-canvas);border-color:var(--gui-primary);border-style:dashed}
.rr-question .rr-match-columns .rr-question-drop-hover{background:var(--gui-soft);border-color:var(--gui-primary);border-style:solid;outline:2px solid var(--gui-primary);outline-offset:1px}
.rr-question .rr-match-columns .rr-question-selected,.rr-question .rr-match-columns .cls_selected{background:var(--gui-soft);border-color:var(--gui-primary);outline:2px solid var(--gui-primary);outline-offset:1px}
.rr-question .rr-match-columns .rr-match-hint{background:var(--gui-soft);border-color:var(--gui-primary);border-style:dashed;box-shadow:inset 4px 0 var(--gui-primary)}
.rr-question .rr-match-columns .cls_draggable.rr-match-helper{background:var(--gui-primary)!important;color:var(--gui-on-primary)!important;border-color:var(--gui-primary)!important;border-style:solid;box-shadow:0 4px 16px color-mix(in srgb,var(--gui-ink) 18%,transparent);pointer-events:none}
.rr-question .rr-match-columns .cls_completed{background:var(--gui-good)!important;color:var(--gui-ink)!important;border-color:var(--gui-control-line)!important;border-style:solid;cursor:default}
.rr-question .rr-match-columns .cls_mismatch{background:var(--gui-bad)!important;color:var(--gui-ink)!important;border-color:var(--gui-control-line)!important;border-style:solid}

/* Shared native Speed presentation. Pacing, selections and submissions stay native. */
body.rr-guided .rr-speed-layout{width:100%;table-layout:fixed;border-collapse:collapse}
body.rr-guided .rr-speed-layout>tbody>tr>td{padding:0;min-width:0}
body.rr-guided .rr-speed-training{width:100%;min-width:0;border:1px solid var(--gui-line);border-radius:16px;background:var(--gui-panel);color:var(--gui-ink);overflow:visible}
body.rr-guided .rr-speed-heading{padding:20px 24px 18px;border-bottom:1px solid var(--gui-line)}
body.rr-guided .rr-speed-overline{margin:0 0 7px;color:var(--gui-primary);font-size:11px;line-height:1.4;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
body.rr-guided .rr-speed-heading h2{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:19px;line-height:1.35;letter-spacing:-.25px;overflow-wrap:anywhere}
body.rr-guided .rr-speed-heading .rr-gui-icon{margin-top:2px;width:22px;height:22px;color:var(--gui-primary)}
body.rr-guided .rr-speed-canvas{min-width:0;padding:24px;background:var(--gui-canvas)}
body.rr-guided .rr-speed-text{display:flex;align-items:center;justify-content:center;min-height:156px;padding:28px 20px;text-align:center;line-height:1.5;overflow-wrap:anywhere;color:var(--gui-ink);background:var(--gui-panel);border:1px solid var(--gui-line);border-radius:12px}
body.rr-guided .rr-speed-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:20px 24px 14px;border-top:1px solid var(--gui-line)}
body.rr-guided .rr-speed-setting{min-width:0}
body.rr-guided .rr-speed-setting-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:14px;line-height:1.5}
body.rr-guided .rr-speed-setting-heading label{font-weight:600;color:var(--gui-ink);text-transform:capitalize}
body.rr-guided .rr-speed-value{display:inline-flex;align-items:baseline;gap:5px;color:var(--gui-primary);font-size:14px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
body.rr-guided .rr-speed-value strong{font-size:21px;font-weight:650;line-height:1.25;letter-spacing:-.4px}
body.rr-guided .rr-speed-value span{color:var(--gui-muted);font-size:11px;font-weight:600;letter-spacing:.025em}
body.rr-guided .rr-speed-range-ends{display:flex;justify-content:space-between;color:var(--gui-muted);font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
body.rr-guided :is(.rr-speed-training,.rr-speed-options) input[type=range]{display:block;width:100%;min-width:0;height:44px;margin:0;accent-color:var(--gui-primary);cursor:pointer;background:transparent;touch-action:pan-y}
body.rr-guided .rr-speed-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 24px 20px}
body.rr-guided :is(.rr-speed-playback,.rr-speed-tools){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.rr-guided :is(.rr-speed-training,.rr-speed-options) :is(button,input[type=button]){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;margin:0;padding:10px 16px;border:1px solid var(--gui-control-line);border-radius:8px;color:var(--gui-ink);background:var(--gui-panel);font:600 14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer;white-space:normal;text-align:center;text-decoration:none;box-shadow:none}
body.rr-guided :is(.rr-speed-training,.rr-speed-options) :is(button,input[type=button]):hover{background:var(--gui-soft);border-color:var(--gui-primary);color:var(--gui-ink)}
body.rr-guided :is(.rr-speed-training input,.rr-speed-options button).rr-speed-primary{background:var(--gui-primary);border-color:var(--gui-primary);color:var(--gui-on-primary);min-width:104px}
body.rr-guided :is(.rr-speed-training input,.rr-speed-options button).rr-speed-primary:hover{background:var(--gui-primary);border-color:var(--gui-ink);color:var(--gui-on-primary)}
body.rr-guided :is(.rr-speed-training,.rr-speed-options) :is(button,input[type=button]):disabled{opacity:.55;cursor:wait}
body.rr-guided .rr-speed-tools .rr-gui-icon{width:18px;height:18px}
body.rr-guided .rr-speed-options{position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:24px;background:rgb(0 0 0 / .5);overscroll-behavior:contain}
body.rr-guided .rr-speed-dialog{width:100%;max-width:480px;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:var(--gui-panel);color:var(--gui-ink);border:1px solid var(--gui-control-line);border-radius:16px;box-shadow:0 20px 60px rgb(0 0 0 / .25);overflow:auto}
body.rr-guided .rr-speed-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--gui-line)}
body.rr-guided .rr-speed-dialog-heading h3{display:flex;gap:10px;align-items:center;margin:0;font-size:18px;line-height:1.4}
body.rr-guided .rr-speed-dialog-heading h3>.rr-gui-icon{color:var(--gui-primary)}
body.rr-guided .rr-speed-options .rr-speed-close{flex:none;width:44px;min-width:44px;padding:10px;border-color:transparent;background:transparent}
body.rr-guided .rr-speed-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body.rr-guided .rr-speed-dialog-body{padding:4px 20px 20px}
body.rr-guided .rr-speed-option-row{padding:16px 0 8px;min-width:0}
body.rr-guided .rr-speed-option-row:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.rr-guided .rr-speed-option-row>label{font-size:14px;line-height:1.5;font-weight:600;text-transform:capitalize}
body.rr-guided .rr-speed-option-row output{color:var(--gui-primary);font-weight:650;font-variant-numeric:tabular-nums}
body.rr-guided .rr-speed-number-wrap{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--gui-muted)}
body.rr-guided .rr-speed-number-wrap input{width:78px;min-height:44px;padding:9px 10px;color:var(--gui-ink);background:var(--gui-answer);border:1px solid var(--gui-control-line);border-radius:7px;text-align:right;font:inherit;font-variant-numeric:tabular-nums}
body.rr-guided .rr-speed-preview{display:flex;align-items:center;justify-content:center;min-width:0;min-height:86px;margin-top:12px;padding:16px;border:1px dashed var(--gui-control-line);border-radius:10px;background:var(--gui-canvas);color:var(--gui-ink);overflow-wrap:anywhere}
body.rr-guided .rr-speed-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--gui-line)}
@media(max-width:560px){body.rr-guided .rr-speed-heading{padding:16px}body.rr-guided .rr-speed-heading h2{font-size:18px}body.rr-guided .rr-speed-canvas{padding:16px}body.rr-guided .rr-speed-text{min-height:142px;padding:22px 12px}body.rr-guided .rr-speed-settings{gap:16px;padding:16px 16px 8px}body.rr-guided .rr-speed-actions{padding:16px;gap:12px}body.rr-guided .rr-speed-tools{margin-left:auto}body.rr-guided .rr-speed-options{padding:12px}body.rr-guided .rr-speed-dialog{max-height:calc(100dvh - 24px)}body.rr-guided .rr-speed-dialog-heading{padding:12px 16px}body.rr-guided .rr-speed-dialog-body{padding:0 16px 16px}body.rr-guided .rr-speed-dialog-actions{padding:12px 16px}}
@media(max-width:480px){body.rr-guided .rr-speed-settings{grid-template-columns:minmax(0,1fr);gap:12px}body.rr-guided .rr-speed-setting-heading{margin-bottom:4px}body.rr-guided .rr-speed-range-ends{display:none}body.rr-guided .rr-speed-tools{margin-left:0}body.rr-guided .rr-speed-actions{display:grid}body.rr-guided .rr-speed-playback{display:grid;grid-template-columns:1fr 1fr}body.rr-guided .rr-speed-tools{display:grid;grid-template-columns:minmax(0,1fr) 44px}body.rr-guided .rr-speed-tools #rr_reader_open{width:44px;padding:10px}body.rr-guided .rr-speed-primary{min-width:0}}
@media(prefers-reduced-motion:reduce){body.rr-guided :is(.rr-speed-training,.rr-speed-options) *{scroll-behavior:auto}}
/* The native progress node still receives state updates; the card owns its display. */
body.rr-guided:has(.rr-speed-training) #topNumb{display:none}

/* Shared comprehension fields: preserve native selects and normal inline blanks. */
.rr-comprehension-surface{box-sizing:border-box;padding:4px}
.rr-comprehension-surface .rr-comprehension-select{box-sizing:border-box;max-width:100%;min-width:0;min-height:44px;margin:2px 0;padding:9px 12px;border:1px solid var(--gui-control-line,currentColor);border-radius:8px;background:var(--gui-canvas,Canvas);color:var(--gui-ink,CanvasText);font:inherit;font-size:max(1em,16px);line-height:1.4;vertical-align:middle;appearance:auto;color-scheme:inherit}
.rr-comprehension-surface .rr-comprehension-select option{background:var(--gui-panel,Canvas);color:var(--gui-ink,CanvasText)}
.rr-comprehension-surface .rr-comprehension-select:focus-visible{outline:2px solid var(--gui-primary,Highlight);outline-offset:2px;box-shadow:0 0 0 3px var(--gui-soft,Canvas)}
.rr-comprehension-surface .rr-comprehension-select:disabled{opacity:.65;cursor:not-allowed}
/* Keep the sample directory beside the normal Read chooser, outside active reading/quiz. */
.rr-reading-samples-link a{display:inline-flex;align-items:center;gap:6px;min-height:36px;color:var(--gui-primary,LinkText);text-underline-offset:.18em}
body.rr-guided:has(#rr_comp_header) .rr-reading-samples-link{display:none}

body.rr-guided #rr_comp_header .comp-count{color:var(--gui-ink,CanvasText)}

/* Shared Groups presentation; native chunking, timing and controls remain intact. */
body.rr-guided .rr-group-layout{width:100%;table-layout:fixed;border-collapse:collapse}
body.rr-guided .rr-group-layout>tbody>tr>td{padding:0;min-width:0}
body.rr-guided .rr-group-training{width:100%;min-width:0;background:var(--gui-panel);color:var(--gui-ink);border:1px solid var(--gui-line);border-radius:16px;overflow:hidden}
body.rr-guided .rr-group-heading{padding:20px 24px 18px;border-bottom:1px solid var(--gui-line);text-align:left}
body.rr-guided .rr-group-overline{margin:0 0 7px;color:var(--gui-primary);font-size:11px;line-height:1.4;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
body.rr-guided .rr-group-heading h2{margin:0;font-size:19px;line-height:1.35;letter-spacing:-.25px}
body.rr-guided .rr-group-guidance{margin:7px 0 0;max-width:65ch;color:var(--gui-muted);font-size:13px;line-height:1.6}
body.rr-guided .rr-group-canvas{min-width:0;padding:20px 24px;background:var(--gui-canvas)}
body.rr-guided .rr-group-text{box-sizing:border-box;width:100%;height:clamp(220px,42vh,420px);min-height:0;margin:0;padding:18px;color:var(--gui-ink);background:var(--gui-panel);border:1px solid var(--gui-line);border-radius:10px;overflow:auto;text-align:left;overscroll-behavior:auto}
body.rr-guided .rr-group-text :is(.groupTxtDark,.groupTxtDarkLeft,.groupTxtDarkRight,.groupTxtDarkLeftRight){background:var(--gui-line);color:var(--gui-line)}
body.rr-guided .rr-group-text .groupTxtSpace{background:var(--gui-control-line)}
body.rr-guided .rr-group-text :is(.groupTxtLight,.groupTxtLight2){background:transparent;color:var(--gui-ink)}
body.rr-guided .rr-group-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 24px 20px;border-top:1px solid var(--gui-line)}
body.rr-guided .rr-group-playback{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
body.rr-guided .rr-group-training :is(button,input[type=button]){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;margin:0;padding:10px 14px;border:1px solid var(--gui-control-line);border-radius:8px;background:var(--gui-panel)!important;color:var(--gui-ink)!important;font:600 14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer;text-align:center;white-space:normal;box-shadow:none}
body.rr-guided .rr-group-training :is(button,input[type=button]):hover{background:var(--gui-soft)!important;border-color:var(--gui-primary)}
body.rr-guided .rr-group-training input.rr-group-primary{min-width:94px;background:var(--gui-primary)!important;border-color:var(--gui-primary);color:var(--gui-on-primary)!important}
body.rr-guided .rr-group-training input.rr-group-primary:hover{background:var(--gui-primary)!important;border-color:var(--gui-ink)}
body.rr-guided .rr-group-training #rr_reader_open{width:44px;min-width:44px;padding:10px}
body.rr-guided .rr-group-training :is(button,input, [tabindex]):focus-visible{outline:2px solid var(--gui-primary);outline-offset:3px}
body.rr-guided .rr-group-size{flex:1 1 180px;min-width:0;max-width:280px}
body.rr-guided .rr-group-size-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5}
body.rr-guided .rr-group-size-heading label{font-weight:600;color:var(--gui-ink)}
body.rr-guided .rr-group-size-heading .group-slider-current{font-size:12px;font-weight:650;color:var(--gui-primary)}
body.rr-guided .rr-group-size input[type=range]{display:block;box-sizing:border-box;width:100%;min-width:0;height:44px;margin:0;background:transparent;accent-color:var(--gui-primary);cursor:pointer;touch-action:pan-y}
@media(max-width:560px){body.rr-guided .rr-group-heading{padding:16px}body.rr-guided .rr-group-heading h2{font-size:18px}body.rr-guided .rr-group-canvas{padding:16px}body.rr-guided .rr-group-text{padding:14px;height:clamp(200px,40vh,340px)}body.rr-guided .rr-group-actions{display:grid;gap:16px;padding:16px}body.rr-guided .rr-group-playback{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}body.rr-guided .rr-group-playback button:not(#rr_reader_open){padding:10px 6px;gap:4px}body.rr-guided .rr-group-training input.rr-group-primary{grid-column:1/-1;width:100%;min-width:0}body.rr-guided .rr-group-size{max-width:none;width:100%}}
@media(prefers-reduced-motion:reduce){body.rr-guided .rr-group-training *{scroll-behavior:auto}}

/* Native Flash cue phases: original alpha reticle + tutorial perimeter marks. */
body.rr-guided .flash-wrap{--rr-flash-blue:var(--gui-primary);--rr-flash-red:#b3261e}
body.rr-guided.rr-dark .flash-wrap{--rr-flash-red:#ffb4ab}
body.rr-guided .rr-flash-cue{position:absolute;inset:0;pointer-events:none;color:var(--rr-flash-blue);--rr-flash-guide-length:10px}
body.rr-guided .rr-flash-cue--red{color:var(--rr-flash-red);--rr-flash-guide-length:20px}
body.rr-guided .rr-flash-guide{position:absolute;display:block;background:currentColor;border-radius:6px}
body.rr-guided .rr-flash-guide--top,body.rr-guided .rr-flash-guide--bottom{left:50%;transform:translateX(-50%);width:6px;height:var(--rr-flash-guide-length)}
body.rr-guided .rr-flash-guide--top{top:0}
body.rr-guided .rr-flash-guide--bottom{bottom:0}
body.rr-guided .rr-flash-guide--left,body.rr-guided .rr-flash-guide--right{top:50%;transform:translateY(-50%);width:var(--rr-flash-guide-length);height:6px}
body.rr-guided .rr-flash-guide--left{left:0}
body.rr-guided .rr-flash-guide--right{right:0}
body.rr-guided .rr-flash-reticle{position:absolute;display:block;left:50%;top:50%;transform:translate(-50%,-50%);width:100px;height:97px;max-width:60%;max-height:60%}
body.rr-guided .rr-flash-reticle-fallback{display:block;width:100%;height:100%}
@supports (mask-image:url('/rr_img/crosshairs_A_lightmode.png')) or (-webkit-mask-image:url('/rr_img/crosshairs_A_lightmode.png')){
 body.rr-guided .rr-flash-reticle{background:currentColor;-webkit-mask:url('/rr_img/crosshairs_A_lightmode.png') center/contain no-repeat;mask:url('/rr_img/crosshairs_A_lightmode.png') center/contain no-repeat;mask-mode:alpha}
 body.rr-guided .rr-flash-cue--red .rr-flash-reticle{-webkit-mask-image:url('/rr_img/crosshairs_B_lightmode.png');mask-image:url('/rr_img/crosshairs_B_lightmode.png')}
 body.rr-guided .rr-flash-reticle-fallback{display:none}
}

/* A compact, shared view of the native Flash session's existing level history. */
body.rr-guided .flash-wrap #flash_level_chart_wrap,body.rr-guided .flash-wrap #flash_tbl{width:100%;max-width:520px;margin-left:auto;margin-right:auto}
body.rr-guided .flash-wrap .rr-flash-history{margin-top:0;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--gui-line);color:var(--gui-muted)}
body.rr-guided .rr-flash-history-title{font-size:12px;font-weight:600;line-height:1.5;margin-bottom:2px}
body.rr-guided .rr-flash-history #flash_level_chart{display:block;width:100%;height:52px;overflow:hidden}
body.rr-guided .rr-flash-history-line{fill:none;stroke:var(--gui-primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.rr-guided .rr-flash-history-dot{fill:var(--gui-panel);stroke:var(--gui-primary);stroke-width:1.5}
body.rr-guided .rr-flash-history-dot--now{fill:var(--gui-primary);stroke:var(--gui-primary)}
body.rr-guided .rr-flash-history-axis{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
body.rr-guided .rr-flash-history-axis>span:last-child{text-align:right}
body.rr-guided .rr-flash-history-axis strong{font-weight:600;color:var(--gui-ink)}
@media(max-width:380px){body.rr-guided .flash-wrap .rr-flash-history{margin-bottom:12px;padding-bottom:10px}}

/* Native Flash Options: keep the five radios, immediate speed save and preview. */
body.rr-guided #flash_opts_modal.rr-flash-options{box-sizing:border-box;padding:16px;background:rgb(0 0 0 / .5);overscroll-behavior:contain}
body.rr-guided #flash_opts_modal .flash-opts-modal{box-sizing:border-box;width:100%;max-width:440px;max-height:calc(100dvh - 32px);min-width:0;overflow:auto;padding:0;border:1px solid var(--gui-control-line);border-radius:16px;background:var(--gui-panel);color:var(--gui-ink);text-align:left;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 20px 60px rgb(0 0 0 / .25)}
body.rr-guided #flash_opts_modal .flash-opts-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--gui-line)}
body.rr-guided #flash_opts_modal .flash-opts-title{margin:0;color:var(--gui-ink);font-size:18px;font-weight:650;line-height:1.4}
body.rr-guided #flash_opts_modal .flash-opts-speed{min-width:0;margin:0;padding:18px 18px 0;border:0}
body.rr-guided #flash_opts_modal .flash-opts-speed-title{float:none;position:static;width:auto;height:auto;margin:0 0 10px;padding:0;border:0;border-radius:0;background:transparent;text-align:left;box-shadow:none;color:var(--gui-ink);font-size:13px;font-weight:650;line-height:1.5}
body.rr-guided #flash_opts_modal .flash-speed-grid{clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.rr-guided #flash_opts_modal .flash-speed-option{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:7px;width:auto;min-width:0;min-height:44px;margin:0;padding:10px 9px;border:1px solid var(--gui-control-line);border-radius:8px;background:var(--gui-canvas);color:var(--gui-ink);font-size:13px;font-weight:600;line-height:1.4;text-align:left;cursor:pointer;transition:none;box-shadow:none}
body.rr-guided #flash_opts_modal .flash-speed-option span{min-width:0;overflow-wrap:anywhere}
body.rr-guided #flash_opts_modal .flash-speed-option:hover{background:var(--gui-soft);border-color:var(--gui-primary);box-shadow:none}
body.rr-guided #flash_opts_modal .flash-speed-option.is-selected,body.rr-guided #flash_opts_modal .flash-speed-option:has(input:checked){background:var(--gui-soft);border-color:var(--gui-primary);box-shadow:inset 0 0 0 1px var(--gui-primary)}
body.rr-guided #flash_opts_modal .flash-speed-option input{box-sizing:border-box;flex:none;position:static;opacity:1;pointer-events:auto;width:16px;height:16px;min-width:16px;min-height:0;margin:0;padding:0;accent-color:var(--gui-primary);appearance:auto}
body.rr-guided #flash_opts_modal .flash-speed-option:focus-within{outline:2px solid var(--gui-primary);outline-offset:2px}
body.rr-guided #flash_opts_modal .flash-opts-preview-label{margin:18px 18px 8px;font-size:13px;font-weight:650;color:var(--gui-ink)}
body.rr-guided #flash_opts_modal .flash-opts-preview{box-sizing:border-box;min-width:0;min-height:86px;margin:0 18px 18px;padding:16px;border:1px dashed var(--gui-control-line);border-radius:10px;background:var(--gui-canvas);color:var(--gui-ink)}
body.rr-guided #flash_opts_modal #demo_cell{max-width:100%;overflow-wrap:anywhere;color:var(--gui-ink)}
body.rr-guided #flash_opts_modal button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:0;width:auto;max-width:100%;height:auto;margin:0;padding:10px 16px;border:1px solid var(--gui-control-line);border-radius:8px;background:var(--gui-panel);color:var(--gui-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;box-shadow:none}
body.rr-guided #flash_opts_modal .flash-opts-close{flex:none;width:44px;padding:10px;border-color:transparent;background:transparent}
body.rr-guided #flash_opts_modal .flash-opts-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body.rr-guided #flash_opts_modal button:focus-visible{outline:2px solid var(--gui-primary);outline-offset:2px}
@media(max-width:420px){body.rr-guided #flash_opts_modal.rr-flash-options{padding:12px}body.rr-guided #flash_opts_modal .flash-opts-modal{max-height:calc(100dvh - 24px)}body.rr-guided #flash_opts_modal .flash-speed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.rr-guided #flash_opts_modal .flash-opts-header{padding:12px 16px}body.rr-guided #flash_opts_modal .flash-opts-speed{padding:16px 16px 0}body.rr-guided #flash_opts_modal .flash-speed-option{padding:10px 8px;gap:6px}body.rr-guided #flash_opts_modal .flash-opts-preview-label{margin-left:16px;margin-right:16px}body.rr-guided #flash_opts_modal .flash-opts-preview{margin-left:16px;margin-right:16px}}

/* Reserve a normal-flow correction row outside the fixed Flash word rectangle. */
body.rr-guided .rr-flash-feedback{box-sizing:border-box;width:520px;max-width:100%;min-height:28px;max-height:calc(2.8em + 8px);margin:0 auto;padding:4px 0;overflow:auto;color:var(--rr-flash-red,#b3261e);font-size:13px;font-weight:600;line-height:1.4;text-align:left}
body.rr-guided .rr-flash-feedback-caption{display:flex;align-items:center;gap:6px;min-width:0;visibility:hidden}
body.rr-guided .rr-flash-feedback.is-correction .rr-flash-feedback-caption{visibility:visible}
body.rr-guided .rr-flash-feedback-caption svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
body.rr-guided .rr-flash-feedback-caption>span{min-width:0;overflow-wrap:anywhere}

/* Shared exercise summaries and feedback; calculations/actions stay with each engine. */
body.rr-guided .rr-exercise-feedback{display:block;width:100%;max-width:760px;min-width:0;margin:0 0 20px;padding:0;border:1px solid var(--gui-line);border-radius:14px;background:var(--gui-panel);color:var(--gui-ink);text-align:left;overflow-wrap:anywhere}
.rr-exercise-feedback-header{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:14px;padding:22px 24px}
.rr-exercise-feedback-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:var(--gui-soft);color:var(--gui-primary)}
.rr-exercise-feedback-icon .rr-gui-icon{width:25px;height:25px}
.rr-exercise-feedback-mode{display:block;margin:0 0 4px;color:var(--gui-muted);font-size:12px;line-height:1.4}
body.rr-guided .rr-exercise-feedback h2{margin:0;color:var(--gui-ink);font:inherit;font-size:23px;font-weight:650;line-height:1.25}
.rr-exercise-feedback-summary{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,1.3fr);align-items:center;gap:24px;padding:0 24px 22px}
.rr-exercise-feedback-score{display:grid;gap:5px;min-width:0}
.rr-exercise-feedback-score-value{display:block;color:var(--gui-ink);font-size:44px;font-weight:650;line-height:1.1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.rr-exercise-feedback-score-label{color:var(--gui-muted);font-size:13px;line-height:1.4}
.rr-exercise-feedback-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0 0 0 24px;border-left:1px solid var(--gui-line)}
.rr-exercise-feedback-stats div{min-width:0}
.rr-exercise-feedback-stats dt{margin:0 0 5px;color:var(--gui-muted);font-size:13px;line-height:1.4}
.rr-exercise-feedback-stats dd{margin:0;color:var(--gui-ink);font-size:28px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}
body.rr-guided .rr-exercise-feedback-note{margin:0;padding:0 24px 20px;color:var(--gui-muted);font-size:14px;line-height:1.55}
.rr-exercise-feedback-note:empty{display:none}
.rr-exercise-feedback-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid var(--gui-line);border-radius:0 0 14px 14px;background:var(--gui-chrome)}
body.rr-guided .rr-exercise-feedback-actions :is(a,button,input[type=button],input[type=submit]){display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;margin:0;padding:10px 16px;border:1px solid var(--gui-primary);border-radius:8px;background:var(--gui-primary);color:var(--gui-on-primary);font:inherit;font-size:14px;font-weight:600;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;cursor:pointer}
body.rr-guided .rr-exercise-feedback-actions .rr-feedback-secondary{border-color:var(--gui-control-line);background:var(--gui-panel);color:var(--gui-ink)}
.rr-exercise-feedback-actions :disabled{opacity:.55;cursor:default}
.rr-exercise-feedback :focus-visible{outline:3px solid var(--gui-primary);outline-offset:3px}
body.rr-guided .rr-question-feedback:not(:empty),body.rr-guided .rr-exercise-feedback-status:not(:empty){margin:14px 0 0;padding:10px 12px;border:1px solid var(--gui-line);border-radius:8px;background:var(--gui-soft);color:var(--gui-ink);font-size:14px;line-height:1.5}
body.rr-guided :is(.rr-question-feedback,.rr-exercise-feedback-status)[data-feedback=correct]{background:var(--gui-good);color:var(--gui-ink)}
body.rr-guided :is(.rr-question-feedback,.rr-exercise-feedback-status)[data-feedback=retry]{background:var(--gui-bad);color:var(--gui-ink)}
@media(max-width:480px){.rr-exercise-feedback-header{gap:12px;padding:18px}.rr-exercise-feedback-summary{grid-template-columns:minmax(0,1fr);gap:18px;padding:0 18px 18px}.rr-exercise-feedback-score-value{font-size:40px}.rr-exercise-feedback-stats{gap:16px;padding:16px 0 0;border-left:0;border-top:1px solid var(--gui-line)}body.rr-guided .rr-exercise-feedback-note{padding:0 18px 18px}.rr-exercise-feedback-actions{padding:14px 18px}.rr-exercise-feedback-actions>:is(a,button,input){width:100%}}
