:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --border: #2a2f3a;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --accent: #5b8cff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

header h1 { font-size: 16px; margin: 0; font-weight: 600; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
}
nav a.active, nav a:hover { color: var(--text); background: var(--panel-2); }

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
}

button, input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
}
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: white; }

a, a:visited {
  color: var(--accent);
}
a:hover { color: #86aaff; }

.board {
  display: flex;
  gap: 14px;
  padding: 0 20px 20px;
  overflow-x: auto;
  align-items: flex-start;
}

.column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 260px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
}

.column-header {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.column-header .count { color: var(--muted); font-weight: 400; }

.column-body {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 40px;
}
.column-body.drag-over { background: var(--panel-2); }

.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 13px;
}
.card:active { cursor: grabbing; }
.card .title { font-weight: 600; margin-bottom: 4px; }
.card .subtitle { color: var(--muted); font-size: 12px; }
.card .meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #2a2f3a;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(640px, 92vw);
  max-height: 86vh;
  display: flex; flex-direction: column;
}
.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-header h2 { margin: 0 0 4px; font-size: 17px; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 20px; }

.field-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.field-row label { color: var(--muted); font-size: 12px; min-width: 80px; }

.jd-box, .pitch-box {
  white-space: pre-wrap;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  max-height: 360px;
  overflow-y: auto;
}

.comments { margin-top: 16px; }
.comments h3 { font-size: 14px; margin-bottom: 8px; }
.comments-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-2);
}
.comment-list { display: flex; flex-direction: column; gap: 6px; }
.comment-list:not(:empty) { margin-bottom: 10px; }
.comment {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.comment .ts { color: var(--muted); font-size: 11px; margin-top: 4px; }
.no-comments { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.comment-form { display: flex; gap: 8px; }
.comment-form textarea { flex: 1; resize: vertical; min-height: 40px; }

.empty-state { color: var(--muted); padding: 40px; text-align: center; }
