/* ConsultDevin Partner & White Glove Program UI Styles (paired with main.css) */
.cd-aff-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
@media (min-width: 640px) {
  .cd-aff-shell { padding: 2.5rem 1.5rem 5rem; }
}
.cd-aff-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.cd-aff-card-navy {
  background: #002040;
  color: #ffffff;
  border: 1px solid #1e3a5f;
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.cd-aff-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.cd-aff-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cd-aff-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .cd-aff-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-aff-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-aff-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cd-aff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cd-badge-navy { background: #002040; color: #ffffff; }
.cd-badge-sky { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.cd-badge-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cd-badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.cd-badge-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.cd-badge-slate { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.cd-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cd-btn-primary { background: #002040; color: #ffffff; }
.cd-btn-primary:hover:not(:disabled) { background: #0f172a; }
.cd-btn-blue { background: #005ea2; color: #ffffff; }
.cd-btn-blue:hover:not(:disabled) { background: #0369a1; }
.cd-btn-emerald { background: #047857; color: #ffffff; }
.cd-btn-emerald:hover:not(:disabled) { background: #065f46; }
.cd-btn-outline { background: #ffffff; color: #002040; border-color: #cbd5e1; }
.cd-btn-outline:hover:not(:disabled) { background: #f8fafc; border-color: #005ea2; }

.cd-input, .cd-select, .cd-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.875rem;
  box-sizing: border-box;
}
.cd-input:focus, .cd-select:focus, .cd-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #005ea2;
  box-shadow: 0 0 0 3px rgba(0, 94, 162, 0.15);
}
.cd-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 0.35rem;
}
.cd-path-card {
  border: 2px solid #cbd5e1;
  border-radius: 1.25rem;
  padding: 1.35rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.cd-path-card:hover { border-color: #005ea2; }
.cd-path-card.is-selected {
  border-color: #002040;
  background: #f0f9ff;
  box-shadow: 0 8px 20px rgba(0, 32, 64, 0.1);
}
.cd-table-wrap { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; text-align: left; }
.cd-table th {
  padding: 0.65rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.cd-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.cd-num { font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
.cd-progress-track {
  width: 100%;
  height: 0.6rem;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}
.cd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #005ea2, #00e5ff);
  transition: width 0.3s ease;
}
.cd-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.85rem;
  border: 1px solid;
}
.cd-alert-ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.cd-alert-err { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.cd-alert-info { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.cd-alert-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.cd-hidden { display: none !important; }
