/* ═══════════════════════════════════════════════════════════════════════
   خانه‌ی گفتگویی (۱۳ نوامبر ۲۰۲۶) — Pages/Home/HomeChatView.razor
   عددها از Desktop/claude/apple-spec/home-chat-spec.md + home-chat-spec-build.md (دومی برنده است).
   لپ‌تاپ = macOS 27، گوشی = iOS 27؛ برند، رقمِ فارسی و راست‌به‌چپ از سلیقه‌نامه.
   شیشه فقط روی لایه‌های شناور (کادرِ پرسشِ گوشی، کادرِ نوشتنِ گفتگو، دکمه‌های نوارِ گفتگو، «پیامِ تازه»)؛ محتوا مات.
   همه‌چیز زیرِ .hc ⇒ برای صفحه‌های دیگر صفر اثر. ⛔ @media آخرین سازه‌ی فایل نیست (قاعده‌ی پروژه).
   ═══════════════════════════════════════════════════════════════════════ */

.hc {
  --acc: #0a6b41; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --card: #fff; --soft: #f2f2f7; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --ink: #1c1c1e; --ink2: #6e6e73; --ph: #8e8e93; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sep: rgba(60, 60, 67, .13); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --fill: rgba(120, 120, 128, .12); --fill-h: rgba(120, 120, 128, .18); --fill-p: rgba(120, 120, 128, .24); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --red: #d70a3c; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --see: #a14d00; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --see-bg: rgba(255, 149, 0, .14); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chev: #c7c7cc; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chat-bg: #e9efe9; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chat-dot: rgba(10, 107, 65, .08); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --bub: #fff; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --glass: rgba(255, 255, 255, .67); --glass-bd: rgba(255, 255, 255, .28); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --glass-sh: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .12); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --card-sh: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .06); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-blue: linear-gradient(160deg, #4aa3ff, #0a7aff); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-orange: linear-gradient(160deg, #ffb340, #ff9500); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-pink: linear-gradient(160deg, #ff6b8a, #ff2d55); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-gray: linear-gradient(160deg, #aeaeb2, #8e8e93); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --av: linear-gradient(140deg, #36b37a, #0a6b41); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sales: linear-gradient(160deg, #0a6b43, #004a2c); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sales-sh: 0 8px 24px rgba(0, 84, 50, .18); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sales-up: #9be7b4; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --up: #0a7d45; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --ring: rgba(10, 107, 65, .25); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sel: rgba(10, 107, 65, .12); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --tile-h: rgba(10, 107, 65, .08); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --ease: cubic-bezier(.2, .8, .2, 1);
  color: var(--ink);
}
html.gta-dark .hc {
  --acc: #5cc97f; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --card: #3a3a3c; --soft: #48484a; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --ink: #f2f2f7; --ink2: #a1a1a6; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sep: rgba(84, 84, 88, .6); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --fill: rgba(120, 120, 128, .24); --fill-h: rgba(120, 120, 128, .30); --fill-p: rgba(120, 120, 128, .36); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --red: #ff6b8a; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --see: #ffb340; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --see-bg: rgba(255, 149, 0, .18); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chev: #636366; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chat-bg: #2c2c2e; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --chat-dot: rgba(92, 201, 127, .06); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --bub: #3a3a3c; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --glass: rgba(58, 58, 60, .6); --glass-bd: rgba(255, 255, 255, .12); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --glass-sh: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 28px rgba(0, 0, 0, .35); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --card-sh: inset 0 1px 0 rgba(255, 255, 255, .06); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-blue: linear-gradient(160deg, #4aa3ff, #0091ff); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-orange: linear-gradient(160deg, #ffb340, #ff9230); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-pink: linear-gradient(160deg, #ff6b8a, #ff375f); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sq-gray: linear-gradient(160deg, #aeaeb2, #636366); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sales: linear-gradient(160deg, #1f5a3a, #163f2a); /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  --sales-sh: none;
  --up: #5cc97f; /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
}

.hc button { font-family: inherit; }
.hc :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ─── خانه‌ی دوکاره (۲۰ نوامبر ۲۰۲۶؛ پیاده‌سازیِ عینِ ماکتِ تأییدشده) — کلاس‌های hm-* ───────────────
   رنگ‌های اپل (خاکستری‌ها، قرمز) ثابت‌اند؛ برند فقط از توکن‌های --hm-b*؛ شب فقط با html.gta-dark.
   شیشه فقط روی کادر و پنجره‌ی نتیجه؛ باقی مات. ⛔ @media آخرین سازه‌ی فایل نیست. */
