/* جابه‌جایی اکانت — فقط روی همین دستگاه */
.etod-acc-slot { padding: 4px 12px 10px; }
.sb-foot .etod-acc-slot { padding: 0 0 8px; }

.etod-acc-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  font-size: 0.82rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.etod-acc-launch:hover {
  border-color: #a5b4fc;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}
.etod-acc-launch:active { transform: scale(0.985); }
.etod-acc-launch-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  background: #4f46e5;
}
.etod-acc-launch-avatar.student { background: #059669; }
.etod-acc-launch-avatar.parent { background: #7c3aed; }
.etod-acc-launch-avatar.manager { background: #0284c7; }
.etod-acc-launch-meta { min-width: 0; flex: 1; }
.etod-acc-launch-meta strong,
.etod-acc-launch-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etod-acc-launch-meta strong { font-size: 0.8rem; font-weight: 800; }
.etod-acc-launch-meta small { margin-top: 2px; font-size: 0.68rem; color: #64748b; font-weight: 600; }
.etod-acc-launch-go {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  padding: 4px 8px;
}

body.sbot-app .sb .etod-acc-launch {
  background: #ecfdf5;
  border: 1.5px solid #059669;
  color: #064e3b;
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}
body.sbot-app .sb .etod-acc-launch:hover {
  border-color: #047857;
  background: #d1fae5;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.16);
}
body.sbot-app .sb .etod-acc-launch-avatar.student {
  background: #047857;
  color: #fff;
}
body.sbot-app .sb .etod-acc-launch-meta strong { color: #064e3b; }
body.sbot-app .sb .etod-acc-launch-meta small { color: #047857; }
body.sbot-app .sb .etod-acc-launch-go {
  color: #fff;
  background: #047857;
}

body.pbot-app .sb .etod-acc-launch {
  background: #f5f3ff;
  border: 1.5px solid #7c3aed;
  color: #4c1d95;
  box-shadow: 0 1px 0 rgba(76, 29, 149, 0.06);
}
body.pbot-app .sb .etod-acc-launch:hover {
  border-color: #5b21b6;
  background: #ede9fe;
  box-shadow: 0 6px 16px rgba(91, 33, 182, 0.16);
}
body.pbot-app .sb .etod-acc-launch-avatar.parent {
  background: #5b21b6;
  color: #fff;
}
body.pbot-app .sb .etod-acc-launch-meta strong { color: #4c1d95; }
body.pbot-app .sb .etod-acc-launch-meta small { color: #6d28d9; }
body.pbot-app .sb .etod-acc-launch-go {
  color: #fff;
  background: #5b21b6;
}

body.mbot-app .sb .etod-acc-launch {
  background: #e0f2fe;
  border: 1.5px solid #0284c7;
  color: #0c4a6e;
  box-shadow: 0 1px 0 rgba(12, 74, 110, 0.06);
}
body.mbot-app .sb .etod-acc-launch:hover {
  border-color: #0369a1;
  background: #bae6fd;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}
body.mbot-app .sb .etod-acc-launch-avatar.manager {
  background: #0369a1;
  color: #fff;
}
body.mbot-app .sb .etod-acc-launch-meta strong { color: #0c4a6e; }
body.mbot-app .sb .etod-acc-launch-meta small { color: #0369a1; }
body.mbot-app .sb .etod-acc-launch-go {
  color: #fff;
  background: #0369a1;
}

.etod-acc-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.etod-acc-root[hidden] { display: none !important; }
.etod-acc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}
.etod-acc-sheet {
  position: relative;
  width: min(460px, 100%);
  max-height: min(88vh, 740px);
  background: #fff;
  color: #0f172a;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: etodAccIn .26s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 760px) {
  .etod-acc-root { align-items: center; padding: 24px; }
  .etod-acc-sheet {
    border-radius: 22px;
    max-height: min(82vh, 700px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  }
}
@keyframes etodAccIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.etod-acc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
}
.etod-acc-head h3 { margin: 0; font-size: 1.02rem; font-weight: 900; }
.etod-acc-head p { margin: 6px 0 0; font-size: 0.75rem; line-height: 1.7; color: #64748b; font-weight: 600; }
.etod-acc-x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.etod-acc-list {
  overflow: auto;
  padding: 6px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.etod-acc-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.etod-acc-row.is-active {
  border-color: #818cf8;
  background: #f5f7ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.etod-acc-open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}
.etod-acc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  background: #4f46e5;
}
.etod-acc-avatar.student { background: #059669; }
.etod-acc-avatar.parent { background: #7c3aed; }
.etod-acc-avatar.manager { background: #0284c7; }
.etod-acc-meta { min-width: 0; flex: 1; }
.etod-acc-meta strong,
.etod-acc-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etod-acc-meta strong { font-size: 0.86rem; font-weight: 800; }
.etod-acc-meta small { margin-top: 3px; font-size: 0.7rem; color: #64748b; font-weight: 600; }
.etod-acc-badge {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 800;
  color: #4338ca;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 4px 8px;
}
.etod-acc-row:not(.is-active) .etod-acc-badge { display: none; }
.etod-acc-remove {
  width: 42px;
  border: none;
  border-right: 1px solid #e2e8f0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.15rem;
  font-family: inherit;
}
.etod-acc-remove:hover { background: #fef2f2; color: #b91c1c; }
.etod-acc-confirm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border-right: 1px solid #e2e8f0;
  background: #fff7ed;
}
.etod-acc-confirm button {
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}
.etod-acc-confirm button[data-acc-remove] { background: #b91c1c; color: #fff; }
.etod-acc-confirm button[data-acc-cancel] { background: #fff; color: #475569; }
.etod-acc-add {
  margin: 6px 14px 16px;
  height: 46px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b, #4f46e5);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}
.etod-acc-add:hover { filter: brightness(1.05); }
.etod-acc-empty {
  padding: 18px 8px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.7;
}

body.mbot-app .etod-acc-sheet { border: 1px solid #bae6fd; }
body.mbot-app .etod-acc-row.is-active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}
body.mbot-app .etod-acc-badge { background: #e0f2fe; color: #0c4a6e; }
body.mbot-app .etod-acc-avatar.manager { background: #0369a1; color: #fff; }
body.mbot-app .etod-acc-meta strong { color: #0c4a6e; }
body.mbot-app .etod-acc-meta small { color: #0369a1; }

body.pbot-app .etod-acc-row.is-active {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
body.pbot-app .etod-acc-badge { background: #ede9fe; color: #5b21b6; }
body.pbot-app .etod-acc-avatar.parent { background: #5b21b6; color: #fff; }
body.pbot-app .etod-acc-meta strong { color: #4c1d95; }
body.pbot-app .etod-acc-meta small { color: #6d28d9; }

body.sbot-app .etod-acc-row.is-active {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}
body.sbot-app .etod-acc-badge { background: #d1fae5; color: #065f46; }
body.sbot-app .etod-acc-avatar.student { background: #047857; color: #fff; }
body.sbot-app .etod-acc-meta strong { color: #064e3b; }
body.sbot-app .etod-acc-meta small { color: #047857; }

.etod-acc-busy {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.etod-acc-busy[hidden] { display: none !important; }
.etod-acc-busy-card {
  width: min(320px, calc(100% - 32px));
  background: #fff;
  color: #0f172a;
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.etod-acc-busy-card strong { display: block; margin-top: 12px; font-size: 0.95rem; }
.etod-acc-busy-card span { display: block; margin-top: 6px; color: #64748b; font-size: 0.78rem; font-weight: 600; }
.etod-acc-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: #4f46e5;
  animation: etodAccSpin .7s linear infinite;
}
@keyframes etodAccSpin { to { transform: rotate(360deg); } }

.etod-acc-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 100001;
  max-width: min(420px, calc(100% - 24px));
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}
.etod-acc-toast[hidden] { display: none !important; }

.etod-acc-login {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.etod-acc-login h4 { margin: 0 0 6px; font-size: 0.86rem; font-weight: 900; color: #0f172a; }
.etod-acc-login .etod-acc-login-note {
  margin: 0 0 10px;
  font-size: 0.74rem;
  line-height: 1.7;
  color: #475569;
  font-weight: 600;
}
.etod-acc-login-list { display: flex; flex-direction: column; gap: 6px; }
.etod-acc-login-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
  color: #0f172a;
}
.etod-acc-login-item:hover { border-color: #a5b4fc; background: #f5f7ff; }
.etod-acc-login-item strong { display: block; font-size: 0.8rem; }
.etod-acc-login-item small { display: block; color: #64748b; font-size: 0.68rem; font-weight: 600; }
.etod-acc-login-back {
  margin-top: 8px;
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.etod-acc-login-alert {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.6;
}
