:root{
  --bg:#f8eef2;
  --surface:#ffffff;
  --surface-subtle:#fff7f9;
  --line:#f0d0d8;
  --line-strong:#deb0bd;
  --ink:#3a1022;
  --muted:#6f4054;
  --muted-2:#8d5d6f;
  --primary:#b81040;
  --primary-2:#e81028;
  --primary-soft:#fff4f7;
  --danger:#c62838;
  --danger-soft:#fff0f2;
  --warning:#f3b33f;
  --warning-soft:#fff7e4;
  --success:#16855b;
  --success-soft:#edf8f2;
  --shadow:0 14px 34px rgba(104,0,48,.10);
  --shadow-sm:0 8px 20px rgba(104,0,48,.07);
  --radius:8px;
  --radius-lg:10px;
  --focus:0 0 0 4px rgba(184,16,64,.18);
}

*{
  box-sizing:border-box;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html{
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}

body{
  min-height:100vh;
  margin:0;
  color:var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,238,242,.94)),
    var(--bg);
}

a{
  color:var(--primary);
}

a:hover{
  color:var(--primary-2);
}

.container{
  max-width:1320px;
}

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

.text-nowrap{
  white-space:nowrap;
}

.material-symbols-rounded{
  font-variation-settings:"FILL" 0, "wght" 520, "GRAD" 0, "opsz" 24;
}

.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.1em;
  height:1.1em;
  font-size:20px;
  line-height:1;
  vertical-align:-4px;
}

.card,
.glass,
.tile,
.auth-panel,
.vote-modal__dialog{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}

.shadow-soft{
  box-shadow:var(--shadow-sm);
}

.card-anim{
  animation:enter .22s ease both;
}

@keyframes enter{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}

/* Header */
.hero{
  position:relative;
  overflow:hidden;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, var(--primary), var(--primary-2) 58%, var(--warning) 58%, var(--danger));
}

.hero-brand{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:18px;
  align-items:center;
}

.hero-brand__mark{
  display:grid;
  place-items:center;
  width:112px;
  min-height:112px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.hero-brand__logo{
  width:86px;
  height:86px;
  object-fit:contain;
}

.hero-brand__text{
  min-width:0;
  display:grid;
  gap:8px;
}

.hero-title{
  margin:0;
  color:var(--ink);
  font-weight:800;
  letter-spacing:0;
  line-height:1.1;
}

.hero-sub{
  color:var(--muted) !important;
  font-size:1rem;
}

.hero-note,
.instruction-note,
.alert-soft{
  display:inline-flex;
  align-items:flex-start;
  gap:10px;
  width:fit-content;
  max-width:100%;
  margin:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--primary-soft);
  color:var(--ink);
  font-size:.92rem;
  line-height:1.45;
}

.hero-note .icon,
.instruction-note .icon,
.alert-soft .icon{
  color:var(--primary);
  margin-top:1px;
}

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

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-subtle);
  color:var(--primary);
  font-size:.86rem;
  font-weight:700;
  text-decoration:none;
}

.badge-soft--accent{
  border-color:#f0c3c8;
  background:var(--danger-soft);
  color:#9d2630;
}

/* Auth */
.auth-shell{
  display:grid;
  grid-template-columns:minmax(320px,1fr) minmax(280px,.8fr);
  gap:22px;
  align-items:stretch;
}

.auth-panel{
  padding:28px;
}

.auth-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.auth-form .form-control{
  min-height:46px;
}

.auth-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.auth-aside{
  min-width:0;
}

.auth-card{
  min-height:100%;
  display:grid;
  align-content:center;
  gap:14px;
  padding:28px;
  border-radius:var(--radius-lg);
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:var(--shadow);
}

.auth-logo{
  width:86px;
  height:86px;
  padding:8px;
  border-radius:var(--radius);
  object-fit:contain;
  background:#fff;
}

.auth-aside-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-weight:800;
}

.auth-card p{
  margin:0;
  color:rgba(255,255,255,.82);
}

.auth-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:.9rem;
}

.password-field{
  position:relative;
}

.password-field__input{
  padding-right:46px;
}

.password-field__toggle{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:0;
  border-radius:var(--radius);
  color:var(--muted);
  background:transparent;
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible{
  color:var(--primary);
  background:var(--primary-soft);
  outline:0;
}

.auth-login-form{
  margin-top:44px;
}

.auth-field{
  position:relative;
}

.auth-field + .auth-field{
  margin-top:20px;
}

.auth-field .form-control{
  height:56px;
  padding:18px 14px 8px;
}

.auth-field label{
  position:absolute;
  top:50%;
  left:14px;
  z-index:2;
  max-width:calc(100% - 28px);
  margin:0;
  padding:0 6px;
  color:var(--muted);
  background:#fff;
  font-weight:800;
  line-height:1;
  pointer-events:none;
  transform:translateY(-50%);
  transform-origin:left center;
  transition:top .16s ease, transform .16s ease, color .16s ease;
}

.auth-field .form-control:focus + label,
.auth-field .form-control:not(:placeholder-shown) + label{
  top:0;
  color:var(--primary);
  transform:translateY(-50%) scale(.84);
}

.auth-field .form-control:focus{
  background:#fff;
}

.auth-field.password-field .form-control{
  padding-right:52px;
}

.auth-field.password-field label{
  max-width:calc(100% - 70px);
}

.auth-field .password-field__toggle{
  right:10px;
  opacity:0;
  pointer-events:none;
  transform:translateY(-50%) scale(.92);
  transition:opacity .16s ease, transform .16s ease, color .16s ease, background .16s ease;
}

.auth-field.password-field.has-value .password-field__toggle{
  opacity:1;
  pointer-events:auto;
  transform:translateY(-50%) scale(1);
}

.auth-login-form .auth-actions{
  justify-content:center;
  gap:12px;
}

.auth-login-form .auth-actions .btn{
  width:136px;
  min-height:44px;
  border-radius:14px;
}

.auth-otp-form{
  margin-top:30px;
}

.otp-cells{
  display:grid;
  grid-template-columns:repeat(6,56px);
  justify-content:center;
  gap:12px;
}

.otp-cell{
  width:56px;
  height:62px;
  padding:0;
  text-align:center;
  color:var(--ink);
  font-size:1.55rem;
  font-weight:800;
  line-height:1;
  border-color:#c9dae6;
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.96), rgba(255,255,255,0) 44%),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 8px 18px rgba(104,0,48,.05);
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.otp-cell:focus{
  border-color:var(--primary-2);
  background:#fff;
  box-shadow:
    var(--focus),
    0 12px 24px rgba(184,16,64,.10);
  transform:translateY(-1px);
}

.otp-cell.has-value{
  border-color:#bfe7d1;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.96), rgba(255,255,255,0) 44%),
    var(--success-soft);
  color:var(--success);
}

.auth-otp-form .auth-actions{
  justify-content:center;
  gap:12px;
}

.auth-otp-form .auth-actions .btn{
  width:150px;
  min-height:44px;
  border-radius:14px;
}

.code-input{
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.28em;
  text-align:center;
}

/* Forms and buttons */
.form-label{
  font-weight:700;
  color:var(--ink);
}

