/* SIMHSYCN global confirmation and action feedback system. */
.simh-feedback-lock{overflow:hidden!important}
.simh-feedback-layer{position:fixed;inset:0;z-index:2147482500;display:grid;place-items:center;padding:20px;pointer-events:none;font-family:inherit}
.simh-feedback-layer[hidden]{display:none!important}
.simh-feedback-backdrop{position:absolute;inset:0;background:rgba(4,17,29,.58);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);opacity:0;transition:opacity .18s ease;pointer-events:auto}
.simh-feedback-card{position:relative;width:min(448px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 40px));overflow:auto;padding:24px;border:1px solid rgba(138,171,194,.28);border-radius:25px;background:linear-gradient(155deg,rgba(255,255,255,.99),rgba(244,250,252,.99));color:#173047;box-shadow:0 28px 90px rgba(1,19,34,.32);opacity:0;transform:translateY(14px) scale(.975);transition:opacity .18s ease,transform .18s ease;pointer-events:auto}
.simh-feedback-layer.is-open .simh-feedback-backdrop{opacity:1}
.simh-feedback-layer.is-open .simh-feedback-card{opacity:1;transform:translateY(0) scale(1)}
.simh-feedback-head{display:flex;align-items:flex-start;gap:14px}
.simh-feedback-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:17px;background:#e6f7f3;color:#0d8f80;box-shadow:inset 0 0 0 1px rgba(13,143,128,.12)}
.simh-feedback-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.simh-feedback-copy{min-width:0;padding-top:2px}
.simh-feedback-eyebrow{display:block;margin:0 0 4px;color:#0f9185;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.simh-feedback-title{margin:0;color:#163149;font-size:22px;line-height:1.13;font-weight:900;letter-spacing:-.02em}
.simh-feedback-message{margin:15px 0 0;color:#5c6f7e;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.simh-feedback-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:22px}
.simh-feedback-btn{display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:42px;padding:9px 16px;border:1px solid #cedde6;border-radius:12px;background:#fff;color:#29475d;font:inherit;font-size:12px;font-weight:900;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease}
.simh-feedback-btn:hover,.simh-feedback-btn:focus-visible{transform:translateY(-1px);border-color:#93b4c7;box-shadow:0 7px 18px rgba(25,67,93,.11);outline:none}
.simh-feedback-btn.primary{border-color:#0e9488;background:linear-gradient(135deg,#0a9a87,#287ec5);color:#fff;box-shadow:0 9px 24px rgba(17,132,144,.22)}
.simh-feedback-btn.danger{border-color:#d74848;background:linear-gradient(135deg,#d74747,#b82e3d);color:#fff;box-shadow:0 9px 24px rgba(185,46,61,.2)}
.simh-feedback-close{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:33px;height:33px;padding:0;border:0;border-radius:10px;background:rgba(91,120,139,.08);color:#587083;cursor:pointer}
.simh-feedback-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.simh-feedback-card.is-success{text-align:center;padding:29px 25px 25px}
.simh-feedback-card.is-success .simh-feedback-head{display:grid;justify-items:center;gap:11px}
.simh-feedback-card.is-success .simh-feedback-icon{width:72px;height:72px;flex-basis:72px;border-radius:50%;background:linear-gradient(145deg,#dff9ed,#c8f4e4);color:#07845e;box-shadow:0 12px 30px rgba(7,132,94,.17),inset 0 0 0 1px rgba(7,132,94,.12)}
.simh-feedback-card.is-success .simh-feedback-icon svg{width:37px;height:37px;animation:simhFeedbackCheck .36s cubic-bezier(.2,.9,.3,1.25) both}
.simh-feedback-card.is-success .simh-feedback-copy{padding:0}
.simh-feedback-card.is-success .simh-feedback-message{margin-top:10px}
.simh-feedback-card.is-success .simh-feedback-actions{justify-content:center;margin-top:20px}
.simh-feedback-card.is-error .simh-feedback-icon{background:#ffebe9;color:#c43838}
.simh-feedback-card.is-error .simh-feedback-eyebrow{color:#c43838}
.simh-feedback-card.is-warning .simh-feedback-icon{background:#fff2d9;color:#a66700}
.simh-feedback-card.is-warning .simh-feedback-eyebrow{color:#a66700}
@keyframes simhFeedbackCheck{0%{transform:scale(.45) rotate(-10deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
html[data-theme="dark"] .simh-feedback-backdrop{background:rgba(0,7,15,.72)}
html[data-theme="dark"] .simh-feedback-card{border-color:rgba(134,174,202,.25);background:linear-gradient(155deg,#122238,#0d1a2b);color:#edf6fc;box-shadow:0 30px 100px rgba(0,0,0,.55)}
html[data-theme="dark"] .simh-feedback-title{color:#f4f9fc}
html[data-theme="dark"] .simh-feedback-message{color:#b5c5d1}
html[data-theme="dark"] .simh-feedback-btn{border-color:#3a5368;background:#172a3f;color:#e6f0f7}
html[data-theme="dark"] .simh-feedback-btn:hover,html[data-theme="dark"] .simh-feedback-btn:focus-visible{border-color:#6e91aa;background:#1d344b}
html[data-theme="dark"] .simh-feedback-close{background:rgba(181,207,224,.1);color:#b8cad7}
html[data-theme="dark"] .simh-feedback-icon{background:#173c3b;color:#77ead5}
html[data-theme="dark"] .simh-feedback-card.is-success .simh-feedback-icon{background:linear-gradient(145deg,#123d31,#15513e);color:#79efc3}
html[data-theme="dark"] .simh-feedback-card.is-error .simh-feedback-icon{background:#472326;color:#ff9a9a}
html[data-theme="dark"] .simh-feedback-card.is-warning .simh-feedback-icon{background:#493718;color:#ffd98f}
@media(max-width:520px){.simh-feedback-layer{padding:14px}.simh-feedback-card{width:100%;padding:21px 18px;border-radius:22px}.simh-feedback-head{gap:12px}.simh-feedback-icon{width:46px;height:46px;flex-basis:46px;border-radius:15px}.simh-feedback-title{font-size:19px}.simh-feedback-message{font-size:12.5px;line-height:1.58}.simh-feedback-actions{display:grid;grid-template-columns:1fr 1fr}.simh-feedback-card.is-success .simh-feedback-actions{grid-template-columns:1fr}.simh-feedback-btn{width:100%;min-width:0}.simh-feedback-card.is-success{padding:26px 18px 21px}}
@media(prefers-reduced-motion:reduce){.simh-feedback-backdrop,.simh-feedback-card,.simh-feedback-btn{transition:none!important}.simh-feedback-icon svg{animation:none!important}}


/* Mobile containment: confirmation UI must never widen the document. */
.simh-feedback-layer,.simh-feedback-layer *{box-sizing:border-box}
.simh-feedback-layer{width:100vw;max-width:100vw;overflow:hidden}
.simh-feedback-card{min-width:0;max-width:calc(100vw - 28px);overflow-x:hidden}
.simh-feedback-actions{min-width:0;max-width:100%}
.simh-feedback-btn{max-width:100%;box-sizing:border-box}
@media(max-width:520px){.simh-feedback-layer{padding:12px}.simh-feedback-card{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:20px 16px}.simh-feedback-actions{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.simh-feedback-btn{min-width:0;width:100%;padding-left:10px;padding-right:10px}}


/* Viewport-safe modal override for hosted mobile clients. */
.simh-feedback-layer{left:0!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;max-width:none!important;overflow:hidden!important;contain:layout paint;}
.simh-feedback-card{width:min(420px,calc(100dvw - 24px))!important;max-width:calc(100dvw - 24px)!important;margin:0 auto!important;}
@media(max-width:520px){.simh-feedback-layer{padding:12px!important}.simh-feedback-card{width:calc(100dvw - 24px)!important;max-width:calc(100dvw - 24px)!important}.simh-feedback-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.simh-feedback-btn{pointer-events:auto!important;touch-action:manipulation}}
