/* ============================================================
   Letur Group — live chat with the team (js/live-chat.js)
   Same calm surface as the assistant window (css/assistant.css,
   «Light refresh»): hairlines, one quiet type scale (17/15/13/12),
   grey team bubbles and taupe visitor bubbles, frosted panels.
   The greeting pops up just above the launcher; its offset comes from JS.
   ============================================================ */
.lc,.lc-card,.lc-launcher-badge{
  --lc-ink:#1d1d1f; --lc-sec:rgba(60,60,67,.6); --lc-ter:rgba(60,60,67,.45);
  --lc-taupe:#7d6e5e; --lc-taupe-2:#6b5e50; --lc-bad:#d1453b;
  --lc-hair:rgba(60,60,67,.14); --lc-fill:rgba(118,118,128,.12); --lc-bubble:#e9e9eb;
}
.lc,.lc *{box-sizing:border-box}
.lc{font-family:var(--sans,"Manrope",system-ui,sans-serif);color:var(--lc-ink);-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
.lc [hidden]{display:none!important}
.lc.is-behind .lc-bubble{display:none}

/* ---- unread badge on the launcher (one launcher for the assistant and the chat) ---- */
.lc-launcher-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--lc-bad);color:#fff;font:600 11px/18px var(--sans,system-ui);text-align:center;box-shadow:0 0 0 2px #fff;pointer-events:none}
.lc-launcher-badge[hidden]{display:none}

/* ---- greeting / new-message bubble ---- */
.lc-bubble{position:fixed;right:var(--lc-right,16px);bottom:var(--lc-bottom,80px);z-index:91;width:min(300px,calc(100vw - 32px));padding:12px 34px 12px 12px;border:.5px solid rgba(0,0,0,.08);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 18px 44px -18px rgba(0,0,0,.3),0 2px 6px -3px rgba(0,0,0,.08);cursor:pointer;animation:lc-pop .35s cubic-bezier(.22,.61,.36,1)}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.lc-bubble{background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(24px) saturate(1.8);backdrop-filter:blur(24px) saturate(1.8)}}
.lc-bubble__body{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:start}
.lc-bubble .lc-avatar{width:36px;height:36px}
.lc-bubble__text{margin:0;font-size:14px;line-height:1.4;color:var(--lc-ink)}
.lc-bubble__meta{margin:5px 0 0;font-size:12px;color:var(--lc-sec)}
.lc-bubble__close{position:absolute;top:8px;right:8px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:var(--lc-fill);color:var(--lc-sec);cursor:pointer}
.lc-bubble__close:hover{background:rgba(118,118,128,.2)}
.lc-bubble__close svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

