/* Agency voting — ported from Sandbox voting.css, scoped to body.tn911-agency-voting-page (no global html/body resets). UTF-8 */

body.tn911-agency-voting-page {
  --brand-primary: #2563eb;
  --brand-navy: #1e3a8a;
  --brand-accent: #ffa55a;
  --brand-red: #d72638;
  --brand-surface: #ffffff;
  --brand-text: #0f172a;
  --brand-muted: #64748b;
  --voting-hero-blue: #2b6eff;
  --voting-hero-panel-bg: #203a8d;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.26);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1240px;
  color: var(--brand-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(255, 165, 90, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(215, 38, 56, 0.18), transparent 22%),
    linear-gradient(180deg, #4d82de 0%, #4f86e8 18%, var(--brand-primary) 42%, var(--brand-navy) 76%, #0f1c4d 100%);
}

/* Breathing room below sticky nav (layouts.site: body > main > .page-shell) */
body.tn911-agency-voting-page > main > .page-shell {
  margin-top: 1rem;
}

body.tn911-agency-voting-page .page-shell,
body.tn911-agency-voting-page .page-shell * {
  box-sizing: border-box;
}

body.tn911-agency-voting-page .page-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Post-vote confirmation (fixed; non-blocking) */
body.tn911-agency-voting-page #agency-voting-vote-toast-host {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 10050;
  width: min(calc(100% - 32px), 420px);
  pointer-events: none;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast {
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--brand-surface);
  color: var(--brand-text);
  box-shadow: var(--shadow-md);
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast--visible {
  opacity: 1;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast--leaving {
  opacity: 0;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast-inner {
  padding: 14px 18px 16px;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--brand-text);
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast-body .thumb-icon {
  flex-shrink: 0;
  margin-top: 0.12em;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-toast-copy {
  flex: 1;
  min-width: 0;
}

/* Bootstrap modal above vote toast (toast z-index 10050) */
body.tn911-agency-voting-page .modal {
  z-index: 10100;
}

body.tn911-agency-voting-page .modal-backdrop {
  z-index: 10090;
}

body.tn911-agency-voting-page #agency-voting-rules-modal .modal-body .aside-intro {
  color: var(--brand-text);
}

body.tn911-agency-voting-page #agency-voting-rules-modal .modal-body .rule-list,
body.tn911-agency-voting-page #agency-voting-rules-modal .modal-body .rule-list li {
  color: var(--brand-text);
}

body.tn911-agency-voting-page #agency-voting-rules-modal .modal-body .legal {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

body.tn911-agency-voting-page .page-shell::before,
body.tn911-agency-voting-page .page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

body.tn911-agency-voting-page .page-shell::before {
  top: 120px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: rgba(255, 165, 90, 0.16);
}

body.tn911-agency-voting-page .page-shell::after {
  right: -80px;
  bottom: 120px;
  width: 320px;
  height: 320px;
  background: rgba(215, 38, 56, 0.14);
}

body.tn911-agency-voting-page .panel,
body.tn911-agency-voting-page .vote-card,
body.tn911-agency-voting-page .agency-row {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.tn911-agency-voting-page .wrap {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

body.tn911-agency-voting-page .page-shell main {
  padding: 20px 0 64px;
}

body.tn911-agency-voting-page .hero-stack {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 36px;
  background: var(--brand-surface);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

body.tn911-agency-voting-page .hero-card {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background-color: var(--brand-surface);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  color: var(--brand-text);
}

body.tn911-agency-voting-page .eyebrow {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.tn911-agency-voting-page .hero-card .eyebrow {
  color: var(--brand-muted);
}

/* Roster search (client-side filter) — under hero card in hero-stack */
body.tn911-agency-voting-page .agency-voting-search-row {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(16px, 3vw, 24px);
  padding: 0 clamp(4px, 1vw, 8px);
}

body.tn911-agency-voting-page .agency-voting-search-row > label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-text);
}

body.tn911-agency-voting-page .agency-voting-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

body.tn911-agency-voting-page .agency-voting-search-input-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(100%, 42rem);
  flex-wrap: wrap;
}

body.tn911-agency-voting-page .agency-voting-search-input-row .submit-button {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.tn911-agency-voting-page .agency-voting-search-input-row .agency-voting-search-input.field {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  border: 2px solid rgba(37, 99, 235, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

body.tn911-agency-voting-page .agency-voting-search-input-row .agency-voting-search-input.field:focus {
  outline: none;
}

body.tn911-agency-voting-page .agency-voting-search-input-row .agency-voting-search-input.field:focus-visible {
  border-color: var(--brand-primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(37, 99, 235, 0.25);
}

body.tn911-agency-voting-page .agency-voting-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

body.tn911-agency-voting-page .agency-voting-toolbar-actions .submit-button {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: one horizontal row — Search, Clear, How voting works, Reminders, Suggest (no wrap / no space-between split) */
@media (min-width: 641px) {
  body.tn911-agency-voting-page .agency-voting-search-toolbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  body.tn911-agency-voting-page .agency-voting-search-input-row {
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
  }

  body.tn911-agency-voting-page .agency-voting-search-input-row .agency-voting-search-input.field {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 20rem;
  }

  body.tn911-agency-voting-page .agency-voting-toolbar-actions {
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  body.tn911-agency-voting-page .agency-voting-search-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.tn911-agency-voting-page .agency-voting-search-input-row {
    max-width: 100%;
    width: 100%;
  }

  body.tn911-agency-voting-page .agency-voting-search-input-row .submit-button {
    width: 100%;
    text-align: center;
    min-height: 48px;
  }

  body.tn911-agency-voting-page .agency-voting-toolbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body.tn911-agency-voting-page .agency-voting-toolbar-actions .submit-button {
    width: 100%;
    text-align: center;
    min-height: 48px;
  }
}

body.tn911-agency-voting-page .agency-voting-search-clear {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: var(--brand-surface);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.tn911-agency-voting-page .agency-voting-search-clear:hover {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(248, 250, 252, 1);
}

body.tn911-agency-voting-page .agency-voting-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

body.tn911-agency-voting-page .page-shell h1,
body.tn911-agency-voting-page .page-shell h2,
body.tn911-agency-voting-page .page-shell h3,
body.tn911-agency-voting-page .page-shell p {
  margin-top: 0;
}

body.tn911-agency-voting-page .hero-card h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--brand-navy);
}

body.tn911-agency-voting-page .hero-copy {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.84);
}

body.tn911-agency-voting-page .hero-card .hero-copy {
  color: var(--brand-muted);
}

body.tn911-agency-voting-page .section {
  margin-top: 28px;
}

body.tn911-agency-voting-page .champion-section {
  margin-top: 22px;
}

body.tn911-agency-voting-page .agency-voting-champion-section--hidden {
  display: none;
}

body.tn911-agency-voting-page .champion-section-page-title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  font-weight: 800;
}

body.tn911-agency-voting-page .panel {
  padding: clamp(22px, 3vw, 32px);
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: none;
}

body.tn911-agency-voting-page .hero-stack .panel {
  padding: 0;
  border-radius: 0;
}

body.tn911-agency-voting-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--brand-surface);
}

body.tn911-agency-voting-page .section-header h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

body.tn911-agency-voting-page .section-header p {
  margin-bottom: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

body.tn911-agency-voting-page .top-ten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

body.tn911-agency-voting-page .champion-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 165, 90, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--brand-surface);
  overflow: hidden;
}

body.tn911-agency-voting-page .champion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.08) 48%, transparent 75%);
  pointer-events: none;
}

/* Spotlight card on light hero-stack: navy panel so glass + white type stay legible (not faint on white) */
body.tn911-agency-voting-page .hero-stack .champion-card {
  border: 1px solid rgba(30, 58, 138, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 165, 90, 0.2), transparent 32%),
    linear-gradient(165deg, rgba(30, 58, 138, 0.92) 0%, rgba(15, 28, 77, 0.96) 100%);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.tn911-agency-voting-page .champion-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tn911-agency-voting-page .champion-label .rank-badge {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 165, 90, 0.72), rgba(255, 255, 255, 0.2));
}