.hm-home {
  --hm-bg: #fff; --hm-ink: #1c1c1e; --hm-grey: #8e8e93; --hm-sub: #6e6e73; --hm-hair: rgba(60, 60, 67, .14);
  --hm-tilebg: #f2f2f7; --hm-red: #ff3b30; --hm-chev: #c7c7cc; --hm-fill: rgba(120, 120, 128, .14);
  --hm-glass: rgba(255, 255, 255, .72); --hm-glass-line: rgba(0, 0, 0, .08); --hm-pop: rgba(255, 255, 255, .94);
  --hm-brand: #387a4c; --hm-b10: rgba(56, 122, 76, .10); --hm-b12: rgba(56, 122, 76, .12); --hm-b24: rgba(56, 122, 76, .24); --hm-b28: rgba(56, 122, 76, .28); /* brand-check-ignore: سبزِ تأییدشده‌ی ماکتِ خانه */
  --hm-rh: 64px; --hm-box: 52px; --hm-kbd: rgba(120, 120, 128, .14); --hm-kbd-ink: var(--hm-grey); --hm-deb: #c2606a; --hm-cre: #2f8f5b; /* brand-check-ignore: semantic debit/credit */
  direction: rtl; box-sizing: border-box; padding: 0 28px; color: var(--hm-ink);
}
html.gta-dark .hm-home {
  --hm-bg: #3a3a3c; --hm-ink: #f5f5f7; --hm-grey: #98989d; --hm-sub: #98989d; --hm-hair: rgba(255, 255, 255, .10);
  --hm-kbd: rgba(255, 255, 255, .12); --hm-kbd-ink: #c7c7cc; --hm-deb: #e08a93; --hm-cre: #5fbf87; /* brand-check-ignore: semantic debit/credit */
  --hm-tilebg: rgba(255, 255, 255, .08); --hm-red: #ff453a; --hm-chev: #636366; --hm-fill: rgba(120, 120, 128, .24);
  --hm-glass: rgba(58, 58, 60, .72); --hm-glass-line: rgba(255, 255, 255, .10); --hm-pop: rgba(58, 58, 60, .95);
  --hm-brand: #4f9f68; --hm-b10: rgba(79, 159, 104, .16); --hm-b12: rgba(79, 159, 104, .18); --hm-b24: rgba(79, 159, 104, .38); --hm-b28: rgba(79, 159, 104, .34); /* brand-check-ignore: سبزِ شبِ ماکتِ خانه */
}
.hm-home *, .hm-home *::before, .hm-home *::after { box-sizing: border-box; }
.hm-home button { font-family: inherit; cursor: pointer; }
.hm-home svg { display: block; }
.hm-col { width: 100%; max-width: 760px; margin-inline: auto; padding: 40px 0 120px; position: relative; min-width: 0; }

.hm-date { font-size: 13px; font-weight: 400; color: var(--hm-grey); line-height: 1.6; text-align: right; }
.hm-title { font-size: 34px; font-weight: 700; letter-spacing: -.4px; line-height: 1.5; margin: 2px 0 14px; color: var(--hm-ink); text-align: right; }

.hm-boxwrap { position: relative; z-index: 5; }
.hm-box { display: flex; align-items: center; gap: 10px; height: var(--hm-box); border-radius: calc(var(--hm-box) / 2); padding-inline: 18px 8px; margin: 0; position: relative;
  background: var(--hm-glass); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 0 0 .5px var(--hm-glass-line), 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06); transition: box-shadow .18s ease; }
.hm-box { border: 0; }
html.gta-dark .hm-box { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .10), 0 0 0 .5px var(--hm-glass-line), 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06); }
html:has(.hm-home) #gta-form-hint { display: none !important; } /* چیپِ «معمولاً» روی جعبه‌ی جستجو روی پیشنهادها می‌افتاد */
.hm-box.foc { box-shadow: 0 0 0 .5px var(--hm-glass-line), 0 0 0 3px var(--hm-b28), 0 8px 24px rgba(0, 0, 0, .06); }
.hm-mag { flex: none; width: 20px; height: 20px; color: var(--hm-grey); }
.hm-mag svg { width: 20px; height: 20px; }
.hm-home .hm-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 400; color: var(--hm-ink); padding: 0; direction: rtl; box-shadow: none; }
.hm-home .hm-in::placeholder { color: rgba(60, 60, 67, .6); opacity: 1; }
html.gta-dark .hm-home .hm-in::placeholder { color: rgba(235, 235, 245, .6); }
.hm-home .hm-in:focus-visible { outline: none; }
.hm-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--hm-brand); color: #fff; display: none; align-items: center; justify-content: center; padding: 0; }
.hm-send svg { width: 18px; height: 18px; }
.hm-box.has .hm-send { display: flex; }
.hm-cancel { flex: none; font-size: 17px; color: var(--hm-brand); font-weight: 400; padding: 0; margin-right: 10px; display: none; white-space: nowrap; border: 0; background: none; }

.hm-pop { position: absolute; top: calc(var(--hm-box) + 8px); right: 0; left: 0; border-radius: 20px; padding: 10px 6px 6px; max-height: 420px; overflow-y: auto;
  background: var(--hm-pop); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px var(--hm-glass-line), 0 12px 40px rgba(0, 0, 0, .14); animation: hmPop .18s ease-out both; transform-origin: top; }
