/* ============================================================================
   Kanban board
   ============================================================================ */
body.app .kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    -webkit-overflow-scrolling: touch;
}
body.app .kanban-col {
    flex: 0 0 320px;
    min-width: 280px;
    max-width: 360px;
    background: var(--m-surface-2);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}
body.app .kanban-col__header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--m-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
body.app .kanban-col__title {
    font-family: var(--m-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--m-text);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.app .kanban-col__count {
    background: var(--m-divider);
    color: var(--m-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
}
body.app .kanban-col__rail {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
body.app .kanban-col__rail--backlog  { background: var(--m-text-faint); }
body.app .kanban-col__rail--progress { background: var(--m-accent); }
body.app .kanban-col__rail--review   { background: var(--m-warning); }
body.app .kanban-col__rail--done     { background: var(--m-success); }
body.app .kanban-col__list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.app .kanban-col__list.is-drop-target {
    background: rgba(var(--m-accent-rgb), 0.06);
}
body.app .kanban-col__add {
    padding: 10px 12px;
    border-top: 1px solid var(--m-divider);
}
body.app .kanban-col__add button {
    width: 100%;
    border: 1px dashed var(--m-border);
    background: transparent;
    color: var(--m-text-muted);
    padding: 8px;
    border-radius: 8px;
    font-family: var(--m-font);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
body.app .kanban-col__add button:hover {
    border-color: var(--m-accent);
    color: var(--m-accent);
}
body.app .kanban-card {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    box-shadow: var(--m-shadow-xs);
    transition: box-shadow 120ms ease, transform 120ms ease;
}
body.app .kanban-card:hover {
    box-shadow: var(--m-shadow-sm);
}
body.app .kanban-card.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
}
body.app .kanban-card__labels {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
body.app .kanban-card__label {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.app .kanban-card__label--bug      { background: var(--m-danger-soft); color: var(--m-danger); }
body.app .kanban-card__label--feature  { background: var(--m-c1-soft); color: var(--m-c1); }
body.app .kanban-card__label--design   { background: var(--m-c4-soft); color: var(--m-c4); }
body.app .kanban-card__label--docs     { background: var(--m-c2-soft); color: var(--m-c2); }
body.app .kanban-card__label--research { background: var(--m-c3-soft); color: var(--m-c3); }
body.app .kanban-card__title {
    font-family: var(--m-font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--m-text);
    margin: 0 0 8px;
    line-height: 1.4;
}
body.app .kanban-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
body.app .kanban-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--m-text-faint);
}
body.app .kanban-card__meta i { font-size: 11px; margin-right: 3px; }
body.app .kanban-card__avatars img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--m-surface);
    margin-left: -6px;
    object-fit: cover;
}
body.app .kanban-card__avatars img:first-child { margin-left: 0; }


