/* Public SiteModeAI conversation guide. No external fonts, libraries, tracking, or paid AI. */
#chat-widget{position:fixed;right:24px;bottom:24px;z-index:50}
#chat-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:62px;height:62px;border:1px solid rgba(255,255,255,.3);border-radius:22px;background:linear-gradient(135deg,#2563eb,#4338ca);color:#fff;box-shadow:0 10px 30px rgba(37,99,235,.30);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
#chat-toggle:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(37,99,235,.35)}
#chat-toggle svg{width:27px;height:27px;stroke:currentColor;stroke-width:1.85;fill:none;stroke-linecap:round;stroke-linejoin:round}
#chat-panel[hidden]{display:none!important}
#chat-panel{position:absolute;right:0;bottom:76px;display:flex;flex-direction:column;width:min(440px,calc(100vw - 32px));height:min(615px,calc(100dvh - 114px));min-height:345px;border:1px solid #dbe3f0;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.2);overflow:hidden;color:#0f172a;font-size:14px}
.chat-header{display:flex;align-items:center;gap:10px;padding:14px 15px;background:#0f172a;color:#fff;flex:0 0 auto}
.chat-logo{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#2563eb,#6d28d9);font-size:20px;font-weight:800}
.chat-title-group{min-width:0;flex:1}
.chat-title-group strong{display:block;font-size:14px;line-height:1.3;letter-spacing:-.01em}
.chat-title-group small{display:flex;align-items:center;gap:5px;color:#bfdbfe;font-size:11px;margin-top:3px}
.chat-title-group small:before{content:"";width:6px;height:6px;border-radius:50%;background:#4ade80;flex:0 0 6px}
.chat-icon-btn{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.09);color:#fff;cursor:pointer;font-size:21px}
.chat-icon-btn:hover{background:rgba(255,255,255,.2)}
.chat-icon-btn span{line-height:1}
.chat-thread{flex:1;min-height:0;overflow-y:auto;scroll-behavior:smooth;overscroll-behavior:contain;padding:18px 16px 12px;background:linear-gradient(#f8fbff,#fff 26%)}
.chat-day{text-align:center;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:0 0 16px}
.chat-row{display:flex;gap:8px;align-items:flex-end;margin:0 0 16px}
.chat-row.user{justify-content:flex-end}
.chat-avatar{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:10px;background:#eef2ff;color:#4338ca;font-weight:800;font-size:13px}
.chat-msg{max-width:min(325px,84%);padding:11px 13px;border-radius:15px 15px 15px 4px;border:1px solid #e2e8f0;background:#fff;color:#263449;line-height:1.54;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.chat-row.user .chat-msg{border-color:#2563eb;border-radius:15px 15px 4px 15px;background:#2563eb;color:#fff;box-shadow:none}
.chat-msg a{display:inline-flex;align-items:center;gap:5px;margin-top:11px;color:#1d4ed8;text-decoration:none;font-weight:750;border-bottom:1px solid #bfdbfe;line-height:1.5}
.chat-msg a:hover{text-decoration:underline}
.chat-starters{display:flex;flex-wrap:wrap;gap:7px;padding:9px 16px 10px;background:#fff;border-top:1px solid #eef2f7;flex:0 0 auto}
.chat-starters button{border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155;padding:8px 11px;font-size:11.5px;font-weight:650;text-align:left;cursor:pointer;min-height:35px}
.chat-starters button:hover,.chat-starters button:focus-visible{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.chat-compose-wrap{padding:0 14px 12px;background:#fff;flex:0 0 auto}
.chat-compose{display:flex;align-items:flex-end;gap:7px;padding:8px 8px 8px 12px;border:1px solid #cbd5e1;border-radius:16px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}
.chat-compose:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}
.chat-compose textarea{width:100%;min-height:28px;max-height:102px;resize:none;overflow-y:auto;border:0;outline:0!important;background:transparent;padding:5px 0 2px;color:#0f172a;font-family:inherit;font-size:13px;line-height:1.5}
.chat-compose textarea::placeholder{color:#64748b}
.chat-send{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border:0;border-radius:12px;background:#2563eb;color:#fff;cursor:pointer}
.chat-send:disabled{opacity:.4;cursor:not-allowed}
.chat-send:not(:disabled):hover{background:#1d4ed8}
.chat-send svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.chat-footnote{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:8px 2px 0;color:#64748b;font-size:10px}
.chat-footnote a{color:#1d4ed8;text-decoration:none;font-weight:700}
.chat-footnote a:hover{text-decoration:underline}
.chat-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
  #chat-widget{right:12px;bottom:max(14px,env(safe-area-inset-bottom))}
  #chat-toggle{width:56px;height:56px;border-radius:18px}
  #chat-panel{right:-2px;bottom:70px;width:min(420px,calc(100vw - 20px));height:min(630px,calc(100dvh - 100px));border-radius:18px}
  .chat-header{padding:12px}
  .chat-thread{padding:13px 12px 6px}
  .chat-starters{padding:9px 12px}
  .chat-compose-wrap{padding:0 11px 11px}
  .chat-icon-btn{width:42px;height:42px;flex-basis:42px}
}
@media(max-height:520px){
  #chat-panel{height:calc(100dvh - 88px);min-height:250px;bottom:68px}
  .chat-starters{display:none}
}

/* Explicit consent is required before any third-party language-model call. */
.chat-ai-consent[hidden]{display:none!important}
.chat-ai-consent{display:flex;align-items:flex-start;gap:8px;margin:0 1px 6px;padding:9px 10px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;color:#334155;font-size:10.5px;line-height:1.5;cursor:pointer}
.chat-ai-consent input{flex:0 0 auto;margin-top:2px;accent-color:#2563eb}
.chat-ai-consent:focus-within{outline:2px solid #93c5fd;outline-offset:1px}
