.phone-nav,.phone-course{display:none}
@media(max-width:767px), (max-height:500px) and (pointer:coarse){
 html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{font-size:14px;-webkit-text-size-adjust:100%}
 #app{min-width:0!important;min-height:0!important;width:100%;height:var(--phone-height,100dvh);padding-top:env(safe-area-inset-top);overflow:hidden}
 .app-header{height:60px!important;min-height:60px;padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));display:flex!important;flex-wrap:nowrap!important;gap:10px!important;align-items:center}
 .brand{padding:0}.brand-mark{width:78px!important;height:32px!important}.header-line{display:none}.course-heading,#outcome-button{display:none!important}
 #course-button{height:43px!important;width:112px!important;padding:8px 18px!important;font-size:9px!important;margin:0!important;gap:3px}#course-button span{font-size:14px!important}
 #theme-button{margin-left:auto!important;width:42px;min-width:42px;height:42px;min-height:42px;border:1px solid var(--line)!important;padding:0;border-radius:50%!important;gap:0}#theme-button-label{display:none}.theme-swatch{width:20px;height:20px}#about-button{width:30px;min-width:30px;height:44px;font-size:20px;padding:0}.icon-button{border-radius:50%}
 .phone-course{display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;min-height:30px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));font-size:9px;color:var(--muted);border-bottom:1px solid var(--line)}.phone-course span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-course span:last-child{flex-shrink:0}
 .workspace{display:block!important;padding:0!important;min-height:0!important;flex:1;width:100%;overflow:hidden}.column-divider,.study-divider{display:none!important}
 .dialogue{height:100%;width:100%;padding:0 16px 10px!important;min-height:0;overflow:hidden;display:flex!important}.dialogue-heading{height:48px;min-height:48px;flex-shrink:0}.dialogue-heading .eddie-name{font-size:10px!important}.dialogue-heading .panel-index{font-size:9px}#ask-eddie{width:100px;height:40px}
 .companion{height:137px;min-height:100px;max-height:155px;margin:5px 0 0;gap:17px;flex-shrink:1;padding:0 8px}.companion h1{font-size:30px;line-height:1.06;letter-spacing:-1.25px}#companion-avatar{width:34%;min-width:92px}.companion-copy{min-width:0}.sticker.smile{height:26px;width:26px;font-size:20px;right:15px;top:-18px}.floating-diamond{width:32px;height:15px;bottom:-17px}.online{font-size:9px;margin-top:9px}
 .messages{padding:17px 2px 12px 0!important;gap:18px;min-height:50px;scroll-padding-bottom:12px;overscroll-behavior:contain}.message{font-size:14px!important;line-height:1.6}.message-who{font-size:8px}.message.student{padding:12px 14px!important;max-width:93%!important}
 .message-form{padding:10px 11px 7px!important;margin-top:3px}.message-form textarea{font-size:16px!important;min-height:38px;line-height:1.4;max-height:95px}.compose-actions{gap:3px}.compose-actions .icon-button{min-width:40px;min-height:40px;width:40px;height:40px}.compose-actions small{font-size:8px;margin-left:0}#send-button{height:40px;width:40px;min-width:40px;font-size:26px}.attachment-chips{padding:4px 0;max-height:70px;overflow:auto}.file-chip{min-height:36px;font-size:10px}
 .study-root{height:100%;width:100%;min-height:0;display:none}.study-layout,.study-layout.board-only{display:block!important;width:100%;height:100%;overflow:hidden}.study-reader{display:block!important;height:100%;width:100%;padding:0 16px;overflow-y:auto;background:var(--bg);scrollbar-width:thin;overscroll-behavior:contain}.study-reader-top{height:52px;min-height:52px;padding:0;font-size:10px;position:sticky;top:0;z-index:5}.study-reader-top>span{font-size:10px}.study-reader-top #lesson-button{height:40px;min-width:97px;font-size:10px!important}.study-reader-top .panel-index{margin-right:11px}
 .reader-tabs{top:52px;padding:12px 0;gap:8px;background:var(--bg);z-index:4;min-height:62px}.reader-tabs [data-reader=text],.reader-tabs [data-reader=materials]{min-height:40px;padding:8px 13px;font-size:11px}.reader-tabs [data-reader=task]{height:40px;width:110px;font-size:10px}.reader-tabs #font-size{display:block!important;min-width:40px;min-height:40px;font-size:14px;margin-left:auto;padding:6px}
 .study-article{font-size:max(16px,var(--reader-font));line-height:1.8;padding:18px 0 65px;max-width:600px}.study-article h2{font-size:32px;line-height:1.12;letter-spacing:-1px;max-width:100%;margin-top:12px}.study-article h3{font-size:23px}.study-kicker{font-size:9px!important;letter-spacing:1px}.study-source{font-size:11px}.study-article blockquote{font-size:20px;padding:22px}.study-source-link{font-size:12px;min-height:44px}.study-selection{bottom:20px;padding-right:0}.study-selection button{min-height:44px;padding:11px 20px;font-size:13px;border-radius:50px}.study-article li{margin-bottom:15px}.study-article .document-page{max-width:100%}.study-eddie{display:none!important}.back-link{min-height:44px;font-size:13px}
 .study-board{height:100%;width:100%;padding:0 16px;display:flex!important;min-height:0;border:0!important;overflow:hidden}.board-heading{height:106px;min-height:106px;padding-top:8px;padding-bottom:0;flex-shrink:0;align-items:flex-start}.board-eyebrow.shape-wave{height:34px;min-width:153px;font-size:10px;margin-bottom:12px}.board-heading h2{font-size:26px;max-width:275px;line-height:1.12}.board-heading .orange{width:32px;height:32px;right:-35px;top:-5px;font-size:20px}.board-max{min-width:44px;min-height:44px;margin-top:3px;font-size:25px}.board-toolbar{flex-shrink:0;align-self:flex-start;margin-bottom:12px;gap:1px;padding:3px;max-width:100%;border-radius:50px}.board-toolbar button{min-width:42px;min-height:42px;padding:8px;font-size:11px}.board-toolbar svg{width:18px;height:18px}.board-toolbar [data-tool=eraser]{font-size:0;gap:0}.board-toolbar [data-add-note]{font-size:11px;padding-inline:9px;gap:5px;min-width:42px}.board-toolbar-rule{margin:0 2px}.board-viewport{min-height:0;flex:1;margin-inline:-16px;width:calc(100% + 32px)}.board-world{top:15px}.board-note{max-width:calc(100vw - 60px)}.board-note textarea{font-size:16px!important;line-height:1.6}.note-handle{font-size:10px;min-height:40px}.note-remove{min-width:32px;min-height:40px}.board-bottom{left:11px;right:11px;bottom:32px}.board-save{font-size:8px;max-width:115px}.board-zoom{border-radius:50px}.board-zoom button{min-width:38px;min-height:42px;font-size:21px}.board-zoom output{font-size:11px;min-width:40px}.board-hint{bottom:10px;left:14px;font-size:8px}
 body[data-phone-view=dialogue] .study-root{display:none!important}body[data-phone-view=materials] .dialogue,body[data-phone-view=board] .dialogue{display:none!important}body[data-phone-view=materials] .study-root,body[data-phone-view=board] .study-root{display:block!important}body[data-phone-view=materials] .study-board{display:none!important}body[data-phone-view=board] .study-reader{display:none!important}
 .app-footer{display:none!important}.phone-nav{display:flex;align-items:center;justify-content:space-around;height:calc(65px + env(safe-area-inset-bottom));min-height:calc(65px + env(safe-area-inset-bottom));padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--bg);border-top:1px solid var(--line);flex-shrink:0;z-index:8}.phone-nav button{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:none;color:var(--muted);font-size:10px;min-width:88px;min-height:54px;position:relative;padding:3px 10px;border-radius:0}.phone-nav button[aria-pressed=true]{color:var(--text)}.phone-tab-icon{position:relative;display:grid;place-items:center;font-size:17px;height:23px;width:48px;isolation:isolate;color:var(--muted)}.phone-tab-icon:before{content:"";position:absolute;inset:0;background:var(--surface);z-index:-1}.tab-cloud:before{mask:var(--cloud-mask) center/100% 100% no-repeat;-webkit-mask:var(--cloud-mask) center/100% 100% no-repeat}.tab-diamond:before{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.tab-wave:before{mask:var(--wave-mask) center/100% 100% no-repeat;-webkit-mask:var(--wave-mask) center/100% 100% no-repeat}.phone-nav button[aria-pressed=true] .tab-cloud:before{background:var(--yellow)}.phone-nav button[aria-pressed=true] .tab-cloud{color:var(--on-yellow,#111)}.phone-nav button[aria-pressed=true] .tab-diamond:before{background:var(--purple)}.phone-nav button[aria-pressed=true] .tab-diamond{color:var(--on-purple,#fff)}.phone-nav button[aria-pressed=true] .tab-wave:before{background:var(--green)}.phone-nav button[aria-pressed=true] .tab-wave{color:var(--on-green,#fff)}
 body #theme-dialog,body #modal{width:calc(100% - 24px);max-width:600px!important;max-height:calc(var(--phone-height,100dvh) - 32px - env(safe-area-inset-top));margin:auto;padding:20px 17px;overflow-y:auto;overscroll-behavior:contain;box-shadow:5px 5px 0 #694afe30}.modal-heading{margin-bottom:15px;gap:10px}.modal-heading .icon-button{min-height:44px;min-width:44px;font-size:25px}.modal-heading h2,#theme-dialog h2{font-size:26px;line-height:1.15}.modal-heading .eyebrow{font-size:9px}#theme-dialog-description{font-size:12px;margin-bottom:12px}.appearance-tabs{margin-bottom:12px}.appearance-tabs button{font-size:13px;min-height:44px}.setting-label{margin:17px 0 11px}.surface-options button{font-size:13px;min-height:44px}.palette-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.palette-card{padding:10px 12px 12px;min-height:110px}.palette-card strong{font-size:12px}.palette-figures{height:65px;margin-bottom:5px}.sample-diamond{width:52px;height:24px}.sample-cloud{width:64px;height:30px;top:19px}.sample-wave{height:17px;width:64px}.theme-dialog-footer{margin-top:19px;gap:10px;font-size:9px}.theme-dialog-footer .primary-button{padding:10px 15px;min-height:44px;font-size:12px;flex-shrink:0}.mascot-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mascot-card-portrait{height:135px}.mascot-card-copy{padding:10px}.mascot-card-copy strong{font-size:13px}.mascot-card-copy small{font-size:10px}.animal-options-details{font-size:12px}.animal-options-details summary{min-height:44px;display:flex;align-items:center}#modal-body p{font-size:14px;line-height:1.6}.territory-map{width:100%;height:auto;max-height:45vh}.outcome-radar{width:100%;height:auto;max-height:45vh}.phone-menu{display:flex;flex-direction:column;gap:0}.phone-menu button,.phone-menu a{display:flex;justify-content:space-between;align-items:center;background:transparent;color:var(--text);text-align:left;padding:16px 0;border-bottom:1px solid var(--line);min-height:52px;font-size:14px;text-decoration:none}.phone-menu button span{font-size:20px;color:var(--purple)}#toast{bottom:calc(76px + env(safe-area-inset-bottom));font-size:12px;width:max-content;max-width:calc(100% - 24px);text-align:center;border-radius:15px;padding:12px 15px;z-index:30}
 .phone-keyboard .phone-nav,.phone-keyboard .companion,.phone-keyboard .phone-course{display:none!important}.phone-keyboard .app-header{height:48px!important;min-height:48px}.phone-keyboard .dialogue-heading{height:39px;min-height:39px}.phone-keyboard .messages{min-height:25px}.phone-keyboard .message-form textarea{min-height:30px}.phone-keyboard .dialogue{padding-bottom:6px!important}
}
@media(max-width:370px){.app-header{gap:6px!important;padding-inline:10px}#course-button{width:102px!important}.brand-mark{width:70px!important}.companion{height:112px;min-height:90px}.companion h1{font-size:27px}.reader-tabs{gap:5px}.reader-tabs [data-reader=task]{width:99px}.reader-tabs [data-reader=text],.reader-tabs [data-reader=materials]{font-size:10px;padding-inline:10px}.reader-tabs #font-size{min-width:33px}.board-toolbar [data-add-note]{font-size:0;gap:0;padding:8px}.board-toolbar button{min-width:42px}.board-heading h2{font-size:24px}}
@media(max-height:500px) and (pointer:coarse){.companion,.phone-course{display:none!important}.app-header{height:48px!important;min-height:48px}.phone-nav{height:53px;min-height:53px;padding:2px max(15px,env(safe-area-inset-right)) 2px max(15px,env(safe-area-inset-left))}.phone-nav button{flex-direction:row;gap:9px;min-height:46px}.dialogue-heading{height:38px;min-height:38px}.dialogue{padding-inline:max(20px,env(safe-area-inset-left))!important}.study-reader{padding-inline:max(20px,env(safe-area-inset-left))}.board-heading{height:62px;min-height:62px;display:flex;align-items:center;padding-top:0}.board-heading>div{display:flex;gap:20px;align-items:center}.board-eyebrow.shape-wave{margin:0}.board-heading h2{font-size:24px}.board-toolbar{position:absolute;top:71px;left:20px}.study-board .board-viewport{margin-top:0}.board-world{top:65px}}
