/* bitig — барча стиллар. Todoist руҳида: енгил, нозик чизиқлар, қизил акцент */

:root {
  --bg: #ffffff;
  --bg-side: #fcfaf8;
  --bg-hover: #f3f3f3;
  --bg-active: #ffefe5;
  --bg-chip: #f5f5f5;
  --bg-input: #ffffff;
  --text: #202020;
  --text-muted: #808080;
  --text-faint: #b3b3b3;
  --line: #f0f0f0;
  --line-strong: #e0e0e0;
  --accent: #db4c3f;
  --accent-hover: #c3392c;
  --accent-soft: rgba(219, 76, 63, .1);
  --p-high: #d1453b;
  --p-mid: #246fe0;
  --p-low: #9a9a9a;
  --ok: #058527;
  --shadow: 0 8px 30px rgba(0, 0, 0, .12);
  --radius: 10px;
}

html[data-theme="dark"] {
  --bg: #1f1f1f;
  --bg-side: #282828;
  --bg-hover: #2e2e2e;
  --bg-active: #3a2a26;
  --bg-chip: #333333;
  --bg-input: #262626;
  --text: #e8e6e3;
  --text-muted: #9b9b9b;
  --text-faint: #6b6b6b;
  --line: #2e2e2e;
  --line-strong: #3d3d3d;
  --accent: #e0584b;
  --accent-hover: #ef6f63;
  --accent-soft: rgba(224, 88, 75, .15);
  --p-low: #808080;
  --ok: #4caf50;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

/* МУҲИМ: display:flex hidden'ни енгиб қўймасин */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

button { font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 10px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--text-muted); }

a { color: var(--accent); }

/* ================= Кириш экрани ================= */

.login-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-side);
}
.login-card {
  width: 320px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card input { padding: 10px 12px; }

/* ================= Лого ================= */

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--accent);
  user-select: none;
}
.logo small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 6px;
}

/* ================= Лейаут ================= */

.app {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.sidebar .logo { padding: 0 20px 14px; }

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.side-head button {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  padding: 0 5px;
}
.side-head button:hover { background: var(--bg-hover); color: var(--text); }

.proj-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 8px;
}
.proj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.proj-item:hover { background: var(--bg-hover); }
.proj-item.active { background: var(--bg-active); color: var(--accent); font-weight: 600; }
.proj-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proj-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-item .pct {
  font-size: 12px;
  color: var(--text-muted);
}

.side-foot {
  border-top: 1px solid var(--line);
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-foot .out-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}
.side-foot .out-btn:hover { background: var(--bg-hover); color: var(--text); }
#themeBtn {
  border: none;
  background: none;
  font-size: 17px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
#themeBtn:hover { background: var(--bg-hover); }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 48px 120px;
}
.content-inner { max-width: 820px; margin: 0 auto; }

/* ================= Лойиҳа сарлавҳаси ================= */

.proj-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.proj-head h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.icon-btn {
  border: none;
  background: none;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }

.proj-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.bar {
  flex: 0 0 180px;
  height: 5px;
  background: var(--bg-chip);
  border-radius: 3px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .25s;
}

/* ================= Бўлимлар ================= */

.section-block { margin-bottom: 6px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 700;
  position: relative; /* ушлагич чап ҳошияга жойлашиши учун */
}
.section-head .count { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.section-head .grab { cursor: grab; }
.section-head .actions { margin-left: auto; visibility: hidden; display: flex; }
.section-head:hover .actions { visibility: visible; }

/* яширин «+ Бўлим қўшиш» чизиғи */
.add-section-line {
  position: relative;
  height: 22px;
  margin: 2px 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s;
  display: flex;
  align-items: center;
}
.add-section-line:hover { opacity: 1; }
.add-section-line::before,
.add-section-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
}
.add-section-line span {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ================= Топшириқ қаторлари ================= */

.task-tree { padding: 2px 0; }
.node { position: relative; }

.node-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 4px 7px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.node-row:hover { background: var(--bg-hover); }

/* чап ҳошия ҳам hover майдонига киради — ⠿ га етгунча йўқолмайди */
.node-row::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 0;
  bottom: 0;
  width: 44px;
}

/* фақат бевосита ҳовер бўлган қаторнинг тугмалари — болалариники эмас */
.node-row .actions,
.node-row .grab { visibility: hidden; }
.node-row:hover > .actions,
.node-row:hover > .grab { visibility: visible; }

