/* wevs-public.css — WEVS organiser-facing layout. Loads AFTER theme.css + premium.css (Crystal's
   design system, copied). Components come from premium.css; this file adds the WEVS accent and
   LAYOUT ONLY. Colour only via the shared variables. */
:root{ --accent:#19b6c9; --accent2:#5ef0d0; --accent-rgb:25,182,201; }
body.bg-photo::before{ background:linear-gradient(180deg,rgba(4,8,14,.62) 0%,rgba(4,8,14,.45) 40%,rgba(4,8,14,.88) 100%),
  url('/wevs-ui/wallpapers/nordic_fjord.jpg') center/cover no-repeat; }
a.btn{ text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.wrap{ position:relative; z-index:1; max-width:1120px; margin:0 auto; padding:0 20px 40px; }
.card{ border-radius:18px; padding:20px; min-width:0; }
.card h3{ text-transform:none; letter-spacing:-.01em; font-size:16.5px; color:var(--text); margin:0 0 6px; }
.card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
.brand img{ height:38px; width:auto; }
/* The WEVS mark: the dark-background version by default, the light one in light mode. */
.brand .mk-l{ display:none; } body.light-mode .brand .mk-d{ display:none; } body.light-mode .brand .mk-l{ display:inline-block; }
.brand b{ font-size:19px; letter-spacing:.08em; font-weight:800; }
.mode{ background:none; border:1px solid var(--glass-border-hi); color:var(--text); border-radius:10px; width:40px; height:40px; cursor:pointer; font-size:16px; }

/* auth pages */
.auth{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px 18px; position:relative; z-index:1; }
.auth .box{ width:100%; max-width:440px; border-radius:22px; padding:28px; }
.auth h1{ font-size:26px; margin:14px 0 4px; }
.auth .lead{ color:var(--muted); margin:0 0 20px; font-size:14.5px; }
.auth .btn{ width:100%; min-height:48px; font-size:15px; }
.auth .alt{ text-align:center; margin-top:16px; font-size:13.5px; color:var(--muted); }
.auth .alt a{ color:var(--accent2); }
.fld input,.fld select,.fld textarea{ min-height:44px; }
.err{ color:var(--danger); font-size:13px; min-height:18px; margin:4px 0 8px; }
.ok{ color:var(--success); font-size:13px; }
.chips{ display:flex; gap:8px; justify-content:center; margin:6px 0 18px; flex-wrap:wrap; }
.chip{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); }
.chip i{ font-style:normal; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:12px;
  border:1px solid var(--glass-border-hi); background:var(--card-2); color:var(--text); }
.chip.on i{ background:rgba(var(--accent-rgb),.9); border-color:transparent; color:#fff; }
.chip.on{ color:var(--text); }
.addr{ display:flex; align-items:stretch; }
.addr input{ border-top-right-radius:0; border-bottom-right-radius:0; }
.addr span{ display:flex; align-items:center; padding:0 12px; border:1px solid var(--glass-border-hi); border-left:0; border-radius:0 10px 10px 0; color:var(--muted); background:var(--card-2); font-size:14px; white-space:nowrap; }
.foot-by{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12.5px; margin-top:22px; text-decoration:none; }
.foot-by img{ width:28px; height:28px; border-radius:50%; background:#f3f4f6; padding:2px; }

/* console */
.app{ position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; }
.top{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 18px; border-bottom:1px solid var(--glass-border); position:sticky; top:0; z-index:5; }
.top .who{ display:flex; align-items:center; gap:10px; min-width:0; }
.org-pick{ max-width:220px; min-height:40px; }
.body{ display:flex; flex:1; min-height:0; }
.side{ width:220px; flex-shrink:0; padding:16px 12px; border-right:1px solid var(--glass-border); }
.side a{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:10px; color:var(--text); text-decoration:none; font-weight:600; font-size:14.5px; min-height:44px; }
.side a.on{ background:rgba(var(--accent-rgb),.16); border:1px solid rgba(var(--accent-rgb),.4); }
.main{ flex:1; min-width:0; padding:22px 22px 90px; }
.main h1{ font-size:24px; margin:0 0 4px; }
.main .sub{ color:var(--muted); margin:0 0 18px; }
.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.vote{ display:flex; justify-content:space-between; gap:12px; align-items:center; }
.vote .meta{ color:var(--muted); font-size:13px; margin-top:3px; }
.st-badge{ font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:20px; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.st-draft{ background:rgba(148,163,184,.18); border:1px solid rgba(148,163,184,.4); }
.st-scheduled{ background:rgba(251,191,36,.16); border:1px solid rgba(251,191,36,.45); }
.st-open{ background:rgba(52,211,153,.16); border:1px solid rgba(52,211,153,.45); }
.st-closed{ background:rgba(var(--accent-rgb),.16); border:1px solid rgba(var(--accent-rgb),.45); }
.st-cancelled{ background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4); }
.st-archived{ background:rgba(148,163,184,.10); border:1px dashed rgba(148,163,184,.5); margin-left:6px; }   /* housekeeping (7937) */
/* What the vote decides (7714): three tappable cards, layout only; colours from the shared vars. */
fieldset.kinds{ border:0; padding:0; margin:0 0 14px; min-width:0; display:grid; gap:8px; }
fieldset.kinds legend{ padding:0; margin-bottom:6px; font-size:12px; font-weight:600; color:var(--muted); }
.kind{ display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border-radius:14px; cursor:pointer; min-height:44px; border:1px solid var(--glass-border); }
.kind input[type=radio]{ width:18px; height:18px; min-height:0; flex:0 0 auto; margin:2px 0 0; }
.kind > span{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.kind .muted{ font-size:13px; }
.kind:has(input:checked){ border-color:rgba(var(--accent-rgb),.7); box-shadow:0 0 0 2px rgba(var(--accent-rgb),.18); }
.path{ cursor:pointer; text-align:left; border-radius:18px; padding:20px; color:var(--text); font:inherit; min-height:120px; }
.path:hover{ border-color:var(--accent); transform:translateY(-2px); }
.path .tagx{ font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--accent2); }
.wizard-steps{ display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:16px; }
.wizard-steps .chip{ flex-shrink:0; }
.bracket{ border-radius:14px; padding:14px 16px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.bracket b{ font-size:20px; white-space:nowrap; flex-shrink:0; }   /* an amount never breaks across lines ("R 2 | 500" on a phone) */
.q{ border-radius:14px; padding:14px; margin-bottom:10px; }
/* Questions and choices editor (7717): layout only. */
.qe-head{ display:flex; gap:10px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
.qe-title{ min-width:0; flex:1 1 200px; }
.qe-acts{ display:flex; gap:6px; flex-wrap:wrap; }
.qe-acts .btn{ min-width:44px; min-height:44px; }
.qe-choices{ margin-top:10px; display:grid; gap:6px; }
.qe-ch{ display:flex; align-items:center; gap:10px; padding:6px 0; border-top:1px solid var(--glass-border); }
.qe-thumb{ width:40px; height:40px; border-radius:10px; object-fit:cover; flex:0 0 40px; display:inline-flex; align-items:center; justify-content:center; background:var(--glass-bg); }
.qe-none{ font-size:18px; opacity:.6; }
.qe-cmain{ min-width:0; flex:1; overflow-wrap:anywhere; }
.qe-add{ display:flex; gap:8px; margin-top:10px; }
.qe-add input{ flex:1; min-width:0; }
.qe-form{ margin:10px 0; padding:12px; border:1px solid var(--glass-border); border-radius:12px; }
.btn.qe-danger, body.light-mode .btn.btn-ghost.qe-danger{ color:var(--danger); margin-left:auto; }
.choice{ display:flex; gap:8px; margin:6px 0; }
.choice input{ flex:1; min-width:0; }
.navbtns{ display:flex; justify-content:space-between; gap:10px; margin-top:18px; }
.navbtns .btn{ min-height:46px; min-width:120px; }
.empty-state{ text-align:center; padding:40px 20px; border-radius:18px; }
.bottomnav{ display:none; }
table.list{ width:100%; }
.tablewrap{ overflow-x:auto; }

@media (max-width:820px){
  .side{ display:none; }
  .bottomnav{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:6; justify-content:space-around; padding:6px 4px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid var(--glass-border); }
  /* Seven tabs share the width equally (60px minimums needed 420px and clipped the last tab at 390px). */
  .bottomnav a{ display:flex; flex-direction:column; align-items:center; gap:2px; font-size:10.5px; color:var(--muted); text-decoration:none; flex:1 1 0; min-width:0; min-height:44px; justify-content:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 2px; }
  .bottomnav a.on{ color:var(--text); }
  .bottomnav a span{ font-size:19px; }
  .grid2,.grid3{ grid-template-columns:minmax(0,1fr); }
  .main{ padding:16px 14px 96px; }
  .org-pick{ max-width:150px; }
  .vote{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:820px){
  .top{ padding:10px 12px; }
  .top .brand b{ display:none; }
  .top .who{ gap:8px; flex:1; min-width:0; }
  .org-pick{ max-width:none; flex:1; min-width:0; }
  .top .row{ gap:6px; flex-wrap:nowrap; }
  .top .btn-sm{ padding:6px 10px; }
}

/* ── VOTE MANAGEMENT (PRJ-0033 7765, 2026-11-16): one vote, in tabs. Layout + effects only; every colour is a shared
   variable, so light mode follows by itself. ─────────────────────────────────────────────────────────────────────── */
.vm{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.vm-hero{ position:relative; overflow:hidden; display:flex; gap:20px; align-items:center; justify-content:space-between;
  padding:22px 24px; border-radius:22px; }
.vm-hero::before{ content:""; position:absolute; inset:-40% -20% auto auto; width:60%; height:180%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(var(--accent-rgb),.16), transparent 70%); }
.vm-hero-main{ position:relative; min-width:0; flex:1 1 auto; }
.vm-back{ font-size:12.5px; color:var(--muted); text-decoration:none; letter-spacing:.02em; }
.vm-back:hover{ color:var(--accent); }
.vm-title{ margin:6px 0 8px; font-size:clamp(22px, 3.2vw, 32px); line-height:1.12; letter-spacing:-.02em; overflow-wrap:anywhere; }
.vm-meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13.5px; }
.vm-tz{ opacity:.7; font-size:12px; }
.vm-pulse{ display:inline-block; width:7px; height:7px; border-radius:50%; background:currentColor; margin-right:6px; vertical-align:1px;
  box-shadow:0 0 0 0 currentColor; animation:vmPulse 1.6s ease-out infinite; }
@keyframes vmPulse{ 0%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),.65); } 100%{ box-shadow:0 0 0 9px rgba(var(--accent-rgb),0); } }
.vm-line{ position:relative; height:4px; margin-top:16px; border-radius:4px; background:var(--glass-border); overflow:visible; }
.vm-line i{ position:absolute; inset:0 auto 0 0; border-radius:4px; background:linear-gradient(90deg, rgba(var(--accent-rgb),.35), var(--accent));
  box-shadow:0 0 12px rgba(var(--accent-rgb),.55); transition:width .6s cubic-bezier(.2,.8,.2,1); }
.vm-ring{ --p:0; position:relative; flex:0 0 auto; width:118px; height:118px; border-radius:50%;
  background:conic-gradient(var(--accent) calc(var(--p) * 1%), var(--glass-border) 0); display:grid; place-items:center;
  box-shadow:0 0 28px rgba(var(--accent-rgb),.18); }
.vm-ring > div{ width:94px; height:94px; border-radius:50%; background:var(--glass-bg2, rgba(10,24,56,.9)); display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; backdrop-filter:blur(6px); }
.vm-ring b{ font-size:22px; color:var(--text); letter-spacing:-.02em; }
.vm-ring span{ font-size:10.5px; color:var(--muted); line-height:1.2; padding:0 8px; }
.vm-tabs{ position:sticky; top:var(--top-h,0px); z-index:4; /* docks under the sticky top bar, never over it (7855) */ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; padding:5px;
  border-radius:16px; background:var(--glass-bg); border:1px solid var(--glass-border); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.vm-tabs::-webkit-scrollbar{ display:none; }
.vm-tabs a{ flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:9px 14px; border-radius:11px; font-size:13.5px; font-weight:650;
  color:var(--muted); text-decoration:none; white-space:nowrap; transition:background .2s, color .2s, box-shadow .2s; min-height:40px; }
.vm-tabs a span{ opacity:.8; }
.vm-tabs a em{ font-style:normal; font-size:11px; font-weight:800; padding:1px 7px; border-radius:10px; background:var(--glass-border); color:var(--text); }
.vm-tabs a:hover{ color:var(--text); }
.vm-tabs a.on{ color:var(--text); background:rgba(var(--accent-rgb),.16); box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45), 0 0 18px rgba(var(--accent-rgb),.15); }
.vm-body{ display:flex; flex-direction:column; gap:12px; min-width:0; animation:vmIn .28s ease-out; }
@keyframes vmIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.vm-card{ margin:0; }
.vm-card h3{ margin:0 0 8px; }
.vm-steps{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.vm-steps span{ font-size:12.5px; padding:5px 10px; border-radius:20px; border:1px solid var(--glass-border); color:var(--muted); }
.vm-steps span.ok{ color:var(--text); border-color:rgba(var(--accent-rgb),.5); background:rgba(var(--accent-rgb),.10); }
.vm-facts{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; }
.vm-facts > div{ padding:10px 12px; border-radius:12px; border:1px solid var(--glass-border); min-width:0; }
.vm-facts span{ display:block; font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.vm-facts b{ display:block; margin-top:3px; font-size:16px; color:var(--text); overflow-wrap:anywhere; }
.vm-toolbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.vm-toolbar input{ flex:1 1 260px; min-width:0; }
.vm-chips{ display:flex; gap:6px; flex-wrap:wrap; }
.vm-chips button{ font:inherit; font-size:12.5px; font-weight:650; padding:7px 12px; border-radius:20px; cursor:pointer; min-height:36px;
  border:1px solid var(--glass-border); background:transparent; color:var(--muted); }
.vm-chips button em{ font-style:normal; opacity:.75; margin-left:3px; }
.vm-chips button.on{ color:var(--text); border-color:rgba(var(--accent-rgb),.55); background:rgba(var(--accent-rgb),.12); }
.vm-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.vm-table{ border-radius:16px; overflow:hidden; }
.vm-tr{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1fr) 120px 128px; gap:12px; align-items:center;
  padding:11px 16px; border-bottom:1px solid var(--glass-border); font-size:13.5px; }
.vm-tr:last-child{ border-bottom:0; }
.vm-th{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:750; }
.vm-who b{ color:var(--text); overflow-wrap:anywhere; }
.vm-contact{ color:var(--muted); overflow-wrap:anywhere; }
.vm-groups i{ display:inline-block; font-style:normal; font-size:11.5px; padding:2px 8px; margin:0 4px 4px 0; border-radius:10px; border:1px solid var(--glass-border); color:var(--text); }
.vm-st{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:20px; border:1px solid var(--glass-border); color:var(--muted); }
.vm-st::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.vm-st-voted{ color:var(--success); border-color:rgba(34,197,94,.4); }
.vm-st-invited{ color:var(--accent); border-color:rgba(var(--accent-rgb),.4); }
.vm-st-bounced{ color:var(--danger); border-color:rgba(239,68,68,.4); }
.vm-row-acts{ display:flex; gap:4px; justify-content:flex-end; }
.vm-row-acts .btn{ min-width:36px; min-height:36px; padding:6px 10px; }
.btn.vm-danger, .btn.btn-ghost.vm-danger{ color:var(--danger) !important; border-color:rgba(239,68,68,.45) !important; }
.vm-pager{ display:flex; gap:10px; align-items:center; justify-content:center; }
.vm-count{ text-align:right; margin:0; font-size:12.5px; }
.vm-checks{ display:flex; gap:8px; flex-wrap:wrap; }
.vm-check{ display:inline-flex; gap:8px; align-items:center; cursor:pointer; padding:7px 12px; border-radius:12px; border:1px solid var(--glass-border); color:var(--text); }
.vm-check input{ width:auto; min-height:auto; margin:0; }
.vm-lists{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:8px; margin-bottom:8px; }
.vm-list{ font:inherit; text-align:left; cursor:pointer; padding:12px 14px; border-radius:14px; border:1px solid var(--glass-border); background:transparent; color:var(--text); }
.vm-list:hover{ border-color:var(--accent); }
.vm-list span{ display:block; font-size:12px; color:var(--muted); }
.vm-choices{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:8px; }
.vm-choice{ display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:12px; border:1px solid var(--glass-border); color:var(--text); min-width:0; }
.vm-choice img{ width:36px; height:36px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.vm-choice em{ font-style:normal; font-size:11.5px; color:var(--muted); margin-left:auto; }
.vm-bar{ display:grid; grid-template-columns:minmax(0,1fr) minmax(80px,2fr) 54px; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid var(--glass-border); }
.vm-bar:last-of-type{ border-bottom:0; }
.vm-bar span{ color:var(--text); overflow-wrap:anywhere; }
.vm-bar span .pill{ font-style:normal; margin-left:4px; }
.vm-bar > i{ display:block; height:8px; border-radius:8px; background:var(--glass-border); overflow:hidden; }
.vm-bar > i b{ display:block; height:100%; border-radius:8px; background:linear-gradient(90deg, rgba(var(--accent-rgb),.45), var(--accent)); }
.vm-bar.win > i b{ box-shadow:0 0 12px rgba(var(--accent-rgb),.6); }
.vm-bar em{ font-style:normal; font-weight:800; text-align:right; color:var(--text); font-variant-numeric:tabular-nums; }
.vm-feed{ border-radius:16px; padding:6px 16px; }
.vm-ev{ display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--glass-border); }
.vm-ev:last-child{ border-bottom:0; }
.vm-ev > i{ flex:0 0 auto; width:9px; height:9px; margin-top:5px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px rgba(var(--accent-rgb),.6); }
.vm-ev b{ color:var(--text); text-transform:capitalize; }
.vm-ev-t{ font-size:12px; margin-top:2px; }
.vm-nom{ grid-template-columns:minmax(0,1fr) auto; padding:10px 0; }
.vm-st-ok{ color:var(--success); border-color:rgba(34,197,94,.4); }      /* message states (7951): same tokens as voted / invited / bounced */
.vm-st-sent{ color:var(--accent); border-color:rgba(var(--accent-rgb),.4); }
.vm-st-bad{ color:var(--danger); border-color:rgba(239,68,68,.4); }
.vm-msg{ grid-template-columns:150px minmax(0,1.3fr) minmax(0,.9fr) 116px minmax(0,1.4fr); }
.vm-msg-why{ color:var(--muted); font-size:12.5px; overflow-wrap:anywhere; }
.vm-msg-addr{ display:block; font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vm-link{ font:inherit; padding:0; border:0; background:none; cursor:pointer; text-align:left; color:var(--text); }
.vm-link:hover b, .vm-link:focus-visible b{ color:var(--accent); text-decoration:underline; }
.vm-ev-acts{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.vm-mlog-bar{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.vm-mlog-bar input{ flex:1 1 220px; min-width:0; }
/* The activity trail (7946): who, why, and before -> after. Layout only; colours from the shared vars. */
.vm-ev .act-who{ text-transform:none; }
.vm-ev a{ color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.act-by{ font-size:13px; margin-top:3px; overflow-wrap:anywhere; }
.act-by .pill{ font-size:11px; padding:1px 7px; }
.act-why{ font-size:12.5px; margin-top:2px; overflow-wrap:anywhere; }
.act-diff{ margin-top:6px; padding:6px 10px; border-left:2px solid rgba(var(--accent-rgb),.45); font-size:12.5px; display:grid; gap:3px; }
.act-diff div{ overflow-wrap:anywhere; color:var(--muted); }
.act-diff s{ color:var(--muted); }
.act-diff summary{ cursor:pointer; font-size:12px; min-height:24px; }
.act-diff details > div{ margin-top:3px; }
.act-diff b{ color:var(--text); text-transform:none; font-weight:650; }
.oa-filters{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:4px 12px; align-items:end; }
.oa-filters .fld{ margin-bottom:6px; min-width:0; }
.oa-filters select, .oa-filters input{ width:100%; min-width:0; }
.oa-acts{ grid-column:1/-1; display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:6px; }
.vm-mlog-bar select{ flex:0 0 auto; width:auto; }
/* 7941 / 7943 / 7944 / 7945: the confirm dialog, announcement preview, nomination cards, choice order, papers, the results
   stamp and tie record. Layout only; colours from the shared vars. */
.vm-dlg .modal{ max-width:520px; }
.vm-dlg .mbody .fld textarea{ width:100%; }
.vm-dlg-acts{ display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.vm-dlg-acts .btn{ min-height:44px; }
.vm-notify{ display:flex; align-items:flex-start; width:100%; box-sizing:border-box; line-height:1.35; }
.vm-notify input{ margin-top:3px; }
.vm-notify .muted{ font-size:12.5px; }
.an-pv{ border-radius:14px; padding:12px 14px; }
.an-pv-body{ white-space:pre-wrap; overflow-wrap:anywhere; margin-top:8px; font-size:13.5px; color:var(--text); }
.nom-card{ border-top:1px solid var(--glass-border); }
.nom-card:first-of-type{ border-top:0; }
.nom-card > summary{ list-style:none; cursor:pointer; padding:12px 0; min-height:44px; display:flex; align-items:center; gap:10px; }
.nom-card > summary::-webkit-details-marker{ display:none; }
.nom-card > summary::after{ content:"▾"; margin-left:auto; color:var(--muted); transition:transform .2s; }
.nom-card[open] > summary::after{ transform:rotate(180deg); }
.nom-sum{ min-width:0; overflow-wrap:anywhere; }
.nom-meta{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:4px; font-size:12.5px; }
.nom-body{ display:flex; gap:14px; align-items:flex-start; padding:0 0 14px; }
.nom-photo{ width:88px; height:88px; border-radius:14px; object-fit:cover; flex:0 0 auto; border:1px solid var(--glass-border); }
.nom-row{ padding:5px 0; font-size:13.5px; overflow-wrap:anywhere; }
.nom-row > .muted:first-child{ display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; }
.nom-secs{ margin:2px 0 0; padding:0; list-style:none; }
.nom-secs li{ padding:2px 0; }
.nom-stmt{ white-space:pre-wrap; color:var(--text); }
.nom-qsec{ margin:4px 0 12px; }
.nom-qrow{ display:grid; grid-template-columns:minmax(0,1fr) 96px; gap:10px; align-items:center; padding:4px 0; }
.nom-qrow label{ overflow-wrap:anywhere; color:var(--text); }
.qe-order{ font-size:12px; margin:6px 0 2px; }
.qe-ch:has(.qe-move){ flex-wrap:wrap; }
.qe-ch:has(.qe-move) .qe-cmain{ flex:1 1 140px; min-width:0; overflow-wrap:anywhere; }
.qe-move{ display:inline-flex; gap:4px; margin-left:auto; }
.qe-move .btn{ min-width:44px; min-height:44px; padding:6px 0; }
.qe-move + .btn{ margin-left:0; }
.pp-list{ display:flex; flex-direction:column; }
.pp-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid var(--glass-border); }
.pp-row:last-child{ border-bottom:0; }
.pp-row a{ color:var(--text); font-weight:650; overflow-wrap:anywhere; min-width:0; }
.pp-row .muted{ font-size:12.5px; }
.pp-row .btn{ margin-left:auto; }
.rs-stamp{ display:flex; gap:12px; align-items:center; }
.rs-badge{ flex:0 0 auto; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:8px 12px; border-radius:10px; border:2px solid currentColor; }
.rs-prov{ color:var(--warn, #e5a93c); }
.rs-final{ color:var(--success); }
.rs-signoff{ margin-top:10px; padding:8px 12px; border-left:2px solid rgba(var(--accent-rgb),.45); font-size:13.5px; overflow-wrap:anywhere; }
.rs-tie{ margin-top:10px; padding-top:10px; border-top:1px dashed var(--glass-border); }
.rs-tie details summary{ cursor:pointer; min-height:32px; }
.rs-tie-rec{ padding:8px 12px; border-left:2px solid var(--success); font-size:13.5px; overflow-wrap:anywhere; margin-bottom:6px; }
@media (max-width:760px){
  .vm-hero{ padding:18px; gap:14px; }
  .vm-ring{ width:92px; height:92px; } .vm-ring > div{ width:72px; height:72px; } .vm-ring b{ font-size:18px; } .vm-ring span{ font-size:9.5px; }
  .vm-facts{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .vm-th{ display:none; }
  .vm-tr{ grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"who st" "contact contact" "groups acts"; gap:6px 10px; padding:12px 14px; }
  .vm-tr > .vm-who{ grid-area:who; } .vm-tr > .vm-contact{ grid-area:contact; } .vm-tr > .vm-groups{ grid-area:groups; }
  .vm-tr > span:nth-child(4){ grid-area:st; } .vm-tr > .vm-row-acts{ grid-area:acts; }
  .vm-nom{ grid-template-areas:none; grid-template-columns:minmax(0,1fr); }
  .vm-msg{ grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"who st" "what what" "when when" "why why"; }
  .vm-msg > .vm-msg-when{ grid-area:when; } .vm-msg > .vm-who{ grid-area:who; } .vm-msg > .vm-msg-what{ grid-area:what; }
  .vm-msg > span:nth-child(4){ grid-area:st; } .vm-msg > .vm-msg-why{ grid-area:why; }
  .vm-bar{ grid-template-columns:minmax(0,1fr) 46px; } .vm-bar > i{ grid-column:1 / -1; grid-row:2; }
}
@media (prefers-reduced-motion:reduce){ .vm-pulse, .vm-body{ animation:none; } .vm-line i{ transition:none; } }

/* DATE AND TIME FIELDS FIT THEIR COLUMN ON IPHONE (PRJ-0033 task 7832, owner 2026-11-17: "its those that end up extending
   beyond the widths of the page"). iOS Safari gives date/time inputs a built-in minimum width and ignores width:100% until
   their native appearance is reset, so all 13 set-up date fields (interview, step by step, duplicate, wizard, vote details,
   reminders, nominations) ran past the card on a phone (rendered: 39-389 in a card ending at 363). With the reset they fill
   the column like every other field (39-363), the same 42px height, the value left-aligned; tapping still opens the picker. */
.fld{ min-width:0; }
.fld input[type=date],.fld input[type=datetime-local],.fld input[type=time]{
  display:flex; align-items:center; width:100%; max-width:100%; min-width:0; box-sizing:border-box;
  -webkit-appearance:none; appearance:none; }
.fld input[type=date]::-webkit-date-and-time-value,
.fld input[type=datetime-local]::-webkit-date-and-time-value,
.fld input[type=time]::-webkit-date-and-time-value{ text-align:left; margin:0; }

/* VOTERS BATCH (PRJ-0033 7935-7947): the voter grid, the groups editor, ticked-voter actions, saved lists. Layout only,
   on the shared tokens (--glass-border, --muted, --text, --danger, --accent-rgb), so light and dark both follow. */
.vg-scroll{ overflow-x:auto; margin:0 -4px; }
.vg-t{ width:100%; border-collapse:collapse; font-size:13.5px; }
.vg-t th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:750; padding:6px 4px; border-bottom:1px solid var(--glass-border); white-space:nowrap; }
.vg-t td{ padding:4px; vertical-align:top; border-bottom:1px solid var(--glass-border); }
.vg-t tr:last-child td{ border-bottom:0; }
.vg-t input{ width:100%; min-width:120px; min-height:40px; box-sizing:border-box; margin:0; }
.vg-t input[data-c=email]{ min-width:210px; } .vg-t input[data-c=member]{ min-width:110px; }
.vg-n{ width:26px; color:var(--muted); font-size:12px; text-align:right; padding-top:14px !important; }
.vg-x{ width:40px; } .vg-x .btn{ min-width:36px; min-height:36px; padding:6px 10px; opacity:.55; } .vg-x .btn:hover{ opacity:1; }
.vg-t tr.vg-blank .vg-x .btn{ visibility:hidden; }
.vg-in.vg-bad{ border-color:var(--danger) !important; box-shadow:inset 0 0 0 1px var(--danger); }
.vg-why{ display:block; color:var(--danger); font-size:11.5px; line-height:1.3; margin-top:3px; }
.vg-why:empty{ display:none; }
.vg-g{ min-width:170px; }
.vg-gs{ display:flex; gap:5px; flex-wrap:wrap; padding-top:3px; }
.vg-gchip{ font:inherit; font-size:12px; font-weight:650; padding:6px 10px; min-height:32px; border-radius:16px; cursor:pointer;
  border:1px solid var(--glass-border); background:transparent; color:var(--muted); }
.vg-gchip.on{ color:var(--text); border-color:rgba(var(--accent-rgb),.6); background:rgba(var(--accent-rgb),.16); }
.vg-foot{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.vg-sum{ flex:1 1 auto; font-size:13px; } .vg-sum b{ color:var(--text); } .vg-badtxt{ color:var(--danger); font-weight:700; }
.vg-hint{ font-size:12.5px; margin:8px 0 0; }
.vg-res{ margin-top:6px; font-size:13px; }
.vg-more{ display:none; }
.ge-list{ display:flex; flex-direction:column; }
.ge-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:start; padding:10px 0; border-bottom:1px solid var(--glass-border); }
.ge-main b{ color:var(--text); overflow-wrap:anywhere; } .ge-desc{ font-size:12.5px; margin-top:2px; }
.ge-counts{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:6px; } .ge-counts .pill{ font-size:11.5px; }
.ge-csv{ font-size:12px; margin-left:4px; }
.ge-msg{ font-size:12.5px; margin-top:6px; }
.ge-acts{ display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; } .ge-acts .btn{ min-width:36px; min-height:36px; padding:6px 10px; }
.ge-form{ grid-column:1 / -1; padding:4px 0 2px; }
.ge-add{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; } .ge-add input{ flex:1 1 180px; min-width:0; }
.ge-assign{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:12px; color:var(--text); font-size:13.5px; } .ge-assign select{ width:auto; flex:0 1 auto; min-width:0; }
.vm-gchips{ align-items:center; } .vm-gchips > .muted{ font-size:12px; margin-right:2px; }
.vm-bulk{ position:sticky; top:calc(var(--top-h,0px) + 58px); z-index:3; display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:10px 12px; border-radius:14px; color:var(--text); }
.vm-bulk select{ width:auto; flex:0 1 auto; min-width:0; } .vm-bulk input{ flex:1 1 200px; min-width:0; }
.vm-tr.vm-selrow{ grid-template-columns:28px minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1fr) 120px 128px; }
.vm-cb input{ width:18px; height:18px; min-height:auto; margin:0; cursor:pointer; }
.vm-tr.vm-on{ background:rgba(var(--accent-rgb),.07); }
.vm-mem{ display:block; font-size:11.5px; color:var(--muted); margin-top:2px; overflow-wrap:anywhere; }
.vm-replace ul{ margin:8px 0 10px; padding-left:20px; color:var(--text); } .vm-replace li{ margin:3px 0; }
.ll-ask{ padding:10px 12px; border-radius:12px; border:1px solid rgba(var(--accent-rgb),.45); }
.sl-tr{ grid-template-columns:minmax(0,1.6fr) 110px 170px 110px; }
@media (max-width:760px){
  .vm-tr.vm-selrow{ grid-template-columns:28px minmax(0,1fr) auto; grid-template-areas:"cb who st" "cb contact contact" "cb groups acts"; }
  .vm-tr.vm-selrow > .vm-cb{ grid-area:cb; align-self:start; padding-top:2px; } .vm-tr.vm-selrow > .vm-stc{ grid-area:st; }
  .vm-tr.vm-selrow > span:nth-child(4){ grid-area:groups; }
  .sl-tr{ grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"who acts" "n acts" "d acts"; }
  .sl-tr > .vm-who{ grid-area:who; } .sl-tr > .sl-n{ grid-area:n; } .sl-tr > .sl-d{ grid-area:d; font-size:12.5px; } .vm-tr.sl-tr > .vm-row-acts{ grid-area:acts; align-self:center; }   /* beats .vm-tr > span:nth-child(4) (the roll's status cell) */
  .vm-bulk{ top:calc(var(--top-h,0px) + 52px); }
}
@media (max-width:640px){
  .vg-scroll{ overflow:visible; margin:0; }
  .vg-t, .vg-t tbody{ display:block; } .vg-t thead{ display:none; }
  .vg-t tr{ display:block; position:relative; padding:10px 12px 6px; margin-bottom:10px; border:1px solid var(--glass-border); border-radius:14px; }
  .vg-t td{ display:block; border:0; padding:4px 0; }
  .vg-t td[data-l]::before{ content:attr(data-l); display:block; font-size:11.5px; color:var(--muted); margin-bottom:3px; }
  .vg-t input{ min-width:0; }
  .vg-n{ width:auto; text-align:left; padding:0 0 2px !important; font-weight:700; color:var(--text); }
  .vg-n::before{ content:"Voter "; }
  .vg-x{ position:absolute; top:4px; right:4px; width:auto; }
  .vg-more{ display:inline-flex; }
  .vg-foot .vg-sum{ flex-basis:100%; order:-1; }
}

/* ── Roll integrity summary (7956), Live tab + meeting screen (7955) ── layout only; colours from the shared vars ── */
.ru-head{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; align-items:baseline; margin-bottom:10px; }
.ru-head b{ color:var(--text); }
.ru-nums{ display:grid; grid-template-columns:repeat(auto-fit, minmax(92px, 1fr)); gap:8px; }
.ru-nums > div{ padding:8px 10px; border-radius:10px; border:1px solid var(--glass-border); min-width:0; }
.ru-nums span{ display:block; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.ru-nums b{ display:block; font-size:17px; color:var(--text); margin-top:2px; }
.ru-nums .ru-warn b{ color:var(--warn); }
.ru-line{ margin:8px 0 0; font-size:13px; }
.lv-top{ display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.lv-live{ display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:13px; color:var(--text); }
.lv-kpis{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.lv-kpis > div{ padding:12px 14px; border-radius:14px; border:1px solid var(--glass-border); background:var(--glass-bg); min-width:0; }
.lv-kpis span{ display:block; font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.lv-kpis b{ display:block; font-size:26px; color:var(--text); letter-spacing:-.02em; margin:2px 0; }
.lv-kpis em{ font-style:normal; font-size:12.5px; color:var(--muted); }
.lv-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; margin-top:14px; align-items:start; }
.lv-note{ font-size:12.5px; margin:8px 0 0; }
.lv-foot{ font-size:12.5px; margin:14px 0 0; }
.lv-sub{ display:block; font-size:11.5px; margin-top:2px; }
.lc{ display:block; width:100%; overflow:visible; }
.lc-grid{ stroke:var(--glass-border); stroke-width:1; }
.lc-ax{ font-size:10px; fill:var(--muted); }
.lc-pct{ fill:var(--text); opacity:.7; }
.lc-bar{ fill:var(--accent); }
.lc-line{ fill:none; stroke:var(--text); stroke-width:2; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.lc-mark{ stroke:var(--warn); stroke-width:1.5; stroke-dasharray:4 3; vector-effect:non-scaling-stroke; }
.lv-shield{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.lv-shield > div{ text-align:center; padding:10px 6px; border-radius:12px; border:1px solid var(--glass-border); min-width:0; }
.lv-shield b{ display:block; font-size:22px; color:var(--text); }
.lv-shield span{ font-size:12px; color:var(--muted); }
.lv-dev{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 12px; align-items:center; }
.lv-chip{ display:inline-block; margin:0 6px 6px 0; padding:4px 10px; border-radius:16px; border:1px solid var(--glass-border); font-size:12.5px; color:var(--text); }
.lv-chip b{ margin-left:4px; }
.lv-mrow{ display:flex; flex-wrap:wrap; gap:6px 14px; align-items:baseline; padding:8px 0; border-bottom:1px solid var(--glass-border); }
.lv-mrow:last-of-type{ border-bottom:0; }
.lv-mrow b{ color:var(--text); min-width:76px; }
.lv-mrow span{ font-size:12.5px; color:var(--muted); }
.lv-mrow i{ font-style:normal; font-weight:700; font-size:15px; color:var(--text); margin-left:3px; }
.lv-mrow .lv-bad i{ color:var(--danger); }
@media (max-width:760px){
  .lv-kpis{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .lv-grid{ grid-template-columns:minmax(0,1fr); }
  .lv-kpis b{ font-size:22px; }
}
body.screen-mode header.top, body.screen-mode #side, body.screen-mode #bnav, body.screen-mode #banner-slot{ display:none !important; }
body.screen-mode .main{ max-width:none; padding:0; }
.scr{ position:relative; z-index:1; min-height:100vh; box-sizing:border-box; padding:clamp(16px, 4vw, 48px); display:flex; flex-direction:column; gap:clamp(14px, 3vh, 32px); }
.scr-top{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.scr-org{ color:var(--muted); font-size:clamp(14px, 1.6vw, 20px); text-transform:uppercase; letter-spacing:.08em; }
.scr h1{ margin:4px 0 0; color:var(--text); font-size:clamp(26px, 4vw, 56px); letter-spacing:-.02em; line-height:1.08; }
.scr-x{ flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; border:1px solid var(--glass-border); color:var(--text); text-decoration:none; font-size:18px; }
.scr-mid{ display:flex; gap:clamp(20px, 5vw, 72px); align-items:center; flex-wrap:wrap; }
.scr-ring{ width:clamp(170px, 22vw, 300px); height:clamp(170px, 22vw, 300px); }
.scr-ring > div{ width:80%; height:80%; }
.scr-ring b{ font-size:clamp(34px, 5vw, 72px); }
.scr-ring span{ font-size:clamp(12px, 1.3vw, 18px); }
.scr-facts{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:clamp(12px, 3vw, 40px); flex:1; min-width:260px; }
.scr-facts b{ display:block; font-size:clamp(30px, 4.4vw, 64px); color:var(--text); letter-spacing:-.02em; }
.scr-facts span{ color:var(--muted); font-size:clamp(13px, 1.4vw, 19px); }
.scr-foot{ color:var(--muted); font-size:clamp(12px, 1.2vw, 16px); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
