#kanban-panel {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 8px;
  align-items: flex-start;
}

.kanban-column {
  min-width: 240px;
  max-width: 280px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
}

.column-header {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.column-count {
  background: var(--border);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--text-muted);
}

.column-cards {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
  border-left: 3px solid var(--border);
}
.kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.kanban-card.sortable-ghost { opacity: 0.4; }
.kanban-card.sortable-drag { cursor: grabbing; }

.card-title { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.card-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-agent {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-agent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.priority-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.priority-dot.high { background: #da3633; }
.priority-dot.medium { background: #d29922; }
.priority-dot.low { background: #3fb950; }

.card-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.1s;
}
.kanban-card:hover .card-delete-btn { opacity: 1; }
.card-delete-btn:hover { color: var(--danger); background: rgba(218,54,51,0.1); }

/* New card form */
.add-card-btn {
  margin: 8px;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s, color 0.15s;
  width: calc(100% - 16px);
}
.add-card-btn:hover { border-color: var(--accent); color: var(--accent); }

.new-card-form {
  margin: 8px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.new-card-form input, .new-card-form select, .new-card-form textarea {
  width: 100%;
  font-size: 12px;
}
.new-card-form textarea { resize: none; height: 60px; }
.form-row { display: flex; gap: 6px; }
.form-row select { flex: 1; }
.form-actions { display: flex; gap: 6px; justify-content: flex-end; }
.form-actions button { font-size: 12px; padding: 4px 10px; }
