/* The artwork is drawn for this light palette, on every device. */
:root{color-scheme:light;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.lesson-nav button{touch-action:manipulation}
.lesson-screen[data-waiting] #hook-demo-control,.lesson-screen[data-waiting] #casino-control{visibility:hidden}
@media(max-width:650px){
 main{padding:8px!important;height:100svh!important}
 main>section.lesson-screen{height:calc(100svh - 16px)!important;padding:16px!important;border-radius:16px}
 .lesson-screen>.lesson-body{height:calc(100% - 68px)!important;scroll-padding:16px}
 main>section.lesson-screen>.lesson-nav{left:16px;right:16px;bottom:max(10px,env(safe-area-inset-bottom));height:48px;gap:8px;grid-template-columns:auto 1fr auto}
 main .lesson-nav .next{min-width:106px!important;height:48px!important;color:#fffdf7!important}
 .lesson-nav-aux{min-width:0}.lesson-nav .source{font-size:12px!important}
 #intro h1{font-size:36px}
 .lesson-screen .stage{min-height:0!important;flex:1 1 auto!important;height:100%!important}
 #play>.lesson-body{overflow:hidden!important}
 .character{height:min(57%,330px);width:42%;bottom:22px}
 .character.a{left:2%}.character.bender{right:2%}
 .bubble{bottom:calc(min(57%,330px) + 46px)!important;max-width:calc(100% - 16px);font-size:23px;padding:16px 20px}
 .lesson-screen .bulk-stage{min-height:470px!important;height:100%!important;flex:1 0 auto!important}
 .bulk-actor{width:27%!important;left:0!important;bottom:145px!important}
 .bulk-actor>img{height:180px!important}
 .bulk-speech{font-size:20px!important;max-width:280px!important;left:0!important;bottom:calc(100% + 26px)!important}
 .bulk-mail{top:125px!important;right:0!important;width:67%!important;min-height:220px!important}
 .bulk-clients{bottom:12px!important;gap:5px!important}
 .bulk-client img{height:65px!important}
 .lesson-screen .skill-demo-stage{min-height:500px!important;height:auto!important;flex:1 0 auto!important}
 .skill-workspace{grid-template-columns:64px minmax(0,1fr) 56px;grid-template-areas:'checklist checklist checklist' 'worker letter clients';grid-template-rows:auto 200px;gap:58px 10px;padding:16px 0 10px}
 .live-checklist{max-width:100%;width:252px;padding:25px 16px 12px}
 .live-checklist h2{font-size:20px;margin-bottom:8px}.live-checklist li{padding:6px 0}
 .checklist-robot{height:165px}.skill-worker{align-self:center}
 .skill-aside{bottom:calc(100% + 10px);font-size:18px;max-width:220px;left:0;padding:12px 15px}
 .skill-to{font-size:13px;padding:12px 10px}.skill-recipient{font-size:12px}.skill-address-chip{padding:3px}
 .skill-subject{font-size:13px;padding:12px 10px}.skill-client img{height:73px}
 #skill-demo[data-mood="fed-up"] .live-checklist{transform:translate(-12px,0) rotate(-7deg)}
 .lesson-screen .hook-demo-stage,.lesson-screen .casino-stage{min-height:490px!important;height:auto!important;flex:1 0 auto!important}
 .hook-workspace,.casino-workspace{gap:76px 18px;padding:10px 0 6px;align-items:end}
 .hook-letter{width:240px}.hook-letter-to{min-height:140px;padding:12px}
 .hook-addresses{flex-direction:row;flex-wrap:wrap;gap:5px}.hook-addresses span{font-size:13px}
 .hook-letter-subject{padding:10px 12px;font-size:13px}.hook-letter-body{padding-bottom:8px}
 .hook-agent-pose,.casino-agent-pose{max-width:82px}
 .hook-guard-pose,.casino-guard-pose{max-width:155px;margin:auto}
 .hook-guard-speech,.casino-speech{font-size:18px;max-width:170px;padding:11px 13px}
 .hook-agent-speech{font-size:20px;max-width:180px}
 .casino-workspace>.casino-letter{width:240px}
 .casino-to{padding:10px 12px;font-size:13px}.casino-subject{padding:10px 12px;font-size:13px}
 .casino-body{height:135px;margin-bottom:12px}.casino-ad{min-height:135px;padding:8px}
 .casino-stage .guard-speech{max-width:160px}
 #approval-scene .approval-stage{grid-template-areas:'agent human' 'plan plan';grid-template-rows:170px auto;gap:14px 22px;min-height:0;align-content:start}
 .approval-agent,.approval-human{margin:58px 0 0;align-self:end}
 .approval-actor{max-width:58px}.approval-actor>img{height:98px}
 .approval-bubble,#approval-scene #approval-agent-speech{font-size:16px!important;max-width:152px;min-width:120px;bottom:calc(100% + 10px);padding:10px 12px}
 #approval-scene[data-phase="approved"] #approval-agent-speech,#approval-scene[data-phase="sending"] #approval-agent-speech,#approval-scene[data-phase="done"] #approval-agent-speech{left:50%;transform:translateX(-50%);max-width:158px;min-width:150px}
 .approval-plan header{padding:10px 14px 8px}.approval-plan h2{font-size:21px;margin-bottom:4px}
 .approval-roster{padding:6px 14px}.approval-roster li{font-size:12px;line-height:1.65}
 .approval-message{padding:9px 14px}.approval-content{min-height:104px}.approval-ad{padding:8px}.approval-ad p{margin:4px 0}
 .approval-clean{font-size:13px}.approval-plan footer{padding:6px 10px}
 .approval-decision{min-height:94px;padding-top:10px}.approval-decision:has(.approval-choices:not([hidden])) #approval-status{font-size:20px;margin-bottom:9px}
 .approval-clients{bottom:175px}.approval-clients img{width:38px;height:54px}
 .lesson-screen .prompt-takeaway{padding:8px 0;justify-content:center}
 .prompt-copy h1{font-size:32px!important}.prompt-copy>p{font-size:18px!important}
 .lesson-screen .prompt-footer p{font-size:21px}
 .lesson-screen .prompt-takeaway,.skill5-content,.recap-content,.final-composition{min-width:0;max-width:100%}
}
@media(max-width:370px){
 main>section.lesson-screen{padding:12px!important}
 main>section.lesson-screen>.lesson-nav{left:12px;right:12px}
 .skill-workspace{grid-template-columns:53px minmax(0,1fr) 48px;gap:55px 7px}
 .skill-address-chip{font-size:11px}.bubble{font-size:21px}
}
@media(max-height:720px) and (max-width:650px){
 .lesson-screen .bulk-stage{min-height:460px!important}
 .lesson-screen .skill-demo-stage{min-height:460px!important}
 .skill-workspace{gap:48px 8px;grid-template-rows:auto 175px;padding-top:12px}
 .live-checklist{padding-top:22px}.live-checklist li{font-size:12px;padding:5px 0}
 .lesson-screen .hook-demo-stage,.lesson-screen .casino-stage{min-height:470px!important}
}
@media(max-width:650px){
 #play .stage{height:min(100%,560px)!important;max-height:560px!important;flex:none!important;margin:auto}
}
@media(max-width:650px){
 .bulk-actor{position:static!important}
 .bulk-actor>img{position:absolute;left:0;bottom:174px;width:27%}
 .bulk-actor>span{position:absolute;left:0;bottom:145px;width:27%;margin:0;font-size:12px}
 .bulk-speech{top:24px!important;bottom:auto!important;left:2px!important;transform:none;max-width:calc(100% - 4px)!important;z-index:5}
 .bulk-speech:after{left:36px}
 .bulk-chip{font-size:12px!important;padding:4px 5px!important}
 .bulk-to{padding:12px!important;gap:6px!important}
 #approval-scene[data-waiting] #approval-control{visibility:hidden}
}
@media(max-height:720px) and (max-width:650px){
 #approval-scene .approval-stage{grid-template-rows:125px auto;gap:10px 22px}
 .approval-actor{max-width:45px}.approval-actor>img{height:75px}
 .approval-agent,.approval-human{margin-top:44px}
 .approval-bubble,#approval-scene #approval-agent-speech{font-size:15px!important;bottom:calc(100% + 6px);padding:8px 10px}
}
@media(max-height:720px) and (max-width:650px){
 #approval-scene:has(.approval-bubble:not([hidden])) .approval-stage{grid-template-rows:175px auto}
}
@media(max-width:650px){
 #skill-theory h1{font-size:32px;margin-bottom:20px}
 .skill5-layout{gap:22px}.skill5-text{gap:12px}.skill5-text p{font-size:18px;padding:13px 16px;line-height:1.35}
 .skill5-paper{padding:19px 12px 10px}.skill5-paper h2{font-size:18px;margin-bottom:8px}.skill5-paper li{font-size:13px;padding:6px 0}
 .skill5-cast img{height:66px;width:44px}
 #skill-theory .skill5-content{padding-bottom:14px}
 #human-intro .human-intro-art{margin-top:14px}
 #human-intro .human-intro-art img{height:125px;width:84px}
 #human-intro .human-intro-art .hook-intro-bubble{font-size:18px;margin-bottom:10px;padding:11px 15px}
 #human-intro .prompt-copy>p{font-size:16px!important;line-height:1.4;margin-top:12px}
 #human-intro .prompt-copy>.human-main-rule{font-size:22px!important}
 #human-intro .prompt-footer:empty{display:none}
 #recap-remedies h1{font-size:29px}
 #recap-remedies>.lesson-body{gap:18px}
 .remedies-list{gap:10px}
 .remedy-card{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:12px}
 .remedy-art,.remedy-art img{height:72px}
 .remedy-copy h2{font-size:21px;margin-bottom:6px}
 .remedy-copy p{font-size:15px;line-height:1.35}.remedy-copy p.remedy-limit{font-size:14px;line-height:1.3}
 .final-composition{gap:18px}.final-narration{padding:15px 17px;font-size:19px}
 .final-punch{font-size:24px}.final-cast img{height:80px}.final-cast .guard{height:88px}
}
@media(max-height:720px) and (max-width:650px){
 #skill-theory h1{font-size:30px;margin-bottom:16px}
 .skill5-text p{font-size:17px;padding:11px 14px}.skill5-text{gap:10px}.skill5-layout{gap:18px}
 .skill5-cast img{height:52px;width:38px}
 .skill5-paper li{padding:5px 0}.skill5-paper{padding-top:16px}
 #human-intro .prompt-copy h1{font-size:28px!important}
 #human-intro .human-intro-art img{height:95px;width:66px}
 #human-intro .human-intro-art{margin-top:10px}
 #recap-remedies h1{font-size:27px}#recap-remedies>.lesson-body{gap:14px}
 .remedy-card{padding:10px}.remedies-list{gap:8px}
 .remedy-copy p{line-height:1.3}.remedy-copy h2{font-size:20px}
}
/* Phone shell: full-width lesson, top utilities, one thumb-sized action. */
@media(max-width:650px){
 html,body{height:100%;overflow:hidden;background:var(--bg)}
 main{padding:0!important;width:100%;height:100dvh!important}
 main>section.lesson-screen{height:100dvh!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
 .lesson-screen>.lesson-body{position:absolute;inset:calc(58px + env(safe-area-inset-top)) 0 calc(86px + env(safe-area-inset-bottom));width:auto;height:auto!important;padding:12px 20px!important;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .lesson-screen>.lesson-body::-webkit-scrollbar{display:none}
 main>section.lesson-screen>.lesson-nav{display:contents!important}
 .lesson-nav .lesson-back{position:absolute;top:calc(9px + env(safe-area-inset-top));left:20px;min-height:44px;font-size:15px!important;z-index:30;padding:10px 0;color:var(--muted)}
 .lesson-nav .lesson-nav-aux{position:absolute;top:calc(9px + env(safe-area-inset-top));right:16px;gap:6px;z-index:30}
 main .lesson-nav .source{display:grid;place-items:center;width:44px;height:44px;font-size:0!important;padding:0!important;border-radius:50%;background:#fffdf780}
 main .lesson-nav .source::before{content:attr(data-symbol);font:24px/1 var(--sans);color:var(--muted)}
 .lesson-nav .lesson-nav-forward{position:absolute;left:20px;right:20px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:30}
 main .lesson-nav .next{width:100%!important;min-height:54px;height:auto!important;font-size:17px!important;border-radius:16px!important;padding:17px 24px!important;box-shadow:0 5px 16px #be5a3824}
 main .lesson-nav .next:disabled{opacity:1;color:#8b755e!important;background:#e8dfcd!important;box-shadow:none}
 main .lesson-nav .next span{margin-left:16px}
 .phone-reading>.lesson-body{padding:22px 24px 28px!important}
 .lesson-screen.phone-reading .prompt-takeaway{min-height:0!important;flex:0 0 auto;padding:0!important;margin:auto 0;justify-content:flex-start}
 .phone-reading .prompt-copy{gap:8px}
 .phone-reading .prompt-copy h1{font-size:34px!important;line-height:1.12}
 .phone-reading .prompt-copy>p{font-size:18px!important;line-height:1.5}
 #intro>.lesson-body{gap:24px;justify-content:center}
 #intro h1{font-size:38px;line-height:1.12}
 #intro .cover-game{width:100%;flex-shrink:0;margin:12px 0}
 #story-intro p{font-size:34px;text-align:left;line-height:1.2}
 #play>.lesson-body{padding:10px 18px!important;overflow:hidden!important}
 #play .stage{height:100%!important;max-height:620px!important;min-height:0!important;flex:1 1 auto!important}
 .character{width:44%;height:min(62%,330px);bottom:14px}
 .character.a{left:0}.character.bender{right:0}
 .character figcaption{font-size:14px;padding-top:10px}
 .bubble{bottom:calc(min(62%,330px) + 48px)!important;font-size:24px;padding:17px 20px;max-width:calc(100% - 12px);text-wrap:balance}
 #skill-theory .skill5-content{padding:0!important;margin:0}
 #skill-theory h1{font-size:34px;margin:0 0 24px}
 .skill5-text p{font-size:20px;line-height:1.4;padding:18px 20px}
 .skill5-layout{gap:28px}.skill5-scene{gap:20px;margin-top:8px}
 .skill5-paper h2{font-size:21px}.skill5-paper li{font-size:15px;padding:8px 0}
 .skill5-cast img{height:80px;width:50px}
 #skill-theory .skill5-footer{padding:24px 0 0!important}.skill5-footer p{font-size:17px;line-height:1.45}
 #human-intro .prompt-copy h1{font-size:32px!important}
 #human-intro .human-intro-art img{height:170px;width:112px}
 #human-intro .human-intro-art .hook-intro-bubble{font-size:21px;padding:14px 18px;margin-bottom:16px}
 #human-intro .prompt-copy>.human-main-rule{font-size:26px!important}
 #human-intro .prompt-copy>.human-batch-note{font-size:18px!important}
 #recap-remedies h1{font-size:34px;text-align:left}
 .remedies-list{gap:16px;margin:8px 0 0!important}
 .remedy-card{grid-template-columns:58px minmax(0,1fr);padding:20px 16px;gap:16px}
 .remedy-copy h2{font-size:25px}.remedy-copy p{font-size:18px;line-height:1.4}.remedy-copy p.remedy-limit{font-size:17px;line-height:1.4;margin-top:10px}
 .remedy-art,.remedy-art img{height:90px}
 #final-conclusion .final-composition{padding:0!important;margin:auto 0;gap:24px}
 #final-conclusion h1{font-size:32px}.final-narration{font-size:22px;line-height:1.4;padding:20px}
 .final-punch{font-size:28px;line-height:1.25}.final-cast img{height:105px}.final-cast .guard{height:112px}
 #recap-problem .recap-content{padding:0!important}
 /* Keep motion inside one continuous stage; no page scroll during a flight. */
 .lesson-screen .bulk-stage{min-height:440px!important}
 .bulk-mail{top:118px!important}.bulk-actor>img{height:175px!important;bottom:145px}.bulk-actor>span{bottom:119px}
 .bulk-clients{bottom:0!important}.bulk-client img{height:58px!important}
 .bulk-speech{top:5px!important;font-size:23px!important;max-width:100%!important}
 .bulk-client figcaption{font-size:12px}
 .lesson-screen .skill-demo-stage{min-height:470px!important}
 .skill-workspace{grid-template-columns:76px minmax(0,1fr) 64px;grid-template-rows:auto 190px;gap:64px 10px}
 .checklist-robot{height:175px}.skill-to,.skill-subject{font-size:14px}.skill-recipient{font-size:13px}
 .skill-aside{font-size:22px;max-width:245px}
 .lesson-screen .hook-demo-stage,.lesson-screen .casino-stage{min-height:470px!important}
 .hook-workspace,.casino-workspace{gap:90px 20px}
 .hook-letter,.casino-workspace>.casino-letter{width:260px}
 .hook-agent-pose,.casino-agent-pose{max-width:96px}
 .hook-guard-pose,.casino-guard-pose{max-width:172px}
 .hook-guard-speech,.casino-speech{font-size:20px;max-width:190px}
 /* Review remains legible: keep a real-sized cast and scroll the full plan. */
 #approval-scene .approval-stage,#approval-scene:has(.approval-bubble:not([hidden])) .approval-stage{grid-template-rows:228px auto;gap:20px 24px}
 .approval-agent,.approval-human{margin-top:80px}
 .approval-actor{max-width:84px}.approval-actor>img{height:145px}
 .approval-bubble,#approval-scene #approval-agent-speech{font-size:20px!important;max-width:170px;min-width:135px;bottom:calc(100% + 12px);padding:12px 14px}
 .approval-plan h2{font-size:25px}.approval-plan header p,.approval-roster li{font-size:15px;line-height:1.7}
 .approval-roster{padding:12px 16px}.approval-message{padding:14px 16px}.approval-subject,.approval-same{font-size:15px}
 .approval-clean{font-size:17px;line-height:1.45}.approval-ad p{font-size:16px}.approval-ad>span{font-size:23px}
 .approval-plan footer{font-size:13px;padding:10px}.approval-decision{padding:20px 0;min-height:125px}
 .approval-decision:has(.approval-choices:not([hidden])) #approval-status{font-size:24px}
 .approval-choice{height:54px;width:90px}
 .approval-clients{bottom:135px}.approval-clients img{height:72px;width:47px}
 #approval-scene[data-phase="sending"] .approval-center,#approval-scene[data-phase="done"] .approval-center{min-height:300px}
}
@media(max-width:650px){
 .lesson-nav .lesson-nav-forward{width:calc(100% - 40px);justify-self:stretch}
 .hook-workspace,.casino-workspace{gap:70px 20px}
 .hook-letter-to{min-height:110px}
}
@media(max-width:650px){
 #approval-scene[data-phase="sending"] .approval-center,#approval-scene[data-phase="done"] .approval-center{height:240px;min-height:0}
 #approval-scene[data-phase="sending"] .approval-plan,#approval-scene[data-phase="done"] .approval-plan{position:absolute;top:0;left:0;width:100%}
 #approval-scene[data-phase="sending"] .approval-decision,#approval-scene[data-phase="done"] .approval-decision{position:absolute;left:0;right:0;top:185px;min-height:0;padding:0}
 #approval-scene[data-phase="sending"] .approval-clients,#approval-scene[data-phase="done"] .approval-clients{top:65px;bottom:auto}
}
.phone-activity{display:none}
@media(max-width:650px){
 .lesson-nav>.phone-activity{display:flex;align-items:center;justify-content:center;position:absolute;left:20px;right:20px;bottom:calc(16px + env(safe-area-inset-bottom));height:54px;border-radius:16px;background:#e8dfcd;color:#8b755e;font:17px var(--sans)}
 .lesson-nav:has(.lesson-nav-forward .next:not([hidden]))>.phone-activity{display:none}
}
@media(max-width:650px){
 .skill-workspace{row-gap:112px;padding:8px 0;grid-template-rows:auto 185px}
}
@media(max-width:650px) and (max-height:650px){
 .lesson-screen .skill-demo-stage{min-height:410px!important}
 .skill-workspace{row-gap:96px;grid-template-rows:auto 158px;padding:4px 0}
 .checklist-robot{height:140px}
 .live-checklist{padding:18px 14px 8px}.live-checklist li{padding:4px 0;font-size:12px}
 .live-checklist h2{margin-bottom:5px}
}
@media(max-width:650px){
 #approval-scene .approval-stage,#approval-scene:has(.approval-bubble:not([hidden])) .approval-stage{grid-template-rows:270px auto}
}
@media(max-width:650px){
 #approval-scene[data-phase="approved"] #approval-agent-speech,#approval-scene[data-phase="sending"] #approval-agent-speech{left:0;transform:none;width:270px;max-width:calc(100vw - 100px);min-width:0;overflow-wrap:normal}
 #approval-scene[data-phase="approved"] #approval-agent-speech::after,#approval-scene[data-phase="sending"] #approval-agent-speech::after{left:32px}
}
@media(max-width:650px){
 main,main>section.lesson-screen{height:var(--phone-height,100dvh)!important}
}
@media(max-width:650px) and (max-height:720px){
 .lesson-screen .hook-demo-stage,.lesson-screen .casino-stage{min-height:0!important;flex:1 1 auto!important;height:auto!important}
 .hook-workspace,.casino-workspace{gap:50px 20px;padding:0}
 .hook-agent-pose,.casino-agent-pose{max-width:76px}
 .hook-guard-pose,.casino-guard-pose{max-width:145px}
 .casino-body{height:126px}.casino-ad{min-height:126px;padding:6px}
}
@media(max-width:650px){
 .casino-stage .agent-speech{bottom:calc(100% + 6px);max-width:220px}
}

/* Human approval: one complete thought and illustration in the phone viewport. */
@media(max-width:650px){
 #human-intro.phone-reading>.lesson-body{padding:16px 24px!important}
 #human-intro .prompt-copy h1{font-size:30px!important;line-height:1.12}
 #human-intro .prompt-copy>.human-context{font-size:16px!important;line-height:1.4;margin-top:14px}
 #human-intro .human-intro-art{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:18px;margin-top:20px}
 #human-intro .human-intro-art figure{grid-column:1;grid-row:1}
 #human-intro .human-intro-art img{width:92px;height:142px}
 #human-intro .human-intro-art .hook-intro-bubble{grid-column:2;grid-row:1;font-size:21px;line-height:1.25;margin:0;padding:16px;min-width:0;width:100%;max-width:100%}
 #human-intro .human-intro-art .hook-intro-bubble::after{bottom:auto;top:50%;left:-8px;transform:translateY(-50%) rotate(45deg);border-top:0;border-right:0;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
 #human-intro .prompt-copy>.human-main-rule{font-size:23px!important;line-height:1.25;margin-top:20px;max-width:100%}
 #human-intro .prompt-copy>.human-batch-note{font-size:16px!important;line-height:1.4;margin-top:10px;max-width:100%}
}

/* On phones, dialogue and reviewing the batch are separate views. */
@media(max-width:650px){
 #approval-scene:is([data-phase="review"],[data-phase="rejected"]) .approval-center{display:none}
 #approval-scene:is([data-phase="review"],[data-phase="rejected"]) .approval-stage{grid-template-areas:'agent human';grid-template-rows:1fr!important;min-height:390px;align-items:center;height:100%}
 #approval-scene:is([data-phase="review"],[data-phase="rejected"]) .approval-agent,
 #approval-scene:is([data-phase="review"],[data-phase="rejected"]) .approval-human{align-self:center;margin-top:60px}
 #approval-scene:is([data-phase="inspecting"],[data-phase="awaiting-ad"],[data-phase="correcting"],[data-phase="awaiting"]) .approval-agent,
 #approval-scene:is([data-phase="inspecting"],[data-phase="awaiting-ad"],[data-phase="correcting"],[data-phase="awaiting"]) .approval-human{display:none}
 #approval-scene:is([data-phase="inspecting"],[data-phase="awaiting-ad"],[data-phase="correcting"],[data-phase="awaiting"]) .approval-stage{display:block;min-height:0;height:auto}
 #approval-scene .approval-plan header{padding:10px 14px 8px}
 #approval-scene .approval-plan h2{font-size:23px;margin-bottom:3px}
 #approval-scene .approval-plan header p{font-size:14px;line-height:1.4}
 #approval-scene .approval-roster{padding:7px 14px}
 #approval-scene .approval-roster li{font-size:14px;line-height:1.6}
 #approval-scene .approval-message{padding:10px 14px}
 #approval-scene .approval-subject{font-size:14px;margin-bottom:6px}
 #approval-scene .approval-same{font-size:13px;margin-bottom:6px}
 #approval-scene .approval-content{min-height:0}
 #approval-scene .approval-ad{padding:8px}
 #approval-scene .approval-ad>span{font-size:22px}
 #approval-scene .approval-ad p{font-size:14px;margin:5px 0}
 #approval-scene .approval-clean{font-size:15px;line-height:1.4}
 #approval-scene .approval-clean p{margin-bottom:5px}
 #approval-scene .approval-clean p:last-child{margin-bottom:0}
 #approval-scene .approval-plan footer{font-size:12px;padding:7px}
 #approval-scene .approval-decision{padding:14px 0 0;min-height:0}
 #approval-scene .approval-decision:has(.approval-choices:not([hidden])) #approval-status{font-size:22px;margin-bottom:10px}
}

@media(max-width:650px){
 #approval-scene:is([data-phase="awaiting-ad"],[data-phase="awaiting"])>.lesson-body{bottom:calc(12px + env(safe-area-inset-bottom))}
}

@media(max-width:650px){
 #approval-scene[data-phase="approved"] .approval-plan{visibility:hidden;position:absolute;left:0;right:0;top:0}
 #approval-scene[data-phase="approved"] .approval-center{height:70px;min-height:0}
 #approval-scene[data-phase="approved"] .approval-stage{grid-template-rows:270px 70px!important}
 #approval-scene[data-phase="approved"] #approval-status{font-size:18px}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-stage{grid-template-rows:240px 220px!important;gap:12px 24px}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-center{height:220px}
}

/* Consistent transport controls: SVG shapes, not font-dependent glyphs. */
main .lesson-nav .source{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:9px 12px!important;border:1px solid var(--line)!important;border-radius:12px;background:var(--surface);color:var(--muted);box-shadow:0 2px 5px #2a201508;transition:background .15s,border-color .15s,transform .15s}
main .lesson-nav .source::before{content:'';display:block;width:20px;height:20px;flex:0 0 20px;background:currentColor;-webkit-mask:var(--transport-icon) center/contain no-repeat;mask:var(--transport-icon) center/contain no-repeat}
main .lesson-nav .source[data-control="pause"]{--transport-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4' width='4' height='16' rx='1.2'/%3E%3Crect x='14' y='4' width='4' height='16' rx='1.2'/%3E%3C/svg%3E")}
main .lesson-nav .source[data-control="play"]{--transport-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.8c0-.8.9-1.3 1.6-.8l12 7.2c.6.4.6 1.2 0 1.6l-12 7.2c-.7.5-1.6 0-1.6-.8z'/%3E%3C/svg%3E")}
main .lesson-nav .source[data-control="replay"]{--transport-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10a8 8 0 1 1 1 8M4 4v6h6'/%3E%3C/svg%3E")}
main .lesson-nav .source:active{transform:scale(.96);background:#eae0cd}
main .lesson-nav .source:focus-visible{outline:2px solid var(--clay);outline-offset:3px}
main .lesson-nav .source:disabled{opacity:.4;box-shadow:none}
@media(hover:hover){main .lesson-nav .source:hover:not(:disabled){border-color:var(--muted);background:#f6efdf}}
@media(max-width:650px){main .lesson-nav .source{width:44px;height:44px;gap:0;padding:0!important;font-size:0!important}}

/* Finished delivery: recipient row and summary follow each other, never overlap. */
@media(max-width:650px){
 #approval-scene[data-phase="done"] .approval-center{display:flex;flex-direction:column;justify-content:center;gap:20px;height:220px}
 #approval-scene[data-phase="done"] .approval-clients{position:static;order:1;width:100%}
 #approval-scene[data-phase="done"] .approval-delivered{display:none}
 #approval-scene[data-phase="done"] .approval-decision{position:static;order:2;padding:0;min-height:0}
 #approval-scene[data-phase="done"] #approval-status{font-size:15px;line-height:1.4;margin:0;color:#55735c}
}

/* Each mobile summary uses the whole available screen. */
@media(max-width:650px){
 #recap-remedies.remedy-pager>.lesson-body{gap:12px;padding:16px 24px!important;justify-content:flex-start}
 #recap-remedies.remedy-pager h1{font-size:30px;line-height:1.15;text-align:left;max-width:290px;text-wrap:balance}
 .remedy-progress{font:14px/1.3 var(--sans);color:var(--muted);margin:0}
 #recap-remedies.remedy-pager .remedies-list{display:flex;flex:1;min-height:0;margin:0!important;padding:8px 0 12px}
 #recap-remedies.remedy-pager .remedy-card{width:100%;grid-template-columns:120px minmax(0,1fr);grid-template-rows:minmax(120px,1fr) auto auto;gap:24px 20px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;animation-delay:0s}
 #recap-remedies.remedy-pager .remedy-card[hidden]{display:none!important}
 #recap-remedies.remedy-pager .remedy-art,#recap-remedies.remedy-pager .remedy-art img{height:160px}
 #recap-remedies.remedy-pager .remedy-checklist{transform:rotate(-6deg) scale(1.6)}
 #recap-remedies.remedy-pager .remedy-copy{display:contents}
 #recap-remedies.remedy-pager .remedy-copy h2{font-size:32px;line-height:1.15;margin:0}
 #recap-remedies.remedy-pager .remedy-copy p{grid-column:1/-1;font-size:22px;line-height:1.45;margin:0}
 #recap-remedies.remedy-pager .remedy-copy .remedy-limit{font-size:20px;line-height:1.4;margin:0}
}
@media(max-width:650px) and (max-height:680px){
 #recap-remedies.remedy-pager .remedy-card{gap:18px;grid-template-columns:104px minmax(0,1fr)}
 #recap-remedies.remedy-pager .remedy-art,#recap-remedies.remedy-pager .remedy-art img{height:120px}
 #recap-remedies.remedy-pager .remedy-checklist{transform:rotate(-6deg) scale(1.3)}
 #recap-remedies.remedy-pager .remedy-copy h2{font-size:28px}
 #recap-remedies.remedy-pager .remedy-copy p{font-size:20px;line-height:1.4}
 #recap-remedies.remedy-pager .remedy-copy .remedy-limit{font-size:18px}
}

/* Final takeaway fits without a reading/scrolling step. */
@media(max-width:650px){
 #final-conclusion>.lesson-body{padding:20px 24px!important}
 #final-conclusion .final-composition{grid-template-columns:1fr;gap:22px;margin:auto 0;padding:0!important}
 #final-conclusion h1{font-size:30px;line-height:1.15}
 #final-conclusion .final-narration{font-size:20px;line-height:1.4;padding:16px 18px}
 #final-conclusion .final-punch{font-size:27px;line-height:1.25}
 #final-conclusion .final-cast{grid-column:1;grid-row:4}
 #final-conclusion .final-cast img{height:82px}
 #final-conclusion .final-cast .guard{height:88px}
}

/* The checklist dialogue has its own row; its tail points to the agent column. */
.skill-dialogue-slot{display:none}
@media(max-width:650px){
 #skill-demo .skill-demo-stage{min-height:0!important;max-height:none;height:100%!important;flex:1 1 auto!important;align-items:stretch}
 #skill-demo .skill-workspace{height:100%;padding:10px 0 0;grid-template-columns:60px minmax(0,1fr) 52px;grid-template-areas:'checklist checklist checklist' 'speech speech speech' 'worker letter clients';grid-template-rows:auto 82px minmax(0,1fr);gap:12px 10px;align-items:start}
 #skill-demo .live-checklist{width:252px;max-width:calc(100% - 24px);padding:18px 14px 8px}
 #skill-demo .live-checklist h2{font-size:20px;margin-bottom:6px}
 #skill-demo .live-checklist li{font-size:12px;padding:4px 0}
 #skill-demo .skill-dialogue-slot{display:flex;grid-area:speech;align-self:stretch;align-items:flex-end;min-width:0;padding-bottom:0}
 #skill-demo .skill-dialogue-slot .skill-aside{position:relative;inset:auto;transform:none;width:max-content;max-width:100%;margin:0;padding:12px 16px;font-size:21px;line-height:1.25;text-align:left}
 #skill-demo .skill-dialogue-slot .skill-aside::after{left:22px;bottom:-8px}
 #skill-demo .skill-worker{align-self:start;margin:0}
 #skill-demo .checklist-robot{height:auto;aspect-ratio:200 / 355}
 #skill-demo .skill-worker figcaption{margin-top:8px;font-size:12px}
 #skill-demo .skill-letter{align-self:start;width:100%;min-width:0}
 #skill-demo .skill-to{padding:9px 10px;font-size:12px;line-height:1.5}
 #skill-demo .skill-recipient{font-size:12px;gap:4px}
 #skill-demo .skill-subject{padding:10px;font-size:13px;line-height:1.35}
 #skill-demo .skill-body{padding:2px 10px 12px}
 #skill-demo .skill-body i{margin-bottom:8px}
 #skill-demo .skill-body i:nth-child(n+4){display:none}
 #skill-demo .skill-clients{align-self:start;padding-top:8px}
 #skill-demo .skill-clients.is-group{gap:9px;grid-template-columns:1fr}
 #skill-demo .skill-clients.is-group .skill-client:last-child{width:auto;grid-column:auto}
 #skill-demo .skill-clients.is-group img{height:43px}
 #skill-demo .skill-clients.is-group figcaption{font-size:10px;line-height:1.3;margin-top:3px}
}

/* Reserve the top of the delivery scene for the long agent reply. */
@media(max-width:650px){
 #approval-scene:is([data-phase="approved"],[data-phase="sending"],[data-phase="done"]) .approval-agent,
 #approval-scene:is([data-phase="approved"],[data-phase="sending"],[data-phase="done"]) .approval-agent .approval-actor{position:static}
 #approval-scene:is([data-phase="approved"],[data-phase="sending"]) #approval-agent-speech{top:2px;bottom:auto;left:0;transform:none;width:100%;max-width:100%;min-width:0;font-size:19px!important;line-height:1.25;padding:12px 16px}
 #approval-scene:is([data-phase="approved"],[data-phase="sending"]) #approval-agent-speech::after{left:calc(25% - 12px)}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-stage{grid-template-rows:250px 200px!important;gap:12px 24px}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-actor>img{height:130px}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-center{display:flex;flex-direction:column;justify-content:center;gap:20px;height:200px}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-clients{position:static;order:1;width:100%}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-delivered{display:none}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) .approval-decision{position:static;order:2;padding:0;min-height:0}
 #approval-scene:is([data-phase="sending"],[data-phase="done"]) #approval-status{font-size:15px;line-height:1.4;margin:0;color:#55735c}
 #approval-scene .approval-packet{width:60px;height:42px}
 #approval-scene .approval-packet span{display:none}
}

/* Mobile send scene: speech beside its speaker, full-width letter, client row. */
@media(max-width:650px){
 #bulk-scene>.lesson-body{overflow:hidden!important}
 #bulk-scene .bulk-stage{min-height:0!important;height:100%!important;flex:1 1 auto!important}
 #bulk-scene .bulk-actor{position:static!important}
 #bulk-scene .bulk-actor>img{top:4px;bottom:auto;width:84px;height:140px!important;left:4px}
 #bulk-scene .bulk-actor>span{top:148px;bottom:auto;left:4px;width:84px;font-size:12px;margin:0}
 #bulk-scene .bulk-speech{top:26px!important;left:106px!important;bottom:auto!important;width:fit-content;max-width:calc(100% - 110px)!important;padding:15px 18px;font-size:23px!important;line-height:1.3;text-align:left;transform:none}
 #bulk-scene .bulk-speech::after{left:-8px;top:29px;bottom:auto;border-right:0;border-left:1px solid var(--line)}
 #bulk-scene .bulk-mail{top:190px!important;left:0;right:0!important;width:100%!important;min-height:0!important;border-radius:18px}
 #bulk-scene .bulk-to{min-height:52px;padding:12px 14px!important;gap:9px!important;transition:min-height .25s;font-size:13px}
 #bulk-scene:is([data-state="gathering"],[data-state="assembled"],[data-state="packing"]) .bulk-to{min-height:108px}
 #bulk-scene .bulk-chip{font-size:12px!important;line-height:1.2;padding:4px 5px!important}
 #bulk-scene .bulk-subject{font-size:14px;padding:13px 14px 10px}
 #bulk-scene .bulk-body{padding:2px 14px 12px}
 #bulk-scene .bulk-body i{height:4px;margin-bottom:7px}
 #bulk-scene .bulk-clients{bottom:3px!important;gap:5px!important}
 #bulk-scene .bulk-client img{height:52px!important}
 #bulk-scene .bulk-client figcaption{font-size:12px;line-height:1.3;margin-top:6px}
 #bulk-scene .bulk-address-source{font-size:8px;width:auto;max-width:100%;height:auto;line-height:1.3;letter-spacing:-.2px;padding:0;border:0;background:none;border-radius:0;margin-top:7px;color:var(--muted)}
 #bulk-scene .bulk-delivery{height:20px;margin-bottom:5px}
}
@media(max-width:650px) and (max-height:670px){
 #bulk-scene .bulk-actor>img{width:70px;height:112px!important;left:6px}
 #bulk-scene .bulk-actor>span{top:118px;left:6px;width:70px}
 #bulk-scene .bulk-speech{top:17px!important;left:94px!important;max-width:calc(100% - 98px)!important;padding:13px 15px;font-size:21px!important}
 #bulk-scene .bulk-mail{top:150px!important}
 #bulk-scene .bulk-client img{height:44px!important}
 #bulk-scene .bulk-address-source{font-size:7px}
}
