
#sregle-popup-stack{position:fixed;z-index:999999;display:flex;flex-direction:column;gap:12px;max-width:min(430px,calc(100vw - 28px));width:min(430px,calc(100vw - 28px));pointer-events:none}
#sregle-popup-stack.sregle-popup-bottom-left{left:14px;bottom:94px}
#sregle-popup-stack.sregle-popup-bottom-right{right:14px;bottom:94px}
#sregle-popup-stack.sregle-popup-top-left{left:14px;top:88px}
#sregle-popup-stack.sregle-popup-top-right{right:14px;top:88px}
.sregle-popup{pointer-events:auto;display:grid;grid-template-columns:48px 1fr 28px;gap:12px;align-items:center;padding:14px 14px 14px 12px;background:rgba(255,255,255,.97);border:1px solid rgba(14,77,166,.10);border-radius:18px;box-shadow:0 16px 45px rgba(8,37,92,.20);backdrop-filter:blur(14px);transform:translateY(16px);opacity:0;animation:sreglePopupIn .35s ease forwards;overflow:hidden;position:relative}
.sregle-popup:after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#0b6cff,#00a8ff)}
.sregle-popup.is-leaving{animation:sreglePopupOut .3s ease forwards}
.sregle-popup-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#edf5ff}
.sregle-popup.standard .sregle-popup-icon{background:#fff4d8}
.sregle-popup-body{min-width:0}
.sregle-popup-title{margin:0;font-size:15px;line-height:1.25;font-weight:800;color:#162033}
.sregle-popup-message{margin:4px 0 0;font-size:14px;line-height:1.35;color:#526074}
.sregle-popup-meta{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:11px;color:#78869b}
.sregle-popup-dot{width:7px;height:7px;border-radius:50%;background:#16a765;box-shadow:0 0 0 3px #e5f8ee}
.sregle-popup-close{border:0;background:transparent!important;color:#8290a3!important;font-size:25px;line-height:1;padding:0;cursor:pointer;box-shadow:none!important}
@keyframes sreglePopupIn{to{transform:translateY(0);opacity:1}}
@keyframes sreglePopupOut{to{transform:translateY(12px);opacity:0}}
@media(max-width:600px){
 #sregle-popup-stack{max-width:calc(100vw - 20px);width:calc(100vw - 20px)}
 #sregle-popup-stack.sregle-popup-bottom-left,#sregle-popup-stack.sregle-popup-bottom-right{left:10px;right:10px;bottom:82px}
 #sregle-popup-stack.sregle-popup-top-left,#sregle-popup-stack.sregle-popup-top-right{left:10px;right:10px;top:72px}
 .sregle-popup{grid-template-columns:42px 1fr 24px;padding:11px 11px 11px 9px;border-radius:16px}
 .sregle-popup-icon{width:42px;height:42px;border-radius:12px;font-size:21px}
 .sregle-popup-title{font-size:14px}.sregle-popup-message{font-size:13px}.sregle-popup-meta{font-size:10px;margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.sregle-popup{animation:none;opacity:1;transform:none}.sregle-popup.is-leaving{animation:none;opacity:0}}
/* Admin */
.sregle-popup-admin .sregle-popup-admin-hero{margin:18px 0;padding:26px 30px;border-radius:22px;background:linear-gradient(135deg,#0b6cff,#168cff);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 45px rgba(11,108,255,.22)}
.sregle-popup-admin-hero span{font-size:11px;letter-spacing:2px;font-weight:800;opacity:.8}.sregle-popup-admin-hero h1{margin:6px 0;font-size:30px;color:#fff}.sregle-popup-admin-hero p{margin:0;opacity:.88}.sregle-popup-admin-hero .button{border:0;background:#fff;color:#0b6cff;font-weight:700;padding:7px 14px;height:auto}
.sregle-popup-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.sregle-popup-admin .sregle-admin-card{background:#fff;border:1px solid #e7ebf2;border-radius:18px;padding:20px;box-shadow:0 8px 25px rgba(22,34,55,.05)}
.sregle-popup-admin h2{margin-top:0}.sregle-popup-check{display:flex;gap:12px;padding:13px;border:1px solid #edf0f5;border-radius:13px;margin:8px 0;background:#fbfcff}.sregle-popup-check input{margin-top:3px}.sregle-popup-check span{display:flex;flex-direction:column;gap:3px}.sregle-popup-check small{color:#6d7787}
.sregle-popup-setting-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin:12px 0}.sregle-popup-setting-row label,.sregle-popup-editor label{font-weight:700}.sregle-popup-setting-row input,.sregle-popup-setting-row select,.sregle-popup-editor input,.sregle-popup-editor select,.sregle-popup-editor textarea{width:100%;margin-top:6px}
.sregle-popup-preview{padding:15px;border-radius:15px;background:#f3f7fc}.sregle-popup-demo{display:grid;grid-template-columns:42px 1fr 20px;gap:10px;align-items:center;padding:11px;background:#fff;border-radius:14px;box-shadow:0 8px 20px rgba(22,34,55,.08);margin-bottom:10px}.sregle-popup-demo.standard{background:#fffdf6}.sregle-popup-demo .demo-icon{width:42px;height:42px;border-radius:12px;background:#e8f6ef;display:grid;place-items:center;font-size:21px}.sregle-popup-demo.standard .demo-icon{background:#fff0cf}.sregle-popup-demo strong{font-size:13px}.sregle-popup-demo p{margin:3px 0;font-size:12px;color:#58677c}.sregle-popup-demo small{font-size:10px;color:#7d8999}.sregle-popup-demo button{border:0;background:none;font-size:20px;color:#8290a3}
.sregle-popup-list-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.sregle-popup-status{font-weight:700;color:#777}.sregle-popup-status.active{color:#13945d}.sregle-popup-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sregle-popup-form-grid>div:nth-child(3){grid-column:1/-1}.sregle-popup-active{display:flex!important;gap:8px;align-items:center;margin-top:15px}
@media(max-width:900px){.sregle-popup-admin-grid,.sregle-popup-form-grid{grid-template-columns:1fr}.sregle-popup-form-grid>div:nth-child(3){grid-column:auto}.sregle-popup-admin-hero{flex-direction:column;align-items:flex-start!important}}

/* Standard admin announcements: separate centered modal with optional CTA. */
.sregle-standard-backdrop{
 position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;
 padding:20px;background:rgba(7,19,43,.58);backdrop-filter:blur(5px);
 opacity:0;animation:sregleStandardIn .22s ease forwards;
}
.sregle-standard-modal{
 position:relative;width:min(470px,calc(100vw - 34px));box-sizing:border-box;
 padding:30px 24px 22px;background:#fff;border-radius:24px;
 box-shadow:0 30px 90px rgba(0,0,0,.28);text-align:center;
 transform:translateY(12px) scale(.98);animation:sregleStandardCardIn .25s ease forwards;
}
.sregle-standard-backdrop.is-leaving{animation:sregleStandardOut .2s ease forwards}
.sregle-standard-icon{
 width:66px;height:66px;margin:0 auto 12px;border-radius:20px;display:grid;place-items:center;
 font-size:32px;background:#fff4d8;box-shadow:0 8px 24px rgba(11,108,255,.10)
}
.sregle-standard-category{
 display:inline-block;margin-bottom:8px;padding:5px 10px;border-radius:999px;
 background:#eef5ff;color:#1768d9;font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase
}
.sregle-standard-modal h3{margin:0 28px 9px;color:#152039;font-size:22px;line-height:1.2}
.sregle-standard-modal p{margin:0 auto;color:#5a687c;font-size:15px;line-height:1.55;max-width:390px;white-space:pre-wrap}
.sregle-standard-close{
 position:absolute;right:13px;top:11px;width:38px;height:38px;border:0!important;
 border-radius:12px;background:#f3f6fa!important;color:#667489!important;
 font-size:27px;line-height:1;cursor:pointer;box-shadow:none!important
}
.sregle-standard-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.sregle-standard-action,.sregle-standard-dismiss{
 min-height:44px;padding:11px 20px;border-radius:13px;border:0;text-decoration:none;
 font-size:14px;font-weight:800;cursor:pointer;box-sizing:border-box
}
.sregle-standard-action{background:#0b6cff;color:#fff!important;box-shadow:0 10px 25px rgba(11,108,255,.22)}
.sregle-standard-dismiss{background:#edf2f7;color:#536175}
@keyframes sregleStandardIn{to{opacity:1}}
@keyframes sregleStandardCardIn{to{transform:translateY(0) scale(1)}}
@keyframes sregleStandardOut{to{opacity:0}}
@media(max-width:600px){
 .sregle-standard-backdrop{padding:14px}
 .sregle-standard-modal{width:calc(100vw - 28px);padding:27px 18px 19px;border-radius:22px}
 .sregle-standard-modal h3{font-size:20px;margin-left:18px;margin-right:18px}
 .sregle-standard-modal p{font-size:14px}
 .sregle-standard-action,.sregle-standard-dismiss{width:100%}
}
@media(prefers-reduced-motion:reduce){
 .sregle-standard-backdrop,.sregle-standard-modal{animation:none;opacity:1;transform:none}
 .sregle-standard-backdrop.is-leaving{animation:none;opacity:0}
}

.sregle-preview-label{font-size:10px;font-weight:900;letter-spacing:1.1px;color:#7a8799;margin:4px 0 7px}
.sregle-standard-demo{position:relative;text-align:center;background:#fff;border:1px solid #e8edf5;border-radius:18px;padding:20px 16px 15px;box-shadow:0 14px 35px rgba(15,35,75,.12)}
.demo-standard-x{position:absolute;right:9px;top:8px;border:0!important;background:#f1f4f8!important;color:#667489!important;width:28px;height:28px;border-radius:9px;font-size:20px;line-height:1}
.demo-standard-icon{width:48px;height:48px;margin:0 auto 8px;border-radius:14px;display:grid;place-items:center;background:#fff2d2;font-size:24px}
.sregle-standard-demo>small{display:inline-block;color:#1768d9;background:#eef5ff;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;letter-spacing:.8px}
.sregle-standard-demo>strong{display:block;color:#172238;font-size:16px;margin-top:8px}
.sregle-standard-demo>p{color:#5c6a7d;font-size:12px;line-height:1.4;margin:5px auto 13px;max-width:320px}
.sregle-standard-demo>div:last-child{display:flex;justify-content:center;gap:7px}
.demo-cta,.demo-close{border:0;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:800}
.demo-cta{background:#0b6cff;color:#fff}.demo-close{background:#edf2f7;color:#536175}