.form-control,
.form-select{
  border-color:var(--line);
  border-radius:var(--radius);
  color:var(--ink);
  background:#fff;
}

.form-control:focus,
.form-select:focus{
  border-color:var(--primary-2);
  box-shadow:var(--focus);
}

.form-text,
.field-note{
  color:var(--muted);
}

.btn,
.btn-lg{
  border-radius:var(--radius);
  font-weight:700;
}

.btn-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
}

.btn-primary,
.btn-success{
  --bs-btn-bg:var(--primary);
  --bs-btn-border-color:var(--primary);
  --bs-btn-hover-bg:var(--primary-2);
  --bs-btn-hover-border-color:var(--primary-2);
  --bs-btn-active-bg:var(--primary);
  --bs-btn-active-border-color:var(--primary);
  --bs-btn-focus-shadow-rgb:184,16,64;
  color:#fff;
}

.btn-outline-success,
.btn-outline-primary,
.btn-outline-secondary,
.vote-btn-secondary{
  --bs-btn-color:var(--primary);
  --bs-btn-border-color:var(--line-strong);
  --bs-btn-hover-bg:var(--primary);
  --bs-btn-hover-border-color:var(--primary);
  --bs-btn-hover-color:#fff;
  color:var(--primary);
  border-color:var(--line-strong);
  background:#fff;
}

.btn-link{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}

.btn-link:hover{
  color:var(--primary-2);
  text-decoration:underline;
}

.btn.is-loading{
  pointer-events:none;
  opacity:.75;
}

.btn.is-loading::after{
  content:"";
  width:16px;
  height:16px;
  margin-left:8px;
  border:2px solid rgba(255,255,255,.52);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

.vote-btn-secondary.is-loading::after,
.btn-outline-secondary.is-loading::after{
  border-color:rgba(184,16,64,.24);
  border-top-color:var(--primary);
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

/* Alerts */
.alert{
  border-radius:var(--radius);
  border-color:var(--line);
  box-shadow:none;
}

.alert-success{
  border-color:#b8ddca;
  background:var(--success-soft);
  color:#0f5f40;
}

.alert-danger{
  border-color:#efc1c7;
  background:var(--danger-soft);
  color:#9d2630;
}

.alert-warning{
  border-color:#eed596;
  background:var(--warning-soft);
  color:#755317;
}

.alert-secondary,
.alert-light{
  border-color:var(--line);
  background:var(--surface-subtle);
  color:var(--ink);
}

.form-control.is-invalid,
.form-select.is-invalid{
  border-color:var(--danger);
  box-shadow:0 0 0 4px rgba(213,58,68,.10);
}

/* Metrics */
.metric-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:.92rem;
  font-weight:700;
}

.metric-value,
.percent-big{
  color:var(--primary);
  font-weight:800;
  letter-spacing:0;
}

.metric-value{
  font-size:clamp(1.25rem,2vw,1.75rem);
}

.percent-big{
  font-size:1.2rem;
}

.admin-summary,
.admin-stats-grid,
.vote-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:14px;
}

.admin-summary > div,
.admin-stat,
.admin-chip,
.metric{
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.admin-stat{
  display:grid;
  gap:6px;
}

.admin-meta,
.admin-period{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-subtle);
  color:var(--muted);
  font-size:.9rem;
}

.progress-soft{
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:#f3dce2;
}

.progress-bar{
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
}

.progress-bar.is-low{
  background:var(--danger);
}

.progress-bar.is-mid{
  background:linear-gradient(90deg,var(--warning),#f08a36);
}

.progress-bar.is-high{
  background:linear-gradient(90deg,var(--primary),var(--success));
}

.progress-bar-anim{
  transition:width .35s ease;
}

/* Admin */
.admin-hero{
  padding:24px;
}

.admin-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.admin-hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.admin-hero-logo{
  width:86px;
  min-height:86px;
  flex:0 0 86px;
}

.admin-hero-logo .hero-brand__logo{
  width:70px;
  height:70px;
}

.admin-hero-text{
  min-width:min(100%,280px);
  flex:1 1 420px;
}

.admin-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.admin-logout-btn,
.admin-action-btn{
  white-space:nowrap;
}

.admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.admin-wide{
  grid-column:1 / -1;
}

.admin-chart{
  height:220px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.admin-chart svg{
  width:100%;
  height:100%;
}

.admin-chart-legend,
.admin-weekdays,
.admin-histogram{
  display:grid;
  gap:10px;
}

.admin-chart-legend{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  margin-top:12px;
  color:var(--muted);
  font-size:.92rem;
}

.admin-weekdays{
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
}

.admin-chip{
  display:grid;
  gap:5px;
}

.admin-chip span,
.admin-chip em{
  color:var(--muted);
  font-size:.86rem;
  font-style:normal;
}

.admin-bar{
  display:grid;
  grid-template-columns:92px 1fr 48px;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:.9rem;
}

.admin-bar-track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#f3dce2;
}

.admin-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
}

.admin-bar-value{
  text-align:right;
}

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

.admin-anomaly{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid #efc1c7;
  border-radius:999px;
  background:var(--danger-soft);
  color:#9d2630;
  font-size:.9rem;
}

/* Tables */
.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.table{
  --bs-table-color:var(--ink);
  --bs-table-border-color:var(--line);
  margin:0;
}

.table thead th{
  position:sticky;
  top:0;
  z-index:1;
  border-bottom:1px solid var(--line);
  background:#fff7f9;
  color:var(--primary);
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.table tbody tr:hover{
  background:#fff9fa;
}

.table td,
.table th{
  vertical-align:middle;
}

.payments-table{
  transition:opacity .18s ease, transform .18s ease;
}

.payments-table.is-loading{
  opacity:0;
  transform:translateY(6px);
}

/* Voting summary */
.vote-page{
  background:#f8eef2;
}

.vote-page .container{
  max-width:1240px;
}

.vote-sitebar{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:76px;
  padding:10px clamp(18px,4vw,38px);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
}

.vote-sitebar__brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--ink);
  text-decoration:none;
}

.vote-sitebar__brand:hover{
  color:var(--ink);
}

.vote-sitebar__logo{
  width:46px;
  height:46px;
  object-fit:contain;
  flex:0 0 46px;
}

.vote-sitebar__brand span{
  display:grid;
  gap:1px;
  min-width:0;
}

.vote-sitebar__brand strong{
  color:var(--ink);
  font-size:1rem;
  font-weight:800;
  line-height:1.1;
}

.vote-sitebar__brand small{
  color:var(--muted);
  font-size:.8rem;
}

.vote-sitebar__nav{
  display:flex;
  align-items:center;
  gap:4px;
}

.vote-sitebar__nav a{
  position:relative;
  padding:10px 14px;
  border-radius:999px;
  color:var(--muted);
  font-weight:800;
  text-decoration:none;
}

.vote-sitebar__nav a:hover,
.vote-sitebar__nav a.is-active{
  color:var(--primary);
  background:var(--primary-soft);
}

.admin-sitebar{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:76px;
  padding:10px clamp(18px,4vw,38px);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
}

.admin-sitebar__brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--ink);
  text-decoration:none;
}

.admin-sitebar__brand:hover{
  color:var(--ink);
}