/* ушлагич ва каретка — қатор оқимидан ташқарида, чап ҳошияда (Todoist каби) */
.grab {
  position: absolute;
  left: -40px;
  top: 7px;
  cursor: grab;
  color: var(--text-faint);
  font-size: 14px;
  padding: 2px 0;
  user-select: none;
  width: 16px;
  text-align: center;
}
.grab:active { cursor: grabbing; }

.caret {
  position: absolute;
  left: -21px;
  top: 9px;
  width: 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 0;
  transition: transform .12s;
}
.caret.open { transform: rotate(90deg); }

/* доира чекбокс */
.check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid var(--p-low);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.check.pr-high { border-color: var(--p-high); background: rgba(209, 69, 59, .08); }
.check.pr-mid { border-color: var(--p-mid); background: rgba(36, 111, 224, .08); }
.check:hover::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
}
.check.partial::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  color: var(--p-low);
  opacity: .35;
}
.check.pr-high.partial::before { color: var(--p-high); }
.check.pr-mid.partial::before { color: var(--p-mid); }
.check.done {
  background: var(--p-low);
  border-color: var(--p-low);
}
.check.pr-high.done { background: var(--p-high); border-color: var(--p-high); }
.check.pr-mid.done { background: var(--p-mid); border-color: var(--p-mid); }
.check.done::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.node-main { flex: 1; min-width: 0; cursor: pointer; }
.node-title { word-break: break-word; }
.node.done > .node-row .node-title {
  color: var(--text-muted);
  text-decoration: line-through;
}
.node.rejected > .node-row .node-title {
  color: var(--text-faint);
  text-decoration: line-through;
}
.node-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

/* CSS тултипли бейджлар */
.badge {
  position: relative;
  cursor: default;
  font-size: 12px;
}
.badge[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
}
.badge.due-over { color: var(--accent); font-weight: 600; }

.node-row .actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.children { margin-left: 26px; }

/* drag-and-drop кўрсаткичлари */
.dropzone {
  height: 4px;
  margin: -2px 0;
  border-radius: 2px;
  position: relative;
  z-index: 5;
}
.dropzone.over { background: var(--accent); height: 6px; }
.node-row.drop-into { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 6px; }
.node.dragging { opacity: .4; }

/* «+ Топшириқ қўшиш» */
.add-task-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 4px;
  font-size: 14px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
}
.add-task-btn .plus {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  font-size: 16px;
  transition: background .12s, color .12s;
}
.add-task-btn:hover { color: var(--accent); }
.add-task-btn:hover .plus { background: var(--accent); color: #fff; }

/* ================= Add-card форма (Todoist услуби) ================= */

.add-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin: 8px 0;
  background: var(--bg);
  overflow: hidden;
}
.add-card .ac-body { padding: 10px 12px 8px; }
.add-card input.ac-title {
  width: 100%;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  padding: 2px 0;
}
.add-card input.ac-title.err {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.add-card input.ac-title.err::placeholder { color: var(--accent); }
.add-card textarea.ac-desc {
  width: 100%;
  border: none;
  background: none;
  resize: vertical;
  min-height: 36px;
  padding: 2px 0;
  font-size: 13px;
}
.add-card .ac-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.chip:hover { background: var(--bg-hover); }
.chip.set { color: var(--text); border-color: var(--text-muted); }
.chip input[type="date"] {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: inherit;
}
.add-card .ac-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 12px;
}
.add-card .ac-foot select { padding: 4px 8px; font-size: 13px; max-width: 180px; }
.add-card .ac-foot .spacer { flex: 1; }

.btn {
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-chip);
  color: var(--text);
}
.btn:hover { background: var(--bg-hover); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .5; cursor: default; }

/* ================= Контекст меню ================= */

.ctx-menu {
  position: fixed;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 4px;
}
.ctx-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.ctx-menu button:hover { background: var(--bg-hover); }
.ctx-menu button.danger { color: var(--accent); }
.ctx-menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }

/* ================= Топшириқ ойнаси (Todoist услуби) ================= */

