:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --border: #d9dce2;
  --text: #1c2333;
  --muted: #6b7280;
  --accent: #5b4bd6;
  --backlog: #8a90a0;
  --running: #d97706;
  --test: #2563eb;
  --done: #16a34a;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover { color: var(--text); background: var(--bg); }
nav a.active { color: var(--accent); border-color: var(--accent); background: var(--surface); }
main { padding: 20px 24px 0; }
#board-title { font-size: 18px; font-weight: 600; }
#columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 24px 24px;
  align-items: start;
}
@media (max-width: 900px) { #columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #columns { grid-template-columns: 1fr; } }
.column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 220px;
  box-shadow: 0 1px 2px rgba(28, 35, 51, .05);
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.column-head h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 8px;
}
.cards { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 120px; }
.column.dragover .cards { outline: 2px dashed var(--accent); outline-offset: -4px; border-radius: 8px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(28, 35, 51, .05);
}
.card.dragging { opacity: .4; }
.card-title { white-space: pre-wrap; word-break: break-word; }
.card-date { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.empty { color: var(--muted); font-size: 12px; padding: 4px 2px; }
.del-board {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.del-board:hover { color: #dc2626; background: #fee2e2; }