.admin-sitebar__logo{
  width:46px;
  height:46px;
  object-fit:contain;
  flex:0 0 46px;
}

.admin-sitebar__brand span{
  display:grid;
  gap:1px;
  min-width:0;
}

.admin-sitebar__brand strong{
  color:var(--ink);
  font-size:1rem;
  font-weight:800;
  line-height:1.1;
}

.admin-sitebar__brand small{
  color:var(--muted);
  font-size:.8rem;
}

.admin-sitebar__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.admin-sitebar__user,
.admin-sitebar__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 13px;
  border:0;
  border-radius:999px;
  font-size:.92rem;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}

.admin-sitebar__user{
  color:var(--ink);
  background:var(--surface-subtle);
}

.admin-sitebar__link{
  color:var(--primary);
  background:var(--primary-soft);
}

.admin-sitebar__link:hover,
.admin-sitebar__link:focus-visible{
  color:#fff;
  background:var(--primary);
  outline:0;
}

.admin-sitebar__link--danger{
  color:#9d2630;
  background:var(--danger-soft);
}

.admin-sitebar__link--danger:hover,
.admin-sitebar__link--danger:focus-visible{
  color:#fff;
  background:var(--danger);
}

body:not([data-admin-role="superadmin"]) [data-superadmin]{
  display:none !important;
}

.offline-admin-card__meta{
  padding-top:4px;
  white-space:nowrap;
}

.offline-lookup__input{
  min-height:46px;
}

.offline-lookup-results{
  display:grid;
  gap:8px;
  margin-top:10px;
}

.offline-lookup-result{
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:100%;
  padding:13px 14px;
  border:1px solid rgba(240,208,216,.72);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  text-align:left;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.offline-lookup-result:hover,
.offline-lookup-result:focus-visible{
  border-color:rgba(184,16,64,.28);
  background:#fff9fa;
  box-shadow:0 12px 28px rgba(184,16,64,.10);
  outline:0;
  transform:translateY(-1px);
}

.offline-lookup-result__icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:22px;
}

.offline-lookup-result__body{
  display:grid;
  gap:4px;
  min-width:0;
}

.offline-lookup-result__name{
  font-weight:800;
  line-height:1.25;
}

.offline-lookup-result__meta{
  color:var(--muted);
  font-size:.9rem;
  line-height:1.35;
}

.offline-selected{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
  padding:14px 16px;
  border:1px solid rgba(31,145,91,.22);
  border-radius:16px;
  background:#f1fbf6;
}

.offline-selected__icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:50%;
  background:#e4f7ee;
  color:#16855b;
}

.offline-selected__icon .icon{
  font-size:26px;
  font-variation-settings:"FILL" 0, "wght" 700, "GRAD" 0, "opsz" 28;
}

.offline-selected__body{
  min-width:0;
  flex:1 1 auto;
}

.offline-selected__label{
  color:#16855b;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.offline-selected__name{
  margin-top:2px;
  color:var(--ink);
  font-size:1rem;
  font-weight:800;
  line-height:1.2;
}

.offline-selected__meta{
  margin-top:4px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.35;
}

.offline-selected__change{
  flex:0 0 auto;
  font-weight:800;
  text-decoration:none;
}

.offline-admin-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
}

.offline-edit-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}

.offline-edit-btn.is-active{
  color:#9d2630;
}

.vote-voters-card .card-body{
  padding:26px !important;
}

.vote-voters-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.vote-voters-head h2{
  display:flex;
  align-items:center;
  gap:8px;
}

.vote-voters-subtitle{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-size:.9rem;
}

.vote-voters-live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#16855b;
  font-weight:800;
}

.vote-voters-live__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#24a66a;
  box-shadow:0 0 0 5px rgba(36,166,106,.12);
}

.vote-voters-live.is-loading .vote-voters-live__dot{
  animation:pulseSoft 1s ease-in-out infinite;
}

.vote-voters-live.is-error{
  color:#9d2630;
}

.vote-voters-live.is-error .vote-voters-live__dot{
  background:#d93649;
  box-shadow:0 0 0 5px rgba(217,54,73,.12);
}

@keyframes pulseSoft{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(.72); opacity:.55; }
}

.vote-voters-filters{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,.45fr) minmax(220px,.45fr);
  gap:10px;
  margin-bottom:16px;
}

.vote-voters-search{
  position:relative;
}

.vote-voters-search .icon{
  position:absolute;
  left:12px;
  top:50%;
  z-index:2;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:21px;
}

.vote-voters-search .form-control{
  padding-left:42px;
}

.vote-voters-table-wrap{
  border:0;
  border-radius:16px;
  background:#fff;
}

.vote-voters-table{
  min-width:1120px;
}

.vote-voters-table thead th{
  padding:12px 10px;
  border-bottom:1px solid rgba(240,208,216,.85);
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.vote-voters-table tbody td{
  padding:12px 10px;
  vertical-align:middle;
}

.vote-voters-type,
.vote-voters-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#f8eef2;
  color:var(--primary);
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}

.vote-voters-type--office{
  background:#f1fbf6;
  color:#16855b;
}

.vote-voters-status .icon{
  font-size:18px;
}

.vote-voters-status--offline{
  background:#fff4f7;
  color:var(--primary);
}

.vote-voters-status--signed{
  background:#e9f7f0;
  color:#16855b;
}

.vote-voters-status--sent{
  background:#fff6df;
  color:#926400;
}

.vote-voters-status--empty{
  background:transparent;
  color:var(--muted);
}

.vote-voters-actions{
  display:inline-flex;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}

.vote-edit-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
}

.edit-voter-summary{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
  padding:14px 16px;
  border:1px solid rgba(240,208,216,.72);
  border-radius:16px;
  background:#fff9fa;
}

.edit-voter-summary > .icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:25px;
}

.edit-voter-summary__title{
  color:var(--ink);
  font-weight:800;
  line-height:1.25;
}

.edit-voter-summary__meta{
  margin-top:3px;
  color:var(--muted);
  font-size:.9rem;
}

.edit-voter-section{
  padding:16px;
  border:1px solid rgba(240,208,216,.72);
  border-radius:16px;
  background:#fff;
}

.edit-voter-section + .edit-voter-section{
  margin-top:12px;
}

.edit-voter-section__head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--ink);
}

.edit-voter-section__head .icon{
  color:var(--primary);
  font-size:21px;
}

.edit-voter-section--warning{
  background:#fffdfa;
}

.edit-voter-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(240,208,216,.72);
}

.admin-settings-intro{
  min-height:auto;
}

.admin-settings-card{
  border-radius:18px;
}

.settings-user-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) minmax(130px,.6fr);
  gap:12px;
  align-items:end;
}

.settings-users-table{
  min-width:760px;
}

.vote-hero-panel{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);
  min-height:260px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    linear-gradient(90deg,#ffffff 0%,#ffffff 52%,rgba(255,244,247,.72) 100%);
  box-shadow:var(--shadow-sm);
}

.vote-hero-panel__copy{
  position:relative;
  z-index:1;
  display:grid;
  align-content:center;
  gap:12px;
  padding:34px 38px;
}

