.lv-launch,.lv-shell,.lv-shell *{box-sizing:border-box;font-family:Arial,sans-serif}
.lv-launch{position:fixed;right:26px;bottom:24px;z-index:99990;background:#b8f568;color:#101710;border:1px solid #d4ffa0;padding:18px 25px;border-radius:16px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 12px 50px #0008}
.lv-shell{position:fixed;inset:5vh 3vw 5vh auto;width:min(860px,94vw);height:90dvh;z-index:100001;background:#101813;color:#f3f6ef;border:1px solid #49623d;border-radius:22px;box-shadow:0 20px 100px #000b;display:flex;flex-direction:column;overflow:hidden;font-size:16px;line-height:1.5;color-scheme:dark}
.lv-shell[hidden],.lv-shell [hidden]{display:none!important}
.lv-shell button,.lv-shell input,.lv-shell textarea,.lv-shell select{font:inherit}
.lv-shell button{cursor:pointer;border:1px solid #49623d;border-radius:10px;padding:10px 15px;background:#21301f;color:#f3f6ef;min-height:44px}
.lv-shell button:hover{background:#31482b}
.lv-shell button:disabled{opacity:.5;cursor:wait}
.lv-shell .lv-primary{background:#b8f568;color:#101710;border-color:#b8f568;font-weight:700}
.lv-shell input,.lv-shell textarea,.lv-shell select{min-width:0;width:100%;border:1px solid #49623d;border-radius:9px;padding:12px;background:#0c120e;color:#f3f6ef;min-height:46px}
.lv-shell label{display:grid;gap:7px;margin-bottom:15px}
.lv-shell a{color:#c0f995}
.lv-head{display:flex;gap:12px;align-items:center;border-bottom:1px solid #33452d;padding:18px 22px}
.lv-brand{font-size:22px;font-weight:800;letter-spacing:.07em;color:#b8f568}
.lv-caption{color:#b5c3ae;font-size:14px;flex:1}
.lv-error{color:#ffb7b7;background:#482a2a;padding:12px 20px;margin:0}
.lv-auth{max-width:440px;padding:30px;margin:auto;width:100%;overflow:auto}
.lv-auth h2{font-size:28px;line-height:1.2;margin-top:0}
.lv-muted{color:#b5c3ae;font-size:14px}
.lv-work{display:flex;flex:1;min-height:0}
.lv-sidebar{width:255px;flex-shrink:0;overflow:auto;border-right:1px solid #33452d;padding:16px;display:flex;flex-direction:column;gap:10px}
.lv-chat-list{display:grid;gap:8px}
.lv-chat-list button{text-align:left;overflow-wrap:anywhere}
.lv-chat-list button[aria-current=true]{background:#304529;border-color:#b8f568}
.lv-chat-list small{display:block;color:#b5c3ae;font-size:13px}
.lv-room{min-width:0;flex:1;display:flex;flex-direction:column}
.lv-room-head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #33452d}
.lv-room-title{flex:1;overflow-wrap:anywhere;font-weight:700}
.lv-messages{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px}
.lv-bubble{max-width:87%;align-self:flex-start;background:#23301f;border:1px solid #3a4c32;padding:12px 14px;border-radius:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.lv-bubble.mine{align-self:flex-end;background:#354d27;border-color:#547241}
.lv-bubble p{margin:4px 0}.lv-bubble small{display:block;color:#c0cbb8;font-size:12px}
.lv-bubble img{max-width:100%;max-height:250px;border-radius:8px;display:block}.lv-bubble audio{max-width:100%;width:245px}
.lv-compose{border-top:1px solid #33452d;padding:14px;display:grid;gap:9px}
.lv-compose textarea{resize:none;max-height:160px}
.lv-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.lv-actions .lv-primary{margin-left:auto}
.lv-file-label{font-size:14px;color:#c4ddaf;overflow-wrap:anywhere}
.lv-new{padding:16px;border-bottom:1px solid #33452d;display:grid;gap:8px}
.lv-empty{color:#b5c3ae;text-align:center;margin:auto;padding:24px}
body.lv-operator{margin:0;background:#0c1110;color:#f2f6ee;font-family:Arial,sans-serif}
.lv-operator .lv-shell{position:relative;inset:auto;width:min(1200px,96vw);height:94dvh;margin:3dvh auto}
.lv-operator .lv-launch{display:none}
@media(max-width:640px){.lv-shell{inset:0;width:100%;height:100dvh;border-radius:20px}.lv-head{padding:12px}.lv-sidebar{width:100%;border-right:0}.lv-work.in-room .lv-sidebar{display:none}.lv-work:not(.in-room) .lv-room{display:none}.lv-caption{font-size:12px}.lv-launch{bottom:12px;right:12px;padding:15px 19px}.lv-operator .lv-shell{margin:0;width:100%;height:100dvh}.lv-auth{padding:24px}.lv-bubble{max-width:95%}}
@media(min-width:641px){.lv-back{display:none}}

.lv-chat-list strong{display:block;font-size:16px}.lv-chat-list small{overflow-wrap:anywhere}.lv-customer-title{padding:8px;color:#b8f568;font-size:14px;overflow-wrap:anywhere}

.lv-connection{font-size:12px;white-space:nowrap;color:#b8f568}.lv-connection[data-state=offline]{color:#ffc078}
.lv-unread{display:inline-block;background:#b8f568;color:#101813;font-size:12px;font-weight:bold;padding:3px 8px;border-radius:20px;margin-top:5px}
.lv-receipt{color:#b8f568}
.lv-bubble[hidden]{display:none!important}@media(max-width:640px){.lv-caption{display:none}.lv-connection{margin-right:auto}}

.lv-role-row{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid #415143}.lv-role-row strong{overflow-wrap:anywhere}#lv-admin{margin:12px 0}#lv-admin p{font-size:12px}

/* Account identity stays visible on narrow screens for every role. */
.lv-head{flex-wrap:wrap}.lv-account{order:2;flex:0 0 100%;font-weight:600;font-size:15px;color:#edf5e8;overflow-wrap:anywhere;line-height:1.3}.lv-account[hidden]{display:none}

.lv-danger,.lv-delete-message{color:#ffb4ab!important}.lv-delete-message{display:block;margin-top:6px;padding:4px 8px;font-size:12px}.lv-room-head{flex-wrap:wrap}.lv-delete-dialog{background:#182219;color:#edf5e8;border:1px solid #55674b;border-radius:16px;max-width:min(440px,90vw);padding:24px}.lv-delete-dialog::backdrop{background:#000a}.lv-delete-dialog button{padding:10px 16px;margin:8px;border-radius:8px;background:#293c28;color:#fff;border:1px solid #607354}.lv-delete-dialog p{line-height:1.5;overflow-wrap:anywhere}

/* Compact composer: small icons with touch-sized targets on every screen. */
.lv-actions{flex-wrap:nowrap;gap:8px;min-width:0}.lv-actions .lv-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;border-radius:12px}.lv-actions .lv-icon-button[hidden]{display:none}.lv-icon-button svg{pointer-events:none}.lv-icon-button[aria-pressed="true"]{color:#ffb4ab;background:#522721;border-color:#e5796e}.lv-icon-button:focus-visible{outline:2px solid #b8f568;outline-offset:3px}.lv-file-label{overflow-wrap:anywhere;min-width:0}

.lv-bubble{-webkit-touch-callout:none;user-select:none}.lv-bubble input,.lv-bubble textarea{user-select:text}.lv-message-menu{min-width:min(300px,80vw);animation:lv-menu-in .16s ease-out}.lv-message-menu textarea{display:block;width:100%;box-sizing:border-box;background:#101813;color:#edf5e8;border:1px solid #607354;border-radius:8px;padding:12px}.lv-message-menu button:disabled{opacity:.4}@keyframes lv-menu-in{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.lv-message-menu{animation:none}}

/* Composer and workspace controls */
.lv-compose{padding:10px;gap:5px}.lv-composer-row{display:flex;align-items:flex-end;gap:7px;flex-wrap:nowrap}.lv-composer-row #lv-text{flex:1;min-width:0;min-height:44px;height:44px;max-height:260px;line-height:24px;padding:10px 12px;resize:none;overflow-y:hidden;box-sizing:border-box}.lv-composer-row .lv-primary{margin-left:0}.lv-attachment-row{display:flex;align-items:center;gap:8px}.lv-attachment-row:has(.lv-file-label:empty){display:none}.lv-attachment-row .lv-icon-button{padding:6px;min-height:32px}#lv-send-state{display:none!important}#lv-voice{touch-action:none;user-select:none;-webkit-touch-callout:none}.lv-shell button,.lv-delete-dialog button{transition:transform .16s ease,background-color .2s ease,box-shadow .2s ease}.lv-shell button:active,.lv-delete-dialog button:active{transform:scale(.94)}#lv-voice[aria-pressed="true"]{transform:scale(1.14);background:#b84156;box-shadow:0 0 0 7px #db53652b;animation:lv-record-pulse 1s ease-in-out infinite}.lv-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:6px;white-space:nowrap}.lv-message-meta .lv-receipt{color:#b8f568;font-size:15px;letter-spacing:-3px;padding-right:3px}.lv-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#668e46,#273b26);color:#ecffda;font-weight:bold;margin:0 8px 6px 0;touch-action:pan-y;-webkit-touch-callout:none;user-select:none}.lv-avatar:focus-visible{outline:2px solid #b8f568}.lv-message-menu label{display:grid;gap:8px}.lv-message-menu select{padding:10px;background:#182219;color:#fff;border:1px solid #607354;border-radius:8px}.lv-sidebar>label:first-child{position:sticky;top:0;background:#101813;z-index:2}.lv-bubble{flex-shrink:0}@keyframes lv-record-pulse{50%{box-shadow:0 0 0 11px #db536510}}@media(max-width:400px){.lv-composer-row{gap:4px}.lv-composer-row .lv-icon-button{flex-basis:40px;min-width:40px;width:40px}.lv-compose{padding:8px}}@media(prefers-reduced-motion:reduce){.lv-shell button,.lv-delete-dialog button{transition:none}#lv-voice[aria-pressed="true"]{animation:none}}

.lv-head .lv-global-search{order:3;flex:0 0 100%;margin:0;display:grid;gap:4px;font-size:12px}.lv-global-search input{padding:8px 12px;min-height:38px}.lv-head .lv-global-search[hidden]{display:none}

.lv-delete-dialog [hidden]{display:none!important}

.lv-user-card{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}.lv-user-card .lv-avatar{pointer-events:none}
.lv-shell input.lv-audio-seek{appearance:none;-webkit-appearance:none;display:block;width:100%;height:32px;min-height:32px;margin:4px 0;padding:0;border:0;border-radius:0;background:linear-gradient(#769361,#769361) center / calc(100% - 16px) 4px no-repeat;cursor:pointer;box-shadow:none}.lv-audio-seek::-webkit-slider-runnable-track{height:4px;background:transparent;border:0}.lv-audio-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;border:0;background:#b8f568;box-shadow:0 1px 5px #0006}.lv-audio-seek::-moz-range-track{height:4px;background:transparent;border:0}.lv-audio-seek::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#b8f568}.lv-audio-seek:focus-visible{outline:2px solid #b8f568;outline-offset:2px}.lv-audio-seek:disabled{opacity:.4}

/* Topic has its own full-width row; controls cannot squeeze its words. */
.lv-room-head{gap:6px;padding:10px 12px;align-items:center}.lv-room-head .lv-room-action{flex:0 0 36px;width:36px;min-width:36px;min-height:36px;height:36px;padding:0;align-items:center;justify-content:center;border-radius:9px}.lv-room-action svg{width:18px;height:18px;vertical-align:middle;pointer-events:none}#lv-status{margin-left:auto}.lv-room-title{order:2;flex:0 0 100%;min-width:0;line-height:1.35;font-size:16px;white-space:normal;overflow-wrap:anywhere;padding-top:3px}.lv-room-head .lv-room-action:focus-visible{outline:2px solid #b8f568;outline-offset:2px}

.lv-audio-row{display:flex;align-items:center;gap:10px;min-width:0;width:min(300px,100%);white-space:normal}.lv-audio-row .lv-audio-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%}.lv-audio-toggle svg{width:18px;height:18px;pointer-events:none}.lv-audio-row .lv-audio-seek{flex:1;min-width:70px;margin:0}.lv-audio-time{display:block;text-align:right;font-size:12px;color:#c0cbb8;margin-top:2px}

.lv-user-menu{box-sizing:border-box;width:320px;max-width:calc(100vw - 32px);min-width:0;padding:18px;border-radius:14px}.lv-user-menu h3{margin:0 0 12px;font-size:17px;overflow-wrap:anywhere}.lv-user-menu>button,.lv-user-menu select{box-sizing:border-box;width:100%;margin:0 0 8px;min-height:38px;padding:9px 12px;font-size:14px;line-height:1.3}.lv-user-menu>label{margin:4px 0 0;font-size:13px;gap:6px}.lv-user-menu select{margin:0 0 8px}.lv-user-menu>p{margin:0;font-size:13px}.lv-user-menu>p:empty{display:none}.lv-user-menu-footer{display:flex;justify-content:flex-end;margin-top:10px}.lv-user-menu-footer button{width:auto;min-height:36px;margin:0;padding:8px 14px;font-size:14px}

.lv-work.sidebar-hidden>.lv-sidebar{display:none!important}#lv-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;width:36px;min-height:36px;height:36px;flex:0 0 36px}#lv-sidebar-toggle svg{width:19px;height:19px;pointer-events:none}

.lv-client-device{display:inline-flex;align-items:center;color:#b8f568}.lv-client-device svg{width:20px;height:20px}

.lv-head-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}.lv-account-actions{position:relative}.lv-head .lv-head-action{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;flex:0 0 36px;padding:0;border-radius:9px}.lv-head-action svg{width:19px;height:19px;pointer-events:none}.lv-head-action:focus-visible{outline:2px solid #b8f568;outline-offset:2px}.lv-account-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:210px;padding:6px;border:1px solid #45573b;border-radius:12px;background:#182116;box-shadow:0 12px 32px #0008}.lv-account-menu button{width:100%;text-align:left;white-space:nowrap;padding:12px;border:0}

html.lv-chat-open{overflow:hidden!important;overscroll-behavior:none;scroll-behavior:auto!important}
.lv-shell{overscroll-behavior:none;outline:none}
.lv-shell .lv-messages,.lv-shell .lv-sidebar,.lv-shell .lv-auth,.lv-shell textarea{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lv-room,.lv-messages{min-height:0}
.lv-head,.lv-room-head,.lv-compose{flex-shrink:0}
@media(max-width:640px){html.lv-chat-open .lv-shell{position:fixed;top:var(--lv-viewport-top,0px);bottom:auto;height:var(--lv-viewport-height,100dvh);margin:0}}

/* Mirrored tails share each bubble's surface and border. */
.lv-bubble{position:relative;border-bottom-left-radius:5px;margin-left:7px;box-shadow:0 3px 10px #0002}
.lv-bubble::before{content:"";position:absolute;left:-6px;bottom:10px;width:10px;height:10px;background:#23301f;border-left:1px solid #3a4c32;border-bottom:1px solid #3a4c32;transform:rotate(45deg);border-bottom-left-radius:3px;pointer-events:none}
.lv-bubble.mine{border-bottom-left-radius:14px;border-bottom-right-radius:5px;margin-left:0;margin-right:7px}
.lv-bubble.mine::before{left:auto;right:-6px;background:#354d27;border-color:#547241;border-left:0;border-bottom:0;border-right:1px solid #547241;border-top:1px solid #547241;border-radius:0 3px 0 0}

/* Prevent Safari/Android selection handles and native callouts on chat controls. */
.lv-shell,.lv-shell button,.lv-shell button *,.lv-launch,.lv-delete-dialog button,.lv-delete-dialog button *{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
.lv-shell button,.lv-launch,.lv-delete-dialog button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.lv-shell input,.lv-shell textarea,.lv-delete-dialog input,.lv-delete-dialog textarea{
  -webkit-user-select:text;user-select:text;-webkit-touch-callout:default;
}
.lv-shell #lv-voice{touch-action:none}

.lv-save-attachment{display:table;margin:6px 0;padding:6px 10px;border:1px solid #607354;border-radius:9px;font-size:13px;text-decoration:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.lv-save-attachment:hover{background:#ffffff12}.lv-save-attachment:active{transform:scale(.96)}

.lv-head{position:relative;z-index:3}.lv-account-menu button:active{transform:none}

.lv-composer-row #lv-text.lv-recording-hint{height:68px!important;min-height:68px;font-size:13px;line-height:20px}.lv-recording-hint::placeholder{color:#e6c1b8;opacity:1}

/* The visible recording disc is also the cancellation boundary. */
.lv-shell #lv-voice{position:relative;isolation:isolate;transform-origin:center;overflow:visible}
.lv-shell #lv-voice[aria-pressed="true"]{z-index:5;border-radius:50%;transform:translateY(-50%) scale(2);background:radial-gradient(circle,#db6176 0%,#c64b64 58%,#b84156 100%);border-color:#ef91a1;box-shadow:0 0 8px 3px #db536580;animation:none}
.lv-shell #lv-voice[aria-pressed="true"]::before{content:"";position:absolute;inset:0;border-radius:50%;background:#db5365;filter:blur(5px);opacity:.5;z-index:-1;pointer-events:none}
@media(max-width:400px){.lv-shell #lv-voice{height:40px;min-height:40px}}

/* Compact customer cards: avatar and timestamp above identity, without message previews. */
.lv-chat-list .lv-customer-card{display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 8px;padding:10px 12px;align-items:center}
.lv-customer-card .lv-avatar{grid-column:1;grid-row:1;width:30px;height:30px;margin:0;font-size:13px}
.lv-customer-card .lv-customer-time{grid-column:2;grid-row:1;justify-self:end;text-align:right;font-size:10px;line-height:1.3;white-space:nowrap;overflow-wrap:normal;color:#b5c3ae;font-variant-numeric:tabular-nums}
.lv-chat-list .lv-customer-card strong{grid-column:1/-1;font-size:15px;line-height:1.3;margin-top:2px}
.lv-customer-card .lv-customer-phone{grid-column:1/-1;line-height:1.3}
.lv-customer-card .lv-unread{grid-column:1/-1;justify-self:start;margin-top:3px}

/* Keep the mobile chat rounded and the composer above the screen gesture area. */
@media(max-width:640px){
  .lv-shell .lv-compose{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
}

/* Reserve room for messages when the mobile keyboard reduces the viewport. */
.lv-room,.lv-messages{min-height:0}
@media(max-width:640px){
  .lv-head{padding:6px 10px;gap:6px;flex-wrap:nowrap}
  .lv-head:has(.lv-account:not([hidden])) .lv-brand{display:none}
  .lv-head .lv-brand{font-size:16px}
  .lv-head .lv-account{order:0;flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lv-head .lv-connection{font-size:10px;margin:0}
  .lv-room-head{padding:5px 10px;gap:5px;flex-wrap:nowrap}
  .lv-room-head .lv-room-title{order:0;flex:1;min-width:0;padding:0;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .lv-messages{padding:10px 12px;gap:8px}

  .lv-shell:has(#lv-text:focus) .lv-compose{padding-top:6px;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){.lv-head .lv-connection{max-width:58px;overflow:hidden;text-overflow:ellipsis}}

.lv-account-delete-dialog{width:min(480px,92vw);max-height:85dvh;overflow:auto}
.lv-account-delete-dialog label{display:grid;gap:8px;font-size:14px}
.lv-account-delete-dialog input{width:100%;min-width:0;padding:12px;border:1px solid #607354;border-radius:9px;background:#0c120e;color:#fff;font-size:16px}
.lv-account-delete-dialog .lv-user-menu-footer{flex-wrap:wrap}

/* Compact search trigger and focused query dialog. */
.lv-head #lv-search-toggle[hidden]{display:none}
.lv-search-dialog{width:min(420px,calc(100vw - 32px));box-sizing:border-box;padding:22px;border:1px solid #526b43;border-radius:20px;background:#142018;color:#edf5e8;box-shadow:0 24px 80px #0008;max-height:85dvh;overflow:auto}
.lv-search-dialog::backdrop{background:#050b08b3}
.lv-search-dialog form,.lv-search-dialog label{display:grid;gap:12px}
.lv-search-heading,.lv-search-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lv-search-heading h2{font:600 20px Arial;margin:0}.lv-search-dialog p{font:14px/1.5 Arial;color:#bdcbb8;margin:0}
.lv-search-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #607354;border-radius:10px;background:#0d1510;color:#fff;font:16px Arial}
.lv-search-dialog button{border:1px solid #526b43;border-radius:10px;background:#243a25;color:#edf5e8;padding:10px 14px;font:14px Arial;cursor:pointer}
.lv-search-heading button{width:36px;height:36px;padding:7px;display:grid;place-items:center}.lv-search-actions{justify-content:flex-end}.lv-search-actions button[type=submit]{background:#b8f568;color:#12200c}

@media(min-width:641px){.lv-client-draggable>.lv-head{cursor:grab;user-select:none;-webkit-user-select:none}.lv-client-draggable.lv-dragging>.lv-head{cursor:grabbing}.lv-client-draggable.lv-dragging{transition:none}.lv-client-draggable>.lv-head button,.lv-client-draggable>.lv-head a{cursor:pointer}}

.lv-client-chat-card{position:relative;min-width:0}.lv-shell .lv-client-chat-open{display:block;width:100%;min-height:64px;padding-right:48px}.lv-shell .lv-client-chat-delete{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:5px;border-radius:8px;border-color:#77504b;background:#342522;color:#efb4a9}.lv-shell .lv-client-chat-delete svg{width:17px;height:17px}.lv-shell .lv-client-chat-delete:hover{background:#56322b}.lv-shell .lv-client-chat-delete:focus-visible{outline:2px solid #f3c2b9;outline-offset:2px}@media(pointer:coarse){.lv-shell .lv-client-chat-delete{width:36px;height:36px;min-height:36px}.lv-shell .lv-client-chat-open{padding-right:52px}}

.lv-device-wait{padding:18px;border:1px solid #547848;border-radius:16px;background:#17291e;text-align:center}.lv-device-wait[hidden]{display:none}.lv-device-wait-icon{font-size:40px;color:#c0ee86}.lv-device-wait p{line-height:1.5}.lv-device-wait h3{margin:8px 0}

.lv-notifications-only .lv-sidebar>*{display:none!important}
.lv-notifications-only .lv-sidebar>.lv-push-toggle,.lv-notifications-only .lv-sidebar>.lv-push-status,.lv-notifications-only .lv-sidebar>h2{display:block!important}
.lv-notifications-only .lv-head-actions,.lv-notifications-only .lv-room{display:none!important}
.lv-notifications-only .lv-sidebar{display:block!important;width:100%;max-width:500px;margin:auto;border:0;transform:none!important}
.lv-notifications-only .lv-work{display:none!important}

.lv-notifications-only .lv-caption,.lv-notifications-only .lv-connection{display:none!important}

.lv-service-panel{width:min(100%,480px);box-sizing:border-box;margin:24px auto;padding:20px;overflow:auto}.lv-service-panel h2{margin-top:0}.lv-service-panel button{display:block;width:100%;min-height:44px;margin:12px 0}.lv-service-panel p{line-height:1.5}.lv-service-panel [hidden]{display:none!important}

.lv-staff-member{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 8px;border-bottom:1px solid #304c37}.lv-staff-member small{color:#99aaa0;font-size:11px;white-space:nowrap}.lv-staff-member .is-online{color:#b8f568}

.lv-staff-sidebar .lv-chat-list{gap:0}
.lv-staff-sidebar .lv-chat-list h3{font-size:14px;line-height:1.3;margin:10px 0 5px}
.lv-staff-sidebar .lv-staff-member{gap:8px;padding:7px 4px;min-height:30px;box-sizing:border-box;font-size:13px;line-height:1.25}
.lv-staff-member>span{min-width:0;overflow-wrap:anywhere}
.lv-staff-sidebar .lv-staff-member small{font-size:10px;flex-shrink:0}
.lv-staff-sidebar .lv-sync-hint{display:none}

@media(max-width:640px){html.lv-chat-open .lv-operator .lv-shell{position:fixed;inset:auto 0 auto 0;top:var(--lv-viewport-top,0px);height:var(--lv-viewport-height,100dvh);max-height:var(--lv-viewport-height,100dvh);min-height:0}.lv-operator .lv-work{min-height:0;overflow:hidden}.lv-operator .lv-room{min-height:0;overflow:hidden}.lv-operator .lv-compose{flex-shrink:0}}

/* Quiet workshop wallpaper; bubbles keep their own opaque backgrounds. */
.lv-shell .lv-messages{background-color:#101a15;background-image:url('/assets/chat-tools-pattern.svg');background-repeat:repeat;background-size:320px 280px}
@media(max-width:640px){.lv-shell .lv-messages{background-size:272px 238px}}

/* Reserve media geometry before network loading and reveal history as one batch. */
.lv-messages{overflow-anchor:none}
.lv-messages.lv-history-loading>.lv-bubble{visibility:hidden}
.lv-messages .lv-bubble>img{width:240px;height:180px;max-width:100%;object-fit:contain;background:#0c140f;border-radius:10px}

.lv-shell .lv-bubble{padding:7px 10px;line-height:1.3;white-space:normal;transition:transform .18s ease-out}
.lv-shell .lv-bubble p{margin:2px 0;white-space:pre-wrap}
.lv-shell .lv-message-meta{margin-top:3px;gap:5px;font-size:10px}
.lv-shell .lv-message-meta .lv-receipt{font-size:12px;letter-spacing:-2px}
.lv-reply-quote,.lv-reply-bar>div{border-left:3px solid #a6d870;padding:4px 8px;background:#b8f5680d;border-radius:5px;min-width:0}
.lv-reply-quote{margin:3px 0 5px;max-width:260px}
.lv-reply-quote strong,.lv-reply-quote span,.lv-reply-bar strong,.lv-reply-bar span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4}
.lv-reply-quote strong,.lv-reply-bar strong{color:#b8df98}
.lv-reply-bar{display:flex;align-items:center;gap:6px;min-width:0}.lv-reply-bar>div{flex:1}
.lv-shell .lv-reply-bar button{padding:0;min-height:28px;width:28px;font-size:20px}
@media(prefers-reduced-motion:reduce){.lv-shell .lv-bubble{transition:none}}

#lv-voice-effect[data-active="true"]{color:#c0ee86;border-color:#91bd64;background:#30432b}
@media(max-width:640px){.lv-composer-row{gap:4px}.lv-composer-row .lv-icon-button{width:32px;min-width:32px;flex-basis:32px;padding:5px}}

.lv-history-indicator-anchor{position:relative;height:0;flex:0 0 0;z-index:2;pointer-events:none}
.lv-history-indicator{position:absolute;top:8px;left:50%;transform:translateX(-50%);display:flex;gap:5px;align-items:center;padding:9px 13px;border:1px solid #4c6547;border-radius:20px;background:#17271fed;box-shadow:0 3px 12px #0003}
.lv-history-indicator[hidden]{display:none}
.lv-history-indicator span{width:5px;height:5px;border-radius:50%;background:#c0ee86;animation:lv-history-dot 1s ease-in-out infinite}
.lv-history-indicator span:nth-child(2){animation-delay:.15s}.lv-history-indicator span:nth-child(3){animation-delay:.3s}
@keyframes lv-history-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.lv-history-indicator span{animation:none;opacity:1}}

.lv-chat-list .lv-customer-card{grid-template-columns:24px minmax(0,1fr);gap:2px 6px;padding:7px 9px}
.lv-customer-card .lv-avatar{width:24px;height:24px;font-size:11px}
.lv-customer-identity{grid-column:1/-1;display:flex;align-items:baseline;gap:7px;min-width:0}
.lv-chat-list .lv-customer-identity strong{flex:1;min-width:0;margin:0;font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-customer-identity .lv-customer-phone{flex:none;font-size:11px;line-height:1.35;white-space:nowrap}
.lv-customer-card .lv-unread{margin-top:1px}

.lv-account-settings{max-height:85dvh;overflow:auto}.lv-account-settings label{display:grid;gap:5px;margin:10px 0}.lv-account-settings input,.lv-account-settings select{box-sizing:border-box;width:100%;min-width:0;padding:9px}.lv-account-settings-actions{display:grid;gap:7px;margin-top:15px}.lv-account-settings-actions button{width:100%;margin:0}#lv-voice-effect[hidden],#lv-account-menu button[hidden]{display:none!important}

.lv-composer-row{align-items:stretch}.lv-composer-row #lv-text{padding-top:9px;padding-bottom:9px}.lv-composer-row .lv-icon-button{height:auto;min-height:44px;align-self:stretch;box-sizing:border-box;margin-top:0;margin-bottom:0}

.lv-shell .lv-composer-row #lv-voice{height:auto;min-height:44px}

.lv-account-settings{width:min(420px,calc(100vw - 28px));padding:22px;background:linear-gradient(145deg,#1a2b20,#101b15);color:#edf5e8;border:1px solid #526b43;border-radius:20px;box-shadow:0 24px 80px #0009;font-family:inherit;color-scheme:dark}
.lv-account-settings::backdrop{background:#050b08b3;backdrop-filter:blur(4px)}
.lv-account-settings h3{color:#d9f8b9;font-size:20px;margin-bottom:18px}
.lv-account-settings label{color:#c6d6bf;font-size:13px;font-weight:500}
.lv-account-settings input,.lv-account-settings select{background:#0c1710;color:#edf5e8;border:1px solid #49623d;border-radius:10px;min-height:44px;font:inherit;font-size:16px;margin:0}
.lv-account-settings input:read-only{color:#acbaa5;background:#17221a}
.lv-account-settings input:focus-visible,.lv-account-settings select:focus-visible,.lv-account-settings button:focus-visible{outline:2px solid #b8f568;outline-offset:2px}
.lv-account-settings .lv-muted{color:#a8b8a0;font-size:12px;line-height:1.5;margin:8px 0 14px}
.lv-account-settings button{font:inherit;min-height:42px;border-radius:10px;margin:0;padding:10px 14px;cursor:pointer}
.lv-account-settings form>button{width:100%;background:#b8f568;color:#13200e;border-color:#b8f568;font-weight:600}
.lv-account-settings-actions{padding-top:14px;border-top:1px solid #3b5035}
.lv-account-settings-actions .lv-danger{background:#36201e;border-color:#71453c}
.lv-account-settings [role=status]:empty{display:none}.lv-account-settings button:disabled{opacity:.5;cursor:default}

.lv-bubble .lv-transcript-button{font-size:12px;padding:5px 9px;min-height:30px;margin-top:7px;background:#182c20;color:#d2efbc;border:1px solid #526b43;border-radius:8px}.lv-transcript{white-space:pre-wrap;font-size:13px;line-height:1.45;margin-top:8px;padding:9px;border-left:2px solid #a9db77;background:#0b160e40;border-radius:5px;user-select:text;-webkit-user-select:text}

.lv-shell .lv-composer-row .lv-icon-button,.lv-shell .lv-composer-row #lv-voice{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;align-self:flex-end;padding:0;border-radius:10px}
.lv-voice-locked{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px;color:#f0a6a0;font-size:12px}.lv-voice-locked[hidden]{display:none}.lv-voice-locked button{font-size:12px;padding:5px 9px;min-height:28px;color:#ffb4ab}

/* Compact voice controls: duration above the seek bar, transcript beside it. */
.lv-audio-row{align-items:flex-end;gap:8px;width:min(280px,100%)}
.lv-audio-timeline{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lv-audio-timeline .lv-audio-time{height:14px;min-height:14px;margin:0;font-size:11px;line-height:14px;white-space:nowrap}
.lv-audio-time .lv-wait-ring{width:14px;height:14px;vertical-align:top}
.lv-audio-time .lv-wait-ring i::before{top:0;left:6px;width:2px;height:2px}
.lv-audio-status:empty{display:none}
.lv-audio-row .lv-audio-timeline .lv-audio-seek{flex:none;width:100%;min-width:0;margin:0}
.lv-bubble .lv-audio-row .lv-transcript-button{flex:0 0 auto;margin:0;padding:0 7px;min-height:32px;height:32px;font-size:11px;line-height:1;border-radius:8px}
.lv-audio-row .lv-audio-toggle{flex-basis:32px;width:32px;height:32px;min-height:32px}

.lv-wait-ring{display:inline-block;position:relative;width:24px;height:24px;vertical-align:middle;color:#b8f568}
.lv-wait-ring i{position:absolute;inset:0;animation:lv-orbit 1.8s cubic-bezier(.4,0,.2,1) infinite}
.lv-wait-ring i::before{content:"";position:absolute;top:1px;left:10px;width:4px;height:4px;border-radius:50%;background:currentColor}
.lv-wait-ring i:nth-child(2){animation-delay:-.12s;opacity:.85}.lv-wait-ring i:nth-child(3){animation-delay:-.24s;opacity:.7}.lv-wait-ring i:nth-child(4){animation-delay:-.36s;opacity:.55}.lv-wait-ring i:nth-child(5){animation-delay:-.48s;opacity:.4}.lv-wait-ring i:nth-child(6){animation-delay:-.6s;opacity:.25}
.lv-transcript[aria-busy=true]{padding:4px 0;border:0;background:none;line-height:1}
@keyframes lv-orbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.lv-wait-ring i{animation:none;transform:rotate(0deg)}.lv-wait-ring i:nth-child(2){transform:rotate(60deg)}.lv-wait-ring i:nth-child(3){transform:rotate(120deg)}.lv-wait-ring i:nth-child(4){transform:rotate(180deg)}.lv-wait-ring i:nth-child(5){transform:rotate(240deg)}.lv-wait-ring i:nth-child(6){transform:rotate(300deg)}}

.lv-voice-lock-mark,.lv-voice-lock-send{display:flex;align-items:center;justify-content:center;pointer-events:none}
.lv-shell #lv-voice.lv-voice-is-locked{flex-direction:column;gap:1px;animation:lv-record-lock .38s ease-out}
.lv-shell #lv-voice .lv-voice-lock-mark svg{width:12px;height:12px}
.lv-shell #lv-voice .lv-voice-lock-send svg{width:18px;height:18px}
.lv-voice-is-locked .lv-voice-lock-mark{animation:lv-lock-enter .32s ease-out both}
.lv-voice-is-locked .lv-voice-lock-send{animation:lv-lock-enter .32s .08s ease-out both}
@keyframes lv-lock-enter{from{opacity:0;transform:translateY(5px) scale(.6)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes lv-record-lock{0%{transform:translateY(-50%) scale(2)}45%{transform:translateY(-55%) scale(2.14)}100%{transform:translateY(-50%) scale(2)}}
@media(prefers-reduced-motion:reduce){.lv-shell #lv-voice.lv-voice-is-locked,.lv-voice-is-locked .lv-voice-lock-mark,.lv-voice-is-locked .lv-voice-lock-send{animation:none}}

.lv-voice-cancel-animation{position:fixed;display:flex;align-items:center;justify-content:center;z-index:2147483647;pointer-events:none;border-radius:50%;color:#fff;background:radial-gradient(circle,#db6176,#b84156);box-shadow:0 0 12px #db536580;animation:lv-record-cancel .38s ease-in forwards}
.lv-voice-cancel-animation svg{width:30%;height:30%}
@keyframes lv-record-cancel{from{opacity:1;transform:translateX(0) scale(1)}to{opacity:0;transform:translateX(-70px) scale(.35)}}
@media(prefers-reduced-motion:reduce){.lv-voice-cancel-animation{animation:none;display:none}}

#lv-send .lv-wait-ring{color:currentColor;flex:none}#lv-send[aria-busy=true]{opacity:1}

.lv-voice-locked{justify-content:flex-start;flex-wrap:wrap;padding:6px 100px 6px 0;gap:6px}
.lv-voice-locked #lv-voice-cancel{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 10px;border:1px solid #e57583;border-radius:10px;background:#4c202b;color:#ffe0e4;white-space:nowrap;position:relative;z-index:6;cursor:pointer}
#lv-voice-cancel svg{width:17px;height:17px;pointer-events:none}#lv-voice-cancel:active{transform:scale(.96)}

.lv-bubble .lv-audio-row .lv-transcript-button{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;padding:0}.lv-transcript-button svg{pointer-events:none;flex:none}
