@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: block; }   /* preloaded by the start page: no late swap from the system font */

:root {
  --ink: #16213a; --ink-2: #24314f; --ink-3: #3a4a6d;
  --bg: #f4f5f7; --card: #fff; --line: #e3e6ec; --line-2: #eef0f4;
  --text: #1d2433; --muted: #6b7387; --faint: #9aa1b2;
  --accent: #e8a33d; --accent-ink: #5a3a06; --accent-soft: #fdf1dc;
  --ok: #2f8f5b; --ok-soft: #e3f3ea; --bad: #c8414f; --bad-soft: #fbe6e8; --warn: #b7791f; --warn-soft: #fcf1de;
  --blue: #3667c9; --blue-soft: #e5edfb;
  --radius: 10px; --shadow: 0 1px 2px rgba(22,33,58,.06), 0 4px 16px rgba(22,33,58,.06);
  /* same font as Chatwoot's dashboard (chatwoot-custom/brand/theme.css), so menus look the same in both */
  --font: Vazirmatn, Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.hide { display: none !important; }

/* ---------- sign-in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 80% -10%, #2b3c63 0, transparent 60%), var(--ink); }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 14px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-card h1 { margin: 0 0 4px; font-size: 20px; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.auth-lang { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d1e3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; }
.side-brand .brand-mark { margin: 0; width: 30px; height: 30px; font-size: 14px; }
.nav { list-style: none; margin: 6px 0; padding: 0 10px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c9d1e3; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.on { background: var(--ink-3); color: #fff; }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .badge { margin-inline-start: auto; }
.side-foot { padding: 14px 18px; border-top: 1px solid var(--ink-2); font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot button { background: none; border: 0; color: #9fb0d4; padding: 0; cursor: pointer; }
.main { min-width: 0; padding: 22px 28px 60px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { font-size: 21px; margin: 0; flex: 1; }
.menu-btn { display: none; }
.topbar .input { width: 220px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfd4de; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(.97); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; outline: none; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.hint { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; background: #e9ecf2; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }

/* ---------- cards + tiles ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.card-b { padding: 14px 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: default; }
a.tile { color: inherit; cursor: pointer; }
.tile .n { font-size: 26px; font-weight: 800; line-height: 1.1; }
.tile .l { color: var(--muted); font-size: 13px; }
.tile.bad .n { color: var(--bad); } .tile.ok .n { color: var(--ok); } .tile.warn .n { color: var(--warn); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; background: var(--ink-3); color: #fff; }
.badge.bad { background: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef0f4; color: var(--muted); white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- task rows ---------- */
.group-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 18px 0 6px; display: flex; gap: 8px; align-items: center; }
html[lang="fa"] .group-h { text-transform: none; letter-spacing: 0; }
.group-h.bad { color: var(--bad); }
.tasks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); cursor: pointer; }
.task:first-child { border-top: 0; }
.task:hover { background: #fafbfc; }
.check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3c9d6; background: #fff; flex: none; cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 11px; color: transparent; }
.check:hover { border-color: var(--ok); color: var(--ok); }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.task .t-main { flex: 1; min-width: 0; }
.task .t-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.is-done .t-title { text-decoration: line-through; color: var(--muted); }
.task .t-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: var(--muted); align-items: center; }
.task .t-side { display: flex; align-items: center; gap: 8px; flex: none; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.prio-high { color: var(--bad); font-weight: 700; }
.empty { padding: 26px; text-align: center; color: var(--faint); }

/* ---------- projects ---------- */
.mt { margin-top: 14px; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 8px; color: inherit; }
.p-card:hover { border-color: #cdd3de; }
.p-card h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.bar { height: 6px; background: #eceff4; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok); width: 0; }
.p-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.p-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.p-head .k { font-size: 12px; color: var(--muted); }
.p-head .v { font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.tabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.lane { background: #eaedf2; border-radius: var(--radius); padding: 10px; min-height: 120px; }
.lane.drop { outline: 2px dashed var(--blue); }
.lane-h { font-weight: 700; font-size: 13px; margin: 2px 4px 8px; display: flex; justify-content: space-between; }
.b-card { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: grab; }
.b-card .t-title { font-weight: 600; margin-bottom: 6px; }

/* ---------- tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 9px 12px; border-top: 1px solid var(--line-2); text-align: start; vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; border-top: 0; background: #fafbfc; }
.tbl td.num, .tbl th.num { text-align: center; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #fafbfc; }
.zero { color: var(--faint); }

/* chart */
.weeks { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 4px 0; }
.wk { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.wk .bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; }
.wk .bars i { width: 12px; border-radius: 3px 3px 0 0; display: block; min-height: 2px; }
.wk .bars i.d { background: var(--ok); } .wk .bars i.c { background: #b8c2d6; }
.wk span { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 5px; vertical-align: -1px; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16,24,40,.45); display: flex; justify-content: flex-end; z-index: 50; }
.drawer { width: min(640px, 100%); height: 100%; background: var(--bg); overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); display: flex; flex-direction: column; }
html[dir="rtl"] .overlay { justify-content: flex-start; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.drawer-h h2 { margin: 0; font-size: 16px; flex: 1; }
.drawer-b { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.dialog { margin: auto; width: min(520px, 94%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.overlay.center { justify-content: center; align-items: center; }
.dialog h2 { margin: 0 0 14px; font-size: 17px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.cl-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.cl-item .x { margin-inline-start: auto; visibility: hidden; }
.cl-item:hover .x { visibility: visible; }
.cl-item.on span { text-decoration: line-through; color: var(--muted); }
.comment { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.comment:first-child { border-top: 0; }
.comment .body { white-space: pre-wrap; word-break: break-word; }
.file { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.file a { font-weight: 600; word-break: break-all; }
.act { font-size: 13px; padding: 3px 0; color: var(--muted); }
.act b { color: var(--text); font-weight: 600; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 80; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); }

/* ---------- search, What's new, filters, date picker ---------- */
.side-search { padding: 0 12px 6px; }
.side-search .input { background: var(--ink-2); border-color: var(--ink-3); color: #fff; padding: 6px 10px; font-size: 13px; width: 100%; }
.side-search .input::placeholder { color: #8d9bbb; }
.badge.accent { background: var(--accent); color: var(--accent-ink); }
.feed { display: flex; gap: 10px; padding: 9px 6px; border-top: 1px solid var(--line-2); border-radius: 6px; }
.feed:first-child { border-top: 0; }
.feed.unread { background: var(--accent-soft); }
.feed .f-main { flex: 1; min-width: 0; font-size: 13px; }
.feed .quote { color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.links { font-size: 13px; margin: -4px 0 10px; word-break: break-all; }
.who-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: #c9cfda; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .av { font-size: 9px; }
.dp { position: relative; }
.dp-btn { text-align: start; cursor: pointer; min-height: 38px; }
.dp-btn[disabled] { cursor: default; background: #f7f8fa; }
.dp-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dp-pop { position: absolute; top: 42px; inset-inline-start: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 10px; width: 272px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .dh { font-size: 11px; color: var(--faint); padding: 2px 0; }
.dp-grid .dd { border: 0; background: none; border-radius: 6px; padding: 6px 0; cursor: pointer; font-size: 13px; }
.dp-grid .dd:hover { background: var(--blue-soft); }
.dp-grid .dd.now { box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.dp-grid .dd.sel { background: var(--ink); color: #fff; }
.dp-foot { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }

.check-row { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 8px; cursor: pointer; }
.members { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.members .who-filter { margin: 6px 0 0; }
.chip input { margin: 0; }

/* ---------- icons (icons.js) ---------- */
svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.btn svg.i { width: 15px; height: 15px; }
.nav .ico { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); }
.nav .ico svg.i { width: 17px; height: 17px; vertical-align: 0; }
.nav a.on .ico { background: var(--accent); color: var(--accent-ink); }
.ico-home { color: #7dd3fc; } .ico-feed { color: #fcd34d; } .ico-my { color: #86efac; } .ico-follow { color: #f9a8d4; }
.ico-projects { color: #c4b5fd; } .ico-inbox { color: #fdba74; } .ico-monitor { color: #67e8f9; } .ico-team { color: #a5b4fc; } .ico-settings { color: #cbd5e1; }
.field > span svg.i, .card-h svg.i, .group-h svg.i { width: 15px; height: 15px; color: var(--accent); margin-inline-end: 2px; }
.t-meta span { display: inline-flex; align-items: center; gap: 3px; } .t-meta svg.i { width: 13px; height: 13px; opacity: .8; }
.p-foot span { display: inline-flex; align-items: center; gap: 4px; } .p-foot svg.i { width: 13px; height: 13px; opacity: .75; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; } .tabs svg.i { width: 15px; height: 15px; }
.tile { position: relative; } .t-ic { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.t-ic svg.i { width: 17px; height: 17px; vertical-align: 0; }
.t-ic.red { background: #fde8ea; color: #c8414f; } .t-ic.amber { background: #fdf1dc; color: #b7791f; } .t-ic.blue { background: #e5edfb; color: #3667c9; }
.t-ic.violet { background: #efe7fd; color: #6d28d9; } .t-ic.green { background: #e3f3ea; color: #2f8f5b; }
h3 svg.lock { color: var(--accent); }
.side-foot button { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- brand: Radonix Tasks — Chatwoot's own colours (Mert 2026-11-23: "sync the colours with Chatwoot, only the logo
   was purple — green since 2026-11-24"). Values = Chatwoot's light-mode design tokens (page --background-color 247, panels --solid 255, borders
   --border-strong/weak, text --slate-12/11/10, hover --slate-3, active --slate-4) + the Radonix teal accent of
   chatwoot-custom/brand/theme.css (#0d9488 / #0f766e). ---------- */
html.brand-radonix {
  --ink: #1c2024; --ink-2: #f0f0f3; --ink-3: #e8e8ec;
  --bg: #f7f7f7; --card: #fff; --line: #e2e3e7; --line-2: #eaeaea;
  --text: #1c2024; --muted: #60646c; --faint: #80838d;
  --accent: #0d9488; --accent-ink: #fff; --accent-soft: #e1f3f1;
  --blue: #0f766e; --blue-soft: #e1f3f1;
}
.brand-radonix .side { background: #fff; color: #60646c; border-inline-end: 1px solid #eaeaea; }
.brand-radonix .nav a { color: #60646c; }
.brand-radonix .nav a:hover { background: #f0f0f3; color: #1c2024; }
.brand-radonix .nav a.on { background: #e8e8ec; color: #1c2024; font-weight: 600; }
.brand-radonix .nav .ico { background: #f4f4f6; }
.brand-radonix .nav a.on .ico { background: var(--accent); color: #fff; }
.brand-radonix .ico-home { color: #0284c7; } .brand-radonix .ico-feed { color: #d97706; } .brand-radonix .ico-my { color: #16a34a; } .brand-radonix .ico-follow { color: #db2777; }
.brand-radonix .ico-projects { color: #0d9488; } .brand-radonix .ico-inbox { color: #ea580c; } .brand-radonix .ico-monitor { color: #0891b2; } .brand-radonix .ico-team { color: #4f46e5; } .brand-radonix .ico-settings { color: #60646c; }
.brand-radonix .ico-find { color: #0f766e; } .brand-radonix .ico-done { color: #16a34a; }
.brand-radonix .side-search .input { background: #f7f7f7; border-color: #e2e3e7; color: #1c2024; }
.brand-radonix .side-search .input::placeholder { color: #80838d; }
.brand-radonix .side-h { color: #80838d; opacity: 1; }
.brand-radonix .side-foot { border-top-color: #eaeaea; }
.brand-radonix .side-foot .who { color: #1c2024; }
.brand-radonix .side-foot button { color: #60646c; }
.brand-radonix .side-brand { color: #1c2024; }
.brand-radonix .side-brand.logo .co { color: #80838d; }
.brand-radonix .badge { background: #e8e8ec; color: #1c2024; }
.brand-radonix .badge.accent, .brand-radonix .badge.bad { color: #fff; }
.brand-radonix .badge.accent { background: var(--accent); }
.brand-radonix .badge.bad { background: var(--bad); }
.brand-radonix .chip.on, .brand-radonix .dp-grid .dd.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.brand-radonix .pill.accent { background: var(--accent-soft); color: #0f766e; }
.brand-radonix .feed.unread { background: #eef8f7; }
.brand-radonix .t-ic.violet { background: #e1f3f1; color: #0f766e; }
.brand-radonix .msg.mine { background: #e1f3f1; }
.brand-radonix .btn.primary:hover { background: #0f766e; border-color: #0f766e; }
.brand-radonix .auth { background: #f7f7f7; }
.brand-radonix .auth-card { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); border: 1px solid #eaeaea; }
.side-brand.logo { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 16px 12px; }
.side-brand.logo img { width: 190px; max-width: 100%; height: auto; }
.side-brand.logo .co { font-size: 12px; font-weight: 500; color: #b9acd9; padding-inline-start: 4px; }
.auth-logo { display: block; width: 240px; max-width: 100%; margin: 0 0 12px; }
html[dir="rtl"] .side-brand.logo img, html[dir="rtl"] .auth-logo { direction: ltr; }

.zp-card { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.zp-card .row .field { margin: 0; min-width: 180px; }
.zp-card form.row .input { flex: 1; min-width: 220px; }
.zp-plan { max-height: 320px; overflow: auto; font-size: 12.5px; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 6px; }
.zp-plan > div { padding: 2px 0; }
.zp-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #fff3e0; color: #c2410c; vertical-align: middle; }
.bad { color: var(--bad); }

/* ---------- 📥 proposals ---------- */
.card.prop { padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.card.prop .row.between { gap: 8px; flex-wrap: wrap; }
.p-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.card.prop .quote { color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 8px; white-space: pre-wrap; word-break: break-word; }
.hint.warn { color: var(--bad); }
.row.between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  html[dir="rtl"] .side { inset: 0 0 0 auto; transform: translateX(100%); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 16px; }
  .cols, .grid2, .grid3 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .task .t-side .pill { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .topbar .input { width: 100%; }
  .card:has(> .tbl) { overflow-x: auto; }
  .tbl th, .tbl td { white-space: nowrap; }
  .drawer { width: 100%; }
}

/* ---------- Phase 1: labels, waiting, subtasks, followers, reminders, find, print ---------- */
.lbl { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; line-height: 1.6; }
.lbl-violet { background: #ede9fe; color: #5b21b6; } .lbl-blue { background: #dbeafe; color: #1e40af; } .lbl-teal { background: #ccfbf1; color: #115e59; }
.lbl-green { background: #dcfce7; color: #166534; } .lbl-amber { background: #fef3c7; color: #92400e; } .lbl-orange { background: #ffedd5; color: #9a3412; }
.lbl-red { background: #fee2e2; color: #991b1b; } .lbl-pink { background: #fce7f3; color: #9d174d; } .lbl-gray { background: #e5e7eb; color: #374151; }
.lbl-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lbl-chk { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
.lbl-chk input { margin: 0; }
.lbl-new { display: inline-flex; gap: 4px; }
.lbl-new .input.sm, .input.sm { padding: 3px 8px; font-size: 12px; min-height: 0; height: 28px; width: auto; }
.lbl-row, .tpl-row { padding: 5px 0; border-bottom: 1px solid var(--line-2); gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.pill.wait { background: #fff7ed; color: #9a3412; }
.cards2 { gap: 16px; margin: 0; }
.cards2 > .card { margin: 0; }
.rem { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13px; }
.rem .btn { margin-inline-start: auto; }
.rem-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.rem-form .dp { min-width: 150px; flex: 1; }
.rem-form input[type=time] { width: 110px; }
.mt { margin-top: 10px; }
.card-h .btn { margin-inline-start: auto; }
.comment-form { position: relative; }
.mention-pop { position: absolute; bottom: 100%; inset-inline-start: 0; background: var(--card, #fff); border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 4px; display: flex; flex-direction: column; min-width: 200px; z-index: 20; }
.mention-pop button { display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.mention-pop button:hover { background: var(--line-2); }
.find-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.find-bar .input { width: auto; min-width: 140px; }
.find-bar input.input { flex: 1; min-width: 200px; }
.side-h { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; padding: 12px 14px 4px; }
.nav.saved a { font-size: 13px; }
.tpl-field { background: var(--line-2); padding: 8px 10px; border-radius: 8px; }
@media print {
  .side, .topbar .btn, .topbar .seg, .topbar input, .find-bar, .menu-btn, .check, .toast, .drawer-h .btn, .actions, .comment-form, .rem-form, [data-act="rem-quick"] { display: none !important; }
  .shell { display: block; } .main { padding: 0; } .overlay { position: static; background: none; } .drawer { position: static; width: 100%; box-shadow: none; max-height: none; overflow: visible; }
  body { background: #fff; } .task { break-inside: avoid; } .card { box-shadow: none; }
}

.ts-card { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.ts-card .hint { margin: 0; }
.cw-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #e0f2fe; color: #0369a1; vertical-align: middle; margin-inline-start: 6px; }

/* ---------- 💬 linked conversations + 👥 team now ---------- */
.av { position: relative; }
.pres { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--card, #fff); }
.pres-online { background: #22c55e; } .pres-busy { background: #f59e0b; } .pres-offline { background: #cbd5e1; }
.tn-card { padding: 4px 0; margin-bottom: 14px; }
.tn-row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.tn-row:last-child { border-bottom: 0; }
.tn-row:hover { background: var(--line-2); }
.tn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tn-last, .conv-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nowrap { white-space: nowrap; }
.convs { display: flex; flex-direction: column; gap: 8px; }
.conv { border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); overflow: hidden; }
.conv-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
.conv-h:hover { background: var(--line-2); }
.conv-ic { font-size: 18px; }
.conv-main { flex: 1; min-width: 0; }
.conv-body { border-top: 1px solid var(--line-2); padding: 10px 12px; }
.thread { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
.thread.compact { max-height: 300px; }
.msg { max-width: 82%; align-self: flex-start; background: #f1f5f9; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.msg.mine { align-self: flex-end; background: #ede9fe; }
.msg.in { background: #fff; border: 1px solid var(--line); }
.msg.note { background: #fef9c3; }
.msg-h { font-size: 11px; margin-bottom: 2px; }
.msg-t { white-space: pre-wrap; word-break: break-word; }
.msg-img { max-width: 220px; max-height: 180px; border-radius: 6px; display: block; margin-top: 4px; }
.msg-file { display: block; font-size: 12px; margin-top: 3px; }
.msg-act { align-self: center; font-size: 11px; color: var(--faint); }
.conv-more { align-self: center; }
.conv-reply textarea { width: 100%; min-height: 54px; }
.conv-reply .row { margin-top: 6px; }
.cv-res { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow: auto; margin: 10px 0; }
.cv-pick { display: flex; gap: 10px; align-items: center; text-align: start; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.cv-pick:hover { background: var(--line-2); }
.cv-pick-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }

/* ---------- 📎 linked files + conversation files ---------- */
.flinks-box .card, .cvfiles-box { margin-top: 14px; }
.cf-seg { margin: 6px 0 10px; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cf-item { display: flex; gap: 10px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.cf-thumb { flex: 0 0 64px; height: 64px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-ic { font-size: 26px; }
.cf-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ======================================================================================================================
   FINAL DESIGN (Mert 2026-11-25: "check all pages one by one, are they aligned, redesign pages and fonts, create final design")
   Audit found 8 font sizes (9–26px, Persian text down to 10–11px) and 5 weights on every page, ragged filter bars,
   mixed control heights and a page shift on phones in RTL. One system now, aligned with Chatwoot's dashboard:
     type   12 caption/meta · 13 secondary · 14 body · 16 section/card title · 18 window title · 20 page title · 28 numbers
     weight 400 text · 500 emphasis · 600 titles  (no 700/800)
     rhythm 4 / 8 / 12 / 16 / 24 · controls 36px (small 30px) · radius 8 controls, 12 cards
   ====================================================================================================================== */

/* phones: the closed menu is hidden, never "parked" off-screen — in RTL it widened the page by 58px and cut the right side */
html, body { overflow-x: hidden; }
@media (max-width: 860px) {
  .side:not(.open) { visibility: hidden; }
  .shell { width: 100%; }
}

html.brand-radonix {
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 20px; --fs-num: 28px;
  --r-ctl: 8px; --r-card: 12px; --ctl-h: 36px; --ctl-h-sm: 30px;
}
html.brand-radonix body { font-size: var(--fs-md); line-height: 1.55; }
html.brand-radonix[lang="fa"] body { line-height: 1.75; }

/* --- type scale: every old size mapped onto the seven steps --- */
.brand-radonix .small, .brand-radonix .hint, .brand-radonix .pill, .brand-radonix .badge, .brand-radonix .lbl, .brand-radonix .lbl-chk,
.brand-radonix .chip, .brand-radonix .task .t-meta, .brand-radonix .p-foot, .brand-radonix .p-head .k, .brand-radonix .tbl th,
.brand-radonix .legend, .brand-radonix .wk span, .brand-radonix .dp-grid .dh, .brand-radonix .side-h, .brand-radonix .msg-h,
.brand-radonix .msg-act, .brand-radonix .msg-file, .brand-radonix .field > span, .brand-radonix .side-brand.logo .co,
.brand-radonix .zp-plan, .brand-radonix .input.sm { font-size: var(--fs-xs); }
.brand-radonix .zp-tag, .brand-radonix .cw-tag { font-size: 11px; }   /* Latin tags only ("Zoho", "Chatwoot") */
.brand-radonix .side-foot, .brand-radonix .btn.sm, .brand-radonix .err, .brand-radonix .tile .l, .brand-radonix .lane-h,
.brand-radonix .act, .brand-radonix .side-search .input, .brand-radonix .feed .f-main, .brand-radonix .links, .brand-radonix .dp-grid .dd,
.brand-radonix .rem, .brand-radonix .nav.saved a, .brand-radonix .msg, .brand-radonix .cf-name, .brand-radonix .group-h,
.brand-radonix .tabs button, .brand-radonix .seg button { font-size: var(--fs-sm); }
.brand-radonix .p-body, .brand-radonix .nav a, .brand-radonix .card-h, .brand-radonix .task .t-title, .brand-radonix .b-card .t-title,
.brand-radonix .check-row, .brand-radonix .btn, .brand-radonix .input { font-size: var(--fs-md); }
.brand-radonix .p-card h3 { font-size: var(--fs-lg); }
.brand-radonix .drawer-h h2, .brand-radonix .dialog h2 { font-size: var(--fs-xl); }
.brand-radonix .topbar h1, .brand-radonix .auth-card h1 { font-size: var(--fs-2xl); }
.brand-radonix .tile .n { font-size: var(--fs-num); line-height: 1.15; }

/* --- three weights only --- */
.brand-radonix .side-brand, .brand-radonix .card-h, .brand-radonix .group-h, .brand-radonix .lane-h, .brand-radonix .tile .n,
.brand-radonix .topbar h1, .brand-radonix .drawer-h h2, .brand-radonix .dialog h2, .brand-radonix .p-card h3, .brand-radonix .auth-card h1,
.brand-radonix .prio-high, .brand-radonix .badge, .brand-radonix .zp-tag, .brand-radonix .cw-tag, .brand-radonix .dp-grid .dd.now,
.brand-radonix b, .brand-radonix strong { font-weight: 600; }
.brand-radonix .task .t-title, .brand-radonix .b-card .t-title, .brand-radonix .file a, .brand-radonix .act b, .brand-radonix .p-head .v,
.brand-radonix .field > span, .brand-radonix .tbl th, .brand-radonix .side-foot .who, .brand-radonix .cf-name { font-weight: 500; }
.brand-radonix .group-h.bad { color: var(--bad); }

/* --- one control height everywhere: inputs, selects, buttons line up on the same baseline --- */
.brand-radonix .input, .brand-radonix .btn { min-height: var(--ctl-h); border-radius: var(--r-ctl); }
.brand-radonix textarea.input { min-height: 72px; }
.brand-radonix .btn.sm, .brand-radonix .input.sm, .brand-radonix .chip { min-height: var(--ctl-h-sm); }
.brand-radonix .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.brand-radonix .btn.ghost.sm { min-height: 28px; padding: 2px 8px; }
.brand-radonix .seg { align-items: stretch; }

/* --- cards: same radius, same header, same inner padding --- */
.brand-radonix .card, .brand-radonix .p-card, .brand-radonix .tile, .brand-radonix .conv, .brand-radonix .cf-item { border-radius: var(--r-card); }
.brand-radonix .card-h { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.brand-radonix .card-h .btn { margin-inline-start: auto; }
.brand-radonix .card-b { padding: 14px 16px; }
.brand-radonix .drawer-b > .card, .brand-radonix .drawer-b > .cards2, .brand-radonix .drawer-b > .flinks-box { margin: 0 0 14px; }
.brand-radonix .flinks-box .card { margin-top: 0; }

/* --- section headings above lists: icon, text and count on one line --- */
.brand-radonix .group-h { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; color: var(--muted); }
.brand-radonix .group-h:first-child { margin-top: 0; }
.brand-radonix .group-h .pill { margin-inline-start: 2px; }
.brand-radonix .group-h a { margin-inline-start: auto; }

/* --- task rows: title and meta aligned, due chip and avatar centred --- */
.brand-radonix .task { align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; }
.brand-radonix .task .t-meta { gap: 4px 12px; margin-top: 3px; }
.brand-radonix .task .t-side { gap: 10px; }

/* --- task window: labels picker, reminders and followers line up --- */
.brand-radonix .lbl-pick { gap: 6px; }
.brand-radonix .lbl-chk { min-height: 28px; padding: 2px 10px; }
.brand-radonix .lbl-new { align-items: center; gap: 6px; }
.brand-radonix .lbl-new .input.sm { width: 140px; height: var(--ctl-h-sm); }
.brand-radonix .lbl-new .btn { min-height: var(--ctl-h-sm); width: var(--ctl-h-sm); padding: 0; }
.brand-radonix .rem-form { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: center; margin: 10px 0 8px; }
.brand-radonix .rem-form .dp { min-width: 0; }
.brand-radonix .rem-form input[type=time] { width: 100%; }
.brand-radonix .rem-form select { grid-column: 1; }
.brand-radonix .rem-form .btn { grid-column: 2; }
.brand-radonix .rem-form select + .btn { grid-column: 2; }
.brand-radonix .cards2 { align-items: start; }
.brand-radonix .cards2 > .card { height: 100%; }
.brand-radonix .cards2 .row { gap: 8px; flex-wrap: wrap; }
.brand-radonix .drawer-h { gap: 10px; min-height: 60px; }
.brand-radonix .drawer-h h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- filter toolbars (Find tasks): an even grid instead of a ragged wrap --- */
.brand-radonix .find-bar:has([data-find]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.brand-radonix .find-bar:has([data-find]) .input { width: 100%; min-width: 0; }
.brand-radonix .find-bar [data-find="q"] { grid-column: span 2; }

/* --- settings: label rows on one grid --- */
.brand-radonix .lbl-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.brand-radonix .lbl-row select { width: 120px; flex: none; }
.brand-radonix .tpl-row { align-items: center; min-height: 44px; }

/* --- tables: even row height, numbers centred under their heading --- */
.brand-radonix .tbl th, .brand-radonix .tbl td { padding: 10px 14px; vertical-align: middle; }
.brand-radonix .tbl th { color: var(--muted); letter-spacing: 0; }
.brand-radonix .tbl td.num, .brand-radonix .tbl th.num { text-align: center; }

/* --- top bar and page width: titles and buttons on one line, content not wider than a comfortable reading width --- */
.brand-radonix .topbar { min-height: 44px; margin-bottom: 20px; }
.brand-radonix .main { max-width: 1440px; }
.brand-radonix .tiles { gap: 12px; }
.brand-radonix .tile { padding: 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; }
.brand-radonix .cols { gap: 24px; align-items: start; }

/* phones */
@media (max-width: 860px) {
  .brand-radonix .main { padding: 14px; }
  .brand-radonix .topbar h1 { font-size: var(--fs-xl); }
  .brand-radonix .tile { min-height: 88px; padding: 12px; }
  .brand-radonix .tile .n { font-size: 24px; }
  .brand-radonix .find-bar [data-find="q"] { grid-column: 1 / -1; }
  .brand-radonix .find-bar:has([data-find]) { grid-template-columns: 1fr 1fr; }
  .brand-radonix .drawer { width: 100%; }
}
/* avatars: initials semibold like every other title; the small ones in filter chips stay legible for Persian initials */
.brand-radonix .av { font-weight: 600; }
.brand-radonix .chip .av { font-size: 10px; }
/* task rows never grow wider than their list: long titles wrap, the info line wraps (phones showed clipped rows) */
.tasks, .task { min-width: 0; max-width: 100%; }
.task .t-main { flex: 1; min-width: 0; }
.task .t-title { overflow-wrap: anywhere; }
.task .t-meta { flex-wrap: wrap; min-width: 0; }
.task .t-side { flex: none; }
.cols > *, .grid2 > *, .main > * { min-width: 0; }
.task .t-meta > span { min-width: 0; overflow-wrap: anywhere; }
/* the ≡ menu button is for phones only (the sidebar is always visible on desktop) */
.menu-btn, .brand-radonix .menu-btn { display: none; }
@media (max-width: 860px) { .menu-btn, .brand-radonix .menu-btn { display: inline-flex; } }

/* ---------- 💬 project team room (the Comments tab) ---------- */
.room-card .card-h .btn { margin-inline-start: auto; }
.room-thread { max-height: 520px; min-height: 180px; }
.room-reply textarea { width: 100%; min-height: 60px; }
.room-reply .row { margin-top: 8px; align-items: center; }
.room-none { display: flex; align-items: center; gap: 12px; }
.old-comments { margin-top: 14px; }
.old-comments summary { cursor: pointer; list-style: none; }
.old-comments summary::-webkit-details-marker { display: none; }

/* ---------- 💬 Team rooms (the existing Chatwoot rooms inside Tasks) ---------- */
.rooms { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; height: calc(100vh - 120px); }
.rooms-list { overflow: auto; max-height: 100%; padding: 4px 0; margin: 0; }
.room-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.room-item:hover { background: var(--line-2); }
.room-item.on { background: var(--accent-soft); }
.room-ic { font-size: 18px; flex: none; }
.room-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.room-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: block; }
.room-pane { margin: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.room-pane .card-h .btn:last-child { margin-inline-start: auto; }
.room-pane .room-back { display: none; }
.room-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.room-thread2 { flex: 1; min-height: 0; max-height: none; overflow: auto; }
.team-reply { margin-top: 10px; }
.team-reply textarea { width: 100%; min-height: 60px; }
.team-reply .row { margin-top: 8px; align-items: center; }
@media (max-width: 860px) {
  .rooms { grid-template-columns: 1fr; height: auto; }
  .rooms.has-sel .rooms-list { display: none; }
  .rooms:not(.has-sel) .room-pane { display: none; }
  .room-pane { height: calc(100vh - 110px); }
  .room-pane .room-back { display: inline-flex; }
}

/* ---------- second audit (2026-11-25): controls exactly one height, whatever the language ---------- */
/* Persian's taller line spacing leaked into buttons (41px) and inputs (42–43px): they sat 1–2px out of line */
.brand-radonix .btn, .brand-radonix input.input, .brand-radonix select.input, .brand-radonix .dp-btn { height: var(--ctl-h); min-height: var(--ctl-h); line-height: 1.25; padding-block: 0; box-sizing: border-box; }
.brand-radonix .btn.sm, .brand-radonix input.input.sm, .brand-radonix select.input.sm { height: var(--ctl-h-sm); min-height: var(--ctl-h-sm); }
.brand-radonix .btn.ghost.sm { height: 28px; min-height: 28px; }
.brand-radonix textarea.input { height: auto; line-height: 1.6; padding-block: 8px; }
.brand-radonix .dp-btn { display: flex; align-items: center; gap: 6px; width: 100%; text-align: start; }
.brand-radonix .seg button { line-height: 1.25; }
.brand-radonix .av { font-size: 12px; }
.brand-radonix .chip .av { font-size: 10px; }
/* settings: the "new label" input and its button on one line */
#lbl-add { display: flex; gap: 8px; align-items: center; }
#lbl-add .input { flex: 1; width: auto; min-width: 0; }
#lbl-add .btn { flex: none; }
/* phones: the project's tab row swipes sideways instead of running off the screen */
@media (max-width: 860px) {
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}

/* private chats inside the rooms list */
.rooms-h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px 6px; display: flex; gap: 6px; align-items: center; }
.rooms-h .faint { font-weight: 400; }

/* "➕ Task" on a message: appears when the pointer is on the message (always visible, faint, on touch screens) */
.msg { position: relative; }
.msg-task { display: none; position: absolute; top: -9px; inset-inline-end: -9px; width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--accent); cursor: pointer; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.msg-task svg.i { width: 14px; height: 14px; }
.room-body .msg-task, .conv .msg-task { display: grid; opacity: 0; transition: opacity .12s; }
.room-body .msg:hover .msg-task, .conv .msg:hover .msg-task, .msg-task:focus { opacity: 1; }
.msg-task:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (hover: none) { .room-body .msg-task, .conv .msg-task { opacity: .75; } }

/* "View as" bar (administrator looking at the app as a colleague, read-only) */
.viewas-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px;
  background: #FEF3C7; color: #92400E; border-bottom: 1px solid #FCD34D; }
.viewas-bar .spacer { flex: 1; }

/* ---------- phones (Mert 2026-11-26: "check Radonix Tasks on mobile — size, align, all menu items") ---------- */
@media (max-width: 860px) {
  /* the ☰ menu never opened in Persian: the right-to-left start position outranked .side.open */
  html[dir="rtl"] .side.open { transform: none; }
  .side.open { box-shadow: 0 0 0 100vmax rgba(15, 18, 30, .38); }   /* dim the page behind the open menu */
  .nav a { padding-block: 10px; }
  /* page title gets the first row next to ☰; the buttons move to their own row instead of squeezing a long title */
  .topbar h1 { flex: 1 1 calc(100% - 60px); min-width: 0; overflow-wrap: anywhere; }
  .brand-radonix .topbar h1 { font-size: var(--fs-lg, 18px); line-height: 1.35; }
  /* finger-sized targets */
  .check { width: 26px; height: 26px; font-size: 13px; }
  input[type=checkbox], input[type=radio] { width: 18px; height: 18px; }
  .card-h a, .sec-h a, a.see-all { display: inline-block; padding: 6px 2px; }
  .btn.sm { min-height: 32px; }
}
/* an English title on a Persian page is cut at its END, not its start ("Insurance settl…", not "…nt certificate") */
.drawer-h h2, .topbar h1, .t-title, .p-card h3 { unicode-bidi: plaintext; }

/* chat bubbles carry Chatwoot's own properties (2026-11-26): avatar, delivery ticks, edited, deleted, reply, failed */
.msg-h { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.msg-av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.msg-tick { font-size: 11px; color: #94a3b8; letter-spacing: -2px; }
.msg-tick .tick-read { color: #0ea5e9; }
.msg.failed { outline: 1px solid #fca5a5; }
.msg.deleted { opacity: .7; }
.msg-quote { border-inline-start: 3px solid var(--line, #cbd5e1); padding: 1px 6px; margin: 2px 0 4px; font-size: 11px; opacity: .75; cursor: default; }
.conv-props { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.conv-props .pill { font-size: 11px; padding: 0 7px; }
.conv-props .pill.lab { background: #eef2ff; color: #3730a3; }
.nav-l { unicode-bidi: isolate; }

/* parked projects (2026-11-27) */
.p-card.parked{opacity:.62}
.p-card.parked:hover{opacity:1}
.parked-note{margin-bottom:12px}
.hint.warn.parked-note{padding:10px 14px;border:1px solid var(--line,#d9dee8);border-radius:10px;font-size:13px;color:inherit;background:rgba(214,158,46,.12)}

/* ---------- start-up screen + menu footer (Mert 2026-11-28) ---------- */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: var(--bg); text-align: center; }
.splash .brand-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; margin: 0; }
.splash-logo { width: 230px; max-width: 70vw; height: auto; }
.splash-bar { width: 168px; max-width: 50vw; height: 3px; border-radius: 3px; background: rgba(120,125,140,.18); overflow: hidden; position: relative; }
.splash-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: var(--accent); animation: splash-run 1.1s ease-in-out infinite; }
@keyframes splash-run { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.splash-msg { margin: 0; min-height: 20px; font-size: 14px; font-weight: 500; color: var(--text); }
.splash-sub { margin: -10px 0 0; min-height: 16px; font-size: 12px; color: var(--muted); }
.splash-err .splash-bar { visibility: hidden; } .splash-err .splash-msg { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .splash-bar i { animation: none; width: 100%; opacity: .5; } }

/* the menu always fits the screen: the list scrolls, the footer (name + Sign out) stays in view — also on phones, where 100vh is taller than the visible page */
.side { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.side .nav { flex: 1 0 auto; }
.side .nav.saved { flex: 0 0 auto; }
.side-foot { position: sticky; bottom: 0; margin-top: auto; background: var(--ink); display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.brand-radonix .side-foot { background: #fff; }
.side-foot .me { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.side-foot .me-t { min-width: 0; }
.side-foot .me-t > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .signout { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--ink-3); color: #dbe3f5; font-weight: 500; }
.side-foot .signout:hover { background: var(--ink-2); color: #fff; }
.brand-radonix .side-foot .signout { border-color: #e2e3e7; color: #1c2024; background: #fff; }
.brand-radonix .side-foot .signout:hover { background: #fbe6e8; border-color: #f1c2c7; color: #c8414f; }
.side-foot .signout svg.i { width: 15px; height: 15px; }
@media (max-width: 860px) { .side-foot .signout { padding: 9px 12px; } }
.side-brand.logo img { width: 150px; }
.auth-logo { width: 190px; }
.splash-logo { width: 210px; }
/* footer: name on its own row (never squeezed), Sign out as a full-width button under it */
.side-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.side-foot .me { flex: none; }
.side-foot .signout { justify-content: center; width: 100%; }
/* ---------- My day (Home, 2026-11-28) ---------- */
.md-card { padding: 0; overflow: hidden; }
.md-att { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.md-att.warn { background: var(--warn-soft); } .md-att.ok { background: var(--ok-soft); }
.md-ic { font-size: 22px; line-height: 1; }
.md-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.md-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.md-stats a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; color: inherit; border-inline-end: 1px solid var(--line-2); }
.md-stats a:last-child { border-inline-end: 0; }
.md-stats a:hover { background: var(--line-2); }
.md-stats b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.md-stats span { font-size: 12px; color: var(--muted); }
.md-next { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); color: inherit; }
a.md-next:hover { background: var(--line-2); }
.md-nt { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
@media (max-width: 480px) { .md-att { flex-wrap: wrap; } .md-att .btn { width: 100%; justify-content: center; } }
.md-team { padding: 12px 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.md-team-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-team-l { display: flex; flex-wrap: wrap; gap: 6px; }
.md-p { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--line-2); color: inherit; font-size: 12.5px; }
html[dir="rtl"] .md-p { padding: 3px 3px 3px 9px; }
.md-p:hover { background: var(--warn-soft); }

/* ---------- column list: My tasks / Follow-up (2026-11-29) ---------- */
.tasks.tcols .task, .tasks.tcols .t-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 200px) 104px 190px 34px; align-items: center; gap: 12px; }
.tasks.tcols .t-head { padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--line-2); position: sticky; top: 0; z-index: 2; border-radius: var(--radius) var(--radius) 0 0; }
.t-head .t-col { background: none; border: 0; padding: 0; text-align: start; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.t-head span.t-col { cursor: default; }
.t-head .t-col:hover, .t-head .t-col.on { color: var(--text); }
.t-head .arr { font-size: 12px; min-width: 10px; }
.tasks.tcols .t-col { font-size: 13px; color: var(--muted); min-width: 0; }
.tasks.tcols .task .t-proj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.tasks.tcols .task .t-start { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tasks.tcols .task .t-due { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text); font-variant-numeric: tabular-nums; }
.tasks.tcols .task .t-due .late { color: var(--bad); font-weight: 600; }
.tasks.tcols .t-who { display: flex; justify-content: flex-end; font-size: 0; }
.tasks.tcols .task:first-child { border-top: 1px solid var(--line-2); }
.t-group { padding: 7px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: #fbfbfc; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.t-group.bad { color: var(--bad); }
@media (max-width: 1100px) { .tasks.tcols .task, .tasks.tcols .t-head { grid-template-columns: 20px minmax(0, 1fr) 104px 170px 34px; } .tasks.tcols .t-proj { display: none; } }
@media (max-width: 860px) { .tasks.tcols .task, .tasks.tcols .t-head { grid-template-columns: 20px minmax(0, 1fr) auto; } .tasks.tcols .t-start, .tasks.tcols .t-who { display: none; } .tasks.tcols .task .t-due { justify-content: flex-end; font-size: 12px; } .tasks.tcols .t-head { position: static; } }
.tasks.tcols .m-proj { display: none; }
@media (max-width: 1100px) { .tasks.tcols .m-proj { display: inline; } }
.tasks.tcols .t-head { position: static; }
@media (max-width: 860px) { .tasks.tcols .task .t-due { flex-direction: column; align-items: flex-end; gap: 2px; } }

/* company switcher under the logo (one address, several companies — 2026-11-29) */
.co-switch { margin-top: 2px; width: 100%; max-width: 190px; font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 3px 4px; cursor: pointer; }
.co-switch:hover, .co-switch:focus { border-color: #d9dbe1; background: #fff; outline: none; }
