/* Shared phone refinements. Keep the desktop composition and all learner actions. */
.site-report-close,.profile-create-heading button{display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;box-sizing:border-box;padding:8px}
.lesson-page .lesson-command-head .lesson-speed{display:flex;flex:none;align-items:center;gap:6px;margin:0;font:500 12px/1.3 system-ui;color:var(--muted)}
.lesson-page .lesson-command-head .lesson-speed select{box-sizing:border-box;width:76px;min-height:44px;margin:0;padding:8px 5px;border:1px solid var(--border);border-radius:8px;background:var(--surface,#fff);color:var(--ink);font:600 14px/1.3 system-ui;cursor:pointer}
.legal-footer-report{margin-top:20px}
.legal-footer .legal-footer-brand .site-report-button{position:static;display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--shourei-blue);box-shadow:none;font:500 13px/1.5 system-ui;text-align:left;text-decoration:underline;text-underline-offset:3px}
.legal-footer .legal-footer-brand .site-report-button:hover{color:var(--shourei-blue-dark)}
.lesson-page:is([data-mode=shorts],[data-mode=texts]).lesson-toolbar-ready .lesson{padding-bottom:24px}
.legal-footer .legal-footer-inner{display:grid;grid-template-columns:minmax(150px,.8fr) 1fr 1.3fr;gap:32px;padding-bottom:24px}
.legal-footer-brand img{display:block;width:158px;height:auto}
.legal-footer-column{min-width:0}
.legal-footer-column h2{font:600 14px/1.4 system-ui;margin:0 0 12px}
.legal-footer-column nav{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.legal-footer-column nav a{padding-block:6px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.legal-footer-column nav a:hover{text-decoration:underline}
.legal-footer-note{max-width:1160px;box-sizing:border-box;margin:0 auto;padding:0 24px 24px;font:12px/1.5 system-ui;color:var(--muted)}
@media(max-width:640px){
 .lesson-page .lesson-command-head .lesson-speed>span{display:none}
 .lesson-page .lesson-command-head .lesson-speed select{width:72px;font-size:16px}
 .lesson-page .lesson-command-head{gap:5px}
 html{scroll-padding-bottom:24px}
 header.header .main-nav{position:relative;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:4px;width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:12px;padding-block:3px;scrollbar-width:none;-ms-overflow-style:none}
 header.header .main-nav::-webkit-scrollbar{display:none;width:0;height:0}
 body.lesson-page{padding-bottom:var(--lesson-dock-space,160px)}
 .legal-footer .legal-footer-inner{grid-template-columns:1fr 1fr;gap:24px;padding:24px 20px 16px}
 .legal-footer-brand{grid-column:1/-1}
 .legal-footer-note{padding-inline:20px}
 header.header .main-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;min-height:44px;padding:9px 12px;white-space:nowrap}
 header.header .main-nav a:focus-visible{outline-offset:-3px}
 .header{padding-block:12px;row-gap:8px}
 .profile-picker select{min-height:44px;max-width:150px;font-size:16px}
 .profile-add{min-width:44px;min-height:44px}
 .language-picker button{min-height:44px}
 /* Reuse the existing accessible disclosure, rather than discard daily goals. */
 .study-hud{position:static;box-shadow:none;padding:8px 16px}
 .study-hud .mobile-progress-toggle{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface,#fff);color:var(--ink);font:600 14px/1.4 system-ui;cursor:pointer}
 .study-hud #study-goals-content{display:none}
 .study-hud.mobile-progress-open #study-goals-content{display:block;padding-top:10px}
 .study-settings{padding-top:24px}
 .settings-intro{margin-bottom:24px}
 .settings-intro h1{font-size:clamp(26px,7.5vw,34px);line-height:1.13}
 .study-settings .rhythm-list{grid-template-columns:minmax(0,1fr);gap:8px}
 .study-settings .rhythm-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;min-height:92px;padding:14px 16px;align-items:center}
 .study-settings .rhythm-option>strong{max-width:none;font-size:16px}
 .study-settings .rhythm-time{grid-column:2;grid-row:1/3;margin:0;display:flex;flex-direction:column;gap:3px;align-items:flex-end;font-size:12px}
 .study-settings .rhythm-time b{font-size:30px}
 .study-settings .rhythm-data{grid-column:1;width:auto;margin:0;padding:0;border:0;font-size:12px;line-height:1.5}
 .study-settings .rhythm-check{display:none}
 .study-settings .rhythm-data br{display:block}

 .study-settings .study-weekdays label{min-height:44px}
 .games-choice .games-cover{height:140px;min-height:0}
 .games-choice .games-cover img{height:140px;object-fit:cover;object-position:top}
 /* Secondary support never floats above lesson text or legal/footer links. */
 body>.site-report-button{position:static;display:block;width:max-content;max-width:calc(100% - 32px);min-height:44px;margin:20px 16px 24px auto;box-shadow:none}
 .site-report-close,.profile-create-heading button{display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;box-sizing:border-box;padding:8px}
 .site-report-heading h2{min-width:0;overflow-wrap:anywhere}
 .site-report-form textarea,.site-report-form input,.profile-create input{font-size:16px}
 .site-report-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
 .lesson-page .lesson-settings>summary{min-width:44px!important;min-height:44px!important}
 .lesson-page .lesson-command-head #library>summary{min-height:44px;display:flex;align-items:center}
 .lesson-progress-details{order:3;border-top:1px solid var(--border);padding-top:4px}
 .lesson-progress-details>summary{min-height:44px;box-sizing:border-box;display:list-item;padding:12px 8px;color:var(--muted);font:600 13px/20px system-ui;cursor:pointer}
 .lesson-progress-details>.study-words-goal{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;margin:6px 0;padding:8px;background:var(--surface-soft);border-radius:8px;text-decoration:none;font-size:12px}
 .lesson-progress-details>.study-words-goal progress{width:40%;max-width:140px}
 .lesson-progress-details>.study-words-goal strong{margin-left:8px}
}