/* ---- avatar ---- */
.lc-avatar{flex:0 0 auto;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#f2f2f7;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 .5px var(--lc-hair)}
.lc-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.lc-avatar--mark{background:#fff}
.lc-avatar--mark img{width:62%;height:62%;object-fit:contain}
.lc-avatar--sm{width:32px;height:32px}

/* ---- panel ---- */
.lc-panel{position:fixed;right:16px;bottom:16px;z-index:96;width:min(370px,calc(100vw - 32px));height:min(600px,calc(100svh - 32px));display:flex;flex-direction:column;background:rgba(250,250,252,.96);border:.5px solid rgba(0,0,0,.08);border-radius:22px;box-shadow:0 24px 60px -22px rgba(0,0,0,.28),0 2px 8px -4px rgba(0,0,0,.08);overflow:hidden;animation:lc-pop .35s cubic-bezier(.22,.61,.36,1)}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.lc-panel{background:rgba(250,250,252,.9);-webkit-backdrop-filter:blur(30px) saturate(1.8);backdrop-filter:blur(30px) saturate(1.8)}}
.lc-head{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 10px;border-bottom:.5px solid var(--lc-hair);flex-shrink:0}
.lc-head__text{min-width:0;flex:1}
.lc-head__title{margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--lc-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lc-head__status{margin:1px 0 0;font-size:12px;line-height:1.3;color:var(--lc-sec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lc-head__status.is-online::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#34c759;vertical-align:1px}
.lc-head__back{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--lc-taupe);cursor:pointer}
.lc-head__back:hover{background:var(--lc-fill)}
.lc-head__back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lc-head__close{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:var(--lc-fill);color:var(--lc-sec);cursor:pointer}
.lc-head__close:hover{background:rgba(118,118,128,.2);color:var(--lc-ink)}
.lc-head__close svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

.lc-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px 8px;display:flex;flex-direction:column;gap:6px;background:transparent}
.lc-msg{max-width:80%;display:flex;flex-direction:column;gap:2px;margin-top:4px}
.lc-msg--team{align-self:flex-start}
.lc-msg--me{align-self:flex-end;align-items:flex-end}
.lc-msg__text{padding:8px 13px;border-radius:18px;font-size:15px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.lc-msg--team .lc-msg__text{background:var(--lc-bubble);color:var(--lc-ink);border-bottom-left-radius:6px}
.lc-msg--me .lc-msg__text{background:var(--lc-taupe);color:#fff;border-bottom-right-radius:6px}
.lc-msg__text a{color:inherit;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.lc-msg__meta{padding:0 6px;font-size:11px;color:var(--lc-ter)}
.lc-msg.is-pending .lc-msg__text{opacity:.55}
.lc-msg.is-failed{cursor:pointer}
.lc-msg.is-failed .lc-msg__text{background:#fff;color:var(--lc-ink);box-shadow:inset 0 0 0 1px var(--lc-bad)}
.lc-msg.is-failed .lc-msg__meta{color:var(--lc-bad)}
.lc-note{align-self:center;max-width:90%;margin:6px 0;padding:0 8px;font-size:12px;line-height:1.4;color:var(--lc-sec);text-align:center}

/* ---- intro line at the top of the conversation ---- */
.lc-intro{align-self:center;max-width:88%;margin:0 0 8px;font-size:12.5px;line-height:1.4;color:var(--lc-sec);text-align:center}

/* ---- contact form inside the conversation ---- */
.lc-contact{align-self:stretch;margin:8px 0 4px;padding:14px;border-radius:16px;background:#fff;box-shadow:0 0 0 .5px var(--lc-hair),0 1px 2px rgba(0,0,0,.04);display:flex;flex-direction:column;gap:10px}
.lc-contact__lead{margin:0;font-size:14px;line-height:1.4;color:var(--lc-ink)}
.lc-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--lc-sec)}
.lc-field input{width:100%;min-height:40px;padding:8px 12px;border:0;border-radius:10px;font:inherit;font-size:15px;color:var(--lc-ink);background:var(--lc-fill)}
.lc-field input:focus,.lc-input:focus{outline:none;background:rgba(118,118,128,.16);box-shadow:0 0 0 3px rgba(125,110,94,.18)}
.lc-consent{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.4;color:var(--lc-sec);cursor:pointer}
.lc-consent input{width:16px;height:16px;margin:1px 0 0;accent-color:var(--lc-taupe)}
.lc-contact__err{margin:0;font-size:12.5px;color:var(--lc-bad)}
.lc-contact__actions{display:flex;gap:8px;flex-wrap:wrap}
.lc-btn{min-height:36px;padding:7px 16px;border:0;border-radius:999px;background:var(--lc-taupe);color:#fff;font:500 14px/1.2 var(--sans,system-ui);cursor:pointer}
.lc-btn:hover{background:var(--lc-taupe-2)}
.lc-btn:disabled{opacity:.5;cursor:default}
.lc-btn--ghost{background:var(--lc-fill);color:var(--lc-ink)}
.lc-btn--ghost:hover{background:rgba(118,118,128,.2)}

/* ---- composer ---- */
.lc-composer{display:flex;align-items:flex-end;gap:8px;padding:8px 10px 6px;border-top:.5px solid var(--lc-hair);background:transparent;flex-shrink:0}
.lc-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.lc-input{flex:1;min-height:36px;max-height:120px;padding:8px 14px;border:0;border-radius:18px;font:inherit;font-size:15px;line-height:1.35;color:var(--lc-ink);resize:none;background:var(--lc-fill)}
.lc-input::placeholder{color:rgba(60,60,67,.5)}
.lc-send{width:34px;height:34px;flex:0 0 34px;margin-bottom:1px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:var(--lc-taupe);color:#fff;cursor:pointer}
.lc-send:hover{background:var(--lc-taupe-2)}
.lc-send svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lc-legal{margin:0;padding:0 16px 10px;font-size:11px;line-height:1.4;color:var(--lc-ter);background:transparent;flex-shrink:0}
.lc-legal a{color:inherit}

/* ---- card on property and project pages ---- */
.lc-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:2px 14px;align-items:start;margin:20px 0 0;padding:16px 18px;border-radius:18px;background:#f5f5f7;color:var(--lc-ink)}
.lc-card[hidden]{display:none}
.lc-card .lc-avatar{grid-row:span 2;width:40px;height:40px}
.lc-card__title{margin:0;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.005em}
.lc-card__sub{margin:3px 0 0;font-size:14px;line-height:1.45;color:var(--lc-sec)}
.lc-card__btn{grid-column:2;justify-self:start;margin-top:10px}

@keyframes lc-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lc-panel,.lc-bubble{animation:none}}

/* ---- phones: full-height sheet ---- */
@media (max-width:640px){
  .lc-panel{left:8px;right:8px;top:8px;bottom:8px;width:auto;height:auto;border-radius:20px}
  .lc-head{padding-top:max(10px,env(safe-area-inset-top))}
  .lc-legal{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .lc-input{font-size:16px}
  html.lc-open,html.lc-open body{overflow:hidden}
  .lc-bubble{width:min(280px,calc(100vw - 32px))}
}
@media print{.lc,.lc-card,.lc-launcher-badge{display:none!important}}

/* Plum Guide–style pass (07.10.2026): the same white sheet as the assistant window. */
.lc-panel{background:#fff}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.lc-panel{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
.lc{--lc-bubble:#f2f2f4}
.lc-head{padding:12px 14px 12px 10px}
.lc-head__title{font-size:16px;font-weight:500;letter-spacing:-.01em}
.lc-head__close{background:transparent}
.lc-head__close:hover{background:var(--lc-fill)}
.lc-intro{font-size:13px;margin-bottom:12px}
.lc-input{background:#fff;box-shadow:inset 0 0 0 1px rgba(60,60,67,.2)}
.lc-input:focus{background:#fff;box-shadow:inset 0 0 0 1px rgba(125,110,94,.6)}
.lc-contact{box-shadow:none;border-top:.5px solid var(--lc-hair);border-radius:0;padding:16px 2px 4px;background:transparent}
.lc-field input{background:#fff;box-shadow:inset 0 0 0 1px rgba(60,60,67,.2)}
.lc-field input:focus{background:#fff;box-shadow:inset 0 0 0 1px rgba(125,110,94,.6)}
.lc-btn{border-radius:10px}
.lc-btn--ghost{background:#fff;box-shadow:inset 0 0 0 1px rgba(60,60,67,.2)}
.lc-card{background:transparent;border-top:.5px solid var(--lc-hair);border-bottom:.5px solid var(--lc-hair);border-radius:0;padding:18px 0}
.lc-card__title{font-size:18px;font-weight:300;letter-spacing:-.015em}

/* Conversation polish (08.10.2026): the same bubbles as the assistant and a quiet send button. */
.lc-msg__text{border-radius:14px}
.lc-msg--team .lc-msg__text{border-bottom-left-radius:4px}
.lc-msg--me .lc-msg__text{background:#2c2c2e;border-bottom-right-radius:4px}
.lc-send{transition:background .2s ease}
.lc-send.is-empty{background:rgba(118,118,128,.16);color:rgba(60,60,67,.45)}

/* Warm, calm pass (08.10.2026): the same warm sheet as the assistant window. */
.lc-panel,.lc-panel .lc-head{background:#faf7f2}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.lc-panel{background:#faf7f2}}
.lc{--lc-bubble:#f0ebe3;--lc-sec:#6b665f;--lc-hair:rgba(60,52,40,.13)}
.lc-composer,.lc-legal{background:#faf7f2}

/* ============================================================
   Final design (08.10.2026): the chat with the consultant is the same
   window as the assistant — size, system font, white sheet, grey bubbles,
   graphite visitor bubbles, the rounded message field, light pill buttons.
   ============================================================ */
.lc{--lc-ink:#1f2a30;--lc-sec:#6c6f74;--lc-ter:#8a8e93;--lc-hair:#ededed;--lc-bubble:#f5f5f5;--lc-fill:#f5f5f5;
  --lc-font:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-family:var(--lc-font);letter-spacing:0}
.lc button,.lc input,.lc textarea,.lc a{font-family:var(--lc-font)}
@media(min-width:561px){
  .lc-panel{left:auto;top:auto;right:1rem;bottom:1rem;width:min(400px,calc(100vw - 2rem));height:min(704px,calc(100svh - 2.5rem));border:0;border-radius:24px;box-shadow:0 5px 40px rgba(9,14,21,.16)}
}
@media(max-width:560px){
  .lc-panel{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none}
}
.lc-panel,.lc-panel .lc-head,.lc-composer,.lc-legal{background:#fff}
.lc-head{gap:10px;padding:12px 10px 12px 10px;border-bottom:0;box-shadow:0 1px 0 var(--lc-hair)}
.lc-head__title{font-size:14px;font-weight:600;line-height:1.15;letter-spacing:0;color:var(--lc-ink)}
.lc-head__status{margin-top:2px;font-size:12.7px;color:var(--lc-sec)}
.lc-head__back,.lc-head__close{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:transparent;color:var(--lc-sec)}
.lc-head__back:hover,.lc-head__close:hover{background:rgba(31,42,48,.07);color:var(--lc-ink)}
.lc-head__back svg{width:16px;height:16px;stroke-width:1.8}
.lc-head__close svg{width:16px;height:16px;stroke-width:1.8}
.lc-body{padding:16px 16px 10px;gap:8px}
.lc-intro{font-size:13px;line-height:21px;color:var(--lc-sec)}
.lc-msg{max-width:312px}
.lc-msg__text{padding:12px 16px;border-radius:20px;font-size:14px;line-height:1.4}
.lc-msg--team .lc-msg__text{background:var(--lc-bubble);border-radius:20px}
.lc-msg--me .lc-msg__text{background:#1f2a30;border-radius:20px}
.lc-msg__meta{font-size:12px;color:var(--lc-sec)}
/* The message field: one rounded line, the send button inside */
.lc-composer{align-items:center;gap:8px;margin:4px 16px 0;padding:3px 3px 3px 16px;border:1px solid #dcdcdc;border-radius:28px;transition:border-color .2s,box-shadow .2s}
.lc-composer:focus-within{border-color:#9aa1a6;box-shadow:0 0 0 3px rgba(31,42,48,.08)}
.lc-input,.lc-input:focus{min-height:40px;padding:10px 0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px;line-height:1.35}
.lc-send{width:36px;height:36px;flex:0 0 36px;margin:0;background:#1f2a30}
.lc-send:hover{background:#2d3b43}
.lc-send.is-empty{background:rgba(31,42,48,.08);color:rgba(31,42,48,.4)}
.lc-legal{padding:8px 18px 14px;font-size:11.5px;color:var(--lc-ter)}
/* Leaving contacts in the chat: the same compact pills */
.lc-contact__lead{font-size:14px}
.lc-field input,.lc-field input:focus{border-radius:12px;background:#fff;font-size:14px}
.lc-field input{box-shadow:inset 0 0 0 1px #dcdcdc}
.lc-field input:focus{box-shadow:inset 0 0 0 1px #9aa1a6,0 0 0 3px rgba(31,42,48,.08)}
.lc-contact__actions{gap:8px}
.lc-btn,.lc-btn--ghost{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:34px;padding:0 16px;border:1px solid #e3e3e3;border-radius:999px;background:#f5f5f5;color:var(--lc-ink);box-shadow:none;font:400 14px/1 var(--lc-font)}
.lc-btn:hover,.lc-btn--ghost:hover{background:#ebebeb;border-color:#c9c9c9}
.lc-btn--ghost{background:#fff}
.lc-btn--ghost:hover{background:#fafafa}
.lc-btn:disabled{opacity:.45}
.lc-consent input{accent-color:#1f2a30}
@media(max-width:560px){.lc-head{padding-top:max(12px,env(safe-area-inset-top))}.lc-btn,.lc-btn--ghost{min-height:38px}.lc-composer{margin-bottom:0}}

/* The site draws a 2px outline on every :focus-visible element (body.pg :focus-visible); the message
   field has its own ring on the rounded line around it. */
.lc .lc-input,.lc .lc-input:focus,.lc .lc-input:focus-visible{outline:0;outline-offset:0}