.vote-hero-panel__eyebrow{
  color:var(--primary);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.vote-hero-panel h1{
  max-width:760px;
  margin:0;
  color:var(--ink);
  font-size:clamp(2rem,4vw,3.6rem);
  font-weight:760;
  line-height:1.08;
  letter-spacing:.006em;
}

.vote-hero-panel p{
  max-width:660px;
  margin:0;
  color:var(--muted);
  font-size:1.06rem;
  line-height:1.55;
}

.vote-hero-panel__meta{
  display:block;
  max-width:520px;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(240,208,216,.72);
}

.vote-hero-visual{
  position:relative;
  min-height:260px;
  opacity:.95;
}

.vote-hero-visual::before{
  content:"";
  position:absolute;
  right:22px;
  bottom:28px;
  width:90%;
  height:8px;
  border-radius:999px;
  background:rgba(184,16,64,.12);
}

.vote-hero-visual__sun{
  position:absolute;
  right:56px;
  top:42px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:rgba(247,183,51,.28);
}

.vote-hero-visual__building{
  position:absolute;
  bottom:36px;
  display:grid;
  grid-template-columns:repeat(2,18px);
  gap:12px;
  align-content:start;
  padding:22px;
  border-radius:12px 12px 4px 4px;
  background:linear-gradient(180deg,rgba(232,16,40,.18),rgba(184,16,64,.16));
}

.vote-hero-visual__building span{
  width:18px;
  height:22px;
  border-radius:4px;
  background:rgba(255,255,255,.55);
}

.vote-hero-visual__building--left{
  right:202px;
  width:112px;
  height:124px;
}

.vote-hero-visual__building--main{
  right:64px;
  width:156px;
  height:168px;
  grid-template-columns:repeat(3,18px);
  background:linear-gradient(180deg,rgba(232,16,40,.22),rgba(184,16,64,.18));
}

.vote-hero-visual__tree{
  position:absolute;
  bottom:36px;
  width:34px;
  height:82px;
  border-radius:999px 999px 8px 8px;
  background:rgba(22,133,91,.18);
}

.vote-hero-visual__tree::after{
  content:"";
  position:absolute;
  left:15px;
  bottom:-1px;
  width:4px;
  height:48px;
  border-radius:999px;
  background:rgba(184,16,64,.18);
}

.vote-hero-visual__tree--left{
  right:336px;
  height:96px;
}

.vote-hero-visual__tree--right{
  right:28px;
  height:118px;
}

.vote-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.42fr);
  gap:18px;
}

.vote-overview__progress,
.vote-overview__cards{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.vote-overview__progress{
  padding:30px;
  display:grid;
  align-content:center;
}

.vote-overview__cards{
  display:grid;
  gap:0;
  padding:18px 20px;
}

.admin-vote-overview__cards{
  align-content:start;
}

.admin-vote-overview__updated{
  padding:0 0 14px;
  border-bottom:1px solid rgba(240,208,216,.72);
  color:var(--muted);
  font-size:.86rem;
  font-weight:700;
  text-align:right;
}

.vote-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.vote-topbar__brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.vote-topbar__logo{
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 58px;
}

.vote-topbar__title{
  min-width:0;
}

.vote-topbar__eyebrow{
  margin-bottom:3px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vote-topbar h1{
  margin:0;
  color:var(--ink);
  font-size:clamp(1.35rem,2.4vw,2rem);
  font-weight:800;
  line-height:1.12;
}

.vote-topbar__meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.vote-status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-subtle);
  color:var(--primary);
  font-weight:800;
  white-space:nowrap;
}

.vote-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.vote-dashboard__main{
  min-width:0;
}

.vote-dashboard__label{
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vote-participation{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:36px;
  align-items:center;
  min-height:270px;
}

.vote-ring{
  position:relative;
  display:grid;
  place-items:center;
  width:270px;
  aspect-ratio:1;
  border-radius:50%;
  background:linear-gradient(145deg, #ffffff, #fff7f9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 18px 36px rgba(184,16,64,.10);
}

.vote-ring::before{
  content:"";
  position:absolute;
  inset:30px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,1), rgba(247,251,253,.98));
  box-shadow:
    inset 0 0 0 1px rgba(240,208,216,.85),
    inset 0 14px 34px rgba(184,16,64,.05);
}

.vote-ring__svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}

.vote-ring__track,
.vote-ring__progress{
  fill:none;
  stroke-width:12;
}

.vote-ring__track{
  stroke:#f0d0d8;
}

.vote-ring__progress{
  stroke:var(--primary);
  stroke-linecap:round;
  stroke-dasharray:100;
  stroke-dashoffset:100;
  transform:rotate(-90deg);
  transform-origin:105px 105px;
  filter:drop-shadow(0 6px 10px rgba(184,16,64,.15));
}

.vote-ring__inner{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  text-align:center;
}

.vote-participation__copy{
  min-width:0;
}

.vote-participation__copy h2{
  max-width:460px;
  margin:6px 0 0;
  color:var(--ink);
  font-size:clamp(1.5rem,2.3vw,2.15rem);
  font-weight:800;
  line-height:1.14;
  letter-spacing:-.01em;
}

.vote-dashboard__percent{
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  margin-top:4px;
  color:var(--primary);
  font-size:clamp(1.9rem,2.65vw,2.35rem);
  font-weight:800;
  line-height:1;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.is-odometer{
  display:inline-flex;
  align-items:baseline;
  font-variant-numeric:tabular-nums;
}

.vote-odometer__char{
  position:relative;
  display:inline-block;
  min-width:.58em;
  height:1em;
  overflow:hidden;
  text-align:center;
}

.vote-odometer__char:has(.vote-odometer__old:empty),
.vote-odometer__char:has(.vote-odometer__new:empty){
  min-width:.3em;
}

.vote-odometer__old,
.vote-odometer__new{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  animation-duration:.42s;
  animation-timing-function:cubic-bezier(.2,.7,.2,1);
  animation-fill-mode:both;
}

.vote-odometer__old{
  animation-name:voteOdometerOld;
}

.vote-odometer__new{
  animation-name:voteOdometerNew;
}

@keyframes voteOdometerOld{
  from{ transform:translateY(0); opacity:1; }
  to{ transform:translateY(-70%); opacity:0; }
}

@keyframes voteOdometerNew{
  from{ transform:translateY(70%); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

.vote-dashboard__hint{
  margin-top:10px;
  color:var(--muted);
  font-size:1rem;
}

.vote-dashboard__progress{
  height:12px;
  margin-top:22px;
  overflow:hidden;
  border-radius:999px;
  background:#f3dce2;
}

.vote-dashboard__progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
  transition:width .35s ease;
}

.vote-participation__summary{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
  color:var(--muted);
  font-size:.86rem;
  font-weight:700;
}

.vote-participation__summary span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.vote-participation__dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#f0d0d8;
}

.vote-participation__dot--done{
  background:var(--primary);
}

.vote-dashboard__notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:34px;
  padding-top:22px;
  max-width:760px;
  border-top:1px solid rgba(240,208,216,.75);
  color:var(--muted);
  font-size:.92rem;
  line-height:1.45;
}

.vote-dashboard__notice .icon{
  color:var(--primary);
  margin-top:1px;
}

.vote-dashboard__side{
  display:grid;
  gap:10px;
  align-content:start;
}

