/* Home: a flex item with only absolutely positioned artwork must still occupy full width. */
@media(max-width:599px){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .home-hub{width:100%;min-width:0;align-items:stretch}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .home-hub>.home-hero{align-self:stretch;width:100%;min-width:0;min-height:294px;flex:0 0 294px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .home-learning-panel{width:100%;min-width:0}
}
/* The current question remains attached to the camera on every screen size. */
.ppl-app .gesture-camera-question{position:absolute;top:8px;left:8px;z-index:4;max-width:calc(100% - 67px);padding:5px 10px;border:1px solid #ffffffb3;border-radius:11px;background:#fffdf5ed;color:#223d81;font-weight:900;font-size:25px;line-height:1.2;pointer-events:none;box-shadow:0 2px 5px #284f7526}
.ppl-app .gesture-camera-question small{display:block;font-size:12px;line-height:1.25;font-weight:700;color:#4b618a}
.ppl-app .gesture-camera-sheet .gesture-help-inline{font-size:15px;line-height:1.45}
@media(max-width:760px){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead{min-height:64px;padding:8px 10px;gap:8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead h2{font-size:22px;line-height:1.2;margin:2px 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead .creative-subject{font-size:12px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead p,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead .creative-header-icon{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-content{padding:8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px;border:2px solid #fff;border-radius:18px;background:#fffdf6;min-width:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout>.gesture-question-sheet,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout>.gesture-camera-sheet{display:contents}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-sheet>.ppl-gesture-quest{order:1;padding:7px 9px;border-radius:12px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-top{font-size:13px;line-height:1.25;gap:6px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem{display:block;margin:2px 0;text-align:center}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem>img,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem .gesture-prompt{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-question{font-size:34px;line-height:1.15;margin:2px 0;white-space:normal}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-options{gap:6px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-options>div{padding:3px;font-size:23px;line-height:1.1;border-radius:9px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-options small{font-size:12px;line-height:1.15;margin:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-sheet>.creative-sheet-heading,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-sheet>.creative-small-note{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera{order:2;width:100%;height:clamp(112px,19dvh,170px);min-height:112px;margin:0;border-width:2px;border-radius:14px;flex:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera video{object-fit:contain}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-placeholder{font-size:58px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-primary{order:3;display:flex;gap:7px;margin:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .gesture-camera-primary>.ppl-button{font-size:15px;min-height:42px;padding:7px 9px;flex:1}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .gesture-answer-title{order:4;font-size:15px;line-height:1.2;margin:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices{order:5;gap:7px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices button{min-height:53px;font-size:25px;line-height:1;padding:5px;box-shadow:0 2px 0 #d5ad22;border-radius:12px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices small{font-size:14px;line-height:1.15;margin-top:3px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-sheet>.creative-feedback{order:6;font-size:14px;line-height:1.3;margin:0;padding:3px 5px;min-height:24px;text-align:center}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-actions{order:7;margin:0;gap:7px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-actions>.ppl-button{font-size:14px;line-height:1.2;min-height:42px;padding:6px;flex:1 1 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-teacher-settings{order:8;margin:0;font-size:14px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-teacher-settings>summary{min-height:40px;padding:7px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-cameralabel{font-size:12px;padding:3px 7px;bottom:5px;left:6px;max-width:calc(100% - 12px)}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-countbadge{height:35px;width:35px;min-width:35px;font-size:19px;top:6px;right:6px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-question{font-size:23px;max-width:calc(100% - 57px);top:6px;left:6px;padding:4px 8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.gesture-camera-focus .gesture-question-sheet>.ppl-gesture-quest{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.gesture-camera-focus .gesture-refined .ppl-gesture-camera{height:clamp(180px,35dvh,320px)}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.gesture-camera-focus .gesture-camera-question{font-size:28px}
}
.ppl-app [data-extra-gesture-size]{display:none}
@media(max-width:760px){.ppl-app [data-extra-gesture-size]{display:block}}
@media(max-width:760px) and (max-height:700px){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout{gap:4px;padding:6px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead{min-height:55px;padding:5px 8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera{height:112px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .gesture-answer-title{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-options{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.gesture-camera-focus .gesture-refined .ppl-gesture-camera{height:clamp(170px,30dvh,210px)}
}
@media(max-width:760px) and (orientation:landscape){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera{height:150px}
}

/* Preserve native hidden state despite component display rules. Keep camera actions readable. */
.ppl-app .gesture-camera-primary>[hidden]{display:none!important}
@media(max-width:760px){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-primary>.ppl-button{min-width:0;width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;font-size:14px;line-height:1.2;padding:7px 5px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-cameralabel{font-size:12px;line-height:1.2;max-width:calc(100% - 12px);white-space:normal}
}

.ppl-app .gesture-processing-label{display:block;font-size:15px;margin:10px 0}.ppl-app [data-extra-gesture-processing]{display:block;width:100%;min-height:42px;font:inherit;padding:6px 9px;border:2px solid #d9d8f0;border-radius:10px;background:#fff;color:#263b73}

.ppl-app .gesture-palm-guide{position:absolute;border:2px dashed #ffffffe0;border-radius:24px;pointer-events:none;z-index:2;display:grid;place-items:center;background:#ffffff08}.ppl-app .gesture-palm-guide span{font-size:70px;opacity:.18}.ppl-app .gesture-palm-guide[hidden]{display:none!important}

.ppl-app [data-extra-gesture-report]{box-sizing:border-box;width:100%;margin:10px 0 0;padding:10px;font:14px/1.4 system-ui;color:#23406b;background:#fff;border:2px solid #d9d5ed;border-radius:12px;resize:vertical;overflow-wrap:anywhere}.ppl-app [data-extra-gesture-report][hidden]{display:none!important}

/* v2.0.36: short landscape phones keep the task beside the full camera frame. */
@media (min-width:600px) and (max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .ppl-app.ppl-ui-v212>.ppl-globalbar{min-height:44px;padding:2px 12px}
 .ppl-app.ppl-ui-v212>.ppl-globalbar .ppl-brand img{width:34px;height:36px;object-fit:contain}
 .ppl-app.ppl-ui-v212>.ppl-globalbar .ppl-brand strong{font-size:15px}
 .ppl-app.ppl-ui-v212>.ppl-globalbar .ppl-brand span{display:none}
 .ppl-app.ppl-ui-v212 .ppl-news-bell{min-height:40px;padding:4px 10px;border-radius:12px;font-size:14px}
 body.ppl-standalone #playlab-application>.ppl-app.ppl-ui-v212>.ppl-app-nav{min-height:52px;padding:2px 8px max(2px,env(safe-area-inset-bottom))}
 .ppl-app.ppl-ui-v212 .ppl-app-nav button{min-height:44px;flex-direction:row;gap:8px;padding:5px}
 .ppl-app.ppl-ui-v212 .ppl-app-nav button>span{font-size:22px}
 .ppl-app.ppl-ui-v212 .ppl-app-nav button>small{font-size:14px}
 body.ppl-standalone:has(.ppl-ui-v212) .ppl-audit-fab{bottom:calc(58px + env(safe-area-inset-bottom))}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead{min-height:44px;padding:3px 12px;gap:8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead h2{font-size:23px;line-height:1.2;margin:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead :is(.creative-subject,p,.creative-header-icon){display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-screenhead .ppl-back{width:40px;min-height:40px;height:40px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined>.creative-content{padding:6px 10px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;gap:10px;padding:0;border:0;background:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-layout>.creative-sheet{display:block;min-height:0;max-width:none;width:100%;padding:8px;border-radius:16px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-sheet .ppl-gesture-quest{display:block;padding:4px 8px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-top{font-size:12px;line-height:1.2;gap:5px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem{display:block;margin:2px 0;text-align:center}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem>img,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-problem .gesture-prompt,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-options{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-question{font-size:32px;line-height:1.15;margin:2px 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .gesture-answer-title{font-size:14px;line-height:1.2;margin:4px 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices{gap:7px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices button{min-height:48px;font-size:24px;line-height:1;padding:4px;border-radius:11px;box-shadow:0 2px #d5ad22}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices small{font-size:14px;line-height:1.1;margin-top:2px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-sheet>.creative-feedback{font-size:13px;line-height:1.2;min-height:16px;margin:4px 0;padding:0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-actions{display:flex;flex-wrap:nowrap;gap:6px;margin:4px 0 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-question-actions>.ppl-button{flex:1 1 0;min-width:0;min-height:44px;padding:5px;font-size:14px;line-height:1.2}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-sheet>.creative-sheet-heading,.ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-sheet>.creative-small-note{display:none}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera,.ppl-app.ppl-mockup-v2.ppl-readable-v219.gesture-camera-focus .gesture-refined .ppl-gesture-camera{height:clamp(128px,38dvh,176px);min-height:128px;margin:0;border-width:2px;border-radius:12px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-camera video{object-fit:contain}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-question{font-size:24px;padding:3px 7px;top:5px;left:5px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-question small{font-size:12px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-cameralabel{font-size:12px;padding:3px 6px;bottom:4px;left:4px;white-space:normal;line-height:1.2}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-primary{display:flex;gap:6px;margin:6px 0 0}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-camera-primary>.ppl-button{flex:1 1 0;width:auto;min-width:0;min-height:44px;font-size:14px;padding:5px;line-height:1.2}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-teacher-settings{margin:6px 0 0;font-size:14px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-teacher-settings>summary{min-height:44px;padding:8px}
 .ppl-app [data-extra-gesture-size]{display:none}
}

@media (min-width:600px) and (max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.ppl-ui-v212 .ppl-app-nav button{min-height:44px;height:44px;padding:4px;flex-direction:row}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219.ppl-ui-v212 .ppl-app-nav button>small{font-size:14px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px}
 .ppl-app.ppl-mockup-v2.ppl-readable-v219 .gesture-refined .ppl-gesture-choices small{margin:0}
}
