/* v19: night tutor, accessible install guide and responsive learning workspace. */
#phone > .screen{touch-action:pan-y pinch-zoom;overflow-anchor:none}
.home-logo{border:0;background:transparent;padding:0;width:48px;height:48px;flex:none;cursor:pointer}.home-logo img{width:48px;height:48px;object-fit:contain}
.top [data-act="logo-home"]{cursor:pointer}.save-phone{margin:0 24px 18px}
html.chat-open19,html.chat-open19 body{overflow:hidden!important;overscroll-behavior:none}
#phone .tutor-dialog{position:fixed!important;inset:auto 0 auto 0!important;top:var(--chat-top,0px)!important;height:var(--chat-height,100dvh)!important;max-height:var(--chat-height,100dvh)!important;width:100%!important;z-index:1001!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 85% 0%,#fa822818,transparent 45%),radial-gradient(ellipse at 0% 15%,#28367f88,transparent 60%),#070b26!important;color:#eff5ff!important;padding:max(12px,env(safe-area-inset-top)) 0 0!important;display:flex!important;flex-direction:column!important;transform:none!important;box-sizing:border-box}
#phone .tutor-dialog header{flex:none;background:transparent;border-bottom:1px solid #eff5ff18;padding:10px 18px;display:flex;align-items:center;gap:12px}#phone .tutor-dialog header img{width:48px;height:48px;object-fit:contain}
#phone .tutor-dialog .msgs{padding:20px 16px;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px}
#phone .tutor-dialog .m{flex:none;max-width:88%;background:#172242;color:#eff5ff;border:1px solid #8fa9ff20;border-radius:20px 20px 20px 6px;padding:14px 18px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}#phone .tutor-dialog .m.me{align-self:flex-end;background:#352644;border:1px solid #fa822838;border-radius:20px 20px 6px 20px}
#phone .tutor-dialog form{display:flex;align-items:flex-end;gap:10px;flex:none;padding:12px 12px max(12px,env(safe-area-inset-bottom));margin:0;background:#101932;border-top:1px solid #eff5ff18}
#phone .tutor-dialog textarea{font:inherit;font-size:16px;line-height:24px;min-width:0;flex:1;min-height:48px;max-height:120px;resize:none;border:1px solid #b9c8ff35;border-radius:22px;padding:11px 14px;background:#070e25;color:#eff5ff;outline-offset:0;margin:0;overflow-y:auto}
#phone .tutor-dialog form button{width:48px;height:48px;min-width:48px;border:0;border-radius:50%;background:#fa8228;color:#120d20;display:grid;place-items:center;font-size:24px;font-weight:800;padding:0}
#phone .tutor-dialog form .chat-mic{background:#243055;color:#eff5ff;touch-action:none}#phone .tutor-dialog .chat-mic.recording{background:#6d2940;box-shadow:0 0 20px #fa822844}
#phone .tutor-dialog .read-reply{font-size:12px;display:flex;align-items:center;gap:8px;padding:5px 18px;color:#b9c6df}.read-reply input{accent-color:#fa8228}.chat-status{flex:none;padding:0 18px;font-size:13px;color:#faaf75}.chat-status:empty{display:none}
.heard{font-size:20px;line-height:1.6}.missed{color:#ffc3ae;background:#b13a4b33;border-bottom:2px solid #fa8228;padding:1px 3px;border-radius:4px}
#phone .install-guide{gap:24px;padding:24px}.install-guide h1{font-size:34px;margin:0}.install-step{display:flex;align-items:center;gap:18px}.install-icon{width:72px;min-width:72px;height:84px;display:grid;place-items:center;color:#fa8228;font-size:58px}.install-step p{font-size:23px;font-weight:600;line-height:1.35;margin:0}.install-step small{display:block;color:#b9c6df;font-size:14px;margin-bottom:4px}
.swipe-commit19 .screen{animation:none!important}.swipe-commit19 .screen.ghost{display:none}
body.phone-app .stage{min-height:100vh;display:flex;padding:24px}body.phone-app .phone{width:390px;height:844px;border-radius:44px;box-shadow:0 0 0 10px #12152e,0 0 0 11px #2a2f57}body.phone-app .side{display:none}
body.wide-app .stage{padding:0;display:block;min-height:100vh}body.wide-app .side{display:none}body.wide-app .phone{width:100%;height:100dvh;border-radius:0;box-shadow:none;max-width:none}body.wide-app.private-app19 #phone>.screen{padding-left:228px}body.wide-app .desktop-nav{position:fixed;left:0;top:0;bottom:0;width:204px;display:flex;flex-direction:column;gap:12px;padding:28px 18px;background:#080d25e8;border-right:1px solid #eff5ff16;z-index:8}body.wide-app .desktop-nav button{background:none;border:0;text-align:left;padding:14px 8px;border-radius:14px;font:inherit;color:#eff5ff}body.wide-app .desktop-nav button:hover{background:#fa822812}body.wide-app .desktop-nav .brand{font-size:21px;margin-bottom:24px}
body.wide-app .screen>.pad{width:min(1100px,100%);align-self:center}body.wide-app .screen>.top{width:min(1180px,100%);align-self:center}body.wide-app .lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.wide-app .lesson-screen .lfull:not(.fs){display:grid;grid-template-columns:minmax(0,1fr) 288px;grid-template-rows:minmax(0,1fr) auto;align-items:start;gap:22px;width:min(1180px,100%);align-self:center;min-height:0;flex:1;padding:16px 28px 28px}body.wide-app .lesson-screen .player.rp{grid-column:1;grid-row:1/3;width:100%;height:100%;min-height:0;max-width:none;display:flex;flex-direction:column}body.wide-app .lesson-screen .rpscr{width:100%;height:100%!important;aspect-ratio:auto;max-height:none}body.wide-app .lesson-screen #lessonframe{width:100%;height:100%}body.wide-app .lesson-screen .tools{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:50px}body.wide-app .lesson-screen .tool{font-size:15px;padding:20px 8px}body.wide-app .lesson-screen .lfull>.btn{grid-column:2;grid-row:2}body.wide-app .lesson-screen .scene-nav{grid-column:2;grid-row:1;align-self:start;height:40px;margin:0}body.wide-app .lesson-screen .rphint{font-size:12px}body.wide-app .activity>.pad{max-width:780px}body.wide-app .botnav{left:228px}body.wide-app .lfull.fs{padding:0!important}
@media(min-width:1300px){body.wide-app .lessons{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#phone .screen,#phone .screen:before,#phone .btn{animation:none!important;transition:none!important}}

.activity .heard{max-height:110px;overflow:auto;flex:none;margin:4px 0}.activity .heard+p{font-size:15px;margin:4px 0}.activity .heard~.note{font-size:12px;margin:4px 0;max-height:70px;overflow:auto}
body.wide-app .lesson-screen .player.rp{max-width:none!important;grid-column:1;grid-row:1/3;min-height:0;height:100%;display:flex;flex-direction:column}body.wide-app .lesson-screen .rpscr{flex:1;min-height:0;height:100%!important}body.wide-app .lesson-screen .lfull.fs{display:flex;width:100%}body.wide-app .lesson-screen .lfull.fs .scene-nav{position:absolute;bottom:76px}

#phone .tutor-dialog{gap:0!important;animation:none!important;isolation:isolate}
