body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
  text-align: center;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #e0e0e0;
  padding: 3px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  border-radius: 999px;
  user-select: none;
}
.tab.active {
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Fields */
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cccccc;
  font-size: 14px;
  box-sizing: border-box;
  background: #fafafa;
}
.field textarea {
  resize: vertical;
  min-height: 60px;
}
.row {
  display: flex;
  gap: 8px;
}
.row .field {
  flex: 1;
}

/* Buttons & Status */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #1976d2;
  color: #ffffff;
}
.btn-primary:disabled {
  opacity: 0.6;
}
.status-msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 16px;
}
.status-success {
  color: #1b5e20;
}
.status-error {
  color: #b71c1c;
}

/* Pills */
.pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eeeeee;
  color: #555555;
  margin-bottom: 6px;
}

/* Pipeline */
.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pipeline-refresh {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e3f2fd;
  color: #0d47a1;
  border: none;
  cursor: pointer;
}
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafa;
}
.lead-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.lead-title {
  font-size: 14px;
  font-weight: 600;
}
.lead-status-pill {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eee;
  color: #555;
}
.lead-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}
.lead-notes {
  font-size: 12px;
  color: #444;
  margin-top: 4px;
}

/* Status color classes */
.lead-status-pending {
  background: #fff3cd;
  color: #856404;
}
.lead-status-inprogress {
  background: #e3f2fd;
  color: #0d47a1;
}
.lead-status-closedwon {
  background: #c8e6c9;
  color: #1b5e20;
}
.lead-status-closedlost {
  background: #ffcdd2;
  color: #b71c1c;
}
.lead-status-notpending {
  background: #eeeeee;
  color: #555;
}
