/* pcintake v2 — minimal styling. Same visual family as the rest of the personal-lines tool suite. */

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  background: #f7f7f8;
  color: #1d1d1f;
}
header {
  background: #1e293b;
  color: #f1f5f9;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 { margin: 0; font-size: 1.2rem; }
nav .nav-btn {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #475569;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 8px;
  cursor: pointer;
}
nav .nav-btn.active { background: #475569; }

main { padding: 24px; }
.view.hidden { display: none; }

.list-controls {
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
#list-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#list-table th, #list-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
#list-table tr:hover { background: #f1f5f9; cursor: pointer; }

#view-new {
  max-width: 600px;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#view-new label { display: block; margin: 12px 0; }
#view-new input[type="text"], #view-new input:not([type="checkbox"]) { width: 100%; padding: 6px; }
#view-new fieldset { margin: 16px 0; padding: 12px; }

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 16px;
}
.detail-meta, .detail-actions, .detail-main {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.detail-meta label, .detail-actions label { display: block; margin: 10px 0; font-size: 0.85rem; }
.detail-meta input, .detail-meta textarea, .detail-meta select {
  width: 100%; padding: 6px; margin-top: 2px;
  border: 1px solid #cbd5e1; border-radius: 4px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 0.75rem;
}

.upload-zone {
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
}
.upload-zone.dragover { background: #eff6ff; border-color: #3b82f6; }
#upload-status { font-size: 0.85rem; color: #475569; margin-bottom: 16px; }

#validation-banner {
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 0.85rem;
}
#validation-banner.ok { background: #dcfce7; border-color: #22c55e; }

.scope-section {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
}
.scope-section h4 { margin: 0 0 8px 0; font-size: 0.9rem; color: #475569; }
.field-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 0.85rem;
}
.field-row.missing-required label { color: #b91c1c; font-weight: 600; }
.field-row.missing-required input:not([readonly]) { border-color: #fca5a5; background: #fef2f2; }
.field-row.missing-recommended label { color: #92400e; }
.field-row.missing-recommended input:not([readonly]) { border-color: #fcd34d; background: #fffbeb; }
.reveal-btn, .view-btn { font-size: 0.7rem; padding: 2px 8px; cursor: pointer; }
.sensitive-actions { display: flex; gap: 4px; justify-content: flex-end; }
.view-btn { background: #f1f5f9; }
.required-asterisk { color: #b91c1c; font-weight: 700; }
small.hint { display: block; color: #64748b; font-size: 0.75rem; margin-top: 2px; }
small.hint code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-family: ui-monospace, monospace; }
.field-row input { padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 3px; }
.field-row .confidence {
  font-size: 0.7rem; color: #64748b; text-align: right;
}
.field-row .reveal-btn { font-size: 0.7rem; padding: 2px 6px; }

.research-controls { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.research-btn {
  padding: 6px 12px;
  background: #1e293b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.research-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.research-block {
  border-left: 3px solid #6366f1;
  padding: 12px;
  background: #f8fafc;
  margin: 12px 0;
  font-size: 0.85rem;
}

#actions-list { list-style: none; padding: 0; }
#actions-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
}
.action-status { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; }
.action-status.succeeded { background: #dcfce7; color: #166534; }
.action-status.failed { background: #fee2e2; color: #991b1b; }
.action-status.running { background: #dbeafe; color: #1e40af; }
.action-status.STUB { background: #fef3c7; color: #92400e; }
.action-run { font-size: 0.75rem; padding: 4px 8px; cursor: pointer; }

button.primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  margin-bottom: 12px;
}
button.primary:hover { background: #1d4ed8; }
.hint { font-size: 0.75rem; color: #64748b; margin-top: 8px; }
