/* V1165: scoped modern shared customer error dialog */
#sb-error-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(8,28,23,.55);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
#sb-error-overlay.sb-visible{display:flex}
#sb-error-dialog{box-sizing:border-box;width:min(100%,480px);max-height:calc(100dvh - 36px);overflow-y:auto;background:#fff;border:1px solid #e4ede8;border-radius:24px;box-shadow:0 30px 90px rgba(4,37,27,.24);padding:30px;font:400 14px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif;color:#163d32;animation:sb-error-enter .22s ease-out}
@keyframes sb-error-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
#sb-error-dialog *{box-sizing:border-box}
#sb-error-dialog .sb-error-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
#sb-error-dialog .sb-error-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e8f5ee;color:#0C704F}
#sb-error-dialog button{font:400 14px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#sb-error-dialog button:focus-visible,#sb-error-dialog textarea:focus-visible,#sb-error-dialog summary:focus-visible{outline:3px solid #90d5b4;outline-offset:3px}
#sb-error-dialog .sb-error-x{border:0;background:#f3f7f5;color:#456b5e;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;padding:0}
#sb-error-dialog .sb-error-x:hover{background:#e8efeb}
#sb-error-dialog .sb-error-eyebrow{font-size:12px;letter-spacing:.045em;color:#0C704F;margin-bottom:6px}
#sb-error-dialog h2{font-size:25px;font-weight:650;letter-spacing:-.035em;line-height:1.2;margin:0 0 10px;color:#143b30}
#sb-error-dialog p#sb-error-text{font-size:14px;color:#61786f;margin:0 0 22px;line-height:1.65}
#sb-error-dialog .sb-error-details{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f6f9f7;border:1px solid #e6eeea;border-radius:13px;padding:12px 14px;margin-bottom:19px}
#sb-error-dialog .sb-error-code{font-size:12px;color:#5b7469;overflow-wrap:anywhere}
#sb-error-dialog #sb-error-copy{border:0;background:transparent;color:#0C704F;font-size:12px;padding:4px 0;white-space:nowrap}
#sb-error-dialog .sb-error-feedback{border:1px solid #e4ede8;border-radius:13px;padding:0 14px;margin-bottom:20px}
#sb-error-dialog .sb-error-feedback summary{padding:13px 0;cursor:pointer;color:#244e3e;list-style:none;display:flex;justify-content:space-between;gap:10px;font-size:13px}
#sb-error-dialog .sb-error-feedback summary::-webkit-details-marker{display:none}
#sb-error-dialog .sb-error-feedback summary span{color:#87988f;font-size:12px}
#sb-error-dialog label{display:block;font-size:12px;color:#526c60;margin:0 0 7px}
#sb-error-dialog textarea{display:block;width:100%;min-height:86px;resize:vertical;border:1px solid #dce7e1;border-radius:10px;padding:12px;font:400 13px/1.5 system-ui,sans-serif;margin-bottom:14px;color:#163d32;background:#fff}
#sb-error-dialog textarea::placeholder{color:#95a49d}
#sb-error-dialog .sb-error-actions{display:flex;gap:10px;margin-top:0}
#sb-error-dialog .sb-error-actions button{border:1px solid #d9e7df;background:#fff;color:#0C704F;border-radius:11px;padding:13px 15px;min-height:45px;flex:1}
#sb-error-dialog .sb-error-actions button.sb-primary{background:#0C704F;border-color:#0C704F;color:#fff;flex:1.4}
#sb-error-dialog .sb-error-actions button.sb-primary:hover{background:#085a3f}
#sb-error-dialog button[hidden]{display:none!important}
#sb-error-dialog button:disabled{opacity:.55;cursor:wait}
#sb-error-dialog .sb-error-status{font-size:12px;margin-top:12px;color:#0C704F;line-height:1.5;overflow-wrap:anywhere}
#sb-error-dialog .sb-error-status:empty{display:none}
#sb-error-dialog .sb-error-footnote{font-size:11px;color:#8b9b93;margin:16px 0 0;text-align:center}
@media(max-width:520px){#sb-error-dialog{padding:22px;border-radius:20px}#sb-error-dialog h2{font-size:23px}#sb-error-dialog .sb-error-actions{flex-direction:column}#sb-error-dialog .sb-error-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){#sb-error-dialog{animation:none}}

/* V1166 – monochrome, centered customer-facing dialog; shared across portals. */
#sb-error-overlay{background:rgba(24,27,32,.55);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
#sb-error-dialog{width:min(100%,490px);padding:32px 34px 27px;border:1px solid #e6e7e9;border-radius:26px;color:#202329;box-shadow:0 28px 100px rgba(18,21,26,.23);text-align:center}
#sb-error-dialog .sb-error-top{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:18px;min-height:68px}
#sb-error-dialog .sb-error-symbol{width:66px;height:66px;border-radius:21px;background:#f2f3f5;color:#4b5059;border:1px solid #e8e9ec}
#sb-error-dialog .sb-error-symbol svg{width:28px;height:28px;stroke-width:1.55}
#sb-error-dialog .sb-error-x{position:absolute;right:0;top:0;background:#f4f5f6;color:#666b73;border-radius:11px;width:36px;height:36px}
#sb-error-dialog .sb-error-x:hover{background:#e9ebee}
#sb-error-dialog .sb-error-eyebrow{text-align:center;color:#81858d;font-size:12px;font-weight:500;letter-spacing:.035em;margin:0 0 7px}
#sb-error-dialog h2{text-align:center;color:#22252b;font-size:27px;font-weight:650;letter-spacing:-.045em;line-height:1.2;margin:0 0 12px}
#sb-error-dialog p#sb-error-text{text-align:center;color:#777c84;font-size:14px;line-height:1.65;margin:0 auto 25px;max-width:370px;overflow-wrap:anywhere}
#sb-error-dialog .sb-error-details{text-align:left;background:#f6f7f8;border:1px solid #eceef0;border-radius:14px;padding:13px 15px;margin-bottom:12px}
#sb-error-dialog .sb-error-code,#sb-error-dialog #sb-error-ref{color:#5e636b;font-size:12px}
#sb-error-dialog #sb-error-copy{color:#4c515a;font-size:12px;font-weight:500}
#sb-error-dialog #sb-error-copy:hover{color:#181b20}
#sb-error-dialog .sb-error-feedback{text-align:left;border:1px solid #e8eaed;border-radius:14px;margin-bottom:14px}
#sb-error-dialog .sb-error-feedback summary{color:#555b63;font-size:13px}
#sb-error-dialog .sb-error-feedback summary span{color:#999da4}
#sb-error-dialog label{color:#666b73}
#sb-error-dialog textarea{border-color:#e0e2e6;color:#292c32}
#sb-error-dialog textarea:focus-visible,#sb-error-dialog button:focus-visible,#sb-error-dialog summary:focus-visible{outline:3px solid #b9bec6;outline-offset:3px}
#sb-error-dialog .sb-error-actions button{background:#fff;border-color:#dedfe3;color:#383c43;border-radius:12px;font-weight:400}
#sb-error-dialog .sb-error-actions button.sb-primary{background:#34373d;border-color:#34373d;color:#fff;font-weight:400}
#sb-error-dialog .sb-error-actions button.sb-primary:hover{background:#202329;border-color:#202329}
#sb-error-dialog .sb-error-status{color:#4f545c}
#sb-error-dialog .sb-error-footnote{color:#a0a4aa}
@media(max-width:520px){#sb-error-dialog{padding:26px 22px 22px;border-radius:22px}#sb-error-dialog h2{font-size:24px}#sb-error-dialog .sb-error-top{margin-bottom:14px}}
