/* Leads Seeker Client v2 — "katalog hasil jadi"
   Konsep: client ga usah mikir. Terang, oranye EzQmind, kartu besar,
   target sentuh besar, nol alat kerja. */
:root{
  --orange:#f97316; --orange-dark:#ea580c; --orange-soft:#fff3e8;
  --ink:#1c2430; --muted:#6b7686; --line:#eef0f3; --bg:#f7f7f5;
  --card:#ffffff; --green:#22a55b; --wa:#25d366; --fb:#1877f2;
  --radius:18px; --shadow:0 6px 24px rgba(28,36,48,.07);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg); color:var(--ink);
  padding-bottom:calc(104px + env(safe-area-inset-bottom));
  /* anti-copy: tidak bisa diseleksi / dipanggil menu tekan-lama */
  -webkit-touch-callout:none; -webkit-user-select:none; user-select:none;
  /* footer selalu di paling bawah layar */
  display:flex; flex-direction:column; min-height:100dvh; margin:0;
}

/* ---------- header (mirror live web EzQmind) ---------- */
.site-header{
  position:sticky; top:0; z-index:30; background:#0b2447;
  box-shadow:0 2px 14px rgba(11,36,71,.35);
}
.site-header .logo-chip{background:transparent; padding:0}
.site-header .wordmark{color:#fff}
.site-header-inner{
  max-width:560px; margin:0 auto; padding:10px 16px; position:relative;
  display:flex; align-items:center; justify-content:flex-start; gap:10px; min-height:52px;
}
.site-logo{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink)}
.logo-chip{display:inline-flex; background:#1c2430; border-radius:11px; padding:5px 9px}
.logo-chip img{height:30px; width:auto; display:block}
.logo-chip.big{padding:10px 16px; border-radius:16px}
.logo-chip.big img{height:52px}
.logo-chip.mini{padding:3px 7px; border-radius:8px; vertical-align:-7px; margin-right:7px}
.logo-chip.mini img{height:18px}
.wordmark{font-size:20px; font-weight:800; letter-spacing:-.3px}
.wordmark span{color:var(--orange)}
.header-spacer{display:none}
.lead-count{
  position:static; flex:none;
  background:var(--orange-soft); border:1px solid #ffe3c7; color:var(--orange-dark);
  padding:6px 11px; border-radius:999px; font-size:12.5px; font-weight:800; white-space:nowrap;
}
.auth-btn{
  position:absolute; right:16px; top:50%; transform:translateY(-50%);
  border:none; cursor:pointer; font-family:inherit;
  background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff;
  font-weight:800; font-size:13.5px; padding:9px 16px; border-radius:999px;
  box-shadow:0 4px 12px rgba(234,88,12,.28);
}
.auth-btn.outline{background:#fff; color:var(--orange-dark); border:1.5px solid var(--orange); box-shadow:none}
.clock-strip{
  margin:0 0 14px; padding:10px 14px;
  display:flex; justify-content:space-between; gap:10px;
  font-size:12.5px; color:var(--muted);
  background:#fff; border:1px solid var(--line); border-radius:12px;
}
.clock-time{font-weight:800; color:var(--orange-dark); font-variant-numeric:tabular-nums; white-space:nowrap}
body.locked .tabbar{display:none}
body.locked{padding-bottom:calc(104px + env(safe-area-inset-bottom))}

/* ---------- welcoming ---------- */
.welcome-title{
  font-size:24px; font-weight:800; letter-spacing:-.4px; line-height:1.25;
  background:linear-gradient(92deg,#ea580c,#f97316 55%,#f59e0b);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}

/* ---------- login ---------- */
.login-card{
  background:var(--card); border:1px solid var(--line); border-radius:22px;
  box-shadow:var(--shadow); padding:30px 22px 24px; text-align:center; margin-top:10px;
}
.login-card .welcome-title{font-size:26px; margin:16px 0 8px}
.login-sub{color:var(--muted); font-size:14px; line-height:1.6; margin:0 0 20px}
.google-btn{
  width:100%; display:flex; align-items:center; justify-content:center; gap:11px;
  background:#fff; border:1.5px solid #dadce0; border-radius:999px; cursor:pointer;
  padding:13px; font-size:15px; font-weight:700; color:#3c4043; font-family:inherit;
  box-shadow:0 2px 8px rgba(28,36,48,.08);
}
.google-btn:active{background:#f8f9fa}
.g-mark{font-weight:900; font-size:19px; color:#4285f4; line-height:1}
.pending-box{
  margin-top:18px; text-align:left; background:#fffbeb; border:1px solid #fde68a;
  border-radius:14px; padding:14px; font-size:13.5px; line-height:1.55;
}
.pending-box p{margin:6px 0 12px; color:#57534e}
.license-input{
  width:100%; box-sizing:border-box; padding:12px 13px; border-radius:12px;
  border:1.5px solid #d6d3d1; font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:13.5px; margin:2px 0 10px; background:#fff; color:var(--ink);
}
.license-btn{
  width:100%; padding:12px; border:none; border-radius:12px; cursor:pointer;
  background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff;
  font-weight:800; font-size:14.5px; font-family:inherit;
}
.license-msg{font-size:13px; min-height:18px; margin:8px 0 4px !important; color:#b91c1c !important; font-weight:600}
.demo-link{
  margin-top:18px; background:none; border:none; cursor:pointer; font-family:inherit;
  color:var(--muted); font-size:13.5px; text-decoration:underline;
}
.logout-btn{
  width:100%; margin-top:12px; padding:14px; border-radius:14px; cursor:pointer;
  border:1.5px solid #fecaca; background:#fff; color:#b91c1c;
  font-weight:800; font-size:14.5px; font-family:inherit;
}
.login-quote{margin:20px 4px 0; font-size:13px; font-style:italic; color:#9aa3af; line-height:1.6}

/* ---------- quotes motivasi ---------- */
.quote-card{
  background:linear-gradient(135deg,#1c2430,#2b3648); color:#f3f4f6;
  border-radius:18px; padding:18px; margin:0 0 16px;
  box-shadow:0 10px 24px rgba(28,36,48,.22); position:relative; overflow:hidden;
}
.quote-card::before{
  content:"\201C"; position:absolute; top:-14px; left:10px;
  font-size:84px; font-weight:900; color:rgba(249,115,22,.28); line-height:1;
}
.quote-text{
  margin:8px 0 8px; font-size:15.5px; font-style:italic; line-height:1.6;
  transition:opacity .5s ease;
}
.quote-author{margin:0; font-size:12.5px; font-weight:800; color:#fbbf24; letter-spacing:.4px; text-transform:uppercase; transition:opacity .5s ease}
.quote-card.fading .quote-text,.quote-card.fading .quote-author{opacity:0}

/* ---------- layout ---------- */
.wrap{max-width:560px; margin:0 auto; padding:18px 16px 8px; width:100%; box-sizing:border-box; flex:1; display:flex; flex-direction:column}
.view{display:none}
.view.active{display:block; animation:fadein .25s ease}
@keyframes fadein{from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none}}
.feed-head h1{font-size:22px; margin:2px 0 4px; font-weight:800}
.feed-sub{margin:0 0 14px; color:var(--muted); font-size:14px}

/* ---------- lead cards ---------- */
.feed{display:flex; flex-direction:column; gap:14px}
.lead-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:16px; cursor:pointer; position:relative;
  transition:transform .12s ease, box-shadow .12s ease;
}
.lead-card:active{transform:scale(.985)}
.lead-top{display:flex; gap:12px; align-items:center}
.avatar{
  width:52px; height:52px; border-radius:16px; flex:none;
  background:linear-gradient(135deg,#fdba74,#f97316); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:800;
}
.lead-id{flex:1; min-width:0}
.lead-name{font-size:17px; font-weight:800; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lead-meta{font-size:13px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tier{
  flex:none; font-size:11px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  padding:5px 9px; border-radius:999px;
}
.tier-hot{background:#ffe4e6; color:#be123c}
.tier-medium{background:#fef3c7; color:#b45309}
.tier-low{background:#e8f5ee; color:#15803d}
.produk-label{
  flex:none; font-size:11px; font-weight:800; letter-spacing:.3px;
  padding:5px 9px; border-radius:999px; background:#0B2447; color:#fff;
  white-space:nowrap;
}
.lead-kesimpulan{
  margin:12px 0 0; font-size:14px; line-height:1.5; color:#39424f;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.lead-actions{display:flex; gap:8px; margin-top:14px; align-items:center}
.chip-link{
  display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  font-size:13px; font-weight:700; padding:8px 12px; border-radius:999px; border:1px solid var(--line);
  background:#fff; color:var(--ink);
}
.chip-link.wa{background:#e9fbef; border-color:#bbe9c9; color:#128c4a}
.chip-link.ig{background:#fdf2f8; border-color:#fbcfe8; color:#be185d}
.chip-link.fb{background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8}
.chip-link.th{background:#f3f4f6; border-color:#d1d5db; color:#111827}
.detail-hint{margin-left:auto; font-size:13px; font-weight:700; color:var(--orange-dark)}
.fu-done{
  position:absolute; top:12px; right:12px; transform:translateY(26px);
  font-size:11px; font-weight:800; color:var(--green);
}
.lead-card.is-done{opacity:.75}
.lead-card.is-done .tier{display:none}

/* ---------- states ---------- */
.feed-state{text-align:center; color:var(--muted); font-size:16px; font-weight:600; padding:8px 0}
.queue-line{text-align:center; color:var(--muted); font-size:14px; font-weight:600; padding:2px 0 10px}
.total-batch-line{text-align:center; color:var(--muted); font-size:14px; font-weight:600; padding:8px 0 2px}

/* ---------- notif lead masuk (font besar) ---------- */
.trial-bar{
  background:linear-gradient(135deg,#dc2626,#991b1b); color:#fff;
  border-radius:14px; padding:11px 16px; margin:0 0 12px;
  font-size:16.5px; font-weight:800; text-align:center;
  box-shadow:0 8px 18px rgba(185,28,28,.30);
}
.notice-bar{
  background:linear-gradient(135deg,#1e3a8a,#0B2447); color:#fff;
  border-radius:14px; padding:11px 16px; margin:0 0 12px;
  font-size:15.5px; font-weight:700; text-align:center;
  box-shadow:0 8px 18px rgba(11,36,71,.30);
}
.notif-bar{
  background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff;
  border-radius:16px; padding:15px 17px; margin:0 0 14px;
  box-shadow:0 10px 22px rgba(234,88,12,.30);
}
.notif-label{font-size:12px; font-weight:800; letter-spacing:2.5px; opacity:.92}
.notif-main{font-size:22px; font-weight:800; line-height:1.25; margin:3px 0 2px}
.notif-sub{font-size:16.5px; font-weight:600; opacity:.96}
button.lead-count{cursor:pointer; font-family:inherit}
.bell{
  position:absolute; right:108px; top:50%; transform:translateY(-50%); z-index:2;
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line); background:#fff; color:var(--orange-d);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
}
.bell-ico{width:20px; height:20px}
.bell-badge{
  position:absolute; top:-5px; right:-5px; min-width:19px; height:19px;
  border-radius:10px; background:#dc2626; color:#fff; padding:0 5px;
  font-size:11.5px; font-weight:800; line-height:19px; text-align:center;
  box-sizing:border-box;
}

/* ---------- panel Prospek (tab, full screen) ---------- */
#view-prospek .total-label{font-size:14px; font-weight:800; letter-spacing:3px; color:var(--orange-d); text-align:center; margin-top:10px}
.total-num{font-size:88px; font-weight:900; line-height:1.05; text-align:center; color:var(--ink); margin:6px 0 18px}
.total-stats{display:flex; gap:12px; margin-bottom:26px}
.total-stat{
  flex:1; background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:14px 10px; display:flex; flex-direction:column; gap:3px; text-align:center;
}
.total-stat strong{font-size:30px; color:var(--ink)}
.total-stat span{font-size:13px; color:var(--muted)}
.total-src-title{font-size:13px; font-weight:800; letter-spacing:2px; color:var(--orange-d); margin-bottom:10px}
#totalSources{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:22px}
.src-tile{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:12px 4px 10px; text-align:center;
}
.src-tile svg{width:27px; height:27px; display:block; margin:0 auto}
.src-count{font-size:21px; font-weight:900; color:var(--ink); margin-top:5px; line-height:1}
.src-fb{color:#1877F2}
.src-ig{color:#E1306C}
.src-th{color:#111827}
.src-wa{color:#25D366}
[hidden]{display:none !important}
.skeleton{
  height:118px; border-radius:var(--radius); border:1px solid var(--line);
  background:linear-gradient(100deg,#f1f1ee 40%,#fafaf8 50%,#f1f1ee 60%);
  background-size:200% 100%; animation:shimmer 1.2s infinite;
}
@keyframes shimmer{from{background-position:180% 0} to{background-position:-20% 0}}
.updated-line{text-align:center; color:#9aa3af; font-size:12px; margin:16px 0 4px}

/* ---------- akun ---------- */
.info-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:6px 16px}
.info-row{display:flex; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); font-size:14px}
.info-row:last-of-type{border-bottom:none}
.info-label{color:var(--muted)}
.info-value{font-weight:700; text-align:right}
.info-note{font-size:13px; color:var(--muted); line-height:1.55; padding:12px 0 14px}
.admin-btn{
  display:block; text-align:center; margin-top:16px; text-decoration:none;
  background:var(--wa); color:#fff; font-weight:800; font-size:15px;
  padding:15px; border-radius:14px; box-shadow:0 6px 18px rgba(37,211,102,.3);
}
.version-line{text-align:center; color:#9aa3af; font-size:12px; margin-top:18px}

/* ---------- detail sheet ---------- */
.sheet-backdrop{
  position:fixed; inset:0; background:rgba(20,24,32,.45); z-index:40;
  animation:fadein .2s ease;
}
.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  max-width:560px; margin:0 auto; max-height:88vh; overflow-y:auto;
  background:#fff; border-radius:24px 24px 0 0; padding:10px 20px calc(22px + env(safe-area-inset-bottom));
  animation:slideup .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes slideup{from{transform:translateY(40px); opacity:.4} to{transform:none; opacity:1}}
.sheet-handle{width:44px; height:5px; border-radius:99px; background:#e3e6ea; margin:4px auto 10px}
.sheet-close{
  position:absolute; top:12px; right:14px; width:34px; height:34px; border:none; border-radius:50%;
  background:#f3f4f6; font-size:20px; line-height:1; color:#4b5563; cursor:pointer;
}
.sheet-head{display:flex; gap:12px; align-items:center; margin-bottom:6px}
.sheet-name{font-size:20px; font-weight:800; line-height:1.2}
.sheet-meta{font-size:13px; color:var(--muted); margin-top:2px}
.social-row{display:flex; flex-wrap:wrap; gap:9px; margin:16px 0 4px}
.social-btn{
  flex:1 1 44%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 10px; border-radius:13px; text-decoration:none; color:#fff;
  font-weight:800; font-size:14px;
}
.social-btn.wa{background:var(--wa)}
.social-btn.ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.social-btn.fb{background:var(--fb)}
.social-btn.th{background:#111827}
.sheet h3{font-size:13px; text-transform:uppercase; letter-spacing:.6px; color:var(--orange-dark); margin:20px 0 8px}
.kesimpulan-box{
  background:var(--orange-soft); border:1px solid #ffe3c7; border-radius:14px;
  padding:13px 14px; font-size:14.5px; line-height:1.6;
}
.factor{padding:10px 0; border-bottom:1px solid var(--line)}
.factor:last-child{border-bottom:none}
.factor-top{display:flex; justify-content:space-between; font-size:14px; font-weight:700}
.factor-score{color:var(--orange-dark)}
.factor-bar{height:7px; border-radius:99px; background:#f1f1ee; margin:7px 0 6px; overflow:hidden}
.factor-fill{height:100%; border-radius:99px; background:linear-gradient(90deg,#fdba74,#f97316)}
.factor-note{font-size:13px; color:var(--muted); line-height:1.5}
.draft-box{
  background:#f8f9fa; border:1px solid var(--line); border-radius:14px; padding:12px 14px;
  font-size:14px; line-height:1.6; white-space:pre-wrap; word-break:break-word;
}
.copy-btn{
  width:100%; margin-top:9px; padding:12px; border-radius:12px; cursor:pointer;
  border:1.5px solid var(--orange); background:#fff; color:var(--orange-dark);
  font-weight:800; font-size:14px;
}
.copy-btn:active{background:var(--orange-soft)}
.loc-btn{
  display:block; text-align:center; margin-top:14px; padding:12px; border-radius:12px;
  background:#eef4ff; color:#1d4ed8; font-weight:800; font-size:14px; text-decoration:none;
}
.fu-btn{
  width:100%; margin-top:18px; padding:15px; border:none; border-radius:14px; cursor:pointer;
  background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff; font-weight:800; font-size:15px;
  box-shadow:0 6px 18px rgba(234,88,12,.3);
}
.fu-btn.done{background:var(--green); box-shadow:0 6px 18px rgba(34,165,91,.3)}

/* ---------- footer (mirror live web EzQmind) ---------- */
.site-footer{margin-top:34px; border-top:1px solid var(--line)}
.running-text{
  overflow:hidden; white-space:nowrap; background:#FDFBF7;
  display:flex; align-items:center; height:32px; margin-bottom:6px;
}
.running-track{display:inline-flex; gap:0; animation:runtext 18s linear infinite}
.running-track span{padding-right:48px; font-size:13px; color:#8a6d3b; font-weight:600}
@keyframes runtext{from{transform:translateX(0)} to{transform:translateX(-33.33%)}}
.foot-grid{display:flex; flex-direction:column; gap:6px; padding:8px 2px 0}
.foot-grid h4{font-size:14.5px; margin:14px 0 7px}
.foot-grid p{font-size:13.5px; color:var(--muted); line-height:1.6; margin:0 0 8px}
.foot-grid ul{list-style:none; margin:0; padding:0}
.foot-grid li{margin:0 0 7px}
.foot-grid a{color:var(--muted); text-decoration:none; font-size:13.5px}
.foot-grid a:active{color:var(--orange-dark)}
.foot-base{
  margin-top:20px; padding:13px 2px 4px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:12.5px; color:var(--muted);
}
.site-footer.slim{
  position:fixed; left:0; right:0; bottom:0; z-index:30;
  background:#fff; border-top:1px solid var(--line);
  padding:8px 16px calc(8px + env(safe-area-inset-bottom)); margin:0;
}
.site-footer.slim .running-text,
.site-footer.slim .foot-copy{max-width:560px; margin-left:auto; margin-right:auto}
.site-footer.slim .running-text{border-radius:10px}
.foot-copy{text-align:center; color:#9aa3af; font-size:12px; margin:10px 0 2px}
.foot-social{display:inline-flex; gap:14px}
.foot-social a{color:var(--orange-dark); font-weight:700; text-decoration:none}

/* ---------- toast & tabbar ---------- */
.toast{
  position:fixed; left:50%; bottom:100px; transform:translateX(-50%); z-index:60;
  background:#111827; color:#fff; font-size:14px; font-weight:700;
  padding:11px 20px; border-radius:999px; box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.tabbar{
  position:relative; z-index:20;
  background:#fff; border-bottom:1px solid var(--line);
  display:flex; gap:10px; width:100%; max-width:560px; margin:0 auto;
  padding:10px 16px; box-sizing:border-box;
}
.tab{
  flex:1; border:none; cursor:pointer; padding:10px 0;
  display:flex; flex-direction:row; align-items:center; justify-content:center; gap:7px;
  background:#f3f4f6; color:#6b7280; border-radius:999px;
  font-size:13.5px; font-weight:800; font-family:inherit;
}
.tab-ico{width:20px; height:20px}
.tab.active{background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff; box-shadow:0 4px 12px rgba(234,88,12,.28)}

/* Model etalase: label data contoh (banner + chip kartu) */
.contoh-banner{background:#7c2d12;color:#ffedd5;border:1px solid #f97316;border-radius:10px;padding:10px 12px;margin:10px 0;font-size:13px;font-weight:700;text-align:center}
.contoh-chip{display:inline-block;margin:6px 0 2px;background:#7c2d12;color:#ffedd5;border:1px solid #f97316;border-radius:999px;padding:2px 10px;font-size:11px;font-weight:700;letter-spacing:.4px}

/* Form masuk email (pengganti Google, 2026-11-24) */
.auth-row { display: flex; gap: 8px; margin-top: 4px; }
.auth-row .license-btn { flex: 1; }
.license-btn.alt { background: transparent; border: 1px solid #35466a; color: #cfe0ff; }
#view-login .license-input, #view-akun .license-input { margin-bottom: 8px; }

/* ===== LAPISAN DESKTOP (perintah Boss 2026-11-24: versi desktop/exe
   UI-nya desktop + full screen) =====
   Murni tambahan di layar lebar (>=1024px): cangkang melebar, kartu
   leads dua kolom, kartu login di tengah. Tampilan HP TIDAK berubah. */
@media (min-width: 1024px) {
  .site-header-inner { max-width: 1180px; padding: 12px 28px; }
  .tabbar { max-width: 1180px; padding: 10px 28px; }
  .wrap { max-width: 1180px; padding: 26px 28px 12px; }
  .site-footer.slim .foot-copy { max-width: 1180px; }
  .feed-head h1 { font-size: 28px; }
  .feed-sub { font-size: 15px; }
  .feed { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .login-card { max-width: 460px; margin: 30px auto; }
  .sheet { max-width: 780px; }
  .quote-card { max-width: 720px; }
}

/* Tombol link = logo platform saja (perintah Boss 2026-11-25) */
.lead-actions{flex-wrap:wrap}
.plat-ico{display:inline-flex}
.plat-ico svg{display:block}
.chip-link .plat-ico svg{width:18px; height:18px}
.social-btn .plat-ico svg{width:26px; height:26px}

/* Daftar lipat tab Prospek (Boss 2026-11-26): ringkas, ketuk = unfold isi */
.fold{background:#fff; border:1px solid #e7e2d9; border-radius:16px; margin-bottom:10px; overflow:hidden}
.fold-head{display:flex; align-items:center; gap:12px; width:100%; padding:14px 16px; background:none; border:0; cursor:pointer; text-align:left; font:inherit}
.fold-head:active{background:#faf6ef}
.fold-head .lead-id{flex:1; min-width:0}
.fold-chev{font-size:22px; font-weight:800; color:var(--orange-d); line-height:1}
.fold-body{padding:2px 16px 16px; border-top:1px solid #f0eadf}
.fold.is-done{opacity:.75}

/* Head Chat */
.chat-box{display:flex;flex-direction:column;gap:10px}
.chat-list{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow-y:auto;padding:4px 2px}
.chat-empty{color:#6b7280;font-size:14px;text-align:center;padding:18px 8px}
.chat-row{display:flex;flex-direction:column;max-width:85%}
.chat-row.me{align-self:flex-end;align-items:flex-end}
.chat-row.head{align-self:flex-start;align-items:flex-start}
.chat-who{font-size:11px;color:#9ca3af;margin:0 4px 2px}
.chat-bubble{padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.chat-row.me .chat-bubble{background:#f97316;color:#fff;border-bottom-right-radius:4px}
.chat-row.head .chat-bubble{background:#f3f4f6;color:#111827;border-bottom-left-radius:4px}
.chat-hint{color:#b45309;font-size:13px;text-align:center}
.chat-composer{display:flex;gap:8px}
.chat-input{flex:1;padding:12px;border:1px solid #e5e7eb;border-radius:12px;font-size:14px}
.chat-send{background:#f97316;color:#fff;border:0;border-radius:12px;padding:12px 18px;font-weight:600}
