/* ==========================================================================
   extra.css — بخش‌های تازه: بازگرداندن فایل‌ها، استودیوی زیرنویس، دنیای متن،
   استیکرهای ویژه و جزئیات خروجی
   ========================================================================== */

/* ---------------- انتخاب دوباره‌ی فایل‌ها (پروژه‌های قدیمی) ---------------- */
.relink { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.relink-p { margin: 0; color: var(--tx2); font-size: 12.5px; line-height: 1.9; }
.relink-list { display: flex; flex-direction: column; gap: 8px; }
.relink-row {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s;
}
.relink-row .grow { display: flex; flex-direction: column; line-height: 1.5; }
.relink-row b { font-size: 13px; }
.relink-row small { font-size: 11px; color: var(--tx3); }
.relink-row.ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.07); }
.relink-row.ok small { color: var(--ok); }
.relink-row.ok .btn { background: rgba(52, 211, 153, 0.18); box-shadow: none; color: var(--ok); }
.relink-th {
  position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  background: var(--bg4); display: flex; align-items: center; justify-content: center; color: var(--tx3);
}
.relink-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet.relink-sheet { max-height: min(80%, 640px); }

.exp-relink { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px 4px 6px; }
.exp-relink-ic {
  width: 64px; height: 64px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: var(--ac-soft); color: var(--ac-l); box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.06);
}
.exp-relink b { font-size: 15px; }
.exp-relink p { margin: 0 0 6px; color: var(--tx2); font-size: 12.5px; line-height: 1.9; }

/* ==========================================================================
   استودیوی زیرنویس (ui/p-subs.js)
   ========================================================================== */
