/* Shared small-screen foundations; desktop layouts remain in their page styles. */
.mobile-menu-toggle,.mobile-only-navlink{display:none}
@media(max-width:850px){
  html{scroll-padding-top:20px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body[class]{--mobile-gutter:20px;--mobile-radius:16px;font-size:15px;line-height:1.8}
  body[class] main,body[class] section,body[class] article,body[class] fieldset,body[class] form{min-width:0}
  body[class] :is(input,select,textarea){max-width:100%;font-size:16px;line-height:1.5;min-height:48px}
  body[class] input:not([type=radio],[type=checkbox]),body[class] #exam-date{font-size:16px}
  body[class] :is(input[type=radio],input[type=checkbox]){min-height:0;width:20px;height:20px;flex:none}
  body[class] :is(button,.primary,.link-button,.result-primary,.result-outline,.home-action){min-height:48px;font-size:14px;line-height:1.5}
  body[class] :is(button,a,input,select,textarea){touch-action:manipulation}
  body[class] :is(h1,h2,h3,p,dd,summary){overflow-wrap:break-word}
  body[class] :is(#account-email,#confirm-email,#confirm-message,.explanation){overflow-wrap:anywhere}
  body[class] :is(#error,#notice,#preview-note,.notice,.hint){font-size:13px;line-height:1.8}
  body[class] :is(.eyebrow){font-size:11px;letter-spacing:.12em}
  body[class] .home-header{height:auto;min-height:68px;padding:12px var(--mobile-gutter);gap:10px;flex-wrap:wrap;align-items:center;background:#fff}
  body[class] .home-brand{font-size:19px;letter-spacing:-.035em;line-height:1.5;min-width:0;margin-right:auto}
  body[class] .home-brand{min-height:44px;display:flex;align-items:center}
  body[class] .home-subtitle,body[class] .home-plan{display:none}
  body[class] .home-account{font-size:13px;margin-left:0}
  body[class] .home-account summary{min-height:44px;display:flex;align-items:center;padding:0 6px}
  body[class] .home-account[open]{max-width:calc(100vw - 32px);right:16px}
  body[class] .home-account :is(p,dd){overflow-wrap:anywhere;font-size:14px}
  body[class] .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 10px;background:#faf8f7;border:1px solid #e6e1df;border-radius:9px;font-size:12px;font-weight:600;color:#51474a;flex:none}
  .mobile-menu-toggle::before{content:'';width:14px;height:10px;border-block:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat}
  .mobile-menu-toggle[aria-expanded=true]{background:#fff0eb;border-color:#e7b5aa;color:#b62b25}
  body[class] .home-sidebar[data-mobile-menu]{position:static;float:none;width:100%;height:auto;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px var(--mobile-gutter) 18px;border:0;border-bottom:1px solid #e6e1df;background:#fff;box-shadow:0 8px 18px #36251c05}
  body[class] .home-sidebar[data-mobile-menu=closed]{display:none}
  body[class] .home-sidebar a{display:flex;align-items:center;min-height:48px;padding:10px 12px;white-space:normal;font-size:13px;line-height:1.5;border-radius:9px;background:#faf9f8}
  body[class] .home-sidebar .home-report{margin:0;border:0;padding:10px 12px;font-size:13px}
  body[class] .home-sidebar .mobile-only-navlink{display:flex}
  body[class] :is(.learning-account,.practice-account-link,.purchase-account,.contact-home){display:flex;align-items:center;min-height:44px;font-size:13px}
  body[class] :is(.home-content,main){margin-left:0}
  body.home-page .home-content,body.practice-page main,body.learning-page main,body.account-page main,body.purchase-page main,body.report-page main{padding:26px var(--mobile-gutter) 40px;max-width:720px;margin-inline:auto}
  body[class] :is(.home-welcome h1,.practice-intro h1,.learning-heading h1,.account-heading h1,.purchase-hero h1,.report-hero h1){font-size:26px;line-height:1.5;letter-spacing:-.035em}
  body[class] :is(.home-welcome>p,.practice-intro p:not(.eyebrow),.learning-heading>p,.account-heading>p,.purchase-hero>div>p:last-child,.report-hero p:not(.eyebrow)){font-size:14px;line-height:1.9}
  body[class] :is(.home-hero,.practice-intro,.purchase-hero,.report-hero){padding:24px 20px;border-radius:var(--mobile-radius);gap:12px;min-height:0;align-items:center;margin-bottom:24px}
  body[class] :is(.practice-intro,.purchase-hero,.report-hero){display:block;position:relative}
  body[class] :is(.practice-intro,.purchase-hero,.report-hero)>div{width:100%}
  body[class] :is(.practice-intro,.purchase-hero,.report-hero) h1{text-wrap:balance}
  body[class] :is(.practice-intro,.purchase-hero,.report-hero) p:not(.eyebrow){padding-right:82px;text-wrap:pretty}
  body[class] :is(.practice-intro,.purchase-hero,.report-hero) :is(.practice-mascot,.purchase-mascot,img){position:absolute;right:16px;bottom:18px;width:82px;height:118px}
  body.practice-page .practice-features{max-width:calc(100% - 66px)}
  body[class] :is(.home-hero>div,.purchase-hero>div,.report-hero>div){min-width:0;flex:1}
  body[class] :is(.home-mascot,.practice-mascot,.purchase-mascot,.report-hero img){width:94px;height:146px;flex:none;object-fit:contain;object-position:center bottom;margin:0}
  body.home-page .home-hero{position:relative;display:block;padding-bottom:24px}
  body.home-page .home-hero>div{padding-right:76px}
  body.home-page .home-mascot{position:absolute;right:12px;top:44px;width:88px;height:146px}
  body.home-page .home-hero h2{font-size:25px;line-height:1.5}
  body.home-page .home-spec{font-size:19px;line-height:1.5}
  body.home-page .home-action{width:100%;display:flex;justify-content:center;align-items:center;margin-top:22px;padding:14px 12px}
  body.home-page .home-hero>div:has(.home-action){padding-right:0}
  body.home-page .home-hero :is(h2,.home-spec){padding-right:64px}
  body.home-page .home-hero p:not(.home-spec){font-size:13px;line-height:1.8}
  body.home-page .home-hero-copy>p:not(.home-hero-note){padding-right:88px}
  body.home-page .home-welcome h1{text-wrap:balance;font-size:25px}
  body.home-page .exam-countdown{align-items:flex-start;flex-direction:column;gap:14px;padding:20px}
  body.home-page .exam-countdown h2{font-size:22px}
  body.home-page .exam-countdown>a{width:100%}
  body.home-page .home-learning-grid{grid-template-columns:1fr;gap:16px}
  body.home-page :is(.home-learning-card,.home-history){padding:24px;border-radius:16px}
  body.home-page .home-learning-card h2{font-size:21px}
  body.home-page .home-learning-card p{font-size:14px}
  body.home-page .home-learning-card a{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:14px}
  body.home-page .home-history{display:block}
  body.home-page .home-history p{max-width:none;font-size:14px}
  body.home-page .home-history span{display:inline-block;margin-top:12px;font-size:14px}
  body[class] :is(.practice-page,.learning-page) main>.panel{padding:0}
  body.practice-page #categories{grid-template-columns:1fr;gap:16px}
  body.practice-page #categories article{padding:22px;border-radius:16px}
  body.practice-page #categories h3{font-size:20px}
  body.practice-page #categories :is(.category-description,.category-session-note){font-size:13px;line-height:1.9}
  body.practice-page #categories .category-actions{gap:10px}
  body.practice-page #categories .category-actions button{padding:12px 8px;min-height:50px;font-size:13px}
  body.practice-page .practice-features{gap:8px;margin-top:16px}
  body.practice-page .practice-features span{font-size:12px;padding-right:8px}
  body.practice-page :is(#practice,#complete,#locked,#guest){padding:24px 18px;border-radius:16px}
  body.practice-page .practice-question-layout,body.learning-page .review-question-layout{grid-template-columns:1fr;gap:20px}
  body.practice-page #question-title,body.learning-page #question-title{font-size:18px;line-height:1.9;letter-spacing:0}
  body.practice-page #choices label,body.learning-page #choices label{padding:16px 12px;gap:10px;font-size:15px;line-height:1.85;min-height:60px}
  body.practice-page #choices label small{font-size:12px}
  body.practice-page #choices label:has(small),body.learning-page #choices label:has(small){flex-wrap:wrap}
  body.practice-page #choices label small,body.learning-page #choices label small{flex-basis:100%;font-size:12px;text-align:right;margin-left:0}
  body.practice-page :is(#feedback,#explanation),body.learning-page :is(#feedback,#explanation){font-size:14px;line-height:1.95}
  body.practice-page .practice-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;direction:rtl}
  body.practice-page .practice-actions button{width:100%;padding:14px 8px;direction:ltr}
  body[class] .choice-explanation{padding:12px;margin:16px 0}
  body[class] .choice-explanation :is(p,h4){font-size:14px;line-height:1.9}
  body[class] #complete-answers{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
  body.practice-page #complete-answers button{min-height:64px}
  body.practice-page .completion-score{padding:18px 12px}
  body.practice-page .completion-score dl>div{padding-inline:8px}
  body.practice-page .completion-score dt{font-size:12px;white-space:normal}
  body.practice-page .completion-score strong{font-size:32px}
  body.practice-page .completion-actions{flex-direction:column;align-items:stretch;gap:12px}
  body.learning-page :is(.review-guide-grid,.history-stat-grid,.review-complete-stats){gap:12px}
  body.learning-page :is(.review-start-bar,.review-complete-actions,.review-question-actions,.history-bottom-actions,.load-error-actions,.review-empty-actions){flex-direction:column;align-items:stretch;gap:12px}
  body.learning-page :is(.review-start-bar button,.review-complete-actions a,.review-question-actions button,.history-bottom-actions a,.load-error-actions a,.review-empty-actions a){width:100%;min-height:48px;display:flex;justify-content:center;align-items:center;font-size:14px}
  body.learning-page :is(#review-scope,#review-category){font-size:16px;min-height:48px}
  body.learning-page #review-category-buttons button{min-height:48px;font-size:13px;line-height:1.6;padding:12px}
  body.learning-page :is(#review-panel,#review-setup,#review-complete,#empty,.review-question-card){padding:22px 18px}
  body.learning-page #history-list article{padding:22px 18px;border-radius:14px}
  body.learning-page #history-list h2{font-size:17px;line-height:1.6}
  body.learning-page #history-list p{font-size:13px}
  body.learning-page #history-list{overflow:visible;border:0;background:transparent}
  body.learning-page #history-list table{display:block;min-width:0;width:100%;border:0}
  body.learning-page #history-list caption{display:block;text-align:left;font-size:13px;margin-bottom:14px}
  body.learning-page #history-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body.learning-page #history-list tbody{display:grid;gap:16px}
  body.learning-page #history-list tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;padding:22px 20px;background:white;border:1px solid #e6e1df;border-radius:16px;box-shadow:0 6px 20px #36251c06}
  body.learning-page #history-list tbody tr.history-latest{background:#fffaf7;border-color:#e9c7ba}
  body.learning-page #history-list td{display:block;padding:0;border:0;white-space:normal;font-size:16px;text-align:left}
  body.learning-page #history-list td::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:#746b70;margin-bottom:4px}
  body.learning-page #history-list td:first-child{grid-column:1/-1;font-size:15px;padding-bottom:12px;border-bottom:1px solid #ece5e1}
  body.learning-page #history-list td.history-score{font-size:28px;color:#c93229;line-height:1.5;font-weight:700}
  body.learning-page #history-list td:nth-child(4){grid-column:1/-1;font-size:14px}
  body.learning-page #history-list td:last-child{grid-column:1/-1}
  body.learning-page #history-list td:last-child::before{display:none}
  body.learning-page #history-list td a{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;font-size:14px;background:#fff;border:1px solid #ddb6aa;border-radius:9px;padding:10px;text-decoration:none}
  body.account-page .account-summary{grid-template-columns:1fr;gap:14px}
  body.account-page .account-summary section{padding:22px;border-radius:14px}
  body.account-page .account-summary p{font-size:18px;line-height:1.7}
  body.account-page #settings-form{padding:0 20px;border-radius:16px}
  body.account-page .setting-row{grid-template-columns:1fr;gap:16px;padding-block:24px}
  body.account-page .setting-row h2{font-size:19px}
  body.account-page .schedule-options{display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}
  body.account-page .schedule-options label{padding:12px;border:1px solid #e5dfdc;border-radius:10px;min-height:52px;font-size:14px;background:#fff}
  body.account-page .schedule-options label:has(input:checked){border-color:#d92d27;background:#fff5f1}
  body.account-page .marketing-label{font-size:14px;line-height:1.8;min-height:48px}
  body.account-page .setting-actions{flex-direction:column-reverse;align-items:stretch;gap:16px}
  body.account-page .setting-actions a{text-align:center;padding:10px}
  body.account-page .account-footer a{color:#a23b32;display:inline-flex;align-items:center;min-height:44px}
  body.purchase-page .purchase-layout{grid-template-columns:1fr;gap:28px}
  body.purchase-page .purchase-card{padding:26px 22px;border-radius:16px}
  body.purchase-page .purchase-card h2{font-size:25px}
  body.purchase-page :is(.purchase-additions,.purchase-checkout-note,.purchase-features dd,.purchase-footer p){font-size:13px;line-height:1.9}
  body.purchase-page .purchase-conditions span{font-size:13px}
  body.purchase-page .purchase-price{font-size:54px}
  body.purchase-page .purchase-learning-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body.purchase-page .purchase-learning-links a{display:flex;align-items:center;justify-content:center;font-size:13px;min-height:48px;padding:8px;border:1px solid #e7dbd5;border-radius:8px;text-align:center;text-decoration:none}
  body.purchase-page #purchase-outcome{padding:24px 18px}
  body.purchase-page .outcome-actions{grid-template-columns:1fr}
  body.purchase-page .outcome-actions a{font-size:14px;min-height:48px}
  body.report-page .report-panel{padding:24px 18px}
  body.report-page .report-date{gap:12px}
  body.report-page .report-date>div{min-width:0;flex:1}
  body.report-page #exam-date{width:100%;min-width:0}
  body.report-page .report-options{grid-template-columns:1fr;padding-left:0;gap:10px}
  body.report-page .report-options label{min-height:56px;padding:14px 16px;font-size:15px}
  body.report-page .report-actions{flex-direction:column;align-items:stretch;gap:16px}
  body.report-page .report-actions .primary{min-width:0;width:100%;font-size:15px}
  body.report-page .home-header>a:last-child{min-height:44px;display:flex;align-items:center}
  body.report-page :is(.report-note,.report-footer,.report-saved-note){font-size:13px}
  body.report-page #saved-summary{font-size:17px}
  body.contact-page main{padding:26px var(--mobile-gutter) 40px;margin:auto;max-width:720px}
  body.contact-page .contact-heading{gap:12px;align-items:center}
  body.contact-page .contact-heading h1{font-size:26px}
  body.contact-page .contact-heading img{width:84px;height:120px;flex:none;object-fit:contain}
  body.contact-page .contact-heading p{font-size:14px}
  body.contact-page .contact-card{padding:24px 18px;border-radius:16px}
  body.contact-page .contact-row{grid-template-columns:1fr;gap:10px;padding-block:0;margin-bottom:26px}
  body.contact-page .contact-row>label{font-size:15px}
  body.contact-page textarea{min-height:190px;resize:vertical}
  body.contact-page .contact-actions{flex-direction:column-reverse;align-items:stretch;gap:14px}
  body.contact-page .contact-actions button{width:100%}
  body.contact-page .contact-actions a{padding:10px;text-align:center}
  body.contact-page :is(.contact-notice,.contact-hint,.contact-confirm-note){font-size:13px}
  body.contact-page .contact-message-meta :is(p,span){font-size:12px;line-height:1.8}
  body.contact-page #contact-confirm dl>div{display:block;padding-block:16px}
  body.contact-page #contact-confirm dt{margin-bottom:8px;font-size:13px}
  body.contact-page #contact-confirm dd{margin:0;font-size:15px;line-height:1.9}
  body.auth-page:not(.home-page) main{display:block;padding:20px var(--mobile-gutter) 36px;min-height:100svh}
  body.auth-page:not(.home-page) .intro{position:static;width:100%;max-width:480px;padding:0;margin:0 auto 24px}
  body.auth-page:not(.home-page) .auth-brand{font-size:24px;line-height:1.4}
  body.auth-page:not(.home-page) .auth-brand small{font-size:12px;margin-top:4px}
  body.auth-page:not(.home-page) .intro h1{font-size:25px;line-height:1.45;margin:24px 0 10px}
  body.auth-page:not(.home-page) .intro .lead{font-size:14px}
  body.auth-page:not(.home-page) .login-fox{position:absolute;right:0;bottom:0;width:90px;height:118px;margin:0;object-fit:contain}
  body.auth-page:not(.home-page) .intro{position:relative;padding-right:78px}
  body.auth-page:not(.home-page) .card{width:100%;max-width:480px;padding:28px 22px;margin:0 auto;border-radius:20px;background:#ffffffed;border:1px solid #eadfd8;box-shadow:0 12px 32px #5134260c,0 2px 6px #51342605}
  body.auth-page:not(.home-page) .card h2{font-size:25px;line-height:1.5}
  body.auth-page:not(.home-page) #auth-description{font-size:14px;margin-bottom:24px}
  body.auth-page:not(.home-page) form>label{font-size:14px;margin-top:20px}
  body.auth-page:not(.home-page) input:not([type=radio],[type=checkbox]){min-height:52px;padding:14px 12px;font-size:16px}
  body.auth-page:not(.home-page) .password-row input{padding-right:64px}
  body.auth-page:not(.home-page) .password-row button{min-height:44px;top:4px;right:4px;padding:8px;font-size:13px}
  body.auth-page:not(.home-page) .password-row button{min-width:48px}
  body.auth-page:not(.home-page) .tabs{gap:18px;margin:20px 0}
  body.auth-page:not(.home-page) .tabs button{font-size:15px;min-height:46px}
  body.auth-page:not(.home-page) :is(#reset-open,#verify-open,#verify-back,#reset-back){font-size:13px;min-height:44px;padding:10px 4px}
  body.auth-page:not(.home-page) :is(.verification-description,.reset-description,.verification-help p){font-size:14px;line-height:1.9}
  body.auth-page:not(.home-page) .verification-help{padding:16px;margin-top:22px}
  body.auth-page:not(.home-page) #signup-fields .schedule{gap:10px;flex-wrap:wrap}
  body.auth-page:not(.home-page) #signup-fields fieldset{display:grid;gap:10px;margin:24px 0}
  body.auth-page:not(.home-page) #signup-fields fieldset label{min-height:50px;padding:12px;border:1px solid #e5dfdc;border-radius:10px;margin:0;font-size:14px;background:white}
  body.auth-page:not(.home-page) #signup-fields fieldset label:has(input:checked){border-color:#d92d27;background:#fff5f1}
  body.auth-page:not(.home-page) #signup-fields>label.inline{min-height:48px;font-size:13px;line-height:1.9;align-items:flex-start;padding-block:10px}
  body.auth-page:not(.home-page) #signup-fields>label.inline input{margin-top:3px}
  body.auth-page:not(.home-page) #signup-fields summary{font-size:13px;min-height:44px;padding:10px 0}
  body.exam-page header{padding:16px var(--mobile-gutter);gap:6px;flex-wrap:wrap}
  body.exam-page header .brand{font-size:20px}
  body.exam-page .exam-page-label{font-size:12px}
  body.exam-page main,body.exam-page:has(#result-screen:not([hidden])) main{padding:0 var(--mobile-gutter);margin:22px auto 40px}
  body.exam-page #start-screen{padding:26px 20px;margin:0 auto;border-radius:16px}
  body.exam-page .before-heading h1{font-size:25px}
  body.exam-page .before-heading>p:last-child{font-size:14px}
  body.exam-page .before-info>div{grid-template-columns:90px minmax(0,1fr)}
  body.exam-page .before-info dt{font-size:13px;padding:14px 10px}
  body.exam-page .before-info dd{font-size:16px;font-weight:500;line-height:1.8;padding:14px 12px}
  body.exam-page .before-section{padding-block:22px}
  body.exam-page .before-section :is(p,li){font-size:14px;line-height:1.9}
  body.exam-page .before-actions{flex-direction:column-reverse;align-items:stretch;gap:18px}
  body.exam-page .before-start-group{width:100%;text-align:center}
  body.exam-page #start{width:100%;min-height:52px;font-size:15px}
  body.exam-page .before-back{text-align:center;min-height:44px;padding:10px}
  body.exam-page:has(#exam-screen:not([hidden])) main{padding:0 12px}
  body.exam-page .exam-toolbar{position:sticky;top:0;z-index:12;display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;border-radius:12px;background:#fffaf7;box-shadow:0 4px 14px #4b2b1910}
  body.exam-page #timer{font-size:26px;padding-left:6px}
  body.exam-page .exam-toolbar>strong{font-size:13px}
  body.exam-page .exam-toolbar button{min-height:44px;padding:8px 12px;font-size:13px}
  body.exam-page .exam-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  body.exam-page .question-panel{padding:22px 16px;min-height:0;border-radius:14px}
  body.exam-page #title{font-size:18px;line-height:1.95;letter-spacing:0}
  body.exam-page #answer-choices{min-width:0}
  body.exam-page #answer-choices label{font-size:15px;line-height:1.9;padding:16px 12px;gap:10px;align-items:flex-start;min-height:60px}
  body.exam-page #answer-choices input{margin-top:5px}
  body.exam-page .review-line{flex-wrap:wrap;align-items:center;gap:8px;font-size:13px}
  body.exam-page .review-line label{min-height:44px}
  body.exam-page #clear{min-height:44px}
  body.exam-page .question-actions{gap:12px;padding-top:22px}
  body.exam-page :is(#previous,#next){min-width:0;flex:1;min-height:50px;font-size:14px}
  body.exam-page .question-index{padding:22px 16px;border-radius:14px}
  body.exam-page #question-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  body.exam-page #question-grid button{min-height:44px;font-size:14px}
  body.exam-page .legend{font-size:12px;gap:10px}
  body.exam-page dialog{padding:24px 20px;max-height:calc(100svh - 32px);overflow:auto;border-radius:16px}
  body.exam-page .dialog-actions{flex-direction:column;gap:12px}
  body.exam-page .dialog-actions :is(button,.dialog-primary-link){width:100%}
  body.exam-page .result-heading h1{font-size:25px}
  body.exam-page .result-score-card{grid-template-columns:1fr;padding:24px;border-radius:16px;gap:18px}
  body.exam-page #score{font-size:60px}
  body.exam-page .result-counts{border-left:0;border-top:1px solid #e6e1df;padding:16px 0 0}
  body.exam-page .result-score-note{font-size:12px;line-height:1.8}
  body.exam-page .result-grid{grid-template-columns:1fr;gap:16px}
  body.exam-page :is(.result-category-card,.result-next-card){padding:22px 18px;border-radius:16px}
  body.exam-page .result-category-card table{font-size:13px;table-layout:fixed}
  body.exam-page .result-category-card th:first-child{width:52%}
  body.exam-page .result-category-card :is(th,td){padding:12px 4px}
  body.exam-page .result-category-card th{font-size:12px}
  body.exam-page .result-next-card>p:not(.eyebrow){font-size:14px}
  body.exam-page .result-upgrade{flex-wrap:wrap;gap:20px;padding:24px 20px;border-radius:16px}
  body.exam-page .result-upgrade>div{min-width:0}
  body.exam-page .result-upgrade h2{font-size:22px}
  body.exam-page .result-upgrade p{font-size:13px}
  body.exam-page .result-price{padding:0;border:0}
  body.exam-page .result-primary{width:100%;text-align:center;padding:14px}
  body.exam-page #result-list details{padding:18px 14px;font-size:14px}
  body.exam-page #result-list summary{font-size:14px;line-height:1.8}
  body.exam-page #result-list p{font-size:14px;line-height:1.95}
  body[class] footer{padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media(max-width:374px){
  body[class]{--mobile-gutter:16px}
  body[class] .home-brand{font-size:17px}
  body[class] .mobile-menu-toggle{padding-inline:8px;font-size:11px}
  body[class] :is(.home-mascot,.practice-mascot,.purchase-mascot,.report-hero img){width:70px;height:118px}
  body[class] :is(.practice-intro h1,.purchase-hero h1,.report-hero h1){font-size:23px}
  body.auth-page:not(.home-page) .card{padding:24px 18px}
  body.auth-page:not(.home-page) .intro h1{font-size:22px}
  body.practice-page .completion-score strong{font-size:27px}
  body.practice-page .completion-score dd span{font-size:11px;margin-left:3px}
}
/* Formal product name and free-exam entry point. */
.home-brand:has(.brand-prefix){display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;font-size:23px;line-height:1.25}
.home-brand .brand-prefix{font-size:12px;font-weight:600;letter-spacing:.03em}
body.home-page .home-welcome h1{max-width:850px;text-wrap:balance;font-size:clamp(26px,3vw,38px);line-height:1.5}
body.home-page .home-welcome>p:last-child{font-size:16px;line-height:1.9}
body.home-page .home-action{font-size:16px;min-width:290px;padding:16px 28px}
body.home-page .home-hero-note{max-width:580px;line-height:1.8}
@media(max-width:850px){body.home-page .home-welcome h1{font-size:26px}body.home-page .home-welcome>p:last-child{font-size:14px}body.home-page .home-action{min-width:0;width:100%;font-size:15px}body.home-page .home-hero h2{font-size:24px}body.home-page .home-hero-copy>p:not(.home-hero-note){padding-right:86px}body.home-page .home-hero-note{padding-right:0}body[class] .home-brand:has(.brand-prefix){font-size:19px;display:flex;flex-direction:column;align-items:flex-start;min-height:44px}body[class] .home-brand .brand-prefix{font-size:11px}}
/* YouTube visitor onboarding: free registration is the first step, not a test start. */
.auth-page:not(.home-page) .auth-brand .brand-prefix{display:block;font-size:14px;line-height:1.4;font-weight:650;margin-bottom:4px}
.signup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:14px 0;margin:18px 0 0;border-block:1px solid #ede3de}
.signup-steps li{display:flex;align-items:center;gap:7px;color:#82767a;font-size:12px;white-space:nowrap}
.signup-steps li>span{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#f4eeea;font-size:11px}
.signup-steps li[aria-current]{color:#b8322a;font-weight:650}.signup-steps li[aria-current]>span{background:#d92d27;color:#fff}
body.signup-entry #auth-description{font-size:14px;line-height:1.8;margin-bottom:12px}
body.signup-entry #submit{font-size:14px;line-height:1.6}
@media(max-width:850px){body.auth-page:not(.home-page) .auth-brand{font-size:22px}body.auth-page:not(.home-page) .auth-brand .brand-prefix{font-size:12px}body.auth-page:not(.home-page) .intro{padding-right:64px}body.auth-page:not(.home-page) .intro h1{font-size:24px;letter-spacing:-.035em}body.auth-page:not(.home-page) .intro .lead{font-size:13px;line-height:1.85}body.auth-page:not(.home-page) .intro .lead br{display:none}body.auth-page:not(.home-page) .free-caption{display:block;text-align:left;font-size:12px;margin-top:12px;line-height:1.7}body.signup-entry .card h2{font-size:23px}body.signup-entry .signup-steps{gap:6px}body.signup-entry .signup-steps li{font-size:11px;gap:5px}body.signup-entry .signup-steps li>span{width:22px;height:22px}body.signup-entry #submit{font-size:14px}}
@media(max-width:374px){body.auth-page:not(.home-page) .intro h1{font-size:21px}.signup-steps li{flex-direction:column;gap:6px}}
.google-auth{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px 16px;border:1px solid #cfc7c3;border-radius:8px;background:#fff;color:#343034;font:inherit;font-size:15px;font-weight:550;box-shadow:0 2px 5px #34201c05}
.google-auth:hover:not(:disabled){background:#faf8f6;border-color:#a69a94}.google-auth svg{flex:none}.google-hint{font-size:12px;line-height:1.8;color:#746b70;text-align:center;margin:10px 0 16px}.auth-divider{display:flex;align-items:center;gap:12px;color:#82767a;font-size:12px;margin:18px 0}.auth-divider::before,.auth-divider::after{content:'';height:1px;flex:1;background:#e8e0dc}.auth-divider span{white-space:nowrap}
.google-email{overflow-wrap:anywhere;font-size:14px;padding:12px 14px;background:#faf7f5;border:1px solid #e9dfd9;border-radius:8px}
#google-profile form fieldset{margin:24px 0;border:0;padding:0}#google-profile .inline{min-height:44px;line-height:1.8;font-size:13px;gap:10px}#google-profile details{font-size:12px;line-height:1.8}#google-profile summary{min-height:44px;padding:10px 0}#google-profile .primary{font-size:14px}
@media(max-width:850px){body.auth-page:not(.home-page) #google-auth{min-height:52px;font-size:15px}#google-profile-title{font-size:23px}#google-profile .inline{font-size:14px;padding-block:10px}#google-profile input:not([type=radio],[type=checkbox]){font-size:16px}#google-profile-form fieldset{display:grid;gap:8px}#google-profile-form fieldset .inline{border:1px solid #e5dfdc;border-radius:8px;padding:12px}#google-profile-form fieldset .inline:has(input:checked){border-color:#d92d27;background:#fff5f1}}
.question-report-trigger{display:block;margin:20px 0 0 auto!important;min-height:44px;padding:8px 12px!important;background:transparent!important;color:#62616a!important;border:1px solid #dedbe0!important;border-radius:8px;font-size:13px!important;box-shadow:none!important}
.question-report-dialog{width:min(520px,calc(100vw - 32px));box-sizing:border-box;max-height:90vh;overflow:auto;border:1px solid #eee1dd;border-radius:20px;padding:28px;color:#29272b;box-shadow:0 24px 80px #241a2433;font-family:inherit}
.question-report-dialog::backdrop{background:#20192380}
.question-report-dialog h2{font-size:22px;margin:0 0 12px}.question-report-dialog p{font-size:14px;line-height:1.8;color:#68616a}.question-report-dialog label{display:block;margin-top:20px;font-size:14px;font-weight:600}.question-report-dialog select,.question-report-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:12px;border:1px solid #d9d3d3;border-radius:8px;font:inherit;font-size:16px;background:white;color:#29272b}.question-report-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.question-report-actions button{min-height:44px;padding:10px 18px;border:1px solid #ded3d0;border-radius:9px;font:inherit;background:white;color:#514951}.question-report-actions button[type=submit]{background:#d92e29;color:white;border-color:#d92e29}.question-report-actions button:disabled{opacity:.6}
/* A restrained supervision credit near the decision to start or purchase. */
.supervision-note{display:flex;align-items:center;gap:7px;width:fit-content;max-width:100%;box-sizing:border-box;margin:16px 0!important;padding:7px 11px;border:1px solid #e5d9d2;border-radius:6px;background:#fffaf6;color:#62534b!important;font-family:AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;font-size:12px!important;font-weight:500;line-height:1.6;letter-spacing:.025em}
.supervision-note>span{color:#a74334;font-size:13px;flex:none}.intro .supervision-note{margin:8px auto!important}.purchase-card .supervision-note{margin:18px auto!important}
@media(max-width:560px){.supervision-note{font-size:11px!important;padding:7px 9px}}
.purchase-supervision{margin:18px 0 26px;padding:16px 18px;border-left:3px solid #c9a091;background:#fffaf7;border-radius:0 8px 8px 0}
.purchase-supervision .supervision-context{margin:0 0 7px!important;font-size:11px!important;color:#85746c;line-height:1.6;letter-spacing:.03em}
.purchase-supervision .supervision-note{margin:0!important;padding:0;background:transparent;border:0;border-radius:0;font-size:13px!important;color:#5e4d45!important}
#locked .supervision-subtle{margin:0 0 20px;font-family:inherit;font-size:11px;font-weight:400;line-height:1.7;letter-spacing:.02em;color:#817670}
.survey-mail-notice{padding:16px;margin:16px 0;background:#faf6f3;border:1px solid #eaded8;border-radius:10px;font-size:13px;line-height:1.85}.survey-mail-notice strong{display:block;font-size:14px}.survey-mail-notice p{margin:8px 0 12px}.survey-mail-notice label.inline{font-size:13px!important}
/* Contain the sticky floated sidebar so the page background covers its full height. */
body:is(.home-page,.exam-page,.practice-page,.learning-page,.purchase-page,.report-page,.account-page,.contact-page){display:flow-root;min-height:100vh;min-height:100svh}
/* Let each page's body background paint the canvas, including short/empty states. */
html:has(>body:is(.home-page,.exam-page,.practice-page,.learning-page,.purchase-page,.report-page,.account-page,.contact-page)){background:transparent}
