.mobileStudyNav,.mobilePager,#mobileQuestionControls,#mobileAnswerDock,#mobileReviewLabel{display:none}
html[data-device="iphone"] a[href*="/cbt"],html[data-device="ipad"] a[href*="/cbt"],html[data-device="iphone"] .cbtPortalText,html[data-device="ipad"] .cbtPortalText{display:none!important}
html[data-device="iphone"] body,html[data-device="ipad"] body{overflow-wrap:anywhere}
html[data-device="iphone"] input,html[data-device="iphone"] textarea,html[data-device="iphone"] select,html[data-device="ipad"] input,html[data-device="ipad"] textarea,html[data-device="ipad"] select{font-size:16px!important}
html[data-device="iphone"] button,html[data-device="ipad"] button{touch-action:manipulation}
html[data-device="iphone"] .ghost,html[data-device="ipad"] .ghost{min-height:44px}
html[data-device="iphone"] .appHeader,html[data-device="ipad"] .appHeader{padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));height:auto;min-height:64px;gap:12px}
html[data-device="iphone"] .appHeader h1{font-size:17px}html[data-device="iphone"] .appHeader .kicker{font-size:8px}html[data-device="iphone"] .headerRight{display:flex;gap:5px}html[data-device="iphone"] .headerRight button{padding:8px 10px;font-size:12px}
html[data-device="iphone"] #home,html[data-device="iphone"] #sectionScreen,html[data-device="iphone"] #statsScreen{padding:14px}
html[data-device="iphone"] .hero{grid-template-columns:48px 1fr;padding:18px;gap:12px;border-radius:20px}html[data-device="iphone"] .heroMark{width:48px;height:48px;font-size:26px;border-radius:14px}html[data-device="iphone"] .hero h2{font-size:24px}
html[data-device="iphone"] .homeGrid,html[data-device="iphone"] .listGrid,html[data-device="iphone"] .chapterGrid{grid-template-columns:minmax(0,1fr)!important}html[data-device="iphone"] .tile{padding:18px}html[data-device="iphone"] .tile strong{font-size:18px}
html[data-device="iphone"] .syncPanel,html[data-device="iphone"] .practiceResultPanel,html[data-device="iphone"] .learningPanel{padding:18px;margin:14px;border-radius:18px}html[data-device="iphone"] .practiceSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-device="iphone"] .studyShell,html[data-device="ipad"] .studyShell{height:auto!important;min-height:calc(100dvh - 170px);padding:12px;padding-bottom:calc(110px + env(safe-area-inset-bottom));align-items:start}
html[data-device="iphone"] .leftPane,html[data-device="ipad"] .leftPane{height:auto;min-height:0;margin:0;overflow:visible;border-radius:18px}
html[data-device="iphone"] .rightPane,html[data-device="ipad"] .rightPane{display:block;min-width:0}
html[data-device="iphone"] .questionList,html[data-device="ipad"] .questionList{display:block;overflow:visible;padding:16px;font-size:18px}
html[data-device="iphone"] .qCard,html[data-device="ipad"] .qCard{display:none}
html[data-device="iphone"] .qCard.selected,html[data-device="ipad"] .qCard.selected{display:block;padding:0;background:transparent!important;border:0!important;outline:none!important}
html[data-device="iphone"] .qText,html[data-device="ipad"] .qText{line-height:1.95;font-size:18px}
html[data-device="iphone"] .qMiniResult,html[data-device="ipad"] .qMiniResult,html[data-device="iphone"] .problemToolbar,html[data-device="ipad"] .problemToolbar{display:none}
html[data-device="iphone"] .qSection,html[data-device="ipad"] .qSection{width:100%;order:3}
html[data-device="iphone"] .qWrongCount,html[data-device="ipad"] .qWrongCount{font-size:11px;color:#a4b1c5;margin-left:auto}
html[data-device="iphone"] .qEditBtn,html[data-device="ipad"] .qEditBtn{padding:8px;font-size:12px;min-height:36px}
html[data-device="iphone"] .mobileStudyNav,html[data-device="ipad"] .mobileStudyNav{display:flex;flex-direction:column;gap:10px;padding:12px 16px 0}
.mobileStudyNav>div:first-child{display:flex;align-items:center;justify-content:space-between;color:#d7e9f6}.mobileStudyTabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobileStudyTabs button[aria-pressed="true"]{border-color:#78c6e7!important;background:#23445d!important}
html[data-device="iphone"] #mobileQuestionControls,html[data-device="ipad"] #mobileQuestionControls{display:block;padding:14px;border-bottom:1px solid #34465b}
#mobileQuestionControls .miniHeader{display:flex;flex-wrap:wrap;align-items:center;gap:8px}#mobileQuestionControls .kicker{display:none}#mobileQuestionControls h2{font-size:18px}#mobileQuestionControls .timerToggle{margin-left:auto;font-size:12px}#mobileQuestionControls .questionTimer{font-size:12px}#mobileQuestionControls .answerBadge{font-size:11px;padding:6px}
html[data-device="iphone"] .mobilePager,html[data-device="ipad"] .mobilePager{display:flex;padding:12px;justify-content:space-between;gap:12px;border-top:1px solid #34465b}
html[data-device="iphone"] #mobileAnswerDock,html[data-device="ipad"] #mobileAnswerDock{display:block;position:fixed;left:0;right:0;bottom:0;z-index:25;padding:12px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:calc(12px + env(safe-area-inset-bottom));background:rgba(12,21,33,.97);border-top:1px solid #34465b;backdrop-filter:blur(16px)}
#mobileAnswerDock .choiceBlock{max-width:760px;margin:0 auto;gap:8px}#mobileAnswerDock .choiceBtn{min-height:56px;padding:14px 6px;font-size:18px;border-radius:14px}#mobileContinue{display:none;width:100%;min-height:54px;font-size:18px}
button:disabled{opacity:.45;cursor:default}
html[data-device="iphone"] #study[data-mobile-tab="question"] .rightPane{display:none}html[data-device="iphone"] #study[data-mobile-tab="review"] .leftPane{display:none}html[data-device="iphone"] #study[data-mobile-tab="review"] #mobileAnswerDock .choiceBlock{display:none}html[data-device="iphone"] #study[data-mobile-tab="review"] #mobileContinue{display:block}
html[data-device="iphone"] #mobileReviewLabel,html[data-device="ipad"] #mobileReviewLabel{display:block;color:#b5d7ea;font-size:12px;margin:0 0 12px}
html[data-device="iphone"] .commandPanel,html[data-device="ipad"] .commandPanel{overflow:visible;padding:16px;border-radius:18px;margin-bottom:12px}html[data-device="iphone"] .explanation,html[data-device="ipad"] .explanation{max-height:none;overflow:visible;font-size:16px;line-height:1.9}html[data-device="iphone"] .memoPanel,html[data-device="ipad"] .memoPanel{padding:16px;overflow:visible;min-height:220px}html[data-device="iphone"] #recordMemo,html[data-device="iphone"] #aiMemo,html[data-device="ipad"] #recordMemo,html[data-device="ipad"] #aiMemo{min-height:130px}
html[data-device="ipad"] .studyShell{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:16px}html[data-device="ipad"] .mobileStudyTabs{display:none}html[data-device="ipad"] .homeGrid,html[data-device="ipad"] .listGrid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-device="ipad"] #mobileAnswerDock .choiceBlock{max-width:650px}html[data-device="ipad"] .qText{font-size:19px}html[data-device="ipad"] .chapterGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:650px){html[data-device="ipad"] .studyShell{display:block!important}html[data-device="ipad"] .rightPane{margin-top:18px}}
@media(orientation:landscape) and (max-height:520px){html[data-device="iphone"] .appHeader{position:static}html[data-device="iphone"] #mobileAnswerDock .choiceBtn{min-height:44px;padding:9px;font-size:16px}html[data-device="iphone"] .studyShell{padding-bottom:86px}}

.mobileOfflineState{font-size:10px;color:#a4b1c5;margin-right:8px}.mobileStudyNav>div:first-child{flex-wrap:wrap;gap:8px}
html[data-device="iphone"] a[href*="/exam"],html[data-device="ipad"] a[href*="/exam"]{display:none!important}
