/* =====================================================================
   SoA Voting System — Theme
   Dark navy, glowing-blue accents, app-like, mobile & tablet first.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg-0:        #070d1c;
  --bg-1:        #0a1430;
  --bg-2:        #0e1b3e;
  --card:        #101e44;
  --card-2:      #142655;
  --border:      #1f3a78;
  --border-soft: #1a2e5e;
  --accent:      #5b9dff;
  --accent-2:    #7db4ff;
  --accent-dim:  #2f63c9;
  --glow:        rgba(91, 157, 255, 0.35);
  --text:        #dbe7ff;
  --text-dim:    #8ba2cf;
  --text-faint:  #5e74a3;
  --good:        #43d6a3;
  --bad:         #ff6b81;
  --warn:        #ffcb6b;
  --radius:      16px;
  --radius-sm:   11px;
  --shadow:      0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --maxw:        560px;
  --ff-display:  'Sora', system-ui, sans-serif;
  --ff-body:     'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -10%, #143063 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #122a5a 0%, transparent 50%),
    var(--bg-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
}

/* subtle dotted texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(91,157,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- App shell ---------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 18px 120px;
  min-height: 100dvh;
}
.app--wide { max-width: 1180px; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand__mark {
  height: 46px; display: flex; align-items: center; flex-shrink: 0;
}
.brand__mark img { height: 46px; width: auto; max-width: 132px; object-fit: contain; display: block; }
.brand__mark-fallback {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: 0 0 22px var(--glow);
  font-family: var(--ff-display); font-weight: 800; color: #04122e; font-size: 20px;
}
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand__sub  { font-size: 12px; color: var(--text-faint); }
.topbar__spacer { flex: 1; }

.ghost-link {
  color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 10px;
  transition: .18s;
}
.ghost-link:hover { color: var(--accent-2); border-color: var(--accent-dim); }

/* ---------- Cards / panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 16px; }

.step-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(91,157,255,0.10);
  border: 1px solid var(--border-soft);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
h1.title { font-family: var(--ff-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
h2.title { font-family: var(--ff-display); font-weight: 700; font-size: 19px; }
.subtitle { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ---------- Forms ---------- */
.field { margin-top: 16px; }
.field > label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 7px; letter-spacing: .2px;
}
.input, select.input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font: inherit; font-size: 16px;          /* 16px stops iOS zoom-on-focus */
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  transition: border-color .16s, box-shadow .16s;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--text-faint); }
.input:focus, select.input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(91,157,255,0.14);
}

