:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d2230;
  --text: #e8ecf2;
  --muted: #9ea7b7;
  --border: #2c3445;
  --accent: #5ea1ff;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0c0f14 0%, #121724 100%);
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.8);
  position: sticky;
  top: 0;
  backdrop-filter: blur(5px);
}

h1 { margin: 0; font-size: 1.4rem; }
.topbar p { margin: 4px 0 0; color: var(--muted); }

button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button.ghost { background: #3a4252; }
button.danger { background: var(--danger); }
button.hidden { display: none; }

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
}

.column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-height: 70vh;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.column-header h2 { margin: 0; font-size: 1rem; }
.count {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dropzone {
  min-height: 60vh;
  border-radius: 8px;
  padding: 6px;
}
.dropzone.drag-over { outline: 2px dashed var(--accent); background: #1a2030; }

.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: grab;
}
.card-title { margin: 0 0 8px; font-size: 0.95rem; }
.card-desc { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 0.75rem;
  background: #222a3a;
  border: 1px solid #38435a;
  color: #c9d3e7;
  padding: 3px 8px;
  border-radius: 999px;
}
.chip.high { border-color: #8f3a3a; color: #ffc9c9; }
.chip.medium { border-color: #7b6f35; color: #ffeaa3; }
.chip.low { border-color: #3d7b4e; color: #c3f0cf; }

#taskDialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #141a25;
  color: var(--text);
  width: min(700px, 95vw);
}
.task-form { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: #0f131c;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
menu { display: flex; justify-content: flex-end; gap: 8px; margin: 6px 0 0; padding: 0; }

@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
