:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #edf4ef;
  --text: #18201d;
  --muted: #5c6862;
  --line: #d8ded8;
  --accent: #147a5f;
  --accent-dark: #0d4f40;
  --gold: #b7791f;
  --gold-soft: #fff7df;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(25, 32, 29, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(237, 244, 239, 0.92), rgba(247, 248, 244, 0) 460px),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.status-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 78px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 20px;
}

.brand small,
.hero p,
.summary-card small,
.district-card footer,
.amount-grid span,
.empty-state span {
  color: var(--muted);
}

.preview-link {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
}

.hero {
  max-width: 820px;
  padding: 72px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.hero p:not(.eyebrow) {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.summary-card,
.district-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.summary-card span {
  color: var(--muted);
  font-weight: 800;
}

.summary-card strong {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.summary-card.confirmed {
  border-color: rgba(183, 121, 31, 0.28);
  background: linear-gradient(135deg, var(--gold-soft), #ffffff 64%);
}

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

.district-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3vw, 30px);
}

.district-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.lead-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

.amount-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfcfb;
}

.amount-grid strong {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.confirmed-box {
  background: var(--gold-soft) !important;
  border-color: rgba(183, 121, 31, 0.24) !important;
}

.progress-wrap {
  height: 12px;
  border-radius: 999px;
  background: #dce4df;
  overflow: hidden;
}

.progress-wrap span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.district-card footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 34px;
}

@media (max-width: 760px) {
  .status-header,
  .district-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid,
  .district-grid,
  .amount-grid {
    grid-template-columns: 1fr;
  }
}
