/* ═══════════════════════════════════════════════════════════════════════════
   public/therapist-layouts/tl-base.css — پایه مشترک چهار چیدمان درمانگر (0929h)
   فقط وقتی لینک می‌شود که <html data-tl="…"> باشد (lib/therapist-layout.ts → tlCssHrefs).
   هر قاعده زیر html[data-tl] است ⇒ برای تنانت‌های بدون چیدمان تازه صفر اثر.
   تم‌ها توکن‌های --tx-* را در tl-<id>.css تعریف می‌کنند؛ این فایل فقط اجزای مشترک را دارد:
   چیپ وضعیت (رنگ + آیکون + متن)، هاله مات پشت متن روی عکس، کمک‌کننده‌های نمایش دسکتاپ/موبایل.
   ═══════════════════════════════════════════════════════════════════════════ */

html[data-tl] {
  --tx-st-pend-t: #8a4b00; --tx-st-pend-b: #fff4e0; --tx-st-pend-l: #e8a94a;
  --tx-st-conf-t: #1e4e9c; --tx-st-conf-b: #e8f0fc; --tx-st-conf-l: #7fa3de;
  --tx-st-done-t: #475467; --tx-st-done-b: #f0f2f4; --tx-st-done-l: #b9c2cb;
  --tx-st-nos-t: #b42318; --tx-st-nos-b: #fdecea; --tx-st-nos-l: #ee9a92;
  --tx-now: #c62f37;
  --tx-e-out: cubic-bezier(.22, 1, .36, 1);
  --tx-e-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-tl] .tx-app,
html[data-tl] .tx-app * { letter-spacing: 0; }
html[data-tl] .tx-app { font-variant-numeric: tabular-nums; }

/* نمایش دسکتاپ/موبایل (مرز موکاپ: ۸۶۰ پیکسل) */
@media (min-width: 861px) {
  html[data-tl] .tx-m-only { display: none !important; }
}
@media (max-width: 860px) {
  html[data-tl] .tx-d-only { display: none !important; }
}

/* چیپ وضعیت: رنگ + آیکون + متن */
html[data-tl] .tx-st {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
}
html[data-tl] .tx-st svg { width: 14px; height: 14px; stroke-width: 2; flex: none; }
html[data-tl] .tx-st-pend { color: var(--tx-st-pend-t); background: var(--tx-st-pend-b); border-color: var(--tx-st-pend-l); }
html[data-tl] .tx-st-conf { color: var(--tx-st-conf-t); background: var(--tx-st-conf-b); border-color: var(--tx-st-conf-l); }
html[data-tl] .tx-st-ins { color: #fff; background: var(--tx-p); border-color: var(--tx-p); }
html[data-tl] .tx-st-done { color: var(--tx-st-done-t); background: var(--tx-st-done-b); border-color: var(--tx-st-done-l); }
html[data-tl] .tx-st-nos { color: var(--tx-st-nos-t); background: var(--tx-st-nos-b); border-color: var(--tx-st-nos-l); }

/* هاله مات پشت متن روی عکس (نه باکس) */
html[data-tl] .tx-halo { position: relative; isolation: isolate; }
html[data-tl] .tx-halo::before {
  content: ""; position: absolute; inset: -22% -10% -26% -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .26) 55%, transparent);
  filter: blur(22px); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html[data-tl] .tx-app *, html[data-tl] .tx-app *::before, html[data-tl] .tx-app *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

/* چیدمان‌های تازه حالت شب جدا ندارند (حریر/کتاب/مدار فقط روشن، مهتاب ذاتا تیره) ⇒ کلید شب/روز پنهان.
   اسکریپت بدون‌فلش layout ریشه هم برای این تنانت‌ها lightOnly است و کلاس dark نمی‌گذارد. */
html[data-tl] .theme-toggle { display: none !important; }
