/* The phone is the primary study surface. */
.phone-home{max-width:600px;margin:auto}
.home-greeting{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.home-greeting .eyebrow{font-size:11px;letter-spacing:.13em}
.home-greeting h1{font-size:27px;line-height:1.5;margin:4px 0 6px}
.home-greeting p{font-size:13px;color:#66776a}
.home-greeting .avatar{width:65px;height:65px;border-radius:50%;background:#f3ecdf;border:3px solid #fffefa}
.phone-hero{display:block;min-height:0;padding:24px;border-radius:22px}
.phone-hero-top{display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative}
.phone-hero .hero-label{font-size:12px;gap:6px}
.phone-hero h2{font-size:36px;margin:7px 0;letter-spacing:.03em}
.phone-hero p{font-size:14px;line-height:1.8;max-width:none}
.phone-mascot{position:relative;width:140px;flex-shrink:0;align-self:stretch;display:flex;align-items:center;justify-content:center}
.phone-mascot .avatar{width:135px;height:157px;filter:drop-shadow(0 8px 8px #092f2b40);transform:rotate(6deg)}
.phone-mascot>span{position:absolute;bottom:-2px;white-space:nowrap;left:50%;transform:translateX(-50%) rotate(-5deg);font-size:11px;font-weight:700;color:#356950;background:#fff7d9;padding:4px 9px;border-radius:7px}
.phone-hero .button.cream{width:100%;min-height:54px;font-size:16px;margin-top:23px;border-radius:13px;padding:12px 19px;position:relative}
.phone-modes{display:grid;gap:12px;margin:18px 0}
.phone-mode{display:flex;align-items:center;gap:13px;text-align:left;width:100%;background:var(--paper);border:1px solid var(--line);padding:17px;border-radius:17px;min-height:85px}
.phone-mode:active{background:#eff3ea}
.phone-mode .mode-icon{width:42px;height:42px;border-radius:13px}
.phone-mode-copy{flex:1;min-width:0}
.phone-mode-copy b{display:block;font-size:16px}
.phone-mode-copy small{display:block;font-size:12px;color:#71806e;margin-top:3px}
.phone-mode-count{font-size:25px;font-weight:700;white-space:nowrap;line-height:1}
.phone-mode-count small{font-size:11px;font-weight:400;margin-left:3px}
.phone-mode>.icon{width:16px;color:#7b8c75}
.phone-progress{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 0;background:#edf1e6;border-radius:16px}
.phone-progress>div{text-align:center}
.phone-progress>div+div{border-left:1px solid #d9e0d0}
.phone-progress strong{display:block;font-size:23px;line-height:1.4;color:var(--green)}
.phone-progress small{font-size:11px;font-weight:500;margin-left:4px;color:#65775f}
.phone-progress span{font-size:11px;color:#64715d}
.home-help{min-height:44px;justify-content:center;width:100%;font-size:12px;margin-top:8px;gap:7px}

@media(max-width:760px){
 :root{font-size:16px;--muted:#6c796b}
 body{overflow-x:hidden}
 .topbar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));border:0;background:var(--bg)}
 .mobile-brand{font-size:16px;gap:8px}.mobile-brand img{width:30px;height:30px}
 .daily-count{font-size:11px;padding:4px 8px}.daily-count .icon{display:none}
 .topbar-right{gap:2px}.mobile-settings{width:44px;height:44px}.mobile-settings .icon{width:21px;height:21px}
 .main{padding:16px max(18px,env(safe-area-inset-right)) 16px max(18px,env(safe-area-inset-left));max-width:540px}
 .home-greeting{margin-bottom:19px;gap:8px}.home-greeting h1{font-size:24px}.home-greeting p{font-size:12px}
 .home-greeting .avatar{width:57px;height:57px}.home-greeting .eyebrow{font-size:10px}
 .phone-hero{padding:20px;border-radius:20px}.phone-hero h2{font-size:34px;margin:5px 0}
 .phone-hero .hero-label{font-size:11px}.phone-hero p{font-size:12px;line-height:1.9}
 .phone-mascot{width:99px}.phone-mascot .avatar{width:104px;height:128px}.phone-mascot>span{font-size:9px;bottom:-1px;padding:4px 7px}
 .phone-hero .button.cream{margin-top:18px;min-height:52px;font-size:15px}
 .phone-modes{gap:10px;margin:15px 0}.phone-mode{min-height:78px;padding:13px;gap:11px;border-radius:16px}
 .phone-mode .mode-icon{width:38px;height:38px}.phone-mode .mode-icon .icon{width:21px;height:21px}
 .phone-mode-copy b{font-size:15px}.phone-mode-copy small{font-size:11px}.phone-mode-count{font-size:23px}
 .phone-mode>.icon{width:15px}.phone-progress{padding:12px 0}.phone-progress strong{font-size:22px}.phone-progress span{font-size:10px}
 .home-help{font-size:10px;margin-top:4px;gap:5px}
 .app-footer{padding:8px 18px calc(94px + env(safe-area-inset-bottom));border:0;justify-content:center}
 .app-footer>span{display:none}.app-footer button{font-size:11px;min-height:44px}.app-footer .icon{width:15px;height:15px}
 .mobile-nav{padding:7px max(18px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));gap:8px;background:#fffefbf5}
 .mobile-nav button{min-height:53px;flex:1;font-size:11px;padding:5px 10px;gap:3px;border-radius:13px;max-width:140px;color:#6c7c66}
 .mobile-nav .icon{width:23px;height:23px}
 .button{font-size:14px;min-height:50px;border-radius:12px}.icon-button{min-width:44px;min-height:44px}
 .text-link{min-height:44px;font-size:12px}.text-link .icon{width:17px;height:17px}
 .page-intro h1{font-size:26px}.page-intro p{font-size:13px}.eyebrow{font-size:10px}.outline-pill{font-size:10px}
 .search-box{min-height:50px;border-radius:12px}.search-box input,.library-tools select{font-size:16px}.library-tools select{min-height:50px;border-radius:12px;width:100%}
 .filter-tabs{justify-content:space-between;gap:8px}.filter-tabs button{font-size:14px;min-height:48px;padding:8px 5px}
 .list-heading{font-size:12px;gap:8px}.list-heading .text-link{font-size:12px}
 .library-card{padding:16px 14px;border-radius:14px}.library-card h3{font-size:15px;line-height:1.8}.library-card .small{font-size:11px}.status-chip{font-size:10px}
 .stat-box>span{font-size:12px}.stat-box small{font-size:12px}.panel h2{font-size:16px}.day-column>span,.day-column>small{font-size:12px}
 .category-records>div>span{font-size:12px}.learning-note h3{font-size:14px}.learning-note p{font-size:12px}.learning-note small{font-size:11px}
 .modal-backdrop{padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 .modal{padding:20px;max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .modal-heading{margin-bottom:12px}.modal-heading h2{font-size:18px}.modal>p,.setting-description,.setting-toggle,.help-list{font-size:14px}.help-list p,.settings-note,.about-box p{font-size:12px}
 .danger-link{min-height:44px;font-size:12px}.setting-toggle{min-height:44px}.setting-toggle input{width:24px;height:24px;flex-shrink:0}
 .result-wrap h1{font-size:25px}.result-wrap>p,.result-message p{font-size:13px}.result-wrap .button{font-size:14px}.result-counts span{font-size:13px}.result-wrap>.small{font-size:11px}
 #toast{font-size:12px;bottom:calc(88px + env(safe-area-inset-bottom))}

 /* Fixed-height portrait desk: all actions stay in the thumb zone. */
 .studying .study-main{padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px,env(safe-area-inset-left));max-width:540px}
 .studying .study-heading{height:48px;margin:0;gap:4px;font-size:12px}
 .studying .study-heading>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .studying .study-heading .text-link{font-size:12px;min-height:44px;flex-shrink:0;gap:5px}
 .studying .study-progress{height:20px;margin-bottom:8px;gap:12px}.study-progress>span{font-size:12px}.study-progress b{font-size:15px}
 .studying .study-companion{min-height:43px;margin-bottom:11px;padding:0;gap:9px}
 .studying .study-companion>.avatar{width:41px;height:41px}.studying .study-companion p{font-size:12px}.studying .study-companion .speaker{font-size:10px;display:block;margin:0}
 .studying .card-stage{margin-bottom:20px}
 .studying .flashcard{padding:18px 20px 0;border-radius:21px;box-shadow:0 6px 22px #364d3009;overflow:visible}
 .studying .category-pill,.studying .card-kind{font-size:11px}.studying .category-pill{padding:4px 8px;border-radius:6px}
 .studying .question-side{padding:14px 0 20px}.studying .question-side h1{font-size:25px;line-height:1.8;letter-spacing:.01em;padding:12px 0}
 .studying .question-mark{font-size:30px}.studying .reveal-hint{font-size:13px;min-height:44px;padding:8px 14px;margin-top:12px;background:#f7f8ef}
 .studying .card-bottom{font-size:9px;padding:12px 0 15px}
 .studying .answer-side{padding:12px 0 0}.studying .original-question{display:none}
 .studying .answer-label{font-size:10px}.studying .answer-side h2{font-size:23px;line-height:1.65;margin:6px 0 14px}
 .studying .explanation{font-size:15px;line-height:1.85;color:#4f6149;margin-bottom:14px}
 .studying .criteria-box{padding:12px 11px;gap:7px;margin-top:auto;border-radius:12px}.studying .criteria-box strong{font-size:11px}.studying .criteria-box p{font-size:13px;line-height:1.7}
 .studying .answer-bottom{padding:4px 0;margin-top:10px;min-height:52px;gap:8px}.studying .answer-bottom .text-link,.studying .answer-bottom a{font-size:11px;min-height:44px;display:inline-flex;align-items:center}
 .studying .grade-controls{gap:10px}.studying .grade-button{min-height:68px;border-radius:16px;padding:9px 7px;gap:7px}
 .studying .grade-button b{font-size:16px;white-space:nowrap}.studying .grade-button small{font-size:10px;display:block}.studying .grade-button>.icon{width:21px;height:21px}
 .studying .grade-button.correct{background:#286b55;color:#fffefa;border-color:#286b55}.studying .grade-button.correct:hover:not(:disabled){background:#205944}
 .studying .grade-button.wrong{background:#fbede6;color:#9a4b35}.studying .grade-controls.waiting .grade-button{opacity:.42}
 .studying .study-bottom{margin:3px 0 0;min-height:44px;font-size:10px;gap:7px}.studying .study-bottom .text-link{font-size:12px;min-height:44px}
 .studying .study-bottom>span:not(.keyboard-hint){display:block}.studying .keyboard-hint{display:none}
}

@media(max-width:760px) and (max-height:740px){
 .studying .study-heading{height:44px}.studying .study-progress{height:18px;margin-bottom:5px}
 .studying .study-companion{min-height:32px;margin-bottom:7px}.studying .study-companion>.avatar{width:32px;height:32px}.studying .study-companion .speaker{display:none}.studying .study-companion p{font-size:11px}
 .studying .flashcard{padding:13px 17px 0}.studying .original-question{display:none}.studying .answer-side{padding-top:8px}
 .studying .answer-side h2{font-size:21px;line-height:1.55;margin:4px 0 10px}.studying .explanation{font-size:14px;line-height:1.8;margin-bottom:10px}
 .studying .criteria-box{padding:9px 10px}.studying .criteria-box p{font-size:12px}.studying .criteria-box strong{font-size:10px}
 .studying .answer-bottom{margin-top:7px;min-height:46px;padding:0}.studying .card-stage{margin-bottom:17px}
 .studying .question-side{padding:10px 0 12px}.studying .question-side h1{font-size:23px;line-height:1.7}
 .studying .grade-button{min-height:60px}.studying .study-bottom{margin-top:0}
}
@media(max-width:360px){
 .mobile-brand{font-size:14px}.daily-count{display:none}.main{padding-left:14px;padding-right:14px}
 .home-greeting h1{font-size:22px}.home-greeting p{font-size:11px}.home-greeting .avatar{width:48px;height:48px}
 .phone-hero{padding:17px}.phone-hero .hero-label{font-size:10px}.phone-hero h2{font-size:31px}.phone-hero p{font-size:11px}.phone-mascot{width:80px}.phone-mascot .avatar{width:89px;height:115px}.phone-mascot>span{font-size:8px}
 .phone-mode{gap:8px;padding:12px}.phone-mode-copy b{font-size:14px}.phone-mode-copy small{font-size:10px}.phone-mode-count{font-size:21px}.phone-mode>.icon{display:none}
 .studying .study-bottom>span:not(.keyboard-hint){font-size:9px}.studying .grade-button b{font-size:14px}
 .studying .answer-bottom .text-link,.studying .answer-bottom a{font-size:10px}
}
@media(max-width:760px) and (max-height:600px){
 .studying .study-companion{display:none}.studying .study-progress{margin-bottom:7px}
 .studying .flashcard{padding:11px 15px 0}.studying .question-mark{font-size:24px}.studying .question-side h1{font-size:21px;line-height:1.7}
 .studying .answer-side h2{font-size:19px;line-height:1.55;margin:4px 0 8px}.studying .explanation{font-size:13px;line-height:1.75;margin-bottom:8px}
 .studying .criteria-box{padding:8px 9px}.studying .criteria-box p{font-size:11px}.studying .criteria-box strong{font-size:10px}
 .studying .grade-button{min-height:54px}.studying .grade-button small{display:none}.studying .study-bottom>span:not(.keyboard-hint){display:none}
}
/* Landscape and enlarged layouts remain readable instead of clipping content. */
@media(max-width:760px) and (max-height:480px){
 body.studying{overflow-y:auto}.studying .workspace,.studying .study-main{height:auto;min-height:100dvh;overflow:visible}
 .studying .card-stage{flex:none;min-height:300px}.studying .flashcard{min-height:300px;height:auto}.studying .question-side{min-height:235px}.studying .answer-side{min-height:230px}.studying .criteria-box{margin-top:16px}
}

/* Vocabulary cards: the hint and revealed term share the same space. */
.word-demo-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:14px 18px;border:1px solid #c6d9bf;border-radius:15px;background:#edf4e5;font-size:15px;font-weight:700;color:#236b56}
.word-demo-entry small{display:block;font-size:11px;font-weight:400;color:#64745a;margin-top:2px}
.word-demo-entry{width:100%;text-align:left}
.studying .term-card{padding:20px 27px 0;overflow:hidden}
.term-card.is-revealed{animation:none}
.term-body{display:flex;flex-direction:column;flex:1;min-height:0;gap:15px}
.term-question{flex:1;display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:0;padding-top:14px}
.term-question-label{font-size:10px;font-weight:700;color:#81916f;letter-spacing:.17em;margin-bottom:13px}
.term-question h1{font-size:27px;line-height:1.75;letter-spacing:.01em;max-width:540px;margin:0 auto;overflow-wrap:anywhere}
.term-answer{flex-shrink:0;height:120px;min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:15px 7px;background:#f3f5e9;border:1px dashed #cbd8bc;border-radius:16px}
.term-answer.revealed{background:#eaf2e4;border:1px solid #c9dac0}
.term-answer-label{font-size:12px;color:#657950;line-height:1.5;flex-shrink:0;text-align:center}
.term-word{font-size:32px;font-weight:800;color:#236b56;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere;width:100%;flex-shrink:0}
.term-word.masked{letter-spacing:.13em;color:#829b6d;font-weight:500}
.term-support{height:112px;min-height:112px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:12px 0}
.term-tap{display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#5e7352;text-align:center}
.term-tap .icon{width:20px;height:20px}.term-tap small{font-size:10px;color:#7a876c;display:block;margin-top:7px}
.term-note{width:100%}.term-note>span{font-size:10px;font-weight:700;color:#7a8c69;display:block;margin-bottom:6px}.term-note p{font-size:14px;line-height:1.85;color:#4f6149}
.term-footer{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e9ecdf;font-size:10px;color:#8a977d}
.term-footer .text-link{font-size:11px;min-height:44px;gap:6px}
@media(max-width:760px){
 .studying .term-card{padding:18px 20px 0}
 .term-body{gap:15px}.term-question{padding-top:12px}.term-question h1{font-size:24px;line-height:1.8}.term-question-label{margin-bottom:13px;font-size:10px}
 .term-answer{height:112px;min-height:112px;padding:13px 7px;gap:8px}.term-word{font-size:clamp(22px,6.15vw,28px)}.term-word.masked{font-size:clamp(20px,5.7vw,26px);letter-spacing:.09em}
 .term-support{height:114px;min-height:114px;padding:12px 0}.term-note p{font-size:14px;line-height:1.85}.term-tap{font-size:12px;gap:7px}.term-tap small{font-size:10px}
}
@media(max-width:760px) and (max-height:740px){
 .studying .term-card{padding:13px 17px 0}.term-body{gap:10px}.term-question{padding-top:10px}.term-question h1{font-size:21px;line-height:1.7}.term-question-label{display:none}
 .term-answer{height:96px;min-height:96px;gap:6px;padding:10px 6px}.term-answer-label{font-size:11px}.term-support{height:92px;min-height:92px;padding:10px 0}.term-note p{font-size:13px;line-height:1.75}.term-footer{height:44px;min-height:44px}
}
@media(max-width:760px) and (max-height:600px){
 .studying .term-card{padding:12px 15px 0}.term-body{gap:8px}.term-question{padding-top:8px}.term-question h1{font-size:19px;line-height:1.7}.term-question-label{margin-bottom:7px;font-size:9px}
 .term-answer{height:96px;min-height:96px;gap:5px;padding:9px 5px}.term-word{font-size:22px}.term-word.masked{font-size:20px}.term-support{height:86px;min-height:86px;padding:9px 0}.term-note p{font-size:12px;line-height:1.7}.term-note>span{font-size:9px;margin-bottom:4px}.term-tap{font-size:10px;gap:5px}.term-tap small{font-size:9px;margin-top:5px}
}
@media(max-width:760px) and (max-height:480px){
 .studying .term-card{min-height:440px}.term-question{min-height:130px}
}

/* A portrait home fits its navigation, practice modes and progress in one screen. */
.home-word-count{display:none}
.priority-note{font-size:11px;line-height:1.7;color:#6c796b;margin:10px 0 16px}
.curriculum-selects{display:flex;gap:8px;min-width:0}
.curriculum-selects select{min-width:0;flex:1}
.rank-tag{display:inline-block;margin-left:6px;border-radius:5px;padding:2px 6px;font-size:10px;font-weight:700;white-space:nowrap}
.rank-A{background:#e4efdf;color:#276247}.rank-B{background:#f7edce;color:#806022}.rank-C{background:#e9ecf4;color:#556583}
.course-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eef1e8;padding:4px;border-radius:12px;margin-bottom:14px}
.course-tabs button{min-height:40px;border-radius:9px;font-size:13px;color:#6c796b}
.course-tabs button[aria-pressed='true']{background:#fffefa;color:var(--green);font-weight:700;box-shadow:0 2px 5px #263a3208}
.course-list{display:grid;gap:9px}
.course-option{display:flex;align-items:center;text-align:left;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;min-height:66px;background:var(--paper)}
.course-option:hover{border-color:#a8c29c}
.course-letter{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:17px;font-weight:800;flex-shrink:0;color:var(--green);background:#eaf1e3}
.course-copy{flex:1;min-width:0}.course-copy b{display:block;font-size:14px;line-height:1.5}
.course-copy small{display:block;font-size:10px;line-height:1.6;color:#748169;margin-top:3px}
.course-count{font-size:21px;font-weight:700;white-space:nowrap;color:var(--green)}.course-count small{font-size:10px;margin-left:3px;font-weight:400}
.course-option>.icon{width:15px;color:#829778}
.course-all{margin-top:14px}
.modal:has(.course-tabs)>.priority-note{margin-bottom:0}
@media(max-width:760px){
 .library-tools .curriculum-selects{width:100%}
 .library-tools .curriculum-selects select{width:50%;font-size:12px;padding:9px 6px}
 .library-tools{margin-bottom:6px}
 .course-option{padding:10px;gap:8px}.course-copy b{font-size:13px}
 .course-count{font-size:19px}.course-option>.icon{display:none}
}
@media(max-width:760px) and (max-height:680px){
 .modal:has(.course-tabs){padding:16px}
 .modal:has(.course-tabs) .modal-heading{margin-bottom:6px}
 .course-tabs{margin-bottom:8px;padding:3px}.course-tabs button{min-height:36px}
 .course-list{gap:6px}.course-option{min-height:48px;padding:7px 9px}
 .course-option[data-action='start-category'] .course-copy small{display:none}
 .course-letter{width:29px;height:29px;font-size:15px}
 .course-all{margin-top:9px;min-height:44px}
 .modal:has(.course-tabs)>.priority-note{font-size:10px;margin-top:8px;line-height:1.5}
}
@media(max-width:760px){
 .home-screen #app{height:100dvh;min-height:0;display:flex;flex-direction:column}
 .home-screen .workspace{flex:1;min-height:0;display:flex;flex-direction:column;width:100%}
 .home-screen .topbar{height:calc(50px + env(safe-area-inset-top));flex-shrink:0}
 .home-screen .main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:8px max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left))}
 .home-screen .phone-home{width:100%;flex:1;min-height:0;margin:0 auto;display:grid;grid-template-rows:auto minmax(144px,1fr) auto auto 44px;gap:clamp(8px,1.6dvh,14px)}
 .home-screen .home-greeting{margin:0;gap:8px}
 .home-screen .home-greeting h1{font-size:23px;line-height:1.4;margin:4px 0}
 .home-screen .home-greeting p{font-size:11px;line-height:1.6}
 .home-screen .home-greeting .avatar{width:48px;height:48px}
 .home-screen .home-greeting .eyebrow{display:flex;align-items:center;gap:10px;letter-spacing:.06em}
 .home-screen .home-word-count{display:inline-block;border-radius:5px;background:#e8f0df;padding:2px 6px;color:var(--green);font-size:10px;font-weight:700;letter-spacing:0}
 .home-screen .word-demo-entry,.home-screen .app-footer{display:none}
 .home-screen .phone-hero{padding:16px 18px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:0;border-radius:20px}
 .home-screen .phone-hero-top{flex:1;min-height:0}
 .home-screen .phone-hero h2{font-size:34px;line-height:1.3;margin:6px 0}
 .home-screen .phone-hero p{font-size:12px;line-height:1.8;max-width:none}
 .home-screen .phone-mascot{width:100px;align-self:center}
 .home-screen .phone-mascot .avatar{width:104px;height:124px}
 .home-screen .phone-mascot>span{bottom:0}
 .home-screen .phone-hero .button.cream{min-height:48px;flex-shrink:0;padding:9px 14px;margin-top:12px}
 .home-screen .phone-modes{grid-template-columns:1fr 1fr;gap:10px;margin:0}
 .home-screen .phone-mode{position:relative;min-height:82px;padding:12px;gap:5px;flex-direction:column;align-items:flex-start;justify-content:center;border-radius:15px}
 .home-screen .phone-mode .mode-icon{width:27px;height:27px;border-radius:8px}
 .home-screen .phone-mode .mode-icon .icon{width:18px;height:18px}
 .home-screen .phone-mode-copy{flex:0}
 .home-screen .phone-mode-copy b{font-size:14px;line-height:1.5}
 .home-screen .phone-mode-copy small,.home-screen .phone-mode>.icon{display:none}
 .home-screen .phone-mode-count{position:absolute;right:12px;top:13px;font-size:23px}
 .home-screen .phone-mode-count small{font-size:10px}
 .home-screen .phone-progress{padding:9px 0;border-radius:14px}
 .home-screen .phone-progress strong{font-size:21px;line-height:1.2}
 .home-screen .phone-progress span{font-size:10px;line-height:1.4}
 .home-screen .home-help{margin:0;min-height:44px;font-size:10px;gap:5px;padding:0}
 .home-screen .mobile-nav{position:static;flex-shrink:0;padding:4px max(18px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
 .home-screen .mobile-nav button{min-height:48px;gap:2px;padding:3px 10px}
 .home-screen .mobile-nav .icon{width:21px;height:21px}
 .home-screen .notice{margin:0 0 8px;flex-shrink:0}
 /* Important storage notices and enlarged text may extend the page rather than clip. */
 .home-screen:has(.notice) #app{height:auto}
}
@media(max-width:760px) and (max-height:680px){
 .home-screen .home-greeting p{display:none}
 .home-screen .home-greeting h1{font-size:21px;margin:3px 0 0}
 .home-screen .phone-home{gap:8px}
 .home-screen .phone-hero{padding:12px 15px}
 .home-screen .phone-hero h2{font-size:30px;margin:4px 0}
 .home-screen .phone-hero p{font-size:11px}
 .home-screen .phone-mascot{width:84px}
 .home-screen .phone-mascot .avatar{width:88px;height:96px}
 .home-screen .phone-mode{min-height:74px;padding:9px 11px;gap:3px}
 .home-screen .phone-mode-count{top:10px;right:11px;font-size:21px}
 .home-screen .phone-progress{padding:7px 0}
}
@media(max-width:760px) and (max-height:600px){
 .home-screen .topbar{height:calc(46px + env(safe-area-inset-top))}
 .home-screen .main{padding-top:4px;padding-bottom:4px}
 .home-screen .phone-home{gap:6px;grid-template-rows:auto minmax(130px,1fr) auto auto 44px}
 .home-screen .home-greeting .avatar{width:42px;height:42px}
 .home-screen .home-greeting h1{font-size:20px}
 .home-screen .phone-hero{padding:10px 14px}
 .home-screen .phone-hero h2{font-size:28px}
 .home-screen .phone-hero p,.home-screen .phone-mascot>span{display:none}
 .home-screen .phone-mascot .avatar{width:76px;height:74px}
 .home-screen .phone-hero .button.cream{min-height:44px;margin-top:8px}
 .home-screen .phone-mode{min-height:70px}
 .home-screen .phone-mode-copy b{font-size:13px}
 .home-screen .phone-progress strong{font-size:19px}
}
@media(max-width:760px) and (max-height:480px){
 .home-screen #app{height:auto}
}
