/* Site-wide AI manager chat. */
.lc-chat-root{position:fixed;right:22px;bottom:22px;z-index:110;font-family:Jost,Arial,sans-serif;--coral:#df805e;--ink:#142a2f;--ink-3:#55706f;--paper:#f7f4ed;--paper-2:#ebe5d8;--line:rgba(20,42,47,.14);--sun:#f3c75b}
.lc-chat-toggle{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 20px;border:0;background:var(--coral);color:#fff;box-shadow:0 14px 34px rgba(15,39,41,.25);font:600 14px/1 Jost,Arial,sans-serif;cursor:pointer}
.lc-chat-toggle:hover{background:#cf6f4f}
.lc-chat-toggle svg{width:22px;height:22px;flex:0 0 22px}
.lc-chat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--sun);color:var(--ink);font-size:11px}
.lc-chat-panel{position:fixed;right:22px;bottom:88px;display:flex;flex-direction:column;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 120px));background:var(--paper);border:1px solid var(--line);box-shadow:0 26px 70px rgba(15,39,41,.28);overflow:hidden}
.lc-chat-panel[hidden]{display:none}
.lc-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 15px;background:var(--ink);color:#fff}
.lc-chat-head strong{display:block;font-size:17px;line-height:1.2}
.lc-chat-head span{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.66);font-size:11px}
.lc-chat-dot{width:7px;height:7px;border-radius:50%;background:#5fd39a;box-shadow:0 0 0 3px rgba(95,211,154,.18)}
.lc-chat-close{width:36px;height:36px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.lc-chat-close:hover{background:rgba(255,255,255,.1)}
.lc-chat-body{display:flex;flex:1;flex-direction:column;min-height:0}
.lc-chat-gate{display:flex;flex:1;flex-direction:column;justify-content:center;padding:24px 18px;overflow:auto}
.lc-chat-gate h3{margin:0 0 8px;font-size:24px;line-height:1.05;color:var(--ink)}
.lc-chat-gate p{margin:0 0 16px;color:var(--ink-3);font-size:13px;line-height:1.5}
.lc-chat-field{display:flex;flex-direction:column;gap:5px;margin-bottom:11px}
.lc-chat-field span{color:var(--ink-3);font-size:11px}
.lc-chat-field input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:16px;outline:0}
.lc-chat-field input:focus{border-color:var(--coral)}
.lc-chat-consent{display:flex;align-items:flex-start;gap:8px;margin:4px 0 14px;color:var(--ink-3);font-size:11px;line-height:1.45}
.lc-chat-consent input{margin-top:2px;accent-color:var(--coral)}
.lc-chat-consent a{color:var(--coral);text-decoration:underline}
.lc-chat-primary{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:0;background:var(--coral);color:#fff;font:600 14px/1 Jost,Arial,sans-serif;cursor:pointer}
.lc-chat-primary:disabled{opacity:.55;cursor:default}
.lc-chat-note{margin:10px 0 0;color:var(--ink-3);font-size:10px;line-height:1.45}
.lc-chat-gate .lc-chat-error{min-height:16px;margin:0 0 8px;color:#b3452c;font-size:11px}
.lc-chat-gate .lc-chat-error:empty{display:none}
.lc-chat-thread{flex:1;overflow:auto;padding:16px 14px 8px;background:var(--paper)}
.lc-chat-msg{display:flex;flex-direction:column;gap:3px;margin-bottom:12px;max-width:92%}
.lc-chat-msg--client{align-self:flex-end;align-items:flex-end}
.lc-chat-msg--ai,.lc-chat-msg--manager,.lc-chat-msg--system{align-self:flex-start}
.lc-chat-bubble{padding:11px 13px;font-size:13px;line-height:1.5;white-space:pre-line;word-break:break-word}
.lc-chat-msg--client .lc-chat-bubble{background:var(--ink);color:#fff}
.lc-chat-msg--ai .lc-chat-bubble{background:#fff;border:1px solid var(--line);color:var(--ink)}
.lc-chat-msg--manager .lc-chat-bubble{background:var(--sun);color:var(--ink);border:1px solid rgba(20,42,47,.12)}
.lc-chat-msg--system .lc-chat-bubble{background:var(--paper-2);color:var(--ink-3);font-size:11px}
.lc-chat-msg small{color:var(--ink-3);font-size:9px}
.lc-chat-typing{display:flex;gap:4px;align-items:center;padding:12px 14px;background:#fff;border:1px solid var(--line);align-self:flex-start;margin-bottom:12px}
.lc-chat-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);animation:lc-blink 1.2s infinite}
.lc-chat-typing i:nth-child(2){animation-delay:.15s}
.lc-chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes lc-blink{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
.lc-chat-cards{display:flex;flex-direction:column;gap:8px;margin:2px 0 0;width:100%}
.lc-chat-card{display:grid;grid-template-columns:78px 1fr;gap:10px;padding:8px;border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none}
.lc-chat-card img{width:78px;height:78px;object-fit:cover;background:var(--paper-2)}
.lc-chat-card strong{display:-webkit-box;overflow:hidden;font-size:12px;line-height:1.25;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lc-chat-card span{display:block;color:var(--ink-3);font-size:10px;line-height:1.35}
.lc-chat-card b{display:block;margin-top:5px;color:var(--ink);font-size:16px}
.lc-chat-card em{color:var(--coral);font-size:10px;font-style:normal;font-weight:700}
.lc-chat-chips{display:flex;flex-wrap:wrap;gap:7px;padding:8px 14px 0;background:var(--paper)}.lc-chat-chip{min-height:34px;padding:0 11px;border:1px solid var(--line);background:#fff;color:var(--ink-3);font:500 11px/32px Jost,Arial,sans-serif;cursor:pointer}
.lc-chat-chip:hover{border-color:var(--coral);color:var(--coral)}
.lc-chat-compose{display:flex;gap:8px;align-items:flex-end;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.lc-chat-compose textarea{flex:1;min-height:44px;max-height:110px;padding:11px 12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:inherit;font-size:16px;line-height:1.35;resize:none;outline:0}
.lc-chat-compose textarea:focus{border-color:var(--coral)}
.lc-chat-send{flex:0 0 46px;width:46px;height:46px;border:0;background:var(--coral);color:#fff;font-size:20px;cursor:pointer}
.lc-chat-send:disabled{opacity:.5}
.lc-chat-status{margin:0;padding:7px 14px;background:var(--sun);color:var(--ink);font-size:11px;line-height:1.35}
.lc-chat-status[hidden]{display:none}
.lc-chat-gate[hidden],.lc-chat-thread[hidden],.lc-chat-chips[hidden],.lc-chat-compose[hidden]{display:none!important}
.lc-chat-open{overflow:hidden}
@media(max-width:860px){
  .lc-chat-root{right:12px;bottom:78px}
  .lc-chat-toggle{min-height:48px;padding:0 14px;font-size:13px}
  .lc-chat-panel{right:0;bottom:0;width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0}
  .lc-chat-head{padding:16px 14px 12px}
  .lc-chat-gate{padding:18px 14px}
  .lc-chat-thread{padding:12px 12px 6px}
  .lc-chat-chips{padding:8px 12px 0;flex-wrap:nowrap;overflow-x:auto}
  .lc-chat-chip{flex:0 0 auto;min-height:38px;line-height:36px}
  .lc-chat-compose{padding:8px 12px calc(10px + env(safe-area-inset-bottom))}
}
