/* Banner artwork is always 8:3. Narrow containers place copy below the artwork. */
.edp-app .edp-slider{container-type:inline-size;container-name:edp-banner;display:grid;height:auto!important;min-height:0;isolation:isolate}
.edp-app .edp-slide{grid-area:1/1;position:relative;inset:auto;display:block;min-width:0;background:#102b50}
.edp-app .edp-banner-art{display:block;width:100%;height:auto;aspect-ratio:8/3;object-fit:contain;margin:0;border:0;background:linear-gradient(110deg,#102b50,#225080)}
.edp-app .edp-slide:before{background:linear-gradient(90deg,rgba(7,25,56,.94) 0%,rgba(7,25,56,.88) 48%,rgba(7,25,56,.25) 65%,transparent 78%);pointer-events:none}
.edp-app .edp-slide-content{left:4%;max-width:54%;width:54%;top:50%;transform:translateY(-50%);padding:0;overflow-wrap:anywhere}
.edp-app .edp-slide-title{font-size:clamp(19px,2.7cqi,30px)!important;line-height:1.2;font-weight:850;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.edp-app .edp-slide-sub{font-size:clamp(12px,1.7cqi,16px);line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.edp-app .edp-slide-btn{font-size:clamp(12px,1.5cqi,14px);padding:9px 14px;margin-top:12px;max-width:100%;white-space:normal}
.edp-app .edp-slider-dots{left:4%;transform:none;bottom:10px}
.edp-app .edp-slider-pause{bottom:8px;right:8px}
@container edp-banner (max-width:699px){
 .edp-app .edp-slide-content{position:relative;top:auto;left:auto;transform:none;width:auto;max-width:none;padding:20px 20px 45px}
 .edp-app .edp-slide:before{display:none}
 .edp-app .edp-slide-title{font-size:22px!important;display:block;overflow:visible}
 .edp-app .edp-slide-sub{font-size:14px;display:block;overflow:visible}
 .edp-app .edp-slide-btn{font-size:13px}
}
.edp-preview .edp-preview-promo img{width:100%;height:auto;max-height:none;aspect-ratio:8/3;object-fit:contain}

/* One viewport, one content scroll area; chat and lessons own their inner scroll. */
.edp-app.edp-app{height:var(--edp-screen-height,100dvh);min-height:0;max-height:var(--edp-screen-height,100dvh)}
.edp-app .edp-main{height:100%;min-height:0}
.edp-app .edp-workspace{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.edp-app.support-open .edp-workspace,.edp-app.studio-open .edp-workspace{overflow:hidden;display:flex;flex-direction:column;scrollbar-gutter:auto}
.edp-app #edp-view-support.active,.edp-app #edp-view-studio.active{display:flex;flex-direction:column;flex:1;min-height:0}
.edp-app #edp-view-support .edp-heading{flex:none;margin-bottom:12px}
.edp-app .edp-chat-shell{flex:1;width:100%;min-width:0;min-height:0;overflow:hidden;border:1px solid #dce4ee;border-radius:14px;background:#fff}
.edp-app .edp-chat-frame{display:block;width:100%;height:100%;max-width:100%;min-height:0;border:0;background:#fff}
.edp-app .edp-studio{height:100%;min-height:0;flex:1;overflow:hidden}
.edp-app .edp-studio-bar{flex-shrink:0}
.edp-app .edp-studio-frame{width:100%;min-height:0;flex:1}

/* Compact course cards. Details remain available without filling every card. */
.edp-app #edp-view-courses .edp-course-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));align-items:start;gap:14px}
.edp-app .edp-course-compact{padding:18px!important;min-width:0;border:1px solid #dce4ed;background:#fff}
.edp-app .edp-course-status-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#62748a}
.edp-app .edp-course-heading{display:flex;gap:10px;align-items:center;margin:16px 0}
.edp-app .edp-course-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#eef4fc;border-radius:10px;color:#204879}
.edp-app .edp-course-mark svg{width:20px;height:20px}
.edp-app .edp-course-compact .edp-course-title{font-size:16px;line-height:1.4;letter-spacing:-.015em;font-weight:750;margin:0;min-height:0;overflow-wrap:anywhere}
.edp-app .edp-course-compact .edp-progress-row{font-size:12px;margin:0 0 7px;color:#617187}
.edp-app .edp-course-compact .edp-progress{height:5px}
.edp-app .edp-course-expiry{font-size:12px;line-height:1.5;color:#617187;margin:10px 0 14px}
.edp-app .edp-course-compact>.edp-primary,.edp-app .edp-course-compact>.edp-secondary{width:100%;min-height:44px!important}
.edp-app .edp-course-compact .edp-course-detail{margin:10px 0 0;padding:0;border-top:1px solid #edf1f6}
.edp-app .edp-course-detail summary{min-height:40px;font-size:12px;font-weight:650;padding:8px 0;touch-action:manipulation}
.edp-app .edp-course-facts{display:grid;gap:10px;margin:2px 0 6px}
.edp-app .edp-course-facts div{min-width:0}
.edp-app .edp-course-facts dt{font-size:11px;color:#6a7b90}
.edp-app .edp-course-facts dd{font-size:12px;line-height:1.5;color:#203856;margin:2px 0 0;overflow-wrap:anywhere}

/* Account forms: compact desktop spacing with readable, touch-friendly inputs. */
.edp-auth-wrap.edp-auth-wrap{max-width:488px;margin:20px auto;padding:0 16px}
.edp-auth-wrap .edp-auth-card{padding:22px;border-radius:18px;box-shadow:0 10px 34px #102b5010}
.edp-auth-wrap .edp-auth-tabs{margin-bottom:18px;padding:4px;border-radius:11px;gap:4px}
.edp-auth-wrap .edp-auth-tab{min-height:42px;padding:9px 12px;font-size:14px;font-weight:700;line-height:1.3}
.edp-auth-wrap .edp-auth-panel h2{font-size:24px;line-height:1.2;margin-bottom:6px}
.edp-auth-wrap .edp-auth-note{font-size:13px;line-height:1.45;margin-bottom:16px}
.edp-auth-wrap .edp-auth-field{margin:12px 0}
.edp-auth-wrap .edp-auth-field label{margin-bottom:5px;font-size:12px;font-weight:650;line-height:1.4}
.edp-auth-wrap .edp-auth-input{height:44px;min-height:44px;line-height:22px;padding:10px 12px;font-size:16px;border-radius:9px;box-shadow:none}
.edp-auth-wrap .edp-auth-row{flex-direction:row;gap:8px}
.edp-auth-wrap .edp-auth-small{min-width:96px;min-height:44px;padding:0 11px;font-size:12px;line-height:1.2;border-radius:9px;white-space:nowrap}
.edp-auth-wrap .edp-phone-row{grid-template-columns:130px minmax(0,1fr);gap:8px}
.edp-auth-wrap .edp-phone-country{font-size:16px;padding:8px;min-width:0;max-width:100%}
.edp-auth-wrap .edp-phone-hint,.edp-auth-wrap .edp-password-hint{margin-top:5px;font-size:11px;line-height:1.4}
.edp-auth-wrap .edp-auth-main{min-height:44px;padding:11px 14px;font-size:14px;line-height:1.4;border-radius:9px;box-shadow:none}
.edp-auth-wrap .edp-auth-switch{margin-top:12px;line-height:1.5}
.edp-auth-wrap .edp-auth-switch button{min-height:32px;padding:0 4px}
.edp-auth-wrap .edp-password-toggle{min-height:40px;min-width:44px;right:4px;padding:8px}
.edp-auth-wrap .edp-auth-help{margin-top:6px;line-height:1.4}
.edp-auth-wrap .edp-auth-otp{margin-top:10px;padding:10px;border-radius:10px}
.edp-auth-wrap .edp-auth-otp-grid{grid-template-columns:minmax(0,1fr) 96px;gap:8px}
.edp-auth-wrap .edp-auth-otp-grid .edp-auth-small{min-height:44px}
.edp-auth-wrap .edp-otp-hint{margin-top:6px;line-height:1.4}
.edp-auth-wrap .edp-auth-local-msg{margin-top:6px;font-size:12px;line-height:1.4}
.edp-auth-wrap .edp-auth-local-msg:empty{display:none}
.edp-auth-wrap .edp-auth-alert{margin:10px 0;padding:10px;font-size:13px;line-height:1.4}
.edp-auth-wrap .edp-auth-otp.is-verified{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#ecfdf5;border-color:#b9e6d6}
.edp-auth-wrap .edp-auth-otp.is-verified>:is(label,.edp-auth-otp-grid,.edp-otp-hint,.edp-auth-local-msg){display:none}
.edp-auth-wrap .is-verified #edp-otp-expiry{display:none}
.edp-auth-wrap .edp-auth-otp.is-verified .edp-auth-verified{margin:0;padding:0}
.edp-auth-wrap .edp-auth-otp.is-verified .edp-auth-help{margin:0}
.edp-auth-wrap .edp-auth-linkbtn{min-height:32px}
@media(max-width:600px){
 .edp-app .edp-orders-wrap{overflow:visible;border:0;background:transparent}
 .edp-app .edp-orders{min-width:0;width:100%;display:block;background:transparent}
 .edp-app .edp-orders thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .edp-app .edp-orders tbody{display:grid;gap:12px}
 .edp-app .edp-orders tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #dce4ed;border-radius:12px;background:#fff}
 .edp-app .edp-orders td{display:block;padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere}
 .edp-app .edp-orders td:before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#687b92;margin-bottom:4px}
 .edp-app .edp-orders td:nth-child(3),.edp-app .edp-orders td:last-child{grid-column:1/-1}
 .edp-app .edp-orders td:last-child:before{display:none}
 .edp-app .edp-orders td:last-child button{width:100%}
 .edp-app .edp-heading{margin-bottom:14px}
 .edp-app .edp-course-compact{padding:16px!important}
 .edp-app .edp-course-heading{margin:12px 0}
 .edp-app.support-open .edp-workspace{padding:10px 10px max(10px,env(safe-area-inset-bottom))}
 .edp-app #edp-view-support .edp-heading h2{font-size:20px}
 .edp-app #edp-view-support .edp-heading p{font-size:12px;margin-top:4px}
 .edp-app .edp-chat-shell{border-radius:12px}
 .edp-app .edp-studio-title,.edp-app #edp-studio-title{font-size:16px;overflow-wrap:anywhere}
 .edp-app .edp-studio-note{display:none}
 .edp-auth-wrap.edp-auth-wrap{margin:12px auto;padding:0 12px}
 .edp-auth-wrap .edp-auth-card{padding:20px 16px;border-radius:16px}
 .edp-auth-wrap .edp-auth-panel h2{font-size:22px}
 .edp-auth-wrap .edp-phone-row{grid-template-columns:112px minmax(0,1fr)}
 .edp-auth-wrap .edp-auth-small{min-width:88px;padding:0 8px}
}
@media(max-height:500px){.edp-app.support-open .edp-heading p{display:none}.edp-app.support-open .edp-heading{margin-bottom:8px}.edp-app.support-open .edp-heading h2{font-size:18px}}

.edp-auth-wrap .edp-recovery-login{display:block;text-align:center;text-decoration:none;box-sizing:border-box;color:#fff}
