/* Dedicated touch layout: iPhone 11 (414 × 896 CSS px), smaller phones and landscape. */
.mobile-nav{display:none}
@media (max-width:600px){
 :root{--mobile-nav:62px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 html{scroll-padding-top:90px}body{background:#f2f5ef;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
 header{position:sticky;top:0;z-index:10;height:auto;min-height:68px;padding:calc(10px + env(safe-area-inset-top)) 18px 10px;background:#fafbf8f5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 header nav{display:none}.logo{font-size:16px;letter-spacing:-.5px;gap:10px}.logo-mark{height:39px;width:39px;border-radius:11px;flex-shrink:0}.logo .word{display:none}
 main{padding:25px 18px calc(28px + var(--mobile-nav) + env(safe-area-inset-bottom));width:100%;max-width:100%;overflow-wrap:anywhere}
 h1{font-size:30px;line-height:1.14;letter-spacing:-1.05px}h2{font-size:22px}.eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:11px}.muted{font-size:13px;line-height:1.55}
 .pageheading{margin-bottom:22px}.pageheading h1{max-width:355px;margin-bottom:12px}.pageheading .muted{max-width:340px}
 .btn{min-height:48px;border-radius:12px;padding:13px 16px;font-size:14px;gap:10px}.btn.plain{min-height:44px}.back{min-height:44px;margin-top:-12px;margin-bottom:12px;padding:10px 0}.card{border-radius:17px;padding:21px}
 body[data-mobile-screen="home"] .grid{grid-template-columns:1fr 1fr;gap:12px}
 body[data-mobile-screen="home"] .mode{padding:19px 15px;min-height:274px;border-radius:17px}
 body[data-mobile-screen="home"] .mode-number{position:static;font-size:8px;letter-spacing:1px;order:-1;margin-bottom:17px}
 body[data-mobile-screen="home"] .mode-icon{width:39px;height:39px;font-size:21px;margin-bottom:17px;border-radius:10px}
 body[data-mobile-screen="home"] .mode h2{font-size:22px;letter-spacing:-.8px;margin-bottom:10px}
 body[data-mobile-screen="home"] .mode p{font-size:12px;line-height:1.55;margin-bottom:18px}.mode p br{display:block}
 body[data-mobile-screen="home"] .mode .btn{width:100%;font-size:12px;padding:11px 8px;min-height:46px;gap:5px;white-space:nowrap}
 .metrics{gap:10px;margin:16px 0;grid-template-columns:1fr 1fr}.metric{padding:17px 16px;border-radius:14px;min-height:112px}.metric .label{font-size:11px}.metric .value{font-size:29px;margin:9px 0 5px}.metric small{font-size:10px;line-height:1.4;display:block}
 .section-title{margin:27px 0 13px;gap:8px}.section-title h2{font-size:19px}.section-title .btn{font-size:12px}.activity{gap:13px}.activity .card{padding:20px}.activity .tag{font-size:8px;padding:5px 7px}.activity h3{font-size:16px}.review-card{min-height:170px}.review-card .big{font-size:37px}.review-card p{font-size:12px}.week{height:100px}.footer{font-size:10px;line-height:1.6;gap:3px;margin-top:25px}
 .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:15;min-height:calc(var(--mobile-nav) + env(safe-area-inset-bottom));padding:7px max(15px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));background:#fafbf8f7;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid #dce4d5;justify-content:space-around;gap:6px}
 .mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:1;border:0;background:transparent;border-radius:12px;color:#7a8871;min-height:47px;padding:5px;font-size:10px;font-weight:500}.mobile-nav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile-nav button[aria-current="page"]{background:#e8efdf;color:#315a34}.mobile-nav[hidden]{display:none}
 .tabs{margin:20px 0;padding:4px;border-radius:12px}.tabs button{min-height:46px;font-size:14px;padding:10px}
 .tabs button{font-size:12px;padding:10px 6px}.topic-card{gap:12px;padding:16px 13px;min-height:88px}.topic-card strong{font-size:13px}.topic-number{font-size:20px;min-width:26px}.topic-card small{font-size:10px}
 .tickets{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.ticket{min-height:91px;padding:13px 10px;border-radius:12px}.ticket strong{font-size:21px}.ticket small{font-size:9px;line-height:1.45;margin-top:7px}.mini-track{left:10px;right:10px;bottom:9px}
 .range-fields{gap:12px}.range-fields label{font-size:12px}.range-fields select{min-height:52px;font-size:16px;padding:13px 10px;border-radius:11px}
 body[data-mobile-screen="setup"] main{padding-bottom:calc(205px + env(safe-area-inset-bottom))}
 .selection-summary{position:fixed;bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom));left:0;right:0;background:#f7faf3f7;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border-top:1px solid #dce4d5;z-index:12;padding:12px 18px;display:flex;flex-direction:row;align-items:center;margin:0;gap:12px}
 .selection-summary>div{flex:1;min-width:0}.selection-summary h3{font-size:15px;margin:0 0 4px}.selection-summary .muted{font-size:10px;display:block}.selection-summary .btn{width:auto;min-width:142px;flex-shrink:0;padding:12px;font-size:12px}
 body[data-mobile-screen="session"] main{padding:18px 12px calc(25px + env(safe-area-inset-bottom))}
 body[data-mobile-screen="session"] header{padding-left:16px;padding-right:16px}.session-top{margin:0 4px 15px;align-items:center;gap:8px}.session-top .badge{font-size:10px;padding:8px 10px;max-width:72%;white-space:normal}.session-top .muted{font-size:12px;white-space:nowrap}
 body[data-mobile-screen="session"] header .btn{min-height:44px;padding:11px 13px;font-size:12px;border-radius:11px}.progress{height:4px;margin:0 4px}
 .q-card{padding:23px 17px;margin-top:18px;border-radius:17px;box-shadow:0 3px 12px #25411a03}.qmeta{font-size:9px;line-height:1.5;margin-bottom:21px;gap:12px}.qmeta span:last-child{text-align:right;max-width:35%}.qtitle{font-size:20px;line-height:1.43;letter-spacing:-.5px;font-weight:550;margin-bottom:16px}
 .hint{font-size:12px;line-height:1.55;margin-bottom:20px}.answers{gap:11px}.answer{font-size:15px;line-height:1.5;padding:15px 13px;gap:12px;min-height:64px;border-radius:13px;align-items:flex-start;transition:background .15s,border-color .15s}.answer .letter{width:28px;height:28px;font-size:11px;margin-top:0;border-radius:8px}.answer>span:last-child{align-self:center;min-width:0}.answer:hover{background:white;border-color:#dce4d7}.answer.correct:hover{background:#edf6e6;border-color:#9cbc8c}.answer.wrong:hover{background:#fff0eb;border-color:#d69d91}.answer:active{transform:scale(.992)}.feedback{font-size:13px;line-height:1.5;margin-top:18px;min-height:24px}.q-footer{font-size:10px;line-height:1.6;gap:10px;margin-top:17px}.q-footer a{min-height:34px;display:inline-flex;align-items:center}details{font-size:12px}summary{padding:10px 0;min-height:42px}.note{margin:7px 0 12px;font-size:12px}
 dialog{padding:26px 23px;border-radius:20px;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}dialog h2{font-size:23px}dialog p{font-size:14px;line-height:1.65}dialog .row .btn{flex:1}
 .report-hero{padding:15px 0 21px}.report-circle{height:64px;width:64px;font-size:26px;margin-bottom:20px}.report-hero h1{font-size:30px}.report-list{padding:20px}.report-item p{font-size:13px}.report-item{padding:18px 0}
 body[data-mobile-screen="stats"] .grid{grid-template-columns:1fr;gap:13px}body[data-mobile-screen="stats"] .pageheading{flex-direction:column;align-items:flex-start;gap:16px}body[data-mobile-screen="stats"] .pageheading>.btn{min-height:44px;font-size:12px;padding:10px 14px}
 .tablewrap{padding:8px 6px}.stat-table{font-size:12px;min-width:355px}.stat-table th{font-size:9px}.stat-table td,.stat-table th{padding:14px 7px}.stat-table th:first-child{min-width:75px}.toast{bottom:calc(var(--mobile-nav) + 15px + env(safe-area-inset-bottom));max-width:calc(100% - 30px);width:max-content;font-size:12px;line-height:1.5}
}
@media(max-width:360px){body[data-mobile-screen="home"] .grid{grid-template-columns:1fr}.tickets{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-summary .btn{min-width:125px}.qtitle{font-size:19px}}
@media(max-width:950px) and (orientation:landscape){header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}main{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Phone redesign: a complete reading-first layout rather than shrunken desktop cards. */
@media(max-width:600px){
 :root{--mobile-nav:68px}
 body{background:#f4f6f1;color:#193b32}
 header{min-height:72px;padding-left:22px;padding-right:22px;background:#f9fbf7f2;border-bottom-color:#e1e7dc}
 main{padding:28px 20px calc(30px + var(--mobile-nav) + env(safe-area-inset-bottom))}
 .eyebrow{font-size:11px;letter-spacing:1.5px;color:#73846e;margin-bottom:14px}
 h1{font-size:32px;letter-spacing:-1.1px;line-height:1.16;font-weight:550}
 .pageheading{margin-bottom:26px}.pageheading h1{max-width:360px}.pageheading .muted{font-size:15px;line-height:1.6;color:#768372}
 body[data-mobile-screen="home"] .grid{grid-template-columns:1fr;gap:15px}
 body[data-mobile-screen="home"] .mode{padding:25px 23px;min-height:220px;border-radius:22px;display:flex}
 body[data-mobile-screen="home"] .mode-number{display:none}
 body[data-mobile-screen="home"] .mode-icon{position:absolute;top:25px;left:23px;width:42px;height:42px;border-radius:12px;margin:0}
 body[data-mobile-screen="home"] .mode h2{margin:4px 0 15px;padding-left:58px;font-size:26px;letter-spacing:-.8px;line-height:1.3}
 body[data-mobile-screen="home"] .mode p{font-size:14px;line-height:1.6;margin:0 0 20px;max-width:300px}
 body[data-mobile-screen="home"] .mode p br{display:block}
 body[data-mobile-screen="home"] .mode .btn{min-height:49px;font-size:14px;padding:13px 18px;justify-content:space-between;border-radius:13px}
 .metrics{margin:22px 0;gap:12px}.metric{padding:19px 16px;min-height:132px;border-radius:17px}.metric .label{font-size:12px;line-height:1.4}.metric .value{font-size:32px;margin:12px 0 7px}.metric small{font-size:11px;line-height:1.45}
 .section-title h2{font-size:21px}.activity .card{padding:23px;border-radius:20px}.activity .tag{display:none}.activity h3{font-size:18px}.review-card{min-height:190px}.review-card p{font-size:13px;line-height:1.6}
 .mobile-nav{background:#fcfdf9f5;box-shadow:0 -5px 25px #183c3304;padding-top:8px}.mobile-nav button{font-size:11px;gap:6px;min-height:50px}.mobile-nav button[aria-current="page"]{background:#e7efde}.mobile-nav button svg{width:23px;height:23px}
 .back{font-size:14px;margin-bottom:18px}.tabs{padding:5px;gap:3px;margin:25px 0 22px}.tabs button{font-size:12px;min-height:48px;padding:10px 5px}
 body[data-mobile-screen="setup"] main{padding-bottom:calc(115px + env(safe-area-inset-bottom))}
 .selection-summary{bottom:0;padding:15px 20px calc(15px + env(safe-area-inset-bottom));background:#fcfdf9f7;box-shadow:0 -8px 30px #183c3305;gap:15px}
 .selection-summary h3{font-size:16px;margin-bottom:6px}.selection-summary .muted{font-size:11px;line-height:1.45}.selection-summary .btn{min-height:50px;font-size:13px;min-width:145px}
 .tickets{gap:10px}.ticket{min-height:103px;padding:16px 11px;border-radius:15px}.ticket strong{font-size:23px}.ticket small{font-size:10px;line-height:1.5}.mini-track{bottom:11px;left:11px;right:11px}
 .topic-card{border-radius:17px;padding:20px 16px;min-height:100px;gap:14px}.topic-card strong{font-size:14px;line-height:1.5}.topic-card small{font-size:12px;margin-top:9px}.topic-number{font-size:23px;min-width:29px}.topics{gap:12px}
 body[data-mobile-screen="session"] main{padding:20px 16px calc(25px + env(safe-area-inset-bottom))}
 .q-card{padding:25px 19px;border-radius:20px;margin-top:22px}.qmeta{font-size:11px;line-height:1.5;margin-bottom:24px;letter-spacing:.2px}.qmeta span:last-child{max-width:38%}
 .qtitle{font-size:21px;line-height:1.45;letter-spacing:-.45px;font-weight:550;margin-bottom:20px}.hint{font-size:13px;line-height:1.6;margin-bottom:23px}
 .answers{gap:13px}.answer{font-size:15px;line-height:1.6;padding:17px 14px;border-radius:14px;min-height:68px;gap:13px}.answer .letter{width:28px;height:28px;font-size:12px;margin-top:1px}.feedback{font-size:14px;line-height:1.6;margin-top:22px}
 .q-footer{font-size:11px;line-height:1.6}.q-footer a{font-size:12px}details{font-size:13px}summary{min-height:46px;line-height:1.6}.session-top .badge{font-size:11px}.session-top .muted{font-size:12px}
 .report-hero{padding-top:24px}.report-hero .muted{font-size:14px}.report-list{border-radius:20px}.report-item p{font-size:14px;line-height:1.65}.stat-table{font-size:12px}.stat-table th{font-size:10px}
 .footer{font-size:11px;line-height:1.65;margin-top:32px}
}