body.tn911-agency-voting-page .champion-card .champion-label + .tn911-agency-voting__profile-link {
  margin-left: 14px;
}

body.tn911-agency-voting-page .champion-name {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--brand-surface);
}

body.tn911-agency-voting-page .champion-copy {
  max-width: 56ch;
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
}

body.tn911-agency-voting-page .champion-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  font-weight: 600;
}

body.tn911-agency-voting-page .champion-metrics {
  display: grid;
  gap: 14px;
  justify-items: start;
}

body.tn911-agency-voting-page .champion-votes {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.28);
  min-width: 190px;
}

body.tn911-agency-voting-page .champion-votes strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

body.tn911-agency-voting-page .champion-votes span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

body.tn911-agency-voting-page .vote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  color: var(--brand-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

body.tn911-agency-voting-page .vote-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 60% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

body.tn911-agency-voting-page .vote-card.top-2,
body.tn911-agency-voting-page .vote-card.top-3 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
}

body.tn911-agency-voting-page .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.tn911-agency-voting-page .vote-card .agency-name {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.tn911-agency-voting-page .vote-metric {
  margin-top: auto;
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  gap: 8px;
}

body.tn911-agency-voting-page .vote-metric strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.tn911-agency-voting-page .vote-metric span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

body.tn911-agency-voting-page .thumb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: 132px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: var(--brand-surface);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body.tn911-agency-voting-page .thumb-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}

