/* Four readable controls, including on 320px phones. */
html body #s3-flash-hub .s3f-hero h1{color:#152b42!important;background:#ffffffed!important;border:1px solid #e3e8e7!important;border-radius:12px!important;padding:10px 16px!important;opacity:1!important;filter:none!important;text-shadow:none!important;line-height:1.3!important}
html body #s3-vocabulary .sv-hero{background:#ffffffed!important;border:1px solid #e3e8e7!important;border-radius:12px!important;padding:10px 14px!important}
html body #s3-vocabulary .sv-hero :is(h1,p){color:#152b42!important;opacity:1!important;text-shadow:none!important}
html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs){flex-wrap:wrap!important}
html body #s3-flash-hub .s3f-modes>a{font-size:16px!important;padding:12px 16px!important;line-height:1.35!important}
html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs,#rune-dual .rq-mode-tabs) .sj-mode-short{display:none!important}
html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs,#rune-dual .rq-mode-tabs)>a>span{font-size:inherit!important;line-height:inherit!important}
html body #s3-vocabulary .sv-tabs .sv-audio-sources{display:none!important}
html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs) a.s3-auto-read-tab{background:#078166!important;border:1px solid #056950!important;color:#fff!important;border-radius:12px;font-weight:650!important;text-decoration:none!important;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;line-height:1.35;box-shadow:0 3px 0 #05695028}
html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs) a.s3-auto-read-tab:hover{background:#066c56!important}
html body #s3-flash-hub .s3f-hero{gap:16px;flex-wrap:wrap}
html body #s3-flash-hub .s3f-hero h1{font-size:clamp(21px,2.2vw,30px)!important}
#s3-auto-read{max-width:1040px;margin:18px auto 40px;color:#152b42;font:400 17px/1.6 'Segoe UI',sans-serif}
#s3-auto-read *{box-sizing:border-box}
#s3-auto-read .sar-panel{border:1px solid #c7e4d9;border-radius:20px;padding:28px;background:#fff;box-shadow:0 6px 24px #163f2510}
#s3-auto-read h2{font-size:24px!important;color:#152b42!important;margin:0 0 6px!important;line-height:1.4!important}
#s3-auto-read .sar-intro{margin:0 0 20px;color:#465c70}
#s3-auto-read .sar-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
#s3-auto-read label{display:block;color:#152b42;font-size:16px;font-weight:600;margin:0}
#s3-auto-read :is(select,input[type=number]){display:block;width:100%;height:48px;margin-top:5px;padding:9px 12px;border:1px solid #b9cbd3;border-radius:10px;background:#fff;color:#152b42;font:400 17px/1.4 'Segoe UI',sans-serif}
#s3-auto-read .sar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}
#s3-auto-read button{border:1px solid #078166;border-radius:12px;background:#078166;color:#fff;font:600 17px/1.4 'Segoe UI',sans-serif;padding:12px 20px;min-height:48px;cursor:pointer}
#s3-auto-read #sar-stop{background:#fff;color:#152b42;border-color:#b9cbd3}
#s3-auto-read button:disabled{opacity:.55;cursor:default}
#s3-auto-read .sar-repeat{display:flex;align-items:center;gap:8px}
#s3-auto-read .sar-repeat input{width:20px;height:20px;accent-color:#078166}
#s3-auto-read :is(button,select,input):focus-visible{outline:3px solid #12b9c8;outline-offset:3px}
#s3-auto-read #sar-voice-status{padding:12px 16px;background:#eef8ff;border-radius:10px;color:#234b68;margin-bottom:10px;font-size:15px}
#s3-auto-read #sar-voice-status[data-available=false]{background:#fff6dc;color:#66500e}
#s3-auto-read #sar-status{font-size:15px;min-height:24px;color:#465c70;margin:10px 0}
#s3-auto-read .sar-card{text-align:center;background:#effaf5;border:1px solid #b9e3d0;border-radius:16px;padding:22px 18px;margin-top:18px;overflow-wrap:anywhere}
#s3-auto-read #sar-word{font:600 clamp(28px,4vw,42px)/1.9 'Yu Gothic','Meiryo',sans-serif;margin:20px 0 8px;color:#152b42}
#s3-auto-read #sar-word :not(rt):not(rp){font-size:inherit!important;line-height:inherit!important;color:inherit!important;font-family:inherit!important;margin:0!important;font-weight:inherit!important}
#s3-auto-read #sar-word rt{font-size:.5em;font-weight:500}
#s3-auto-read #sar-meaning{font-size:clamp(21px,2.5vw,26px);color:#d30016;white-space:pre-line;margin:8px 0 20px}
#s3-auto-read :is(#sar-position,#sar-phase){font-size:15px;color:#176347}
#s3-auto-read #sar-progress{display:block;width:100%;height:10px;accent-color:#078166;margin-top:18px}
#s3-auto-read .sar-note{font-size:14px;color:#465c70;margin:18px 0 0}
#s3-auto-read .sar-note:empty{display:none}
#s3-auto-read .sar-voice-settings{margin-top:20px;border:1px solid #cbd9df;border-radius:12px;background:#fff}
#s3-auto-read .sar-voice-settings summary{padding:14px 16px;font-size:16px;font-weight:600;color:#152b42;cursor:pointer}
#s3-auto-read .sar-voice-settings .sar-settings{padding:0 16px 16px;margin:6px 0 0}
body.s3-auto-read-page #region-main>.moremenu{display:none!important}
html body #s3-vocabulary:has(+ #s3-auto-read){margin-bottom:0}
html body.s3-auto-read-page #s3-vocabulary .sv-tabs a.s3-auto-read-tab[aria-current]{background:#078166!important;color:#fff!important;border-color:#056950!important}
html body #rune-dual .rq-mode-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html body #rune-dual .rq-mode-tabs .s3-auto-read-tab{display:inline-flex!important;align-items:center;justify-content:center;background:#078166!important;color:#fff!important;border:1px solid #056950!important;border-radius:10px;padding:10px 14px;font:600 16px/1.35 'Segoe UI',sans-serif;text-decoration:none}
@media(max-width:700px){
 html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:100%!important;min-width:0!important;margin:0!important}
 html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs)>:is(a,span){width:auto!important;min-width:0!important;min-height:46px!important;padding:7px 3px!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;text-align:center!important;overflow-wrap:normal!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}
 html body #s3-vocabulary .sv-tabs .sv-audio-sources{display:none!important}
 html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs) .sj-mode-long{display:none!important}
 html body :is(#s3-flash-hub .s3f-modes,#s3-vocabulary .sv-tabs) .sj-mode-short{display:inline!important}
 html body #s3-flash-hub .s3f-hero{padding:14px 10px!important;gap:12px!important}
 html body #s3-flash-hub .s3f-hero h1{font-size:22px!important;padding:8px 12px!important;margin:12px 0 0!important;max-width:100%!important}
 html body #rune-dual .rq-mode-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:100%!important;min-width:0!important}
 html body #rune-dual .rq-mode-tabs>*{min-width:0!important;min-height:46px!important;padding:7px 3px!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;text-align:center!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important}
 html body #rune-dual .rq-mode-tabs .sj-mode-long{display:none!important}
 html body #rune-dual .rq-mode-tabs .sj-mode-short{display:inline!important}
 #s3-auto-read{margin:12px auto 24px;font-size:16px;min-width:0}
 #s3-auto-read .sar-panel{padding:18px 14px;border-radius:16px}
 #s3-auto-read h2{font-size:21px!important}
 #s3-auto-read .sar-settings{gap:12px}
 #s3-auto-read label{font-size:14px}
 #s3-auto-read :is(select,input[type=number]){font-size:16px;padding:9px 8px}
 #s3-auto-read button{font-size:16px;padding:10px 14px}
 #s3-auto-read .sar-repeat{width:100%}
}
#s3-auto-read .sar-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0}
#s3-auto-read .sar-toggles .sar-repeat{width:auto;white-space:nowrap;margin:0}
/* Compact controls: override late theme rules on every vocabulary mode. */
html body #s3-flash-hub#s3-flash-hub .s3f-modes,
html body #s3-vocabulary#s3-vocabulary .sv-tabs,
html body #rune-dual#rune-dual .rq-mode-tabs{flex-wrap:nowrap!important;gap:5px!important}
html body #s3-flash-hub#s3-flash-hub .s3f-modes>a,
html body #s3-vocabulary#s3-vocabulary .sv-tabs>:is(a,span),
html body #rune-dual#rune-dual .rq-mode-tabs>*{height:34px!important;min-height:34px!important;max-height:34px!important;padding:4px 9px!important;font-size:13px!important;line-height:1.15!important;border-radius:8px!important;box-shadow:none!important;box-sizing:border-box!important}
@media(max-width:700px){
 html body #s3-flash-hub#s3-flash-hub .s3f-modes,
 html body #s3-vocabulary#s3-vocabulary .sv-tabs,
 html body #rune-dual#rune-dual .rq-mode-tabs{display:grid!important;grid-template-columns:minmax(0,.75fr) minmax(0,.95fr) minmax(0,1fr) minmax(0,1.3fr)!important;width:100%!important;gap:4px!important}
 html body #s3-flash-hub#s3-flash-hub .s3f-modes>a,
 html body #s3-vocabulary#s3-vocabulary .sv-tabs>:is(a,span),
 html body #rune-dual#rune-dual .rq-mode-tabs>*{padding:3px 2px!important;font-size:10.5px!important;line-height:1.1!important;min-width:0!important;white-space:normal!important}
 html body #s3-flash-hub#s3-flash-hub .s3f-modes>a.s3-auto-read-tab,
 html body #s3-vocabulary#s3-vocabulary .sv-tabs>a.s3-auto-read-tab,
 html body #rune-dual#rune-dual .rq-mode-tabs>.s3-auto-read-tab{white-space:nowrap!important;font-size:10px!important}
}
