:root {
  --v-bg: #0b0f1a;
  --v-card-bg: #121826;
  --v-card-border: #2a2a2a;
  --v-panel-border: #22314a;
  --v-accent: #f43f5e;
  --v-accent-strong: #e11d48;
  --v-gold: #e0b94b;
  --v-success: #10b981;
  --v-info: #3b82f6;
  --v-danger: #ef4444;
  --v-text: #ffffff;
  --v-muted: #9aa5b1;
}

html,
body {
  background: radial-gradient(1200px 800px at 10% -10%, rgba(244,63,94,0.08), transparent 70%),
              radial-gradient(1200px 800px at 110% 110%, rgba(244,63,94,0.06), transparent 70%),
              #0b1220;
  color: var(--v-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(main, #main, .main, #app) {
  background: #0b1220;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: #0b0f1a;
  z-index: -1;
}

.voting-shell,
.container.voting-wrap,
.vt-container,
.va.container,
.voting-wrap,
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-header h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #fff, #ffd5db 35%, var(--v-accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(244,63,94,0.08), rgba(244,63,94,0.03)), var(--v-card-bg);
  border-radius: 16px;
  border: 1px solid rgba(244,63,94,0.25);
  box-shadow: 0 8px 24px rgba(244,63,94,0.12);
}

.brand.big {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.header-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(135deg, #fff, #ffd5db 35%, var(--v-accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-text .muted {
  color: var(--v-muted);
  font-size: 1rem;
}

.muted {
  color: var(--v-muted) !important;
}

.hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hub-card {
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2)), #0d1117;
  border: 1px solid #1a1f29;
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--v-text);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--v-accent), var(--v-accent-strong));
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.3)), #0a0e14;
  border-color: rgba(244,63,94,0.5);
  box-shadow: 0 14px 28px rgba(0,0,0,0.4), 0 0 20px rgba(244,63,94,0.2);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  color: #ffffff;
}

.hub-desc {
  color: #a0aec0;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
  flex-grow: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.status--ok {
  background: rgba(16,185,129,0.2);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.4);
}

.status--off {
  background: rgba(107,114,128,0.2);
  color: #9ca3af;
  border: 1px solid rgba(107,114,128,0.4);
}

