dialog.alnoor-smart-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(470px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;border:1px solid #c9d8e3;border-radius:18px;background:white;color:#15344c;overflow:auto;box-shadow:0 20px 70px #102d4366;font:16px/1.5 system-ui,sans-serif;z-index:2147483647}
dialog.alnoor-smart-dialog::backdrop{background:#102d4388}
.alnoor-smart-dialog .asd-head{background:#102d43;color:#f4d18a;font-weight:700;padding:16px 20px;border-bottom:3px solid #e9c16b}
.alnoor-smart-dialog .asd-body{padding:24px;text-align:center;display:grid;gap:12px;justify-items:center}
.alnoor-smart-dialog h2{font-size:23px;margin:0;color:#15344c}.alnoor-smart-dialog p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#43596a}
.alnoor-smart-dialog .asd-symbol{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e5effb;color:#245a91;font-size:30px;font-weight:700}
.alnoor-smart-dialog:is([data-kind=warning],[data-kind=confirm],[data-kind=policy]) .asd-symbol{background:#fff1d6;color:#93610b}
.alnoor-smart-dialog:is([data-kind=danger],[data-kind=error]) .asd-symbol{background:#fbe5e5;color:#ad3434}
.alnoor-smart-dialog[data-kind=success] .asd-symbol{background:#e2f4e9;color:#087d55}
.alnoor-smart-dialog .asd-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;width:100%;margin-top:8px}
.alnoor-smart-dialog button{font:600 15px system-ui;min-height:44px;padding:10px 18px;border:1px solid #cbd9e4;border-radius:9px;color:#15344c;background:white;cursor:pointer}
.alnoor-smart-dialog .asd-ok{background:#087d76;color:white;border-color:#087d76}.alnoor-smart-dialog[data-kind=danger] .asd-ok{background:#ad3434;border-color:#ad3434}
.alnoor-smart-dialog :is(button,input):focus-visible{outline:3px solid #3979bf;outline-offset:3px}
.alnoor-smart-dialog input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #b7c9df;border-radius:8px;font:inherit}
.alnoor-smart-dialog .asd-footer{text-align:center;background:#f1f5f8;padding:10px;color:#526980;font-size:13px}

/* R4.18.8: scoped administration surfaces only. */
.alnoor-panel-head,.alnoor-smart-dialog .asd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102f46;color:#fff;padding:12px 16px;border-radius:10px 10px 0 0;border-bottom:2px solid #e9c16b;box-sizing:border-box}
.alnoor-panel-head h2,.alnoor-panel-head strong{color:#fff!important;margin:0!important;font-size:clamp(16px,2vw,21px)!important;overflow-wrap:anywhere;min-width:0}
button.alnoor-dialog-x,.alnoor-smart-dialog button.alnoor-dialog-x{flex:none;width:38px;min-width:38px;min-height:38px;height:38px;padding:0!important;margin:0!important;display:grid;place-items:center;background:#fff!important;color:#102f46!important;border:1px solid #ccdce5!important;border-radius:8px;font-size:24px!important;line-height:1!important;cursor:pointer}
.alnoor-dialog-x:focus-visible{outline:3px solid #e9c16b;outline-offset:2px}
.alnoor-smart-dialog .asd-ok:disabled{opacity:.5;cursor:not-allowed}
.sc-course-dialog{border-radius:16px!important;max-height:calc(100dvh - 28px)!important;box-sizing:border-box;overflow:auto!important}
.sc-course-dialog>.alnoor-panel-head{position:sticky;top:0;z-index:2;margin-bottom:12px}
.sc-course-dialog .sc-course-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;z-index:1;border-top:1px solid #d5e5e9}
.sc-class-popover>.alnoor-panel-head{margin-bottom:8px;padding:8px 10px}
.sc-class-popover .alnoor-panel-done{display:block;margin:10px 0 0 auto;padding:7px 15px;border:1px solid #a9c8d5;border-radius:8px;background:#fff;color:#102f46;cursor:pointer}
#student-chat #student-memberships .sc-policy-zone{padding:12px 16px}
#student-chat .alnoor-policy-row,#student-chat .alnoor-policy-footer,#student-chat .alnoor-policy-days{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#student-chat .alnoor-policy-row>label{display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;background:white;border:1px solid #d5e5e9;border-radius:8px}
#student-chat .alnoor-policy-days label{margin:0}
#student-chat .alnoor-policy-days input{width:80px!important;min-width:0;margin:0!important}
#student-chat .alnoor-policy-footer{margin-top:10px}
#student-chat .alnoor-policy-footer button{margin:0!important}
#student-chat .alnoor-policy-footer p{flex:1;min-width:min(100%,240px);margin:0!important;padding:8px 10px;border-left:3px solid #158183;background:white;border-radius:6px}
.alnoor-course-workspace{border:1px solid #b7d4da;border-left:4px solid #087d76;border-radius:14px;padding:16px;margin:18px 0;background:#f3faf9}
.alnoor-course-workspace>h3{margin:0 0 6px;color:#075e61;font-size:20px}
.alnoor-course-workspace>p{margin:0 0 10px}
.alnoor-course-workspace>select{min-width:min(100%,220px);max-width:100%}
.alnoor-course-workspace>.bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.alnoor-course-workspace>button{color:#a43730;border-color:#d6a5a2;margin-top:8px}
.smart-library{border-top:3px solid #245a91!important;margin-top:18px!important}
@media(max-width:600px){#student-chat .alnoor-policy-row{align-items:stretch;flex-direction:column}#student-chat .alnoor-policy-footer{align-items:flex-start}.alnoor-course-workspace{padding:12px}.alnoor-panel-head{padding:10px}}
