:root { --border:#d0d7de; --muted:#6b7280; --panel:#f8fafc; --accent:var(--ei-red); --text:#111827; --danger:#b42318; --ok:#0f5132; }
* { box-sizing:border-box; }
body { margin:0; font-family:Arial, Helvetica, sans-serif; color:var(--text); background:#fff; }
.dashboard-wrap { max-width:1240px; margin:0 auto; padding:28px 20px 48px; }
.dashboard-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:16px; }
.dashboard-header h1 { margin:0 0 6px; font-size:30px; }
.dashboard-header p, .records-title-row p { margin:0; color:var(--muted); font-size:14px; }
.user-panel { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; }
.active-user { border:1px solid var(--border); background:var(--panel); border-radius:999px; padding:8px 12px; font-weight:700; font-size:13px; }
.dashboard-status { border:1px solid var(--border); background:var(--panel); border-radius:10px; padding:10px 12px; margin:0 0 18px; color:#374151; }
.dashboard-status.is-error, .modal-error, .review-save-message.is-error { color:var(--danger); background:#fff1f2; border-color:#fecdd3; }
.launcher-section, .records-section { border:1px solid var(--border); border-radius:14px; padding:18px; margin-top:18px; background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.launcher-section h2, .records-section h2 { margin:0 0 14px; font-size:20px; }
.launch-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.launch-card { border:1px solid var(--border); border-radius:14px; background:#fff; padding:18px; display:grid; gap:10px; min-height:205px; }
.launch-card h3 { margin:0; font-size:19px; }
.launch-card p { margin:0; color:var(--muted); line-height:1.45; }
.status-pill.pending { color:#664d03; border-color:#ffecb5; background:#fff3cd; }
.card-actions { margin-top:auto; }
.action-link, .action-btn { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:9px 13px; border-radius:8px; border:1px solid var(--accent); background:var(--accent); color:#fff; text-decoration:none; font-weight:700; cursor:pointer; }
.action-link.secondary, .action-btn:not(.primary) { background:#fff; color:var(--text); border-color:var(--border); }
.action-link:disabled, button:disabled { opacity:.55; cursor:not-allowed; }
.records-title-row { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.dashboard-tabs { display:flex; gap:8px; }
.dashboard-tab { border:1px solid var(--border); background:#fff; border-radius:999px; padding:8px 12px; cursor:pointer; font-weight:700; }
.dashboard-tab.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.records-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:14px; }
.records-controls label { display:grid; gap:5px; font-weight:700; font-size:13px; }
.records-controls input, .records-controls select { min-height:38px; border:1px solid var(--border); border-radius:8px; padding:8px 10px; min-width:220px; }
.records-table-wrap { overflow:auto; border:1px solid var(--border); border-radius:12px; }
.records-table { width:100%; border-collapse:collapse; font-size:13px; }
.records-table th, .records-table td { border-bottom:1px solid var(--border); padding:9px 10px; text-align:left; white-space:nowrap; }
.records-table th { background:var(--panel); font-size:12px; text-transform:none; }
.empty-records { text-align:center; color:var(--muted); padding:18px !important; }
.merge-note { display:none; color:var(--muted); font-size:13px; margin-top:10px; }
.is-coordinator .merge-note { display:block; }
.ar-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(15,23,42,.42); z-index:9999; padding:20px; }
.ar-modal-card { width:min(520px, 100%); background:#fff; border-radius:16px; border:1px solid var(--border); padding:22px; box-shadow:0 24px 60px rgba(15,23,42,.24); display:grid; gap:12px; }
.ar-modal-card h2 { margin:0; }
.ar-modal-fields label { display:grid; gap:5px; font-weight:700; }
.ar-modal-fields input { min-height:40px; border:1px solid var(--border); border-radius:8px; padding:9px 11px; }
.modal-error { border:1px solid #fecdd3; border-radius:8px; padding:8px 10px; }
.ar-modal-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.review-workflow-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; padding:14px 0; }
.review-save-message { border:1px solid #badbcc; background:#d1e7dd; color:#0f5132; border-radius:10px; padding:12px 14px; margin:12px 0; }
@media (max-width:900px){ .dashboard-header, .records-title-row { flex-direction:column; } .launch-grid{ grid-template-columns:1fr; } .records-controls input, .records-controls select { min-width:0; width:100%; } }
.merge-view-wrap { display:grid; gap:16px; padding:12px; background:#fff; }
.merge-group { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#fff; }
.merge-group-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:14px; background:var(--panel); border-bottom:1px solid var(--border); }
.merge-group-header h3 { margin:0 0 4px; font-size:18px; }
.merge-group-header p { margin:0; color:var(--muted); font-size:13px; }
.merge-group-status { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.merge-group-status span { border:1px solid var(--border); border-radius:999px; background:#fff; padding:5px 9px; font-size:12px; font-weight:700; }
.merge-table { border-collapse:collapse; border:0; }
.merge-modal-card { width:min(980px,100%); max-height:90vh; overflow:auto; }
.merge-conflicts { display:grid; gap:12px; }
.merge-conflict-card { border:1px solid var(--border); border-radius:12px; padding:14px; background:#fff; display:grid; gap:10px; }
.merge-conflict-card h4 { margin:0; font-size:16px; }
.merge-field-path { color:var(--muted); font-family:Consolas, Monaco, monospace; font-size:12px; }
.merge-choice { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; border:1px solid var(--border); border-radius:10px; padding:10px; cursor:pointer; }
.merge-choice span { display:grid; gap:5px; }
.merge-choice small { color:var(--muted); }
.merge-choice code, .merge-success code { display:block; white-space:pre-wrap; word-break:break-word; border:1px solid var(--border); background:var(--panel); border-radius:8px; padding:8px; font-family:Consolas, Monaco, monospace; }
.merge-choice input[type="text"] { min-height:38px; border:1px solid var(--border); border-radius:8px; padding:8px 10px; }
.merge-success { border:1px solid #badbcc; background:#d1e7dd; color:#0f5132; border-radius:12px; padding:12px 14px; }

/* Phase 4 button layout parity: make GEN/VAR form controls match the Propulsion card stack feel. */
.form-footer.parity-form-footer {
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:12px 14px;
  margin-top:20px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}
.form-footer.parity-form-footer .footer-nav {
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.form-footer.parity-form-footer .nav-actions {
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-left:auto;
}
.form-footer.parity-form-footer .review-workflow-actions {
  width:100%;
  justify-content:flex-end;
  padding:0;
  margin-top:2px;
}
.form-footer.parity-form-footer .review-save-message { align-self:stretch; }