@keyframes hmPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.hm-pcap { font-size: 12px; font-weight: 600; color: var(--hm-grey); padding: 2px 14px 6px; line-height: 1.6; }
.hm-pr { display: flex; align-items: center; gap: 12px; height: 44px; width: 100%; padding-inline: 8px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--hm-ink); text-decoration: none; border: 0; background: none; text-align: start; }
.hm-pr.sel { background: var(--hm-b12); }
.hm-pt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ps { flex: none; font-size: 12px; font-weight: 400; color: var(--hm-grey); }
/* گروه‌های مشتری/فاکتور (۲۱ نوامبر ۲۰۲۶، ماکتِ تأییدشده): متنِ فرعیِ خاکستری، همه روی یک لبه‌ی چپ؛ ردیفِ بی‌↵ فاصله‌ی ۲۲px می‌گیرد تا متن با آمدنِ ↵ نپرد */
.hm-px { flex: 0 1 auto; min-width: 0; max-width: 56%; font-size: 13px; font-weight: 400; color: var(--hm-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; unicode-bidi: plaintext; }
.hm-px bdi { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.hm-pt.hm-pinv { flex: none; display: inline-flex; gap: .3em; white-space: nowrap; }
.hm-px.hm-pxi { flex: 1 1 0; max-width: none; display: flex; justify-content: flex-end; }
.hm-pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hm-pd { flex: none; }
.hm-pop.hm-grp .hm-pr:not(.sel):not(.hm-ask)::after { content: ""; flex: none; width: 22px; }
@media (max-width: 640px) {
  .hm-px { font-size: 14px; }
  .hm-pd { display: none; }
  .hm-pop .hm-pr kbd { display: none; }
  .hm-pop .hm-pr::after { display: none !important; }
}
.hm-pr kbd { flex: none; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--hm-kbd-ink); background: var(--hm-kbd); border-radius: 5px; min-width: 22px; height: 20px; line-height: 20px; text-align: center; padding: 0 5px; }
/* مانده‌ی مشتری (۲۲ نوامبر ۲۰۲۶، ماکتِ تأییدشده): لپ‌تاپ = ستونِ ثابتِ ۱۵۰px قبلِ ↵ و همیشه رزرو؛ گوشی = جایگزینِ متنِ خاکستریِ همان ردیف */
.hm-pr.hm-prc .hm-px { margin-inline-end: 16px; }
.hm-bal { flex: 0 0 150px; width: 150px; min-width: 0; text-align: right; font-size: 13px; font-weight: 400; color: var(--hm-grey); white-space: nowrap; }
.hm-bv { display: inline-block; direction: rtl; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-bd { font-weight: 500; }
.hm-bd.deb { color: var(--hm-deb); }
.hm-bd.cre { color: var(--hm-cre); }
@media (max-width: 640px) {
  .hm-bal { flex: 0 1 auto; width: auto; font-size: 14px; }
  .hm-bal:empty { display: none; }
  .hm-pr.hm-hasbal .hm-px { display: none; }
  .hm-pr.hm-dig .hm-bal { display: none; } /* جستجوی رقمی: شمارهٔ مطابق دیده شود، مانده جایش را نگیرد */
  .hm-pr.hm-prc .hm-px { margin-inline-end: 0; }
}
.hm-pdiv { height: .5px; background: var(--hm-hair); margin: 6px 14px; }

.hm-sq { flex: none; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--gm-c, var(--gta-s-gray)); }
.hm-sq svg { width: 62%; height: 62%; stroke: currentColor; }
.hm-pr .hm-sq { width: 28px; height: 28px; border-radius: 8px; }
.hm-sq.hm-spark { background: linear-gradient(140deg, #4f9f68, #2f6a42); } /* brand-check-ignore: جرقه‌ی ماکتِ تأییدشده */
.hm-sq.gm-c-blue { background: var(--gta-s-blue); }
.hm-sq.gm-c-orange { background: var(--gta-s-orange); }
.hm-sq.gm-c-red { background: var(--gta-s-red); }
.hm-sq.gm-c-green { background: var(--gta-s-green); }
.hm-sq.gm-c-teal { background: var(--gta-s-teal); }
.hm-sq.gm-c-purple, .hm-sq.gm-c-indigo { background: var(--gta-s-purple); }
.hm-sq.gm-c-pink { background: var(--gta-s-pink); }
.hm-sq.gm-c-gold { background: var(--gta-s-gold); }
.hm-sq.gm-c-brown { background: var(--gta-s-brown); }
.hm-sq.gm-c-gray { background: var(--gta-s-gray); }
.hm-sq.gm-c-brand { background: var(--gta-accent); }

.hm-answer { margin-top: 12px; border-radius: 20px; background: var(--hm-bg); padding: 16px 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); min-width: 0; }
.hm-ah { display: flex; align-items: flex-start; gap: 12px; }
.hm-ah .hm-sq { width: 24px; height: 24px; border-radius: 7px; margin-top: 2px; }
.hm-aq { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 24px; overflow-wrap: anywhere; }
.hm-abody { margin-top: 8px; padding-inline-start: 36px; font-size: 15px; line-height: 24px; }
.hm-abody .hc-txt { line-height: 24px; }
.hm-answer .akc { box-shadow: none; background: transparent; padding: 0; margin: 8px 0 0; border-radius: 0; }
.hm-dots { display: inline-flex; gap: 5px; height: 22px; align-items: center; margin: 6px 36px 0 0; }
.hm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-grey); animation: hcDot 1.2s infinite ease-in-out; opacity: .3; }
.hm-dots i:nth-child(2) { animation-delay: .15s; }
.hm-dots i:nth-child(3) { animation-delay: .3s; }
.hm-slow { display: block; font-size: 13px; color: var(--hm-grey); line-height: 22px; margin: 2px 36px 0 0; }
.hm-aerr { display: flex; align-items: center; gap: 8px; margin: 8px 36px 0 0; font-size: 14px; color: var(--hm-sub); }
.hm-aerr svg { width: 18px; height: 18px; color: var(--hm-red); }
.hm-al { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-right: 36px; font-size: 13px; font-weight: 500; line-height: 22px; }

.hm-link { font-size: 13px; font-weight: 500; color: var(--hm-brand); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; border: 0; background: none; padding: 0; min-height: 22px; }
.hm-link svg { width: 14px; height: 14px; }

/* ─── ثبتِ کار از کادر (۲۴ نوامبر ۲۰۲۶، ماکتِ تأییدشده): «به فلانی بگو…» / «یادم بنداز…» — کلاس‌های tk-* ───
   رنگ‌ها از متغیرهای .hc ⇒ هم زیرِ کادرِ خانه، هم در حبابِ گفتگو، روز و شب. */
