:root {--safety-ink:#8c1425;--safety-bg:#fff2f3;--safety-line:#bc263b;--safety-button:#9f1830;--safety-on-button:#fff;}
:root[data-theme="dark"] {--safety-ink:#ffcad2;--safety-bg:#351c24;--safety-line:#ef8c9c;--safety-button:#ffc0cb;--safety-on-button:#38141e;}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--safety-ink:#ffcad2;--safety-bg:#351c24;--safety-line:#ef8c9c;--safety-button:#ffc0cb;--safety-on-button:#38141e;}}
.msg .chat-safety-alert,.chat-safety-alert,.safety-notice-dialog {color:var(--safety-ink);background:var(--safety-bg);border:1px solid var(--safety-line);border-left:4px solid var(--safety-line);border-radius:12px;padding:16px;box-sizing:border-box;overflow-wrap:anywhere;}
.msg .chat-safety-alert {width:100%;max-width:100%;margin:10px 0 14px;}
.chat-safety-alert h3,.safety-notice-dialog h2 {color:inherit;margin:10px 0 8px;font-size:20px;line-height:1.25;}
.chat-safety-alert p,.safety-notice-dialog p {color:inherit;margin:8px 0;line-height:1.5;}
.safety-kind {display:flex;gap:8px;align-items:center;font-size:13px;font-weight:700;line-height:1.35;}
.safety-symbol {display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:2px solid currentColor;border-radius:50%;font-weight:800;}
.chat-safety-alert .safety-caption,.safety-notice-dialog .safety-caption {font-size:13px;line-height:1.45;}
.safety-screen-note {font-size:12px;line-height:1.45;color:var(--muted);margin:8px 0;}
.safety-notice-dialog {width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 32px);margin:auto;padding:24px;overflow-y:auto;box-shadow:0 20px 80px #0005;}
.safety-notice-dialog::backdrop {background:#160b1266;}
.safety-notice-dialog h2 {font-size:24px;}
.safety-notice-dialog #safety-notice-message {font-size:17px;white-space:pre-line;}
.safety-notice-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.safety-notice-actions button,.safety-call {display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--safety-line);border-radius:8px;white-space:normal;text-align:center;line-height:1.35;font-size:15px;text-decoration:none;box-sizing:border-box;}
.safety-call {color:var(--safety-on-button)!important;background:var(--safety-button);font-weight:700;}
.safety-notice-actions button {color:var(--safety-ink);background:transparent;}
.safety-notice-dialog :focus-visible,.chat-safety-alert :focus-visible {outline:3px solid var(--safety-line);outline-offset:3px;}
@media(max-width:420px){.safety-notice-dialog{padding:18px;}.safety-notice-dialog h2{font-size:22px;}.safety-notice-actions>*{width:100%;}.msg .chat-safety-alert{padding:12px;}}
