/* Section header */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 16px; font-weight: 600; }
.section-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.kanban-col {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  min-height: 400px;
  max-height: 75vh;
}
.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.kanban-col-header .col-count {
  background: var(--bg-3);
  padding: 1px 8px; border-radius: 10px;
  font-size: 10px; color: var(--text-1);
}
.kanban-col-body {
  padding: 8px;
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.kanban-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: grab;
  transition: all 0.1s;
}
.kanban-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.4; }
.kanban-col.drag-over { background: var(--brand-soft); }
.kanban-card-title { font-size: 12.5px; font-weight: 500; color: var(--text-0); margin-bottom: 6px; line-height: 1.35; }
.kanban-card-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* Who opened this backlog item / feature */
.kanban-card-author { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-2); margin-bottom: 6px; }
.kanban-card-avatar {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}

/* Per-column accent (Backlog Board: set inline via --col-accent; Modules
   Kanban Board keeps its own higher-specificity .st-* colours, unaffected) */
.kanban-col { border-top: 3px solid var(--col-accent, var(--line-2)); }

/* "+ Add Column" tile at the end of the Backlog Board row */
.kanban-col-add {
  background: transparent;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  min-width: 160px;
  color: var(--text-2);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.kanban-col-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.kanban-col-add:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kanban-col-add-icon { font-size: 22px; line-height: 1; font-weight: 400; }

/* Modules status board (4 build-status columns) */
.kanban.mod-board { grid-template-columns: repeat(4, minmax(250px, 1fr)); }
.kanban-col-header .col-head-txt { display: flex; flex-direction: column; gap: 2px; }
.kanban-col-header .col-sub { font-size: 10px; font-weight: 400; color: var(--text-2);
  letter-spacing: .1px; text-transform: none; }
.kanban-col.st-planned { border-top: 3px solid var(--text-3); }
.kanban-col.st-dev { border-top: 3px solid var(--warn); }
.kanban-col.st-sim { border-top: 3px solid var(--info, var(--brand)); }
.kanban-col.st-live { border-top: 3px solid var(--ok); }
.mod-card-desc { font-size: 11.5px; color: var(--text-2); line-height: 1.45; margin: 7px 0; }
.mod-card-outcome { font-size: 11px; color: var(--text-2); line-height: 1.4; }
.mod-card-outcome b { color: var(--ok); font-weight: 600; }

