body [data-feedback]{box-sizing:border-box;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
body :is(#content,#dialogFields) [data-feedback="loading"],body #systemSaving {padding:12px 16px;border:1px solid #b6d4cd;border-radius:8px;color:#15333c;background:#eef7f4}
body [data-feedback="loading"]::before{content:"";display:inline-block;width:14px;height:14px;border:2px solid #b6d4cd;border-top-color:#147466;border-radius:50%;margin-inline-end:10px;vertical-align:-2px;animation:feedback-spin .8s linear infinite}
body [data-feedback="empty"] {padding:20px;border:1px dashed #a9bcb6;border-radius:8px;background:#f5f8f7;color:#4b626b;text-align:start}
body [data-feedback-hint]::after{content:attr(data-feedback-hint);display:block;margin-top:6px}
body #dialogError:not(:empty),body :is(#content,#dialogFields) [data-feedback="error"]:not(:empty){padding:12px 16px;border:1px solid #d8a7a7;border-inline-start:4px solid #a03333;border-radius:8px;background:#fff3f3;color:#7d2424;font-size:14px;line-height:1.5}
body #dialogError:empty{display:none}
body :is(input,select,textarea)[aria-invalid="true"]{border:2px solid #a03333!important;outline-offset:2px}
body #toast[data-feedback]{display:flex;align-items:flex-start;gap:10px;max-width:min(560px,calc(100vw - 32px));padding:14px 16px;border:1px solid #8fa9a0;border-radius:10px;background:#fff;color:#15333c;box-shadow:0 8px 28px #15333c26;z-index:10050}
body #toast[data-feedback="success"]{border-inline-start:5px solid #147466;background:#eef8f2}
body #toast[data-feedback="error"]{border-inline-start:5px solid #a03333;background:#fff3f3;color:#7d2424}
body #toast[hidden],body #systemSaving[hidden]{display:none!important}
body .feedback-icon{font-weight:800;font-size:18px;line-height:1.2}
body #toast .feedback-dismiss{flex:none;margin-inline-start:auto;min-width:36px;min-height:36px;border:1px solid #b8c8c1;border-radius:6px;background:#fff;color:#15333c;cursor:pointer}
body #systemSaving{position:fixed;top:16px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);z-index:10040;box-shadow:0 6px 20px #15333c26;pointer-events:none}
body #saveDialog[aria-busy="true"]::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #b6d4cd;border-top-color:currentColor;border-radius:50%;margin-inline-end:8px;animation:feedback-spin .8s linear infinite}
@keyframes feedback-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body [data-feedback="loading"]::before,body #saveDialog[aria-busy="true"]::before{animation:none}}

body #dialogError[data-feedback="error"] {white-space:pre-line}
html[data-command-theme="dark"] body:has([data-communications-section="Contacts"]) :is(#systemSaving,#toast[data-feedback],#dialogError:not(:empty),#toast .feedback-dismiss),
html[data-command-theme="dark"] body:has([data-communications-section="Contacts"]) :is(#content,#dialogFields) [data-feedback]:not(:empty){background:#19262e!important;color:#e3edf1!important;border-color:#465b66;}
html[data-command-theme="dark"] body:has([data-communications-section="Contacts"]) #toast .feedback-dismiss{background:#263c47!important;color:#e3edf1!important;}