.vote-kpi{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 0;
  border:0;
  border-bottom:1px solid rgba(240,208,216,.72);
  border-radius:0;
  background:transparent;
}

.vote-kpi:first-child{
  padding-top:0;
}

.vote-kpi:last-of-type{
  padding-bottom:0;
  border-bottom:0;
}

.vote-kpi__icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  color:var(--primary);
  box-shadow:
    inset 0 0 0 1px rgba(184,16,64,.08),
    0 8px 18px rgba(184,16,64,.08);
}

.vote-kpi__icon .icon{
  font-size:24px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 28;
}

.vote-kpi--total .vote-kpi__icon{
  color:#b81040;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    #fff4f7;
}

.vote-kpi--voted .vote-kpi__icon{
  color:#16855b;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    #e9f7f0;
}

.vote-kpi--remaining .vote-kpi__icon{
  color:#6f4054;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    #fff4f7;
}

.vote-kpi--countdown .vote-kpi__icon{
  color:#b81040;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    #fff4f7;
}

.admin-vote-countdown.is-ended .vote-kpi__icon{
  color:#b4232f;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    #fff0f2;
}

.vote-kpi__label{
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.vote-kpi__value{
  margin-top:4px;
  color:var(--ink);
  font-size:1.5rem;
  font-weight:800;
  line-height:1.15;
}

.vote-dashboard__action{
  min-height:48px;
}

.vote-kpi-action{
  width:100%;
}

.vote-questions-panel{
  padding:26px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.vote-questions-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(240,208,216,.72);
}

.vote-questions-panel__head h2{
  margin:0;
  color:var(--ink);
  font-size:1.35rem;
  font-weight:800;
  line-height:1.15;
}

.vote-questions-panel__head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.98rem;
}

.vote-questions-panel__meta{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.4;
  white-space:nowrap;
}

.vote-template-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
  padding:0 0 18px;
  border-bottom:1px solid rgba(240,208,216,.72);
  color:var(--muted);
  line-height:1.45;
}

.vote-template-note .icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  color:var(--primary);
  margin-top:-2px;
  font-size:22px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 28;
}

.vote-question-list{
  display:grid;
  border:0;
  border-radius:0;
  overflow:hidden;
}

.vote-question-row{
  display:grid;
  grid-template-columns:minmax(390px,1.35fr) minmax(300px,.62fr) minmax(150px,.22fr);
  gap:24px;
  align-items:center;
  padding:20px 0;
  background:#fff;
}

.vote-question-row + .vote-question-row{
  border-top:1px solid rgba(240,208,216,.72);
}

.vote-question-row__main{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:14px;
  align-items:start;
  min-width:0;
}

.vote-question-row__num{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 48%),
    var(--primary-soft);
  color:var(--primary);
  box-shadow:inset 0 0 0 1px rgba(184,16,64,.08);
  font-weight:800;
}

.vote-question-row h3{
  margin:0;
  color:var(--ink);
  font-size:1.02rem;
  font-weight:400;
  line-height:1.25;
}

.vote-question-row p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.45;
}

.vote-question-row__stats{
  display:grid;
  gap:12px;
}

.vote-question-bar{
  display:grid;
  gap:7px;
}

.vote-question-bar__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.vote-question-bar__top span{
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.vote-question-bar__top strong{
  color:var(--ink);
  font-size:.9rem;
  font-weight:800;
  white-space:nowrap;
}

.vote-question-bar.vote-yes .vote-question-bar__top span,
.vote-question-bar.vote-yes .vote-question-bar__top strong{
  color:var(--success);
}

.vote-question-bar.vote-no .vote-question-bar__top span,
.vote-question-bar.vote-no .vote-question-bar__top strong{
  color:#9d2630;
}

.vote-question-bar__track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#f3dce2;
}

.vote-question-bar__fill{
  height:100%;
  width:0%;
  border-radius:999px;
  transition:none;
}

.vote-question-bar.vote-yes .vote-question-bar__fill{
  background:linear-gradient(90deg,var(--success),#35b779);
}

.vote-question-bar.vote-no .vote-question-bar__fill{
  background:var(--danger);
}

.vote-question-row__decision{
  display:flex;
  justify-content:flex-end;
}

.vote-question-row__decision .vote-question__stamp{
  margin:0;
}

.vote-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}

.vote-countdown{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:2px 12px;
  max-width:100%;
  min-height:46px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
  box-shadow:none;
}

.vote-countdown .icon{
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  color:var(--primary);
  box-shadow:
    inset 0 0 0 1px rgba(184,16,64,.08),
    0 8px 18px rgba(184,16,64,.08);
  font-size:24px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 28;
}

.vote-countdown span:not(.icon){
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}

.vote-countdown strong{
  color:var(--ink);
  font-size:1.02rem;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
}

.vote-page .vote-countdown{
  grid-template-columns:auto 1fr;
  gap:6px 12px;
  padding:0;
  background:transparent;
}

.vote-page .vote-countdown .icon{
  align-self:center;
}

.vote-page .vote-countdown span:not(.icon){
  align-self:end;
}

.vote-countdown.is-ended,
.vote-ended{
  color:#9d2630;
}

.vote-countdown.is-ended .icon{
  color:#9d2630;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--danger-soft);
}

.vote-ended{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:10px 12px;
  border:1px solid #efc1c7;
  border-radius:var(--radius);
  font-weight:800;
}

.site-footer{
  margin-top:28px;
  padding:0 0 30px;
  color:var(--muted);
}

.site-footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:min(1220px, calc(100vw - 128px));
  margin:0 auto;
  padding:18px 0 0;
  border-top:1px solid rgba(240,208,216,.72);
  font-size:.9rem;
  line-height:1.4;
}

.site-footer__inner span:first-child{
  color:var(--ink);
  font-weight:800;
}

.vote-question-stats{
  display:grid;
  gap:14px;
}

.vote-question-stats__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.vote-question-stats__list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.vote-question-stat,
.vote-question{
  position:relative;
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.vote-question-stat__title,
.vote-question__title{
  margin-bottom:10px;
  color:var(--ink);
  font-weight:800;
  line-height:1.35;
}

.vote-question-stat__rows,
.vote-question__stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.vote-question__metric{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.vote-question__metric-label{
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.vote-question__metric-value{
  color:var(--ink);
  font-size:.96rem;
  font-weight:800;
}

.vote-question__metric.vote-yes{
  border-color:#bfe7d1;
  background:var(--success-soft);
}

.vote-question__metric.vote-yes .vote-question__metric-label,
.vote-question__metric.vote-yes .vote-question__metric-value,
.vote-question__stat.vote-yes{
  color:var(--success);
}

.vote-question__metric.vote-no{
  border-color:#efc1c7;
  background:var(--danger-soft);
}

.vote-question__metric.vote-no .vote-question__metric-label,
.vote-question__metric.vote-no .vote-question__metric-value,
.vote-question__stat.vote-no{
  color:#9d2630;
}

.vote-question__basis{
  margin-top:10px;
  color:var(--muted);
  font-size:.84rem;
}

.vote-question__stamp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:8px 11px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.12;
  text-transform:uppercase;
}

.vote-question__stamp .icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  font-size:20px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24;
}

.vote-question__stamp.is-accepted{
  border:0;
  background:#e9f7f0;
  color:var(--success);
}

.vote-question__stamp.is-rejected{
  border:0;
  background:var(--danger-soft);
  color:#9d2630;
}

.vote-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.vote-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  font-weight:800;
}

