/* Fold House – чат асистент */
.cb{position:relative;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#1c1b1e;border:2px solid #F28C28;box-shadow:0 8px 24px #0008;cursor:pointer;padding:0}
.cb.solo{position:fixed;right:14px;bottom:14px;z-index:45}
.cb svg{width:24px;height:24px;fill:#F28C28}
.cb .cdot{position:absolute;top:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#F28C28;border:2px solid #0d0d0f;animation:cPulse 2s ease-in-out infinite}
.cb.seen .cdot{display:none}
@keyframes cPulse{0%,100%{box-shadow:0 0 0 0 #f28c2899}50%{box-shadow:0 0 0 7px #f28c2800}}
.ctease{position:absolute;right:62px;top:50%;white-space:nowrap;background:#fff;color:#160c02;font-family:Comfortaa,sans-serif;font-weight:700;font-size:13.5px;-webkit-text-stroke:.35px currentColor;paint-order:stroke fill;padding:9px 14px;border-radius:16px;box-shadow:0 10px 30px #0009;opacity:0;transform:translate(10px,-50%) scale(.95);transition:.3s;pointer-events:none}
.cb.tease .ctease{opacity:1;transform:translate(0,-50%)}

.cpanel{position:fixed;z-index:60;left:0;right:0;bottom:0;height:min(88dvh,680px);display:flex;flex-direction:column;background:#141317;color:#f4f2ee;border:1px solid #ffffff1f;border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -10px 40px #000c;font-family:"Montserrat Alternates",system-ui,sans-serif;opacity:0;transform:translateY(24px);transition:opacity .25s,transform .25s}
.cpanel.on{opacity:1;transform:none}
.cpanel[hidden]{display:none}
.cpanel .chd{margin:0;position:static;background:none;display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;border-bottom:1px solid #ffffff14}
.cav{width:38px;height:38px;border-radius:50%;background:#1c1b1e;border:1.5px solid #F28C28;display:grid;place-items:center;flex:none}
.cav img{width:24px;height:auto}
.chd div{flex:1;min-width:0}
.chd b{display:block;font-family:Nunito,sans-serif;font-weight:900;font-size:17px}
.chd small{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#9a978f}
.chd small i{width:7px;height:7px;border-radius:50%;background:#3ddc84}
.ccall,.cx{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid #ffffff22;background:none;color:#f4f2ee;font-size:17px;cursor:pointer;flex:none}
.ccall{color:#F28C28;border-color:#F28C28}
.clog{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.cm{max-width:86%;padding:10px 13px;border-radius:18px;font-size:14.5px;line-height:1.45;word-wrap:break-word}
.cm.a{align-self:flex-start;background:#1c1b1ed9;border:1px solid #ffffff1f;border-bottom-left-radius:6px}
.cm.u{align-self:flex-end;background:#F28C28;color:#160c02;border-bottom-right-radius:6px;font-weight:600}
.cm a{color:#F28C28;font-weight:700}
.cm.u a{color:#160c02;text-decoration:underline}
.cm.err{border-color:#f28c2866}
.cm.card{align-self:stretch;max-width:none;background:#0f2a1a;border:1px solid #3ddc8455;font-size:13px}
.cm.card pre{margin-top:6px;white-space:pre-wrap;font-family:inherit;color:#d9f5e3}
.cm.typing{display:flex;gap:5px;padding:14px 15px}
.cm.typing i{width:7px;height:7px;border-radius:50%;background:#9a978f;animation:cTy 1s infinite}
.cm.typing i:nth-child(2){animation-delay:.15s}.cm.typing i:nth-child(3){animation-delay:.3s}
@keyframes cTy{0%,100%{opacity:.3;transform:none}50%{opacity:1;transform:translateY(-3px)}}
.cchips{display:flex;gap:8px;overflow-x:auto;padding:0 12px 10px;scrollbar-width:none}
.cchips:empty{display:none}
.cchips button{flex:none;font-family:Comfortaa,sans-serif;font-weight:700;font-size:13px;-webkit-text-stroke:.35px currentColor;paint-order:stroke fill;color:#F28C28;background:none;border:1.5px solid #F28C28;border-radius:999px;padding:9px 14px;cursor:pointer}
.cin{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid #ffffff14;margin:0;background:none;border-radius:0;max-width:none}
.cin textarea{flex:1;min-height:44px;max-height:110px;resize:none;font:inherit;font-size:16px;color:#f4f2ee;background:#0d0d0f;border:1px solid #ffffff22;border-radius:22px;padding:11px 15px;line-height:1.3}
.cin textarea:focus{outline:2px solid #F28C28;outline-offset:1px}
.cin button{width:44px;height:44px;border-radius:50%;border:0;background:#F28C28;display:grid;place-items:center;cursor:pointer;flex:none}
.cin button svg{width:20px;height:20px;fill:#160c02}
.cin button:disabled{opacity:.5}
.cfoot{font-size:10.5px;color:#77736b;text-align:center;padding:0 14px calc(10px + env(safe-area-inset-bottom))}
html.chat-open .bubble{display:none!important}
@media (max-width:899px){html.chat-open,html.chat-open body{overflow:hidden}html.chat-open .fab{display:none}}
@media (min-width:900px){
  .cpanel{left:auto;right:24px;bottom:24px;width:390px;height:min(620px,calc(100vh - 110px));border-radius:22px;border-bottom:1px solid #ffffff1f}
  html.chat-open .fab{opacity:0;pointer-events:none}
}
.cm.card.bad{background:#2a1408;border-color:#F28C2866}
