.kanban {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kanban-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kanban-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.kanban-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

.kanban-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.75rem;
  flex: 0 0 280px;
  max-width: 320px;
  scroll-snap-align: start;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kanban-column-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kanban-column-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.kanban-column-subtitle {
  font-size: 0.68rem;
  color: #94a3b8;
}

.kanban-count {
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
}

.kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 120px;
  padding-bottom: 0.25rem;
}

.kanban-column-footer {
  display: flex;
  justify-content: center;
  padding-bottom: 0.25rem;
}

.kanban-load-more {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.kanban-load-more:disabled {
  cursor: default;
  opacity: 0.7;
}

.kanban-column-body.is-drag-over {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 0.75rem;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kanban-card:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kanban-card.is-dragging {
  opacity: 0.7;
  transform: scale(0.99);
  cursor: grabbing;
}

.kanban-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kanban-card-id {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.kanban-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #334155;
}

.kanban-chip.is-empty {
  display: none;
}

.kanban-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.kanban-card-link {
  color: inherit;
  text-decoration: none;
}

.kanban-card-link:hover {
  text-decoration: underline;
}

.kanban-card-subtitle {
  font-size: 0.7rem;
  color: #64748b;
}

.kanban-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.kanban-progress-fill {
  height: 100%;
  border-radius: 9999px;
}

.kanban-progress-label {
  font-size: 0.7rem;
  color: #64748b;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kanban-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #64748b;
}

.kanban-meta-item i {
  font-size: 0.75rem;
  color: #94a3b8;
}

.kanban-card-action {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  margin-left: auto;
}

.kanban-tone-slate .kanban-progress-fill {
  background: #64748b;
}

.kanban-tone-blue .kanban-progress-fill {
  background: #3b82f6;
}

.kanban-tone-rose .kanban-progress-fill {
  background: #f43f5e;
}

.kanban-tone-emerald .kanban-progress-fill {
  background: #10b981;
}

.kanban-tone-amber .kanban-progress-fill {
  background: #f59e0b;
}

.kanban-tone-indigo .kanban-progress-fill {
  background: #6366f1;
}

.kanban-tone-teal .kanban-progress-fill {
  background: #14b8a6;
}

.dark .kanban-title,
.dark .kanban-column-title,
.dark .kanban-card-title {
  color: #e2e8f0;
}

.dark .kanban-meta,
.dark .kanban-card-subtitle,
.dark .kanban-progress-label,
.dark .kanban-card-id,
.dark .kanban-meta-item {
  color: #94a3b8;
}

.dark .kanban-board {
  color: #e2e8f0;
}

.dark .kanban-column {
  background: #0f172a;
  border-color: #1e293b;
}

.dark .kanban-column-body.is-drag-over {
  background: rgba(148, 163, 184, 0.08);
}

.dark .kanban-card {
  background: #0b1220;
  border-color: #1e293b;
  box-shadow: none;
}

.dark .kanban-count {
  background: #1e293b;
  color: #cbd5f5;
}

.dark .kanban-chip {
  background: #1e293b;
  color: #cbd5f5;
}

.dark .kanban-load-more {
  background: #0b1220;
  border-color: #1e293b;
  color: #e2e8f0;
}

.dark .kanban-meta-item i {
  color: #64748b;
}

.dark .kanban-progress-bar {
  background: #1e293b;
}
