@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --red: #a90d07;
  --red-dark: #8f0804;
  --navy: #08154b;
  --navy-soft: #132b87;
  --green: #0b6f32;
  --green-dark: #07562a;
  --gold: #f4bd1c;
  --orange: #f6931d;
  --ink: #080914;
  --muted: #666a73;
  --line: #eceef2;
  --paper: #ffffff;
  --cream: #fff6de;
  --surface: #f7f7f9;
  --shadow: 0 12px 28px rgba(13, 18, 33, 0.08);
  --soft-shadow: 0 5px 16px rgba(15, 22, 40, 0.08);
  font-size: clamp(15px, 2.75vw, 18px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 2%, rgba(169, 13, 7, 0.08), transparent 26rem),
    linear-gradient(180deg, #fdfdfd 0%, #f6f7fa 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: transparent;
}

.phone-frame {
  width: min(100%, 54rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(8, 9, 20, 0.03);
}

.app-header {
  position: relative;
  min-height: 9.25rem;
  padding: max(1.05rem, env(safe-area-inset-top)) 1.35rem 1.55rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 0.08rem, transparent 0.08rem 0.62rem),
    linear-gradient(180deg, #b10f08 0%, var(--red) 100%);
  background-size: 0.62rem 0.62rem, auto;
  border-bottom-right-radius: 3.1rem;
  box-shadow: 0 0.75rem 1.8rem rgba(137, 9, 5, 0.23);
}

.brand-row {
  min-height: 6.4rem;
  display: grid;
  grid-template-columns: minmax(5.45rem, 7.25rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.logo-wrap {
  width: clamp(5.45rem, 19vw, 7.6rem);
  aspect-ratio: 1;
  margin-bottom: -2.1rem;
  z-index: 2;
  filter: drop-shadow(0 0.35rem 0.35rem rgba(0, 0, 0, 0.25));
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
  padding-top: 0.2rem;
  padding-right: clamp(4.7rem, 14vw, 8rem);
}

.brand-title {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.8rem, 6.2vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0.12rem 0 rgba(0, 0, 0, 0.2);
}

.brand-tagline {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.76rem, 2.7vw, 1.08rem);
  font-weight: 500;
  line-height: 1.25;
}

.header-actions {
  position: absolute;
  top: max(1.05rem, env(safe-area-inset-top));
  right: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  z-index: 3;
}

.icon-btn {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -0.18rem;
  right: -0.1rem;
  min-width: 1.22rem;
  height: 1.22rem;
  display: grid;
  place-items: center;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ffd000;
  color: #171000;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0.08rem 0.18rem rgba(0, 0, 0, 0.22);
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #fff;
}

.avatar {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 50%;
  border: 0.22rem solid rgba(255, 255, 255, 0.96);
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 0.2rem 0.55rem rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.content {
  padding: 2.35rem 1.35rem calc(6.4rem + env(safe-area-inset-bottom));
}

.welcome-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.welcome-line > div {
  min-width: 0;
}

.welcome-title {
  margin: 0;
  font-size: clamp(1.45rem, 4.9vw, 2.05rem);
  line-height: 1.08;
  font-weight: 800;
}

.welcome-subtitle {
  margin: 0.62rem 0 0;
  color: #20242c;
  font-size: clamp(0.92rem, 3.1vw, 1.12rem);
  line-height: 1.4;
  font-weight: 400;
}

.verified-pill {
  flex: 0 0 auto;
  min-height: 3.12rem;
  padding: 0.54rem 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #dfe6e4;
  border-radius: 0.5rem;
  background: #f9fbfa;
  color: #24412e;
  box-shadow: 0 0.28rem 0.8rem rgba(14, 54, 35, 0.06);
  font-size: clamp(0.78rem, 2.7vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
}

.feature-card {
  min-height: 12.65rem;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 0.25rem;
  align-items: stretch;
  padding: 1.38rem 1.35rem 1.2rem;
  border: 1px solid #f1dfad;
  border-radius: 0.72rem;
  background:
    radial-gradient(circle at 95% 0%, rgba(251, 210, 85, 0.22), transparent 7.5rem),
    linear-gradient(180deg, #fff8e6 0%, #fff3d3 100%);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #b77b04;
  font-size: clamp(0.78rem, 2.8vw, 1.02rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.feature-title {
  margin: 0;
  color: #0b0d15;
  font-size: clamp(1.1rem, 4.05vw, 1.7rem);
  font-weight: 800;
  line-height: 1.32;
}

.feature-text {
  margin: 1.05rem 0 1.1rem;
  color: #5e626a;
  font-size: clamp(0.86rem, 3vw, 1.08rem);
  line-height: 1.45;
  max-width: 22rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  font-weight: 600;
}

.date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5a5e67;
  white-space: nowrap;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.feature-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.62rem;
  margin-bottom: -0.65rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.85rem 0 0.82rem;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #05060d;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.35rem, 4.4vw, 1.78rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.section-title .bolt-icon {
  width: 1.12rem;
  height: 1.12rem;
  color: #ffbf00;
  filter: drop-shadow(0 0.05rem 0 rgba(0, 0, 0, 0.12));
}

.news-list {
  display: grid;
  gap: 0.95rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(7rem, 26%) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 8.55rem;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.1rem rgba(18, 26, 45, 0.06);
  overflow: hidden;
}

.news-card > * {
  min-width: 0;
}

.thumb {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1.44 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  background: #f1f4f8;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.new-chip {
  position: absolute;
  top: 0.48rem;
  left: 0.48rem;
  padding: 0.26rem 0.45rem 0.24rem;
  border-radius: 0.28rem;
  background: #2498ff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-body {
  min-width: 0;
  display: grid;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.news-title {
  margin: 0;
  color: #080a12;
  font-size: clamp(0.95rem, 3.3vw, 1.22rem);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.news-text {
  margin: 0;
  color: #5f636d;
  font-size: clamp(0.78rem, 2.8vw, 1rem);
  line-height: 1.36;
  overflow-wrap: break-word;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.18rem;
  font-size: clamp(0.76rem, 2.65vw, 0.95rem);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.85rem;
}

.quick-action {
  min-height: 5.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.74rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: #fff;
  color: #11131a;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.42rem 1rem rgba(20, 26, 43, 0.06);
  font-size: clamp(0.74rem, 2.65vw, 0.95rem);
  font-weight: 500;
  line-height: 1.12;
}

.quick-icon {
  width: 2.95rem;
  height: 2.95rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.safe-banner {
  min-height: 4.7rem;
  margin-top: 1rem;
  padding: 0.78rem 1rem;
  border-radius: 0.72rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 8rem),
    linear-gradient(135deg, #0b2378 0%, #051052 100%);
  box-shadow: 0 0.52rem 1.05rem rgba(5, 18, 83, 0.2);
  overflow: hidden;
}

.safe-title {
  margin: 0;
  font-size: clamp(0.9rem, 3.1vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
}

.safe-text {
  margin: 0.14rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.72rem, 2.55vw, 0.92rem);
  font-weight: 500;
  line-height: 1.26;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 54rem);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.1rem;
  padding: 0.48rem 0.55rem calc(0.48rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(18, 24, 38, 0.08);
  border-top-left-radius: 1.35rem;
  border-top-right-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -0.55rem 1.25rem rgba(16, 24, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-item {
  min-height: 3.52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 0.62rem;
  color: #6d7179;
  text-decoration: none;
  font-size: clamp(0.62rem, 2.35vw, 0.78rem);
  font-weight: 600;
  line-height: 1;
}

.nav-item.active {
  color: var(--red);
}

.nav-item svg {
  width: 1.38rem;
  height: 1.38rem;
}

.nav-dots {
  width: 1.58rem;
  height: 1.38rem;
}

.icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex: 0 0 auto;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

svg {
  shape-rendering: geometricPrecision;
}

@media (max-width: 600px) {
  .app-header {
    padding-inline: 1rem;
    border-bottom-right-radius: 2.55rem;
  }

  .brand-row {
    min-height: 5.65rem;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .logo-wrap {
    width: 4.85rem;
    margin-bottom: -1.65rem;
  }

  .brand-copy {
    padding-right: 5.7rem;
  }

  .brand-title {
    font-size: 1.48rem;
    line-height: 1.02;
  }

  .brand-tagline {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .avatar {
    width: 2.72rem;
    height: 2.72rem;
    border-width: 0.16rem;
  }

  .icon-btn {
    width: 1.98rem;
    height: 1.98rem;
  }

  .header-actions {
    top: max(0.9rem, env(safe-area-inset-top));
    right: 0.78rem;
    gap: 0.24rem;
  }

  .avatar-btn {
    gap: 0.18rem;
  }

  .notif-badge {
    min-width: 1rem;
    height: 1rem;
    font-size: 0.66rem;
  }

  .content {
    padding-inline: 1rem;
  }

  .welcome-line {
    align-items: flex-start;
    gap: 0.58rem;
  }

  .welcome-title {
    font-size: 1.28rem;
  }

  .welcome-subtitle {
    font-size: 0.82rem;
  }

  .verified-pill {
    min-height: 2.55rem;
    padding: 0.42rem 0.48rem;
    gap: 0.34rem;
    font-size: 0.72rem;
  }

  .verified-pill .icon {
    width: 0.94rem;
    height: 0.94rem;
  }

  .feature-card {
    grid-template-columns: 1.05fr 0.82fr;
    padding: 1.15rem 1rem 1rem;
  }

  .feature-art {
    margin-right: -1.1rem;
  }

  .news-card {
    grid-template-columns: minmax(7rem, 31%) minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.62rem;
  }

  .news-meta {
    gap: 0.48rem;
    flex-wrap: wrap;
  }

  .news-meta .text-link {
    margin-left: auto;
  }

  .actions-grid {
    gap: 0.52rem;
  }
}

@media (max-width: 360px) {
  :root {
    font-size: 14px;
  }

  .brand-title {
    font-size: 1.52rem;
  }

  .brand-tagline {
    max-width: 11rem;
  }

  .welcome-line {
    display: grid;
  }

  .verified-pill {
    width: fit-content;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-art {
    min-height: 8rem;
    margin: -0.6rem -0.8rem -1.1rem 1.5rem;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .thumb {
    aspect-ratio: 2.2 / 1;
  }

  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  :root {
    font-size: 18px;
  }

  .phone-frame,
  .bottom-nav {
    width: min(100%, 48rem);
  }

  .content {
    padding-inline: 2rem;
  }

  .app-header {
    padding-inline: 2rem;
  }

  .feature-card {
    min-height: 15rem;
  }

  .news-card {
    min-height: 9.4rem;
    grid-template-columns: minmax(11.5rem, 31%) minmax(0, 1fr);
  }
}

@media (hover: hover) {
  .text-link:hover,
  .quick-action:hover,
  .nav-item:hover {
    filter: brightness(0.95);
  }
}

.elections-page .app-header {
  min-height: 10.75rem;
  border-bottom-right-radius: 2.9rem;
}

.elections-page .brand-title {
  font-size: clamp(1.9rem, 6.4vw, 3.15rem);
}

.elections-content {
  padding-top: 2.75rem;
}

.page-intro {
  margin-bottom: 1.6rem;
}

.page-title {
  margin: 0;
  color: #0a0b12;
  font-size: clamp(2rem, 6.8vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.page-subtitle {
  margin: 1rem 0 0;
  color: #42464f;
  font-size: clamp(0.96rem, 3.2vw, 1.18rem);
  line-height: 1.48;
}

.election-hero {
  min-height: 17.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 42%);
  align-items: center;
  gap: 0.6rem;
  padding: 1.85rem 2rem;
  border: 1px solid #b8d4fb;
  border-radius: 0.72rem;
  background:
    radial-gradient(circle at 91% 48%, rgba(205, 229, 255, 0.9), transparent 8.5rem),
    linear-gradient(135deg, #f9fcff 0%, #eef6ff 100%);
  box-shadow: 0 0.45rem 1.25rem rgba(28, 95, 169, 0.06);
  overflow: hidden;
}

.election-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.election-eyebrow {
  margin: 0 0 1.45rem;
  color: #0c328d;
  font-size: clamp(0.9rem, 3vw, 1.12rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.election-hero h2 {
  margin: 0 0 1.15rem;
  color: #0b0d13;
  font-size: clamp(1.45rem, 5.4vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}

.election-hero p:not(.election-eyebrow) {
  margin: 0.38rem 0;
  color: #4e535b;
  font-size: clamp(0.96rem, 3.1vw, 1.16rem);
  line-height: 1.38;
}

.primary-cta,
.vote-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 3.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.48rem;
  color: #fff;
  background: linear-gradient(135deg, #061b83 0%, #0a2a9f 100%);
  box-shadow: 0 0.55rem 1rem rgba(5, 29, 132, 0.22);
  text-decoration: none;
  font-size: clamp(0.98rem, 3.25vw, 1.18rem);
  font-weight: 700;
  white-space: nowrap;
}

.primary-cta {
  min-width: 10.4rem;
  margin-top: 1.35rem;
}

.hero-ballot-art {
  align-self: stretch;
  min-width: 0;
  display: grid;
  place-items: center;
  margin: -1rem -1.3rem -1.4rem 0;
}

.election-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.9rem 0 1.55rem;
  border: 1px solid #e2e5ea;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 0.4rem 1rem rgba(18, 26, 45, 0.04);
  overflow: hidden;
}

.election-tab {
  min-height: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  padding: 0.65rem 0.5rem;
  color: #20242c;
  border-left: 1px solid #e2e5ea;
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  font-weight: 500;
  text-align: center;
}

.election-tab:first-child {
  border-left: 0;
}

.election-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #071a7b 0%, #0a2c9b 100%);
  font-weight: 700;
}

.election-tab span {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef0f3;
  color: #121821;
  font-size: 0.8rem;
  font-weight: 700;
}

.election-tab.active span {
  background: #79a8e6;
  color: #fff;
}

.active-election-card {
  display: grid;
  grid-template-columns: minmax(10.25rem, 27%) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  min-height: 13.2rem;
  padding: 1.05rem;
  border: 1px solid #eceef2;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.2rem rgba(16, 24, 42, 0.07);
}

.election-thumb {
  position: relative;
  align-self: stretch;
  min-height: 11rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #0a2f99;
}

.election-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.live-chip {
  position: absolute;
  top: 0.62rem;
  left: 0.62rem;
  z-index: 2;
  padding: 0.38rem 0.5rem 0.32rem;
  border-radius: 0.28rem;
  color: #fff;
  background: #10b029;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.box-logo {
  position: absolute;
  left: 50%;
  bottom: 2.8rem;
  width: clamp(2.7rem, 8vw, 4.05rem);
  height: clamp(2.7rem, 8vw, 4.05rem);
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 0.12rem 0.12rem rgba(0, 0, 0, 0.24));
}

.election-card-body {
  min-width: 0;
}

.election-card-body h2 {
  margin: 0;
  color: #080a12;
  font-size: clamp(1.2rem, 4.25vw, 1.7rem);
  font-weight: 800;
  line-height: 1.18;
}

.election-card-body > p {
  max-width: 32rem;
  margin: 1.15rem 0 1.6rem;
  color: #4d515a;
  font-size: clamp(0.88rem, 3vw, 1.08rem);
  line-height: 1.55;
}

.election-meta-grid {
  display: grid;
  grid-template-columns: auto auto minmax(8.2rem, auto);
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.election-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5c616a;
  font-size: clamp(0.8rem, 2.75vw, 0.98rem);
  font-weight: 500;
  white-space: nowrap;
}

.election-meta-item .icon {
  color: #73777f;
}

.vote-card-button {
  min-height: 3.35rem;
  padding-inline: 1rem;
  justify-self: end;
}

.turnout-bar {
  height: 0.34rem;
  margin: 1.55rem 0 1.05rem;
  border-radius: 999px;
  background: #e7e7e7;
  overflow: hidden;
}

.turnout-bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: #10a232;
}

.turnout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #646872;
  font-size: clamp(0.78rem, 2.65vw, 0.96rem);
}

.turnout-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.turnout-row strong {
  color: #149b31;
  font-weight: 700;
  white-space: nowrap;
}

.turnout-row em {
  color: #565b64;
  font-style: normal;
  font-weight: 500;
}

.reminder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.4rem, 28%);
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.05rem;
  padding: 1.95rem 2rem;
  border: 1px solid #bdd8fa;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 96% 22%, rgba(210, 234, 255, 0.9), transparent 8rem),
    linear-gradient(135deg, #fafeff 0%, #eef7ff 100%);
  box-shadow: 0 0.42rem 1.05rem rgba(28, 95, 169, 0.05);
}

.reminder-copy h2 {
  margin: 0 0 1.65rem;
  color: #0a318c;
  font-size: clamp(1.15rem, 3.6vw, 1.52rem);
  font-weight: 800;
  line-height: 1.2;
}

.reminder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.reminder-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.reminder-icon.clock {
  color: #0d8a49;
}

.reminder-icon.lock {
  color: #f7af07;
}

.reminder-item h3 {
  margin: 0;
  color: #0b0d13;
  font-size: clamp(0.98rem, 3.25vw, 1.18rem);
  font-weight: 800;
  line-height: 1.18;
}

.reminder-item p {
  margin: 0.38rem 0 0;
  color: #464b54;
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  line-height: 1.35;
}

.reminder-divider {
  height: 1px;
  margin: 1.35rem 0;
  background: #d5dce6;
}

.reminder-art {
  min-width: 0;
}

@media (max-width: 600px) {
  .elections-page .app-header {
    min-height: 8.8rem;
  }

  .elections-content {
    padding-top: 2.15rem;
  }

  .page-intro {
    margin-bottom: 1.25rem;
  }

  .page-title {
    font-size: 1.82rem;
  }

  .page-subtitle {
    margin-top: 0.8rem;
    font-size: 0.9rem;
  }

  .election-hero {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 35%);
    min-height: 14.6rem;
    padding: 1.35rem 1rem;
  }

  .election-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.78rem;
  }

  .election-hero h2 {
    font-size: 1.28rem;
  }

  .election-hero p:not(.election-eyebrow) {
    font-size: 0.84rem;
  }

  .primary-cta {
    min-width: 8.1rem;
    min-height: 3.25rem;
    margin-top: 1rem;
    padding-inline: 0.9rem;
    font-size: 0.9rem;
  }

  .hero-ballot-art {
    margin: -0.8rem -1.35rem -1rem -0.7rem;
  }

  .election-tabs {
    margin: 1.45rem 0 1.2rem;
  }

  .election-tab {
    min-height: 3.6rem;
    gap: 0.35rem;
    padding-inline: 0.25rem;
    font-size: 0.72rem;
  }

  .election-tab span {
    min-width: 1.08rem;
    height: 1.08rem;
    font-size: 0.66rem;
  }

  .active-election-card {
    grid-template-columns: minmax(7.6rem, 34%) minmax(0, 1fr);
    gap: 0.82rem;
    padding: 0.72rem;
  }

  .election-thumb {
    min-height: 11.2rem;
  }

  .election-card-body h2 {
    font-size: 1.02rem;
  }

  .election-card-body > p {
    margin: 0.72rem 0 0.9rem;
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .election-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .vote-card-button {
    min-height: 2.9rem;
    width: fit-content;
    justify-self: start;
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

  .turnout-bar {
    margin: 0.92rem 0 0.75rem;
  }

  .turnout-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.72rem;
  }

  .reminder-card {
    grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 27%);
    gap: 0.45rem;
    margin-top: 1.55rem;
    padding: 1.35rem 1rem;
  }

  .reminder-copy h2 {
    margin-bottom: 1.15rem;
    font-size: 1rem;
  }

  .reminder-item {
    gap: 0.72rem;
  }

  .reminder-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .reminder-item h3 {
    font-size: 0.86rem;
  }

  .reminder-item p {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .election-hero {
    grid-template-columns: 1fr;
  }

  .hero-ballot-art {
    min-height: 8rem;
    margin: -1rem -0.8rem -1.5rem 4.5rem;
  }

  .active-election-card {
    grid-template-columns: 1fr;
  }

  .election-thumb {
    min-height: 10rem;
  }

  .reminder-card {
    grid-template-columns: 1fr;
  }

  .reminder-art {
    max-width: 9rem;
    justify-self: end;
    margin-top: -1.2rem;
  }
}

@media (max-width: 430px) {
  .elections-page .brand-title {
    font-size: 1.42rem;
    line-height: 1.02;
  }

  .elections-page .brand-copy {
    padding-right: 5.2rem;
  }

  .election-hero {
    grid-template-columns: 1fr;
  }

  .hero-ballot-art {
    min-height: 8.5rem;
    width: 62%;
    justify-self: end;
    margin: -0.7rem -0.8rem -1.35rem 0;
  }

  .active-election-card {
    grid-template-columns: 1fr;
  }

  .election-thumb {
    min-height: 10.8rem;
  }

  .election-meta-grid {
    grid-template-columns: 1fr;
  }

  .reminder-card {
    grid-template-columns: 1fr;
  }

  .reminder-art {
    max-width: 9.5rem;
    justify-self: end;
    margin-top: -1.25rem;
  }
}

.election-tab {
  text-decoration: none;
  min-width: 0;
  flex-wrap: wrap;
  line-height: 1.15;
}

.election-tab span {
  flex: 0 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.55rem;
  color: #0b2a91;
  text-decoration: none;
  font-size: clamp(1rem, 3.4vw, 1.22rem);
  font-weight: 700;
}

.back-link .icon {
  width: 1.32rem;
  height: 1.32rem;
}

.upcoming-intro {
  margin-bottom: 1.55rem;
}

.upcoming-banner {
  min-height: 9.9rem;
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) minmax(12rem, 31%);
  align-items: center;
  gap: 1.15rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid #f2d7a5;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 211, 110, 0.2), transparent 9rem),
    linear-gradient(135deg, #fffaf2 0%, #fff8ec 100%);
  box-shadow: 0 0.42rem 1.05rem rgba(166, 104, 13, 0.04);
  overflow: hidden;
}

.banner-calendar-icon {
  width: 4.45rem;
  height: 4.45rem;
  display: grid;
  place-items: center;
}

.upcoming-banner-copy {
  min-width: 0;
}

.upcoming-banner-copy h2 {
  margin: 0 0 0.82rem;
  color: #c26407;
  font-size: clamp(1.05rem, 3.5vw, 1.38rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.upcoming-banner-copy p {
  margin: 0.32rem 0;
  color: #4d5159;
  font-size: clamp(0.86rem, 2.9vw, 1.08rem);
  line-height: 1.34;
  overflow-wrap: break-word;
}

.upcoming-calendar-art {
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -0.7rem -0.7rem -0.8rem 0;
}

.upcoming-list {
  display: grid;
  gap: 1.35rem;
}

.upcoming-election-card {
  display: grid;
  grid-template-columns: minmax(7.4rem, 19%) minmax(0, 1fr) auto;
  grid-template-areas:
    "icon body status"
    "footer footer footer";
  gap: 1rem 1.35rem;
  align-items: center;
  padding: 1.5rem 1.55rem 1.25rem;
  border: 1px solid #eceef2;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.48rem 1.15rem rgba(16, 24, 42, 0.07);
}

.upcoming-election-icon {
  grid-area: icon;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.48rem;
}

.upcoming-election-icon svg {
  width: 58%;
  height: 58%;
}

.upcoming-election-icon.purple {
  color: #7140bf;
  background: linear-gradient(135deg, #f1eafb 0%, #eadff8 100%);
}

.upcoming-election-icon.green {
  color: #0ba52f;
  background: linear-gradient(135deg, #eaffef 0%, #ddf7e4 100%);
}

.upcoming-election-body {
  grid-area: body;
  min-width: 0;
}

.upcoming-election-body h2 {
  margin: 0;
  color: #0a0b12;
  font-size: clamp(1.12rem, 3.9vw, 1.58rem);
  font-weight: 800;
  line-height: 1.16;
  overflow-wrap: break-word;
}

.upcoming-election-body p {
  max-width: 28rem;
  margin: 0.78rem 0 1.05rem;
  color: #4b5059;
  font-size: clamp(0.88rem, 2.9vw, 1.06rem);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.upcoming-card-meta {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  flex-wrap: wrap;
}

.status-pill {
  grid-area: status;
  align-self: center;
  justify-self: end;
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.82rem;
  border-radius: 0.46rem;
  font-size: clamp(0.82rem, 2.8vw, 0.98rem);
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.purple {
  color: #6a38b6;
  background: #f0e4fb;
}

.status-pill.green {
  color: #108f31;
  background: #e1f6e4;
}

.upcoming-card-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e5e7eb;
}

.upcoming-card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #5c616a;
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  line-height: 1.25;
}

.upcoming-reminder-card {
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 30%);
  margin-top: 1.75rem;
}

.reminder-icon.megaphone {
  color: #f6a800;
}

.reminder-icon.lock.red {
  color: #c50909;
}

.upcoming-reminder-art {
  min-width: 0;
  display: grid;
  place-items: center;
}

@media (max-width: 600px) {
  .back-link {
    margin-bottom: 1.1rem;
    font-size: 0.98rem;
  }

  .upcoming-banner {
    grid-template-columns: 3.6rem minmax(0, 1fr) minmax(7rem, 28%);
    gap: 0.78rem;
    min-height: 8.5rem;
    padding: 1.05rem 0.9rem;
  }

  .banner-calendar-icon {
    width: 3.4rem;
    height: 3.4rem;
  }

  .upcoming-banner-copy h2 {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
  }

  .upcoming-banner-copy p {
    font-size: 0.78rem;
  }

  .upcoming-calendar-art {
    margin-right: -1rem;
  }

  .upcoming-election-card {
    grid-template-columns: minmax(6.5rem, 28%) minmax(0, 1fr);
    grid-template-areas:
      "icon body"
      "icon status"
      "footer footer";
    gap: 0.78rem 0.9rem;
    padding: 1rem 0.9rem 0.95rem;
  }

  .upcoming-election-body h2 {
    font-size: 1rem;
  }

  .upcoming-election-body p {
    margin: 0.55rem 0 0.72rem;
    font-size: 0.78rem;
  }

  .upcoming-card-meta {
    gap: 0.58rem;
  }

  .status-pill {
    justify-self: start;
    min-height: 2.12rem;
    padding-inline: 0.68rem;
    font-size: 0.78rem;
  }

  .upcoming-card-footer {
    padding-top: 0.9rem;
    font-size: 0.78rem;
  }

  .upcoming-reminder-card {
    grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 27%);
  }
}

@media (max-width: 430px) {
  .upcoming-page .page-subtitle {
    max-width: 19rem;
  }

  .upcoming-banner {
    grid-template-columns: 1fr;
  }

  .banner-calendar-icon {
    display: none;
  }

  .upcoming-calendar-art {
    width: 45%;
    min-width: 8.5rem;
    justify-self: end;
    margin: -1rem -0.8rem -1.2rem 0;
  }

  .upcoming-election-card {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.7rem 0.78rem;
  }

  .upcoming-card-meta {
    display: grid;
    gap: 0.45rem;
  }

  .upcoming-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.72rem;
  }

  .upcoming-reminder-card {
    grid-template-columns: 1fr;
  }

  .upcoming-reminder-art {
    max-width: 9.8rem;
    justify-self: end;
    margin-top: -1rem;
  }
}

.past-intro {
  margin-bottom: 1.55rem;
}

.past-banner {
  min-height: 9.65rem;
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr) minmax(12rem, 30%);
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.55rem;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 88% 25%, rgba(90, 198, 93, 0.14), transparent 8.5rem),
    linear-gradient(135deg, #f5fff5 0%, #edf9ed 100%);
  box-shadow: 0 0.42rem 1.05rem rgba(29, 117, 47, 0.04);
  overflow: hidden;
}

.past-banner-icon {
  width: 4.35rem;
  height: 4.35rem;
  color: #59b43d;
  display: grid;
  place-items: center;
}

.past-banner-copy {
  min-width: 0;
}

.past-banner-copy h2 {
  margin: 0 0 0.82rem;
  color: #108f31;
  font-size: clamp(1.08rem, 3.6vw, 1.42rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.past-banner-copy p {
  max-width: 24rem;
  margin: 0;
  color: #3f444d;
  font-size: clamp(0.9rem, 3vw, 1.08rem);
  line-height: 1.42;
  overflow-wrap: break-word;
}

.past-report-art {
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -0.6rem -0.5rem -0.8rem 0;
}

.past-list {
  display: grid;
  gap: 1rem;
}

.past-election-card {
  display: grid;
  grid-template-columns: minmax(7.25rem, 17%) minmax(0, 1fr) minmax(8.4rem, auto);
  grid-template-areas:
    "icon body status"
    "icon body action";
  gap: 0.75rem 1.15rem;
  align-items: center;
  min-height: 9.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #eceef2;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.48rem 1.15rem rgba(16, 24, 42, 0.06);
}

.past-election-icon {
  grid-area: icon;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.48rem;
}

.past-election-icon svg {
  width: 58%;
  height: 58%;
}

.past-election-icon.purple {
  color: #7542be;
  background: linear-gradient(135deg, #f1eafb 0%, #eadff8 100%);
}

.past-election-icon.trophy {
  color: #f2a000;
  background: linear-gradient(135deg, #fff8e7 0%, #fff1ce 100%);
}

.past-election-icon.green {
  color: #09a72f;
  background: linear-gradient(135deg, #eaffef 0%, #ddf7e4 100%);
}

.past-election-body {
  grid-area: body;
  min-width: 0;
}

.past-election-body h2 {
  margin: 0;
  color: #090b12;
  font-size: clamp(1.08rem, 3.45vw, 1.34rem);
  font-weight: 800;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.past-election-body p {
  max-width: 29rem;
  margin: 0.45rem 0 0.9rem;
  color: #3f444d;
  font-size: clamp(0.86rem, 2.85vw, 1.04rem);
  line-height: 1.42;
  overflow-wrap: break-word;
}

.past-card-meta {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.past-card-meta .election-meta-item {
  white-space: normal;
}

.completed-pill {
  grid-area: status;
  align-self: start;
  justify-self: end;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.42rem;
  color: #108f31;
  background: #ddf5df;
  font-size: clamp(0.8rem, 2.7vw, 0.96rem);
  font-weight: 700;
  white-space: nowrap;
}

.completed-pill .icon-sm {
  width: 0.82rem;
  height: 0.82rem;
}

.results-button {
  grid-area: action;
  align-self: end;
  justify-self: end;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 0.92rem;
  border: 1px solid #d9dde4;
  border-radius: 0.46rem;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 0.25rem 0.65rem rgba(16, 24, 42, 0.04);
  text-decoration: none;
  font-size: clamp(0.86rem, 2.9vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .past-election-card {
    grid-template-columns: 8.4rem minmax(0, 1fr) 9.6rem;
  }

  .past-election-body h2 {
    font-size: 1.26rem;
  }

  .past-election-body p {
    font-size: 0.98rem;
  }

  .past-card-meta {
    gap: 1.05rem;
  }
}

.insights-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 30%);
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.7rem;
  padding: 1.65rem 2rem;
  border: 1px solid #bdd8fa;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 92% 20%, rgba(210, 234, 255, 0.78), transparent 8rem),
    linear-gradient(135deg, #fafeff 0%, #eef7ff 100%);
  box-shadow: 0 0.42rem 1.05rem rgba(28, 95, 169, 0.05);
}

.insights-copy {
  min-width: 0;
}

.insights-copy h2 {
  margin: 0 0 1.45rem;
  color: #0a318c;
  font-size: clamp(1.15rem, 3.6vw, 1.52rem);
  font-weight: 800;
  line-height: 1.2;
}

.insight-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.insight-icon {
  width: 2.95rem;
  height: 2.95rem;
  display: grid;
  place-items: center;
  color: #2877d3;
}

.insight-item h3 {
  margin: 0;
  color: #0b0d13;
  font-size: clamp(0.98rem, 3.25vw, 1.18rem);
  font-weight: 800;
  line-height: 1.18;
}

.insight-item p {
  margin: 0.38rem 0 0;
  color: #464b54;
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  line-height: 1.35;
}

.insight-divider {
  height: 1px;
  margin: 1.15rem 0;
  background: #d5dce6;
}

.insights-art {
  min-width: 0;
  display: grid;
  place-items: center;
}

@media (max-width: 600px) {
  .past-banner {
    grid-template-columns: 3.7rem minmax(0, 1fr) minmax(7.3rem, 28%);
    gap: 0.78rem;
    min-height: 8.55rem;
    padding: 1.05rem 0.9rem;
  }

  .past-banner-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .past-banner-copy h2 {
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
  }

  .past-banner-copy p {
    font-size: 0.8rem;
  }

  .past-report-art {
    margin-right: -1rem;
  }

  .past-election-card {
    grid-template-columns: minmax(6.4rem, 27%) minmax(0, 1fr);
    grid-template-areas:
      "icon body"
      "icon status"
      "icon action";
    gap: 0.62rem 0.9rem;
    min-height: 9rem;
    padding: 1rem 0.9rem;
  }

  .past-election-body h2 {
    font-size: 1rem;
  }

  .past-election-body p {
    margin: 0.45rem 0 0.72rem;
    font-size: 0.78rem;
  }

  .past-card-meta {
    gap: 0.58rem;
  }

  .completed-pill,
  .results-button {
    justify-self: start;
  }

  .completed-pill {
    min-height: 2.05rem;
    font-size: 0.78rem;
  }

  .results-button {
    min-height: 2.72rem;
    padding-inline: 0.78rem;
    font-size: 0.82rem;
  }

  .insights-card {
    grid-template-columns: minmax(0, 1fr) minmax(6.8rem, 27%);
    gap: 0.45rem;
    padding: 1.35rem 1rem;
  }

  .insights-copy h2 {
    margin-bottom: 1.1rem;
    font-size: 1rem;
  }

  .insight-item {
    gap: 0.72rem;
  }

  .insight-icon {
    width: 2.55rem;
    height: 2.55rem;
  }

  .insight-item h3 {
    font-size: 0.86rem;
  }

  .insight-item p {
    font-size: 0.76rem;
  }
}

@media (max-width: 430px) {
  .past-page .page-subtitle {
    max-width: 20rem;
  }

  .past-banner {
    grid-template-columns: 1fr;
  }

  .past-banner-icon {
    display: none;
  }

  .past-report-art {
    width: 49%;
    min-width: 8.7rem;
    justify-self: end;
    margin: -0.75rem -0.8rem -1.15rem 0;
  }

  .past-election-card {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.58rem 0.78rem;
  }

  .past-card-meta {
    display: grid;
    gap: 0.42rem;
  }

  .insights-card {
    grid-template-columns: 1fr;
  }

  .insights-art {
    max-width: 9.6rem;
    justify-self: end;
    margin-top: -1rem;
  }
}

.vote-page .phone-frame,
.vote-page .bottom-nav {
  width: min(100%, 64rem);
}

.vote-page .content {
  padding-inline: clamp(1rem, 3.6vw, 2.3rem);
}

.vote-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 48%);
  align-items: end;
  gap: 1.4rem;
  margin-bottom: 1.9rem;
}

.vote-intro .back-link {
  margin-bottom: 1.45rem;
}

.vote-intro .page-title {
  font-size: clamp(1.95rem, 5.3vw, 3rem);
}

.vote-election-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.4rem;
  align-items: center;
  gap: 1rem;
  min-height: 8.3rem;
  padding: 1rem 1rem 0.6rem 1.25rem;
  border: 1px solid #dce6f5;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 244, 192, 0.4), transparent 5rem),
    linear-gradient(135deg, #fbfdff 0%, #f5f9ff 100%);
  box-shadow: 0 0.42rem 1.05rem rgba(28, 95, 169, 0.05);
  overflow: hidden;
}

.live-chip.inline {
  position: static;
  width: fit-content;
  display: inline-flex;
  margin-bottom: 0.7rem;
}

.vote-election-summary h3 {
  margin: 0 0 0.82rem;
  color: #090b12;
  font-size: clamp(0.98rem, 2.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.18;
}

.summary-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.summary-ballot-art {
  align-self: stretch;
  display: grid;
  place-items: end;
  min-width: 0;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.18rem;
}

.position-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 25.7rem;
  border: 1px solid #e8ecf2;
  border-radius: 0.62rem;
  background: #fff;
  box-shadow: 0 0.48rem 1.12rem rgba(16, 24, 42, 0.06);
  overflow: hidden;
}

.position-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  padding: 1.1rem 1rem 0.8rem;
}

.position-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0a2a85;
  background: #d8e9ff;
}

.position-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.position-heading h3 {
  margin: 0;
  color: #0b142c;
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.position-heading b {
  color: #d10000;
}

.position-heading p {
  margin: 0.28rem 0 0;
  color: #1e2637;
  font-size: 0.68rem;
  line-height: 1.15;
}

.candidate-option {
  position: relative;
  display: grid;
  grid-template-columns: 1.15rem 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 4.95rem;
  padding: 0.68rem 0.78rem;
  border-top: 1px solid #e9edf3;
  color: #121722;
  cursor: pointer;
}

.candidate-option:first-of-type {
  border-top: 1px solid #dcecff;
}

.candidate-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border: 2px solid #b7bcc5;
  border-radius: 999px;
}

.radio-mark::after {
  content: "";
  width: 0.38rem;
  height: 0.65rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-0.05rem);
  opacity: 0;
}

.candidate-option:has(input:checked) {
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px #cfe2ff;
}

.candidate-option:has(input:checked) .radio-mark {
  border-color: #0c55c9;
  background: #0c55c9;
}

.candidate-option:has(input:checked) .radio-mark::after {
  opacity: 1;
}

.candidate-photo {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 34%, #f6c194 0 20%, transparent 21%),
    linear-gradient(180deg, #eef4ff 0%, #dfe7f6 100%);
  overflow: hidden;
}

.candidate-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.78rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #f0b98d;
  box-shadow: 0 1.45rem 0 1.1rem #f7f9fb;
}

.candidate-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.62rem;
  width: 2rem;
  height: 1.05rem;
  border-radius: 999px 999px 45% 45%;
  transform: translateX(-50%);
  background: #1b1717;
}

.candidate-photo.female::after {
  top: 0.48rem;
  width: 2.28rem;
  height: 2.8rem;
  border-radius: 1rem 1rem 0.45rem 0.45rem;
  background: #1b1717;
  box-shadow: inset 0.45rem 0 0 rgba(255, 255, 255, 0.07);
}

.candidate-photo.female::before {
  z-index: 2;
}

.candidate-photo.one { background-color: #eaf2ff; }
.candidate-photo.two { background-color: #f5eef8; }
.candidate-photo.three { background-color: #f2f4f6; }
.candidate-photo.four { background-color: #eef5ff; }
.candidate-photo.five { background-color: #f6f1ed; }
.candidate-photo.six { background-color: #eff1f4; }

.candidate-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.candidate-copy strong {
  color: #08132b;
  font-size: clamp(0.74rem, 1.45vw, 0.82rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.candidate-copy em {
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.party-blue {
  color: #0030aa;
}

.party-green {
  color: #078219;
}

.party-violet {
  color: #3300d9;
}

.review-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 8.5rem;
  align-items: center;
  gap: 1rem;
  min-height: 5.55rem;
  margin: 2rem 0 0.95rem;
  padding: 0.7rem 1rem 0.7rem 1.35rem;
  border: 1px solid #f3dfb2;
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 215, 92, 0.18), transparent 7rem),
    linear-gradient(135deg, #fffaf0 0%, #fff7e6 100%);
  overflow: hidden;
}

.review-shield {
  width: 4.2rem;
  height: 4.2rem;
}

.review-notice h3 {
  margin: 0;
  color: #121722;
  font-size: clamp(0.94rem, 2.7vw, 1.1rem);
  font-weight: 800;
  line-height: 1.2;
}

.review-notice p {
  margin: 0.36rem 0 0;
  color: #3f444d;
  font-size: clamp(0.78rem, 2.4vw, 0.94rem);
  line-height: 1.3;
}

.review-clipboard {
  min-width: 0;
  justify-self: end;
}

.submit-vote-button {
  width: 100%;
  min-height: 3.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 0.45rem;
  color: #fff;
  background: linear-gradient(135deg, #071b7f 0%, #082d9b 100%);
  box-shadow: 0 0.48rem 1rem rgba(5, 29, 132, 0.2);
  font-size: clamp(1rem, 3vw, 1.22rem);
  font-weight: 800;
  cursor: pointer;
}

.secure-vote-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin: 0.7rem 0 0;
  color: #777b83;
  font-size: clamp(0.76rem, 2.35vw, 0.92rem);
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 960px) {
  .vote-page .app-header {
    min-height: 10.1rem;
  }

  .vote-page .brand-row {
    grid-template-columns: minmax(6.2rem, 8.6rem) minmax(0, 1fr);
  }

  .vote-page .logo-wrap {
    width: clamp(6.2rem, 14vw, 8.7rem);
  }
}

@media (max-width: 940px) {
  .vote-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vote-election-summary {
    max-width: 100%;
  }

  .position-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vote-content {
    padding-top: 2.1rem;
  }

  .vote-intro .back-link {
    margin-bottom: 1.05rem;
  }

  .vote-election-summary {
    grid-template-columns: minmax(0, 1fr) 7.2rem;
    min-height: 7.2rem;
    padding: 0.85rem 0.85rem 0.55rem;
  }

  .summary-meta {
    gap: 0.55rem;
  }

  .position-grid {
    gap: 0.9rem;
  }

  .position-card {
    min-height: 23.5rem;
  }

  .position-heading {
    padding: 0.92rem 0.8rem 0.72rem;
    gap: 0.65rem;
  }

  .position-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .candidate-option {
    grid-template-columns: 1.1rem 3.15rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 4.75rem;
    padding: 0.58rem 0.62rem;
  }

  .candidate-photo {
    width: 3.15rem;
    height: 3.15rem;
  }

  .candidate-copy em {
    font-size: 0.64rem;
  }

  .review-notice {
    grid-template-columns: auto minmax(0, 1fr) 6.2rem;
    gap: 0.72rem;
    margin-top: 1.45rem;
    padding: 0.62rem 0.78rem;
  }

  .review-shield {
    width: 3.35rem;
    height: 3.35rem;
  }
}

@media (max-width: 430px) {
  .position-grid {
    grid-template-columns: 1fr;
  }

  .position-card {
    min-height: auto;
  }

  .vote-election-summary {
    grid-template-columns: 1fr;
  }

  .summary-ballot-art {
    width: 48%;
    justify-self: end;
    margin-top: -2rem;
  }

  .review-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .review-clipboard {
    display: none;
  }
}

.review-page .vote-topbar {
  align-items: center;
}

.review-page .vote-intro .page-subtitle {
  max-width: 28rem;
  line-height: 1.65;
}

.review-election-summary {
  grid-template-columns: minmax(0, 1fr) 8.8rem;
}

.review-summary-art {
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.selected-section {
  margin-top: 0.8rem;
}

.selected-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  color: #05060d;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.35rem, 3.8vw, 1.82rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.selected-heading .icon {
  width: 1.55rem;
  height: 1.55rem;
  color: #0a2a9f;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.18rem;
}

.selection-card {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.82rem;
  min-height: 9.45rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid #eceef2;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 0.48rem 1.15rem rgba(16, 24, 42, 0.06);
}

.selection-card .position-icon {
  align-self: start;
}

.selection-body {
  min-width: 0;
}

.selection-body h3 {
  margin: 0 0 1rem;
  color: #0b142c;
  font-size: clamp(0.98rem, 2.7vw, 1.12rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.selection-person {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
}

.selection-person .candidate-photo {
  width: 4.25rem;
  height: 4.25rem;
}

.selection-person .candidate-copy strong {
  font-size: clamp(0.88rem, 2.2vw, 1.02rem);
}

.selection-person .candidate-copy em {
  font-size: clamp(0.74rem, 2vw, 0.88rem);
}

.selection-check {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #088b27;
  box-shadow: 0 0.28rem 0.65rem rgba(8, 139, 39, 0.18);
}

.selection-check svg {
  width: 1.35rem;
  height: 1.35rem;
}

.careful-review {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 11rem;
  align-items: center;
  gap: 1rem;
  min-height: 7.25rem;
  margin: 1.65rem 0 1.2rem;
  padding: 1rem 1.35rem;
  border: 1px solid #bdd8fa;
  border-radius: 0.72rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(210, 234, 255, 0.78), transparent 8rem),
    linear-gradient(135deg, #fafeff 0%, #eef7ff 100%);
  overflow: hidden;
}

.careful-shield {
  width: 4.75rem;
  height: 4.75rem;
}

.careful-review h3 {
  margin: 0;
  color: #07349b;
  font-size: clamp(1.02rem, 3vw, 1.28rem);
  font-weight: 800;
  line-height: 1.2;
}

.careful-review p {
  max-width: 37rem;
  margin: 0.48rem 0 0;
  color: #3f4652;
  font-size: clamp(0.82rem, 2.5vw, 0.98rem);
  line-height: 1.45;
}

.careful-art {
  min-width: 0;
  justify-self: end;
}

.confirm-actions {
  display: grid;
  gap: 0.85rem;
}

.edit-selections-button {
  min-height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  border: 1px solid #0b3caf;
  border-radius: 0.45rem;
  color: #0b2fa5;
  background: #fff;
  text-decoration: none;
  font-size: clamp(0.98rem, 2.8vw, 1.18rem);
  font-weight: 700;
}

@media (max-width: 940px) {
  .review-page .vote-topbar {
    grid-template-columns: 1fr;
  }

  .selection-card {
    min-height: 9rem;
  }
}

@media (max-width: 600px) {
  .review-election-summary {
    grid-template-columns: minmax(0, 1fr) 7.2rem;
  }

  .selection-grid {
    gap: 0.9rem;
  }

  .selection-card {
    grid-template-columns: 2.85rem minmax(0, 1fr) auto;
    gap: 0.72rem;
    min-height: 8.2rem;
    padding: 1rem 0.85rem;
  }

  .selection-person {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .selection-person .candidate-photo {
    width: 3.6rem;
    height: 3.6rem;
  }

  .selection-check {
    width: 2.05rem;
    height: 2.05rem;
  }

  .careful-review {
    grid-template-columns: auto minmax(0, 1fr) 7.6rem;
    gap: 0.72rem;
    padding: 0.9rem 0.85rem;
  }

  .careful-shield {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (max-width: 430px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }

  .review-election-summary {
    grid-template-columns: 1fr;
  }

  .review-summary-art {
    width: 46%;
    justify-self: end;
    margin-top: -1.8rem;
  }

  .careful-review {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .careful-art {
    display: none;
  }
}

.submitted-page .phone-frame,
.submitted-page .bottom-nav {
  width: min(100%, 56rem);
}

.submitted-page .vote-content {
  padding-top: 2.25rem;
}

.submitted-content > .back-link {
  margin-bottom: 1.2rem;
}

.vote-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.7rem 0 2.7rem;
}

.vote-steps::before {
  content: "";
  position: absolute;
  top: 1.23rem;
  left: 11%;
  right: 11%;
  height: 2px;
  background: #1947d9;
}

.vote-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.62rem;
  color: #3e4450;
  text-align: center;
}

.vote-step span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 2px solid #123ee0;
  border-radius: 999px;
  color: #123ee0;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.vote-step.active span {
  color: #fff;
  background: #123cc8;
  border-color: #123cc8;
  box-shadow: 0 0.35rem 0.85rem rgba(18, 60, 200, 0.2);
}

.vote-step p {
  margin: 0;
  font-size: clamp(0.74rem, 2.1vw, 0.92rem);
  line-height: 1.25;
}

.vote-step.active p {
  color: #123cc8;
  font-weight: 800;
}

.success-hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0.5rem 1rem 1.15rem;
  text-align: center;
  overflow: hidden;
}

.success-check {
  width: 6.2rem;
  height: 6.2rem;
  margin-bottom: 1.05rem;
  filter: drop-shadow(0 0.5rem 0.9rem rgba(8, 140, 37, 0.16));
}

.success-hero h2 {
  margin: 0;
  color: #0a0b12;
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
}

.success-hero p {
  max-width: 43rem;
  margin: 0.5rem 0 0;
  color: #4a4f58;
  font-size: clamp(0.94rem, 2.75vw, 1.12rem);
  line-height: 1.35;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  width: 0.46rem;
  height: 0.46rem;
  transform: rotate(45deg);
  background: #1d69d1;
}

.confetti span:nth-child(1) { left: 8%; top: 43%; background: #9ba06f; }
.confetti span:nth-child(2) { left: 15%; top: 61%; background: #228f51; }
.confetti span:nth-child(3) { left: 24%; top: 36%; background: #0b64c7; }
.confetti span:nth-child(4) { left: 30%; top: 55%; background: #f0a400; }
.confetti span:nth-child(5) { left: 38%; top: 24%; background: #268f62; }
.confetti span:nth-child(6) { left: 62%; top: 28%; background: #7ca043; }
.confetti span:nth-child(7) { left: 72%; top: 42%; background: #0c54d5; }
.confetti span:nth-child(8) { left: 78%; top: 58%; background: #b6c7d6; }
.confetti span:nth-child(9) { left: 86%; top: 35%; background: #f0a400; }
.confetti span:nth-child(10) { left: 91%; top: 52%; background: #1b78a4; }
.confetti span:nth-child(11) { left: 52%; top: 60%; background: #9ba06f; }
.confetti span:nth-child(12) { left: 44%; top: 48%; background: #b6c7d6; }

.secure-success-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1.7rem;
  padding: 1.15rem 2rem;
  border: 1px solid #d5ead6;
  border-radius: 0.52rem;
  background: linear-gradient(135deg, #f5fff5 0%, #f9fff9 100%);
}

.secure-success-icon {
  width: 4.25rem;
  height: 4.25rem;
}

.secure-success-note h3 {
  margin: 0;
  color: #087629;
  font-size: clamp(0.98rem, 2.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.secure-success-note p {
  margin: 0.55rem 0 0;
  color: #173320;
  font-size: clamp(0.86rem, 2.5vw, 1.02rem);
  line-height: 1.32;
}

.submitted-selected {
  margin-top: 0;
}

.submitted-selection-grid {
  gap: 0;
  border: 1px solid #eceef2;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 0.48rem 1.15rem rgba(16, 24, 42, 0.04);
}

.submitted-selection-grid .selection-card {
  min-height: 8.6rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #eceef2;
}

.submitted-selection-grid .selection-card:nth-child(odd) {
  border-right: 1px solid #eceef2;
}

.submitted-selection-grid .selection-card:nth-last-child(-n+2) {
  border-bottom: 0;
}

.every-vote-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 6.5rem;
  margin: 1.45rem 0 1.2rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid #bdd8fa;
  border-radius: 0.62rem;
  background:
    radial-gradient(circle at 10% 30%, rgba(210, 234, 255, 0.7), transparent 8rem),
    linear-gradient(135deg, #fafeff 0%, #eef7ff 100%);
}

.mini-ballot-box {
  min-width: 0;
}

.every-vote-card h3 {
  margin: 0;
  color: #072c91;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.22;
}

.every-vote-card p {
  margin: 0.42rem 0 0;
  color: #3f4652;
  font-size: clamp(0.82rem, 2.45vw, 0.98rem);
  line-height: 1.35;
}

.heart-icon {
  width: 3rem;
  height: 3rem;
  color: #072bb7;
}

.submitted-actions {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
}

.submitted-actions .submit-vote-button {
  text-decoration: none;
}

.download-confirmation {
  min-height: 4.9rem;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid #0b3caf;
  border-radius: 0.48rem;
  color: #0b2fa5;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

.download-confirmation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  font-size: clamp(0.98rem, 2.8vw, 1.18rem);
  font-weight: 800;
}

.download-confirmation em {
  color: #4f5560;
  font-size: clamp(0.78rem, 2.35vw, 0.95rem);
  font-style: normal;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .vote-steps {
    gap: 0.28rem;
    margin-bottom: 2rem;
  }

  .vote-steps::before {
    left: 12%;
    right: 12%;
  }

  .vote-step span {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.9rem;
  }

  .vote-step p {
    font-size: 0.62rem;
  }

  .success-check {
    width: 5.2rem;
    height: 5.2rem;
  }

  .secure-success-note {
    padding: 0.95rem 1rem;
  }

  .secure-success-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .submitted-selection-grid .selection-card {
    min-height: 7.9rem;
  }

  .every-vote-card {
    grid-template-columns: 7.2rem minmax(0, 1fr) 2.4rem;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
  }

  .heart-icon {
    width: 2.3rem;
    height: 2.3rem;
  }
}

@media (max-width: 430px) {
  .vote-steps {
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .vote-step {
    min-width: 5.4rem;
  }

  .secure-success-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .secure-success-icon {
    justify-self: center;
  }

  .submitted-selection-grid .selection-card,
  .submitted-selection-grid .selection-card:nth-child(odd) {
    border-right: 0;
  }

  .submitted-selection-grid .selection-card:nth-last-child(2) {
    border-bottom: 1px solid #eceef2;
  }

  .every-vote-card {
    grid-template-columns: 1fr auto;
  }

  .mini-ballot-box {
    display: none;
  }
}

/* Login */
body.login-page {
  min-height: 100vh;
  padding: 1.05rem 0 2.2rem;
  background:
    radial-gradient(circle at 50% 0, rgba(169, 13, 7, 0.08), transparent 27rem),
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f8 100%);
}

.login-shell {
  width: min(100%, 58rem);
  min-height: calc(100vh - 2rem);
  margin: 0 auto;
  color: #0a0b12;
  background: #fff;
  border-radius: 2.2rem 2.2rem 0 0;
  box-shadow: 0 1.5rem 3.2rem rgba(10, 15, 30, 0.11);
  overflow: hidden;
}

.login-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 34rem;
  padding: 4.4rem 2.5rem 6.2rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(178, 12, 7, 0.94), rgba(168, 8, 4, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #a80b06;
  background-size: auto, 4.4rem 4.4rem, 4.4rem 4.4rem, auto;
  border-radius: 2.2rem 2.2rem 0 0;
  isolation: isolate;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 9rem 1.8rem 2.4rem;
  z-index: -1;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.18) 8% 12%, transparent 12% 16%),
    linear-gradient(180deg, transparent 0 28%, rgba(255, 255, 255, 0.22) 28% 33%, transparent 33% 38%),
    linear-gradient(90deg, transparent 0 28%, rgba(255, 255, 255, 0.12) 28% 72%, transparent 72%),
    linear-gradient(180deg, transparent 0 55%, rgba(255, 255, 255, 0.14) 55% 62%, transparent 62%);
  filter: blur(0.35px);
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 23rem;
  height: 23rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-logo {
  width: clamp(10.5rem, 24vw, 16.8rem);
  height: clamp(10.5rem, 24vw, 16.8rem);
  object-fit: contain;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 0.75rem 1.1rem rgba(0, 0, 0, 0.3));
}

.login-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3.8rem, 7.5vw, 5.7rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.2);
}

.login-hero p {
  margin: 1.45rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 600;
}

.login-panel {
  position: relative;
  z-index: 2;
  margin: -3.2rem 1rem 0;
  padding: clamp(2.1rem, 4.5vw, 4rem) clamp(2rem, 5vw, 4rem) 2.85rem;
  background: #fff;
  border-radius: 2.3rem;
  box-shadow: 0 1rem 3rem rgba(9, 16, 30, 0.09);
}

.login-heading {
  text-align: center;
}

.login-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
}

.login-heading p {
  margin: 1rem 0 0;
  color: #686d79;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
}

.login-alert {
  margin: 1.8rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid #f0c7c7;
  border-radius: 0.55rem;
  color: #8d0905;
  background: #fff2f2;
  font-weight: 700;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 1.9rem;
  margin-top: 2.6rem;
}

.login-field {
  display: grid;
  gap: 0.85rem;
  font-size: clamp(1.08rem, 2.15vw, 1.45rem);
  font-weight: 800;
}

.login-input-wrap {
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.75rem 1rem;
  border: 2px solid #dfe3ea;
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-input-wrap:focus-within {
  border-color: #b30f08;
  box-shadow: 0 0 0 0.25rem rgba(179, 15, 8, 0.11);
}

.login-field-icon,
.secure-login-icon,
.news-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #0a2fa4;
  background: #eef2ff;
}

.login-field-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.85rem;
}

.login-field-icon svg,
.password-toggle svg,
.secure-login-icon svg,
.news-badge svg,
.login-chevron {
  width: 1.8rem;
  height: 1.8rem;
}

.login-input-wrap input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: #1c202b;
  background: transparent;
  font: inherit;
  font-weight: 600;
}

.login-input-wrap input::placeholder {
  color: #6b707d;
}

.password-toggle {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: #666b75;
  border-radius: 50%;
  cursor: pointer;
}

.password-toggle:hover {
  color: #0b2fa5;
  background: #f3f5fb;
}

.forgot-link {
  justify-self: end;
  margin-top: -1.2rem;
  color: #001fb3;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  text-decoration: none;
}

.login-submit {
  min-height: 5.7rem;
  margin-top: 0.85rem;
  border-radius: 0.78rem;
  color: #fff;
  background: linear-gradient(180deg, #b40d08 0%, #a70703 100%);
  box-shadow: 0 0.8rem 1.4rem rgba(169, 13, 7, 0.18);
  font-size: clamp(1.32rem, 2.8vw, 1.85rem);
  font-weight: 800;
  cursor: pointer;
}

.login-submit:hover {
  background: linear-gradient(180deg, #c0130d 0%, #970803 100%);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  margin: 2.7rem 0 2.25rem;
  color: #656a76;
  font-size: 1.25rem;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 2px;
  background: #e2e5eb;
}

.secure-login-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.65rem;
  padding: 1.7rem 1.8rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #f5f7ff 0%, #f1f4ff 100%);
}

.secure-login-icon {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
}

.secure-login-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.secure-login-card strong,
.login-news strong {
  display: block;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  font-weight: 800;
}

.secure-login-card p,
.login-news em {
  display: block;
  margin: 0.5rem 0 0;
  color: #5f6470;
  font-size: clamp(0.98rem, 2vw, 1.32rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}

.login-news {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.55rem;
  margin: 2rem 1.55rem 0;
  padding: 1.8rem 1.2rem 1.9rem;
  border-bottom: 1px solid #e4e6eb;
  color: inherit;
  text-decoration: none;
}

.news-badge {
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  color: #b20e08;
  background: #ffd9d9;
}

.news-badge svg {
  width: 2.45rem;
  height: 2.45rem;
}

.login-chevron {
  color: #747a84;
}

.login-footer {
  padding: 2rem 1.5rem 2.3rem;
  color: #5f6470;
  text-align: center;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 500;
}

.login-footer a {
  color: #001fb3;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 1100px) {
  body.login-page {
    display: grid;
    place-items: start center;
    padding: 1.6rem;
  }

  .login-shell {
    border-radius: 2rem;
  }
}

@media (max-width: 640px) {
  body.login-page {
    padding: 0;
  }

  .login-shell {
    border-radius: 0;
  }

  .login-hero {
    min-height: 30rem;
    padding-inline: 1.2rem;
    border-radius: 0;
  }

  .login-panel {
    margin-inline: 0.8rem;
    padding-inline: 1.45rem;
  }

  .login-input-wrap {
    min-height: 4.65rem;
  }
}

/* Admin dashboard */
body.admin-page {
  min-width: 1180px;
  min-height: 100vh;
  padding: 0.85rem;
  color: #080914;
  background: #f4f5f7;
  font-size: 16px;
  overflow-x: auto;
}

.admin-page svg {
  display: block;
}

.admin-shell {
  min-width: 1140px;
  min-height: calc(100vh - 1.7rem);
  background: #fff;
  border: 1px solid rgba(13, 18, 33, 0.06);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(12, 16, 28, 0.08);
  overflow: hidden;
}

.admin-topbar {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #b50f09 0%, #8f0804 100%);
  background-size: 10px 10px, auto;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.admin-brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.2));
}

.admin-brand strong,
.admin-brand em {
  display: block;
}

.admin-brand strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.admin-brand em {
  margin-top: 8px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}

.admin-bell svg {
  width: 31px;
  height: 31px;
}

.admin-bell span {
  position: absolute;
  top: -3px;
  right: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #251800;
  background: #ffc400;
  font-size: 13px;
  font-weight: 800;
}

.admin-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
}

.admin-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #087c2b;
}

.admin-profile-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.admin-profile-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.admin-profile-copy em {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.92;
}

.admin-chev {
  width: 19px;
  height: 19px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 108px);
}

.admin-sidebar {
  padding: 26px 14px;
  color: #fff;
  background: linear-gradient(180deg, #8a0704 0%, #510604 100%);
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.admin-sidebar a.active {
  background: linear-gradient(180deg, #d4140d 0%, #bb0c07 100%);
  box-shadow: 0 8px 16px rgba(40, 0, 0, 0.18);
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar a.active:hover {
  background: linear-gradient(180deg, #d4140d 0%, #bb0c07 100%);
}

.admin-sidebar svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.admin-sidebar h2 {
  margin: 24px 0 5px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-main {
  padding: 27px 28px 28px;
  background: #fff;
}

.admin-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.admin-welcome h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.admin-welcome p {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
}

.date-filter {
  min-width: 230px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e0e3e8;
  border-radius: 7px;
  color: #2b3039;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.date-filter svg {
  width: 19px;
  height: 19px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 21px;
}

.admin-stat-card,
.dashboard-card {
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(13, 18, 33, 0.05);
}

.admin-stat-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}

.stat-icon,
.activity-icon,
.action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.stat-icon {
  width: 58px;
  height: 58px;
}

.stat-icon svg {
  width: 31px;
  height: 31px;
}

.stat-icon.blue,
.action-icon.blue {
  color: #062dcc;
  background: #eaf0ff;
}

.stat-icon.green,
.action-icon.green {
  color: #0a8a35;
  background: #e4f7eb;
}

.stat-icon.orange,
.action-icon.orange {
  color: #ff7900;
  background: #fff0e3;
}

.stat-icon.purple,
.action-icon.purple {
  color: #6b2be8;
  background: #f0e9ff;
}

.action-icon.red {
  color: #c71919;
  background: #ffecec;
}

.action-icon.gray {
  color: #73777f;
  background: #eeeeef;
}

.admin-stat-card strong {
  display: block;
  color: #052fc3;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
}

.admin-stat-card:nth-child(2) strong {
  color: #0a8b34;
}

.admin-stat-card:nth-child(3) strong {
  color: #ff7900;
}

.admin-stat-card:nth-child(4) strong {
  color: #6b2be8;
}

.admin-stat-card p {
  margin: 9px 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.admin-stat-card em {
  display: block;
  color: #575e68;
  font-size: 12px;
  font-style: normal;
}

.admin-stat-card .trend-up {
  color: #07892f;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.98fr);
  gap: 22px;
  margin-bottom: 22px;
}

.dashboard-card {
  padding: 17px 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.card-head h2,
.dashboard-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.card-head a,
.card-head button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #002fbd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.card-head button {
  color: #2b3039;
  cursor: pointer;
}

.card-head svg {
  width: 15px;
  height: 15px;
}

.activity-chart {
  width: 100%;
  height: 265px;
}

.grid-lines {
  stroke: #dfe3ea;
  stroke-width: 1;
}

.axis-labels,
.chart-values {
  fill: #1b202a;
  font-family: Inter, sans-serif;
  font-size: 12px;
}

.axis-labels {
  fill: #4a505a;
}

.chart-fill {
  fill: url("#activity-gradient");
}

.activity-chart .chart-fill {
  fill: rgba(9, 48, 215, 0.08);
}

.chart-line {
  fill: none;
  stroke: #052fd0;
  stroke-width: 3;
}

.chart-points {
  fill: #052fd0;
  stroke: #fff;
  stroke-width: 2;
}

.peak-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 8px 14px;
  border: 1px solid #d5e0ff;
  border-radius: 7px;
  background: #f5f8ff;
}

.peak-row span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #0b2fc3;
}

.peak-row svg {
  width: 21px;
  height: 21px;
}

.peak-row strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.peak-row p {
  margin: 4px 0 0;
  color: #555b65;
  font-size: 12px;
}

.peak-row b {
  color: #052fc3;
  font-size: 20px;
}

.recent-activities ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-activities li {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #edf0f4;
}

.recent-activities li:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 38px;
  height: 38px;
}

.activity-icon svg {
  width: 21px;
  height: 21px;
}

.activity-icon.green {
  color: #0a8a35;
  background: #e3f7ea;
}

.activity-icon.orange {
  color: #ff7900;
  background: #fff0e3;
}

.activity-icon.purple {
  color: #6b2be8;
  background: #f0e9ff;
}

.activity-icon.red {
  color: #c71919;
  background: #ffecec;
}

.recent-activities strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.recent-activities em {
  display: block;
  margin-top: 5px;
  color: #525964;
  font-size: 12px;
  font-style: normal;
}

.badge-success,
.badge-info {
  min-width: 70px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  font-size: 12px;
}

.badge-success {
  color: #087d2d;
  border: 1px solid #bde8cb;
  background: #e9f9ee;
}

.badge-info {
  color: #052fc3;
  border: 1px solid #c8d8ff;
  background: #eff4ff;
}

.quick-actions-admin {
  margin-bottom: 22px;
}

.quick-actions-admin h2 {
  margin-bottom: 14px;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 32px;
}

.admin-actions-grid a {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  color: inherit;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  text-decoration: none;
}

.admin-actions-grid a:hover {
  border-color: #cbd5ff;
  box-shadow: 0 6px 15px rgba(13, 18, 33, 0.07);
}

.action-icon {
  width: 42px;
  height: 42px;
}

.action-icon svg {
  width: 24px;
  height: 24px;
}

.admin-actions-grid strong,
.admin-actions-grid em {
  display: block;
}

.admin-actions-grid strong {
  font-size: 13px;
  font-weight: 800;
}

.admin-actions-grid em {
  margin-top: 4px;
  color: #505761;
  font-size: 11px;
  font-style: normal;
}

.admin-actions-grid b {
  color: #252a33;
  font-size: 18px;
  font-weight: 500;
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.15fr 1.1fr;
  gap: 22px;
}

.table-card ol {
  margin: 0;
  padding: 0;
  counter-reset: top-list;
  list-style: none;
}

.table-card li {
  counter-increment: top-list;
  min-height: 39px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
}

.table-card li::before {
  content: counter(top-list);
  color: #002fbd;
  font-weight: 800;
}

.table-card li:last-child {
  border-bottom: 0;
}

.table-card b {
  font-weight: 800;
}

.donut-row {
  min-height: 122px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.donut-chart {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#0a8a35 0 80%, #ff8a00 80% 94%, #d11414 94% 100%);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: #fff;
}

.donut-legend {
  display: grid;
  gap: 12px;
  font-size: 12px;
}

.donut-legend p,
.overview-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.donut-legend i,
.overview-card i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}

.donut-legend i.green,
.overview-card i {
  background: #0a8a35;
}

.donut-legend i.orange {
  background: #ff8a00;
}

.donut-legend i.red {
  background: #d11414;
}

.donut-legend b {
  font-weight: 700;
}

.overview-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.overview-card h2 {
  margin-bottom: 4px;
}

.overview-card p {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}

.overview-card p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Signup */
.signup-shell {
  width: min(100%, 58rem);
}

.signup-hero {
  min-height: 30rem;
  padding-top: 3.2rem;
  padding-bottom: 5.2rem;
}

.signup-logo {
  width: clamp(9.5rem, 21vw, 14.4rem);
  height: clamp(9.5rem, 21vw, 14.4rem);
  margin-bottom: 1.45rem;
}

.signup-hero h1 {
  font-size: clamp(3.2rem, 6.6vw, 4.7rem);
}

.signup-hero p {
  margin-top: 1.25rem;
  font-size: clamp(1.3rem, 2.75vw, 1.8rem);
}

.signup-panel {
  margin-top: -2.7rem;
}

.signup-heading h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.6rem);
}

.signup-form {
  gap: 1.55rem;
  margin-top: 2.3rem;
}

.signup-form .login-field {
  gap: 0.7rem;
}

.signup-input-wrap {
  min-height: 4.75rem;
}

.signup-field-icon {
  color: #b20e08;
  background: #fff0f0;
}

.signup-input-wrap:focus-within {
  border-color: #b20e08;
  box-shadow: 0 0 0 0.25rem rgba(178, 14, 8, 0.1);
}

.signup-input-wrap select {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: #626775;
  background: transparent;
  font: inherit;
  font-weight: 600;
  appearance: none;
}

.select-wrap {
  position: relative;
  padding-right: 3.8rem;
}

.select-chevron {
  position: absolute;
  right: 1.35rem;
  width: 1.6rem;
  height: 1.6rem;
  color: #5d6370;
  pointer-events: none;
}

.signup-password-toggle:hover {
  color: #b20e08;
}

.signup-security-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.55rem;
  padding: 1.55rem 1.65rem;
  border-radius: 0.95rem;
  background: linear-gradient(90deg, #fff0f0 0%, #fff7f7 100%);
}

.signup-security-card span {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b20e08;
  background: #ffdede;
}

.signup-security-card svg {
  width: 2.45rem;
  height: 2.45rem;
}

.signup-security-card strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 800;
}

.signup-security-card p {
  margin: 0.42rem 0 0;
  color: #565d69;
  font-size: clamp(0.98rem, 1.9vw, 1.22rem);
  font-weight: 500;
  line-height: 1.5;
}

.signup-submit {
  margin-top: 0.45rem;
}

.signup-divider {
  margin: 2.2rem 0 1.65rem;
}

.signup-footer {
  padding-bottom: 0.3rem;
  color: #656b76;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 500;
}

.signup-footer a {
  color: #b20e08;
  font-weight: 800;
  text-decoration: none;
}

.signup-success {
  margin: 1.8rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid #bde8cb;
  border-radius: 0.55rem;
  color: #087d2d;
  background: #e9f9ee;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 640px) {
  .signup-hero {
    min-height: 27rem;
  }

  .signup-panel {
    padding-inline: 1.45rem;
  }

  .signup-security-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Admin dashboard reference refresh */
body.admin-page {
  min-width: 1280px;
  padding: 4px;
  background: #f7f7f8;
  font-size: 14px;
}

.admin-shell {
  min-width: 1272px;
  min-height: calc(100vh - 8px);
}

.admin-topbar {
  height: 84px;
  padding: 0 22px;
}

.admin-brand {
  gap: 14px;
}

.admin-brand img {
  width: 62px;
  height: 62px;
}

.admin-brand strong {
  font-size: 25px;
  line-height: 0.95;
}

.admin-brand em {
  margin-top: 7px;
  font-size: 13px;
}

.admin-top-actions {
  gap: 24px;
}

.admin-bell {
  width: 38px;
  height: 38px;
}

.admin-bell svg {
  width: 27px;
  height: 27px;
}

.admin-bell span {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.admin-avatar {
  width: 48px;
  height: 48px;
}

.admin-profile-copy strong {
  font-size: 14px;
}

.admin-profile-copy em {
  font-size: 11px;
}

.admin-layout {
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: calc(100vh - 84px);
}

.admin-sidebar {
  padding: 18px 10px 20px;
}

.admin-sidebar nav {
  gap: 5px;
}

.admin-sidebar a {
  position: relative;
  min-height: 45px;
  gap: 13px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 14px;
}

.admin-sidebar svg {
  width: 21px;
  height: 21px;
}

.admin-sidebar h2 {
  margin: 17px 0 7px;
  padding: 0 8px;
  font-size: 12px;
}

.nav-badge-new {
  margin-left: auto;
  min-width: 38px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #e5140d;
  font-size: 10px;
  font-weight: 800;
}

.admin-main {
  padding: 23px 24px 24px;
}

.admin-welcome {
  margin-bottom: 18px;
}

.admin-welcome h1 {
  font-size: 22px;
}

.admin-welcome p {
  margin-top: 7px;
  color: #30343c;
  font-size: 12px;
}

.date-filter {
  min-width: 188px;
  height: 38px;
  font-size: 12px;
}

.date-filter svg {
  width: 17px;
  height: 17px;
}

.admin-stats {
  gap: 18px;
  margin-bottom: 20px;
}

.admin-stat-card {
  min-height: 114px;
  gap: 17px;
  padding: 18px;
}

.stat-icon {
  width: 49px;
  height: 49px;
}

.stat-icon svg {
  width: 27px;
  height: 27px;
}

.admin-stat-card strong {
  font-size: 25px;
}

.admin-stat-card p {
  margin: 8px 0 9px;
  font-size: 12px;
}

.admin-stat-card em {
  font-size: 11px;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(400px, 1.18fr) minmax(330px, 0.95fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.dashboard-card {
  padding: 15px;
}

.card-head {
  margin-bottom: 12px;
}

.card-head h2,
.dashboard-card h2 {
  font-size: 15px;
}

.card-head a,
.card-head button {
  font-size: 11px;
}

.activity-chart {
  height: 182px;
}

.axis-labels,
.chart-values {
  font-size: 11px;
}

.peak-row {
  min-height: 54px;
  padding: 8px 12px;
}

.peak-row span {
  width: 34px;
  height: 34px;
}

.peak-row b {
  font-size: 17px;
}

.recent-activities li {
  min-height: 58px;
  gap: 12px;
}

.activity-icon {
  width: 35px;
  height: 35px;
}

.recent-activities strong {
  font-size: 12px;
}

.recent-activities em {
  font-size: 11px;
}

.badge-success,
.badge-info {
  min-width: 58px;
  height: 24px;
  font-size: 10px;
}

.admin-news-card {
  min-width: 0;
}

.admin-news-list {
  display: grid;
  gap: 0;
}

.admin-news-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  min-height: 76px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf0f4;
  color: inherit;
  text-decoration: none;
}

.admin-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-news-thumb {
  width: 94px;
  height: 72px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 20, 0.06);
}

.admin-news-thumb svg {
  width: 100%;
  height: 100%;
}

.admin-news-copy {
  min-width: 0;
  align-self: start;
  display: block;
}

.news-chip {
  width: fit-content;
  display: inline-grid;
  place-items: center;
  min-height: 17px;
  margin-bottom: 5px;
  padding: 0 6px;
  border: 1px solid #ff9d9d;
  border-radius: 999px;
  color: #d90b08;
  background: #fff2f2;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.admin-news-copy strong {
  display: block;
  color: #0a0b12;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-news-copy em {
  display: -webkit-box;
  margin-top: 5px;
  color: #363b45;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-news-copy small {
  display: block;
  margin-top: 5px;
  color: #555b65;
  font-size: 11px;
}

.quick-actions-admin {
  margin-bottom: 18px;
  padding: 12px 15px;
}

.quick-actions-admin h2 {
  margin-bottom: 10px;
}

.admin-actions-grid {
  gap: 8px 24px;
}

.admin-actions-grid a {
  min-height: 43px;
  gap: 12px;
  padding: 5px 10px;
}

.action-icon {
  width: 32px;
  height: 32px;
}

.action-icon svg {
  width: 19px;
  height: 19px;
}

.admin-actions-grid strong {
  font-size: 11px;
}

.admin-actions-grid em {
  font-size: 9px;
}

.admin-bottom-grid {
  gap: 18px;
}

.table-card li {
  min-height: 33px;
  font-size: 11px;
}

.donut-row {
  min-height: 108px;
}

.donut-chart {
  width: 78px;
  height: 78px;
}

.donut-chart::after {
  inset: 21px;
}

.donut-legend,
.overview-card p {
  font-size: 11px;
}

/* Admin voter verification */
.verification-page .admin-main {
  padding: 23px 24px 28px;
}

.verification-titlebar {
  margin-bottom: 25px;
}

.verification-titlebar h1 {
  margin: 0;
  color: #090b12;
  font-size: 24px;
  font-weight: 800;
}

.verification-titlebar p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: #263364;
  font-size: 14px;
}

.verification-titlebar a {
  color: #1b2b7c;
  text-decoration: none;
}

.verification-titlebar b {
  font-weight: 500;
}

.verification-message {
  margin: -10px 0 18px;
}

.verification-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 21px;
}

.verification-stat-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(13, 18, 33, 0.05);
}

.verification-stat-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.verification-stat-icon svg {
  width: 33px;
  height: 33px;
}

.verification-stat-icon.blue {
  color: #0c36d5;
  background: #e9edff;
}

.verification-stat-icon.green {
  color: #07934a;
  background: #dcf3e8;
}

.verification-stat-icon.orange {
  color: #ff970d;
  background: #fff0dd;
}

.verification-stat-icon.red {
  color: #e10d0d;
  background: #ffe1e1;
}

.verification-stat-card p {
  margin: 0 0 8px;
  color: #1d2858;
  font-size: 13px;
  font-weight: 500;
}

.verification-stat-card strong {
  display: block;
  color: #060812;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.verification-stat-card em {
  display: block;
  margin-top: 9px;
  color: #263364;
  font-size: 13px;
  font-style: normal;
}

.verification-table-card {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(13, 18, 33, 0.05);
  overflow: hidden;
}

.verification-filters {
  display: grid;
  grid-template-columns: minmax(270px, 1.45fr) minmax(190px, 0.8fr) minmax(170px, 0.7fr) minmax(150px, 0.58fr) auto minmax(110px, auto);
  gap: 13px;
  align-items: center;
  padding: 17px 16px;
  border-bottom: 1px solid #eef0f4;
}

.verification-filters label,
.verification-search {
  min-width: 0;
}

.verification-search {
  position: relative;
  display: block;
}

.verification-search svg {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #263364;
  transform: translateY(-50%);
  pointer-events: none;
}

.verification-filters input,
.verification-filters select {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd7e5;
  border-radius: 5px;
  color: #17234e;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.verification-filters input {
  padding: 0 40px 0 14px;
}

.verification-filters select {
  padding: 0 32px 0 12px;
}

.verification-filters input:focus,
.verification-filters select:focus {
  border-color: #0b35c9;
  box-shadow: 0 0 0 3px rgba(11, 53, 201, 0.1);
}

.verification-filter-button,
.verification-export {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.verification-filter-button {
  border: 1px solid #cfd7e5;
  color: #1a1d25;
  background: #fff;
  cursor: pointer;
}

.verification-export {
  justify-self: end;
  min-width: 108px;
  color: #fff;
  background: linear-gradient(180deg, #083bd8 0%, #0524b4 100%);
  box-shadow: 0 6px 12px rgba(9, 47, 197, 0.18);
}

.verification-filter-button svg,
.verification-export svg {
  width: 17px;
  height: 17px;
}

.verification-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.verification-table th {
  height: 49px;
  padding: 0 16px;
  color: #263364;
  background: #fbfcff;
  border-bottom: 1px solid #e8ebf1;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.verification-table td {
  min-height: 67px;
  padding: 13px 16px;
  color: #16254d;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
  line-height: 1.4;
  vertical-align: middle;
}

.verification-table th:nth-child(1),
.verification-table td:nth-child(1) {
  width: 23%;
}

.verification-table th:nth-child(2),
.verification-table td:nth-child(2) {
  width: 12%;
}

.verification-table th:nth-child(3),
.verification-table td:nth-child(3) {
  width: 19%;
}

.verification-table th:nth-child(4),
.verification-table td:nth-child(4) {
  width: 11%;
}

.verification-table th:nth-child(5),
.verification-table td:nth-child(5) {
  width: 13%;
}

.verification-table th:nth-child(6),
.verification-table td:nth-child(6) {
  width: 13%;
}

.verification-table th:nth-child(7),
.verification-table td:nth-child(7) {
  width: 17%;
}

.voter-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.voter-photo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 31%, #f0ba8a 0 19%, transparent 20%),
    linear-gradient(180deg, #17264b 0%, #071226 100%);
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 20, 0.05);
}

.voter-cell strong,
.voter-cell em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voter-cell strong {
  color: #080914;
  font-weight: 800;
}

.voter-cell em {
  margin-top: 3px;
  color: #263364;
  font-size: 12px;
  font-style: normal;
}

.verification-status {
  min-width: 92px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.verification-status::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px currentColor;
}

.verification-status.approved {
  color: #07823c;
  background: #dff5e9;
}

.verification-status.pending {
  color: #f28500;
  background: #fff0dd;
}

.verification-status.rejected {
  color: #e10d0d;
  background: #ffe5e5;
}

.verification-table small {
  display: block;
  margin-top: 5px;
  color: #263364;
  font-size: 11px;
}

.verification-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verification-actions form {
  margin: 0;
}

.approve-button,
.reject-button {
  min-width: 87px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.approve-button {
  color: #07934a;
  border: 1px solid #bfe8d6;
}

.reject-button {
  color: #e10d0d;
  border: 1px solid #ffbfc3;
}

.approve-button svg,
.reject-button svg {
  width: 14px;
  height: 14px;
}

.empty-verification {
  height: 120px;
  color: #5a6271;
  text-align: center;
}

.verification-pagination {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  color: #263364;
}

.verification-pagination p {
  margin: 0;
  font-size: 13px;
}

.verification-pagination div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.verification-pagination button,
.verification-pagination span {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee9;
  border-radius: 5px;
  color: #17234e;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.verification-pagination button svg {
  width: 17px;
  height: 17px;
}

.verification-pagination .active {
  color: #fff;
  border-color: #0934cf;
  background: #0a35d6;
}