.hc .tk-sq { width: 24px; height: 24px; border-radius: 7px; margin-top: 2px; display: grid; place-items: center; background: var(--sq-blue); color: #fff; flex: none; }
.hc .tk-sq svg { width: 15px; height: 15px; }
.hc .hm-pr .tk-sq { margin-top: 0; }
.hc .tk { min-width: 0; }
.hc .tk-ok { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; line-height: 24px; color: var(--ink); }
.hc .tk-ok i { width: 24px; height: 24px; border-radius: 50%; background: rgba(52, 199, 89, .24); color: #248a3d; display: grid; place-items: center; flex: none; } /* brand-check-ignore: سبزِ «انجام شد»ِ اپل */
.hc .tk-ok i svg { width: 14px; height: 14px; }
.hc .tk-sheet { margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--card); display: grid; grid-template-columns: 96px minmax(0, 1fr); max-width: 560px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); }
.hc .tk-sheet > span { padding: 9px 14px; font-size: 14px; line-height: 22px; border-top: .5px solid var(--sep); min-width: 0; }
.hc .tk-sheet > span:nth-child(-n+2) { border-top: 0; }
.hc .tk-sheet > .l { background: var(--soft); color: var(--ink2); font-size: 13px; }
.hc .tk-sheet > .v { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.hc .tk-face { width: 24px; height: 24px; border-radius: 50%; background: #e5e5ea; color: #3a3a3c; font-size: 11px; font-weight: 500; display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .10); }
.hc .tk-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.hc .tk-pill { font-size: 12px; font-weight: 500; line-height: 20px; padding: 0 10px; border-radius: 999px; background: var(--see-bg); color: var(--see); }
.hc .tk-acts { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.hc .tk-acts .tk-gr { color: var(--ink2); }
.hc .tk-acts .tk-gr:disabled { opacity: .5; }
.hc .tk-askq b { display: block; font-size: 15px; font-weight: 500; line-height: 24px; color: var(--ink); }
.hc .tk-askq span { font-size: 13px; color: var(--ink2); }
.hc .tk-list { margin-top: 10px; border-radius: 14px; overflow: hidden; background: var(--card); max-width: 560px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); }
.hc .tk-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; margin: 0; border: 0; border-top: .5px solid var(--sep); background: none;
  font: inherit; font-size: 14.5px; color: var(--ink); text-align: right; cursor: pointer; }
.hc .tk-row:first-child { border-top: 0; }
.hc .tk-row:hover { background: var(--tile-h); }
.hc .tk-row:disabled { opacity: .55; cursor: default; }
.hc .tk-row .nm { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc .tk-row .go { font-size: 13px; font-weight: 500; color: var(--acc); white-space: nowrap; }
.hc .tk-row .ch { display: none; place-items: center; flex: none; color: var(--ink2); opacity: .7; font-style: normal; }
.hc .tk-row .ch svg { width: 16px; height: 16px; }
.hc .tk-row.me .nm { font-weight: 400; color: var(--ink2); }
.hc .tk-note { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink); }
.hc .hc-bub .tk-sheet, .hc .hc-bub .tk-list { background: var(--soft); }
.hc .hc-bub .tk-sheet > .l { background: var(--fill); }
/* گوشی (۲۵ نوامبر، عکسِ ۳۹۰): ستونِ برچسب باریک‌تر تا «کی» یک‌خط بماند؛ «همین، ثبت کن» پنهان تا نامِ کامل بریده نشود (خودِ ردیف دکمه است).
   ۲۶ نوامبر (ماکتِ B تأییدشده): به‌جایش فلشِ کم‌رنگ تا معلوم باشد ردیف زدنی است؛ لینک‌های پایینِ کارت ناحیه‌ی لمسِ ۴۴ (ظاهر همان). */
@media (max-width: 480px) {
  .hc .tk-sheet { grid-template-columns: 56px minmax(0, 1fr); }
  .hc .tk-sheet > span { padding: 9px 12px; }
  .hc .tk-row .go { display: none; }
  .hc .tk-row .ch { display: grid; }
  .hc .tk-acts { margin-top: 4px; }
  .hc .tk-acts .hm-link { min-height: 44px; }
}
html.gta-dark .hc .tk-acts .tk-gr { color: var(--ink2); }
html.gta-dark .hc .tk-ok i { background: rgba(48, 209, 88, .38); color: #6ee08c; } /* brand-check-ignore: سبزِ «انجام شد»ِ اپل در شب */
html.gta-dark .hc .tk-face { background: #48484a; color: #f2f2f7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
html.gta-dark .hc .tk-sheet, html.gta-dark .hc .tk-list { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .10); }
.hm-home .hm-link:focus-visible, .hm-home .hm-new:focus-visible, .hm-home .hm-tile:focus-visible, .hm-home .hm-rowa:focus-visible, .hm-home .hm-sales:focus-visible, .hm-home .hm-tick:focus-visible { outline: 2px solid var(--hm-brand); outline-offset: 2px; }
.hm-allrow { display: flex; justify-content: flex-start; margin-top: 8px; padding: 0 4px; }

.hm-caprow { display: flex; align-items: center; justify-content: space-between; margin: 26px 4px 10px 4px; }
.hm-caprow.big { margin-top: 32px; }
.hm-cap2 { font-size: 22px; font-weight: 700; color: var(--hm-ink); line-height: 1.5; margin: 0; }
.hm-new { height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: var(--hm-b10); color: var(--hm-brand); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

.hm-cap { font-size: 13px; font-weight: 600; color: var(--hm-grey); line-height: 1.6; margin: 0; }
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.hm-tile { height: 76px; border-radius: 20px; background: var(--hm-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; color: var(--hm-ink); text-decoration: none; min-width: 0; transition: transform .12s ease; }
.hm-tile:active { transform: scale(.97); transition: transform 120ms; }
html.gta-dark .hm-home .hm-new, html.gta-dark .hm-home .hm-link { color: #5fbf7f; } /* brand-check-ignore: سبزِ روشنِ شب برای کنتراستِ ۴٫۵ (داورِ اپل) */
html.gta-dark .hm-home .hm-new { background: rgba(95, 191, 127, .16); } /* brand-check-ignore: همان سبزِ روشنِ شب */
.hm-tb { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--hm-tilebg); display: flex; align-items: center; justify-content: center; }
.hm-tb svg { width: 28px; height: 28px; }
.hm-tl { font-size: 13px; font-weight: 500; line-height: 1.5; min-width: 0; max-width: 100%; white-space: normal; text-align: center; padding-inline: 4px; }

.hm-gcap { font-size: 13px; font-weight: 600; color: var(--hm-grey); padding: 0 20px; margin: 20px 0 8px; line-height: 1.6; }
.hm-gcap.late { color: var(--hm-red); }
.hm-caprow + .hm-gcap { margin-top: 0; }
.hm-card { background: var(--hm-bg); border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); overflow: hidden; min-width: 0; }
.hm-row { position: relative; display: flex; align-items: center; gap: 12px; height: var(--hm-rh); padding: 0 16px; color: inherit; text-decoration: none; min-width: 0; }
.hm-row + .hm-row::before { content: ""; position: absolute; top: 0; right: 68px; left: 0; height: .5px; background: var(--hm-hair); }
.hm-rowa { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
a.hm-row:hover, .hm-row:hover > .hm-rowa { background: none; }
.hm-row:hover { background: rgba(0, 0, 0, .035); }
html.gta-dark .hm-row:hover { background: rgba(255, 255, 255, .06); }
.hm-row .hm-sq { width: 40px; height: 40px; border-radius: 11px; }
.hm-row .hm-sq svg { width: 22px; height: 22px; }
.hm-tick { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; margin-inline-start: -8px; }
.hm-tick i { width: 24px; height: 24px; border-radius: 50%; background: var(--hm-b24); display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; transition: background .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1); }
.hm-tick i svg { width: 14px; height: 14px; opacity: 0; transition: opacity .2s; }
.hm-row.done .hm-tick i { background: var(--hm-brand); transform: scale(1.06); }
.hm-row.done .hm-tick i svg { opacity: 1; }
.hm-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hm-r1 { font-size: 16px; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hm-ink); }
.hm-r1.brand { color: var(--hm-brand); }
.hm-short { display: none; }
.hm-r2 { font-size: 13px; font-weight: 400; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hm-sub); }
.hm-r2.late { color: var(--hm-red); }
.hm-val { flex: none; width: 62px; text-align: right; font-size: 13px; font-weight: 500; color: var(--hm-grey); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-val b { font-weight: 600; font-size: 17px; }
.hm-val i { font-style: normal; font-size: 13px; font-weight: 400; opacity: .55; margin-right: 0; }
.hm-val.txt { width: auto; min-width: 48px; }
.hm-val.txt i { font-size: 13px; font-weight: 500; opacity: 1; }
.hm-val.late { color: #d70015; }
html.gta-dark .hm-val.late { color: #ff453a; }
/* نسخه‌ی «ب»: شمار درشت سمتِ چپ + «N روز منتظر» زیرش، هر دو روی لبه‌ی چپ */
.hm-cnt { flex: none; width: 96px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hm-cnt b { font-size: 20px; font-weight: 600; color: var(--hm-ink); }
.hm-cnt small { font-size: 12px; font-weight: 500; color: #6c6c70; white-space: nowrap; }
.hm-cnt small.late { color: #d70015; }
html.gta-dark .hm-cnt small { color: #aeaeb2; }
html.gta-dark .hm-cnt small.late { color: #ff8077; }
.hm-val.late i { opacity: 1; }
.hm-chev { flex: none; width: 16px; height: 16px; color: var(--hm-chev); }
.hm-chev svg { width: 16px; height: 16px; }
.hm-chev.dn { transition: transform .2s ease; }
.hm-chev.dn.up { transform: rotate(180deg); }
.hm-later { margin-top: 20px; }
.hm-later .hm-val { width: auto; }
.hm-later-h { width: 100%; border: 0; background: none; text-align: start; font: inherit; color: inherit; }
.hm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 132px; color: var(--hm-grey); font-size: 15px; font-weight: 500; }
.hm-empty svg { width: 40px; height: 40px; color: var(--hm-chev); }

.hm-sales { margin-top: 20px; border-radius: 16px; background: var(--hm-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.hm-sl { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-sv { flex: none; font-size: 17px; font-weight: 600; white-space: nowrap; }
.hm-sv i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--hm-grey); opacity: .8; margin-right: 4px; }

.hm-toast { position: fixed; z-index: 1300; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); bottom: calc(var(--gta-appnav-total, 0px) + 24px);
  display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 22px; font-size: 14px; font-weight: 500; color: var(--hm-ink);
  background: var(--hm-pop); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 0 0 .5px var(--hm-glass-line), 0 8px 28px rgba(0, 0, 0, .14); }

@supports (corner-shape: squircle) {
  .hm-pop, .hm-answer, .hm-card, .hm-tile { corner-shape: squircle; }
  .hm-box { corner-shape: round; }
  .hm-pop, .hm-answer, .hm-card { border-radius: 28px; }
  .hm-tile { border-radius: 28px; }
}

@media (max-width: 640px) {
  .hm-full { display: none; }
  .hm-short { display: inline; }
}
@media (max-width: 600px) {
  .hm-home { --hm-rh: 60px; --hm-box: 44px; padding: 0 16px; }
  .hm-col { padding: 8px 0 calc(var(--gta-appnav-total, 0px) + 24px); max-width: none; }
  .hm-box { padding-inline: 14px 6px; }
  .hm-send { width: 32px; height: 32px; }
  .hm-tiles { gap: 8px; }
  .hm-tile { height: 84px; border-radius: 18px; flex-direction: column; gap: 6px; padding: 0 2px; }
  .hm-tl { font-size: 11.5px; line-height: 16px; padding-inline: 0; white-space: normal; letter-spacing: -.1px; overflow-wrap: normal; word-break: keep-all; text-align: center; }
  .hm-row .hm-chev { display: none; }
  .hm-later-h .hm-chev { display: block; }
  .hm-val { width: 48px; }
  .hm-cnt { width: 80px; }
  .hm-cnt b { font-size: 18px; }
  .hm-row .hm-sq { width: 36px; height: 36px; border-radius: 10px; }
  .hm-row .hm-sq svg { width: 20px; height: 20px; }
  .hm-tick { width: 36px; }
  .hm-row { gap: 10px; padding: 0 14px; }
  .hm-rowa { gap: 10px; }
  .hm-row + .hm-row::before { right: 60px; }
  .hm-gcap { padding: 0 16px; }
  .hm-later .hm-val { width: auto; }
  .hm-pr { height: 52px; font-size: 16px; }
  .hm-pr .hm-sq { width: 32px; height: 32px; border-radius: 9px; }
  .hm-ps { display: none; }
  .hm-home.srch .hm-col { padding-bottom: 0; }
  .hm-home.srch .hm-date, .hm-home.srch .hm-title { display: none; }
  .hm-home.srch .hm-boxwrap { display: flex; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .hm-home.srch .hm-boxwrap .hm-box { flex: 1; min-width: 0; }
  .hm-home.srch .hm-cancel { display: block; }
  .hm-home.srch .hm-pop { position: static; flex: 0 0 100%; margin-top: 12px; max-height: none; }
  .hm-home.srch .hm-mk-rest { opacity: .3; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-pop { animation: hmFade .12s linear both; }
  .hm-tile, .hm-tick i, .hm-chev.dn { transition: none; }
  .hm-dots i { animation: none; opacity: .6; }
}
@keyframes hmFade { from { opacity: 0; } }
@media (min-width: 601px) {
  .hm-home.srch .hm-mk-rest { opacity: .3; }
}

.hc-ask-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.hc-ask-in::placeholder, .hc-comp textarea::placeholder { color: var(--ph); opacity: 1; }
.hc .hc-ask-in:focus-visible, .hc .hc-comp textarea:focus-visible { outline: none; }

.hc-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: #0a6b41; color: #fff; transition: transform .09s var(--ease), background .2s; position: relative; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
.hc-send svg { width: 20px; height: 20px; }
.hc-send:active:not(:disabled) { transform: scale(.94); }
.hc-send:disabled { background: rgba(120, 120, 128, .2); color: rgba(255, 255, 255, .7); cursor: default; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */

/* پیشنهادها */
.hc-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 2px 4px; }
.hc-chip { position: relative; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--fill); color: var(--ink); font-size: 13.5px; line-height: 34px; white-space: nowrap; cursor: pointer; transition: background .15s; }
.hc-chip::before { content: ""; position: absolute; inset: -5px 0; }
.hc-chip:hover { background: var(--fill-h); }
.hc-chip:active { background: var(--fill-p); }

.hc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--av); }
.hc-av svg { width: 17px; height: 17px; }
.hc-av.big { width: 56px; height: 56px; }
.hc-av.big svg { width: 30px; height: 30px; }
.hc-more svg, .hc-all svg, .hc-link svg { width: 13px; height: 13px; stroke-width: 2.2; }
.hc-err-row { display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-size: 14px; color: var(--ink2); }
.hc-pill { position: relative; height: 32px; padding: 0 14px; border-radius: 16px; border: 0; background: var(--fill); color: var(--acc); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hc-pill::before { content: ""; position: absolute; inset: -6px 0; }
.hc-sk { display: block; height: 11px; border-radius: 6px; background: var(--fill); animation: hcShim 1.2s ease-in-out infinite; }
.hc-sq.hc-sk { height: 34px; }
.hc-row-sk { pointer-events: none; }
.hc-row-sk .hc-rt { gap: 8px; }
@keyframes hcShim { 50% { opacity: .45; } }

/* ─── گفتگو (تمام‌صفحه) ────────────────────────────────────────────── */
html.gta-chatmode, html.gta-chatmode body { overflow: hidden !important; }
/* لایه‌ی fixed داخلِ والدِ دارای transform (انیمیشنِ gtaRise) جابه‌جا می‌افتد ⇒ در حالتِ گفتگو transformِ والدها خاموش */
html.gta-chatmode *:has(.hc-chat) { transform: none !important; animation: none !important; filter: none !important; contain: none !important; will-change: auto !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.gta-chatmode .mud-container:has(.hc-chat), html.gta-chatmode .mud-main-content:has(.hc-chat) { z-index: 1350 !important; }
html.gta-chatmode .gta-pnav, html.gta-chatmode .gta-brand-card, html.gta-chatmode .mud-appbar, html.gta-chatmode .mud-drawer, html.gta-chatmode .gta-watermark { visibility: hidden !important; }

.hc-chat { position: fixed; inset: 0; top: var(--vvt, 0px); height: var(--vvh, calc(100 * var(--gta-dvh, 1dvh))); z-index: 1350; display: flex; flex-direction: column;
  background-color: var(--chat-bg); background-image: radial-gradient(var(--chat-dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  animation: hcIn .28s var(--ease) both; }
@keyframes hcIn { from { opacity: 0; transform: translateY(8px); } }

/* نوارِ بالا: لبه‌ی پیمایش (نه تخته‌ی شیشه)؛ فقط دکمه‌ها شیشه‌اند */
.hc-bar { position: absolute; z-index: 3; inset: 0 0 auto; height: 60px; padding: env(safe-area-inset-top, 0px) 16px 0; box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .2s; }
.hc-chat.hc-scrolled .hc-bar { background: color-mix(in srgb, var(--chat-bg) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); padding-bottom: 14px; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
.hc-gl { background: var(--glass); border: 1px solid var(--glass-bd); box-shadow: var(--glass-sh);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.hc-back, .hc-new { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 22px; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
.hc-back { min-width: 84px; padding-inline: 10px 16px; }
.hc-back svg, .hc-new svg { width: 20px; height: 20px; flex: none; }
.hc-new { gap: 6px; }
.hc-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hc-whot { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hc-whot b { font-size: 15.5px; font-weight: 700; }
.hc-whot small { font-size: 11.5px; color: var(--ink2); }

.hc-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: auto; padding: calc(76px + env(safe-area-inset-top, 0px)) 16px 10px; }
.hc-col { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; }
.hc-day { align-self: center; margin: 4px 0 12px; padding: 3px 10px; border-radius: 10px; background: var(--card); color: var(--ink2); font-size: 12px; }

.hc-zero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: calc(12 * var(--gta-vh, 1vh)) 8px 24px; text-align: center; }
.hc-zero b { font-size: 17px; font-weight: 600; }
.hc-zero .hc-chips { justify-content: center; margin: 4px 0 0; }
.hc-zero small { max-width: 420px; font-size: 12px; line-height: 1.7; color: var(--ink2); }

.hc-m { display: flex; align-items: flex-end; gap: 9px; margin-top: 3px; animation: hcBot .25s var(--ease) both; }
.hc-m.tail { margin-bottom: 7px; }
.hc-m.me { justify-content: flex-start; animation: hcMe .3s var(--ease) both; }
.hc-m.bot { justify-content: flex-start; flex-direction: row-reverse; }
.hc-m.bot:not(.tail) .hc-av { visibility: hidden; }
.hc-m.me + .hc-m.bot, .hc-m.bot + .hc-m.me, .hc-sugg + .hc-m { margin-top: 10px; }
@keyframes hcMe { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes hcBot { from { opacity: 0; transform: translateY(8px); } }
.hc-bub { position: relative; min-width: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.hc-m.me .hc-bub { max-width: 78%; background: #0a6b41; color: #fff; border-radius: 20px; padding: 9px 15px 6px; white-space: pre-wrap; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
.hc-m.me.tail .hc-bub { border-end-start-radius: 6px; }
.hc-m.bot .hc-bub { max-width: 88%; background: var(--bub); color: var(--ink); border-radius: 20px; padding: 12px 15px 7px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
.hc-m.bot.tail .hc-bub { border-end-end-radius: 6px; }
/* جوابِ جدول‌دار = کارتِ جعبه‌ی پرسش (پیوستِ پیام، نه حباب) — apple-spec/home-chat-answercard-spec.md */
.hc-acard { flex: 1; min-width: 0; max-width: 780px; }
.hc .hc-acard .akc { width: 100%; margin: 0; border-radius: 24px; padding: 18px 20px 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 26, 34, .06), 0 4px 14px rgba(20, 26, 34, .07); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
@supports (corner-shape: squircle) { .hc .hc-acard .akc { corner-shape: squircle; border-radius: 34px; } }
.hc .hc-acard .akc-ttl { font-size: 17px; }
.hc .hc-acard .akc-big b { font-size: 30px; }
.hc .hc-acard .akc-tw { border-radius: 12px; }
.hc-acard > time { display: block; margin: 4px 6px 0; font-size: 11px; text-align: end; color: var(--ink2); }
html.gta-dark .hc .hc-acard .akc { background: #3a3a3c; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
.hc-bub time { display: block; margin-top: 2px; font-size: 11px; text-align: end; color: var(--ink2); }
.hc-m.me .hc-bub time { color: rgba(255, 255, 255, .85); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */

.hc-typing { display: flex; flex-direction: column; gap: 6px; min-width: 52px; }
.hc-dots { display: inline-flex; gap: 5px; height: 22px; align-items: center; }
.hc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); animation: hcDot 1.2s infinite ease-in-out; opacity: .3; }
.hc-dots i:nth-child(2) { animation-delay: .15s; }
.hc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hcDot { 40% { opacity: 1; } }
.hc-typing small { font-size: 12px; color: var(--ink2); }
.hc-err { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hc-errl { display: inline-flex; align-items: center; gap: 6px; }
.hc-errl svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* کارتِ جواب (داخلِ همان حباب، بی جعبه‌ی دوم) */
.hc-al { font-size: 13px; color: var(--ink2); margin-bottom: 4px; }
.hc-nums { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 6px; }
.hc-num { display: inline-flex; align-items: baseline; gap: 5px; }
.hc-num b { font-size: 28px; font-weight: 700; line-height: 1.25; }
.hc-num small { font-size: 12.5px; color: var(--ink2); }
.hc-num.red b { color: var(--red); }
.hc-trend { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; }
.hc-trend.up { color: var(--up); }
.hc-trend.down { color: var(--red); }
.hc-txt { margin: 2px 0 4px; font-size: inherit; line-height: 1.75; }
.hc-arows { display: flex; flex-direction: column; margin: 6px 0 2px; }
.hc-arow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 36px; padding: 6px 0; box-sizing: border-box; border-top: 1px solid var(--sep); color: inherit; text-decoration: none; font-size: 14px; }
.hc-arow .v b { font-weight: 700; font-size: 15px; }
.hc-arow .v small { margin-inline-start: 4px; font-size: 12px; color: var(--ink2); }
a.hc-arow:hover { color: var(--acc); }
.hc-tbl { margin: 8px 0 4px; overflow-x: auto; }
.hc-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hc-tbl th { text-align: start; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 6px 8px; border-bottom: 1px solid var(--sep); white-space: nowrap; }
.hc-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--sep); }
.hc-tbl .n { text-align: left; white-space: nowrap; }
.hc-tbl tr.faint td { color: var(--ink2); }
.hc-tbl tfoot td { font-weight: 700; border-bottom: 0; }
.hc-tbl em { font-style: normal; font-size: 11px; margin-inline-start: 6px; padding: 1px 7px; border-radius: 9px; background: var(--fill); color: var(--ink2); }
.hc-link { display: inline-flex; align-items: center; gap: 4px; padding-block: 12px; margin-block: -6px -8px; font-size: 13.5px; font-weight: 600; color: var(--acc); text-decoration: none; }

.hc-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; margin-inline-end: 39px; justify-content: flex-end; }
.hc-sugg .hc-chip { background: var(--card); box-shadow: 0 1px 0 rgba(0, 0, 0, .04); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */

.hc-newpill { position: absolute; z-index: 3; left: 50%; bottom: calc(50px + 26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .2s, transform .2s var(--ease); }
.hc-newpill::before { content: ""; position: absolute; inset: -6px 0; }
.hc-newpill svg { width: 14px; height: 14px; }
.hc-newpill.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.hc-foot { flex: none; position: relative; z-index: 2; padding: 6px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
.hc-foot::before { content: ""; position: absolute; inset: -24px 0 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--chat-bg) 24px); }
.hc-comp { max-width: 792px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; min-height: 50px; border-radius: 25px; padding: 5px; padding-inline-start: 18px; box-sizing: border-box; }
.hc-comp:focus-within { box-shadow: var(--glass-sh), 0 0 0 2px var(--acc), 0 0 0 5px var(--ring); }
.hc-comp textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; padding: 8px 0; box-sizing: border-box; overflow-y: auto; }
.hc-comp .hc-send { width: 40px; height: 40px; }
.hc-comp .hc-send::before { content: ""; position: absolute; inset: -2px; }
.hc-count { align-self: center; font-size: 11px; color: var(--ink2); }

/* ─── دسترس‌پذیری ─────────────────────────────────────────────────── */
@media (prefers-reduced-transparency: reduce) {
  .hc-gl { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--sep); }
  .hc-chat.hc-scrolled .hc-bar { background: var(--chat-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .hc { --ink2: #3c3c43; --sep: rgba(60, 60, 67, .5); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  html.gta-dark .hc { --ink2: #d1d1d6; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  .hc-gl, .hc-ask { border: 1px solid rgba(0, 0, 0, .5); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  html.gta-dark .hc-gl, html.gta-dark .hc-ask { border-color: rgba(255, 255, 255, .5); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
}
@media (prefers-reduced-motion: reduce) {
  .hc-chat, .hc-m, .hc-m.me { animation: hcFade .12s linear both; }
  .hc-sk, .hc-dots i { animation: none; opacity: .6; }
  .hc-newpill { transition: opacity .12s; transform: translate(-50%, 0); }
  .hc-thread { scroll-behavior: auto; }
}
@keyframes hcFade { from { opacity: 0; } }

/* ─── گوشی (iOS 27) ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* گفتگو */
  .hc-bar { height: 54px; padding-inline: 12px; }
  .hc-who { position: absolute; top: env(safe-area-inset-top, 0px); bottom: 0; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 2 * (84px + 12px)); pointer-events: none; }
  .hc-bub time { font-size: 12px; }
  .hc-back { min-width: 60px; padding-inline: 8px 14px; }
  .hc-new { width: 44px; padding: 0; justify-content: center; }
  .hc-new span, .hc-whot small { display: none; }
  .hc-thread { padding: calc(66px + env(safe-area-inset-top, 0px)) 12px 8px; }
  .hc-bub { font-size: 17px; line-height: 1.7; }
  .hc-m.bot:has(.hc-acard) .hc-av { display: none; }
  .hc-acard { max-width: none; }
  .hc .hc-acard .akc { border-radius: 20px; padding: 14px 14px 10px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 34, .06), 0 4px 14px rgba(20, 26, 34, .07); } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  .hc .hc-acard .akc-list { background: #f2f2f7; border-radius: 12px; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  .hc .hc-acard .akc-big b { font-size: 28px; }
  .hc .hc-acard .akc-ttl { font-size: 17px; }
  html.gta-dark .hc .hc-acard .akc { background: #3a3a3c; box-shadow: none; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  html.gta-dark .hc .hc-acard .akc-list { background: #2c2c2e; } /* brand-check-ignore: رنگِ معناییِ اپل از نمونه‌ی تأییدشده‌ی خانه‌ی گفتگویی */
  .hc-acard > time { margin: 4px 12px 0; }
  .hc-foot { padding: 6px 10px calc(12px + env(safe-area-inset-bottom, 0px)); }
  html.hc-kb .hc-foot { padding-bottom: 6px; }
  .hc-comp textarea { font-size: 17px; }
}

html.gta-dark .hc-ask-in, html.gta-dark .hc-comp textarea { color-scheme: dark; }