.vote-option input{
  accent-color:var(--primary);
}

.vote-option input[value="yes"]{
  accent-color:var(--success);
}

.vote-option input[value="no"]{
  accent-color:var(--danger);
}

.vote-option:has(input[value="yes"]:checked){
  border-color:rgba(31,145,91,.34);
  background:#e9f7f0;
  color:var(--success);
}

.vote-option:has(input[value="no"]:checked){
  border-color:#efc1c7;
  background:var(--danger-soft);
  color:#9d2630;
}

.vote-option.is-invalid{
  border-color:var(--danger);
  background:var(--danger-soft);
}

.btn-cancel-danger:hover,
.btn-cancel-danger:focus-visible{
  --bs-btn-hover-bg:var(--danger);
  --bs-btn-hover-border-color:var(--danger);
  --bs-btn-hover-color:#fff;
  color:#fff;
  border-color:var(--danger);
  background:var(--danger);
}

/* Vote process */
.vote-flow-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.vote-flow-shell{
  overflow:hidden;
}

.vote-flow-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  align-items:start;
}

.vote-flow-main,
.vote-flow-panel{
  min-width:0;
}

.vote-flow-panel{
  display:grid;
  gap:18px;
}

.vote-flow-panel__head{
  display:grid;
  gap:4px;
}

.vote-flow-form{
  display:grid;
  gap:18px;
}

.vote-form-section{
  display:grid;
  gap:12px;
}

.vote-form-section + .vote-form-section{
  padding-top:18px;
  border-top:1px solid var(--line);
}

.vote-form-section__title{
  font-weight:800;
}

.vote-form-section__text{
  color:var(--muted);
}

.verify-form{
  display:grid;
  gap:14px;
}

.verify-form .row{
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.verify-actions,
.verify-buttons,
.vote-flow-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.turnstile-wrap{
  display:flex;
  justify-content:flex-start;
}

#voteSubmitStatus,
.verify-form .alert{
  margin:0;
}

.vote-question__decision{
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-left:4px solid var(--primary-2);
  border-radius:var(--radius);
  background:var(--surface-subtle);
  color:#3e596d;
  line-height:1.5;
}

.vote-voter-card{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.vote-voter-card__item{
  display:grid;
  gap:4px;
}

.vote-voter-card__item--owner{
  grid-column:1 / -1;
}

.vote-voter-card__label{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:.84rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.vote-voter-card__value{
  font-weight:800;
}

.vote-flow-side{
  position:sticky;
  top:18px;
}

.vote-flow-help{
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.vote-flow-help__title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-weight:800;
}

.vote-flow-help__body{
  color:var(--muted);
  font-size:.94rem;
}

.help-accent{
  color:var(--ink);
  font-weight:800;
}

.vote-steps{
  position:fixed;
  left:50%;
  bottom:16px;
  z-index:1200;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  width:min(880px,calc(100vw - 24px));
  padding:8px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}

.vote-step{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:8px;
  border-radius:var(--radius);
  color:var(--muted);
}

.vote-step__num{
  display:grid;
  place-items:center;
  flex:0 0 26px;
  width:26px;
  height:26px;
  border-radius:999px;
  background:#f3dce2;
  color:var(--primary);
  font-size:.84rem;
  font-weight:800;
}

.vote-step__text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
  font-weight:800;
}

.vote-step.is-active{
  background:var(--primary-soft);
  color:var(--primary);
}

.vote-step.is-active .vote-step__num,
.vote-step.is-done .vote-step__num{
  background:var(--primary);
  color:#fff;
}

.vote-step.is-done{
  color:var(--primary);
}

.vote-flow-sign-card,
.vote-result-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:16px;
  align-items:start;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.vote-submit-icon,
.vote-result-card__icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:var(--radius);
  background:var(--primary-soft);
  color:var(--primary);
}

.vote-submit-icon .icon,
.vote-result-card__icon .icon{
  font-size:30px;
}

.vote-flow-sign-card__body,
.vote-result-card__content{
  min-width:0;
}

.vote-flow-sign-card__title-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.vote-flow-sign-card__title,
.vote-result-card__title{
  font-weight:800;
}

.vote-flow-sign-card__text,
.vote-result-card__text{
  color:var(--muted);
}

.vote-flow-sign-card__dots{
  display:flex;
  gap:4px;
}

.vote-flow-sign-card__dots span{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--primary-2);
  animation:dot 1s ease-in-out infinite;
}

.vote-flow-sign-card__dots span:nth-child(2){animation-delay:.12s;}
.vote-flow-sign-card__dots span:nth-child(3){animation-delay:.24s;}

@keyframes dot{
  0%,100%{opacity:.35; transform:translateY(0);}
  50%{opacity:1; transform:translateY(-2px);}
}

.vote-flow-sign-card__timer{
  grid-column:1 / -1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--muted);
  font-weight:700;
}

.vote-submit-link{
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}

.vote-submit-link:hover{
  color:var(--primary-2);
  text-decoration:underline;
}

.vote-submit-link.disabled{
  pointer-events:none;
  opacity:.55;
}

.vote-result-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.vote-result-card.is-success{
  border-color:#b8ddca;
  background:var(--success-soft);
}

.vote-result-card.is-warning{
  border-color:#eed596;
  background:var(--warning-soft);
}

.vote-result-card.is-pending{
  background:var(--surface-subtle);
}

/* Modals */
.vote-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility 0s linear .18s;
}

.vote-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .18s ease;
}

.modal-open{
  overflow:hidden;
}

.vote-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(9,25,40,.42);
}

.vote-modal__dialog{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:min(980px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  padding:18px;
  transform:translateY(8px);
  transition:transform .18s ease;
}

.vote-modal.is-open .vote-modal__dialog{
  transform:translateY(0);
}

.vote-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}

.vote-modal__body{
  overflow:auto;
  padding-top:14px;
}

.vote-modal__close{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:var(--radius);
  color:var(--muted);
  background:var(--surface-subtle);
}

.vote-modal__close:hover,
.vote-modal__close:focus-visible{
  color:var(--primary);
  background:var(--primary-soft);
  outline:0;
}

.vote-submit-modal__dialog{
  width:min(520px,calc(100vw - 32px));
  text-align:center;
}

.vote-submit-card{
  display:grid;
  justify-items:center;
  gap:14px;
}

.vote-submit-timer{
  position:relative;
  display:grid;
  place-items:center;
  width:108px;
  height:108px;
}

.vote-submit-timer__ring{
  position:absolute;
  inset:0;
  border:4px solid #d6e8f0;
  border-top-color:var(--primary-2);
  border-radius:999px;
}

.vote-submit-timer__value{
  color:var(--ink);
  font-weight:800;
}

.vote-submit-text{
  color:var(--muted);
}

