/* Sidebar: header (Projects label / back + project name), project rows, task cards. */

.side-head {
  flex: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.side-title { flex: 1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.side-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.side-head .pill { margin-left: auto; }
.back-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
}
.back-btn:hover { background: var(--surface-2); color: var(--text); }

.list { list-style: none; margin: 0; padding: 12px; }

/* Project rows */
.row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  margin-bottom: 6px;
  background: var(--row-bg);
  border: 1px solid var(--border-soft);
}
.row:hover { background: var(--surface-2); }
.row:hover .pill { background: var(--surface); border-color: var(--border-strong); }
.row .dot { margin-top: 5px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.row-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .pill { align-self: center; }
.row-chev { align-self: center; color: var(--text-3); opacity: 0; transition: opacity 0.12s ease; }
.row:hover .row-chev { opacity: 1; }
.is-unreachable { opacity: 0.65; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-on { background: #18a05a; box-shadow: 0 0 0 3px #e7f5ee; }
.dot-off { background: #b6bac4; }

.pill {
  align-self: center;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Task cards */
.card {
  position: relative;
  padding: 12px 13px;
  margin-bottom: 8px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: box-shadow 0.12s ease;
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.card.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.card-sum {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
