:root {
  --blue: #134b92;
  --navy: #102b50;
  --ink: #203047;
  --muted: #55677e;
  --bg: #f5f6f8;
  --border: #d9e1ec;
  --gold: #ffba00;
  --red: #931a1d;
  --surface-subtle: #f0f4fa;
  --surface-accent: #e8eff9;
  --blue-soft: #d4e1f4;
  --gold-soft: #fff3cf;
  --gold-ink: #735000;
  --red-soft: #f7e8e9;
}
body {
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}
h1 {
  font-weight: 400;
}
h2 {
  font-weight: 400;
}
a,
button {
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.environment {
  background: var(--gold-soft);
  border: 0;
  color: var(--gold-ink);
  height: 28px;
  font-size: 10px;
}
.app-shell {
  min-height: calc(100vh - 28px);
}
.sidebar {
  width: 250px;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 34px 19px 24px;
  height: calc(100vh - 28px);
  overflow-y: auto;
}
.sidebar .wordmark {
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.1em;
  margin: 0 13px 42px;
}
.sidebar .wordmark span {
  font-family: "Segoe UI", sans-serif;
  color: #b5c7ce;
  font-size: 10px;
  letter-spacing: 0.09em;
}
.sidebar .wordmark img {
  margin-top: 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #9eafb9;
}
.nav-link {
  color: #c4d0d7;
  min-height: 42px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-left: 2px solid transparent;
}
.nav-link:hover {
  background: #ffffff0c;
  color: white;
}
.nav-link.active {
  background: #ffffff11;
  color: #fff;
  border-left-color: var(--gold);
  box-shadow: none;
  font-weight: 600;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.nav-link .count {
  background: var(--gold);
  color: var(--navy);
}
.sidebar-bottom {
  border-color: #ffffff1c;
  margin-top: 24px;
  padding-top: 20px;
  gap: 10px;
}
.sidebar-bottom a {
  color: #bccbd2;
  font-size: 11px;
}
.top-header {
  height: 74px;
  background: #ffffffb8;
  border-bottom: 1px solid var(--border);
  padding: 0 44px;
}
.breadcrumb {
  font-size: 11px;
}
.top-tools select {
  background: transparent;
  font-size: 11px;
}
.avatar {
  background: var(--surface-subtle);
  color: var(--ink);
  width: 34px;
  height: 34px;
}
.panel-footer {
  font-size: 10px;
  border-top: 1px solid var(--border);
  padding: 22px 44px;
  color: var(--muted);
}
#content {
  padding: 34px 44px 50px;
  max-width: 1480px;
}
.page-title {
  margin-bottom: 30px;
  align-items: center;
}
.page-title .eyebrow {
  margin-bottom: 11px;
  color: var(--muted);
}
.page-title h1 {
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}
.page-title p {
  font-size: 13px;
  max-width: 700px;
  line-height: 1.6;
}
.page-title > .secondary {
  font-size: 12px;
  white-space: nowrap;
}
button,
.button {
  border-radius: 5px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  gap: 14px;
  background: var(--blue);
}
.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--border);
}
.secondary:hover {
  background: var(--surface-subtle);
  color: var(--ink);
  border-color: var(--border);
}
.ghost {
  background: transparent;
  color: var(--blue);
}
.ghost:hover {
  background: var(--surface-subtle);
}
.small-button {
  font-size: 11px;
  padding: 7px 11px;
}
.white-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 3px 12px #122d4303;
  padding: 26px;
  margin-bottom: 24px;
}
.white-card h2 {
  font-size: 23px;
  margin-bottom: 19px;
}
.list-card {
  padding: 28px;
  border-radius: 7px;
}
.list-card h3 {
  font-size: 19px;
  line-height: 1.4;
}
.list-card > p {
  font-size: 14px;
  line-height: 1.8;
}
.badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--surface-subtle);
  color: var(--muted);
  text-transform: none;
}
.badge.success {
  background: var(--surface-accent);
  color: var(--blue);
}
.badge.amber {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.badge.red {
  background: var(--red-soft);
  color: var(--red);
}
.row-main b {
  font-size: 13px;
}
.row-main p {
  font-size: 12px;
  line-height: 1.6;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 19px;
}
.section-heading h2 {
  font-size: 26px;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.section-heading > a,
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.section-description {
  font-size: 13px;
  max-width: 800px;
  color: var(--muted);
  margin: -5px 0 24px;
}
.quiet-date {
  font-size: 11px;
  white-space: nowrap;
}
.mini-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 700;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.detail-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 19px 22px;
  margin: 20px 0;
  font-size: 13px;
}
.detail-panel summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.detail-panel[open] summary {
  margin-bottom: 20px;
}
.detail-panel p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-note {
  padding: 15px 18px;
  background: #f2f0e9;
  border-left: 3px solid #b9a66f;
  color: #665d43;
  font-size: 12px;
  margin: 16px 0;
  white-space: pre-wrap;
}
.review-note p {
  margin: 6px 0 0;
}
.record-facts {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 13px;
  font-size: 13px;
}
.record-facts dt {
  color: var(--muted);
}
.record-facts dd {
  margin: 0;
}
.notice {
  font-size: 13px;
  border-radius: 4px;
  line-height: 1.65;
}
.notice p {
  margin: 6px 0;
}
.rehearsal-note {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #7c7050;
  margin: 26px 0;
}
.rehearsal-note span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a74d;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 45px 35px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 7px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}
.welcome-banner .eyebrow {
  color: var(--muted);
}
.welcome-banner h1 {
  font-size: 51px;
  line-height: 1.07;
  font-weight: 400;
  margin: 0 0 17px;
  color: var(--navy);
}
.welcome-banner h1 em {
  font-weight: 400;
  font-style: italic;
  color: var(--red);
}
.welcome-banner p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.hero-link {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.welcome-seal {
  width: 170px;
  height: 190px;
  border: 1px solid var(--border);
  outline: 1px solid var(--border);
  outline-offset: 11px;
  border-radius: 50% 50% 46% 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  margin: 0 24px;
  color: var(--gold-ink);
  border-color: var(--gold);
  outline-color: var(--blue-soft);
}
.welcome-seal img {
  width: 85px;
  height: 96px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  mix-blend-mode: multiply;
}
.welcome-seal span {
  font:
    13px Georgia,
    serif;
  letter-spacing: 0.23em;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 30px;
  margin-top: 8px;
}
.dashboard-aside .section-heading h2 {
  font-size: 23px;
}
.attention-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 22px;
}
.attention-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 19px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.attention-item:last-child {
  border: 0;
}
.attention-item:hover {
  text-decoration: none;
  color: var(--blue);
}
.attention-item > div {
  flex: 1;
}
.attention-item b {
  font-size: 13px;
}
.attention-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.attention-item > span:last-child {
  color: var(--muted);
}
.attention-icon {
  background: var(--surface-subtle);
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.attention-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.service-tile {
  min-height: 171px;
  padding: 23px;
  border-radius: 6px;
  position: relative;
  background: #ffffffa8;
}
.service-tile:hover {
  background: #fff;
  border-color: var(--border);
  transform: translateY(-2px);
}
.service-tile svg {
  width: 25px;
  height: 25px;
  stroke: var(--blue);
  margin: 0 0 17px;
}
.service-tile b {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}
.service-tile > span:not(.service-number) {
  font-size: 11px;
  max-width: 150px;
  line-height: 1.6;
}
.service-number {
  position: absolute;
  right: 20px;
  top: 18px;
  font:
    11px Georgia,
    serif;
  color: var(--muted);
}
.service-tile i {
  position: absolute;
  bottom: 19px;
  right: 18px;
  color: var(--muted);
  font-style: normal;
  font-size: 17px;
}
.id-card {
  background: var(--navy);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 25px #122d4312;
  min-height: 243px;
  padding: 24px;
  margin-bottom: 0;
}
.id-card:after {
  right: -80px;
  top: -80px;
  width: 230px;
  height: 400px;
  border-radius: 50%;
  transform: rotate(30deg);
  border-color: #ffffff14;
  box-shadow:
    0 0 0 18px #ffffff03,
    0 0 0 40px #ffffff03,
    0 0 0 62px #ffffff03;
}
.id-top {
  font-family: Georgia, serif;
  font-size: 13px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}
.id-chip {
  font-family: "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  font-size: 8px;
  border-color: #a4b8bd55;
  color: #c4d5d7;
}
.id-card small {
  font-size: 8px;
  color: #aec8cf;
  letter-spacing: 0.1em;
}
.id-name {
  font:
    28px/1.2 Georgia,
    serif;
  color: #f3f0e5;
  position: relative;
  z-index: 1;
  margin: 4px 0 17px;
}
.id-bottom {
  gap: 24px;
  font-size: 10px;
  position: relative;
  z-index: 1;
}
.id-footer {
  border-top: 1px solid #ffffff1e;
  padding-top: 12px;
  margin-top: 15px;
  font-size: 9px;
}
.identity-facts {
  padding: 12px 0 18px;
  margin-bottom: 10px;
}
.identity-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}
.identity-facts span {
  color: var(--muted);
}
.identity-facts b {
  font-weight: 500;
  text-align: right;
}
.activity-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.activity-card h2 {
  font-size: 24px;
  margin-bottom: 26px;
}
.activity-card > a {
  font-size: 11px;
}
.timeline-item {
  padding: 0 0 20px 20px;
  border-color: var(--border);
}
.timeline-item:before {
  background: var(--blue);
}
.timeline-item b {
  font-size: 12px;
}
.timeline-item p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 5px 0;
}
.timeline-item span {
  font-size: 10px;
}
.civic-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 38px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 7px;
  border-top: 3px solid var(--gold);
}
.civic-intro h2 {
  font-size: 37px;
  line-height: 1.14;
  margin: 0 0 15px;
  color: var(--ink);
}
.civic-intro p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 450px;
}
.civic-intro a {
  color: var(--blue);
  font-size: 12px;
}
.civic-stat {
  text-align: center;
  border-left: 1px solid var(--border);
  padding: 12px 20px 12px 48px;
}
.civic-stat strong {
  display: block;
  font:
    82px/0.95 Georgia,
    serif;
  color: var(--blue);
}
.civic-stat span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.election-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.election-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 27px;
  display: flex;
  flex-direction: column;
}
.election-card h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 12px 0 15px;
}
.election-card h2 a {
  color: var(--ink);
}
.election-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.election-meta {
  display: flex;
  gap: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.election-meta small,
.election-meta b {
  display: block;
  font-size: 10px;
}
.election-meta small {
  margin-bottom: 5px;
}
.election-meta b {
  font-size: 11px;
  font-weight: 600;
}
.election-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}
.election-link span {
  font-size: 18px;
}
.phase-track {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}
.phase-track li {
  border-top: 2px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.phase-track li span {
  font-size: 10px;
  width: 22px;
  height: 22px;
  background: var(--surface-subtle);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.phase-track li b {
  font-weight: 500;
}
.phase-track li.current {
  border-color: var(--blue);
  color: var(--blue);
}
.phase-track li.current span {
  background: var(--blue);
  color: #fff;
}
.phase-track li.complete {
  border-color: var(--blue-soft);
  color: var(--blue);
}
.election-summary {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  padding: 21px 24px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.election-summary > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.election-summary > div > span:not(.badge) {
  font-size: 10px;
  color: #8c805c;
}
.election-summary small {
  font-size: 10px;
}
.election-summary b {
  font-size: 11px;
  font-weight: 600;
}
.nomination-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 27px;
  margin: 17px 0;
}
.nomination-monogram {
  width: 54px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font:
    22px Georgia,
    serif;
  border-radius: 4px;
  flex-shrink: 0;
}
.nomination-body {
  flex: 1;
  min-width: 0;
}
.nomination-body h3 {
  font:
    24px/1.3 Georgia,
    serif;
  margin: 6px 0 12px;
}
.nomination-body > p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}
.candidate-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.candidate-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.candidate-list li > span {
  font-size: 10px;
  color: var(--muted);
}
.candidate-list li p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.candidate-list li b {
  font-weight: 600;
}
.vote-confirmed,
.action-callout {
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 23px 0;
  border-color: var(--blue-soft);
}
.vote-confirmed h2,
.action-callout h2 {
  font-size: 28px;
  margin: 0 0 9px;
  color: var(--ink);
}
.vote-confirmed p,
.action-callout p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.vote-confirmed details {
  margin-top: 16px;
  font-size: 11px;
}
.vote-confirmed code {
  display: block;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.confirmation-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 25px;
  flex-shrink: 0;
}
.action-callout > div {
  flex: 1;
}
.result-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  margin: 24px 0 32px;
}
.result-panel > .section-heading {
  margin-top: 0;
}
.result-panel h2 {
  font-size: 31px;
}
.result-stamp {
  font-size: 8px !important;
  letter-spacing: 0.15em;
  color: var(--blue) !important;
  border: 1px solid var(--border);
  padding: 7px 9px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 24px 0 28px;
}
.result-stats strong {
  font:
    37px/1.1 Georgia,
    serif;
  display: block;
  color: var(--navy);
}
.result-stats span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.result-panel h3 {
  font-size: 15px;
  margin: 28px 0 20px;
}
.allocated-seat {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.allocated-seat > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-subtle);
  color: var(--muted);
  border-radius: 50%;
  font:
    13px Georgia,
    serif;
}
.allocated-seat > div {
  flex: 1;
}
.allocated-seat b,
.allocated-seat small {
  display: block;
}
.allocated-seat b {
  font-size: 14px;
  font-weight: 600;
}
.allocated-seat small {
  font-size: 11px;
}
.vote-bars {
  margin: 20px 0 30px;
}
.vote-row {
  margin-bottom: 19px;
}
.vote-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 7px;
}
.vote-label b {
  font-weight: 600;
}
.vote-label small {
  font-size: 10px;
  color: var(--muted);
}
.vote-track {
  height: 11px;
  background: var(--surface-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.vote-fill {
  height: 100%;
  background: var(--blue);
  min-width: 0;
  border-radius: 2px;
}
.color-1 {
  background: var(--gold);
}
.color-2 {
  background: var(--red);
}
.color-3 {
  background: var(--navy);
}
.count-round {
  border-top: 1px solid var(--border);
  padding: 15px 0;
}
.count-round summary {
  display: flex;
  gap: 22px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.count-round summary:after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}
.count-round[open] summary:after {
  content: "−";
}
.count-round summary > span {
  font-size: 10px;
  color: var(--muted);
}
.count-round summary > b {
  font-weight: 500;
}
.count-round table {
  margin-top: 18px;
}
.count-round p {
  font-size: 11px;
  margin: 15px 0;
}
.result-footnote {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 25px 0 0;
}
.party-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 26px;
}
.party-intro p {
  font-size: 13px;
  color: var(--muted);
  max-width: 650px;
  margin: 0;
}
.party-intro > a {
  font-size: 11px;
  white-space: nowrap;
}
.party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.party-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 27px;
  min-width: 0;
}
.party-mark {
  padding: 7px 12px;
  font:
    16px Georgia,
    serif;
  letter-spacing: 0.05em;
  border: 1px solid #cbc7b3;
  border-radius: 3px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-color: var(--gold);
}
.party-card h2 {
  font-size: 29px;
  margin: 25px 0 14px;
}
.party-card > p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}
.party-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  font-size: 10px;
  color: var(--muted);
}
.membership-note {
  background: var(--surface-subtle);
  padding: 11px 13px;
  font-size: 11px !important;
  margin-top: 16px;
}
.party-card .detail-panel {
  border: 0;
  border-top: 1px solid var(--border);
  padding: 18px 0 0;
}
.process-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 25px 29px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 34px;
}
.process-explainer span {
  font:
    20px Georgia,
    serif;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.process-explainer b {
  font-size: 13px;
  display: block;
}
.process-explainer p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.case-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 17px;
}
.case-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.case-number > span:first-child {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.case-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.case-card h2 a {
  color: var(--ink);
}
.case-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}
.case-assignment {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.round-link {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--blue);
}
.round-link:hover {
  background: var(--surface-subtle);
  text-decoration: none;
}
.case-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 23px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 24px;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 24px;
}
.case-layout .section-heading {
  margin-top: 0;
}
.case-layout .section-heading h2 {
  font-size: 24px;
}
.case-layout .detail-panel:first-child {
  margin-top: 0;
}
.filing-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.filing-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.filing-row .card-heading {
  margin-bottom: 10px;
}
.filing-row h3 {
  font-size: 17px;
  margin: 8px 0;
}
.filing-row > p {
  font-size: 11px;
}
.filing-row details {
  font-size: 12px;
  margin: 12px 0;
}
.filing-row summary {
  cursor: pointer;
  color: var(--blue);
}
.filing-row .document-text {
  padding: 17px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-top: 15px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.filing-row .actions {
  gap: 8px;
  margin-top: 14px;
}
.participant {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.participant:last-child {
  border: 0;
}
.participant b,
.participant span,
.participant small {
  display: block;
}
.participant b {
  font-size: 12px;
}
.participant span {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.participant small {
  font-size: 9px;
}
.hearing b {
  font-size: 13px;
  display: block;
}
.hearing p {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hearing span {
  font-size: 10px;
  color: var(--muted);
}
.official-tools {
  border: 1px solid var(--border);
  background: var(--surface-accent);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.official-tools .eyebrow {
  margin: 0;
}
.official-tools .actions {
  margin: 13px 0 0;
  gap: 8px;
}
.official-tools button {
  font-size: 11px;
}
.workspace-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}
.workspace-shortcuts > * {
  font-size: 12px;
}
.access-purpose {
  max-width: 720px;
  padding: 37px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 7px;
}
.access-purpose h2 {
  font-size: 33px;
  margin-bottom: 18px;
}
.access-purpose > p {
  font-size: 13px;
  color: var(--muted);
}
.access-purpose form {
  margin-top: 27px;
}
.registry-section {
  margin: 32px 0;
}
.registry-section table b {
  font-size: 12px;
}
dialog {
  width: min(740px, 95vw);
  border-radius: 8px;
  max-height: 92vh;
  box-shadow: 0 24px 100px #112d4340;
}
dialog::backdrop {
  background: #102a3c70;
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 25px 30px 21px;
  background: var(--surface-accent);
  border-color: var(--border);
  border-top: 3px solid var(--gold);
}
.dialog-head h2 {
  font:
    28px/1.2 Georgia,
    serif;
}
.dialog-head button {
  font-size: 23px;
}
#dialog-body {
  padding: 27px 30px;
}
.dialog-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.field {
  font-size: 12px;
  margin-bottom: 20px;
  gap: 8px;
}
.field input,
.field textarea,
.field select {
  font-size: 14px;
  border-color: var(--border);
  border-radius: 4px;
  padding: 12px;
  background: #fff;
}
.field textarea {
  min-height: 120px;
  line-height: 1.65;
}
.field[hidden] {
  display: none !important;
}
.check {
  font-size: 12px;
  line-height: 1.65;
  background: var(--surface-subtle);
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  align-items: flex-start;
}
.check input {
  flex-shrink: 0;
  accent-color: var(--blue);
}
.form-actions {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-error {
  font-size: 13px;
  line-height: 1.6;
}
.ballot-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 23px 0 14px;
}
.ballot-heading > span {
  width: 26px;
  height: 26px;
  background: var(--surface-subtle);
  color: var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.ballot-heading h3 {
  font:
    23px Georgia,
    serif;
  margin: 0;
}
.ballot-option {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  margin: 9px 0;
  padding: 16px 19px;
  font-size: 13px;
}
.ballot-option:hover {
  background: var(--surface-subtle);
  color: var(--ink);
  border-color: var(--border);
}
.ballot-option > b {
  font-size: 19px;
  color: var(--blue);
}
.ranked-ballot {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.ranked-ballot li {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-subtle);
  padding: 13px;
  margin-bottom: 9px;
}
.ranked-ballot li > b {
  flex: 1;
  font-size: 13px;
}
.rank-number {
  color: var(--blue);
  font:
    20px Georgia,
    serif;
}
.ballot-empty {
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
  padding: 25px;
  text-align: center;
}
.verification-result {
  max-width: 650px;
  margin: 20px auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 45px;
  border-radius: 8px;
}
.verification-symbol {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-ink);
  margin: 25px auto;
  font-size: 32px;
}
.verification-symbol.positive {
  background: var(--surface-accent);
  color: var(--blue);
}
.verification-result h1 {
  font-size: 34px;
}
.verification-result p {
  font-size: 14px;
}
.public-header {
  background: #fff;
}
.public-header .wordmark {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 23px;
}
.public-header .wordmark span {
  font-family: "Segoe UI", sans-serif;
}
.landing {
  margin: 65px auto 55px;
  gap: 65px;
}
.landing h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.landing h1 em {
  font-style: italic;
  color: var(--red);
}
.landing-emblem {
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 25px;
  border-top: 3px solid var(--gold);
}
.landing-emblem img {
  mix-blend-mode: multiply;
}
.landing-emblem > div {
  color: var(--muted);
}
.demo-section {
  border-radius: 6px;
}
.demo-section h2 {
  font-size: 29px;
}
.demo-buttons button {
  background: var(--surface-subtle);
  color: var(--blue);
  border: 1px solid var(--border);
  font-size: 12px;
}
.public-footer {
  border-color: var(--border);
}
.auth-card {
  border-radius: 7px;
  border-top: 3px solid var(--gold);
}
.auth-card h1 {
  font-size: 33px;
}
.document-text {
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  #content {
    padding-top: 42px;
  }
  .dashboard-layout {
    gap: 38px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding: 27px 14px;
  }
  .top-header {
    padding: 0 28px;
  }
  #content {
    padding: 28px;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr);
    gap: 23px;
  }
  .welcome-banner {
    padding: 32px;
  }
  .welcome-banner h1 {
    font-size: 46px;
  }
  .welcome-seal {
    width: 140px;
    height: 163px;
  }
  .case-layout {
    grid-template-columns: 1fr;
  }
  .case-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .case-layout > aside > * {
    margin: 0;
  }
  .phase-track li {
    font-size: 9px;
    gap: 5px;
  }
  .result-stats span {
    font-size: 9px;
  }
}
@media (max-width: 950px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .dashboard-aside > .section-heading {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .dashboard-aside > .identity-facts {
    margin: 0;
  }
  .activity-card {
    grid-column: 1/-1;
  }
  .election-grid,
  .party-grid {
    grid-template-columns: 1fr;
  }
  .phase-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .phase-track li {
    font-size: 10px;
  }
  .case-card {
    grid-template-columns: 110px minmax(0, 1fr) 30px;
    gap: 18px;
  }
  .case-card h2 {
    font-size: 22px;
  }
}
@media (max-width: 720px) {
  .environment {
    height: 28px;
    font-size: 9px;
  }
  .sidebar {
    top: 28px;
    width: 250px;
    height: calc(100vh - 28px);
  }
  .top-header {
    height: 65px;
    padding: 0 19px;
  }
  .top-tools {
    gap: 12px;
  }
  .top-tools select {
    max-width: 134px;
  }
  .mobile-toggle {
    color: var(--ink);
  }
  .page-title h1 {
    font-size: 33px;
  }
  .page-title > button {
    margin-top: 18px;
  }
  #content {
    padding: 23px 18px 35px;
  }
  .welcome-banner {
    padding: 27px 23px;
    min-height: 245px;
  }
  .welcome-banner h1 {
    font-size: 39px;
  }
  .welcome-banner .eyebrow {
    font-size: 8px;
  }
  .welcome-banner p:not(.eyebrow) {
    font-size: 11px;
    max-width: 210px;
  }
  .welcome-seal {
    position: absolute;
    right: -48px;
    top: 49px;
    width: 140px;
    height: 167px;
    opacity: 0.18;
    margin: 0;
  }
  .welcome-banner > div:first-child {
    position: relative;
    z-index: 1;
  }
  .hero-link {
    font-size: 11px;
    gap: 25px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .quiet-date {
    display: none;
  }
  .section-heading {
    margin-top: 25px;
  }
  .attention-list {
    padding: 0 17px;
  }
  .attention-item {
    gap: 11px;
    padding: 17px 0;
  }
  .attention-item b {
    font-size: 12px;
  }
  .attention-item p {
    font-size: 10px;
  }
  .service-grid {
    gap: 10px;
  }
  .service-tile {
    min-height: 165px;
    padding: 18px;
  }
  .service-tile b {
    font-size: 13px;
    line-height: 1.45;
  }
  .service-tile > span:not(.service-number) {
    font-size: 10px;
    max-width: 110px;
  }
  .service-number {
    top: 14px;
    right: 14px;
    font-size: 9px;
  }
  .dashboard-aside {
    display: block;
  }
  .dashboard-aside .section-heading {
    margin-bottom: 18px;
  }
  .identity-facts {
    margin-bottom: 24px !important;
  }
  .civic-intro {
    padding: 26px;
    gap: 15px;
  }
  .civic-intro h2 {
    font-size: 31px;
  }
  .civic-intro p:not(.eyebrow) {
    font-size: 12px;
  }
  .civic-stat {
    display: none;
  }
  .election-card {
    padding: 23px;
  }
  .election-card h2 {
    font-size: 26px;
  }
  .election-summary {
    gap: 19px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .election-summary > div > span:not(.badge) {
    font-size: 9px;
  }
  .phase-track {
    margin-bottom: 24px;
  }
  .phase-track li {
    font-size: 9px;
    align-items: flex-start;
  }
  .phase-track li b {
    padding-top: 3px;
  }
  .nomination-card {
    padding: 21px;
    gap: 14px;
  }
  .nomination-monogram {
    width: 35px;
    height: 42px;
    font-size: 16px;
  }
  .nomination-body h3 {
    font-size: 23px;
  }
  .candidate-list li {
    flex-wrap: wrap;
  }
  .candidate-list li > b {
    font-size: 11px;
  }
  .result-panel {
    padding: 21px;
  }
  .result-panel h2 {
    font-size: 27px;
  }
  .result-panel .section-heading {
    display: block;
  }
  .result-stamp {
    display: inline-block;
    margin-top: 15px;
  }
  .result-stats {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    padding: 23px 0;
  }
  .result-stats strong {
    font-size: 32px;
  }
  .result-stats span {
    font-size: 10px;
  }
  .allocated-seat {
    gap: 10px;
  }
  .allocated-seat b {
    font-size: 12px;
  }
  .allocated-seat small {
    font-size: 10px;
  }
  .allocated-seat .badge {
    font-size: 8px;
  }
  .vote-label {
    font-size: 11px;
  }
  .count-round summary {
    gap: 12px;
    align-items: flex-start;
    font-size: 11px;
  }
  .count-round summary > span {
    white-space: nowrap;
  }
  .vote-confirmed,
  .action-callout {
    padding: 22px;
    display: block;
  }
  .vote-confirmed .confirmation-icon {
    margin-bottom: 17px;
  }
  .vote-confirmed h2,
  .action-callout h2 {
    font-size: 25px;
  }
  .action-callout button {
    margin-top: 18px;
  }
  .party-intro {
    display: block;
    padding: 20px;
  }
  .party-intro p {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .party-card {
    padding: 23px;
  }
  .party-card h2 {
    font-size: 27px;
  }
  .party-grid {
    gap: 18px;
  }
  .process-explainer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .process-explainer > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0 12px;
  }
  .process-explainer span {
    grid-row: span 2;
    font-size: 18px;
  }
  .process-explainer p {
    grid-column: 2;
    margin-top: 3px;
  }
  .case-card {
    grid-template-columns: 1fr 25px;
    gap: 10px 15px;
    padding: 22px;
  }
  .case-number {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .case-card h2 {
    font-size: 23px;
  }
  .case-card .round-link {
    width: 29px;
    height: 29px;
  }
  .case-layout > aside {
    display: block;
  }
  .case-layout > aside > * {
    margin-bottom: 20px;
  }
  .case-layout .white-card {
    padding: 21px;
  }
  .official-tools {
    padding: 19px;
  }
  .official-tools .actions {
    gap: 7px;
  }
  .official-tools button {
    font-size: 10px;
  }
  .case-summary {
    font-size: 10px;
    gap: 10px 15px;
  }
  .access-purpose {
    padding: 25px;
  }
  .access-purpose h2 {
    font-size: 29px;
  }
  .workspace-shortcuts {
    gap: 8px;
  }
  .workspace-shortcuts > * {
    font-size: 11px;
  }
  .white-card {
    padding: 22px;
  }
  .white-card h2 {
    font-size: 24px;
  }
  .dialog-head {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  #dialog-body {
    padding: 23px 22px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .field {
    font-size: 12px;
  }
  .ranked-ballot li {
    gap: 9px;
    padding: 11px;
  }
  .ranked-ballot li > b {
    font-size: 11px;
  }
  .ranked-ballot button {
    padding: 5px 6px;
  }
  .landing h1 {
    font-size: 48px;
  }
  .public-header .wordmark {
    font-size: 20px;
  }
  .landing-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .demo-section h2 {
    font-size: 27px;
  }
  .panel-footer {
    padding: 20px;
  }
  .verification-result {
    padding: 27px;
  }
  .verification-result h1 {
    font-size: 29px;
  }
  .record-facts {
    grid-template-columns: 100px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.bill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.bill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 27px;
}
.bill-card h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 20px 0 15px;
}
.bill-card h2 a {
  color: var(--ink);
}
.bill-card > p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}
.bill-meta {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.bill-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 0 25px;
  font-size: 12px;
}
.bill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 24px;
}
.bill-layout > *,
.bill-grid > * {
  min-width: 0;
}
.bill-layout .section-heading {
  margin-top: 0;
}
.bill-layout h3 {
  font-size: 15px;
  margin: 20px 0 10px;
}
.legislative-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    16px/1.9 Georgia,
    serif;
  padding: 18px 0;
}
.bill-layout .document-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.bill-event {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.bill-event h3 {
  margin: 8px 0;
}
.bill-event p,
.bill-event details {
  font-size: 12px;
}
.bill-event details .legislative-text {
  font-size: 13px;
  max-height: 450px;
  overflow: auto;
}
.division-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.division-card > p,
.division-card details {
  font-size: 12px;
}
.division-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.division-counts span {
  background: var(--surface-accent);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 12px;
}
.division-counts b {
  font:
    27px Georgia,
    serif;
  color: var(--blue);
  margin-right: 8px;
}
.candidate-code {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.candidate-code .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.candidate-code button {
  flex-shrink: 0;
}
.recovery-card {
  max-width: 760px;
}
.recovery-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0 35px;
}
.recovery-options section {
  background: var(--surface-subtle);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.recovery-options h2 {
  font:
    16px/1.4 "Segoe UI",
    sans-serif;
  font-weight: 600;
}
.recovery-options p,
.recovery-options a {
  font-size: 12px;
}
.errorlist {
  color: var(--red);
  padding-left: 20px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .bill-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .bill-grid,
  .recovery-options {
    grid-template-columns: 1fr;
  }
  .bill-card {
    padding: 22px;
  }
  .bill-layout {
    gap: 0;
  }
  .candidate-code {
    align-items: stretch;
    flex-direction: column;
  }
  .legislative-text {
    font-size: 15px;
  }
  .bill-status {
    font-size: 11px;
    gap: 10px;
  }
}

/* Keep long institutional forms oriented and legislative history compact. */
dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
}
dialog .form-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 18px;
}
.bill-event {
  margin-bottom: 0;
  padding: 14px 0;
}
.bill-event summary {
  cursor: pointer;
}
.bill-event summary h3 {
  display: inline;
  font-size: 14px;
}
.bill-event summary .mini-label {
  display: block;
  margin-bottom: 7px;
}
.bill-event[open] {
  padding-bottom: 24px;
}
.bill-layout p.document-text {
  border: 0;
  padding: 0;
  background: transparent;
}
#nominee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) {
  dialog .form-actions {
    bottom: 0;
  }
}

dialog {
  scroll-padding-top: 110px;
  scroll-padding-bottom: 100px;
}