/* ---------- Buttons ---------- */
.btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-display); font-weight: 600; font-size: 15.5px;
  padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s, filter .16s, background .16s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn--primary {
  color: #06122c;
  background: linear-gradient(160deg, var(--accent-2) 0%, var(--accent) 60%, var(--accent-dim) 100%);
  box-shadow: 0 10px 28px -10px var(--glow);
}
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost {
  color: var(--text); background: var(--bg-1); border-color: var(--border-soft);
}
.btn--ghost:hover { border-color: var(--accent-dim); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { width: auto; flex: 1; }

/* ---------- Choice (Onsite Y/N etc.) ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.choice {
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: .16s; color: var(--text);
}
.choice:hover { border-color: var(--accent-dim); background: var(--card-2); transform: translateY(-2px); }
.choice__icon { font-size: 26px; }
.choice__label { font-family: var(--ff-display); font-weight: 600; margin-top: 8px; }
.choice__hint  { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

/* ---------- Alerts ---------- */
.alert {
  margin-top: 16px; padding: 13px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; display: none;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert--bad  { background: rgba(255,107,129,0.10); border-color: rgba(255,107,129,0.4); color: #ffb3bf; }
.alert--good { background: rgba(67,214,163,0.10);  border-color: rgba(67,214,163,0.4);  color: #9bf0d3; }
.alert--warn { background: rgba(255,203,107,0.10); border-color: rgba(255,203,107,0.4); color: #ffe0a3; }

/* ---------- Confirmation detail list ---------- */
.detail-list { margin-top: 18px; border-top: 1px solid var(--border-soft); }
.detail-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 13px 2px; border-bottom: 1px solid var(--border-soft);
}
.detail-row dt { color: var(--text-dim); font-size: 13px; }
.detail-row dd { font-weight: 600; text-align: right; font-size: 14px; word-break: break-word; }
.badge-match {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--good); background: rgba(67,214,163,0.12);
  padding: 3px 8px; border-radius: 999px; margin-left: 6px;
}

/* ---------- District / Area Code cards (Image 2) ---------- */
.section-label {
  font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; color: var(--accent-2); text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.district-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.district-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 16px; text-align: center;
  transition: .18s; cursor: default; position: relative; overflow: hidden;
}
.district-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 50% 0%, rgba(91,157,255,0.16), transparent 70%);
  opacity: 0; transition: .25s;
}
.district-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: var(--shadow); }
.district-card:hover::after { opacity: 1; }
.district-card__code {
  font-family: var(--ff-display); font-weight: 800; font-size: 28px;
  color: var(--accent-2); text-shadow: 0 0 18px var(--glow); letter-spacing: 1px;
}
.district-card__name { margin-top: 6px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.district-card__meta { margin-top: 8px; font-size: 11px; color: var(--text-faint); }

.empty-state {
  text-align: center; padding: 46px 20px; color: var(--text-faint);
  border: 1px dashed var(--border-soft); border-radius: var(--radius);
}
.empty-state__icon { font-size: 34px; opacity: .7; }

/* ---------- Upload dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; cursor: pointer;
  transition: .18s; background: var(--bg-1);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--card-2); }
.dropzone__icon { font-size: 36px; }
.dropzone__title { font-family: var(--ff-display); font-weight: 600; margin-top: 10px; }
.dropzone__hint  { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-chip {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  background: var(--bg-1); border: 1px solid var(--border-soft);
  padding: 10px 12px; border-radius: 10px;
}
.file-chip .res { margin-left: auto; font-size: 12px; font-weight: 700; }
.file-chip .res.ok  { color: var(--good); }
.file-chip .res.err { color: var(--bad); }

/* ---------- Ballot / candidates ---------- */
.candidate {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 14px; cursor: pointer;
  margin-top: 10px; transition: .15s;
}
.candidate:hover { border-color: var(--accent-dim); }
.candidate.selected { border-color: var(--accent); background: var(--card-2); box-shadow: 0 0 0 3px rgba(91,157,255,.12); }
.candidate__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-dim), var(--bg-2));
  display: grid; place-items: center; font-family: var(--ff-display);
  font-weight: 700; color: var(--text); flex-shrink: 0;
}
.candidate__name { font-weight: 600; }
.candidate__party { font-size: 12px; color: var(--text-faint); }
.candidate__check {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); display: grid; place-items: center; color: transparent;
}
.candidate.selected .candidate__check { border-color: var(--accent); color: var(--accent-2); }
.position-block + .position-block { margin-top: 22px; }
.position-block h3 { font-family: var(--ff-display); font-size: 16px; }
.position-block .hint { font-size: 12px; color: var(--text-faint); }

/* ---------- Thumbmark ---------- */
.fp-stage {
  margin: 18px auto 6px; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 45%, var(--card-2), var(--bg-1));
  border: 1px solid var(--border);
}
.fp-stage svg { width: 84px; height: 84px; color: var(--accent); }
.fp-stage.scanning { animation: fpPulse 1.3s ease-in-out infinite; }
.fp-stage.done { border-color: var(--good); }
.fp-stage.done svg { color: var(--good); }
@keyframes fpPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(91,157,255,.35); }
  50%     { box-shadow: 0 0 0 16px rgba(91,157,255,0); }
}
.fp-method { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 8px; }

