/* Shared touch and small-screen improvements. No device detection or hover-only controls. */
html{scroll-padding-top:16px}img,svg{max-width:100%}a,button{-webkit-tap-highlight-color:transparent}.quiet-button,.outline-button,.visual-chip,.small-tab,.treatment-step,.footer-link,.close-button{min-height:44px}.close-button{min-width:44px}.reading-section p,.reading-section li,.explanation-panel{overflow-wrap:break-word}dialog{max-height:85dvh;overscroll-behavior:contain}.status-message{max-width:calc(100vw - 32px);width:max-content;text-align:center;bottom:max(20px,env(safe-area-inset-bottom));font-size:14px}.page-footer,.route-footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}
@media(max-width:760px){.site-header{height:auto;min-height:0;flex-wrap:wrap;padding:14px 16px 10px;gap:9px}.identity{width:100%;justify-content:space-between}.identity img{width:230px;max-width:75vw}.toolbar{width:100%;display:flex;gap:6px;justify-content:space-between}.quiet-button{font-size:13px;min-height:44px;padding:9px 10px;justify-content:center;flex:1}.quiet-button span:not(.type-icon){display:inline}.product-name,.identity-divider{display:none}.type-icon{font-size:15px}.app-shell{padding:18px 16px 0}.chapter{min-height:48px;font-size:14px;padding:10px 8px;gap:7px}.chapter-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-controls{padding:0 12px;gap:7px}.visual-chip{min-height:46px;padding:9px 10px;flex:1 1 auto;justify-content:center}.lesson-bottom{flex-wrap:wrap}.next-button{min-height:48px;justify-content:center}.takeaway{min-width:0}.reading-table{min-width:500px}.table-scroll{max-width:100%;-webkit-overflow-scrolling:touch}.reading-section{min-width:0}.page-heading{gap:10px}.page-heading h1{overflow-wrap:anywhere}.assessment-visual{min-height:0}.factor{padding:13px;min-height:130px}.factor b{font-size:21px}.large-text .factor b{font-size:23px}.factor small{font-size:13px}.focus-mode .page-heading,.focus-mode .module-breadcrumb{display:none}.focus-mode .site-header{padding-top:9px}.focus-mode .identity{display:none}.focus-mode .reading-section{display:none}.lesson{scroll-margin-top:15px}}
@media(max-width:370px){.app-shell{padding-left:12px;padding-right:12px}.site-header{padding-left:12px;padding-right:12px}.quiet-button{font-size:12px;padding-left:7px;padding-right:7px}.chapter{font-size:13px}.large-text .chapter{font-size:14px}.factor b{font-size:19px}.factor .factor-icon{width:24px;height:24px}.factor small{font-size:12px}}
