/* One translucent surface across the public site, account panels and bot frames. */
html{--dialog-glass:linear-gradient(135deg,rgba(43,58,85,.56),rgba(15,24,48,.64));--dialog-ink:#f4f7ff;--dialog-line:#dceaff65;--dialog-field:#ffffff0d;--dialog-wash:#ffffff08;--dialog-shadow:0 26px 90px #050c2d66,inset 0 1px #ffffff60;--dialog-backdrop:#060d2459}
html[data-theme=light]{--dialog-glass:linear-gradient(135deg,rgba(255,255,255,.57),rgba(224,236,255,.65));--dialog-ink:#172c4b;--dialog-line:#ffffffc9;--dialog-field:#ffffff35;--dialog-wash:#ffffff20;--dialog-shadow:0 26px 80px #24436530,inset 0 1px #ffffffec;--dialog-backdrop:#19304736}
html[data-theme][data-design] body :is(dialog[open],[role=dialog][aria-modal=true],.event-overlay-card,.modal-content,.dialog-content){color:var(--dialog-ink)!important;background:var(--dialog-glass)!important;background-color:transparent!important;border:1px solid var(--dialog-line)!important;border-top-color:#ffffffb3!important;border-radius:26px!important;box-shadow:var(--dialog-shadow)!important;backdrop-filter:blur(28px) saturate(155%)!important;-webkit-backdrop-filter:blur(28px) saturate(155%)!important;isolation:isolate}
html[data-theme][data-design] body dialog[open]{box-sizing:border-box;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#b9c8e04d transparent}
html[data-theme][data-design] body dialog::backdrop{background:var(--dialog-backdrop)!important;backdrop-filter:blur(6px) saturate(105%)!important;-webkit-backdrop-filter:blur(6px) saturate(105%)!important}
/* Opaque form shells previously covered the actual dialog's glass. */
html[data-theme][data-design] body :is(dialog[open],[role=dialog][aria-modal=true],.event-overlay-card) :is(form,.form-card,.store-card,.editor-card,.modal-body,.modal-header,.modal-footer,.dialog-body,.dialog-top,.dialog-content,.store-dialog-body,.api-dialog-head,.blog-dialog-body,.exam-roster-form,.exam-roster-head,.exam-taking-head){color:inherit!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-theme][data-design] body dialog[open] :is(.form-card,.store-card,.editor-card){border-color:transparent!important}
html[data-theme][data-design] body :is(dialog[open],.event-overlay-card) :is(header,.call-slot,.exam-target,.assignment-item,.block-row,.student-pick-box,.student-call-box,.batch-student-list>label){background:var(--dialog-wash)!important;color:inherit!important;border-color:#b1c3df38!important;box-shadow:none!important}
html[data-theme][data-design] body :is(dialog[open],.event-overlay-card) :is(h1,h2,h3,h4,label,p,legend,.muted){color:inherit!important;-webkit-text-fill-color:currentColor;background-image:none!important;filter:none!important;text-shadow:none!important}
html[data-theme][data-design] body :is(dialog[open],.event-overlay-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){box-sizing:border-box;max-width:100%;min-width:0;background:var(--dialog-field)!important;color:inherit!important;border:1px solid #a5b9dc55!important;border-radius:13px!important;box-shadow:inset 0 1px #ffffff14!important}
html[data-theme][data-design] body dialog[open] :is(input,textarea)::placeholder{color:currentColor;opacity:.55}
html[data-theme][data-design] body dialog[open] :is(.store-dialog>header,.blog-preview-head){background:var(--dialog-wash)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
html[data-theme][data-design] body dialog[open] :is(.dialog-x,.dialog-close,.pwa-close,.pop-x,.erythro-dialog-close){display:grid;place-items:center;background:#a6b6d615!important;color:inherit!important;border:1px solid #b3c5e636!important;border-radius:12px!important;box-shadow:inset 0 1px #fff2;transition:background .18s,transform .18s}
html[data-theme][data-design] body dialog[open] :is(.dialog-x,.dialog-close,.pwa-close,.pop-x,.erythro-dialog-close):hover{background:#b3c5e632!important;transform:scale(1.05)}
html[data-theme][data-design] body #event-pop{background:var(--dialog-backdrop)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
html[data-theme][data-design] body #event-pop .event-overlay-card{background:var(--dialog-glass)!important;color:var(--dialog-ink)!important;border:1px solid var(--dialog-line)!important;box-shadow:var(--dialog-shadow)!important;backdrop-filter:blur(28px)!important;-webkit-backdrop-filter:blur(28px)!important}
html[data-theme][data-design] body .ql-tooltip{background:var(--dialog-glass)!important;color:var(--dialog-ink)!important;border:1px solid var(--dialog-line)!important;border-radius:16px!important;box-shadow:var(--dialog-shadow)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
html[data-theme][data-design] body .erythro-action-dialog{width:min(480px,calc(100vw - 28px));padding:25px!important;direction:rtl;font-family:inherit}
.erythro-action-dialog header{display:flex;align-items:center;gap:12px;background:none!important}.erythro-action-dialog header h2{flex:1;margin:0;font-family:inherit;font-weight:700;font-size:19px;line-height:1.9}.erythro-dialog-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:15px;background:#fa507a20;color:#ff7999;flex-shrink:0}.erythro-dialog-symbol svg{width:25px;height:25px}.erythro-dialog-close{position:static!important;width:34px;height:34px;font-size:24px;cursor:pointer}.erythro-dialog-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.1;margin:22px 0;font-size:14px}.erythro-action-dialog textarea{display:block;width:100%;padding:12px 15px;margin:9px 0 18px;font:inherit;line-height:1.9;resize:vertical}.erythro-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.erythro-dialog-actions button{cursor:pointer;padding:10px 22px;min-height:43px;border-radius:13px;border:1px solid #fa71994a;background:#d92c5c;color:white;font:inherit;font-size:13px}.erythro-dialog-actions .secondary{background:#8cadd615!important;color:inherit!important;border-color:#b0c3e44d!important}
@media(max-width:760px){html[data-theme][data-design] body dialog[open]{border-radius:22px!important}html[data-theme][data-design] body .erythro-action-dialog{padding:21px 18px!important}.erythro-action-dialog header h2{font-size:17px}.erythro-dialog-actions button{flex:1}.erythro-action-dialog textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.erythro-action-dialog *{transition:none!important;animation:none!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html{--dialog-glass:linear-gradient(135deg,#253855eb,#15203aeb)}html[data-theme=light]{--dialog-glass:linear-gradient(135deg,#fffffff0,#e0ecfff0)}}