.dlg-box.task-modal {
  width: min(900px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.tm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.tm-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.tm-bc .dot { width: 10px; height: 10px; border-radius: 50%; }

.tm-cols { display: flex; flex: 1; min-height: 0; }
.tm-left {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  overflow-y: auto;
}
.tm-right {
  width: 270px;
  flex-shrink: 0;
  background: var(--bg-side);
  border-left: 1px solid var(--line);
  padding: 12px 16px 18px;
  overflow-y: auto;
}

.tm-titlerow { display: flex; gap: 12px; align-items: flex-start; }
.tm-titlerow .check { margin-top: 5px; }
.tm-title-input {
  flex: 1;
  border: none;
  background: none;
  resize: none;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  padding: 0;
  overflow: hidden;
  color: var(--text);
}

.tm-sec-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 20px 0 4px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}

.tm-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.tm-sub:hover { background: var(--bg-hover); }
.tm-sub-title { flex: 1; min-width: 0; }
.tm-sub-title.done { text-decoration: line-through; color: var(--text-muted); }
.tm-sub-title.rejected { text-decoration: line-through; color: var(--text-faint); }
.tm-sub-cnt { font-size: 12px; color: var(--text-muted); }

.tm-quickadd input {
  width: 100%;
  border: none;
  background: none;
  padding: 9px 2px;
}
.tm-quickadd input::placeholder { color: var(--accent); font-weight: 600; }

.tm-comments { padding: 2px 0 8px; }
.comment {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.comment .c-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.comment .c-head .who { font-weight: 600; color: var(--text); }
.comment .c-head .del {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
}
.comment .c-head .del:hover { color: var(--accent); }
.comment .c-text { white-space: pre-wrap; word-break: break-word; }

.comment-form { border-top: 1px solid var(--line); padding-top: 10px; }
.comment-form textarea { width: 100%; min-height: 56px; resize: vertical; }
.comment-form .cf-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.comment-form .cf-foot .spacer { flex: 1; }
.reject-note {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  margin: 10px 0 0;
}

/* ўнг панель қаторлари */
.tm-side-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm-side-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.tm-side-row select,
.tm-side-row input[type="date"] { width: 100%; }
.tm-side-val { font-size: 13px; }
.tm-del { width: 100%; margin-top: 16px; color: var(--accent); }

@media (max-width: 760px) {
  .tm-cols { flex-direction: column; }
  .tm-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ================= Галерея / lightbox ================= */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.gallery-cell {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}
.gallery-del {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 6px;
}

/* ================= Модаллар / toast ================= */

.dlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .12s;
}
.dlg-overlay.dlg-in { opacity: 1; }
.dlg-overlay.dlg-out { opacity: 0; }
.dlg-box {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
}
.dlg-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dlg-msg { color: var(--text-muted); margin-bottom: 12px; white-space: pre-wrap; }
.dlg-input { width: 100%; margin-bottom: 12px; }
.dlg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.dlg-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-chip);
  color: var(--text);
}
.dlg-btn:hover { background: var(--bg-hover); }
.dlg-btn.dlg-primary { background: var(--accent); color: #fff; }
.dlg-btn.dlg-primary:hover { background: var(--accent-hover); }
.dlg-options { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.dlg-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.dlg-option:hover { background: var(--bg-hover); }
.dlg-option .dot { width: 11px; height: 11px; border-radius: 50%; }

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.toast.toast-in { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--accent); color: #fff; }

/* ================= Мижоз саҳифаси ================= */

.client-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 100px;
}
.client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.client-head h1 { font-size: 21px; margin: 0; flex: 1; }
.client-submit {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-submit .row { display: flex; gap: 8px; align-items: center; }
.client-submit .row .spacer { flex: 1; }
.client-task {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.client-task .ct-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}
.client-task .ct-body { display: none; padding: 6px 0 4px 27px; }
.client-task.open-detail .ct-body { display: block; }
.client-children { margin-left: 27px; }

/* ================= Мобил ================= */

@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .sidebar .logo { padding: 0 10px 0 4px; font-size: 18px; }
  .side-head { display: none; }
  .proj-list { display: flex; padding: 0; overflow-y: visible; }
  .proj-item { white-space: nowrap; padding: 6px 10px; }
  .proj-item .pct { display: none; }
  .side-foot { border-top: none; padding: 0 4px; }
  .content { padding: 18px 14px 100px 26px; }
  .node-row .actions { visibility: visible; }
  .grab { display: none; }       /* сенсорда HTML5 drag ишламайди */
  .caret { left: -19px; }
}
