/* A conversation inside the existing Pilot start surface; no second entry or provider menu. */
.pilot-ai-chat{width:min(800px,100%);margin:14px auto 18px;position:relative;z-index:1;text-align:left;display:grid;gap:11px}
.pilot-ai-chat[hidden]{display:none!important}
.pilot-ai-chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#536e59;font-size:11px;font-weight:680}
.pilot-ai-chat-head button{border:0;background:transparent;color:#536e59;text-decoration:underline;font:inherit;padding:7px;cursor:pointer}
.pilot-ai-chat-thread{display:grid;gap:13px;max-height:min(50dvh,550px);overflow-y:auto;padding:5px 3px 8px;scrollbar-width:thin}
.pilot-ai-chat-turn{padding:14px 16px;border:1px solid #d8e7d9;border-radius:20px;background:rgba(255,255,255,.96);color:#263d2d;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 4px 18px #203f1f07}
.pilot-ai-chat-turn[data-speaker="user"]{justify-self:end;background:#edf8e5;border-color:#cee9bd;max-width:min(90%,680px)}
.pilot-ai-chat-turn[data-speaker="assistant"]{justify-self:start;width:min(100%,760px)}
.pilot-ai-chat-turn small{display:block;margin-bottom:6px;font-size:10px;font-weight:750;color:#648266;white-space:normal}
.pilot-ai-chat-sources{display:grid;gap:4px;margin-top:12px;border-top:1px solid #e1ebe1;padding-top:9px;font-size:12px;white-space:normal}
.pilot-ai-chat-sources a{color:#355d3b;overflow-wrap:anywhere}
.pilot-ai-chat-status{color:#5c7b63;font-size:12px;padding:2px 8px}
.pilot-ai-chat-policy{color:#778776;font-size:10px;line-height:1.55}
@media(max-width:660px){.pilot-ai-chat{padding:0 3px}.pilot-ai-chat-turn{font-size:13px;padding:12px 13px}.pilot-ai-chat-thread{max-height:50dvh}}
.pilot-ai-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid #e3ece2;white-space:normal}
.pilot-ai-feedback button{width:auto;max-width:100%;min-height:36px;padding:7px 10px;border-radius:12px;border:1px solid #d5e4d2;background:#f8fbf5;color:#395c3c;font-size:12px;font-weight:650;cursor:pointer}
.pilot-ai-feedback button:hover,.pilot-ai-feedback button:focus-visible{border-color:#8cae85;background:#eff8ea;outline-offset:2px}
.pilot-ai-feedback small{flex-basis:100%;font-size:11px;line-height:1.5;color:#68836a;margin:0}
.pilot-ai-feedback [role="alert"]{color:#a14e3a}
@media(max-width:660px){.pilot-ai-feedback button{min-height:44px}}
