/* هدف: استایل تب «محفل» (فاز R1) — سبک Midnight Glass، هم‌خانواده با بقیهٔ پنل
   مسیر: frontend/src/salon/ui/salon.css   اسپک: docs/SPEC-salon.md
   قاعدهٔ جهت: سنجهٔ بودجه همیشه LTR و از چپ پر می‌شود. */

.sa-wrap { display: flex; flex-direction: column; gap: 14px; }

/* ---------- فهرست محفل‌ها ---------- */
.sa-list-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sa-list-head h2 { font-size: 1.05rem; margin: 0 0 4px; display: flex; align-items: center; gap: 7px; }
.sa-list-head .spacer, .sa-bar .spacer { flex: 1; }
.sa-list-head button { margin-inline-start: auto; }
.sa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sa-card { padding: 13px 15px; display: flex; flex-direction: column; gap: 6px; }
.sa-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sa-card-topic { margin: 0; font-size: .82rem; color: var(--muted); }
.sa-card-names { margin: 0; font-size: .74rem; color: var(--faint); }
.sa-card-acts { display: flex; gap: 6px; margin-top: 4px; }
.sa-empty { display: grid; place-items: center; gap: 8px; padding: 34px 10px; color: var(--faint); text-align: center; }
.sa-empty p { margin: 0; font-size: .85rem; }

/* ---------- نوار بالا ---------- */
.sa-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; }
.sa-bar .sa-title { font-size: .9rem; }

/* ---------- اتاق کست (بازطراحی ۱۶ آبان ۱۴۰۵، هم‌سبک صحنه) ---------- */
.sa-room2 { display: flex; flex-direction: column; gap: 16px; }

.sa-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px;
  background: radial-gradient(60% 80% at 0% 100%, rgba(99, 102, 241, .10), transparent 70%), var(--surface); }
.sa-hero-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sa-hero-txt h2 { margin: 0; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.sa-hero-txt .hint { margin: -6px 0 2px; }
.sa-fld { display: flex; flex-direction: column; gap: 5px; }
.sa-fld > span { font-size: .74rem; color: var(--muted); }
.sa-fld input { font-size: .95rem; font-weight: 600; }
.sa-fld textarea { font-family: inherit; font-size: .9rem; line-height: 1.8; resize: vertical; }

.sa-prev { position: relative; min-height: 230px; border-radius: var(--r-md); border: 1px dashed var(--border); overflow: hidden; }
.sa-prev-felt { position: absolute; inset: 24% 21%; border-radius: 50%; display: grid; place-items: center; padding: 8px 14%;
  background: radial-gradient(65% 65% at 50% 42%, rgba(99, 102, 241, .18), rgba(255, 255, 255, .015) 72%);
  border: 1px solid var(--border-strong); box-shadow: inset 0 0 50px -20px rgba(139, 92, 246, .5); }
.sa-prev-felt span { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sa-prev-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: left .35s, top .35s; }
.sa-prev-seat .sa-ava { border-color: var(--c); }
.sa-prev-seat b { font-size: .68rem; font-weight: 500; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* کارت هر صندلی */
.sa-cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sa-cc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
  transition: border-color .2s, box-shadow .2s; }
.sa-cc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); opacity: .85; }
.sa-cc:hover, .sa-cc:focus-within { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); box-shadow: 0 10px 40px -24px var(--c); }
.sa-cc.human { background: linear-gradient(180deg, rgba(34, 211, 238, .06), transparent 60%), var(--surface); }
.sa-cc.muted { opacity: .55; }
.sa-cc.bad { border-color: rgba(248, 113, 113, .55); box-shadow: 0 0 0 2px rgba(248, 113, 113, .18); }
.sa-cc-top { display: flex; align-items: center; gap: 12px; }
.sa-cc-top .sa-face .sa-ava { border-color: var(--c); }
.sa-cc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sa-cc-id .sa-name { width: 100%; font-size: 1rem; font-weight: 600; background: transparent; border-color: transparent; padding-inline: 6px; }
.sa-cc-id .sa-name:hover, .sa-cc-id .sa-name:focus { border-color: var(--border-strong); background: rgba(255, 255, 255, .03); }
.sa-cc-acts { display: flex; gap: 2px; align-self: flex-start; }
.sa-cc-model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 7px; }
.sa-cc-model select { font-size: .78rem; }
.sa-cc-me { font-size: .78rem; color: #A5F3FC; display: flex; align-items: center; gap: 6px;
  border: 1px dashed rgba(34, 211, 238, .35); border-radius: var(--r-md); padding: 8px 10px; }
