/* Overlay messages never change the business shell's grid or header position. */
dialog.business-message-dialog { --message-accent:var(--accent,#326da2); box-sizing:border-box; width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--line,#ccd5df); border-radius:16px; background:var(--surface,#fff); color:var(--ink,#172b42); box-shadow:0 24px 80px #101e3440; overflow:auto; font:inherit; }
dialog.business-message-dialog::backdrop { background:#15263b80; backdrop-filter:blur(3px); }
.business-message-dialog[data-tone=error] { --message-accent:var(--danger,#bd4545); }
.business-message-dialog[data-tone=warning] { --message-accent:var(--trade-warning,#aa6a13); }
.business-message-dialog[data-tone=success] { --message-accent:var(--success,#287961); }
.business-message-head { display:flex; align-items:center; gap:12px; padding:22px 24px; border-bottom:1px solid var(--line,#ccd5df); }
.business-message-head::before { content:'i'; display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:10px; background:color-mix(in srgb,var(--message-accent) 10%,var(--surface,#fff)); color:var(--message-accent); font-size:19px; font-weight:800; }
[data-tone=error]>.business-message-head::before,[data-tone=error]>form>.business-message-head::before,[data-tone=warning]>.business-message-head::before,[data-tone=warning]>form>.business-message-head::before { content:'!'; }
[data-tone=success]>.business-message-head::before,[data-tone=success]>form>.business-message-head::before { content:'✓'; }
.business-message-head h2 { margin:0; font-size:19px; line-height:1.4; letter-spacing:-.4px; }
.business-message-body { padding:22px 24px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; font-size:13px; }
.business-message-body>:first-child { margin-top:0; }
.business-message-body>:last-child { margin-bottom:0; }
.business-message-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:16px 24px; border-top:1px solid var(--line,#ccd5df); background:color-mix(in srgb,var(--canvas,#f4f6f8) 65%,var(--surface,#fff)); }
.business-message-actions .button { min-height:38px; padding:8px 18px; border-radius:8px; font-size:13px; }
.business-summary { margin:16px 0 0; padding:0; border:1px solid var(--line,#ccd5df); border-radius:10px; overflow:hidden; white-space:normal; }
.business-summary>div { display:grid; grid-template-columns:112px minmax(0,1fr); gap:12px; padding:10px 14px; border-bottom:1px solid var(--line,#ccd5df); }
.business-summary>div:last-child { border-bottom:0; }
.business-summary dt { color:var(--muted,#6c7e92); font-size:12px; font-weight:500; }
.business-summary dd { min-width:0; margin:0; color:var(--ink,#172b42); font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.business-message-note { margin:16px 0 0; color:var(--muted,#6c7e92); font-size:12px; line-height:1.65; }
.business-message-error:empty { display:none; }
.business-message-error { border-left:3px solid var(--danger,#bd4545); background:color-mix(in srgb,var(--danger,#bd4545) 5%,var(--surface,#fff)); padding:10px 12px; color:var(--danger,#bd4545); border-radius:4px; }
.business-message-dialog [hidden] { display:none!important; }
.business-message-toasts { position:fixed; right:20px; bottom:20px; z-index:10000; width:min(400px,calc(100vw - 32px)); display:grid; gap:8px; pointer-events:none; }
.business-message-toast { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid var(--line,#ccd5df); border-left:4px solid var(--accent,#326da2); border-radius:8px; background:var(--surface,#fff); color:var(--ink,#172b42); box-shadow:0 4px 20px #0002; overflow-wrap:anywhere; font-size:13px; line-height:1.5; pointer-events:auto; }
.business-message-toast span { min-width:0; flex:1; }
.business-message-toast button { flex:none; border:0; background:transparent; color:inherit; cursor:pointer; font-size:20px; line-height:1; }
#gt-message:empty,#mi-message:empty,#ib-message:empty,#tc-message:empty,#broker-calls-message:empty,#dbsec-console-message:empty,#vr-status:empty,.form-error:empty { display:none; }
.business-inline-message { margin:0; padding:12px 16px; border-top:1px solid var(--line); overflow-wrap:anywhere; line-height:1.5; }
@media(max-width:600px) { .business-message-toasts { right:16px; bottom:16px; } }
@media(max-width:480px) { .business-message-head{padding:18px}.business-message-body{padding:18px}.business-message-actions{padding:14px 18px}.business-summary>div{grid-template-columns:92px minmax(0,1fr);gap:8px;padding:9px 11px}.business-message-actions .button{flex:1} }