.hub-cta {
  color: var(--v-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.hub-card:hover .hub-cta {
  transform: translateX(3px);
  color: #ffd5db;
}

.hub-card--disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(0.5);
}

.hub-card--disabled::before {
  background: linear-gradient(90deg, #6b7280, #9ca3af) !important;
}

.hub-card--disabled .hub-cta {
  color: #9ca3af !important;
}

.admin-voting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.admin-voting-head .head-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-voting-head .brand {
  height: 38px;
}

.admin-voting-head .titles h2 {
  margin: 0;
}

.admin-voting-head .subtitle {
  opacity: 0.85;
}

.dark-box {
  border: 1px solid var(--v-card-border);
  background: #0e0e0e;
  color: var(--v-text);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--v-card-border);
  border-radius: 10px;
  background: #111;
  color: var(--v-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  font-weight: 600;
}

.btn:hover {
  background: #161616;
  border-color: #3a3a3a;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8) !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.btn-danger,
.btn.danger {
  background: linear-gradient(180deg, #7f1d1d, #b91c1c) !important;
  border-color: #8f2323 !important;
  color: #fee2e2 !important;
}

.btn-back {
  background: linear-gradient(180deg, #f87171, #ef4444) !important;
  border-color: #dc2626 !important;
  color: #fff !important;
  min-width: 150px;
  justify-content: center;
}

.btn-logout {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  border-color: rgba(248,113,113,0.65) !important;
  color: #fecaca !important;
  background: rgba(248,113,113,0.1) !important;
}

.btn-logout:hover {
  border-color: rgba(248,113,113,0.9) !important;
  color: #fff !important;
  background: rgba(248,113,113,0.25) !important;
}

.btn-small {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.vt-container {
  padding: 20px 18px 28px;
  background: #0b1220;
}

.vt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vt-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.header-actions .user {
  justify-content: flex-end;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-buttons .btn {
  min-height: 38px;
}

.vt-card {
  border: 1px solid var(--v-panel-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #0f162a, #0c1324);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  margin-bottom: 1rem;
}

.vt-card-head {
  padding: 16px 18px 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vt-card-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
}

.vt-card-body {
  padding: 16px 18px 18px;
}

.vt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.vt-tile {
  border: 1px solid var(--v-panel-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1933, #0c1426);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.vt-tile.absent {
  background: linear-gradient(180deg, #221218, #1a0f14);
  border-color: #5b1a1a;
}

.vt-tile.my-vote {
  border-color: var(--v-gold);
  box-shadow:
    0 0 0 2px rgba(224,185,75,0.35) inset,
    0 10px 28px rgba(234,179,8,0.18);
}

.vt-tile .ribbon {
  position: absolute;
  top: 10px;
  left: -8px;
  background: linear-gradient(180deg, #f7e38d, #e9c94f);
  color: #3a2f0c;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  transform: rotate(-6deg);
}

.btn.vote {
  background: linear-gradient(180deg, #f7e38d, #e9c94f);
  border-color: var(--v-gold);
  color: #3a2f0c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(224,185,75,0.35), 0 8px 24px rgba(234,179,8,0.15);
  position: relative;
  overflow: hidden;
}

.btn.vote .shine,
.btn.vote::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.6) 30%, transparent 60%);
  animation: shine 2.2s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.btn.vote.selected {
  box-shadow: 0 0 0 3px rgba(234,179,8,0.35) inset,
              0 0 0 1px rgba(224,185,75,0.55),
              0 12px 30px rgba(234,179,8,0.25) !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
}

.pill.success {
  border-color: rgba(34,197,94,0.35);
  color: #dcfce7;
  background: linear-gradient(180deg, #064e3b, #065f46);
}

.pill.info {
  border-color: rgba(59,130,246,0.35);
  color: #dbeafe;
  background: linear-gradient(180deg, #1e3a8a, #1e40af);
}

.pill.danger {
  border-color: rgba(239,68,68,0.35);
  color: #fecaca;
  background: linear-gradient(180deg, #7f1d1d, #991b1b);
}

.vt-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.vt-alert.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fecaca;
}

.vt-alert.info {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #dbeafe;
}

.vt-alert.ok {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #dcfce7;
}

.bar {
  margin-bottom: 10px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.bar-outer {
  height: 12px;
  border-radius: 999px;
  background: #1f2937;
  border: 1px solid #334155;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  height: 100%;
  transition: width 0.3s ease;
}

.bar-fill.abs-fill {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,10,22,0.7);
  backdrop-filter: blur(4px);
}

.modal-card,
.modal-panel {
  width: min(560px, 92vw);
  background: #0f1933;
  border: 1px solid var(--v-panel-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  overflow: hidden;
  color: #e8eefc;
}

.modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid #1b2433;
  background: linear-gradient(180deg, #101a2a, #0e1726);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 14px 16px;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-weight: 600;
}

.modal-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: var(--v-accent);
  animation: modal-spin 0.8s linear infinite;
}

@keyframes modal-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #1b2433;
  background: #0b1320;
}

.toast {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-flex;
  gap: 0.35rem;
}

.toast.t-ok {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #a7f3d0;
}

.toast.t-err {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
}

.toast.t-info {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
  color: #bfdbfe;
}

.cand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.cand-card {
  background: linear-gradient(180deg, #10151c, #0d1219);
  border: 1px solid #28303a;
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.cand-card.pre {
  opacity: 0.7;
  filter: grayscale(0.25);
}

.cand-card.pre .pre-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10,14,18,0.45) 0%, rgba(10,14,18,0.85) 100%);
  pointer-events: none;
}

.cand-card.pre .pre-count {
  text-align: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: #e6f3ff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}

.cand-card.pre .pre-sub {
  margin-top: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c6d7ee;
}

.cand-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cand-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.cand-meta {
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--v-muted);
}

.cand-meta .sep {
  opacity: 0.45;
}

.cand-card .results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cand-card .actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  align-items: center;
}

.cand-card .vote {
  border: 1px solid #2b3442;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: #121821;
  color: #eaeaea;
  cursor: pointer;
}

.cand-card .vote[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.cand-card .badge {
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.18);
  color: #c8caff;
  font-size: 0.8rem;
  font-weight: 600;
}

.cand-card .foot {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--v-muted);
}

.cand-card .myvote {
  font-size: 0.85rem;
  color: var(--v-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.stat-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255,255,255,0.02);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--v-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.va-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0;
}

.embed-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.gt3-toggle {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gt3-toggle .muted {
  font-size: 0.9rem;
}

.gt3-toggle .toggle-track {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.gt3-toggle .switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.gt3-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gt3-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4b5563;
  transition: 0.2s;
  border-radius: 24px;
}

.gt3-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.gt3-toggle input:checked + .slider {
  background: linear-gradient(90deg, var(--v-accent), var(--v-accent-strong));
}

.gt3-toggle input:checked + .slider:before {
  transform: translateX(22px);
}

.gt3-toggle .toggle-label {
  font-weight: 600;
}

.gt3-admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}

.gt3-admin-row .gt3-toggle {
  margin-top: 0;
  flex: 1 1 240px;
}

.gt3-session-input {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gt3-session-input label {
  font-size: 0.9rem;
  color: var(--v-muted);
}

.muted.micro {
  font-size: 0.78rem;
}

.gt3-input {
  background: #0f162a;
  border: 1px solid var(--v-panel-border);
  border-radius: 10px;
  color: #fff;
  padding: 0.45rem 0.6rem;
}

.gt3-history-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gt3-history-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.gt3-history-inputs label {
  font-size: 0.85rem;
  color: var(--v-muted);
}

.gt3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gt3-card {
  border: 1px solid var(--v-panel-border);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #0f182c, #0b1322);
}

.gt3-car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.gt3-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--v-panel-border);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: #101b32;
}

.gt3-radio input {
  accent-color: #f43f5e;
}

.gt3-radio.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gt3-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.gt3-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 320px;
}

.gt3-check input {
  accent-color: #f43f5e;
}

.gt3-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gt3-results .tally-head {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.gt3-results .tally-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.35rem;
  align-items: center;
  margin: 0.3rem 0;
}

.gt3-results .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt3-results .bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--v-panel-border);
  background: #111827;
  overflow: hidden;
}

.gt3-results .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.gt3-results .bar-fill.alt {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.gt3-history .history-year {
  margin-bottom: 0.6rem;
}

.gt3-history .history-head {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gt3-history .history-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.gt3-history .history-list li {
  padding: 0.25rem 0;
  color: var(--v-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gt3-history .history-list li:last-child {
  border-bottom: none;
}

.history-head {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
}

.btn-icon {
  border: 1px solid rgba(248,113,113,0.4);
  background: rgba(248,113,113,0.1);
  color: #fecaca;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.btn-icon:hover {
  border-color: rgba(248,113,113,0.7);
  color: #fff;
  background: rgba(248,113,113,0.2);
}

.hist-head {
  margin-top: 1rem;
}

.hist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.hist-list .cand-card {
  padding: 0.9rem;
}

.votes {
  margin: 0.35rem 0;
  padding-left: 1rem;
}

.absence-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.absence-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--v-panel-border);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
}

.chip-title {
  font-weight: 600;
  color: #f1f5f9;
}

.chip-sub {
  font-size: 0.9em;
  color: #94a3b8;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .brand.big {
    width: 60px;
  }

  .header-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub {
    grid-template-columns: 1fr;
  }

  .vt-grid {
    grid-template-columns: 1fr;
  }

  .vt-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cand-grid {
    grid-template-columns: 1fr;
  }
}