.sa-cc .sa-persona { width: 100%; resize: vertical; font-family: inherit; font-size: .83rem; line-height: 1.8; }
.sa-cc-adv summary { cursor: pointer; font-size: .74rem; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.sa-cc-adv summary::-webkit-details-marker { display: none; }
.sa-cc-adv summary svg { transition: transform .2s; }
.sa-cc-adv[open] summary svg { transform: rotate(180deg); }
.sa-cc-adv-in { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.sa-cc-adv-in input:not([type]) { font-size: .8rem; }
.sa-cc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.sa-cc-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: transparent; color: var(--muted);
  font-family: inherit; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.sa-cc-add b { font-size: .9rem; color: var(--txt); font-weight: 600; }
.sa-cc-add span { font-size: .74rem; }
.sa-cc-add:hover { border-color: rgba(139, 92, 246, .6); color: #DDD6FE; background: rgba(139, 92, 246, .06); }
.sa-cc-add.me:hover { border-color: rgba(34, 211, 238, .6); color: #A5F3FC; background: rgba(34, 211, 238, .06); }

.sa-room-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(11, 16, 32, .88); backdrop-filter: blur(8px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9); }
.sa-room-sum { display: flex; flex-direction: column; gap: 1px; }
.sa-room-sum b { font-size: .86rem; }
.sa-room-sum span { font-size: .72rem; color: var(--muted); }
.sa-room-bar .sa-errs { flex: 1; }
.sa-room-bar > .btn { margin-inline-start: auto; }

.sa-colors { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sa-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sa-dot.on { border-color: var(--txt); }
.sa-face { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; border-radius: 50%; }
.sa-face:hover .sa-ava { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.sa-mini { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.sa-num { width: 58px; }
.sa-errs { display: flex; flex-direction: column; gap: 3px; }
.sa-errs p { margin: 0; font-size: .78rem; color: var(--red); display: flex; align-items: center; gap: 5px; }

@media (max-width: 860px) {
  .sa-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sa-prev { min-height: 200px; }
  .sa-cc-grid { grid-template-columns: minmax(0, 1fr); }
  .sa-room-bar { position: static; border-radius: var(--r-lg); }
}

/* چهره‌ها */
.sa-ava { border-radius: 50%; border: 2px solid var(--border-strong); background: #0B1020; object-fit: cover; flex-shrink: 0; }

/* ---------- صحنه ---------- */
.sa-stream { overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; }

.sa-msg { display: flex; gap: 10px; }
.sa-msg-body { flex: 1; min-width: 0; }
.sa-msg-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.sa-msg-head b { font-size: .83rem; color: var(--c, var(--txt)); }
.sa-time { font-size: .68rem; color: var(--faint); }
.sa-msg-txt { font-size: .88rem; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  border-inline-start: 3px solid var(--c, var(--accent)); padding: 8px 11px; }
.sa-msg.me .sa-msg-txt { background: rgba(34, 211, 238, .07); }
.sa-msg.err .sa-msg-txt { color: #FCA5A5; border-color: rgba(248, 113, 113, .3); }
.sa-msg.whisper, .sa-msg.narration { align-items: center; gap: 8px; font-size: .78rem; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--r-md); padding: 6px 10px; }
.sa-wtag { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); white-space: nowrap; }
.sa-wtxt { flex: 1; }
.sa-dots { display: inline-flex; gap: 3px; }
.sa-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--c, var(--accent)); animation: sa-blink 1.2s infinite; }
.sa-dots i:nth-child(2) { animation-delay: .2s; } .sa-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sa-blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sa-dots i { animation: none; opacity: .7 } }

/* ---------- کنترل‌ها ---------- */
.sa-ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.sa-ctrl .spacer { flex: 1; }
.sa-note { font-size: .75rem; color: var(--amber); }
/* قاعدهٔ جهت: همیشه LTR، پر شدن از چپ */
.sa-meter { direction: ltr; width: 120px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sa-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22D3EE, #8B5CF6); transition: width .3s; }

.sa-human { display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 1px solid rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .06); }
.sa-human-lbl { font-size: .76rem; color: #A5F3FC; white-space: nowrap; }
.sa-human textarea { flex: 1; resize: none; font-family: inherit; font-size: .86rem; }

.sa-director { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--border); }
.sa-director input { flex: 1; min-width: 180px; font-size: .82rem; }
.sa-director select { font-size: .78rem; }

.sa-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; padding: 14px 16px; }
.sa-set label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.sa-set input[type="number"] { width: 92px; }

/* ---------- پنل صدا (R5): خروجی اوا استودیو ---------- */
.sa-voice { width: 230px; max-width: 100%; }
.sa-voice select { font-size: .76rem; }
.sa-voice-panel { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sa-vp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-vp-head h3 { margin: 0; font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.sa-vp-head .spacer { flex: 1; }
.sa-voice-panel .hint { margin: 0; }
.sa-vp-opts { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.sa-vp-opts label { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); }
.sa-vp-opts select { font-size: .78rem; }
.sa-vp-amb { flex: 1; min-width: 220px; }
.sa-vp-amb input { flex: 1; font-size: .8rem; }
.sa-vp-cast { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sa-vp-cast th { text-align: start; font-weight: 500; color: var(--muted); font-size: .72rem; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.sa-vp-cast td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sa-vp-cast td .select-wrap { display: inline-block; width: 230px; max-width: 100%; }
.sa-vp-cast td select { font-size: .76rem; }
.sa-vp-cast td .chip { margin-inline-start: 6px; }
.sa-vp-cast .muted { color: var(--muted); }
.sa-vp-warn { display: flex; flex-direction: column; gap: 3px; }
.sa-vp-warn p { margin: 0; font-size: .76rem; color: var(--amber); display: flex; align-items: center; gap: 5px; }
.sa-vp-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sa-vp-acts .spacer { flex: 1; }

.chip.tiny { font-size: .68rem; padding: 2px 8px; }
.chip.tiny.warn { color: var(--amber); border-color: rgba(251, 191, 36, .3); }
.chip.tiny.bad { color: #FCA5A5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }

/* ---------- لایهٔ ناپیدایی (R2): نوبتِ حذف‌شده فقط برای مجتبی دیده می‌شود ---------- */
.sa-msg.cut { opacity: .62; }
.sa-msg.cut .sa-msg-txt { border-style: dashed; border-color: rgba(248, 113, 113, .4); text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .5); }
.sa-msg.whisper.retry { border-color: rgba(248, 113, 113, .3); }
.chip.cyan { color: #A5F3FC; border-color: rgba(34, 211, 238, .32); }

@media (max-width: 760px) {
  .sa-topic { grid-template-columns: 1fr; }
  .sa-row { flex-direction: column; }
  .sa-name, .sa-prov, .sa-model { width: 100%; }
}

/* ======================================================================
   صحنهٔ محفل (بازطراحی ۱۶ آبان ۱۴۰۵): میز گرد + زیرنویس زنده + سیاههٔ کناری + نوار فرمان
   قانون جهت: ترمز صحنه، فیلم‌استریپ و سنجه همیشه LTR (چپ = اکنون/عقب، راست = بعدی/جلو)
   ====================================================================== */
.btn.on { color: #DDD6FE; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .12); }

.sa-theater { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; }
.sa-theater.log-off { grid-template-columns: minmax(0, 1fr); }
.sa-theater.log-off .sa-log { display: none; }

/* میز */
.sa-table { position: relative; height: clamp(460px, 62vh, 640px); border: 1px solid var(--border); border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(99, 102, 241, .10), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(139, 92, 246, .10), transparent 70%),
    var(--surface);
  overflow: hidden; }
.sa-felt { position: absolute; inset: 21% 20%; border-radius: 50%;
  background: radial-gradient(65% 65% at 50% 42%, rgba(99, 102, 241, .17), rgba(255, 255, 255, .015) 72%);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 80px -24px rgba(139, 92, 246, .45), 0 30px 80px -40px rgba(0, 0, 0, .8); }
.sa-felt-in { position: absolute; inset: 12% 13%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.sa-topic-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--faint);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* زیرنویس زنده وسط میز */
.sa-cap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .25s; }
.sa-cap-who { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; }
.sa-cap-who b { color: var(--c); font-weight: 600; }
.sa-cap-who .sa-ava { border-width: 1.5px; }
.sa-cap-st { font-size: .7rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.sa-cap.talk .sa-cap-st { color: #A5F3FC; border-color: rgba(34, 211, 238, .4); }
.sa-cap-txt { font-size: clamp(.98rem, 1.5vw, 1.16rem); line-height: 2; color: var(--txt); max-height: 8em; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word; scrollbar-width: none; text-wrap: pretty; }
.sa-cap-txt::-webkit-scrollbar { display: none; }
.sa-cap.think .sa-cap-txt { color: var(--muted); }
.sa-cap.said .sa-cap-txt { color: #C9D0E2; }
.sa-cap.empty .sa-cap-txt { font-size: .86rem; color: var(--faint); }

/* صندلی‌ها دور بیضی */
.sa-seats { position: absolute; inset: 0; pointer-events: none; }
.sa-table .sa-seat { position: absolute; width: 150px; transform: translate(-50%, -50%); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto;
  transition: transform .3s, opacity .3s; }
.sa-seat-ava { position: relative; line-height: 0; border-radius: 50%; transition: box-shadow .3s; }
.sa-seat-ava .sa-ava { border-width: 2px; border-color: var(--border-strong); background: #0B1020; }
.sa-seat-nm { font-size: .86rem; font-weight: 600; margin-top: 5px; color: var(--txt); }
.sa-seat-rl { font-size: .7rem; color: var(--faint); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-seat-tag { min-height: 20px; }
.sa-seat-tag .t { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--border); color: var(--muted); }
.sa-seat-tag .t.talk { color: #A5F3FC; border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .1); }
.sa-seat-tag .t.think { color: #DDD6FE; border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .1); }
.sa-seat-tag .t.you { color: #A5F3FC; border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .14); }
.sa-seat-tag .t.next { color: var(--muted); border-style: dashed; }
.sa-seat-tag .t.bad { color: #FCA5A5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.sa-seat.human .sa-seat-ava .sa-ava { border-color: rgba(34, 211, 238, .6); }

.sa-table .sa-seat.speaking .sa-seat-ava { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 36px -8px var(--c); }
.sa-table .sa-seat.speaking .sa-seat-ava .sa-ava,
.sa-table .sa-seat.talking .sa-seat-ava .sa-ava,
.sa-table .sa-seat.you .sa-seat-ava .sa-ava { border-color: var(--c); }
.sa-table .sa-seat.talking { transform: translate(-50%, -50%) scale(1.07); }
.sa-table .sa-seat.talking .sa-seat-ava { animation: sa-talk 1.1s ease-in-out infinite; }
.sa-table .sa-seat.you .sa-seat-ava { box-shadow: 0 0 0 4px rgba(34, 211, 238, .28), 0 0 34px -6px rgba(34, 211, 238, .9); }
.sa-seats:has(.talking, .speaking) .sa-seat:not(.talking, .speaking, .you) { opacity: .55; }
@keyframes sa-talk {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), 0 0 24px -8px var(--c) }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 30%, transparent), 0 0 44px -6px var(--c) } }

/* اکولایزر کوچک روی چهرهٔ گوینده */
.sa-eq { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; align-items: flex-end;
  height: 14px; padding: 2px 5px; border-radius: 999px; background: #0B1020; border: 1px solid var(--c); direction: ltr; }
.sa-eq i { width: 3px; background: var(--c); border-radius: 2px; animation: sa-eq .9s ease-in-out infinite; }
.sa-eq i:nth-child(2) { animation-delay: .15s } .sa-eq i:nth-child(3) { animation-delay: .3s } .sa-eq i:nth-child(4) { animation-delay: .45s }
.sa-seat.talking .sa-eq { display: inline-flex; }
@keyframes sa-eq { 0%, 100% { height: 3px } 50% { height: 9px } }

/* سیاههٔ کناری */
.sa-log { display: flex; flex-direction: column; min-height: 0; height: clamp(460px, 62vh, 640px);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.sa-log-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: .8rem; font-weight: 600;
  border-bottom: 1px solid var(--border); }
.sa-log-head .hint { margin: 0 auto 0 0; font-weight: 400; font-size: .68rem; }
.sa-log .sa-stream { flex: 1; min-height: 0; }
.sa-log .sa-msg-txt { font-size: .8rem; line-height: 1.75; padding: 6px 9px; }
.sa-log .sa-msg-ava .sa-ava { width: 28px; height: 28px; }
.sa-msg.talking .sa-msg-txt { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); }

/* نوار فرمان */
.sa-dock { padding: 0; overflow: hidden; }
.sa-dock-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.sa-dock-main .spacer { flex: 1; }
.sa-brake { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px; gap: 2px; }
.sa-brake .btn { border: 0; border-radius: 999px; }
.sa-brake .btn:disabled { opacity: .4; cursor: default; }
.sa-brake .btn.on { background: rgba(251, 191, 36, .14); color: var(--amber); }
.sa-live.on { color: #A5F3FC; border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .1); }
.sa-live-st { font-size: .72rem; color: var(--muted); }
.sa-replay.on { color: #FDE68A; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); }

.sa-film-wrap { display: inline-flex; align-items: center; gap: 8px; }
.sa-film-lbl { font-size: .7rem; color: var(--faint); }
.sa-film { display: inline-flex; align-items: center; gap: 4px; }
.sa-film-it { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px;
  border: 1px solid var(--border); font-size: .7rem; color: var(--muted); opacity: .7; }
.sa-film-it b { font-weight: 500; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-film-it .sa-ava { border-width: 1.5px; }
.sa-film-it.first { opacity: 1; color: var(--txt); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }

.sa-dock-meta { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; }
.sa-dock-meta .sa-meter { flex: 1; width: auto; max-width: 260px; }

.sa-human { padding: 12px 14px; }
.sa-human textarea { font-size: .92rem; }
.sa-dir-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--faint); white-space: nowrap; }

/* باریک: میز بیضی معنی ندارد ⇒ زیرنویس بالا، صندلی‌ها شبکه، سیاهه زیر */
@media (max-width: 980px) {
  .sa-theater { grid-template-columns: minmax(0, 1fr); }
  .sa-log { height: 380px; }
}
@media (max-width: 760px) {
  .sa-table { height: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
  .sa-felt { position: relative; inset: auto; border-radius: var(--r-md); min-height: 170px; }
  .sa-felt-in { position: relative; inset: auto; padding: 18px 14px; }
  .sa-seats { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .sa-table .sa-seat { position: static; width: auto; transform: none !important; padding: 8px 4px; border: 1px solid var(--border); border-radius: var(--r-md); }
  .sa-film-wrap { width: 100%; min-width: 0; }
  /* موبایل (۱۶ آبان ۱۴۰۵): فیلم‌استریپ در جای خودش بماند و افقی اسکرول بخورد؛ نوار فرمان نشکند */
  .sa-film { flex: 1; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sa-film::-webkit-scrollbar { display: none; }
  .sa-dock-main { gap: 6px; padding: 10px 10px; }
  .sa-dock-main .btn-primary { flex: 1 1 100%; justify-content: center; }
  .sa-brake { flex: 1 1 auto; justify-content: center; }
  .sa-brake .btn, .sa-dock-main .btn-sm { flex: 1 1 auto; justify-content: center; }
  .sa-dock-main .spacer { display: none; }
  .sa-live-st, .sa-note { flex: 1 1 100%; }
  .sa-human { flex-direction: column; align-items: stretch; }
  .sa-human textarea { width: 100%; }
  .sa-director input { min-width: 0; flex: 1 1 100%; }
  .sa-director select { flex: 1 1 40%; }
  .sa-log { height: 300px; }
  .sa-cap-txt { font-size: .95rem; line-height: 1.9; }
  .sa-table { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-table .sa-seat.talking .sa-seat-ava, .sa-eq i { animation: none; }
}
