/* Minimal hand-rolled stylesheet (PHASE1_PLAN §1 — no CSS framework). */

:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #ddd;
  --accent: #2456a5;
  --flash-bg: #fff6d9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.topnav .brand { font-weight: 700; }

main { max-width: 60rem; margin: 1.5rem auto; padding: 0 1.25rem; }

.flash {
  background: var(--flash-bg);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

a { color: var(--accent); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--line); }

.hint { color: var(--muted); font-size: 0.9em; }

.nav-right { margin-left: auto; display: flex; gap: 0.75rem; align-items: baseline; }

.login-box { max-width: 22rem; margin: 4rem auto; text-align: center; }

.provider-button {
  display: block;
  margin: 0.6rem 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.provider-button:hover { border-color: var(--accent); }

.page-head { display: flex; align-items: center; gap: 0.75rem; }
.page-head h1 { margin-right: 0.25rem; }

.filter-tabs a, .filter-tabs strong { margin-right: 0.75rem; }

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8em;
  color: var(--muted);
}
.badge-customer { border-color: var(--accent); color: var(--accent); }
.badge-lost { color: #a52424; border-color: #a52424; }
.badge-primary { color: var(--accent); }

section { margin: 1.75rem 0; }
.two-col { display: flex; gap: 2rem; flex-wrap: wrap; }
.two-col section { flex: 1 1 16rem; margin: 0.5rem 0; }

.kv th { width: 11rem; font-weight: 600; color: var(--muted); }

.stacked-form { max-width: 28rem; }
.stacked-form label { display: block; margin: 0.5rem 0; }
.stacked-form label.inline { display: flex; gap: 0.4rem; align-items: center; }
.stacked-form input:not([type=checkbox]), .stacked-form textarea, .stacked-form select {
  display: block; width: 100%; padding: 0.35rem 0.5rem;
  border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
.stacked-form button { margin-top: 0.5rem; }

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0;
}
.note.pinned { background: var(--flash-bg); }
.note-head { display: flex; justify-content: space-between; align-items: baseline; }
.note-body :first-child { margin-top: 0.3rem; }
.note-body :last-child { margin-bottom: 0; }

button.linkish {
  background: none; border: none; padding: 0;
  color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline;
}
button.danger { color: #a52424; }

.action-button {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.board { display: flex; gap: 0.75rem; align-items: flex-start; overflow-x: auto; }
.pcol {
  flex: 1 1 0;
  min-width: 9.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  background: #fafafa;
}
.pcol h2 { font-size: 0.95rem; margin: 0.1rem 0 0.4rem; text-transform: capitalize; }
.pcol .count { color: var(--muted); font-weight: 400; }
.pcol.dragover { border-color: var(--accent); background: #eef3fb; }
.pcol-cards { min-height: 2.5rem; }
.pcard {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 0.4rem 0.55rem;
  margin: 0.4rem 0;
  cursor: grab;
}
.pcard a { text-decoration: none; font-weight: 600; }
.overdue { color: #a52424; font-weight: 600; }

