:root {
  --fb-navy: #1F3A5F;
  --fb-orange: #F97316;
  --fb-blue: #2563EB;
  --fb-snow: #F8FAFC;
  --fb-white: #FFFFFF;
  --fb-text: #15263D;
  --fb-muted: #64748B;
  --fb-border: #E2E8F0;
  --fb-success: #16A34A;
  --fb-warning: #D97706;
  --fb-danger: #DC2626;
  --fb-radius-sm: 10px;
  --fb-radius-md: 16px;
  --fb-radius-lg: 24px;
  --fb-shadow: 0 14px 35px rgba(31, 58, 95, 0.08);
  --fb-sidebar-width: 248px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fb-snow);
  color: var(--fb-text);
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--fb-sidebar-width) 1fr;
}

.sidebar {
  background: var(--fb-navy);
  color: white;
  padding: 26px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 34px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--fb-orange);
  font-weight: 900;
}

.nav-link {
  display: block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 12px;
}

.nav-link.active, .nav-link:hover {
  color: white;
  background: rgba(255,255,255,.1);
}

.main { padding: 28px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--fb-blue);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 { margin: 6px 0; color: var(--fb-navy); }

.muted { color: var(--fb-muted); }

.clock-group {
  display: flex;
  gap: 10px;
}

.clock {
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-md);
  padding: 12px 16px;
  min-width: 150px;
  box-shadow: var(--fb-shadow);
}

.clock strong { color: var(--fb-navy); display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow);
  padding: 22px;
}

.mission { grid-column: span 8; }
.ai-card { grid-column: span 4; }
.metric { grid-column: span 3; }

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fb-navy);
  margin: 8px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary { background: var(--fb-orange); color: white; }
.btn-secondary { background: var(--fb-navy); color: white; }

.progress {
  height: 10px;
  background: #EAF0F7;
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--fb-orange);
}

.prospect-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prospect-form label { color: var(--fb-navy); display: grid; font-size: .88rem; font-weight: 700; gap: 6px; }
.prospect-form input, .prospect-form select, .prospect-form textarea { width: 100%; border: 1px solid var(--fb-border); border-radius: var(--fb-radius-sm); color: var(--fb-text); font: inherit; padding: 10px 12px; }
.prospect-form textarea { resize: vertical; }
.form-actions { align-self: end; display: flex; }
.field-error { color: var(--fb-danger); font-weight: 600; }
.notice { border-radius: var(--fb-radius-sm); margin-bottom: 18px; padding: 12px 16px; }
.notice.success { background: #DCFCE7; color: #166534; }
.notice.error { background: #FEE2E2; color: #991B1B; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--fb-border); padding: 14px 10px; text-align: left; }
th { color: var(--fb-muted); font-size: .78rem; text-transform: uppercase; }
td a { color: var(--fb-blue); font-weight: 700; }
.pill { background: #EAF0F7; border-radius: 999px; color: var(--fb-navy); display: inline-block; font-size: .82rem; padding: 4px 8px; text-transform: capitalize; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mission, .ai-card, .metric { grid-column: span 12; }
  .topbar { flex-direction: column; }
  .clock-group { width: 100%; flex-wrap: wrap; }
  .prospect-form { grid-template-columns: 1fr; }
}