/* ---------- Code display ---------- */
.code-box {
  font-family: var(--ff-display); font-weight: 800; font-size: 30px;
  letter-spacing: 4px; text-align: center; color: var(--accent-2);
  background: var(--bg-1); border: 1px dashed var(--accent-dim);
  border-radius: var(--radius); padding: 20px; margin-top: 16px;
  text-shadow: 0 0 20px var(--glow);
}

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 18px; }
.stepper i {
  height: 4px; flex: 1; border-radius: 2px; background: var(--border-soft);
  transition: .3s;
}
.stepper i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Receipt ---------- */
.receipt {
  text-align: center; padding: 10px 0 4px;
}
.receipt__check {
  width: 80px; height: 80px; margin: 6px auto 14px; border-radius: 50%;
  background: rgba(67,214,163,0.12); border: 1px solid rgba(67,214,163,0.5);
  display: grid; place-items: center; color: var(--good); font-size: 40px;
  box-shadow: 0 0 30px rgba(67,214,163,.25);
}
.receipt__ref {
  font-family: var(--ff-display); font-weight: 700; font-size: 20px;
  letter-spacing: 1px; margin-top: 6px;
}

/* ---------- Loader ---------- */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #06122c;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; }
.muted { color: var(--text-faint); font-size: 12.5px; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Admin: tabs ---------- */
.tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
  background: var(--bg-1); border: 1px solid var(--border-soft);
  padding: 6px; border-radius: 14px; width: fit-content;
}
.tab {
  font-family: var(--ff-display); font-weight: 600; font-size: 14px;
  color: var(--text-dim); background: transparent; border: none; cursor: pointer;
  padding: 9px 18px; border-radius: 10px; transition: .16s;
}
.tab:hover { color: var(--text); }
.tab.on { color: #06122c; background: linear-gradient(160deg, var(--accent-2), var(--accent)); }

/* ---------- Admin: operator list ---------- */
.op-table { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.op-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
.op-row__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700;
  color: #06122c; background: linear-gradient(160deg, var(--accent-2), var(--accent-dim));
}
.op-row__info { flex: 1; min-width: 0; }
.op-row__name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-row__sub { font-size: 12.5px; color: var(--text-faint); }
.op-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.op-pill.admin    { color: var(--warn); background: rgba(255,203,107,.12); }
.op-pill.operator { color: var(--accent-2); background: rgba(91,157,255,.12); }
.op-row__actions { display: flex; gap: 8px; }
.icon-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-dim); background: var(--card-2); border: 1px solid var(--border-soft);
  padding: 8px 13px; border-radius: 9px; transition: .15s;
}
.icon-btn:hover { color: var(--accent-2); border-color: var(--accent-dim); }
.icon-btn.danger:hover { color: var(--bad); border-color: rgba(255,107,129,.5); }

