:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17283a;
  background: #f3f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; }
.container { max-width: 1440px; margin: auto; padding: 32px 24px 64px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #20685e; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; }
.subtitle, .section-heading p { color: #566778; }
.subtitle { margin: 10px 0 0; }
.refresh-area { text-align: right; flex-shrink: 0; }
.refresh-area p { color: #566778; font-size: .85rem; margin: 8px 0 0; }
button { border: 0; border-radius: 6px; background: #17695e; color: white; font: inherit; font-weight: 650; padding: 10px 18px; cursor: pointer; }
button:hover { background: #115247; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, .table-scroll:focus-visible { outline: 3px solid #d38c15; outline-offset: 3px; }
.status { background: #e4f2ef; border-radius: 8px; padding: 14px 16px; }
.status.error { background: #fff0ed; color: #982d1b; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.card, .panel { background: #fff; border: 1px solid #dce5e9; border-radius: 10px; }
.card { padding: 20px; }
.card h2 { color: #566778; font-size: .95rem; font-weight: 600; margin: 0 0 10px; }
.card p { font-size: 2rem; font-weight: 700; margin: 0; }
.card p.card-time { font-size: 1.2rem; line-height: 1.5; }
.panel { margin-bottom: 24px; overflow: hidden; }
.section-heading { padding: 20px 20px 12px; }
.section-heading h2 { font-size: 1.2rem; margin: 0; }
.section-heading p { font-size: .9rem; margin: 8px 0 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: .9rem; }
th, td { padding: 12px 16px; border-top: 1px solid #e6ecef; white-space: nowrap; }
thead th { background: #f5f8f9; color: #425665; font-size: .8rem; }
tbody th { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
.constituency-table tr > :first-child { position: sticky; left: 0; background: #fff; box-shadow: 2px 0 3px rgba(23, 40, 58, .08); }
.constituency-table thead tr > :first-child { background: #f5f8f9; z-index: 1; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .container { padding: 24px 16px 48px; }
  .page-header { flex-direction: column; gap: 18px; }
  .refresh-area { text-align: left; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 16px; }
  .card p { font-size: 1.6rem; }
}
