/* Sentinel chat — matches the site's dark teal look */
.chat-section{margin:0 auto 70px;max-width:940px;text-align:center}
.chat-section>p{margin-inline:auto}
.chat-section .chat{text-align:left}
.chat-section .chat-foot{text-align:center}
.chat-section h2{font-size:clamp(30px,3.6vw,46px);margin:12px 0 10px}
.chat-section>p{max-width:760px;font-size:17px}
.chat{display:flex;flex-direction:column;height:min(680px,78vh);min-height:460px;background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.chat-top{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line);background:rgba(4,20,19,.55)}
.chat-dot{width:10px;height:10px;border-radius:50%;background:var(--teal);box-shadow:0 0 12px var(--teal)}
.chat-top strong{font-family:var(--display);font-size:16px;font-weight:600}
.chat-top span{font-size:13px;color:var(--muted)}
.chat-new{margin-left:auto;background:none;border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;cursor:pointer;color:var(--muted)}
.chat-new:hover{border-color:var(--teal);color:var(--teal)}
.chat-log{flex:1;overflow-y:auto;padding:24px 20px;display:flex;flex-direction:column;gap:18px;scroll-behavior:smooth}
.chat-empty{margin:auto;text-align:center;max-width:520px}
.chat-empty h3{font-size:26px;margin-bottom:8px}
.chat-empty p{font-size:15px}
.chat-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}
.chat-chip{background:var(--panel-2);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:14px;cursor:pointer;color:var(--ink);text-align:left}
.chat-chip:hover{border-color:var(--teal);color:var(--teal)}
.msg{display:flex;flex-direction:column;max-width:min(720px,88%)}
.msg.user{align-self:flex-end;align-items:flex-end}
.msg.bot{align-self:flex-start}
.bubble{padding:12px 16px;border-radius:18px;font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.msg.user .bubble{background:var(--teal);color:#04201d;border-bottom-right-radius:6px}
.msg.bot .bubble{background:var(--panel-2);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:6px}
.msg.unsure .bubble{border-color:var(--amber)}
.tag{font-size:12px;font-weight:600;letter-spacing:.06em;margin:0 0 6px 4px;color:var(--amber)}
.msg.err .bubble{border-color:#e07a6b;color:var(--ink)}
.typing{display:inline-flex;gap:5px;align-items:center;height:22px}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--teal);opacity:.35;animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.wait-note{font-size:13px;color:var(--muted);margin:6px 0 0 4px}
.chat-form{display:flex;gap:10px;align-items:flex-end;padding:14px 16px;border-top:1px solid var(--line);background:rgba(4,20,19,.55)}
.chat-form textarea{flex:1;resize:none;max-height:160px;min-height:48px;padding:12px 16px;border-radius:24px;border:1px solid var(--line);background:var(--deep);color:var(--ink);font:16px/1.4 var(--body)}
.chat-form textarea:focus{outline:2px solid var(--teal);outline-offset:1px}
.chat-send{width:48px;height:48px;border-radius:50%;border:0;background:var(--teal);color:#04201d;cursor:pointer;font-size:20px;font-weight:700;flex:none}
.chat-send:disabled{opacity:.4;cursor:not-allowed}
.chat-foot{font-size:13px;color:var(--muted);margin:12px 4px 0}
@media (max-width:640px){.msg{max-width:94%}.chat{height:82vh}}
@media (prefers-reduced-motion:reduce){.typing i{animation:none;opacity:.7}.chat-log{scroll-behavior:auto}}

.chat-home{padding:90px 0 20px}

.chat-start{margin-top:18px;background:var(--teal);color:#04201d;border:0;border-radius:999px;padding:13px 26px;font-size:16px;font-weight:600;cursor:pointer}
.chat-start:hover:not(:disabled){box-shadow:0 0 0 6px rgba(95,227,207,.18),0 0 40px rgba(95,227,207,.4)}
.chat-start:disabled{opacity:.6;cursor:wait}
.chat-form textarea:disabled{opacity:.6;cursor:not-allowed}
