/* ============================================================
   Styles OWNED by the shared Kanban engine (js/core/kanban.js).
   Mobile first: near-full-width columns; desktop gets fixed columns.
   ============================================================ */
.kb-board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.kb-col {
  flex: 0 0 80vw;
  width: 80vw;
  max-width: 280px;
  background: #eef0f4;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px;
}

@media (min-width: 992px) {
  .kb-col { flex: 0 0 250px; width: 250px; max-width: none; }
}

.kb-col.drag-over { border-color: #0d6efd; background: #e7f0ff; }

.kb-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.kb-col-name { font-weight: 600; }

.kb-col-body {
  min-height: 60px;
  max-height: calc(100dvh - 320px);
  overflow-y: auto;
}

.kb-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(30, 37, 48, 0.1);
}

.kb-card.kb-grab {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.kb-card.dragging { opacity: 0.35; }

.kb-ghost {
  position: fixed;
  z-index: 2000;
  margin: 0;
  pointer-events: none;
  opacity: 0.95;
  transform: translate(0, 0);
  box-shadow: 0 12px 28px rgba(30, 37, 48, 0.3);
  rotate: 2deg;
}

.kb-menu { position: absolute; top: 4px; right: 4px; }
.kb-card-main { padding-right: 18px; }

.kb-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  word-break: break-word;
}

.kb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.kb-owner {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-empty { text-align: center; padding: 16px 0; }
