:root {
  --border: #d8d8d8;
  --bg: #fafafa;
  --accent: #2f5d50;
}

* { box-sizing: border-box; }

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 600; color: var(--accent); text-decoration: none; }

.topbar nav { display: flex; gap: 16px; align-items: center; }
.topbar nav a { color: var(--accent); text-decoration: none; }
.who { color: #777; font-size: 0.9em; }

main { padding: 20px; }

.board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.column {
  min-width: 220px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.column h2 {
  font-size: 0.95em;
  display: flex;
  justify-content: space-between;
}

.count { color: #999; }

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.card-name { font-weight: 600; }
.card-meta { font-size: 0.85em; color: #666; }

.empty { color: #999; font-style: italic; }

.lead-form, .status-form, .activity-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.status-form, .activity-form { max-width: none; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9em; }
label.checkbox { flex-direction: row; align-items: center; gap: 6px; }

input, select, textarea, button {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
}

.lead-summary { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; max-width: 600px; }
.lead-summary dt { color: #666; }
.lead-summary dd { margin: 0; }

.activity-log { list-style: none; padding: 0; max-width: 600px; }
.activity-log li { border-top: 1px solid var(--border); padding: 8px 0; }
.activity-log .methods { color: #666; font-size: 0.85em; margin-left: 8px; }

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}

.error { color: #b00020; }

.dev-banner {
  background: #b00020;
  color: white;
  text-align: center;
  padding: 6px;
  font-weight: 600;
  font-size: 0.85em;
}