.sheet.studio-sheet { max-height: 94%; }
.sheet.studio-sheet .sheet-body { padding: 0; }
.sheet.studio-sheet.live { top: 0; max-height: none; height: 100%; border-radius: 0; border-top: 0; padding-bottom: 0; background: #0b0b12; }
.sheet.studio-sheet.live .sheet-grab,
.sheet.studio-sheet.live .sheet-head { display: none; }
.sheet.studio-sheet.live .sheet-body { overflow: hidden; display: flex; flex-direction: column; }
.sheet.studio-sheet.live .pnl { flex: 1 1 auto; min-height: 0; padding: 0; gap: 0; }
@media (min-width: 700px) {
  .sheet.modal-sheet.studio-sheet { width: min(520px, 94vw); }
  .sheet.modal-sheet.studio-sheet.live {
    top: 50%; bottom: auto; width: min(480px, 96vw); height: min(94vh, 980px); max-height: none;
    border-radius: 28px; border: 1px solid var(--line2); overflow: hidden;
  }
}

/* آی‌فریم برنامه‌ی زیرنویس */
.zs-wrap { position: relative; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; background: #0b0b12; }
.zs-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0b0b12; }
.zs-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(124, 92, 255, 0.25), transparent 62%), var(--bg);
  transition: opacity 0.4s var(--ease);
}
.zs-cover.out { opacity: 0; pointer-events: none; }
.zs-cover-in { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; max-width: 330px; }
.zs-cover-in b { font-size: 16.5px; font-weight: 900; }
.zs-cover-in small { color: var(--tx2); font-size: 12.5px; line-height: 1.9; }
.zs-cover-in .btn { margin-top: 8px; }
.zs-logo {
  width: 76px; height: 76px; border-radius: 26px; background: var(--grad); color: #fff; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-ac); animation: zsPulse 1.8s ease-in-out infinite;
}
.zs-logo .ic { width: 36px; height: 36px; }
.zs-logo.err { background: rgba(251, 87, 121, 0.14); color: var(--err); box-shadow: none; animation: none; }
.zs-dots { display: flex; gap: 6px; margin-top: 6px; direction: ltr; }
.zs-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-l); animation: zsDot 1.2s ease-in-out infinite; }
.zs-dots i:nth-child(2) { animation-delay: 0.15s; }
.zs-dots i:nth-child(3) { animation-delay: 0.3s; }
.zs-close {
  position: absolute; top: calc(12px + var(--safe-t)); left: 12px; width: 40px; height: 40px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--tx); display: flex; align-items: center; justify-content: center;
}
@keyframes zsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes zsDot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* صفحه‌ی شروع */
.sbx { display: flex; flex-direction: column; gap: 14px; padding: 2px 16px 18px; }
.sbx-demo {
  position: relative; height: 200px; border-radius: 22px; overflow: hidden; flex: 0 0 auto;
  background: #0d0b1d; border: 1px solid rgba(124, 92, 255, 0.3); display: flex; align-items: center; justify-content: center;
}
.sbx-orb { position: absolute; width: 190px; height: 190px; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: sbxFloat 8s ease-in-out infinite; }
.sbx-orb.a { background: #7c5cff; top: -70px; right: -40px; }
.sbx-orb.b { background: #22d3ee; bottom: -90px; left: -30px; animation-delay: -2.5s; }
.sbx-orb.c { background: #ec4899; top: 50px; left: 38%; width: 120px; height: 120px; opacity: 0.32; animation-delay: -5s; }
.sbx-phone {
  position: relative; width: 116px; height: 178px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(165deg, #2b2455, #100e20); border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(255, 255, 255, 0.03);
  transform: rotate(-4deg); animation: sbxTilt 6s ease-in-out infinite;
}
.sbx-scene { position: absolute; inset: 0; background: radial-gradient(60% 42% at 50% 34%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(180deg, rgba(124, 92, 255, 0.4), rgba(34, 211, 238, 0.14)); }
.sbx-scene::before { content: ""; position: absolute; left: 50%; top: 34px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.sbx-scene::after { content: ""; position: absolute; left: 50%; top: 80px; width: 82px; height: 70px; margin-left: -41px; border-radius: 42px 42px 12px 12px; background: rgba(255, 255, 255, 0.16); }
.sbx-cap { position: absolute; left: 5px; right: 5px; bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 3px; direction: rtl; font-weight: 900; font-size: 11px; line-height: 1.55; }
.sbx-cap b { padding: 1px 4px; border-radius: 6px; color: rgba(255, 255, 255, 0.45); transition: transform 0.25s var(--spring), background 0.25s, color 0.25s; }
.sbx-cap b.past { color: #fff; }
.sbx-cap b.on { color: #fff; background: linear-gradient(135deg, #7c5cff, #b388ff); transform: scale(1.14); box-shadow: 0 4px 12px rgba(124, 77, 255, 0.55); }
.sbx-cap.s1 b.on { background: #facc15; color: #111; box-shadow: 0 4px 12px rgba(250, 204, 21, 0.45); }
.sbx-cap.s2 b { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.sbx-cap.s2 b.on { background: none; box-shadow: none; color: #22d3ee; text-shadow: 0 0 10px rgba(34, 211, 238, 0.95), 0 0 2px #000; }
.sbx-badge {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px;
  border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 11px; font-weight: 800; color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sbx-badge .ic { color: #fde68a; }
.sbx-title {
  margin: 0; font-size: 19.5px; font-weight: 900; text-align: center; line-height: 1.5;
  background: linear-gradient(120deg, #c4b5fd, #f0abfc 45%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sbx-sub { margin: -8px 0 0; text-align: center; font-size: 12.5px; color: var(--tx2); line-height: 1.95; }
.sbx-langs > label { display: flex; align-items: center; gap: 6px; }
.sbx-langs .chips.wrap { gap: 7px; }
.sbx-langs .chip { height: 34px; padding: 0 14px; }
.sbx-langs .chip.on { background: var(--ac); color: #fff; box-shadow: 0 6px 16px -8px rgba(124, 92, 255, 0.9); }
.sbx-go {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 18px;
  background: linear-gradient(110deg, #7c5cff, #a855f7, #ec4899, #22d3ee, #7c5cff); background-size: 300% 100%;
  color: #fff; font-size: 16.5px; font-weight: 900; overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 16px 36px -14px rgba(124, 92, 255, 0.95); animation: sbxGrad 8s linear infinite;
  transition: transform 0.15s var(--ease), filter 0.2s;
}
.sbx-go i { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; }
.sbx-go::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent); transform: skewX(-18deg);
  animation: sbxShine 3.4s ease-in-out infinite;
}
.sbx-go:active { transform: scale(0.97); }
.sbx-go:disabled { filter: grayscale(0.7); animation: none; }
.sbx-go:disabled::after { display: none; }
.sbx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sbx-feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.sbx-feat i { width: 32px; height: 32px; border-radius: 11px; background: var(--ac-soft); color: var(--ac-l); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.sbx-feat b { font-size: 11.5px; }
.sbx-feat small { font-size: 9.5px; color: var(--tx3); line-height: 1.5; }
.sbx-resume { margin-top: -4px; }
@keyframes sbxFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, 14px); } }
@keyframes sbxTilt { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-5px); } }
@keyframes sbxGrad { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes sbxShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* در حال ساخت */
.sbx-prep { align-items: center; text-align: center; padding-top: 16px; }
.sbx-ring { position: relative; width: 152px; height: 152px; flex: 0 0 auto; }
.sbx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sbx-ring .bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.sbx-ring .fg { fill: none; stroke: url(#sbxg); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease); }
.sbx-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 30px; font-size: 26px; font-weight: 900; font-feature-settings: "tnum" 1; }
.sbx-ring-ic { position: absolute; top: 34px; left: 50%; margin-left: -14px; color: var(--ac-l); animation: zsPulse 1.6s ease-in-out infinite; }
.sbx-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: right; }
.sbx-step {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--tx3); transition: all 0.3s var(--ease);
}
.sbx-step i { width: 30px; height: 30px; border-radius: 10px; background: var(--bg4); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sbx-step span { flex: 1; }
.sbx-step em { opacity: 0; color: var(--ok); display: flex; transition: opacity 0.3s; }
.sbx-step.on { color: var(--tx); border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.09); }
.sbx-step.on i { background: var(--grad); color: #fff; box-shadow: var(--sh-ac); }
.sbx-step.done { color: var(--tx2); }
.sbx-step.done i { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.sbx-step.done em { opacity: 1; }

/* زیرنویس روی ویدیو */
.sbx-card { padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(34, 211, 238, 0.06)); border: 1px solid rgba(124, 92, 255, 0.3); }
.sbx-card-h { display: flex; align-items: center; gap: 12px; }
.sbx-card-h > i { width: 48px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-ac); flex: 0 0 auto; }
.sbx-card-h .grow { display: flex; flex-direction: column; line-height: 1.6; }
.sbx-card-h b { font-size: 14.5px; }
.sbx-card-h small { color: var(--tx2); font-size: 11.5px; }
.sbx-quote { font-size: 13px; color: var(--tx); background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 10px 12px; line-height: 1.9; }
.sbx-warn { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); }
.sbx-warn > i { color: var(--warn); flex: 0 0 auto; display: flex; }
.sbx-warn > div { flex: 1; display: flex; flex-direction: column; line-height: 1.75; min-width: 0; }
.sbx-warn b { font-size: 12.5px; }
.sbx-warn small { font-size: 11px; color: var(--tx2); }
.sbx-warn .btn { flex: 0 0 auto; }
.sbx-acts { margin-top: -2px; }

/* لایه‌ی زیرنویس روی خط زمان */
.tl-item.subs { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(167, 139, 250, 0.95); padding: 0 8px; color: #fff; }
.tl-item.subs .lbl { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.tl-item.subs .ic { color: #e9d5ff; }
.pane-body .sbx { padding: 2px 0 14px; }
.pane-body .sbx-go { font-size: 14px; min-height: 52px; padding: 6px 10px; }
.pane-body .sbx-go span { white-space: normal; line-height: 1.5; text-align: center; }
.pane-body .sbx-go i { width: 30px; height: 30px; flex: 0 0 auto; }

/* ==========================================================================
   دنیای متن (پنل «متن»)
   ========================================================================== */
.tw-hero {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px; border-radius: 20px; text-align: right;
  background: radial-gradient(120% 140% at 100% 0%, rgba(168, 85, 247, 0.55), transparent 55%), linear-gradient(120deg, #4c1d95, #7c3aed 45%, #0e7490);
  color: #fff; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(124, 58, 237, 0.9); transition: transform 0.15s var(--ease);
}
.tw-hero::after {
  content: ""; position: absolute; left: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%); pointer-events: none;
}
.tw-hero:active { transform: scale(0.98); }
.tw-hero-ic { width: 52px; height: 52px; border-radius: 17px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.tw-hero-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.tw-hero-t b { font-size: 16.5px; font-weight: 900; }
.tw-hero-t small { font-size: 11.5px; color: rgba(255, 255, 255, 0.82); }
.tw-hero-a { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #4c1d95; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6); }
.tw-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tw-q {
  height: 58px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); color: var(--tx);
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s var(--ease), background 0.2s;
}
.tw-q:active { transform: scale(0.96); }
.tw-q:hover { background: rgba(255, 255, 255, 0.07); }
.tw-q.q1 b { font-family: "AEF_pinar", "AEF_lalezar", var(--font); font-size: 22px; font-weight: 900; }
.tw-q.q2 b { font-size: 16px; font-weight: 800; }
.tw-q.q3 b { font-size: 13px; font-weight: 500; color: var(--tx2); }
.tw-count { font-size: 11px; font-weight: 700; color: var(--ac-l); background: var(--ac-soft); padding: 2px 9px; border-radius: 99px; }
.tw-recent { margin: 0 -16px; padding: 0 16px 4px; }
.tw-recent .tiles { display: flex; gap: 10px; }
.tw-recent .tile { flex: 0 0 132px; }
.pane-body .tw-recent { margin: 0 -14px; padding: 0 14px 4px; }

.tiles.text-world { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.tiles.text-world .th { aspect-ratio: 100 / 62; border-radius: 16px; background: linear-gradient(135deg, #1f2a44, #3b2a5a); }
.tiles.text-world .tile:nth-child(5n+2) .th { background: linear-gradient(135deg, #3a2232, #1d2b3f); }
.tiles.text-world .tile:nth-child(5n+3) .th { background: linear-gradient(135deg, #16343a, #2b2350); }
.tiles.text-world .tile:nth-child(5n+4) .th { background: linear-gradient(135deg, #3b2f1e, #2a1f3d); }
.tiles.text-world .tile:nth-child(5n+5) .th { background: linear-gradient(135deg, #1b1f3a, #3a1d32); }
.tiles.text-world .th::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, 0.10), transparent 70%); pointer-events: none; }
.tiles.text-world .th canvas { object-fit: contain; position: relative; }
.tiles.text-world .tile.on .th { border-color: var(--ac-l); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.tiles.text-world .corner.badge { top: 6px; left: 6px; height: 17px; font-size: 9.5px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); }
.tiles.text-world.motion .th { background: linear-gradient(135deg, #2e1065, #0c4a6e); }

/* ==========================================================================
   استیکرها (پنل «استیکر»)
   ========================================================================== */
.stk-hero {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; overflow: hidden; color: #fff;
  background: radial-gradient(110% 150% at 0% 0%, rgba(244, 63, 94, 0.5), transparent 55%), linear-gradient(120deg, #3b0764, #7e22ce 52%, #be123c);
  box-shadow: 0 14px 30px -18px rgba(190, 18, 60, 0.9);
}
.stk-hero::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 204, 21, 0.28), transparent 65%); pointer-events: none; }
.stk-hero-t { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.65; min-width: 0; }
.stk-hero-t b { font-size: 15px; font-weight: 900; }
.stk-hero-t small { font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.stk-hero-art { position: relative; z-index: 1; width: 108px; height: 66px; flex: 0 0 auto; }
.stk-hero-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.stk-hero-art img:nth-child(1) { width: 74px; height: 52px; left: 0; top: 12px; transform: rotate(-8deg); }
.stk-hero-art img:nth-child(2) { width: 54px; height: 54px; right: 0; top: -2px; animation: stkBob 3.2s ease-in-out infinite; }
.stk-hero-art img:nth-child(3) { width: 30px; height: 30px; left: 48px; top: -6px; animation: stkTw 2.4s ease-in-out infinite; }
@keyframes stkBob { 0%, 100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes stkTw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.78); } }
@media (prefers-reduced-motion: reduce) { .stk-hero-art img { animation: none !important; } }

.tiles.stk-tiles { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.tiles.stk-tiles .nm { display: none; }
.tiles.stk-tiles .th.stk-th { border-radius: 16px; background: radial-gradient(circle at 50% 30%, #3b3653, #22212e 72%); }
.tiles.stk-tiles .th img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); transition: transform 0.2s var(--ease); }
.tiles.stk-tiles .tile:hover .th img { transform: scale(1.07); }
.tiles.stk-tiles .tile.on .th { border-color: var(--ac-l); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.tiles.stk-tiles.cat-frames .th img { width: 90%; height: 90%; }
.tiles.stk-tiles.hist .th.stk-th {
  background-color: #2a2a38; background-image: linear-gradient(45deg, #232331 25%, transparent 25%), linear-gradient(-45deg, #232331 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #232331 75%), linear-gradient(-45deg, transparent 75%, #232331 75%);
  background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.tiles.stk-tiles.hist .th img { width: 88%; height: 88%; filter: none; }
/* استیکرهای متحرک */
.ast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 10px; }
.ast-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: center; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.ast-card.wide { grid-column: 1 / -1; }
.ast-th {
  position: relative; height: 112px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2);
  background: radial-gradient(120% 140% at 50% 0%, #3b3653, #1f1e2a 70%); transition: transform 0.18s var(--ease), border-color 0.18s;
}
.ast-card.wide .ast-th { height: 116px; background: radial-gradient(120% 160% at 50% 0%, #34405e, #1c1f2b 72%); }
.ast-th canvas { display: block; width: 100%; height: 100%; }
.ast-card:hover .ast-th { border-color: var(--ac-l); }
.ast-card:active .ast-th { transform: scale(0.97); }
.ast-card .nm { font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-del {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 10, 15, 0.7); color: #fff;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.22); z-index: 2;
}
.stk-del:hover { background: var(--err); }
.stk-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; text-align: right; color: var(--tx);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.12)); border: 1px dashed rgba(155, 132, 255, 0.55);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.stk-pick:active { transform: scale(0.98); }
.stk-pick:hover { background: linear-gradient(120deg, rgba(124, 92, 255, 0.3), rgba(34, 211, 238, 0.18)); }
.stk-pick-ic { width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #7c5cff, #22d3ee); box-shadow: 0 10px 20px -10px rgba(124, 92, 255, 0.9); }
.stk-pick-t { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.65; min-width: 0; }
.stk-pick-t b { font-size: 14.5px; font-weight: 800; }
.stk-pick-t small { font-size: 11px; color: var(--tx2); }
.stk-pick > .ic { color: var(--tx2); flex: 0 0 auto; }
.stk-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); color: var(--tx2); font-size: 12.5px; text-align: center; }
.stk-empty .ic { opacity: 0.6; }

/* استیکر روی خط زمان */
.tl-item .tl-stk { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)); }

/* ==========================================================================
   خروجی: مقصد انتشار
   ========================================================================== */
.exp-dest { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.exp-dest-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--tx2); }
.exp-dest-row { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.exp-dest-row::-webkit-scrollbar { display: none; }
.exp-d {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 10px 4px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1.5px solid var(--line); color: var(--tx2); font-size: 11.5px; font-weight: 700;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
}
.exp-d:active { transform: scale(0.95); }
.exp-d i { width: 38px; height: 38px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: #3a3a4c; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.8); }
.exp-d span { white-space: nowrap; }
.exp-d.on { border-color: var(--ac); background: var(--ac-soft); color: var(--tx); }
.exp-d.d-custom i { background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.exp-d.d-insta i { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.exp-d.d-tiktok i { background: #111; box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.exp-d.d-yt i, .exp-d.d-shorts i { background: linear-gradient(135deg, #ff4d4d, #e00000); }
.exp-d.d-aparat i { background: linear-gradient(135deg, #f43f7a, #c8104f); }
.exp-d.d-tg i { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.exp-d.d-wa i { background: linear-gradient(135deg, #3ee07a, #1faa53); }
.exp-d.d-rubika i { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.exp-d.d-eitaa i { background: linear-gradient(135deg, #fbbf24, #f97316); }
.exp-dest-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ok, #34d399); padding: 2px 2px; line-height: 1.8; }
.exp-dest-tip > span, .exp-dest-tip { min-width: 0; }
.exp-dest-tip .ic { flex: 0 0 auto; margin-left: 4px; vertical-align: -2px; }
.exp-dest-tip.warn { color: var(--tx); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 14px; padding: 8px 10px; }
.exp-dest-tip.warn > span { display: flex; align-items: center; gap: 6px; }
.exp-dest-tip.warn > span .ic { color: var(--warn, #fbbf24); margin: 0; }
.exp-dest-tip .btn { flex: 0 0 auto; white-space: nowrap; }
.pane-body .exp-dest-row, .modal .exp-dest-row { margin: 0 -14px; padding: 2px 14px 4px; }
@media (min-width: 900px) and (hover: hover) {
  .exp-dest-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 4px; }
  .pane-body .exp-dest-row, .modal .exp-dest-row { margin: 0; padding: 2px 0 4px; }
  .exp-d { width: calc((100% - 32px) / 5); }
}

/* نشانگر خروجی: بستن، حالت «نیاز به فایل» */
.job-pill .jp-x { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--tx2); background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.job-pill .jp-x:hover { background: rgba(255, 255, 255, 0.14); color: var(--tx); }
.job-pill.gone { display: none; }
.job-pill.warn { border-color: rgba(251, 191, 36, 0.5); }
.job-pill.warn .jp-ic { background: linear-gradient(135deg, #f59e0b, #f97316); }
.exp-relink-names { font-size: 12px; font-weight: 700; color: var(--tx); background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 6px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-relink .btn.ghost { color: var(--tx2); }

/* ضبط صدا: نبودِ دسترسی به میکروفون */
.rec-denied { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); margin-top: 10px; }
.rec-denied.hide, .rec-alt.hide { display: none; }
.rec-denied-t { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.9; color: var(--tx); }
.rec-denied-t .ic { color: var(--warn, #fbbf24); flex: 0 0 auto; margin-top: 4px; }
.rec-alt { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 8px; font-size: 11.5px; color: var(--tx2); border-radius: 12px; }
.rec-alt:hover { background: rgba(255, 255, 255, 0.05); color: var(--tx); }

/* برچسب «پیشنهادی/پیش‌فرض» روی گزینه‌های خروجی */
.seg .seg-tag { display: block; font-style: normal; font-size: 9px; font-weight: 700; line-height: 1.2; color: var(--ac-l); margin-top: 1px; }
.seg button.on .seg-tag { color: var(--ok, #34d399); }
.seg button span { line-height: 1.2; text-align: center; }
.exp-tip { font-size: 11.5px; line-height: 1.8; color: var(--warn, #fbbf24); background: rgba(251, 191, 36, 0.07); border-radius: 10px; padding: 6px 10px; margin-top: -4px; }

/* ==========================================================================
   متن به گفتار آلفا (پنل «متن به گفتار»)
   ========================================================================== */
.vx { display: flex; flex-direction: column; gap: 12px; }
.vx-hero {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 150% at 100% 0%, rgba(236, 72, 153, 0.45), transparent 55%), linear-gradient(120deg, #312e81, #6d28d9 50%, #0e7490);
  box-shadow: 0 14px 30px -18px rgba(109, 40, 217, 0.9);
}
.vx-hero-ic { width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.vx-hero-t { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.65; min-width: 0; }
.vx-hero-t b { font-size: 15px; font-weight: 900; }
.vx-hero-t small { font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.vx-hero-wave { display: flex; align-items: center; gap: 3px; height: 34px; flex: 0 0 auto; }
.vx-hero-wave i { width: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); animation: vxWave 1.1s ease-in-out infinite; }
.vx-hero-wave i:nth-child(1) { height: 30%; animation-delay: -0.9s; } .vx-hero-wave i:nth-child(2) { height: 70%; animation-delay: -0.7s; }
.vx-hero-wave i:nth-child(3) { height: 45%; animation-delay: -0.5s; } .vx-hero-wave i:nth-child(4) { height: 95%; animation-delay: -0.3s; }
.vx-hero-wave i:nth-child(5) { height: 55%; animation-delay: -0.6s; } .vx-hero-wave i:nth-child(6) { height: 80%; animation-delay: -0.2s; }
.vx-hero-wave i:nth-child(7) { height: 35%; animation-delay: -0.4s; }
@keyframes vxWave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .vx-hero-wave i { animation: none; } }
.vx-tbox { position: relative; }
.vx-text { min-height: 104px; padding-bottom: 26px; line-height: 1.9; }
.vx-cnt { position: absolute; left: 12px; bottom: 8px; font-size: 10.5px; color: var(--tx3, var(--tx2)); pointer-events: none; }
.vx-cnt.warn { color: var(--warn, #fbbf24); }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.vx-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, 0.035); border: 1.5px solid var(--line); color: var(--tx); min-width: 0;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
}
.vx-card:active { transform: scale(0.96); }
.vx-card.on { border-color: var(--ac); background: var(--ac-soft); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }
.vx-card b { font-size: 12px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-card small { font-size: 9px; color: var(--tx2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-av { position: relative; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #3b82f6, #7c3aed); padding: 2px; flex: 0 0 auto; }
.vx-av.f { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.vx-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; background: #2a2a38; }
.vx-av.mine { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #10b981, #0ea5e9); }
.vx-av.add { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); border: 1.5px dashed rgba(155, 132, 255, 0.6); color: var(--ac-l); }
.vx-ini { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; color: #fff; background: rgba(0, 0, 0, 0.15); }
.vx-card.on .vx-av::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ac-l); }
.vx-play {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 15, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); z-index: 2;
}
.vx-play.playing { background: var(--ac); border-color: transparent; }
.vx-play.big { position: static; width: 34px; height: 34px; flex: 0 0 auto; }
.vx-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 15, 0.6); color: var(--tx2); z-index: 2; }
.vx-del:hover { background: var(--err); color: #fff; }
.vx-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.vx-eq b { width: 2px; background: #fff; border-radius: 1px; animation: vxEq 0.8s ease-in-out infinite; }
.vx-eq b:nth-child(1) { height: 60%; } .vx-eq b:nth-child(2) { height: 100%; animation-delay: -0.3s; } .vx-eq b:nth-child(3) { height: 40%; animation-delay: -0.5s; }
@keyframes vxEq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.vx-tones .chip { white-space: nowrap; }
.vx-go { gap: 10px; }
.vx-go .vx-go-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; }
.vx-go .vx-go-av img { width: 100%; height: 100%; object-fit: cover; }
.vx-go.busy { opacity: 0.85; }
.vx-note { font-size: 11px; color: var(--tx2); text-align: center; margin-top: -4px; }
.vx-note:empty { display: none; }
/* ساخت «صدای من» */
.vx-new { display: flex; flex-direction: column; gap: 12px; }
.vx-new-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 4px 2px; }
.vx-new-hero b { font-size: 15px; }
.vx-new-hero small { font-size: 11.5px; color: var(--tx2); line-height: 1.9; }
.vx-new-orb { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 14px 30px -14px rgba(14, 165, 233, 0.9); }
.vx-src { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vx-recbtn.on { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.vx-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: vxBlink 1s infinite; flex: 0 0 auto; }
@keyframes vxBlink { 50% { opacity: 0.25; } }
.vx-src-st { display: none; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(16, 185, 129, 0.09); border: 1px solid rgba(16, 185, 129, 0.35); font-size: 12px; line-height: 1.8; }
.vx-src-st.on { display: flex; }
.vx-src-st.warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.35); }
@media (min-width: 900px) { .vx-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } }
.vx .sec { padding: 0; border: 0; }
.vx .sec-t { margin: 4px 0 -4px; }
.vx .pchips { margin-top: -4px; }

/* ==========================================================================
   حرکت آهسته‌ی نرم: کل کلیپ / قسمتی از کلیپ
   ========================================================================== */
.sm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.sm-mode {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 11px; border-radius: 16px;
  background: var(--bg3); border: 1px solid var(--line2); color: var(--tx); text-align: center; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.sm-mode i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(244, 63, 94, 0.14); color: #fb7185; margin-bottom: 2px; }
.sm-mode b { font-size: 13.5px; font-weight: 800; }
.sm-mode small { font-size: 11px; color: var(--tx2); line-height: 1.5; }
.sm-mode.on { border-color: #fb7185; background: linear-gradient(160deg, rgba(244, 63, 94, 0.18), rgba(124, 92, 255, 0.12)); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16); }
.sm-mode.on i { background: linear-gradient(135deg, #f43f5e, #a855f7); color: #fff; }
.sm-part { margin-bottom: 14px; }
.sm-cap { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx2); margin: 0 2px 10px; }
.sm-prev { display: flex; justify-content: center; margin-top: 10px; }
.sm-info { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--tx2); margin: 2px 0 12px; text-align: center; }

/* نوار انتخاب بازه روی تصاویر کلیپ */
.rs { user-select: none; -webkit-user-select: none; }
.rs-strip { position: relative; height: 64px; margin: 0 14px; border-radius: 12px; background: #1c1c28; touch-action: none; }
.rs-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 12px; display: block; }
.rs-dim { position: absolute; top: 0; bottom: 0; background: rgba(8, 8, 12, 0.64); }
.rs-dim:nth-child(2) { border-radius: 12px 0 0 12px; }
.rs-dim:nth-child(3) { border-radius: 0 12px 12px 0; }
.rs-sel {
  position: absolute; top: -4px; bottom: -4px; border: 3px solid #fbbf24; border-radius: 10px; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 8px 20px -8px rgba(251, 191, 36, 0.7);
}
.rs-sel.on { cursor: grabbing; background: rgba(251, 191, 36, 0.08); }
.rs-h { position: absolute; top: -4px; bottom: -4px; width: 30px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: ew-resize; z-index: 2; }
.rs-h.l { left: -17px; }
.rs-h.r { right: -17px; }
.rs-h i { position: relative; width: 14px; height: 42px; border-radius: 7px; background: #fbbf24; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.rs-h i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 13px; bottom: 13px; border-left: 2px solid rgba(0, 0, 0, 0.45); border-right: 2px solid rgba(0, 0, 0, 0.45); }
.rs-h.on i { transform: scale(1.12); }
.rs-ph { position: absolute; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: #fff; border-radius: 2px; pointer-events: none; box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); z-index: 1; }
.rs-labs { display: flex; justify-content: space-between; align-items: center; margin: 10px 14px 0; font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.rs-lm { color: #fbbf24; font-weight: 800; font-size: 12.5px; }

/* صفحه‌ی خانه: انتخاب نوع حرکت آهسته */
.smc-t { font-size: 13px; color: var(--tx2); margin: 0 0 12px; text-align: center; }
.smc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.smc-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 16px; border-radius: 20px; color: #fff; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9); transition: transform 0.15s var(--ease);
}
.smc-card.p { background: radial-gradient(120% 120% at 0% 0%, rgba(251, 191, 36, 0.38), transparent 60%), linear-gradient(150deg, #be123c, #7e22ce); }
.smc-card.a { background: radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.38), transparent 60%), linear-gradient(150deg, #1d4ed8, #7c3aed); }
.smc-card i { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.smc-card b { font-size: 15px; font-weight: 900; }
.smc-card small { font-size: 11px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.smc-card:active { transform: scale(0.97); }

/* صدای هوشمند */
.av-opts { margin: 2px 0 10px; }
.kv.tgl.has-note > span:first-child { flex-wrap: wrap; row-gap: 2px; }
.av-note { flex-basis: 100%; padding-inline-start: 22px; font-size: 11px; color: var(--tx3); line-height: 1.5; }

/* پاک‌کن جادویی */
.er-ov { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: auto; touch-action: none; z-index: 3; cursor: crosshair; }
.er-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.55; outline: 1.5px dashed rgba(255, 255, 255, 0.6); outline-offset: -1px; }
.er-dot { position: absolute; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); pointer-events: none; }
.stage.erase-mode .selbox, .stage.erase-mode .mask-ov { display: none !important; }
.er-tip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.7; color: #fff; margin-bottom: 10px;
  background: linear-gradient(120deg, rgba(255, 45, 85, 0.22), rgba(124, 92, 255, 0.18)); border: 1px solid rgba(255, 45, 85, 0.35); }
.er-tip .ic { flex: 0 0 auto; color: #ff6b8b; }
.er-warn { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--warn); margin: -2px 2px 10px; }
.er-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 12px; }
.er-t { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line2); color: var(--tx2); font-size: 11.5px; }
.er-t .ic { width: 20px; height: 20px; }
.er-t.on { border-color: #ff2d55; color: #fff; background: rgba(255, 45, 85, 0.16); }
.er-t:disabled { opacity: 0.45; }
.er-hint { font-size: 11.5px; color: var(--tx3); line-height: 1.6; margin: -4px 2px 12px; }

/* فایل پروژه پیدا نشد: دکمه‌ی «انتخاب دوباره» روی صحنه */
.job-pill.lost-pill { cursor: pointer; }
.job-pill.lost-pill .jp-txt small { white-space: normal; line-height: 1.6; }
.job-pill.lost-pill .lp-go { flex: 0 0 auto; pointer-events: none; gap: 4px; padding: 0 10px; height: 30px; }

/* اکو و فضای صدا */
.ec-h { font-size: 12px; font-weight: 800; color: var(--tx2); margin: 4px 2px 8px; }
.ec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ec-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 16px; min-width: 0;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--tx); text-align: center; transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.ec-card i { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(56, 189, 248, 0.13); color: #7dd3fc; margin-bottom: 2px; }
.ec-card b { font-size: 12.5px; font-weight: 800; }
.ec-card small { font-size: 10px; color: var(--tx2); line-height: 1.45; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ec-card:active { transform: scale(0.96); }
.ec-card.on { border-color: #38bdf8; background: linear-gradient(160deg, rgba(56, 189, 248, 0.18), rgba(124, 92, 255, 0.12)); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16); }
.ec-card.on i { background: linear-gradient(135deg, #0ea5e9, #8b5cf6); color: #fff; }
.ec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; margin: 6px 0 10px; }
.ec-row .btn { justify-content: center; }
.ec-pv.on { border-color: #38bdf8; color: #7dd3fc; }
@media (max-width: 360px) { .ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* کارت «اکو و فضای صدا» بالای «تغییر صدا» */
.vfx-echo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px; text-align: right; color: var(--tx);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 92, 255, 0.1)); border: 1px solid rgba(56, 189, 248, 0.35); }
.vfx-echo > i { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); color: #fff; }
.vfx-echo > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vfx-echo b { font-size: 13px; font-weight: 800; }
.vfx-echo small { font-size: 11px; color: var(--tx2); line-height: 1.5; }
.vfx-echo > .ic { color: var(--tx2); flex: 0 0 auto; }
