.lx-v2 .lx-v2-chat { min-width:0; border:1px solid #e3eaf5; border-radius:1.25rem; background:#fff; box-shadow:0 .6rem 2rem #2447780a; }
.lx-v2 .lx-v2-chat-heading { display:flex; align-items:center; flex-wrap:wrap; gap:1rem; padding:1.25rem; border-radius:1.25rem 1.25rem 0 0; border-block-end:1px solid var(--lx-line); background:linear-gradient(110deg,#edf5ff,#fff4fa); }
.lx-v2 .lx-v2-chat-heading > div { min-width:0; flex:1; }
.lx-v2 .lx-v2-chat-heading h1 { font-size:clamp(1.25rem,3vw,1.8rem); margin-block-end:.4rem; letter-spacing:-.03em; }
.lx-v2 .lx-v2-chat-contact-photo { width:3.5rem; height:3.5rem; flex-shrink:0; }
.lx-v2 .lx-v2-chat-contact-photo img { width:100%; height:100%; border-radius:1rem; object-fit:cover; object-position:top; border:2px solid #fff; }
.lx-v2 .lx-v2-chat-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; padding:.75rem; border-block-end:1px solid var(--lx-line); }
.lx-v2 .lx-v2-chat-scroll { padding:1rem .75rem; background:radial-gradient(ellipse at 0 0,#fff3fa,transparent 60%),#f3f7fd; }
.lx-v2 .lx-v2-chat-log { display:flex; flex-direction:column; gap:1rem; min-width:0; }
.lx-v2 .lx-v2-chat-history { display:flex; justify-content:center; margin-block-start:1rem; }
.lx-v2 .lx-v2-chat-history:has([hidden]) { margin-block-start:0; }
.lx-v2 .lx-v2-chat-state { padding:3rem 1rem; color:var(--lx-muted); text-align:center; }
.lx-v2 .lx-v2-chat-message { align-self:flex-start; width:min(90%,42rem); min-width:0; padding:.85rem; border:1px solid #e0e7f2; border-radius:1rem 1rem 1rem .25rem; background:#fff; box-shadow:0 .2rem .5rem #24477805; overflow-wrap:anywhere; }
.lx-v2 .lx-v2-chat-message-mine { align-self:flex-end; border-color:#c9dff8; border-radius:1rem 1rem .25rem 1rem; background:#eaf3ff; }
.lx-v2 .lx-v2-chat-message-header { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem .65rem; font-size:.8rem; }
.lx-v2 .lx-v2-chat-author { display:inline-flex; align-items:center; gap:.4rem; min-width:0; }
.lx-v2 .lx-v2-chat-author img { width:1.75rem; height:1.75rem; border-radius:50%; object-fit:cover; }
.lx-v2 .lx-v2-chat-author strong { overflow-wrap:anywhere; min-width:0; }
.lx-v2 .lx-v2-chat-time { color:var(--lx-muted); font-size:.7rem; }
.lx-v2 .lx-v2-chat-unread { display:inline-block; flex-shrink:0; width:.6rem; height:.6rem; border-radius:50%; background:var(--lx-blue); box-shadow:0 0 0 3px #0767dd12; }
.lx-v2 .lx-v2-chat-message-unread { border-color:#91b8ec; border-inline-start:4px solid var(--lx-blue); box-shadow:0 .2rem .65rem #0767dd0d; }
.lx-v2 .lx-v2-chat-message-unread .lx-v2-chat-author strong { color:#123d78; font-weight:800; }
.lx-v2 .lx-v2-chat-message-text { margin-block:.75rem .35rem; font-size:1rem; line-height:1.65; }
.lx-v2 .lx-v2-chat-message-text a { color:var(--lx-blue); text-decoration:underline; }
.lx-v2 .lx-v2-chat-greeting { object-fit:contain; }
.lx-v2 .lx-v2-chat-greeting-hi { width:10rem; max-width:100%; height:auto; }
.lx-v2 .lx-v2-chat-message-actions { position:relative; margin-inline-start:auto; flex-shrink:0; }
.lx-v2 .lx-v2-chat-message-actions > summary { display:grid; place-items:center; width:2.75rem; height:2.75rem; margin-block:-.5rem; border-radius:50%; color:var(--lx-muted); font-size:1.5rem; line-height:1; cursor:pointer; list-style:none; }
.lx-v2 .lx-v2-chat-message-actions > summary::-webkit-details-marker { display:none; }
.lx-v2 .lx-v2-chat-message-actions > summary:hover, .lx-v2 .lx-v2-chat-message-actions[open] > summary { color:var(--lx-blue); background:#dceafb; }
.lx-v2 .lx-v2-chat-message:has([data-chat-actions-menu][open]) { position:relative; z-index:12; }
.lx-v2 .lx-v2-chat-message-actions-panel { position:absolute; z-index:1; inset-inline-end:0; top:calc(100% + .5rem); width:min(18rem,calc(100vw - 3rem)); max-height:55dvh; overflow:auto; padding:.4rem; border:1px solid #c7d9f1; border-radius:.8rem; background:#fff; box-shadow:0 .6rem 1.8rem #19386126; }
.lx-v2 .lx-v2-chat-message-actions.is-above .lx-v2-chat-message-actions-panel { top:auto; bottom:calc(100% + .5rem); }
.lx-v2 .lx-v2-chat-message-actions button { display:block; width:100%; min-height:2.75rem; padding:.6rem .75rem; border:0; border-radius:.5rem; text-align:start; color:var(--lx-ink); background:transparent; font:inherit; font-size:.875rem; }
.lx-v2 .lx-v2-chat-message-actions button[data-chat-action="delete"] { color:#a02b46; }
.lx-v2 .lx-v2-chat-message-actions :focus-visible { outline:3px solid var(--lx-blue); outline-offset:1px; }
.lx-v2 .lx-v2-chat-message-actions button:hover { background:#dceafb; color:var(--lx-blue); }
.lx-v2 .lx-v2-chat-correction { margin-block:.75rem; padding:.75rem; border:1px solid #c7e4cd; border-radius:.65rem; background:#f0f9f0; font-size:.9rem; }
.lx-v2 .lx-v2-chat-correction > strong { display:block; margin-block-end:.5rem; color:#246a39; font-size:.8rem; }
.lx-v2 .lx-v2-chat-correction ins { background:#d0efd6; color:#145a2b; text-decoration:none; }
.lx-v2 .lx-v2-chat-correction del { background:#f9dce1; color:#8e263c; }
.lx-v2 .lx-v2-chat-correction.hide-deletions del { display:none; }
.lx-v2 .lx-v2-chat-correction label { display:flex; align-items:center; gap:.5rem; min-height:2.75rem; font-size:.8rem; }
.lx-v2 .lx-v2-chat .lx-v2-profile-contact { margin:0; border:0; border-block-start:1px solid var(--lx-line); border-radius:0; box-shadow:none; }
.lx-v2 .lx-v2-chat .lx-v2-profile-contact h2 { font-size:1rem; }
.lx-v2 .lx-v2-chat .lx-v2-profile-contact textarea { min-height:5rem; max-height:min(20rem,50dvh); }
.lx-v2 .lx-v2-chat .lx-v2-chat-composer { position:sticky; bottom:var(--lx-chat-keyboard-inset,0px); z-index:10; padding:.65rem; padding-block-end:max(.65rem,env(safe-area-inset-bottom)); border-radius:0 0 1.25rem 1.25rem; background:#fff; box-shadow:0 -.5rem 1.5rem #24477812; }
.lx-v2 .lx-v2-chat-composer h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.lx-v2 .lx-v2-chat-composer form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.5rem; }
.lx-v2 .lx-v2-chat .lx-v2-chat-composer textarea { box-sizing:border-box; height:calc(1.35em + 1.5rem + 2px); min-height:calc(1.35em + 1.5rem + 2px); max-height:calc(6.75em + 1.5rem + 2px); padding:.75rem; font-size:1rem; line-height:1.35; resize:none; overflow-y:hidden; }
.lx-v2 .lx-v2-chat-composer textarea { grid-column:1; grid-row:1; min-width:0; }
.lx-v2 .lx-v2-chat-composer .lx-v2-profile-send-row { grid-column:2; grid-row:1; display:flex; align-items:center; gap:0; margin:0; padding-block-end:2px; }
.lx-v2 .lx-v2-chat-composer [data-profile-draft], .lx-v2 .lx-v2-chat-composer .lx-v2-message-send-label { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.lx-v2 .lx-v2-chat-composer button[type="submit"] { display:grid; place-items:center; flex-shrink:0; width:2.75rem; height:2.75rem; min-height:2.75rem; padding:0; border-radius:50%; font-size:1rem; line-height:1; }
.lx-v2 .lx-v2-chat-composer button[type="submit"] > [aria-hidden] { margin-inline-start:2px; }
.lx-v2 .lx-v2-chat .lx-v2-profile-feedback { margin:.75rem; }
.lx-v2 .lx-v2-chat-new { position:sticky; bottom:calc(var(--lx-chat-composer-height,0px) + var(--lx-chat-keyboard-inset,0px) + .5rem); z-index:11; display:flex; width:fit-content; margin:.5rem auto; box-shadow:0 .25rem 1rem #24477822; }
.lx-v2 .lx-v2-chat-notice { display:flex; flex-wrap:wrap; gap:.5rem 1rem; padding:.75rem 1rem; border-block-end:1px solid #d8e4f5; background:#f0f6ff; font-size:.875rem; }
.lx-v2 .lx-v2-chat-notice a { color:var(--lx-blue); text-decoration:underline; }
.lx-v2 .lx-v2-chat-dialog { width:min(95%,42rem); max-height:90dvh; padding:1.25rem; border:1px solid var(--lx-line); border-radius:1rem; color:var(--lx-ink); box-shadow:0 1rem 4rem #10234a33; }
.lx-v2 .lx-v2-chat-dialog::backdrop { background:#10234a88; }
.lx-v2 .lx-v2-chat-dialog h2 { font-size:1.25rem; margin-block-end:1rem; }
.lx-v2 .lx-v2-chat-dialog textarea { width:100%; resize:vertical; min-height:10rem; padding:.75rem; border:1px solid #cbd9ed; border-radius:.7rem; background:#fffdf4; color:var(--lx-ink); font:inherit; }
.lx-v2 .lx-v2-chat-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem; margin-block-start:1rem; }
@media (min-width:40rem) {
    .lx-v2 .lx-v2-chat-scroll { padding:1.5rem; }
    .lx-v2 .lx-v2-chat-message { width:min(80%,42rem); }
    .lx-v2 .lx-v2-chat .lx-v2-chat-composer { padding:1rem; padding-block-end:max(1rem,env(safe-area-inset-bottom)); }
}
.lx-v2 .lx-v2-chat[data-read-mode="1"] .lx-v2-chat-history { margin-block:0 0 1rem; }
.lx-v2 .lx-v2-chat-read-mode { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; min-width:0; }
.lx-v2 .lx-v2-chat-read-mode label { font-size:.875rem; font-weight:600; }
.lx-v2 .lx-v2-chat-read-mode select { min-height:2.75rem; max-width:100%; padding:.5rem; border:1px solid var(--lx-line); border-radius:.65rem; background:#fff; color:var(--lx-ink); }
.lx-v2 .lx-v2-chat-navigation-toggle { position:fixed; z-index:35; top:.65rem; inset-inline-end:max(.65rem,calc((100vw - 76rem)/2)); min-height:2.75rem; padding:.55rem .9rem; background:#fff; border-color:#cbdcf4; box-shadow:0 .25rem 1rem #24477826; }
.lx-v2 .lx-v2-exchange-toolbar.lx-v2-chat-navigation-panel { position:fixed; z-index:34; top:4rem; inset-inline-end:max(.5rem,calc((100vw - 76rem)/2)); width:min(32rem,calc(100% - 1rem)); margin:0; padding:.75rem; border:1px solid var(--lx-line); background:#fff; box-shadow:0 .75rem 2rem #24477830; }
.lx-v2 .lx-v2-chat-navigation-panel .lx-v2-profile-tabs { flex:1 1 100%; background:#f3f7ff; }
.lx-v2 .lx-v2-chat-navigation-panel .lx-v2-profile-tabs a { flex:1; padding:.6rem .5rem; text-align:center; }
.lx-v2 .lx-v2-chat-navigation-panel .lx-v2-chat-read-mode { flex:1 1 100%; border-block-start:1px solid var(--lx-line); padding-block-start:.75rem; }
.lx-v2 .lx-v2-chat-navigation-panel .lx-v2-recent-panel { max-height:min(24rem,calc(100dvh - 20rem)); }
