:root {
  --navy: #1f3a5f;
  --accent: #2e75b6;
  --light: #eaf1f8;
  --grey: #595959;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #f7f9fc; color: #222; }
header { background: var(--navy); color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 18px; margin: 0; }
#auth-bar input { padding: 6px 10px; border-radius: 4px; border: none; margin-right: 8px; }
#auth-bar button, .toolbar button, .modal button { background: var(--accent); color: white; border: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; }
main { padding: 24px; max-width: 1000px; margin: 0 auto; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.toolbar select { padding: 6px; border-radius: 4px; border: 1px solid #ccc; }
table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: var(--light); color: var(--navy); }
.badge { background: var(--light); color: var(--navy); padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.status { padding: 2px 8px; border-radius: 12px; font-size: 12px; color: white; }
.status-new { background: #2e75b6; }
.status-contacted { background: #d9a441; }
.status-qualified { background: #6a9b4c; }
.status-negotiation { background: #b06fc9; }
.status-won { background: #2e9c5b; }
.status-lost { background: #b04545; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { background: white; padding: 24px; border-radius: 8px; width: 480px; max-height: 80vh; overflow-y: auto; position: relative; }
.close-btn { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--grey); }
.modal-content input, .modal-content textarea { width: 100%; padding: 8px; margin: 6px 0; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.timeline { list-style: none; padding: 0; font-size: 13px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.timeline .ts { color: var(--grey); font-size: 11px; float: right; }
