/* Tunç'un asistanı — sohbet balonu */
.thc{--thc-forest:#10281d;--thc-ink:#142219;--thc-paper:#f1efe7;--thc-mist:#e4e7de;--thc-accent:#d9ff53;--thc-muted:#697168;--thc-line:rgba(20,34,25,.14);
  position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:1100;font-family:"DM Sans",Arial,sans-serif;color:var(--thc-ink)}
.thc *{box-sizing:border-box}
.thc-launch{position:relative;display:flex;align-items:center;gap:12px;height:64px;padding:0 22px 0 6px;border:0;border-radius:999px;background:var(--thc-forest);color:#fff;cursor:pointer;box-shadow:0 14px 40px rgba(16,40,29,.35);font:600 13px/1 "DM Sans",Arial,sans-serif;letter-spacing:.02em;transition:transform .25s,box-shadow .25s}
.thc-launch:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(16,40,29,.42)}
.thc-launch:focus-visible,.thc button:focus-visible,.thc textarea:focus-visible,.thc a:focus-visible{outline:3px solid var(--thc-accent);outline-offset:3px}
.thc-launch-icon{display:block;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 2px var(--thc-accent)}
.thc-launch-icon img,.thc-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.thc-launch-dot{position:absolute;top:7px;left:46px;width:10px;height:10px;border-radius:50%;background:#7bd88f;border:2px solid var(--thc-forest)}
.thc.is-open .thc-launch{display:none}

.thc-panel{position:absolute;right:0;bottom:0;width:390px;height:min(620px,calc(100svh - 40px));display:flex;flex-direction:column;background:var(--thc-paper);border:1px solid var(--thc-line);box-shadow:0 30px 80px rgba(16,40,29,.35);overflow:hidden;transform-origin:bottom right;animation:thc-in .28s cubic-bezier(.2,.8,.2,1)}
.thc-panel[hidden]{display:none}
@keyframes thc-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

.thc-head{display:flex;align-items:center;gap:12px;padding:16px 14px 16px 18px;background:var(--thc-forest);color:#fff}
.thc-avatar{flex:none;display:block;width:46px;height:46px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 2px var(--thc-accent)}
.thc-title{flex:1;min-width:0}
.thc-title strong{display:block;font:600 15px/1.2 "Manrope",sans-serif}
.thc-title span{display:block;margin-top:3px;font-size:12px;color:#b6c0b4}
.thc-icon-btn{flex:none;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;font-size:22px;line-height:1}
.thc-icon-btn:hover{background:rgba(255,255,255,.1)}
.thc-icon-btn svg{width:18px;height:18px}

.thc-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px 8px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.thc-msg{max-width:88%;padding:11px 14px;font-size:14.5px;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.thc-msg p{margin:0}.thc-msg p+p,.thc-msg ul+p,.thc-msg p+ul{margin-top:8px}
.thc-msg ul{margin:0;padding-left:18px}.thc-msg li+li{margin-top:3px}
.thc-msg a{color:inherit;text-decoration:underline;text-decoration-color:#a95636;text-underline-offset:2px}
.thc-msg--bot{align-self:flex-start;background:#fff;border:1px solid var(--thc-line)}
.thc-msg--user{align-self:flex-end;background:var(--thc-forest);color:#fff}
.thc-msg--error{align-self:stretch;max-width:none;background:#f6e6de;border:1px solid #e3c2b2;color:#6d2f18;font-size:13.5px}
.thc-typing{display:inline-flex;gap:5px;align-items:center;height:20px}
.thc-typing i{width:7px;height:7px;border-radius:50%;background:#9aa597;animation:thc-dot 1.1s infinite ease-in-out}
.thc-typing i:nth-child(2){animation-delay:.15s}.thc-typing i:nth-child(3){animation-delay:.3s}
@keyframes thc-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.thc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 18px 12px}
.thc-chips[hidden]{display:none}
.thc-chip{border:1px solid var(--thc-line);background:var(--thc-mist);color:var(--thc-ink);padding:8px 12px;font:500 13px/1.3 "DM Sans",Arial,sans-serif;cursor:pointer;border-radius:999px;text-align:left}
.thc-chip:hover{background:var(--thc-accent);border-color:var(--thc-accent)}

.thc-form{display:flex;align-items:flex-end;gap:8px;padding:12px 12px 10px 14px;border-top:1px solid var(--thc-line);background:#fff}
.thc-input{flex:1;min-height:42px;max-height:130px;resize:none;border:1px solid var(--thc-line);background:var(--thc-paper);padding:10px 12px;font:15px/1.4 "DM Sans",Arial,sans-serif;color:var(--thc-ink);border-radius:0}
.thc-input::placeholder{color:#8b9288}
.thc-send{flex:none;display:grid;place-items:center;width:44px;height:42px;border:0;background:var(--thc-accent);color:var(--thc-forest);cursor:pointer}
.thc-send:disabled{opacity:.45;cursor:not-allowed}
.thc-send svg{width:18px;height:18px}
.thc-foot{padding:0 14px 10px;background:#fff;font-size:11px;line-height:1.4;color:var(--thc-muted)}
.thc-foot a{color:inherit;text-decoration:underline}
.thc-count{float:right;font-variant-numeric:tabular-nums}
.thc-count.is-over{color:#a3361b;font-weight:600}

body.menu-open .thc{display:none}
@media(max-width:560px){
  .thc{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}
  .thc-launch{height:auto;padding:4px;gap:0}
  .thc-launch-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .thc-launch-dot{left:46px;top:5px}
  .thc-launch-icon{width:56px;height:56px}
  .thc.is-open{inset:0;right:0;bottom:0}
  .thc-panel{position:fixed;inset:auto 0 0 0;width:100%;height:min(88svh,100svh);border-left:0;border-right:0;border-bottom:0}
  .thc-input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.thc-panel{animation:none}.thc-typing i{animation:none}.thc-log{scroll-behavior:auto}}
