body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #fafbfc 0%, #f2f4f7 100%);
  color: #2a2f36;
  padding: 0;
  margin: 0;
}

a {
  color: #1f5e9d;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #174a7a;
  text-decoration: underline;
}

a.booth-pill,
a.booth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  background: #f4f7fb;
  color: #1f5e9d;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

a.booth-pill:hover,
a.booth-action:hover {
  background: #e9eff7;
  border-color: #bfcad8;
  color: #174a7a;
  text-decoration: none;
}

a.booth-inline-action {
  font-weight: 600;
  color: #1f5e9d;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a.booth-inline-action:hover {
  color: #174a7a;
}

#wrapper {
  padding: 0;
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  margin: 1rem auto;
  max-width: 1040px;
  overflow: hidden;
}

@media screen and (max-width: 1000px) {
  #wrapper {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

#content {
  padding: 1.1rem;
}

#header {
  text-align: center;
  padding-bottom: 0.45rem;
}

#header h1 {
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

#header h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

.edge {
  width: 100%;
  display: flex;
  padding: 0.55rem 0;
  text-align: center;
  background: #f4f6f9;
  border-bottom: 1px solid #d7dde5;
  font-size: 1.35rem;
  color: #20262d;
}

#progress_div {
  margin: auto;
  max-width: 560px;
  font-size: 1rem;
}

#progress_div table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  border: 0;
}

#progress_div td.unselected {
  background: #eceff3;
  color: #77808c;
  border: 1px solid #cfd6df;
}

#progress_div td.selected {
  background: #e9edf2;
  color: #1f2328;
  font-weight: 700;
  border: 1px solid #b8c3d0;
}

#footer {
  font-size: 0.95rem;
  word-break: break-word;
  border-top: 1px solid #e3e8ef;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  color: #5f6874;
}

#page h2 {
  background: #f1f4f7;
  border: 1px solid #d7dde5;
  border-left: 4px solid #1f2328;
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
}

h3 {
  font-size: 1.35rem;
}

#election_info {
  font-size: 1.15rem;
}

#election_hash {
  font-family: Consolas, "Courier New", monospace;
  background: #f4f6f9;
  border: 1px solid #e3e8ef;
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
}

#loading_div {
  display: none;
}
