:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #142033;
  --muted: #617085;
  --line: #d9e1ec;
  --blue: #1f6feb;
  --cyan: #0ea5b7;
  --green: #168a5b;
  --amber: #b7791f;
  --red: #c2414b;
  --shadow: 0 18px 48px rgba(20, 32, 51, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: #0d1726;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
}
.nav {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}
.nav a {
  text-decoration: none;
  color: #c7d4e7;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,.10); color: white; }
.content { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(246,248,251,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px;
}
.hero {
  padding: 34px 0 22px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 8px 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: .95;
  letter-spacing: -.04em;
}
h2 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 16px; }
p { color: var(--muted); line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.metric-filter {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.metric-filter:hover strong,
.metric-filter:focus-visible strong {
  color: var(--blue);
}
.metric-filter.is-active {
  border-color: #bfd2f7;
  background: #eef5ff;
}
.metric-filter.is-active .muted,
.metric-filter.is-active strong {
  color: var(--blue);
}
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #174ea6;
  font-size: 12px;
  font-weight: 900;
  margin: 0 6px 6px 0;
}
.ok { background: #e9f8f1; color: var(--green); }
.warn { background: #fff6df; color: var(--amber); }
.danger { background: #fff0f1; color: var(--red); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: .64;
}
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lead-action-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.lead-action-group {
  display: grid;
  gap: 7px;
}
.lead-action-group-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead-card-new {
  padding: 12px;
  border: 1px solid #f1d391;
  border-radius: 8px;
  background: #fffaf0;
}
.lead-card-new:before {
  background: #fff1c2;
  color: var(--amber);
}
.lead-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lead-card-heading h3 {
  margin-bottom: 0;
}
.lead-new-badge {
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}
label { display: grid; gap: 6px; color: var(--muted); font-weight: 850; }
.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tablewrap { overflow-x: auto; }
.steps { counter-reset: step; display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}
.step:before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 950;
}
.audience {
  grid-template-columns: 1fr;
}
.audience .sidebar { display: none; }
.audience .content { min-height: 100vh; }
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .grid2, .grid4 { grid-template-columns: 1fr; }
  .topbar { position: static; padding: 14px 16px; }
  .wrap { padding: 18px 14px; }
}
