/* Reserve the bottom edge for the published site's Netlify badge. */
#trust-chat { --trust-bottom:calc(88px + env(safe-area-inset-bottom, 0px)); position:fixed; bottom:var(--trust-bottom); right:24px; z-index:60; font-family:inherit; color:#e2e8f0; font-size:14px; line-height:1.5; }
#trust-chat [hidden] { display:none!important; }
#trust-chat button, #trust-chat input, #trust-chat textarea { font:inherit; }
#trust-chat button { cursor:pointer; }
#trust-chat button:disabled { opacity:.55; cursor:wait; }
#trust-chat :focus-visible { outline:2px solid #5eead4; outline-offset:3px; }
.trust-launch { display:flex; align-items:center; gap:12px; padding:14px 20px; border:1px solid #ffb572; background:#f97316; color:#23160d; border-radius:12px; box-shadow:0 12px 32px #02061766; font-weight:700!important; }
#trust-chat .trust-launch:focus-visible { outline-color:#ffb572; }
.trust-launch svg { width:22px; height:22px; }
.trust-panel { width:410px; max-width:calc(100vw - 32px); height: min(700px, calc(100dvh - var(--trust-bottom) - 24px)); display:flex; flex-direction:column; background:#0f172a; border:1px solid #37605f; border-radius:16px; box-shadow:0 24px 70px #02061799; overflow:hidden; }
.trust-heading { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; background:#112c32; border-bottom:1px solid #315359; }
.trust-heading strong { font-size:18px; color:#f8fafc; }
.trust-heading small { display:block; color:#99c6c3; font-size:11px; letter-spacing:.08em; text-transform:uppercase; margin-top:2px; }
.trust-close { border:0; border-radius:6px; padding:4px 10px; font-size:24px!important; background:transparent; color:#cbd5e1; }
.trust-content { overflow:auto; flex:1; padding:20px; min-height:0; }
.trust-message { white-space:pre-wrap; overflow-wrap:anywhere; padding:13px 15px; border-radius:10px; margin:0 0 12px; background:#1e293b; }
.trust-message.user { background:#15413f; margin-left:28px; }
.trust-message-label { color:#7dd3c7; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px; }
.trust-sources { display:flex; flex-direction:column; gap:5px; margin:-2px 0 18px; font-size:11px; }
#trust-chat a { color:#99f6e4; text-decoration:underline; text-underline-offset:3px; }
.trust-policy { padding:12px 20px; margin:0; background:#10282c; border-top:1px solid #27454a; color:#b7d5d2; font-size:11px; }
.trust-compose { display:flex; gap:8px; padding:12px 16px; border-top:1px solid #334155; }
.trust-compose input { flex:1; width:0; padding:10px 12px; border:1px solid #475569; background:#0b1324; color:white; border-radius:8px; }
.trust-primary { background:#0f766e; color:white; border:1px solid #368f87; padding:9px 13px; border-radius:8px; font-weight:600!important; }
.trust-tools { display:flex; justify-content:space-between; padding:0 20px 12px; gap:10px; }
.trust-link { color:#a5c8c5; background:transparent; border:0; padding:0; font-size:11px!important; text-decoration:underline; text-underline-offset:3px; }
.trust-status { color:#a5c8c5; font-size:12px; margin:6px 0 14px; }
.trust-lead { padding:16px; border:1px solid #37605f; border-radius:10px; margin-top:16px; }
.trust-lead h3 { margin:0 0 8px; font-size:16px; font-weight:700; }
.trust-lead label { display:block; color:#cbd5e1; font-size:12px; margin:10px 0; }
.trust-lead input:not([type=checkbox]), .trust-lead textarea { display:block; box-sizing:border-box; width:100%; padding:9px; margin-top:4px; background:#0b1324; color:white; border:1px solid #475569; border-radius:6px; }
.trust-lead p { font-size:11px; color:#adc3cc; margin:10px 0; }
.trust-consent { display:flex!important; align-items:flex-start; gap:8px; }
.trust-consent input { margin-top:4px; }
@media(max-width:480px) { #trust-chat { right:12px; } .trust-panel { width:calc(100vw - 24px); max-width:none; height:calc(100dvh - var(--trust-bottom) - 12px); } }
