/* Copyright (c) 2026 Hostimor | İsa Güngör. All rights reserved. */
.hlc{--hlc-accent:#2563eb;--hlc-text:#17243a;--hlc-muted:#64748b;--hlc-border:#e2e8f0;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hlc-text);text-align:left;box-sizing:border-box}
.hlc *{box-sizing:border-box}.hlc [hidden]{display:none!important}.hlc button,.hlc input,.hlc textarea{font:inherit}.hlc button{cursor:pointer}.hlc button:disabled{cursor:default;opacity:.5}.hlc button:focus-visible,.hlc input:focus-visible,.hlc textarea:focus-visible,.hlc a:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.hlc button{border:1px solid var(--hlc-border);background:#fff;color:var(--hlc-text);border-radius:9px;padding:8px 12px}.hlc .hlc-primary{background:var(--hlc-accent);border-color:var(--hlc-accent);color:#fff;font-weight:600}.hlc label{display:block}.hlc input:not([type=checkbox]),.hlc textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:var(--hlc-text);resize:vertical}.hlc textarea{max-height:150px}.hlc input[type=checkbox]{accent-color:var(--hlc-accent)}.hlc-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.hlc-error{padding:10px 14px;margin:10px;background:#fef2f2;border:1px solid #fecaca;border-radius:9px;color:#991b1b;font-size:13px}
.hlc-launcher{position:fixed;right:24px;bottom:24px;z-index:2147483000;display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px #1e3a8a30!important;background:var(--hlc-accent)!important;color:#fff!important;border:none!important;border-radius:30px!important;padding:14px 21px!important;font-weight:600!important}.hlc-launcher svg{width:24px;height:24px}.hlc-unread{color:#fbbf24;font-style:normal}.hlc-window{position:fixed;right:24px;bottom:92px;z-index:2147483000;width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 112px);overflow:auto;border-radius:18px;border:1px solid var(--hlc-border);background:#fff;box-shadow:0 16px 64px #102a432e}.hlc-header{position:sticky;top:0;z-index:1;display:flex;gap:12px;align-items:center;padding:20px;background:var(--hlc-accent);color:#fff}.hlc-avatar{width:42px;height:42px;border:1px solid #ffffff50;background:#ffffff15;border-radius:13px;display:grid;place-items:center;font-size:21px;font-weight:700}.hlc-header strong{display:block;font-size:16px}.hlc-header small{display:block;font-size:12px;opacity:.88}.hlc-header button{margin-left:auto;border:0;background:#ffffff15;color:#fff;font-size:22px;padding:0 10px}.hlc-start{padding:20px}.hlc-start h3{margin:0 0 8px;font-size:20px;line-height:1.4;letter-spacing:-.4px}.hlc-start>p{font-size:13px;color:var(--hlc-muted);margin:0 0 18px}.hlc-start>label{margin-top:12px;font-size:12px;font-weight:600}.hlc-start label input,.hlc-start label textarea{margin-top:5px;font-size:14px;font-weight:400}.hlc-start .hlc-check{display:flex;gap:8px;align-items:center;font-weight:400}.hlc-start>.hlc-primary{width:100%;display:flex;justify-content:space-between;margin-top:18px;padding:12px 16px}.hlc-disclosure{display:block;font-size:11px;line-height:1.6;color:var(--hlc-muted);margin-top:12px}.hlc-credit{text-align:center;font-size:10px;padding:10px 16px 13px;border-top:1px solid #f1f5f9}.hlc-credit a{color:var(--hlc-muted);text-decoration:none}.hlc-connection{color:#a16207;font-size:11px;margin:0;padding:0 16px;background:#fffbeb}.hlc-connection:empty{display:none}.hlc-chat-status{display:flex;flex-direction:column;gap:7px;padding:12px 16px;font-size:12px;color:var(--hlc-muted);background:#f8fafc}.hlc-chat-status button{align-self:flex-start;font-size:12px;border-color:#bfdbfe;color:var(--hlc-accent)}.hlc-messages{height:300px;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:14px;background:#f8fafc;overscroll-behavior:contain}.hlc-message{align-self:flex-start;max-width:88%;min-width:70px;padding:10px 13px;border:1px solid var(--hlc-border);background:#fff;border-radius:13px 13px 13px 3px;overflow-wrap:anywhere}.hlc-message>small:first-child{font-size:10px;color:var(--hlc-muted);font-weight:600}.hlc-message p{margin:4px 0 6px;white-space:pre-wrap}.hlc-message-time,.hlc-read{font-size:9px;color:var(--hlc-muted);display:inline-block;margin-right:7px}.hlc-message.hlc-mine{align-self:flex-end;background:var(--hlc-accent);border-color:transparent;color:#fff;border-radius:13px 13px 3px 13px}.hlc-message.hlc-mine small{color:#fff;opacity:.8}.hlc-message.hlc-ai{border-color:#ddd6fe;background:#faf5ff}.hlc-message.hlc-ai>small:first-child{color:#7c3aed}.hlc-typing{height:24px;font-size:11px;padding:3px 16px;color:var(--hlc-muted);background:#f8fafc}.hlc-compose{padding:12px 16px;display:flex;gap:8px;align-items:flex-end;border-top:1px solid var(--hlc-border);background:#fff}.hlc-compose textarea{min-height:44px;font-size:13px}.hlc-compose button{padding:11px 13px}.hlc-chat-actions{padding:4px 16px 12px;display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:11px;color:var(--hlc-muted)}.hlc-chat-actions button{border:0;padding:4px 0;color:var(--hlc-muted);font-size:11px;background:transparent}
.hlc-admin{background:#f4f7fb;border:1px solid var(--hlc-border);border-radius:16px;overflow:hidden;margin:10px 0}.hlc-admin-heading{padding:28px 30px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px}.hlc-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--hlc-accent)}.hlc-admin-heading h2{margin:5px 0;font-size:27px;letter-spacing:-.8px;color:var(--hlc-text)}.hlc-admin-heading p{margin:0;font-size:13px;color:var(--hlc-muted)}.hlc-settings{padding:9px 14px;background:#eff6ff;border:1px solid #dbeafe;color:var(--hlc-accent);border-radius:10px;text-decoration:none;white-space:nowrap}.hlc-admin-toolbar{display:flex;align-items:center;gap:20px;padding:14px 30px;border-top:1px solid var(--hlc-border);border-bottom:1px solid var(--hlc-border);font-size:12px;background:#fff}.hlc-admin-toolbar label{display:flex;align-items:center;gap:7px}.hlc-admin-toolbar [data-connection]{margin-left:auto;color:var(--hlc-muted)}.hlc-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:580px}.hlc-inbox{border-right:1px solid var(--hlc-border);background:#fff;display:flex;flex-direction:column}.hlc-tabs{display:flex;flex-wrap:wrap;padding:14px;gap:6px}.hlc-tabs button{border:0;background:#f1f5f9;font-size:11px;padding:7px 9px}.hlc-tabs button[aria-pressed=true]{background:#dbeafe;color:#1d4ed8;font-weight:600}.hlc-inbox>input{margin:0 14px 14px;width:calc(100% - 28px)!important;font-size:12px!important;background:#f8fafc!important}.hlc-list{flex:1;max-height:490px;overflow:auto}.hlc-list-item{display:flex;width:100%;gap:11px;align-items:center;border:0!important;border-top:1px solid #f1f5f9!important;border-radius:0!important;padding:16px!important;text-align:left}.hlc-list-item[aria-pressed=true]{background:#eff6ff;border-left:3px solid var(--hlc-accent)!important}.hlc-list-avatar{display:grid;place-items:center;background:#e2e8f0;width:36px;height:36px;border-radius:11px;font-weight:600;flex-shrink:0}.hlc-list-text{min-width:0;flex:1}.hlc-list-text strong,.hlc-list-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hlc-list-text strong{font-size:13px}.hlc-list-text small{font-size:11px;color:var(--hlc-muted);margin-top:4px}.hlc-count{background:var(--hlc-accent);color:#fff;border-radius:12px;padding:2px 7px;font-size:10px}.hlc-list-empty{padding:24px;color:var(--hlc-muted);font-size:13px}.hlc-pagination{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:10px;border-top:1px solid var(--hlc-border)}.hlc-pagination button{font-size:11px;border:0}.hlc-thread{min-width:0;display:flex;flex-direction:column}.hlc-thread>[data-conversation]{display:flex;flex-direction:column;height:100%}.hlc-thread-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;background:#fff;border-bottom:1px solid var(--hlc-border);gap:12px}.hlc-thread-header h3{font-size:17px;margin:0 0 3px}.hlc-thread-header [data-status]{font-size:11px;color:var(--hlc-muted)}.hlc-thread-actions{display:flex;gap:6px;flex-wrap:wrap}.hlc-thread-actions button{font-size:11px}.hlc-details{margin:0;font-size:11px;color:var(--hlc-muted);padding:10px 22px;border-bottom:1px solid var(--hlc-border);overflow-wrap:anywhere}.hlc-admin .hlc-messages{flex:1;min-height:290px;height:350px;padding:22px}.hlc-admin .hlc-message{max-width:78%}.hlc-admin .hlc-compose{padding:14px 22px}.hlc-admin .hlc-chat-actions{background:#fff;padding:0 22px 12px}.hlc-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;gap:12px;min-height:400px;padding:24px;text-align:center;color:var(--hlc-muted)}.hlc-empty h3{font-size:15px;font-weight:400;margin:0}.hlc-empty-icon{display:grid;place-items:center;width:66px;height:66px;font-size:30px;border:1px solid var(--hlc-border);border-radius:20px;background:#fff;color:var(--hlc-accent)}.hlc-admin-footer{display:flex;justify-content:space-between;padding:14px 25px;font-size:10px;color:var(--hlc-muted);border-top:1px solid var(--hlc-border);background:#fff}
@media(max-width:800px){.hlc-workspace{grid-template-columns:1fr}.hlc-inbox{border-right:0;border-bottom:1px solid var(--hlc-border)}.hlc-list{max-height:200px}.hlc-admin-heading{padding:20px}.hlc-admin-heading h2{font-size:23px}.hlc-admin-toolbar{padding:12px 20px;gap:12px}.hlc-thread-header{align-items:flex-start;flex-direction:column}.hlc-empty{min-height:260px}.hlc-admin .hlc-messages{height:320px;flex:none}}
@media(max-width:440px){.hlc-launcher{right:16px;bottom:16px;padding:12px 16px!important}.hlc-window{right:12px;bottom:78px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px)}.hlc-messages{height:240px}.hlc-start{padding:16px}.hlc-admin-heading{align-items:flex-start;flex-direction:column}.hlc-admin-toolbar{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.hlc *{scroll-behavior:auto!important}}

/* Shared spacing, touch targets and bounded scrolling keep the composer in view. */
.hlc{--hlc-space:16px;-webkit-text-size-adjust:100%}
.hlc button,.hlc-settings{min-height:40px;transition:background-color .15s,border-color .15s,box-shadow .15s}
.hlc button:not(:disabled):hover{background:#f1f5f9}.hlc .hlc-primary:not(:disabled):hover{background:var(--hlc-accent);filter:brightness(.95)}
.hlc button:disabled{opacity:.58}.hlc input:not([type=checkbox]),.hlc textarea{font-size:16px;min-height:44px}
.hlc input[type=checkbox]{width:17px;height:17px;flex:none;margin:0}
.hlc-window{display:flex;flex-direction:column;overflow:hidden;isolation:isolate;width:400px}
.hlc-header{flex:none;position:static;background:linear-gradient(135deg,var(--hlc-accent),var(--hlc-accent) 70%,#102a43)}
.hlc-avatar{flex:none}.hlc-header>div:nth-child(2){min-width:0;flex:1}.hlc-header strong,.hlc-header small{overflow-wrap:anywhere}
.hlc-header button{flex:none;min-width:40px;min-height:40px;margin-left:0}
.hlc-start{min-height:0;overflow:auto;overscroll-behavior:contain}.hlc-start>label{line-height:1.5}
.hlc-start .hlc-check{align-items:flex-start}.hlc-start .hlc-check input{margin-top:1px}
.hlc-window>[data-conversation]{display:flex;min-height:0;flex-direction:column}
.hlc-window .hlc-messages{height:290px;min-height:80px;flex:1 1 290px}
.hlc-window .hlc-header,.hlc-chat-status,.hlc-compose,.hlc-chat-actions,.hlc-typing,.hlc-credit,.hlc-connection{flex-shrink:0}
.hlc-window .hlc-compose textarea{font-size:16px;min-height:50px;height:54px;max-height:100px}
.hlc-window .hlc-compose button{min-height:50px}.hlc-chat-status:has([data-chat-help]:empty){display:none}
.hlc-draft-notice{display:block;flex:none;padding:0 16px 10px;font-size:10px;line-height:1.5;color:var(--hlc-muted);background:#fff}
.hlc-day{align-self:center;font-size:10px;color:var(--hlc-muted);border:1px solid var(--hlc-border);background:#fff;border-radius:20px;padding:3px 12px;flex:none}
.hlc-message{flex-shrink:0}.hlc-messages{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.hlc-admin{container-type:inline-size;box-shadow:0 6px 26px #17243a06}
.hlc-admin-heading{padding:24px;min-width:0}.hlc-admin-heading>div{min-width:0}.hlc-admin-heading h2{line-height:1.25;overflow-wrap:anywhere}
.hlc-admin-toolbar{padding:12px 24px;min-height:52px}.hlc-admin-toolbar label{min-height:28px}
.hlc-workspace{grid-template-columns:300px minmax(0,1fr);height:clamp(500px,calc(100dvh - 310px),780px);min-height:0}
.hlc-inbox,.hlc-thread,.hlc-thread>[data-conversation]{min-height:0}
.hlc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px}
.hlc-tabs button{display:grid;place-items:center;padding:8px;min-height:44px;line-height:1.4;border:1px solid transparent;font-size:11px}
.hlc-tabs button[aria-pressed=true]{border-color:#bfdbfe}
.hlc-inbox>input{margin:0 16px 16px;width:calc(100% - 32px)!important;font-size:13px!important}
.hlc-list{min-height:0;max-height:none;overscroll-behavior:contain}
.hlc-list-item{border-left:3px solid transparent!important;min-height:78px}
.hlc-list-item[aria-pressed=true]{border-left-color:var(--hlc-accent)!important}
.hlc-thread-header{padding:16px 20px;flex-direction:row;align-items:center;flex:none;flex-wrap:wrap;gap:12px}
.hlc-thread-person{min-width:0;flex:1}.hlc-thread-header h3,.hlc-thread-header [data-status]{overflow-wrap:anywhere}
.hlc-thread-actions{gap:8px}.hlc-thread-actions button{min-height:40px;font-size:12px}
.hlc-details{padding:10px 20px;max-height:90px;overflow:auto;flex:none;font-size:11px;line-height:1.7}
.hlc-admin .hlc-messages{min-height:80px;flex:1;height:auto;padding:20px}
.hlc-admin .hlc-compose{padding:16px 20px;align-items:stretch}.hlc-admin .hlc-compose textarea{height:72px;min-height:48px;max-height:100px;font-size:14px}
.hlc-admin .hlc-compose button{align-self:flex-end;min-height:44px}
.hlc-admin .hlc-chat-actions{padding:0 20px 12px;gap:8px;flex-wrap:wrap}.hlc-chat-actions button{min-height:30px}
.hlc-back{display:none}.hlc-draft{flex:none;border-top:1px dashed #93c5fd;background:#eff6ff;padding:12px 20px;max-height:124px;overflow:auto}
.hlc-draft>div{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px}
.hlc-draft strong{font-size:11px;color:#1d4ed8}.hlc-draft small{font-size:10px;color:var(--hlc-muted)}
.hlc-draft p{margin:6px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155}
.hlc-admin-footer{padding:12px 24px;gap:12px;flex-wrap:wrap}
@container(max-width:760px){
  .hlc-admin-heading{padding:20px;align-items:flex-start;flex-direction:row}.hlc-admin-heading h2{font-size:22px}
  .hlc-admin-heading p{font-size:12px}.hlc-settings{padding:8px 10px;font-size:12px}
  .hlc-admin-toolbar{padding:12px 20px;gap:12px;flex-wrap:wrap}
  .hlc-workspace{grid-template-columns:minmax(0,1fr);height:clamp(420px,calc(100dvh - 230px),720px);min-height:0}
  .hlc-inbox{border-right:0;border-bottom:0}.hlc-thread{display:none}
  .hlc-thread-open .hlc-inbox{display:none}.hlc-thread-open .hlc-thread{display:flex}
  .hlc-thread-open .hlc-admin-heading{display:none}
  .hlc-thread-open .hlc-workspace{height:clamp(300px,calc(100dvh - 140px),720px)}
  .hlc-back{display:grid;place-items:center;min-width:42px;padding:6px;font-size:20px}
  .hlc-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.hlc-list{max-height:none}
  .hlc-thread-header{padding:12px 16px;gap:10px}.hlc-thread-header h3{font-size:16px}
  .hlc-thread-actions{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
  .hlc-details{padding:8px 16px;max-height:70px}
  .hlc-admin .hlc-messages{padding:16px;flex:1;height:auto}.hlc-admin .hlc-message{max-width:90%}
  .hlc-admin .hlc-compose{padding:12px 16px}.hlc-admin .hlc-compose textarea{font-size:16px;height:58px}
  .hlc-admin .hlc-chat-actions{padding:0 16px 10px}.hlc-draft{padding:10px 16px;max-height:100px}
}
@container(max-width:400px){
  .hlc-admin-heading{padding:16px;flex-wrap:wrap}.hlc-admin-heading h2{font-size:20px}
  .hlc-admin-toolbar{padding:10px 16px}.hlc-admin-toolbar [data-connection]{width:100%;margin-left:0}
  .hlc-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.hlc-admin-footer{padding:12px 16px}
}
@media(max-width:440px){
  .hlc-launcher{bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right))}
  .hlc-window{right:8px;bottom:76px;width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 84px - env(safe-area-inset-bottom));border-radius:16px}
  .hlc-header{padding:16px}.hlc-window .hlc-messages{height:250px;flex-basis:250px}
  .hlc-start{padding:16px}.hlc-start h3{font-size:18px}.hlc-disclosure{font-size:10px}
  .hlc-admin-heading{flex-direction:row}.hlc-launcher>span{font-size:13px}
}
@media(max-height:540px){
  .hlc-window{bottom:68px;max-height:calc(100dvh - 76px)}.hlc-header{padding:10px 16px}
  .hlc-window .hlc-messages{flex-basis:120px}.hlc-draft-notice{display:none}
  .hlc-window .hlc-compose{padding:8px 12px}.hlc-credit{padding:5px 12px}.hlc-chat-status{padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){.hlc *{transition:none!important;animation:none!important}}

/* A single composer frame aligns the editor and send control at every breakpoint. */
.hlc .hlc-compose{display:block;border-top:1px solid var(--hlc-border);padding:16px 16px 8px;background:#fff}
.hlc-compose-shell{display:flex;align-items:stretch;gap:8px;width:100%;padding:7px;border:1px solid #dbe4f0;border-radius:14px;background:#f8fafc;transition:border-color .15s,box-shadow .15s}
.hlc-compose-shell:focus-within{border-color:var(--hlc-accent);box-shadow:0 0 0 3px #2563eb12}
.hlc .hlc-compose-shell textarea{flex:1;min-width:0;width:0;height:56px;min-height:56px;max-height:100px;border:0;background:transparent;outline:none;box-shadow:none;border-radius:8px;padding:7px 8px;font-size:14px;line-height:1.5;resize:none}
.hlc .hlc-compose-shell textarea:focus-visible{outline:none}
.hlc .hlc-compose-shell button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;align-self:stretch;min-width:72px;min-height:56px;margin:0;padding:6px 12px;border-radius:10px;font-size:12px;line-height:1.4;box-shadow:0 3px 8px #2563eb14;flex-shrink:0}
.hlc-compose-shell svg{width:19px;height:19px}.hlc-compose-shell button:focus-visible{outline-offset:2px}
.hlc-window .hlc-chat-actions{padding:0 16px 12px;gap:12px;min-height:44px}
.hlc-window .hlc-chat-actions button{padding:6px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;min-height:32px;font-size:11px;line-height:1.4}
.hlc-window .hlc-chat-actions [data-end]:hover{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.hlc-length{margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--hlc-muted)}
.hlc-window .hlc-draft-notice{display:flex;align-items:flex-start;gap:8px;margin:0 16px 14px;padding:10px 12px;background:#f8fafc;border:1px solid #edf2f7;border-radius:10px;line-height:1.6}
.hlc-draft-notice small{display:block;font-size:10px;line-height:1.6;color:#64748b}
.hlc-info-icon{display:grid;place-items:center;width:16px;height:16px;flex:none;border:1px solid #94a3b8;border-radius:50%;color:#64748b;font-size:10px;font-weight:600;margin-top:1px}
.hlc-credit{padding:12px 16px;background:#fbfcfe;border-top:1px solid #edf2f7;line-height:1.5;letter-spacing:.1px}
.hlc-credit a{display:inline-flex;align-items:center;min-height:18px;font-size:10px;color:#64748b}
.hlc-admin .hlc-compose{padding:14px 20px 8px}.hlc-admin .hlc-compose-shell button{min-width:84px}
@container(max-width:760px){.hlc-admin .hlc-compose{padding:12px 16px 8px}.hlc .hlc-compose-shell textarea{font-size:16px}}
@media(max-width:440px){.hlc-window .hlc-compose-shell textarea{font-size:16px}.hlc-window .hlc-compose{padding:12px 16px 8px}}
@media(max-height:540px){.hlc-window .hlc-draft-notice{display:none}.hlc-window .hlc-compose{padding:8px 12px 6px}.hlc-window .hlc-chat-actions{padding:0 12px 8px}.hlc-credit{padding:6px 12px}}
.hlc-window-controls{display:flex;align-items:center;gap:6px;flex:none}.hlc-header .hlc-window-controls button{display:grid;place-items:center;min-width:36px;min-height:36px;padding:0;border-radius:9px;font-size:22px}
.hlc-tabs{grid-auto-rows:1fr}.hlc-tabs button{min-height:48px;font-size:12px}
.hlc-window-controls svg{width:19px;height:19px}
.hlc-header [data-status]::before{content:'';display:inline-block;width:6px;height:6px;background:#cbd5e1;border-radius:50%;margin-right:6px;vertical-align:middle}
.hlc[data-state=active] .hlc-header [data-status]::before{background:#86efac}.hlc[data-state=bot] .hlc-header [data-status]::before{background:#e9d5ff}
.hlc-window.hlc-expanded{width:min(680px,calc(100vw - 48px));height:min(760px,calc(100dvh - 112px))}
.hlc-window.hlc-expanded>[data-conversation]{flex:1}.hlc-window.hlc-expanded .hlc-start{flex:1}
.hlc-window.hlc-expanded .hlc-messages{flex:1;height:auto}.hlc-window.hlc-expanded .hlc-message{max-width:76%}
.hlc-profile{display:none;min-height:0;border-left:1px solid var(--hlc-border);background:#fff;overflow:auto;padding:20px;scrollbar-width:thin}
.hlc-profile h3{font-size:13px;font-weight:600;margin:0 0 22px;color:var(--hlc-text)}
.hlc-profile-person{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;margin-bottom:22px}
.hlc-profile-avatar{display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:#eff6ff;color:#1d4ed8;font-size:22px;font-weight:600;border:1px solid #dbeafe}
.hlc-profile-person strong{font-size:14px;margin-top:5px;overflow-wrap:anywhere}.hlc-profile-person small{font-size:10px;background:#f1f5f9;color:var(--hlc-muted);border-radius:20px;padding:4px 10px}
.hlc-profile dl{margin:0}.hlc-profile dl>div{padding:12px 0;border-top:1px solid #f1f5f9}
.hlc-profile dt{font-size:10px;color:var(--hlc-muted);font-weight:400;margin-bottom:4px}.hlc-profile dd{margin:0;font-size:12px;color:var(--hlc-text);overflow-wrap:anywhere}
.hlc-profile dd.hlc-profile-id{font:10px/1.8 ui-monospace,monospace;letter-spacing:.1px}
.hlc-profile-handoff{margin:12px 0 0;padding:10px;background:#fffbeb;border:1px solid #fef3c7;border-radius:9px;font-size:11px;color:#92400e;overflow-wrap:anywhere}
@container(min-width:1100px){.hlc-has-chat .hlc-workspace{grid-template-columns:280px minmax(0,1fr) 240px}.hlc-profile{display:block}}
@media(max-width:600px){.hlc-header .hlc-window-controls [data-expand]{display:none}.hlc-window.hlc-expanded{width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 84px);right:8px}.hlc-window.hlc-expanded .hlc-messages{flex:1 1 250px}}

/* Attachments use authenticated POST reads; images open only on user demand. */
.hlc [data-attach]{display:inline-flex;align-items:center;gap:7px;flex:none;padding:6px 9px;min-height:36px}
.hlc [data-attach] svg{width:18px;height:18px}.hlc [data-file][hidden]{display:none!important}
.hlc-attachment{display:block;text-align:left;max-width:100%;overflow-wrap:anywhere;border:1px solid #cbd5e1!important;background:#fff!important;color:#1e293b!important;font-size:12px;padding:10px!important}
.hlc-file-preview{max-width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 20px 80px #0f172a30;color:#1e293b;background:#fff;overflow:auto;font:14px system-ui}
.hlc-file-preview::backdrop{background:#0f172a99}.hlc-file-preview>button{float:right;border:0;border-radius:8px;background:#f1f5f9;min-width:40px;min-height:40px;font-size:24px;cursor:pointer}.hlc-file-preview>p{padding-right:48px;overflow-wrap:anywhere}.hlc-file-preview img{display:block;max-width:100%;max-height:70dvh;margin:16px auto;object-fit:contain}.hlc-file-preview>a{display:inline-block;padding:10px 16px;color:#fff;background:#095174;border-radius:8px;text-decoration:none}
/* Match the WISECP shell's brand, typography and compact panel rhythm. */
.hlc.hlc-admin{--hlc-accent:var(--wcp-brand-primary,#095174);font-family:var(--admin-font-family,inherit);margin:0;border:0;border-radius:0;box-shadow:none;background:var(--bs-tertiary-bg,#f7f9fc)}
.hlc-admin input,.hlc-admin textarea,.hlc-admin button{font-family:inherit}
.hlc-admin .hlc-admin-heading{padding:18px 22px;gap:16px;background:var(--bs-body-bg,#fff)}
.hlc-admin .hlc-admin-heading h2{font-size:16px;font-weight:650;letter-spacing:0;margin:0 0 4px}
.hlc-admin .hlc-admin-heading p{font-size:12px;line-height:1.5}
.hlc-admin .hlc-settings{font-size:12px;color:var(--hlc-accent);border-color:color-mix(in srgb,var(--hlc-accent) 18%,white);background:color-mix(in srgb,var(--hlc-accent) 5%,white)}
.hlc-admin .hlc-admin-toolbar{padding:10px 22px;min-height:48px;background:var(--bs-body-bg,#fff)}
.hlc-admin .hlc-tabs button{font-size:12px;min-height:44px;background:#f4f6f8;border-radius:8px;color:#4b5563}
.hlc-admin .hlc-tabs button[aria-pressed=true]{background:color-mix(in srgb,var(--hlc-accent) 8%,white);color:var(--hlc-accent);border-color:color-mix(in srgb,var(--hlc-accent) 20%,white);font-weight:600}
.hlc-admin .hlc-list-item[aria-pressed=true]{background:color-mix(in srgb,var(--hlc-accent) 6%,white)}
.hlc-admin .hlc-thread-header{background:var(--bs-body-bg,#fff);padding:16px 20px;min-height:76px}
.hlc-admin .hlc-thread-header h3{font-size:16px;font-weight:650;line-height:1.5;margin:0 0 4px}
.hlc-admin .hlc-thread-header [data-status]{display:inline-flex;border-radius:6px;padding:3px 8px;font-size:10px;background:#f1f5f9;color:#526072}
.hlc-admin[data-state=active] .hlc-thread-header [data-status]{background:#ecfdf5;color:#047857}
.hlc-admin[data-state=waiting] .hlc-thread-header [data-status]{background:#fffbeb;color:#a16207}
.hlc-admin .hlc-thread-actions button{border-radius:8px;font-size:11px;min-height:36px;line-height:1.4;padding:8px 12px}
.hlc-admin .hlc-message.hlc-mine{background:color-mix(in srgb,var(--hlc-accent) 7%,white);border-color:color-mix(in srgb,var(--hlc-accent) 14%,white)}
.hlc-admin .hlc-draft{background:#f0f9fa;border-color:#a5d5d8}.hlc-admin .hlc-draft strong{color:#0f6570}
.hlc-admin .hlc-chat-actions{justify-content:flex-start}.hlc-admin [data-export]{margin-left:auto}
.hlc-admin .hlc-profile{background:var(--bs-body-bg,#fff)}.hlc-admin .hlc-profile-avatar{background:color-mix(in srgb,var(--hlc-accent) 8%,white);color:var(--hlc-accent)}
.hlc-admin .hlc-admin-footer{font-size:10px;background:var(--bs-body-bg,#fff);padding:10px 22px}
@container(max-width:760px){.hlc-admin .hlc-admin-heading,.hlc-admin .hlc-admin-toolbar{padding:14px 16px}.hlc-admin .hlc-thread-header{padding:12px 16px}.hlc-admin .hlc-admin-heading p{display:none}}
/* Configurable visitor branding and authenticated inline previews. */
#hostimor-livechat .hlc-launcher,#hostimor-livechat .hlc-primary{color:var(--hlc-accent-ink,#fff)!important}
#hostimor-livechat .hlc-header{background:var(--hlc-accent);color:var(--hlc-accent-ink,#fff)}
#hostimor-livechat .hlc-header button{color:inherit}
#hostimor-livechat .hlc-avatar svg{width:25px;height:25px}
#hostimor-livechat .hlc-messages,#hostimor-livechat .hlc-typing,#hostimor-livechat .hlc-chat-status{background:var(--hlc-surface,#f8fafc)}
#hostimor-livechat .hlc-message.hlc-mine{background:var(--hlc-visitor,var(--hlc-accent));color:var(--hlc-visitor-ink,#fff)}
#hostimor-livechat .hlc-message.hlc-mine small{color:inherit}
.hlc-image-thumb{display:block;width:220px;max-width:100%;height:140px;object-fit:contain;margin-top:8px;border-radius:8px;background:#f1f5f9}
.hlc-list-state{display:block;font-size:10px;color:var(--hlc-muted);margin-top:3px}
.hlc-history-help{font-size:11px;color:var(--hlc-muted);margin:10px 0;line-height:1.6}
.hlc-page-context{font-size:11px;margin:0;padding:8px 20px;background:#f0f9fa;color:#0f6570;border-bottom:1px solid var(--hlc-border);overflow-wrap:anywhere}
.hlc-presence{font-size:11px;color:var(--hlc-muted);margin:12px 0}.hlc-presence-live{color:#047857}.hlc-presence-live:before{content:'●';margin-right:6px}
.hlc-profile dl{margin-bottom:0}.hlc-profile dd{overflow-wrap:anywhere}
/* Atomic first render; mobile keyboard follows the visible viewport. */
.hlc-loading{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:24px;text-align:center;color:var(--hlc-muted)}
.hlc-loading strong{font-size:13px;font-weight:500}.hlc-loading-spinner{width:28px;height:28px;border:3px solid var(--hlc-border);border-top-color:var(--hlc-accent);border-radius:50%;animation:hlc-spin .9s linear infinite}
@keyframes hlc-spin{to{transform:rotate(360deg)}}
#hostimor-livechat .hlc-start input,#hostimor-livechat .hlc-start textarea{font-size:16px}
#hostimor-livechat.hlc-mobile .hlc-window{top:calc(var(--hlc-vv-top,0px) + 10px + env(safe-area-inset-top,0px));bottom:auto;left:10px;right:10px;width:auto;max-width:none;height:min(720px,calc(var(--hlc-vv-height,100dvh) - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-height:none;border-radius:16px;margin:0;transform:none}
#hostimor-livechat.hlc-mobile .hlc-header{padding:14px;gap:10px;min-height:72px}
#hostimor-livechat.hlc-mobile .hlc-avatar{width:36px;height:36px;border-radius:10px}
#hostimor-livechat.hlc-mobile .hlc-header strong{font-size:15px}#hostimor-livechat.hlc-mobile .hlc-header small{font-size:10px}
#hostimor-livechat.hlc-mobile .hlc-window-controls{gap:3px}#hostimor-livechat.hlc-mobile [data-expand]{display:none}
#hostimor-livechat.hlc-mobile .hlc-header button{width:40px;height:40px;min-width:40px;padding:0}
#hostimor-livechat.hlc-mobile .hlc-start{flex:1 1 auto;padding:16px;scroll-padding:16px}
#hostimor-livechat.hlc-mobile .hlc-start h3{font-size:18px;line-height:1.4;margin-bottom:6px}
#hostimor-livechat.hlc-mobile .hlc-start>p{font-size:12px;margin-bottom:14px}
#hostimor-livechat.hlc-mobile .hlc-start>label{margin-top:10px}
#hostimor-livechat.hlc-mobile .hlc-start input{min-height:44px;padding:9px 12px}
#hostimor-livechat.hlc-mobile .hlc-start textarea{height:80px;min-height:72px;max-height:120px}
#hostimor-livechat.hlc-mobile .hlc-start>.hlc-primary{min-height:46px;margin-top:14px}
#hostimor-livechat.hlc-mobile [data-conversation]{flex:1 1 auto;overflow:hidden}
#hostimor-livechat.hlc-mobile .hlc-messages{min-height:0;height:auto;flex:1 1 auto}
#hostimor-livechat.hlc-mobile .hlc-compose{padding:10px 12px}#hostimor-livechat.hlc-mobile .hlc-chat-actions{padding:0 12px 8px}
#hostimor-livechat.hlc-mobile .hlc-credit{padding:8px 12px;font-size:10px}
#hostimor-livechat.hlc-mobile.hlc-open .hlc-launcher{display:none}
html.hlc-mobile-open,html.hlc-mobile-open body{overflow:hidden!important}
@media(prefers-reduced-motion:reduce){.hlc-loading-spinner{animation:none}}
.hlc-tabs button{display:flex!important;justify-content:center;align-items:center;gap:7px}
.hlc-tabs [data-count]{font-size:10px;min-width:20px;padding:1px 5px;border-radius:5px;background:#e2e8f0;color:#475569;font-variant-numeric:tabular-nums}
.hlc-tabs [aria-pressed=true] [data-count]{background:var(--hlc-accent);color:white}
#hostimor-livechat.hlc-mobile .hlc-window{height:min(720px,calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)),calc(var(--hlc-vv-height,100dvh) - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))}
/* Keep form fields quiet; avoid theme-colored focus rings. */
.hlc input:focus,.hlc textarea:focus,.hlc input:focus-visible,.hlc textarea:focus-visible{outline:none!important;box-shadow:none!important;border-color:#94a3b8!important}
.hlc .hlc-compose-shell:focus-within{border-color:#94a3b8;box-shadow:none}
#hostimor-livechat[data-state=closed] .hlc-chat-actions{display:flex;justify-content:center;padding:12px 16px;margin:0;min-height:68px;background:#fff;border-top:1px solid var(--hlc-border)}
#hostimor-livechat[data-state=closed] [data-new]{width:100%;display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 16px;border-radius:10px;font-size:13px;font-weight:600;background:var(--hlc-accent);border-color:var(--hlc-accent);color:var(--hlc-accent-ink,#fff)}
#hostimor-livechat[data-state=closed] .hlc-chat-status{align-items:center;padding:12px 16px;text-align:center}
.hlc-pdf-card{display:grid;place-items:center;min-width:min(320px,calc(100vw - 80px));height:160px;margin:16px 0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#475569;font-size:20px;font-weight:600}
#hostimor-livechat.hlc-mobile .hlc-loading{min-height:0;flex:1 1 auto}
.hlc-pdf-viewer{display:block;border:1px solid #e2e8f0;border-radius:10px;width:min(740px,calc(100vw - 76px));height:min(600px,65dvh);margin:16px 0;background:#f8fafc}
.hlc-pdf-card{padding:20px;text-align:center;font-size:14px;line-height:1.6}
/* Align inbox content to the same 16 px rail as search and tabs. */
.hlc-admin .hlc-history-help{margin:0 16px 16px;padding:10px 12px;background:#f8fafc;border:1px solid #edf2f7;border-radius:8px;line-height:1.65;font-size:11px}
.hlc-admin .hlc-list-item{border-left:0!important;gap:12px;padding:14px 16px!important;min-height:88px}
.hlc-admin .hlc-list-item[aria-pressed=true]{box-shadow:inset 3px 0 0 var(--hlc-accent)}
.hlc-admin .hlc-list-avatar{width:40px;height:40px;border-radius:10px;font-size:15px}
.hlc-admin .hlc-list-text{display:flex;flex-direction:column;gap:4px}
.hlc-admin .hlc-list-text strong{font-size:13px;line-height:1.5;font-weight:600;margin:0}
.hlc-admin .hlc-list-text small{font-size:10px;line-height:1.5;margin:0}
.hlc-admin .hlc-list-state{align-self:flex-start;margin:0;max-width:100%;padding:2px 7px;border-radius:5px;font-size:9px;line-height:1.4;background:#f1f5f9;color:#64748b}
.hlc-admin .hlc-list-state[data-row-state=active]{background:#ecfdf5;color:#047857}
.hlc-admin .hlc-list-state[data-row-state=waiting]{background:#fffbeb;color:#a16207}
.hlc-admin .hlc-list-state[data-row-state=bot]{background:#f5f3ff;color:#7c3aed}
.hlc-admin .hlc-pagination{padding:12px 16px}
.hlc-admin .hlc-message,.hlc-admin .hlc-message.hlc-mine,.hlc-admin .hlc-message p{color:#17243a}
.hlc-admin .hlc-message.hlc-mine small{color:#526072;opacity:1}
.hlc-admin .hlc-message.hlc-mine>small:first-child{color:#095174}
.hlc-ai-summary{margin:0;padding:12px 20px;border-bottom:1px solid #dce8ed;background:#f0f9fa;font-size:12px;line-height:1.65;color:#234654;white-space:pre-wrap}
.hlc-hours-badge{padding:3px 8px;border-radius:6px;background:#f1f5f9;color:#526072;font-size:11px}
@media(max-width:600px){.hlc-admin-toolbar{flex-wrap:wrap}.hlc-hours-badge{order:3}}
/* Quiet, compact visitor surface; keep color on purposeful controls. */
#hostimor-livechat{--hlc-panel:#fff;--hlc-field:#fff;--hlc-soft:#f6f7fa}
#hostimor-livechat .hlc-window{width:384px;border-radius:20px;box-shadow:0 12px 40px #17243a22;background:var(--hlc-panel)}
#hostimor-livechat .hlc-header{background:var(--hlc-panel);color:var(--hlc-text);padding:16px 18px;gap:12px;border-bottom:1px solid var(--hlc-border)}
#hostimor-livechat .hlc-header strong{font-size:15px;font-weight:600;line-height:1.4}
#hostimor-livechat .hlc-header small{font-size:11px;opacity:1;color:var(--hlc-muted);margin-top:3px}
#hostimor-livechat .hlc-avatar{width:38px;height:38px;border:0;border-radius:50%;background:color-mix(in srgb,var(--hlc-accent) 10%,var(--hlc-panel));color:var(--hlc-accent)}
#hostimor-livechat .hlc-avatar svg{width:21px;height:21px}
#hostimor-livechat .hlc-header button{background:transparent;color:var(--hlc-muted);border-radius:10px}
#hostimor-livechat .hlc-header button:hover{background:var(--hlc-soft)}
#hostimor-livechat .hlc-start{padding:18px;background:var(--hlc-soft)}
#hostimor-livechat .hlc-start h3{font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.2px;margin:0 0 5px}
#hostimor-livechat .hlc-start>p:not(.hlc-login){font-size:12px;line-height:1.6;margin:0 0 14px;color:var(--hlc-muted)}
#hostimor-livechat .hlc-start>label{margin-top:10px;font-size:11px;font-weight:500;color:var(--hlc-muted)}
#hostimor-livechat .hlc-start input,#hostimor-livechat .hlc-start textarea{border-color:var(--hlc-border);background:var(--hlc-field);color:var(--hlc-text);border-radius:12px;font-weight:400;min-height:44px;padding:10px 12px;margin-top:4px;box-shadow:none}
#hostimor-livechat .hlc-start textarea{height:72px;min-height:72px;resize:none}
#hostimor-livechat .hlc-start>.hlc-primary{justify-content:center;min-height:44px;padding:10px 16px;margin-top:16px;font-size:13px;font-weight:500;border-radius:12px}
#hostimor-livechat .hlc-login{margin:14px 0 0;text-align:center;font-size:11px;line-height:1.7;color:var(--hlc-muted)}
#hostimor-livechat .hlc-login a{color:var(--hlc-text);font-weight:600;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:28px}
#hostimor-livechat .hlc-credit{background:var(--hlc-panel);padding:8px 16px;border-color:var(--hlc-border)}
#hostimor-livechat .hlc-launcher{font-weight:500!important;padding:12px 18px!important;box-shadow:0 6px 20px #17243a20!important}
#hostimor-livechat.hlc-mobile .hlc-window{top:auto;bottom:calc(100dvh - var(--hlc-vv-top,0px) - var(--hlc-vv-height,100dvh) + 12px + env(safe-area-inset-bottom,0px));left:12px;right:12px;width:auto;height:min(640px,calc(var(--hlc-vv-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-height:calc(var(--hlc-vv-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:18px}
#hostimor-livechat.hlc-mobile[data-state=ready] .hlc-window{height:auto}
#hostimor-livechat.hlc-mobile .hlc-header{min-height:68px;padding:12px 14px}
#hostimor-livechat.hlc-mobile .hlc-start{flex:0 1 auto;padding:16px}
#hostimor-livechat.hlc-mobile .hlc-start h3{font-size:16px}
#hostimor-livechat.hlc-mobile .hlc-start input{min-height:44px}
#hostimor-livechat.hlc-mobile .hlc-start textarea{height:72px;min-height:72px}
#hostimor-livechat.hlc-mobile .hlc-start>.hlc-primary{min-height:44px}
/* Follow the actual website mode, including changes while the chat is open. */
#hostimor-livechat[data-mode=dark]{--hlc-text:#e6edf6;--hlc-muted:#a5b2c5;--hlc-border:#354154;--hlc-panel:#182231;--hlc-field:#202c3d;--hlc-soft:#1c2838;--hlc-surface:#1c2838;color-scheme:dark}
/* The configured light surface is inline; choose the dark surface directly. */
#hostimor-livechat[data-mode=dark] .hlc-messages,#hostimor-livechat[data-mode=dark] .hlc-typing{background:var(--hlc-soft)}
#hostimor-livechat .hlc-message p{font-family:inherit;font-size:14px;line-height:1.6}
#hostimor-livechat[data-mode=dark] .hlc-message.hlc-ai{background:#2b2942;border-color:#4e4569}
#hostimor-livechat[data-mode=dark] .hlc-error{background:#3e252d;border-color:#70404b;color:#ffd5dc}
#hostimor-livechat[data-mode=dark] .hlc-message:not(.hlc-mine){background:#243248;border-color:#354154;color:#e6edf6}
#hostimor-livechat[data-mode=dark] .hlc-message:not(.hlc-mine) small{color:#a5b2c5}
#hostimor-livechat[data-mode=dark] .hlc-chat-status,#hostimor-livechat[data-mode=dark] .hlc-compose,#hostimor-livechat[data-mode=dark] .hlc-chat-actions{background:var(--hlc-panel)}
#hostimor-livechat[data-mode=dark] .hlc-compose-shell{background:var(--hlc-field);border-color:var(--hlc-border)}
#hostimor-livechat[data-mode=dark] textarea{color:var(--hlc-text)}
#hostimor-livechat[data-mode=dark] .hlc-chat-actions button,#hostimor-livechat[data-mode=dark] .hlc-chat-status button,#hostimor-livechat[data-mode=dark] .hlc-day{background:var(--hlc-field);border-color:var(--hlc-border);color:var(--hlc-text)}
#hostimor-livechat[data-mode=dark] .hlc-credit a{color:var(--hlc-muted)}
.hlc-file-preview[data-mode=dark]{color-scheme:dark;background:#182231;color:#e6edf6;border-color:#354154}
.hlc-file-preview[data-mode=dark]>button{background:#243248;color:#e6edf6}
.hlc-confirm{width:360px;max-width:calc(100vw - 32px);padding:22px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;color:#17243a;font:14px/1.6 system-ui;box-shadow:0 12px 50px #17243a22}
.hlc-confirm::backdrop{background:#0f172a66}.hlc-confirm h3{font-size:15px;font-weight:600;margin:0 0 20px}.hlc-confirm>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hlc-confirm button{min-height:44px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f6f7fa;color:#17243a;font:13px system-ui;cursor:pointer}
.hlc-confirm button.hlc-confirm-end{background:#17243a;color:#fff;border-color:#17243a}.hlc-confirm button:focus-visible{outline:2px solid #94a3b8;outline-offset:3px}
.hlc-confirm[data-mode=dark]{background:#182231;color:#e6edf6;border-color:#354154;color-scheme:dark}.hlc-confirm[data-mode=dark] button{background:#243248;color:#e6edf6;border-color:#354154}
.hlc-confirm[data-mode=dark] button.hlc-confirm-end{background:#e6edf6;color:#17243a;border-color:#e6edf6}
html[data-bs-theme=dark] .hlc-admin{--hlc-text:#e6edf6;--hlc-muted:#a5b2c5;--hlc-border:#354154;--hlc-accent:#80c6e5}
html[data-bs-theme=dark] .hlc-admin .hlc-inbox,html[data-bs-theme=dark] .hlc-admin .hlc-compose,html[data-bs-theme=dark] .hlc-admin .hlc-chat-actions{background:#182231}
html[data-bs-theme=dark] .hlc-admin .hlc-messages,html[data-bs-theme=dark] .hlc-admin .hlc-typing,html[data-bs-theme=dark] .hlc-admin .hlc-details{background:#1c2838}
html[data-bs-theme=dark] .hlc-admin .hlc-message,html[data-bs-theme=dark] .hlc-admin .hlc-message.hlc-mine,html[data-bs-theme=dark] .hlc-admin .hlc-message p{background:#243248;color:#e6edf6;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-message small,html[data-bs-theme=dark] .hlc-admin .hlc-message.hlc-mine small{color:#a5b2c5}
html[data-bs-theme=dark] .hlc-admin .hlc-tabs button,html[data-bs-theme=dark] .hlc-admin .hlc-history-help,html[data-bs-theme=dark] .hlc-admin .hlc-compose-shell,html[data-bs-theme=dark] .hlc-admin .hlc-list-avatar{background:#243248;color:#e6edf6;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-list-item{background:#182231;border-color:#354154!important;color:#e6edf6}
html[data-bs-theme=dark] .hlc-admin .hlc-list-item[aria-pressed=true],html[data-bs-theme=dark] .hlc-admin .hlc-tabs button[aria-pressed=true]{background:#293c50;color:#80c6e5}
html[data-bs-theme=dark] .hlc-admin input:not([type=checkbox]),html[data-bs-theme=dark] .hlc-admin textarea{background:#243248!important;color:#e6edf6;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-page-context,html[data-bs-theme=dark] .hlc-admin .hlc-ai-summary,html[data-bs-theme=dark] .hlc-admin .hlc-draft{background:#1d3543;color:#c3dfec;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin{background:#182231;color:#e6edf6}
html[data-bs-theme=dark] .hlc-admin .hlc-admin-heading,html[data-bs-theme=dark] .hlc-admin .hlc-admin-toolbar,html[data-bs-theme=dark] .hlc-admin .hlc-thread-header,html[data-bs-theme=dark] .hlc-admin .hlc-profile,html[data-bs-theme=dark] .hlc-admin .hlc-admin-footer{background:#182231;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-day,html[data-bs-theme=dark] .hlc-admin .hlc-list-state,html[data-bs-theme=dark] .hlc-admin .hlc-hours-badge,html[data-bs-theme=dark] .hlc-admin button:not(.hlc-primary):not([aria-pressed=true]),html[data-bs-theme=dark] .hlc-admin .hlc-settings{background:#243248;color:#c8d5e5;border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-tabs [data-count]{background:#35465d;color:#c8d5e5}
html[data-bs-theme=dark] .hlc-admin .hlc-tabs [aria-pressed=true] [data-count]{background:#80c6e5;color:#102a43}
html[data-bs-theme=dark] .hlc-admin .hlc-draft strong{color:#bcd8ff}
html[data-bs-theme=dark] .hlc-admin .hlc-thread-header [data-status],html[data-bs-theme=dark] .hlc-admin [data-profile-state],html[data-bs-theme=dark] .hlc-admin .hlc-profile-avatar{background:#243248;color:#c8d5e5}
html[data-bs-theme=dark] .hlc-admin[data-state=active] .hlc-thread-header [data-status]{background:#173d37;color:#9be4c8}
html[data-bs-theme=dark] .hlc-admin .hlc-profile dl>div{border-color:#354154}
html[data-bs-theme=dark] .hlc-admin .hlc-profile-handoff{background:#3b3225;border-color:#615034;color:#edd3a3}
.hlc-file-preview[data-mode=dark] .hlc-pdf-card,.hlc-file-preview[data-mode=dark] .hlc-pdf-viewer{background:#243248;color:#e6edf6;border-color:#354154}
.hlc-messages:focus-visible{outline:1px solid #94a3b8;outline-offset:-2px}
#hostimor-livechat .hlc-typing:empty{display:none}
#hostimor-livechat .hlc-header small:empty{display:none}
#hostimor-livechat.hlc-compact .hlc-messages{padding:8px 12px}
#hostimor-livechat .hlc-chat-status{min-width:0;flex:0 0 auto;border-bottom:1px solid var(--hlc-border)}
#hostimor-livechat[data-state=bot] .hlc-chat-status{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
#hostimor-livechat .hlc-chat-status [data-chat-help]{min-width:0;overflow-wrap:anywhere}
#hostimor-livechat .hlc-chat-status button{flex:none;align-self:center;white-space:nowrap}
#hostimor-livechat.hlc-compact .hlc-chat-status{max-height:88px;overflow:auto;padding:8px 12px}
#hostimor-livechat.hlc-compact[data-state=bot] .hlc-chat-status{max-height:none;overflow:visible;min-height:56px}
#hostimor-livechat.hlc-mobile .hlc-compose textarea{font-size:16px}
#hostimor-livechat.hlc-compact .hlc-compose{padding:8px 12px}
#hostimor-livechat.hlc-compact .hlc-compose textarea{height:44px;min-height:44px}
#hostimor-livechat.hlc-compact .hlc-compose button{min-height:44px}
html[data-bs-theme=dark] .hlc-admin .hlc-empty-icon{background:#243248;border-color:#354154;color:#80c6e5}
html[data-bs-theme=dark] .hlc-admin .hlc-empty{color:#a5b2c5}
html[data-bs-theme=dark] .hlc-admin .hlc-primary{color:#102a43}
html[data-bs-theme=dark] .hlc-admin button:not(.hlc-primary):not(:disabled):hover,html[data-bs-theme=dark] .hlc-admin .hlc-settings:hover{background:#30445b;color:#e6edf6}
html[data-bs-theme=dark] .hlc-admin button:disabled{opacity:.5}
#hostimor-livechat[data-mode=dark] .hlc-avatar{color:color-mix(in srgb,var(--hlc-accent) 45%,#e6edf6)}
#hostimor-livechat[data-mode=dark] button:not(.hlc-primary):not(.hlc-launcher):not(:disabled):hover{background:#30445b;color:#e6edf6}
#hostimor-livechat[data-mode=dark] [data-new]{background:var(--hlc-accent);border-color:var(--hlc-accent);color:var(--hlc-accent-ink,#fff)}
#hostimor-livechat[data-mode=dark] [data-new]:hover{background:var(--hlc-accent);color:var(--hlc-accent-ink,#fff);filter:brightness(1.08)}
#hostimor-livechat[data-mode=dark] .hlc-image-thumb,html[data-bs-theme=dark] .hlc-admin .hlc-image-thumb{background:#243248}
.hlc-file-preview[data-mode=dark] a{color:#b9d7ff}
#hostimor-livechat[data-mode=dark] .hlc-attachment,html[data-bs-theme=dark] .hlc-admin .hlc-attachment{background:#243248!important;color:#e6edf6!important;border-color:#526178!important}
#hostimor-livechat[data-mode=dark] .hlc-loading button{background:#243248;color:#e6edf6;border-color:#354154}
#hostimor-livechat[data-mode=dark] .hlc-connection,html[data-bs-theme=dark] .hlc-admin .hlc-error{background:#3b3225;color:#edd3a3;border-color:#615034}
/* One control rhythm for claiming, replying and transcript actions. */
.hlc-admin .hlc-primary{background:var(--wcp-brand-primary,var(--custom-primary,#095174));border-color:var(--wcp-brand-primary,var(--custom-primary,#095174));color:#fff;font-weight:600}
.hlc-admin .hlc-primary:not(:disabled):hover{background:var(--wcp-brand-primary,var(--custom-primary,#095174));filter:brightness(1.1)}
.hlc-admin .hlc-thread-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 12px;font-size:12px;font-weight:500;border-radius:10px}
.hlc-admin .hlc-thread-actions .hlc-primary{font-weight:600}
.hlc-admin .hlc-thread-actions svg,.hlc-admin [data-export] svg{width:18px;height:18px;flex:none}
.hlc-admin .hlc-empty-icon svg{width:28px;height:28px}
.hlc-admin .hlc-chat-actions{align-items:center;gap:12px;padding-bottom:14px}
.hlc-admin .hlc-chat-actions [data-attach],.hlc-admin .hlc-chat-actions [data-export]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 12px;font-size:12px;line-height:1.5;border:1px solid var(--hlc-border);border-radius:10px;white-space:nowrap}
.hlc-admin [data-claim-help]{font-size:11px;line-height:1.6}
.hlc-admin .hlc-compose-shell button{width:84px;padding:8px 12px;font-weight:600;box-shadow:none}
.hlc-admin .hlc-primary:disabled{background:#e6edf3;border-color:#d4dfe9;color:#7a899b;opacity:1}
html[data-bs-theme=dark] .hlc-admin .hlc-primary{background:var(--wcp-brand-primary,var(--custom-primary,#095174));border-color:#31718e;color:#fff}
html[data-bs-theme=dark] .hlc-admin .hlc-primary:disabled{background:#294055;border-color:#3d526a;color:#a5b2c5;opacity:1}
html[data-bs-theme=dark] .hlc-admin .hlc-presence-live{color:#7fd5b7}
html[data-bs-theme=dark] .hlc-admin .hlc-profile-avatar{border-color:#526178}
@container(max-width:500px){.hlc-admin [data-claim-help]{flex-basis:100%;order:3}.hlc-admin .hlc-chat-actions [data-attach],.hlc-admin .hlc-chat-actions [data-export]{flex:1;margin-left:0}}
.hlc-admin .hlc-settings{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px}.hlc-settings svg{width:16px;height:16px;flex:none}
.hlc-admin .hlc-admin-toolbar [data-connection]:empty{display:none}
.hlc-management-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:0;color:var(--bs-body-color,#17243a)}
.hlc-management-nav a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;line-height:1.4;font-size:13px;text-decoration:none;border:1px solid var(--bs-border-color,#dce4ef);border-radius:8px;background:var(--bs-body-bg,#fff);color:inherit}
.hlc-management-nav a[aria-current=page]{background:var(--bs-tertiary-bg,#eef3f7);border-color:var(--bs-primary,#075373);color:var(--bs-primary,#075373);font-weight:600}
.hlc-management-nav a:focus-visible{outline:2px solid var(--bs-primary,#075373);outline-offset:2px}
main .container-lg:has(.hlc-management-nav[data-management-page="settings"])>.wcp-tabstrip{display:none}
.hlc-management-shell{padding:32px;border:1px solid var(--bs-border-color,#dce4ef);border-radius:12px;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#17243a);min-width:0}
.hlc-management-brand{display:flex;align-items:center;gap:16px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--bs-border-color,#dce4ef)}
main:has(.hlc-management-shell) .main-content-title>h1{display:none}
.hlc-management-brand h1{font-size:22px;line-height:1.35;margin:0 0 8px;color:inherit}.hlc-management-brand p{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;font-size:13px;color:var(--bs-secondary-color,#748397)}
.hlc-management-version{border:1px solid var(--bs-primary,#075373);color:var(--bs-primary,#075373);border-radius:8px;padding:3px 8px;line-height:1.3}
[data-hlc-ai-settings] .row[hidden]{display:none!important}
[data-ai-provider="openai"] .row:has([name="fields[ai_key_gemini]"]),[data-ai-provider="openai"] .row:has([name="fields[ai_key_claude]"]),[data-ai-provider="gemini"] .row:has([name="fields[ai_key_openai]"]),[data-ai-provider="gemini"] .row:has([name="fields[ai_key_claude]"]),[data-ai-provider="claude"] .row:has([name="fields[ai_key_openai]"]),[data-ai-provider="claude"] .row:has([name="fields[ai_key_gemini]"]){display:none!important}
@media(max-width:600px){.hlc-management-shell{padding:24px 20px}.hlc-management-brand{flex-direction:column;text-align:center;gap:12px;padding-bottom:24px;margin-bottom:24px}.hlc-management-brand p{justify-content:center}.hlc-management-brand h1{font-size:20px}.hlc-management-shell .hlc-management-nav{margin-bottom:24px}.hlc-management-shell .hlc-management-card{padding:16px}}
.hlc-management-card{padding:24px;border:1px solid var(--bs-border-color,#dce4ef);border-radius:12px;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#17243a);font-size:14px;line-height:1.65}
.hlc-management-card h2{font-size:20px;margin:0 0 8px;color:inherit}.hlc-management-card h3{font-size:16px;color:inherit}.hlc-management-card header p,.hlc-management-card form p{color:var(--bs-secondary-color,#748397)}
.hlc-license-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.hlc-license-summary>div{padding:16px;border:1px solid var(--bs-border-color,#dce4ef);border-radius:8px;background:var(--bs-tertiary-bg,#f5f7fa)}
.hlc-license-summary span,.hlc-license-summary strong{display:block}.hlc-license-summary span{font-size:12px;color:var(--bs-secondary-color,#748397);margin-bottom:4px}
.hlc-license-entry{display:flex;gap:12px;align-items:stretch;margin:8px 0}.hlc-license-entry input{min-width:0;flex:1;height:42px;padding:10px 12px;border:1px solid var(--bs-border-color,#dce4ef);border-radius:8px;background:var(--bs-body-bg,#fff);color:inherit;font-size:16px}.hlc-license-entry button{flex:none}
.hlc-license-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.hlc-management-card [data-distribution-status]:empty{display:none}
@media(max-width:600px){.hlc-management-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hlc-management-nav a{padding:10px 8px;font-size:12px;min-width:0}.hlc-management-card{padding:16px}.hlc-license-summary{grid-template-columns:1fr;gap:8px}.hlc-license-summary>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px}.hlc-license-summary span{margin:0}.hlc-license-entry{flex-direction:column}.hlc-license-entry button,.hlc-license-actions .btn{width:100%;min-height:42px}}
@container(max-width:520px){
 .hlc-admin .hlc-admin-heading{padding:16px;align-items:center;flex-wrap:nowrap;gap:12px}.hlc-admin .hlc-admin-heading h2{font-size:16px;line-height:1.4;margin:0}.hlc-admin .hlc-settings{padding:8px 10px}
 .hlc-admin .hlc-admin-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px 16px}.hlc-admin-toolbar label{white-space:nowrap;font-size:12px;min-width:0}.hlc-admin-toolbar .hlc-hours-badge{grid-column:1/-1;justify-self:start;margin:0}.hlc-admin-toolbar [data-connection]{grid-column:1/-1;max-width:100%;margin:0}
 .hlc-admin .hlc-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:8px}.hlc-admin .hlc-tabs button{justify-content:space-between!important;padding:10px 12px!important;min-height:44px;font-size:12px;white-space:nowrap}.hlc-admin .hlc-tabs button b{min-width:22px;text-align:center;flex:none}
 .hlc-admin .hlc-workspace{height:clamp(340px,calc(100dvh - 330px),560px)}.hlc-admin.hlc-thread-open .hlc-workspace{height:clamp(340px,calc(100dvh - 190px),660px)}
 .hlc-admin .hlc-pagination{padding:10px 16px}.hlc-admin .hlc-admin-footer{padding:12px 16px;gap:8px}.hlc-admin .hlc-history-help{padding-left:16px;padding-right:16px}
}
@media(max-width:600px){.hlc-management-nav a:last-child{grid-column:1/-1}}
.hlc-monitor{margin-bottom:16px}.hlc-provider-limits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.hlc-provider-limits>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--bs-border-color,#dce4ef);border-radius:8px}.hlc-monitor [data-monitor-status]:empty{display:none}
@media(max-width:600px){.hlc-provider-limits{grid-template-columns:1fr}}

/* Accessible public links in plain-text support responses. */
.hlc .hlc-message p a{color:inherit!important;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:anywhere}.hlc .hlc-message p a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* Keep WISECP's desktop sidebar padding out of this addon's narrow screens. */
@media(max-width:767px){main.main-content:has(.hlc-management-nav),main.main-content:has(#hostimor-livechat-admin){padding-left:12px!important;padding-right:12px!important;width:100%!important;min-width:0!important;margin-left:0!important}main.main-content:has(.hlc-management-nav) .main-content-data,main.main-content:has(#hostimor-livechat-admin) .main-content-data{min-width:0;width:100%}main.main-content:has(.hlc-management-nav) .main-content-data-con{min-width:0;width:100%}}
