/* YURIST V2: unified native chat UI. Backend remains /api/chat/sessions. */
.v2-chat-dock{position:fixed;right:20px;bottom:22px;z-index:80;background:linear-gradient(115deg,#1c70f4,#1857c4);border:1px solid #b8d5ff;color:#fff;box-shadow:0 14px 34px #145cbe55;border-radius:999px;padding:15px 21px;font:800 14px/1.2 Inter,Arial,sans-serif;cursor:pointer;transition:transform .18s,box-shadow .18s}
.v2-chat-dock:hover{transform:translateY(-3px);box-shadow:0 20px 36px #145cbe55}
.v2-chat-shade[hidden]{display:none!important}.v2-chat-shade{position:fixed;inset:0;background:#15253abb;z-index:100;display:flex;align-items:center;justify-content:center;padding:14px;backdrop-filter:blur(3px)}
.v2-chat-dialog{position:relative;width:min(100%,600px);max-height:min(92vh,850px);display:flex;flex-direction:column;min-height:300px;overflow:hidden;border-radius:24px;background:#fff;border:1px solid #cdddf1;box-shadow:0 28px 70px #0c254d5c;color:#253e5b;font:14px/1.5 Inter,Arial,sans-serif}
.v2-chat-header{background:linear-gradient(112deg,#eef5ff,#fff);border-bottom:1px solid #e0e9f5;padding:20px 62px 17px 24px}.v2-chat-header h2{margin:0 0 6px;color:#163359;font-size:22px;line-height:1.15}.v2-chat-header p{color:#627894;font-size:13px;margin:0}.v2-chat-close{position:absolute;right:17px;top:16px;width:35px;height:35px;border-radius:12px;background:#fff;border:1px solid #d6e1f2;color:#23466d;cursor:pointer;font-size:25px;line-height:1}
.v2-chat-history{overflow-y:auto;flex:1;min-height:130px;max-height:340px;display:flex;flex-direction:column;gap:12px;background:#f5f8fd;padding:18px 20px}
.v2-chat-bubble{max-width:90%;align-self:flex-start;background:#fff;border:1px solid #e1eaf5;border-radius:15px 15px 15px 4px;padding:11px 13px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.v2-chat-bubble.is-me{align-self:flex-end;background:#e3f0ff;border-color:#bfdaff;border-radius:15px 15px 4px 15px}
.v2-chat-controls{padding:15px 20px 16px;flex-shrink:0}.v2-chat-form{display:flex;gap:9px;align-items:stretch}.v2-chat-form textarea{flex:1;min-width:0;min-height:56px;max-height:130px;resize:vertical;border:1px solid #c5d6eb;border-radius:12px;padding:12px;font:14px/1.4 Inter,Arial,sans-serif;color:#163359}.v2-chat-form textarea:focus{outline:2px solid #237af4;outline-offset:1px}.v2-chat-send,.v2-chat-offer button{border:0;border-radius:12px;background:#1e6ff0;color:#fff;padding:12px 15px;font:800 14px Inter,Arial,sans-serif;cursor:pointer}.v2-chat-send:disabled{opacity:.5;cursor:not-allowed}
.v2-chat-note,.v2-chat-status{font-size:12px;color:#61748d;line-height:1.45;margin:10px 0 0}.v2-chat-status:empty{display:none}.v2-chat-note a{color:#2363c2;text-decoration:underline}.v2-chat-small{border:0;background:transparent;color:#2e69bd;padding:8px 0 0;font:700 12px Inter,Arial,sans-serif;text-decoration:underline;cursor:pointer}.v2-chat-offer{background:#ecf6ff;border:1px solid #cfdef3;border-radius:12px;padding:11px 14px;margin:0 0 10px}.v2-chat-offer p{margin:0 0 7px;font-size:12px}
@media(max-width:650px){.v2-chat-dock{right:12px;bottom:12px;padding:13px 17px}.v2-chat-shade{padding:0;align-items:stretch}.v2-chat-dialog{width:100%;height:100dvh;max-height:none;border-radius:0}.v2-chat-history{max-height:none}.v2-chat-controls{padding:12px 12px 17px}.v2-chat-header{padding:20px 55px 18px 15px}}
@media(prefers-reduced-motion:reduce){.v2-chat-dock{transition:none}}
