/* R4.15: safe native, responsive teaching panels */
.smart-dialog{box-sizing:border-box;width:min(920px,calc(100% - 24px));max-height:94dvh;padding:0;border:1px solid #c5d8e6;border-radius:16px;color:#15344c;background:#fff;overflow:auto}.smart-dialog::backdrop{background:#102f47b0}.smart-head{position:sticky;top:0;z-index:2;background:#10334d;color:#fff;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.smart-head h2{font-size:1.2rem;margin:0;color:#f4d182}.smart-body{padding:16px;display:flex;flex-direction:column;gap:12px}.smart-body textarea{box-sizing:border-box;width:100%;resize:vertical;line-height:1.5;font:inherit;white-space:pre-wrap}.smart-body details{border:1px solid #c5d8e6;padding:12px;border-radius:10px}.smart-body details textarea{margin-top:8px}.smart-body a{color:#205b91}.smart-status{white-space:pre-wrap;overflow-wrap:anywhere;color:#17496e}.smart-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.smart-circle{border:1px solid #b9d5e5;border-radius:50%;width:38px;height:38px;padding:0;display:inline-flex;justify-content:center;align-items:center;background:#103b59;color:#fff;font-weight:800;flex-shrink:0}.smart-circle[aria-pressed=true],.smart-circle:hover{background:#087d76;color:#fff}.smart-ask{background:#103b59;color:white;border:1px solid #103b59;font-weight:700}.smart-teaching{margin:12px 0;padding:12px;border:1px solid #c5d8e6;border-radius:12px;background:#f3f8fc;color:#15344c;min-width:0}.smart-teaching .smart-actions strong{flex:1}.smart-lesson{margin-top:12px;background:white;border-radius:12px;overflow:hidden;padding:16px;line-height:1.6;font-size:inherit}.smart-lesson[dir=rtl]{font-family:'Noto Naskh Arabic','Segoe UI',Tahoma,sans-serif;line-height:1.9;text-align:right}.smart-lesson h2{margin:-16px -16px 16px;padding:15px;background:#10334d;color:#f4d182;text-align:center}.smart-question{font-weight:750}.smart-option{display:flex;gap:12px;align-items:flex-start;background:#f2f6fa;border:1px solid #d5e2ec;border-radius:9px;margin:8px 0;padding:12px;overflow-wrap:anywhere}.smart-option b{direction:ltr;background:#205b91;color:white;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;font-size:15px}.smart-correct{background:#e2f4e9;border-color:#65af95;color:#146649}.smart-correct b{background:#087d76}.smart-explanation{margin-top:16px;background:#edf5fb;border:1px solid #a8c9dd;border-radius:10px;padding:14px}.smart-explanation h3{color:#205b91;margin:0}.smart-explanation ol{padding-inline-start:26px}.smart-remember{padding:12px;border-radius:8px;background:#fff4d7;color:#795815;font-weight:700}.smart-vocab{overflow:auto}.smart-vocab table{width:100%;border-collapse:collapse;font-size:.86em}.smart-vocab th,.smart-vocab td{padding:8px;border:1px solid #d5e2ec;vertical-align:top;overflow-wrap:anywhere}.smart-vocab th{background:#10334d;color:white}.smart-vocab tr:nth-child(even){background:#f3f7fa}.smart-teaching details{margin-top:10px}.smart-teaching details p{overflow-wrap:anywhere}.question-toolbox-header .smart-circle{margin-left:auto}.question-toolbox-header .smart-circle+.question-toolbox-toggle{margin-left:0}.studio-p-screen{box-sizing:border-box;min-height:100%;background:#102f47;padding:clamp(12px,3vh,32px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1vh,14px);text-align:center}.studio-p-screen[hidden],.studio-middle[hidden]{display:none!important}.studio-p-screen p{margin:0;max-width:1150px;font-weight:700;line-height:1.45;font-size:clamp(16px,3vh,34px)}.studio-p-screen p[dir=rtl]{font-family:'Noto Naskh Arabic','Segoe UI',Tahoma,sans-serif;font-size:clamp(20px,4vh,44px);line-height:1.55}.studio-p-screen hr{border:0;border-top:1px solid #587487;width:90%}.studio-p-screen .studio-outro-identity{margin-top:8px}.studio-middle{margin:12px auto;width:100%;max-width:1300px;box-sizing:border-box}.studio-middle .smart-teaching{font-size:clamp(16px,2.5vh,28px)}.studio-middle .smart-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-middle .smart-video-grid div{border-radius:8px;background:#edf5fb;padding:9px;color:#15344c;font-size:clamp(14px,2vh,20px)}
.smart-title-editor{display:grid;gap:8px;margin:12px 0;padding:14px;border:1px solid #c5d8e6;border-radius:10px}.smart-title-editor textarea{width:100%}.smart-title-editor button{justify-self:start}

/* R4.15.2 */
.smart-head button{background:#fff;color:#10334d;border:1px solid #b9d5e5;font-weight:700}.smart-head button:hover,.smart-head button:focus-visible{background:#e0f2f1;color:#10334d}.smart-status:empty{display:none}.question-toolbox-header .smart-circle{margin-left:0}.question-toolbox-header .smart-circle:first-of-type{margin-left:auto}.question-toolbox-header .smart-header-language{background:#205b91}.question-toolbox-header .smart-header-language:nth-of-type(2){background:#087d76}.smart-teaching .smart-actions[hidden]{display:none!important}.studio-demo{padding:clamp(12px,2vw,28px);max-width:1500px;margin:0 auto}.studio-demo-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#10334d;color:#f4d182;padding:14px;border-radius:12px;font-size:clamp(18px,2.5vh,28px)}.studio-demo-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;align-items:center;padding:12px 0}.studio-demo-grid img{width:100%;max-height:36vh;object-fit:contain}.studio-demo-grid h2{font-size:clamp(20px,3vh,30px)}.studio-demo-grid .studio-option{font-size:clamp(15px,2.5vh,26px);margin:8px 0}.studio-demo .smart-teaching:has(>div:empty){display:none}.studio-demo .smart-teaching{padding:8px}.studio-demo .studio-outro-address{max-width:100%;margin:10px auto}.studio-demo .video-language-link{display:inline-block}.studio-demo .smart-video-grid small{display:block}.studio-outro .studio-registration-head .studio-urdu{font-size:clamp(24px,4.3vh,48px);color:#f4d182;font-weight:800}.studio-outro .studio-registration-head .studio-roman{font-size:clamp(20px,3.3vh,36px);color:#fff;font-weight:750}.studio-outro .studio-outro-motto p{font-size:clamp(19px,3vh,32px)}.studio-outro .studio-outro-identity strong,.studio-outro .studio-outro-identity p{font-size:clamp(17px,2.5vh,27px)}.studio-outro .studio-outro-identity img{width:clamp(45px,7vh,76px);height:auto}@media(max-width:680px){.studio-demo-grid{grid-template-columns:1fr}.studio-demo .smart-video-grid{grid-template-columns:1fr}.studio-demo-header{flex-wrap:wrap}}

.studio-demo-header{position:sticky;top:0;z-index:3}.studio-demo-grid[hidden],.studio-demo .question-toolbox-body[hidden]{display:none!important}.studio-demo .smart-lesson{font-size:clamp(16px,2.5vh,27px)}.studio-demo .smart-teaching .smart-vocab th,.studio-demo .smart-teaching .smart-vocab td{padding:6px}.studio-outro .studio-outro-motto p{font-size:clamp(22px,3.6vh,38px)}