body.tn911-agency-voting-page .thumb-button:disabled,
body.tn911-agency-voting-page .thumb-button[disabled] {
  cursor: not-allowed;
  opacity: 0.88;
  transform: none;
}

body.tn911-agency-voting-page .thumb-button:disabled:hover,
body.tn911-agency-voting-page .thumb-button[disabled]:hover {
  transform: none;
  background: rgba(15, 23, 42, 0.28);
  border-color: rgba(255, 255, 255, 0.26);
}

body.tn911-agency-voting-page .thumb-button:focus-visible,
body.tn911-agency-voting-page .field:focus-visible,
body.tn911-agency-voting-page .textarea:focus-visible {
  outline: 3px solid rgba(255, 165, 90, 0.95);
  outline-offset: 3px;
}

body.tn911-agency-voting-page .thumb-icon {
  font-size: 1rem;
  line-height: 1;
}

body.tn911-agency-voting-page .agency-list {
  display: grid;
  gap: 14px;
}

body.tn911-agency-voting-page .agency-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  color: var(--brand-surface);
  box-shadow: var(--shadow-sm);
}

body.tn911-agency-voting-page .agency-row h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

body.tn911-agency-voting-page .agency-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

body.tn911-agency-voting-page .row-votes {
  min-width: 96px;
  text-align: right;
}

body.tn911-agency-voting-page .row-votes strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

body.tn911-agency-voting-page .row-votes span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

body.tn911-agency-voting-page .aside-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  color: var(--brand-surface);
  box-shadow: var(--shadow-sm);
}

body.tn911-agency-voting-page .aside-card h3,
body.tn911-agency-voting-page .form-panel h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

body.tn911-agency-voting-page .aside-intro {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
}

body.tn911-agency-voting-page .rule-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
}

body.tn911-agency-voting-page .rule-list li + li {
  margin-top: 10px;
}

body.tn911-agency-voting-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.tn911-agency-voting-page .field-group {
  display: grid;
  gap: 8px;
}

body.tn911-agency-voting-page .field-group.full {
  grid-column: 1 / -1;
}

body.tn911-agency-voting-page .form-panel label {
  color: var(--brand-surface);
  font-weight: 600;
}

body.tn911-agency-voting-page .form-panel .text-danger {
  color: #fecaca;
}

body.tn911-agency-voting-page .field,
body.tn911-agency-voting-page .textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.tn911-agency-voting-page .textarea {
  min-height: 140px;
  resize: vertical;
}

body.tn911-agency-voting-page .submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 18px;
}

body.tn911-agency-voting-page .submit-button {
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-accent), #ffbf83);
  color: #4a2200;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 165, 90, 0.28);
}

body.tn911-agency-voting-page .submit-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.tn911-agency-voting-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.tn911-agency-voting-page .legal {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

body.tn911-agency-voting-page .agency-voting-empty {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

body.tn911-agency-voting-page .hero-stack .agency-voting-empty {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(30, 58, 138, 0.06);
  color: var(--brand-navy);
}

body.tn911-agency-voting-page .tn911-agency-voting__profile-link {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

body.tn911-agency-voting-page .tn911-agency-voting__profile-link:hover {
  color: #fff;
  text-decoration: underline;
}

body.tn911-agency-voting-page .vote-card .tn911-agency-voting__profile-link {
  margin-top: 0;
  margin-bottom: 6px;
}

body.tn911-agency-voting-page .agency-row .tn911-agency-voting__profile-link {
  margin-bottom: 6px;
}

body.tn911-agency-voting-page .tn911-agency-voting__vote-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  max-width: 18rem;
}

body.tn911-agency-voting-page .champion-metrics .tn911-agency-voting__vote-hint {
  grid-column: 1 / -1;
}

@media (max-width: 1200px) {
  body.tn911-agency-voting-page .champion-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 960px) {
  body.tn911-agency-voting-page .form-grid {
    grid-template-columns: 1fr;
  }

  body.tn911-agency-voting-page .agency-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.tn911-agency-voting-page .row-votes {
    text-align: left;
  }

  body.tn911-agency-voting-page .submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.tn911-agency-voting-page .champion-votes {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body.tn911-agency-voting-page .wrap {
    width: min(calc(100% - 20px), var(--max-width));
  }

  body.tn911-agency-voting-page .hero-card,
  body.tn911-agency-voting-page .panel {
    border-radius: 24px;
  }

  body.tn911-agency-voting-page .hero-stack {
    border-radius: 24px;
    padding: 24px;
  }

  body.tn911-agency-voting-page .top-ten-grid {
    grid-template-columns: 1fr;
  }

  body.tn911-agency-voting-page .section-header {
    flex-direction: column;
    align-items: start;
  }

  body.tn911-agency-voting-page .champion-card {
    padding: 24px;
  }
}