/* Misc */
.segmented{
  display:inline-flex;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.seg-btn{
  border:0;
  border-radius:6px;
  padding:7px 10px;
  background:transparent;
  color:var(--muted);
  font-weight:800;
}

.seg-btn.is-active{
  background:#fff;
  color:var(--primary);
  box-shadow:var(--shadow-sm);
}

.copy-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:2600;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:min(520px,calc(100vw - 24px));
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  color:#fff;
  background:rgba(17,32,45,.94);
  box-shadow:var(--shadow);
  transform:translate(-50%,12px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.copy-toast.is-visible{
  opacity:1;
  transform:translate(-50%,0);
}

.copy-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

.copy-toast--success{background:rgba(22,133,91,.96);}
.copy-toast--warning{background:rgba(151,104,18,.96);}
.copy-toast--error{background:rgba(157,38,48,.96);}
.copy-toast.is-success{background:rgba(22,133,91,.96);}
.copy-toast.is-warning{background:rgba(151,104,18,.96);}
.copy-toast.is-error{background:rgba(157,38,48,.96);}

.back-to-top{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:2500;
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(145deg,var(--primary),#0a3c66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 16px 34px rgba(184,16,64,.30),
    0 0 0 6px rgba(255,255,255,.72);
  opacity:0;
  pointer-events:none;
  transform:translateY(12px) scale(.94);
  transition:opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.back-to-top .icon{
  font-size:28px;
  font-variation-settings:"FILL" 0, "wght" 700, "GRAD" 0, "opsz" 28;
}

.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.back-to-top:hover{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 20px 40px rgba(184,16,64,.36),
    0 0 0 6px rgba(255,255,255,.86);
  transform:translateY(-2px) scale(1);
}

.back-to-top:focus-visible{
  outline:none;
  box-shadow:var(--focus), 0 16px 34px rgba(184,16,64,.22);
}

.portal-notice{
  position:fixed;
  top:16px;
  right:16px;
  z-index:2600;
  width:min(420px,calc(100vw - 32px));
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--ink);
  background:#fff;
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(-8px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.portal-notice.is-visible{
  opacity:1;
  transform:translateY(0);
}

.portal-notice--success{
  border-color:#b8ddca;
  background:var(--success-soft);
  color:#0f5f40;
}

.portal-notice--warning{
  border-color:#eed596;
  background:var(--warning-soft);
  color:#755317;
}

.portal-notice--error{
  border-color:#efc1c7;
  background:var(--danger-soft);
  color:#9d2630;
}

.form-alert-host{
  grid-column:1 / -1;
}

.form-alert{
  margin-top:10px;
}

.list-group-item{
  border-color:var(--line);
  color:var(--ink);
}

.list-group-item:hover,
.list-group-item:focus{
  background:var(--primary-soft);
  color:var(--primary);
}

.disabled,
.btn.disabled,
.btn:disabled,
a.disabled{
  pointer-events:none;
  opacity:.58;
}

.skeleton{
  min-height:1em;
  border-radius:6px;
  background:linear-gradient(90deg,#f8eef2,#fff,#f8eef2);
  background-size:200% 100%;
  animation:skeleton 1.2s ease-in-out infinite;
}

@keyframes skeleton{
  to{background-position:-200% 0;}
}

.search-highlight{
  border-radius:4px;
  background:#fff1b8;
  padding:0 2px;
}

.d-none{
  display:none !important;
}

/* Unified Oberih surface */
.hero,
.card,
.glass,
.auth-panel,
.auth-card,
.vote-flow-help,
.vote-flow-sign-card,
.vote-result-card,
.vote-modal__dialog{
  border-radius:18px;
}

.hero,
.card,
.glass,
.auth-panel,
.vote-modal__dialog{
  border-color:var(--line);
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.hero{
  padding:30px;
  overflow:hidden;
  background:
    linear-gradient(90deg,#ffffff 0%,#ffffff 58%,rgba(255,244,247,.72) 100%);
}

.hero::before{
  display:none;
}

.hero-title{
  font-weight:800;
  letter-spacing:0;
}

.hero-sub{
  max-width:760px;
  line-height:1.5;
}

.hero-brand__mark,
.auth-logo{
  border-radius:14px;
  border-color:rgba(240,208,216,.86);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}

.hero-note,
.instruction-note,
.alert-soft{
  width:100%;
  padding:14px 0 0;
  border:0;
  border-top:1px solid rgba(240,208,216,.72);
  border-radius:0;
  background:transparent;
  color:var(--muted);
}

.hero-note .icon,
.instruction-note .icon,
.alert-soft .icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  margin-top:-5px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  color:var(--primary);
  font-size:22px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 28;
  box-shadow:inset 0 0 0 1px rgba(184,16,64,.08);
}

.badge-soft{
  border:0;
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:800;
}

.badge-soft .icon{
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24;
}

.auth-shell{
  grid-template-columns:minmax(320px,560px);
  justify-content:center;
  align-items:center;
  min-height:calc(100svh - 220px);
}

.auth-panel{
  position:relative;
  padding:34px;
}

.auth-panel__logo{
  position:absolute;
  top:28px;
  right:30px;
  width:88px;
  height:88px;
  object-fit:contain;
}

.auth-panel .auth-logo{
  width:64px;
  height:64px;
  flex:0 0 64px;
  padding:6px;
  background:#fff;
}

.auth-title .icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  color:var(--primary);
  font-size:24px;
  font-variation-settings:"FILL" 0, "wght" 650, "GRAD" 0, "opsz" 28;
}

.auth-panel .auth-title,
.auth-panel > p{
  max-width:calc(100% - 118px);
}

.auth-card{
  overflow:hidden;
  border:1px solid var(--line);
  color:var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,244,247,.78)),
    #fff;
  box-shadow:var(--shadow-sm);
}

.auth-aside-title{
  color:var(--ink);
}

.auth-aside-title .material-symbols-rounded,
.auth-meta .material-symbols-rounded{
  color:var(--primary);
}

.auth-card p{
  color:var(--muted);
}

.auth-meta{
  margin-top:22px;
  border:0;
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:800;
}

.form-control,
.form-select{
  min-height:44px;
  border-radius:12px;
  background:#fff;
}

.input-group .form-control{
  border-radius:12px 0 0 12px;
}

.input-group .btn{
  border-radius:0 12px 12px 0;
}

.btn,
.btn-lg{
  border-radius:12px;
}

.btn-primary,
.btn-success{
  box-shadow:0 10px 22px rgba(184,16,64,.14);
}

.btn-outline-success,
.btn-outline-primary,
.btn-outline-secondary,
.vote-btn-secondary{
  border-color:rgba(240,208,216,.92);
  background:#fff;
  box-shadow:none;
}

.admin-hero{
  padding:28px;
}

.admin-hero-row{
  align-items:center;
}

.admin-summary > div,
.admin-stat,
.admin-chip,
.metric{
  border:0;
  border-radius:14px;
  background:rgba(255,247,249,.76);
}

.admin-stat .small,
.metric-label{
  color:var(--muted) !important;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.metric-value,
.percent-big{
  color:var(--ink);
}

.progress-soft,
.admin-bar-track{
  background:#f3dce2;
}

.progress-bar,
.admin-bar-fill{
  background:linear-gradient(90deg,var(--success),#35b779);
}

.admin-chart,
.table-wrap{
  border:0;
  border-radius:14px;
  background:rgba(255,247,249,.76);
}

.table thead th{
  background:#fff7f9;
  color:var(--muted);
}

.table tbody tr:hover{
  background:#fff7f9;
}

.list-group{
  border-radius:14px;
  overflow:hidden;
}

.list-group-item{
  border-color:rgba(240,208,216,.72);
}

.vote-flow-shell{
  border-radius:18px;
}

.vote-flow-panel__head{
  padding-bottom:16px;
  border-bottom:1px solid rgba(240,208,216,.72);
}

.vote-form-section + .vote-form-section{
  border-top-color:rgba(240,208,216,.72);
}

.verify-form .row,
.vote-voter-card,
.vote-flow-help,
.vote-flow-sign-card,
.vote-result-card{
  border:0;
  border-radius:14px;
  background:rgba(255,247,249,.76);
}

.vote-flow-help{
  border-top:1px solid rgba(240,208,216,.72);
  background:transparent;
}

.vote-question__decision{
  border:0;
  border-top:1px solid rgba(240,208,216,.72);
  border-radius:0;
  background:transparent;
}

.vote-options{
  gap:12px;
}

.vote-option{
  border-radius:14px;
}

.vote-steps{
  border:0;
  border-radius:999px;
  box-shadow:
    inset 0 0 0 1px rgba(240,208,216,.72),
    var(--shadow);
}

.vote-step{
  border-radius:999px;
}

.vote-step.is-active{
  background:var(--primary-soft);
}

.vote-submit-icon,
.vote-result-card__icon{
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    var(--primary-soft);
  box-shadow:inset 0 0 0 1px rgba(184,16,64,.08);
}

.vote-modal__dialog{
  border:0;
  box-shadow:0 24px 64px rgba(9,25,40,.24);
}

.vote-modal__header{
  border-bottom-color:rgba(240,208,216,.72);
}

/* Responsive */
@media (max-width:992px){
  .auth-shell,
  .admin-grid,
  .vote-flow-grid,
  .vote-summary,
  .vote-dashboard,
  .vote-overview,
  .vote-hero-panel,
  .vote-question-row{
    grid-template-columns:1fr;
  }

  .vote-flow-side{
    position:static;
  }

  .vote-countdown{
    width:100%;
  }

  .vote-topbar,
  .vote-sitebar,
  .admin-sitebar{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-sitebar__actions{
    width:100%;
    justify-content:flex-start;
  }

  .vote-topbar__meta,
  .vote-hero-panel__meta{
    width:100%;
    justify-content:flex-start;
  }

  .vote-sitebar__nav{
    width:100%;
    overflow:auto;
    padding-bottom:2px;
  }

  .vote-hero-visual{
    min-height:180px;
  }

  .vote-hero-visual__building--left{
    right:52%;
  }

  .vote-hero-visual__building--main{
    right:18%;
  }

  .vote-hero-visual__tree--left{
    right:76%;
  }

  .vote-question-row__decision{
    justify-content:flex-start;
  }

  .vote-question-row{
    gap:16px;
    padding:18px 0;
  }

  .vote-question-row__stats{
    padding-left:56px;
  }

  .vote-question-row__decision{
    padding-left:56px;
  }
}

@media (max-width:760px){
  .container{
    padding-left:14px;
    padding-right:14px;
  }

  .hero,
  .admin-hero,
  .card-body{
    padding:18px !important;
  }

  .hero-brand{
    grid-template-columns:74px minmax(0,1fr);
    gap:14px;
  }

  .hero-brand__mark{
    width:74px;
    min-height:74px;
  }

  .hero-brand__logo{
    width:60px;
    height:60px;
  }

  .hero-title{
    font-size:clamp(1.45rem,8vw,2rem);
  }

  .hero-note{
    display:flex;
    width:100%;
  }

  .admin-hero-top,
  .admin-hero-row,
  .admin-actions{
    align-items:stretch;
    justify-content:stretch;
  }

  .admin-actions .btn,
  .auth-actions .btn,
  .verify-buttons .btn,
  .vote-flow-actions .btn{
    width:100%;
  }

  .vote-question-stats__list,
  .vote-question-stat__rows,
  .vote-options{
    grid-template-columns:1fr;
  }

  .vote-question-row__stats,
  .vote-question-row__decision{
    padding-left:0;
  }

  .vote-voters-head,
  .edit-voter-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .vote-voters-filters{
    grid-template-columns:1fr;
  }

  .settings-user-form{
    grid-template-columns:1fr;
  }

  .vote-voters-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .vote-voters-actions .btn{
    justify-content:center;
  }

  .edit-voter-summary{
    align-items:flex-start;
  }

  .offline-selected{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .offline-selected__change{
    width:100%;
    justify-content:flex-start;
    padding-left:60px;
  }

  .offline-admin-card__footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .vote-dashboard,
  .vote-questions-panel,
  .vote-topbar,
  .vote-hero-panel__copy,
  .vote-overview__progress{
    padding:16px;
  }

  .vote-sitebar{
    position:static;
  }

  .vote-dashboard__percent{
    font-size:clamp(1.9rem,9vw,2.4rem);
  }

  .vote-participation{
    grid-template-columns:1fr;
    justify-items:center;
    gap:18px;
    min-height:0;
  }

  .vote-participation__copy{
    width:100%;
    text-align:left;
  }

  .vote-ring{
    width:min(300px,82vw);
  }

  .vote-ring::before{
    inset:24px;
  }

  .vote-dashboard__percent{
    font-size:clamp(2rem,8.6vw,2.45rem);
  }

  .vote-hero-panel h1{
    font-size:clamp(2rem,10vw,3rem);
  }

  .vote-topbar__brand{
    align-items:flex-start;
  }

  .vote-topbar__logo{
    width:48px;
    height:48px;
  }

  .vote-questions-panel__head{
    display:grid;
  }

  .vote-questions-panel__meta{
    white-space:normal;
  }

  .site-footer__inner{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
    width:calc(100vw - 28px);
  }

  .vote-hero-visual{
    display:none;
  }

  .vote-steps{
    grid-template-columns:repeat(4,1fr);
    bottom:10px;
    width:calc(100vw - 16px);
  }

  .vote-step{
    justify-content:center;
    padding:7px 4px;
  }

  .vote-step__text{
    display:none;
  }

  .vote-modal{
    padding:8px;
  }

  .vote-modal__dialog{
    width:calc(100vw - 16px);
    max-height:calc(100svh - 16px);
  }
}

@media (max-width:520px){
  .hero-brand{
    grid-template-columns:1fr;
  }

  .hero-brand__mark{
    width:82px;
    min-height:82px;
  }

  .auth-panel__logo{
    position:static;
    width:76px;
    height:76px;
    margin-bottom:18px;
  }

  .auth-panel .auth-title,
  .auth-panel > p{
    max-width:none;
  }

  .admin-bar{
    grid-template-columns:1fr;
  }

  .admin-bar-value{
    text-align:left;
  }

  .vote-flow-sign-card,
.vote-result-card{
  grid-template-columns:1fr;
}
}

.audit-state{
  display:grid;
  gap:2px;
  min-width:240px;
}

.audit-state + .audit-state{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--border);
}

.audit-state__label{
  color:var(--muted);
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
