/* 8pa — هشت‌پا | استایل تلگرام‌گونهٔ RTL */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e1420; --panel: #17202e; --panel2: #1d2838; --panel3: #243044;
  --border: #263349; --text: #e8eef7; --muted: #93a1b5; --muted2: #66758c;
  --accent: #7c6cf5; --accent-soft: rgba(124,108,245,.16);
  --own: #3d3480; --own2: #46399a; --own-fg: #fff; --own-meta: rgba(255,255,255,.55);
  --chat-bg: #131b29; --bubble: #1d2838;
  --pill-bg: rgba(10,15,26,.78); --tabs-bg: rgba(23,32,46,.92); --task-bg: rgba(14,20,32,.35);
  --green: #4cd97b; --blue: #65aadd; --orange: #ffb454; --red: #ff6b6b;
  --r: 14px; --shadow: 0 8px 30px rgba(0,0,0,.35);
  --sab: env(safe-area-inset-bottom, 0px);
  --wm: none;
}
html[data-theme="light"] {
  --bg: #f4f6fa; --panel: #ffffff; --panel2: #eef1f7; --panel3: #e3e8f1;
  --border: #d9e0ec; --text: #1a2334; --muted: #5b6a82; --muted2: #8894a8;
  --accent: #6a5ae8; --accent-soft: rgba(106,90,232,.12);
  --own: #cdc3ff; --own2: #e0daff; --own-fg: #251d55; --own-meta: rgba(37,29,85,.5);
  --chat-bg: #e7ebf3; --bubble: #ffffff;
  --pill-bg: rgba(255,255,255,.9); --tabs-bg: rgba(255,255,255,.93); --task-bg: #f2f4fa;
  --shadow: 0 8px 30px rgba(30,40,70,.14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button, [role="button"], .chat-item, .switch, .agent-card, .mention-item, .bcard, .task-card, .mt-item { touch-action: manipulation; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button:active, .tab:active, .fab:active, .send-btn:active { transform: scale(.96); }
button, .switch i, .tab { transition: background .15s, color .15s, transform .12s, filter .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Vazirmatn', -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px; line-height: 1.65; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #2c3a52; border-radius: 3px; }

#app { height: 100dvh; display: flex; flex-direction: column; }
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.boot-t { font-size: 22px; font-weight: 700; }
.boot-s { color: var(--muted); font-size: 13px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--panel3); color: var(--text); }
.btn.danger { background: transparent; color: var(--red); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
}
.icon-btn:hover { background: var(--panel3); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

.field { width: 100%; background: var(--panel2); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none; transition: border-color .15s; font-size: 16px; }
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--muted2); }
label.lbl { display: block; font-size: 12.5px; color: var(--muted); margin: 14px 2px 6px; }

/* ---------- آواتار ---------- */
.ava { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: 0 0 auto; position: relative; user-select: none; }
.ava.c0 { background: linear-gradient(135deg,#ff885e,#e17076); }
.ava.c1 { background: linear-gradient(135deg,#ffcd6a,#eda86c); }
.ava.c2 { background: linear-gradient(135deg,#82b1ff,#665fff); }
.ava.c3 { background: linear-gradient(135deg,#a0de7e,#54cb68); }
.ava.c4 { background: linear-gradient(135deg,#53edd6,#28c9b7); }
.ava.c5 { background: linear-gradient(135deg,#72d5fd,#2a9ef1); }
.ava.c6 { background: linear-gradient(135deg,#9a8cff,#6a58e8); }
.ava.c7 { background: linear-gradient(135deg,#ff8aae,#d95574); }
.ava.agent { background: var(--panel3); padding: 0; overflow: hidden; }
.ava.agent img { width: 100%; height: 100%; display: block; }
.mini-ava { width: 15px; height: 15px; border-radius: 50%; vertical-align: -3px; margin-inline-end: 2px; }
.ci-last svg, .tc-chip svg { width: 13px; height: 13px; vertical-align: -2.5px; }
.mt-sub .due-w svg { width: 12px; height: 12px; vertical-align: -2px; }
.online-dot { position: absolute; bottom: 1px; left: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--panel); }

/* ---------- ورود ---------- */
.auth { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.auth-card { width: 100%; max-width: 380px; text-align: center; }
.auth-card .logo { width: 92px; height: 92px; margin-bottom: 6px; }
.auth-card h1 { font-size: 24px; margin: 4px 0 2px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-card form { text-align: right; }
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 20px; }
.demo-code { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 12px; padding: 10px; margin-top: 14px; font-size: 13.5px; }
.demo-code b { font-size: 20px; letter-spacing: 4px; }
.otp-in { text-align: center; letter-spacing: 10px; font-size: 22px; font-weight: 700; direction: ltr; }

/* ---------- چیدمان اصلی ---------- */
.main { flex: 1; display: flex; min-height: 0; }
.side { width: 100%; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pane { display: none; flex: 1; min-width: 0; flex-direction: column; background-color: var(--chat-bg); background-image: var(--wm); }
@media (min-width: 900px) {
  .side { width: 380px; border-left: 1px solid var(--border); }
  .pane { display: flex; }
  .pane.empty { align-items: center; justify-content: center; }
}
@media (max-width: 899.5px) {
  .main.in-chat .side { display: none; }
  .main.in-chat .pane { display: flex; }
}
.pane-empty-hint { background: var(--pill-bg); color: var(--muted); padding: 8px 18px; border-radius: 20px; font-size: 13.5px; }
.pane-empty { text-align: center; padding: 30px; }
.pane-empty img { width: 96px; height: 96px; filter: drop-shadow(0 10px 26px rgba(106,90,232,.35)); }
.pane-empty h3 { margin: 12px 0 4px; font-size: 21px; }
.pane-empty p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.pane-empty .hints { display: flex; flex-direction: column; gap: 8px; margin: 0 auto 20px; max-width: 300px; }
.pane-empty .hint { display: flex; align-items: center; gap: 10px; background: var(--pill-bg); border: 1px solid var(--border); border-radius: 13px; padding: 9px 13px; font-size: 12.5px; color: var(--muted); text-align: right; }
.pane-empty .hint svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }

/* ---------- هدر لیست ---------- */
.top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.top .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; flex: 1; }
.top .brand img { width: 30px; height: 30px; }
.search-wrap { padding: 0 12px 8px; }
.search-wrap .field { border-radius: 20px; padding: 8.5px 16px; background: var(--panel2); }

/* ---------- لیست چت ---------- */
.list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 76px; }
.chat-item { display: flex; gap: 12px; padding: 9px 13px; cursor: pointer; align-items: center; }
.chat-item:hover, .chat-item.active { background: var(--panel2); }
.chat-item .ava { width: 54px; height: 54px; font-size: 19px; }
.ci-body { flex: 1; min-width: 0; }
.ci-top { display: flex; align-items: baseline; gap: 8px; }
.ci-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ci-time { color: var(--muted2); font-size: 11.5px; flex: 0 0 auto; }
.ci-bottom { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.ci-last { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ci-last b { color: var(--text); font-weight: 500; }
.badge { background: var(--accent); color: #fff; min-width: 21px; height: 21px; border-radius: 11px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; flex: 0 0 auto; }
.chip-tasks { font-size: 11px; color: var(--blue); background: rgba(101,170,221,.12); padding: 1px 8px; border-radius: 9px; flex: 0 0 auto; }
.empty-list { text-align: center; color: var(--muted); padding: 60px 30px; }
.empty-list img { width: 70px; opacity: .7; margin-bottom: 10px; }

/* ---------- FAB و ناوبری ---------- */
.fab { position: absolute; bottom: calc(74px + var(--sab)); left: 18px; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: #fff; border: 0; box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }
.fab svg { width: 26px; height: 26px; }
.tabs { position: absolute; bottom: 0; right: 0; left: 0; display: flex; background: var(--tabs-bg); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: var(--sab); z-index: 6; }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px 0 7px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; position: relative; }
.tab.active { color: var(--accent); }
.tab svg { width: 24px; height: 24px; }
.tab .badge { position: absolute; top: 3px; right: calc(50% - 26px); }
.side-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- صفحهٔ چت ---------- */
.chat-top { display: flex; align-items: center; gap: 11px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--border); cursor: pointer; z-index: 3; }
.chat-top .ava { width: 42px; height: 42px; font-size: 16px; }
.ct-body { flex: 1; min-width: 0; }
.ct-title { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sub .typing { color: var(--accent); }

.msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 8px; display: flex; flex-direction: column; }
.day-sep { align-self: center; background: var(--pill-bg); color: var(--muted); font-size: 12px; padding: 3px 13px; border-radius: 13px; margin: 9px 0; }
.sys-msg { align-self: center; background: var(--pill-bg); color: var(--muted); font-size: 12.5px; padding: 4px 14px; border-radius: 14px; margin: 4px 0; max-width: 88%; text-align: center; }

.mrow { display: flex; gap: 8px; margin: 1.5px 0; align-items: flex-end; }
.mrow.own { flex-direction: row-reverse; }
.mrow .ava { width: 34px; height: 34px; font-size: 13px; margin-bottom: 3px; }
.mrow .ava-spacer { width: 34px; flex: 0 0 auto; }
.bubble { max-width: min(78%, 480px); background: var(--bubble); border-radius: 16px 16px 16px 5px; padding: 7px 12px 5px; position: relative; word-break: break-word; box-shadow: 0 1px 2px rgba(10,15,30,.12); }
.mrow.own .bubble { background: linear-gradient(135deg, var(--own2), var(--own)); border-radius: 16px 16px 5px 16px; color: var(--own-fg); }
.mrow.first .bubble { border-start-start-radius: 16px; }
.b-sender { font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.b-sender .agent-tag { font-size: 10px; background: var(--accent-soft); color: var(--accent); border-radius: 7px; padding: 0 6px; margin-inline-start: 5px; font-weight: 600; }
.b-reply { border-inline-start: 3px solid var(--accent); background: rgba(124,108,245,.1); border-radius: 6px; padding: 3px 9px; font-size: 12.5px; margin: 2px 0 5px; cursor: pointer; }
.b-reply b { display: block; color: var(--accent); font-size: 11.5px; }
.b-text { white-space: pre-wrap; }
.b-text .mention { color: var(--accent); font-weight: 600; cursor: pointer; }
.b-meta { display: flex; justify-content: flex-end; gap: 4px; align-items: center; color: var(--muted2); font-size: 10.5px; margin-top: 1px; }
.mrow.own .b-meta { color: var(--own-meta); }
.b-img { width: 340px; max-width: 100%; border-radius: 10px; margin: 4px 0 2px; display: block; cursor: pointer; max-height: 340px; object-fit: cover; }
.b-file { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; }
.b-file .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.b-file .fn { font-weight: 600; font-size: 13.5px; word-break: break-all; }
.b-file .fs { color: var(--muted); font-size: 11.5px; }

/* کارت تسک داخل چت */
.task-card { min-width: 220px; border: 1.5px solid var(--border); border-radius: 13px; padding: 9px 11px; margin: 4px 0 3px; background: var(--task-bg); cursor: pointer; }
.task-card .tc-top { display: flex; align-items: flex-start; gap: 9px; }
.tc-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); flex: 0 0 auto; margin-top: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.task-card.st-doing .tc-check { border-color: var(--blue); background: rgba(101,170,221,.2); }
.task-card.st-done .tc-check { border-color: var(--green); background: var(--green); }
.task-card.st-done .tc-title { text-decoration: line-through; color: var(--muted); }
.tc-title { font-weight: 700; font-size: 14.5px; flex: 1; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tc-chip { font-size: 11.5px; padding: 2px 9px; border-radius: 9px; background: var(--panel3); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.tc-chip.who { color: var(--text); }
.tc-chip.due { color: var(--orange); }
.tc-chip.due.over { color: var(--red); }
.tc-chip.st { font-weight: 700; }
.tc-chip.st.todo { color: var(--muted); } .tc-chip.st.doing { color: var(--blue); } .tc-chip.st.done { color: var(--green); }
.tc-label { font-size: 10.5px; color: var(--accent); font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.tc-label svg { width: 13px; height: 13px; flex: 0 0 auto; }
.mt-sub svg, .brand svg { width: 16px; height: 16px; vertical-align: -3px; }
.btn svg { width: 18px; height: 18px; }
.ac-state svg { width: 20px; height: 20px; }
.bcard .mv button svg { width: 15px; height: 15px; }

/* تایپینگ */
.typing-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 2px 12px 6px; min-height: 24px; }
.tdots { display: inline-flex; gap: 3px; }
.tdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: tb 1.2s infinite; }
.tdots i:nth-child(2) { animation-delay: .18s; } .tdots i:nth-child(3) { animation-delay: .36s; }
@keyframes tb { 0%,70%,100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-4px); opacity: 1; } }

/* ---------- ورودی پیام ---------- */
.composer { background: var(--panel); border-top: 1px solid var(--border); padding: 7px 8px calc(7px + var(--sab)); position: relative; }
.reply-bar { display: flex; align-items: center; gap: 9px; padding: 5px 10px 7px; }
.reply-bar .rb { flex: 1; border-inline-start: 3px solid var(--accent); padding: 1px 9px; font-size: 12.5px; color: var(--muted); overflow: hidden; }
.reply-bar .rb b { display: block; color: var(--accent); font-size: 11.5px; }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea {
  flex: 1; background: var(--panel2); border: 0; border-radius: 18px; resize: none; outline: none;
  padding: 10px 15px; max-height: 130px; min-height: 44px; line-height: 1.55; font-size: 16px;
}
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.send-btn svg { width: 20px; height: 20px; }

/* منشن‌پاپ‌آپ */
.mention-pop { position: absolute; bottom: calc(100% + 4px); right: 12px; left: 12px; background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); max-height: 250px; overflow-y: auto; z-index: 30; }
.mention-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.mention-item:hover, .mention-item.sel { background: var(--panel3); }
.mention-item .ava { width: 34px; height: 34px; font-size: 13px; }
.mi-name { font-weight: 600; font-size: 13.5px; }
.mi-sub { color: var(--muted); font-size: 11.5px; }

/* ---------- منوی زمینه ---------- */
.ctx { position: fixed; z-index: 60; background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 190px; animation: pop .12s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.ctx button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 15px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--text); text-align: right; }
.ctx button:hover { background: var(--panel3); }
.ctx button.danger { color: var(--red); }
.ctx-backdrop { position: fixed; inset: 0; z-index: 55; }

/* ---------- شیت‌ها ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(5,8,14,.6); z-index: 70; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--panel); width: 100%; max-width: 520px; max-height: 88dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.9,.3,1); overflow: hidden; }
@keyframes up { from { transform: translateY(60px); opacity: .6; } }
@media (min-width: 900px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px 8px; }
.sheet-head h3 { margin: 0; font-size: 17px; flex: 1; }
.sheet-body { padding: 4px 18px 22px; overflow-y: auto; }
.sheet .grab { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 0; }

/* عضو/ایجنت در شیت */
.prow { display: flex; align-items: center; gap: 11px; padding: 8px 2px; }
.prow .ava { width: 42px; height: 42px; font-size: 15px; }
.prow .pb { flex: 1; min-width: 0; }
.prow .pn { font-weight: 600; font-size: 14.5px; }
.prow .ps { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; margin: 7px 0; display: flex; gap: 11px; align-items: flex-start; cursor: pointer; transition: border-color .15s; }
.agent-card.on { border-color: var(--accent); background: var(--accent-soft); }
.agent-card .ava { width: 44px; height: 44px; font-size: 17px; }
.ac-name { font-weight: 700; font-size: 14.5px; }
.ac-name .h { color: var(--muted); font-weight: 400; font-size: 12px; }
.ac-tag { color: var(--accent); font-size: 12px; font-weight: 600; }
.ac-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ac-state { flex: 0 0 auto; align-self: center; color: var(--muted2); }
.agent-card.on .ac-state { color: var(--accent); }

.seg { display: flex; background: var(--panel2); border-radius: 12px; padding: 4px; gap: 4px; margin: 10px 0; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); padding: 8px 4px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.seg button.on { background: var(--accent); color: #fff; }

.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pchip { background: var(--accent-soft); color: var(--accent); border-radius: 16px; padding: 4px 12px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.pchip b { cursor: pointer; }

/* ---------- برد کانبان ---------- */
.board-wrap { position: absolute; inset: 0; background: var(--bg); z-index: 40; display: flex; flex-direction: column; }
.board-cols { flex: 1; display: flex; gap: 12px; overflow-x: auto; padding: 14px; align-items: flex-start; }
.bcol { background: var(--panel); border-radius: 16px; min-width: 265px; width: 300px; max-height: 100%; display: flex; flex-direction: column; flex: 0 0 auto; }
.bcol-head { display: flex; align-items: center; gap: 8px; padding: 12px 15px 8px; font-weight: 700; font-size: 14px; }
.bcol-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.bcol.todo .dot { background: var(--muted); } .bcol.doing .dot { background: var(--blue); } .bcol.done .dot { background: var(--green); }
.bcol-head .n { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.bcol-list { overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.bcard { background: var(--panel2); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; cursor: grab; }
.bcard.dragging { opacity: .4; }
.bcol-list.dragover { outline: 2px dashed var(--accent); outline-offset: -6px; border-radius: 13px; }
.bcard .t { font-weight: 600; font-size: 14px; }
.bcard .meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.bcard .ava { width: 24px; height: 24px; font-size: 10px; }
.bcard .mv { margin-inline-start: auto; display: flex; gap: 2px; }
.bcard .mv button { border: 0; background: var(--panel3); color: var(--muted); border-radius: 8px; width: 28px; height: 26px; cursor: pointer; }
.board-add { margin: 4px 10px 12px; border: 1.5px dashed var(--border); background: none; color: var(--muted); border-radius: 12px; padding: 9px; cursor: pointer; font-size: 13.5px; }
.board-add:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- کارهای من ---------- */
.mytasks { flex: 1; overflow-y: auto; padding: 4px 14px 90px; }
.mt-group-h { color: var(--muted); font-size: 12.5px; font-weight: 700; margin: 16px 4px 6px; }
.mt-item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; margin: 7px 0; cursor: pointer; }
.mt-item .row1 { display: flex; gap: 9px; align-items: center; }
.mt-item .t { font-weight: 600; flex: 1; }
.mt-item.done .t { text-decoration: line-through; color: var(--muted); }
.mt-sub { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- پروفایل ---------- */
.profile { flex: 1; overflow-y: auto; padding: 10px 18px 90px; }
.pr-head { display: flex; flex-direction: column; align-items: center; padding: 18px 0 8px; }
.pr-head .ava { width: 96px; height: 96px; font-size: 36px; margin-bottom: 10px; }
.pr-name { font-size: 20px; font-weight: 700; }
.pr-handle { color: var(--accent); font-size: 14px; direction: ltr; }
.pr-phone { color: var(--muted); font-size: 13px; direction: ltr; }
.pr-sec { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 8px 15px; margin: 14px 0; }
.pr-sec h4 { margin: 6px 0 4px; font-size: 13px; color: var(--accent); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--panel3); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch.on { background: var(--accent); }
.switch i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch.on i { transform: translateX(-18px); }

.toast { position: fixed; bottom: calc(84px + var(--sab)); right: 50%; transform: translateX(50%); background: var(--panel3); color: var(--text); border: 1px solid var(--border); padding: 9px 20px; border-radius: 14px; z-index: 200; box-shadow: var(--shadow); font-size: 13.5px; animation: pop .15s; max-width: 90vw; text-align: center; }

.spin { width: 20px; height: 20px; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

.img-viewer { position: fixed; inset: 0; background: rgba(5,8,14,.93); z-index: 300; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-viewer img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }

.hidden { display: none !important; }