/* ---------- Admin: modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 9, 22, 0.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s ease both;
}
.modal__card { width: 100%; max-width: 440px; max-height: 92dvh; overflow-y: auto; }

/* ---------- Admin: ballot ---------- */
.ballot-pos {
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 16px 16px 18px; margin-top: 14px;
}
.ballot-pos__head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ballot-pos__title { font-family: var(--ff-display); font-weight: 700; font-size: 17px; }
.ballot-pos__meta { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.ballot-pos__actions { display: flex; gap: 7px; margin-left: auto; flex-wrap: wrap; }
.cand-grid {
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.cand-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 10px 11px;
}
.cand-card__photo {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.cand-card__photo--ph {
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700;
  color: #06122c; background: linear-gradient(160deg, var(--accent-2), var(--accent-dim));
}
.cand-card__info { flex: 1; min-width: 0; }
.cand-card__name { font-weight: 600; font-size: 14px; }
.cand-card__party { font-size: 12px; color: var(--text-faint); }
.cand-card__votes { font-size: 11px; color: var(--good); margin-top: 2px; }
.cand-card__actions { display: flex; flex-direction: column; gap: 5px; }
.cand-card__actions .icon-btn { padding: 5px 9px; font-size: 12px; }

/* candidate photo picker in modal */
.cand-photo-edit { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.cand-photo-edit__btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cand-photo-preview {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 28px; color: var(--text-faint);
  background: var(--bg-1) center/cover no-repeat; border: 2px dashed var(--border);
  transition: .15s;
}
.cand-photo-preview:hover { border-color: var(--accent-dim); }
.cand-photo-preview.has { border-style: solid; border-color: var(--accent-dim); }

/* ---------- Admin: results & turnout ---------- */
.turnout-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.stat-card__num { font-family: var(--ff-display); font-weight: 800; font-size: 26px; color: var(--accent-2); }
.stat-card__lbl { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.res-block {
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 16px; margin-top: 14px;
}
.res-block__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.res-block__title { font-family: var(--ff-display); font-weight: 700; font-size: 16px; }
.res-block__meta { font-size: 12px; color: var(--text-faint); }
.res-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.res-row__photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.res-row__photo--ph { display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; color: #06122c; background: linear-gradient(160deg, var(--accent-2), var(--accent-dim)); }
.res-row__body { flex: 1; min-width: 0; }
.res-row__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.res-row__name { font-weight: 600; }
.res-row__count { color: var(--text-dim); white-space: nowrap; }
.res-bar { height: 9px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.res-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); transition: width .5s ease; }
.res-row.lead .res-bar i { background: linear-gradient(90deg, var(--good), #6ff0c4); }
.res-row.lead .res-row__name { color: var(--good); }
.lead-pill { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--good); background: rgba(67,214,163,.13); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

/* ---------- Admin: cast ballots ---------- */
.bl-card { background: var(--bg-1); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px; margin-top: 10px; }
.bl-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bl-card__name { font-weight: 700; }
.bl-card__sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.bl-card__ref { font-family: var(--ff-display); font-weight: 600; font-size: 12px; color: var(--accent-2); background: rgba(91,157,255,.1); padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.bl-card__picks { margin-top: 11px; display: flex; flex-direction: column; gap: 6px; }
.bl-pick { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 10px; background: var(--card); border-radius: 8px; }
.bl-pick__pos { color: var(--text-faint); }
.bl-pick__cand { font-weight: 600; text-align: right; }
.bl-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.bl-tag { font-size: 11px; font-weight: 600; text-transform: capitalize; color: var(--text-dim); background: var(--card-2); border: 1px solid var(--border-soft); padding: 3px 9px; border-radius: 999px; }
.bl-tag.onsite { color: var(--warn); }
.bl-tag.online { color: var(--accent-2); }
.bl-when { font-size: 11.5px; color: var(--text-faint); margin-left: auto; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .app { padding-top: 36px; }
  .district-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (max-width: 380px) {
  .choice-grid { grid-template-columns: 1fr; }
  h1.title { font-size: 21px; }
}

/* ---------- No-vote / abstain card (voting module) ---------- */
.candidate--abstain { border-style: dashed; }
.candidate--abstain.selected { border-color: var(--warn); background: rgba(255,203,107,.10); box-shadow: 0 0 0 3px rgba(255,203,107,.12); }
.candidate__avatar--x { background: linear-gradient(160deg, #5b6b8f, #2a3a63); color: var(--text); font-size: 20px; }
.candidate--abstain.selected .candidate__check { border-color: var(--warn); color: var(--warn); }

/* ---------- Cast-ballot print link (results tab) ---------- */
.bl-print {
  font-size: 11.5px; font-weight: 700; text-decoration: none;
  color: var(--accent-2); background: rgba(91,157,255,.1);
  border: 1px solid var(--border-soft); padding: 4px 10px; border-radius: 999px;
}
.bl-print:hover { border-color: var(--accent-dim); }
