/* ============================================================
   The3dogs — cards, chips, data display, tasks, overlays
   ============================================================ */

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255, 0.016), rgba(255,255,255, 0)) , var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card.pad-0 { padding: 0; }
.card.hoverable { transition: border-color 180ms ease, transform 180ms ease, background 180ms ease; }
.card.hoverable:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card.soft { background: rgba(255,255,255, 0.014); border-color: var(--line); }
.card.inset { background: #0e0e0e; border-color: var(--line); }
.card.glow::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189,189,189, 0.075), transparent 66%);
  pointer-events: none;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-head-copy { min-width: 0; }
.card-title { font-size: 14px; font-weight: 520; color: var(--text); letter-spacing: -0.015em; line-height: 1.35; }
.card-sub { margin-top: 4px; font-size: 10.5px; color: var(--faint); line-height: 1.5; }
.card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.card-kicker { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }

/* --------------------------------------------------------------- avatars */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid transparent;
  font-weight: 550;
  letter-spacing: 0.02em;
  user-select: none;
  line-height: 1;
}
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--bg); margin-left: -7px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-more { background: #1f1f1f !important; color: var(--muted) !important; border-color: var(--line-2) !important; }

/* --------------------------------------------------------------- marks */
.project-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255, 0.025);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.chip .ic { width: 11px; height: 11px; opacity: 0.8; }
.chip-green { color: var(--green); border-color: rgba(189,189,189, 0.16); background: rgba(189,189,189, 0.055); }
.chip-amber { color: var(--amber); border-color: rgba(193,193,193, 0.16); background: rgba(193,193,193, 0.055); }
.chip-red { color: var(--red); border-color: rgba(164,164,164, 0.18); background: rgba(164,164,164, 0.055); }
.chip-blue { color: var(--blue); border-color: rgba(178,178,178, 0.16); background: rgba(178,178,178, 0.055); }
.chip-violet { color: var(--violet); border-color: rgba(176,176,176, 0.16); background: rgba(176,176,176, 0.055); }
.chip-teal { color: var(--teal); border-color: rgba(183,183,183, 0.16); background: rgba(183,183,183, 0.055); }
.chip-neutral { color: var(--muted); }
.chip-outline { background: transparent; }
.chip-dot::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.chip-xs { height: 17px; font-size: 8.5px; padding: 0 5px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 9.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255, 0.02);
}
.status-chip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-draft { color: #959595; border-color: rgba(255,255,255, 0.08); }
.status-review { color: var(--amber); border-color: rgba(193,193,193, 0.17); background: rgba(193,193,193, 0.045); }
.status-final { color: var(--green); border-color: rgba(189,189,189, 0.17); background: rgba(189,189,189, 0.045); }
.status-final i { box-shadow: 0 0 7px rgba(189,189,189, 0.45); }

.prio { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 550; }
.prio-high { color: var(--red); }
.prio-medium { color: var(--muted); }
.prio-low { color: var(--faint); }

.p-prio {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; min-width: 27px; padding: 0 6px;
  border-radius: 5px; font-size: 9px; font-weight: 650; letter-spacing: 0.05em;
  border: 1px solid var(--line);
}
.p-prio-p0 { color: var(--red); background: rgba(164,164,164, 0.07); border-color: rgba(164,164,164, 0.18); }
.p-prio-p1 { color: var(--amber); background: rgba(193,193,193, 0.06); border-color: rgba(193,193,193, 0.16); }
.p-prio-p2 { color: var(--blue); background: rgba(178,178,178, 0.055); border-color: rgba(178,178,178, 0.14); }
.p-prio-p3 { color: var(--faint); }

.health { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.health i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.health-green { color: var(--green); }
.health-amber { color: var(--amber); }
.health-red { color: var(--red); }
.health i { box-shadow: 0 0 7px currentColor; opacity: 0.85; }
.tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px;
  border-radius: 5px; background: rgba(255,255,255, 0.028);
  border: 1px solid var(--line); font-size: 9px; color: #858585;
  white-space: nowrap;
}
.tag::before { content: "#"; opacity: 0.5; margin-right: 1px; }

/* ---------------------------------------------------------------- bars */
.bar {
  width: 100%; overflow: hidden; border-radius: 20px;
  background: rgba(255,255,255, 0.07);
}
.bar > span {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--green-strong), var(--green));
  transition: width 500ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.bar.tone-amber > span { background: linear-gradient(90deg, #9f9f9f, var(--amber)); }
.bar.tone-red > span { background: linear-gradient(90deg, #8d8d8d, var(--red)); }
.bar.tone-blue > span { background: linear-gradient(90deg, #8c8c8c, var(--blue)); }
.bar.tone-violet > span { background: linear-gradient(90deg, #848484, var(--violet)); }
.bar.tone-teal > span { background: linear-gradient(90deg, #8d8d8d, var(--teal)); }
.bar.tone-neutral > span { background: #6c6c6c; }
.progress-line { display: flex; align-items: center; gap: 10px; }
.progress-line .bar { flex: 1; }
.progress-value { font-size: 10px; color: var(--muted); min-width: 28px; text-align: right; }

/* ---------------------------------------------------------------- ring */
.ring { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--green); }
.ring svg { position: absolute; inset: 0; overflow: visible; }
.ring-track { stroke: rgba(255,255,255, 0.06); }
.ring-fill { stroke: currentColor; filter: drop-shadow(0 0 5px rgba(189,189,189, 0.16)); transition: stroke-dashoffset 700ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.ring-amber { color: var(--amber); }
.ring-red { color: var(--red); }
.ring-blue { color: var(--blue); }
.ring-center { text-align: center; position: relative; z-index: 1; }
.ring-center strong {
  display: block; font-family: var(--font-display); font-size: 29px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 1; color: #f3f3f3;
}
.ring-center span { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--faint); margin-top: 6px; }

/* -------------------------------------------------------------- metrics */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  border: 1px solid var(--line); border-radius: 16px; padding: 17px 18px 15px;
  background: linear-gradient(160deg, rgba(255,255,255, 0.018), transparent), var(--panel);
  min-width: 0;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.kpi-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); white-space: nowrap; }
.kpi-ic { color: #5f5f5f; }
.kpi-value { font-family: var(--font-display); font-size: 31px; line-height: 1.08; font-weight: 500; letter-spacing: -0.04em; color: #f2f2f2; }
.kpi-value small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10px; color: var(--faint); }
.delta-up { color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.delta-down { color: var(--red); display: inline-flex; align-items: center; gap: 3px; }
.delta-flat { color: var(--muted); }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  overflow: hidden;
}
.stat-cell { padding: 15px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stat-cell:first-child { border-left: 0; }
.stat-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat-value { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.03em; font-weight: 500; margin-top: 5px; color: var(--text); }
.stat-value small { font-size: 10px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.big-number { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; color: #f2f2f2; }
.big-number small { font-size: 11px; color: var(--faint); font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric-cell { border-top: 1px solid var(--line); padding-top: 12px; }
.metric-cell strong { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.metric-cell span { display: block; margin-top: 2px; font-size: 9px; color: var(--faint); }

/* ---------------------------------------------------------------- lists */
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-head h2 { font-size: 15px; font-weight: 520; letter-spacing: -0.02em; }
.section-sub { margin-top: 3px; font-size: 10.5px; color: var(--faint); line-height: 1.5; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.list-row:first-child { border-top: 0; }
.list-row.is-clickable { cursor: pointer; }
.list-row.is-clickable:hover .list-title { color: var(--green); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 12.5px; color: var(--text-2); transition: color 150ms ease; line-height: 1.45; }
.list-meta { font-size: 10px; color: var(--faint); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* --------------------------------------------------------------- filters */
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 29px; padding: 0 10px; border-radius: 7px;
  color: var(--muted); font-size: 10.5px; border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.filter-chip:hover { color: var(--text-2); background: rgba(255,255,255, 0.03); }
.filter-chip.is-active { color: var(--text); background: rgba(255,255,255, 0.05); border-color: var(--line-2); }
.filter-chip .count { color: var(--faint); font-size: 9px; }
.seg {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 9px; padding: 2px;
  background: rgba(255,255,255, 0.015);
}
.seg button {
  height: 26px; padding: 0 10px; border-radius: 7px;
  color: var(--faint); font-size: 10.5px; transition: background 150ms ease, color 150ms ease;
}
.seg button:hover { color: var(--text-2); }
.seg button.is-active { background: rgba(255,255,255, 0.06); color: var(--text); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  position: relative; height: 42px; padding: 0 13px;
  color: var(--muted); font-size: 11.5px; white-space: nowrap;
  transition: color 150ms ease;
}
.tab:hover { color: var(--text-2); }
.tab.is-active { color: var(--text); }
.tab.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 1.5px; background: var(--green); border-radius: 2px;
  box-shadow: 0 0 10px rgba(189,189,189, 0.35);
}
.tab .tab-count { margin-left: 5px; color: var(--faint); font-size: 9.5px; }

/* ---------------------------------------------------------------- tasks */
.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  cursor: pointer;
}
.task-row:first-child { border-top: 0; }
.task-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255,255,255, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: transparent; transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.task-row:hover .task-check { border-color: rgba(189,189,189, 0.5); color: rgba(189,189,189, 0.7); }
.task-check.is-final { background: var(--green); border-color: var(--green); color: #0d0d0d; }
.task-row-main { flex: 1; min-width: 0; }
.task-row-title { font-size: 12.5px; color: var(--text-2); line-height: 1.45; transition: color 150ms ease; }
.task-row:hover .task-row-title { color: var(--text); }
.task-row.is-final .task-row-title { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255,255,255, 0.16); }
.task-row-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; font-size: 9.5px; color: var(--faint); }
.task-row-meta .project-code { color: #848484; letter-spacing: 0.04em; }
.task-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.task-hours { font-size: 10px; color: var(--faint); white-space: nowrap; }
.task-due { font-size: 9.5px; white-space: nowrap; color: var(--muted); }
.task-due.is-late { color: var(--red); }
.task-due.is-today { color: var(--amber); }

.task-card {
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 13px 11px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  min-width: 0;
}
.task-card:hover { border-color: var(--line-2); background: #171717; }
.task-card.is-dragging { opacity: 0.45; transform: rotate(0.6deg); }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.task-card-title { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-2); }
.task-card:hover .task-card-title { color: var(--text); }
.task-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; font-size: 9.5px; color: var(--faint); }
.task-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.task-card-flags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.task-card-actions { display: flex; align-items: center; gap: 4px; }
.task-card .takeover-btn {
  font-size: 9px; color: var(--green); opacity: 0.75;
  display: inline-flex; align-items: center; gap: 3px;
}
.task-card .takeover-btn:hover { opacity: 1; }
.task-card.final-card { opacity: 0.78; }
.task-card.final-card .task-card-title { color: var(--faint); }
.mini-flag { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--faint); }
.mini-flag .ic { width: 10px; height: 10px; }
.mini-flag.red { color: var(--red); }
.mini-flag.amber { color: var(--amber); }
.mini-flag.blue { color: var(--blue); }

/* ---------------------------------------------------------------- board */
.board { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.board-col {
  background: #0d0d0d; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; min-height: 180px; transition: border-color 160ms ease, background 160ms ease;
}
.board-col.is-drop-target { border-color: rgba(189,189,189, 0.36); background: rgba(189,189,189, 0.025); }
.board-head { display: flex; align-items: center; gap: 7px; padding: 3px 4px 11px; }
.board-head .status-chip { height: 22px; }
.board-count { font-size: 9.5px; color: var(--faint); margin-left: auto; }
.board-list { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.board-col > .btn-add {
  width: 100%; height: 30px; margin-top: 8px; border-radius: 8px;
  border: 1px dashed rgba(255,255,255, 0.09); color: var(--faint);
  font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.board-col > .btn-add:hover { border-color: rgba(189,189,189, 0.3); color: var(--green); }
.board-drop-hint { font-size: 9px; color: var(--faint); text-align: center; padding: 8px 0 3px; }

/* -------------------------------------------------------------- stepper */
.stepper { display: flex; align-items: center; gap: 0; margin: 16px 0 4px; }
.step { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.step-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 8px;
}
.step.is-done .step-dot { background: rgba(189,189,189, 0.1); border-color: rgba(189,189,189, 0.35); color: var(--green); }
.step.is-current .step-dot { background: var(--green); border-color: var(--green); color: #0d0d0d; }
.step-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.step.is-current .step-label, .step.is-done .step-label { color: var(--text-2); }
.step-line { flex: 1; height: 1px; background: var(--line-2); margin: 0 8px; min-width: 16px; }
.step.is-done + .step-line { background: rgba(189,189,189, 0.25); }

/* --------------------------------------------------------------- detail */
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.meta-item { min-width: 0; }
.meta-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 4px; }
.meta-value { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; min-height: 20px; }
.drawer-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.drawer-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.drawer-section-title { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prose { font-size: 12px; line-height: 1.65; color: var(--text-2); }
.proof-box {
  border: 1px solid rgba(189,189,189, 0.15);
  background: rgba(189,189,189, 0.04);
  border-radius: 10px; padding: 11px 12px;
  font-size: 11.5px; color: var(--text-2); line-height: 1.55;
}
.proof-box .proof-label { display: flex; align-items: center; gap: 6px; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin-bottom: 5px; }
.block-box {
  border: 1px solid rgba(178,178,178, 0.15);
  background: rgba(178,178,178, 0.04);
  border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--text-2); line-height: 1.55;
}
.event-list { display: flex; flex-direction: column; gap: 0; }
.event {
  position: relative; display: flex; gap: 11px; padding: 0 0 15px 0;
}
.event:last-child { padding-bottom: 0; }
.event::before {
  content: ""; position: absolute; left: 8px; top: 18px; bottom: 0;
  width: 1px; background: var(--line);
}
.event:last-child::before { display: none; }
.event-dot {
  width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-2); background: #101010;
  display: flex; align-items: center; justify-content: center; color: var(--faint);
  margin-top: 1px; position: relative; z-index: 1;
}
.event-dot .ic { width: 9px; height: 9px; }
.event-body { min-width: 0; flex: 1; }
.event-text { font-size: 11px; color: var(--muted); line-height: 1.5; }
.event-text strong { color: var(--text-2); font-weight: 500; }
.event-time { font-size: 9px; color: var(--faint); margin-top: 2px; }
.event-note { margin-top: 5px; font-size: 10.5px; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 8px; line-height: 1.5; }
.handover-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px;
  font-size: 10.5px; color: var(--muted); line-height: 1.55;
  background: rgba(255,255,255, 0.016);
}
.handover-box strong { color: var(--text-2); font-weight: 500; }

/* --------------------------------------------------------------- tables */
.matrix { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.matrix th {
  text-align: left; font-weight: 500; color: var(--faint); font-size: 8.5px;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
}
.matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td:first-child { color: var(--text-2); }
.matrix .yes { color: var(--green); }
.matrix .no { color: #565656; }

/* --------------------------------------------------------------- command */
.cmd { margin: -20px -24px -22px; }
.cmd-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--faint); }
.cmd-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 14px; height: 30px;
}
.cmd-search input::placeholder { color: #606060; }
.cmd-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmd-group-label {
  font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--faint); padding: 10px 10px 5px;
}
.cmd-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-align: left;
  color: var(--text-2); font-size: 12px;
}
.cmd-item:hover, .cmd-item.is-active { background: rgba(255,255,255, 0.05); color: var(--text); }
.cmd-item-ic { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255, 0.035); color: var(--muted); flex: 0 0 auto; }
.cmd-item-main { flex: 1; min-width: 0; }
.cmd-item-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-item-meta { font-size: 9.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-empty { padding: 26px; text-align: center; font-size: 11px; color: var(--faint); }
.cmd-foot { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 9px; color: var(--faint); }
.cmd-foot span { display: flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------- notifications */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line);
  cursor: pointer; align-items: flex-start;
}
.notif-item:first-child { border-top: 0; }
.notif-item:hover .notif-title { color: var(--green); }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: var(--green); }
.notif-dot.red { background: var(--red); }
.notif-dot.amber { background: var(--amber); }
.notif-dot.blue { background: var(--blue); }
.notif-title { font-size: 12px; color: var(--text-2); line-height: 1.45; transition: color 150ms ease; }
.notif-meta { font-size: 10px; color: var(--faint); margin-top: 3px; line-height: 1.5; }

/* ---------------------------------------------------------------- switch */
.switch { position: relative; display: inline-flex; width: 34px; height: 19px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 20px; background: #212121;
  border: 1px solid var(--line-2); transition: background 180ms ease, border-color 180ms ease;
}
.switch span::after {
  content: ""; position: absolute; width: 13px; height: 13px; left: 2px; top: 2px;
  border-radius: 50%; background: #767676; transition: transform 180ms ease, background 180ms ease;
}
.switch input:checked + span { background: rgba(189,189,189, 0.22); border-color: rgba(189,189,189, 0.35); }
.switch input:checked + span::after { transform: translateX(15px); background: var(--green); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .kpi-grid { gap: 10px; }
  .kpi { padding: 15px 15px 13px; }
  .kpi-value { font-size: 28px; }
}
@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--line); }
  .board { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .board-col { scroll-snap-align: start; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .card { padding: 18px; border-radius: 17px; }
  .card.flush { padding: 0; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { border-radius: 13px; padding: 13px 13px 12px; }
  .kpi-value { font-size: 25px; }
  .kpi-label { font-size: 8.5px; letter-spacing: 0.09em; }
  .kpi-ic { display: none; }
  .kpi-foot { font-size: 9px; }
  .stat-cell { padding: 12px 13px; }
  .stat-value { font-size: 17px; }
  .metric-row { gap: 6px; }
  .metric-cell strong { font-size: 14px; }
  .card-head { margin-bottom: 14px; }
  .board { grid-template-columns: repeat(3, 82vw); }
  .task-row { gap: 9px; }
  .task-row-side .task-hours { display: none; }
  .btn { height: 34px; font-size: 11.5px; }
  .modal .cmd { margin: -17px -18px -20px; }
  .cmd-results { max-height: 58vh; }
  .meta-grid { gap: 12px; }
  .tabs { margin: 0 -2px; }
  .tab { padding: 0 10px; font-size: 10.5px; }
  .stepper { gap: 0; }
  .step-label { display: none; }
  .step.is-current .step-label { display: block; }
  .step-line { min-width: 10px; }
}
