:root {
  color-scheme: light;
  --ink: #252d43; --muted: #788093; --text: #535d73;
  --primary: #46557f; --primary-dark: #34426c; --line: #e7e9f0;
  --soft: #f5f6fa; --green: #407e69; --red: #aa525a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f8fa; font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 75% 20%, #e6e9f594 0, transparent 52%), radial-gradient(ellipse at 5% 70%, #e5eaf478 0, transparent 46%), linear-gradient(130deg, #fafafa 0, #f5f6fa 85%); }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input, summary { touch-action: manipulation; }
button { -webkit-appearance: none; appearance: none; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8c9ccd; outline-offset: 4px; }
input:focus-visible { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.page-shell { max-width: 1312px; padding: 0 64px; margin: 0 auto; }
.site-header { height: 116px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe3ee; gap: 20px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 13px; background: var(--primary); color: #fff; box-shadow: 0 4px 12px #44537b12; }
.brand-mark svg { width: 30px; height: 30px; }
.brand strong { font-size: 17px; letter-spacing: 2px; font-weight: 650; display: block; }
.brand small { display: block; font-size: 9px; letter-spacing: 1.8px; color: var(--muted); margin-top: 1px; }
.header-meta { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 12px; }
.header-badge { background: #ffffff90; border: 1px solid #e0e4ef; border-radius: 30px; padding: 7px 14px; color: #68748f; letter-spacing: 1px; }
.layout { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 76px; align-items: start; padding: 57px 0 54px; }
.intro { padding: 3px 0 33px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.2px; color: #7885a1; display: flex; align-items: center; gap: 9px; margin-bottom: 21px; }
.eyebrow > span { width: 20px; height: 1px; background: #8996b4; }
h1 { font-size: clamp(32px, 3.25vw, 43px); letter-spacing: -1.8px; font-weight: 570; line-height: 1.56; }
.accent-word { color: #596891; position: relative; white-space: nowrap; }
.accent-word svg { position: absolute; width: 96%; height: 10px; bottom: -5px; left: 0; fill: none; stroke: #aab5d080; stroke-width: 5; stroke-linecap: round; }
.intro-copy { color: var(--text); margin-top: 22px; line-height: 1.95; font-size: 13px; letter-spacing: .5px; }
.status-panel { background: #ffffff82; border: 1px solid #fff; border-radius: 20px; padding: 23px 25px 18px; box-shadow: 0 6px 24px #30395204; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.section-heading h2 { font-size: 14px; font-weight: 620; letter-spacing: .3px; }
.live-label { font-size: 12px; color: var(--green); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: #689681; box-shadow: 0 0 0 3px #6896810d; }
.live-label.is-offline { color: var(--muted); }
.live-label.is-offline i { background: #929aa9; box-shadow: none; }
.class-status { padding: 18px 0 17px; }
.class-status + .class-status { border-top: 1px solid var(--line); }
.class-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.class-top h3 { font-size: 13px; font-weight: 600; }
.open-tag { line-height: 1.6; color: #718478; background: #edf3ee; padding: 2px 7px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.open-tag.closed { color: #84828b; background: #efedf1; }
.turnout-line { display: flex; align-items: baseline; justify-content: space-between; margin: 9px 0 7px; }
.turnout { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; color: #495778; }
.turnout small { font-size: 12px; margin-left: 2px; letter-spacing: 0; }
.turnout-caption { color: var(--muted); font-size: 12px; }
.meter { height: 5px; background: #e8ebf3; border-radius: 5px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg,#8995b8,#52628e); border-radius: inherit; transition: width .5s ease; }
.class-numbers { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; gap: 4px; }
.class-numbers b { color: #5d677c; font-weight: 550; font-variant-numeric: tabular-nums; }
.status-footer { display: flex; align-items: center; justify-content: space-between; color: #8c93a3; font-size: 12px; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.icon-button { border: 0; color: #7d88a1; background: transparent; min-width: 32px; height: 32px; padding: 5px; border-radius: 6px; }
.icon-button:hover { background: #e9edf5; }
.icon-button svg { width: 15px; height: 15px; }
.icon-button:disabled svg { animation: spin 1.2s linear infinite; }
.status-caption { color: #7a8497; font-size: 12px; margin-top: 5px; }
.status-notice { font-size: 12px; padding: 9px 0; color: var(--red); }
.status-list.stale { opacity: .55; }
.status-skeleton { padding: 20px 0 15px; }
.status-skeleton span { display: block; border-radius: 6px; height: 11px; width: 48%; background: #e8ebf2; margin-bottom: 15px; animation: breathe 1.6s ease-in-out infinite; }
.status-skeleton span:nth-child(2) { width: 29%; height: 27px; }
.status-skeleton span:nth-child(3) { width: 100%; height: 5px; }
.principles { padding: 25px 3px 0; }
.principles summary { list-style: none; display: flex; justify-content: space-between; font-size: 12px; color: #646e85; cursor: pointer; }
.principles summary::-webkit-details-marker { display: none; }
.principles summary > span { display: none; }
.principles-body { display: grid; gap: 16px; padding-top: 20px; }
.principles-body > div { display: flex; gap: 15px; }
.principle-number { color: #98a2b9; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.principles strong { display: block; font-size: 12px; font-weight: 550; color: #647087; }
.principles small { display: block; color: #939aa9; font-size: 12px; margin-top: 3px; }
.workflow { border: 1px solid #fff; border-radius: 26px; background: #ffffffec; box-shadow: 0 14px 60px #343c6610, 0 2px 5px #303b6503; min-width: 0; overflow: clip; }
@supports (backdrop-filter: blur(12px)) { .workflow { background: #ffffffda; backdrop-filter: blur(12px); } }
.workflow:focus, .status-panel:focus { outline: none; }
.workflow-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 25px 34px 20px; }
.ballot-title { color: #677089; font-size: 12px; font-weight: 500; }
.edition { color: #a0a7b7; letter-spacing: 1.3px; font-size: 12px; white-space: nowrap; }
.steps { margin: 0 34px; padding: 0 0 25px; list-style: none; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 7px; color: #a1a6b4; white-space: nowrap; font-size: 12px; flex: 1; }
.steps li:last-child { flex: 0 0 auto; }
.steps li:not(:last-child)::after { content: ""; background: var(--line); height: 1px; min-width: 10px; flex: 1; margin: 0 10px 0 3px; }
.steps li > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f1f2f6; color: #8e97ac; font-size: 12px; }
.steps li.is-current { color: var(--primary); font-weight: 600; }
.steps li.is-current > span { color: white; background: var(--primary); box-shadow: 0 0 0 4px #46557f09; }
.steps li.is-done { color: #7985a3; }
.steps li.is-done > span { background: #edf0f7; color: #637392; }
.app-body { padding: 32px 34px 29px; min-height: 416px; }
.stage-icon { background: #f0f2f8; color: #6c7ba0; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e6eaf3; border-radius: 13px; margin-bottom: 19px; }
.stage-icon svg { width: 22px; height: 22px; }
.stage-heading { font-size: 26px; line-height: 1.4; font-weight: 590; letter-spacing: -.7px; overflow-wrap: anywhere; outline: none; }
.stage-description { font-size: 14px; color: var(--muted); margin-top: 9px; line-height: 1.8; }
.auth-form { margin-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { color: #525c73; font-size: 14px; display: block; font-weight: 550; margin-bottom: 9px; }
.class-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 21px; }
.class-option { position: relative; cursor: pointer; }
.class-option > input, .candidate > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.class-option-inner { display: flex; padding: 13px 15px; min-height: 52px; align-items: center; justify-content: space-between; border: 1px solid #e4e7ef; border-radius: 10px; color: #737c90; transition: background .16s, border-color .16s; font-size: 14px; }
.radio-dot { width: 16px; height: 16px; border: 1px solid #d9dfeb; background: white; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.class-option input:checked + .class-option-inner { border-color: #8291b4; background: #f3f5fb; color: var(--primary); font-weight: 600; }
.class-option input:checked + .class-option-inner .radio-dot { border-color: #687ba5; }
.class-option input:checked + .class-option-inner .radio-dot::after { content: ""; width: 6px; height: 6px; background: #667aa7; border-radius: 50%; }
.class-option input:focus-visible + .class-option-inner, .candidate input:focus-visible + .candidate-inner { outline: 3px solid #a0aed1; outline-offset: 3px; }
.form-field { margin-bottom: 18px; }
.text-input { width: 100%; height: 49px; border: 1px solid #e4e7ef; border-radius: 10px; background: #fafbfe; color: var(--ink); padding: 12px 15px; transition: border .16s, box-shadow .16s; font-size: 14px; -webkit-appearance: none; }
.text-input::placeholder { color: #a6adbc; font-size: 12px; }
.text-input:focus { background: #fff; border-color: #8796ba; box-shadow: 0 0 0 3px #5b6c9610; }
.text-input:disabled { color: #929aad; background: #f3f5f8; }
.button { min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; line-height: 1.5; transition: background .18s, box-shadow .18s, transform .18s; text-decoration: none; }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 11px #46557f12; }
.button.primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: 0 5px 18px #46557f25; }
.button.primary:active:not(:disabled) { transform: translateY(1px); }
.button.primary:disabled { background: #b4bdcf; box-shadow: none; color: white; }
.button.secondary { background: #fff; border-color: var(--line); color: var(--text); }
.button.secondary:hover:not(:disabled) { background: #f4f6fa; }
.button.secondary:disabled { opacity: .45; }
.button.full { width: 100%; }
.auth-submit { margin-top: 8px; }
.privacy { display: flex; align-items: flex-start; gap: 7px; color: #798399; font-size: 12px; line-height: 1.9; margin-top: 17px; }
.privacy svg { width: 13px; height: 13px; margin-top: 3px; }
.card-footnote { margin: 0 34px; border-top: 1px solid var(--line); padding: 18px 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: #8791a4; font-size: 12px; letter-spacing: .5px; }
.card-footnote svg { width: 13px; height: 13px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid #e0e4ed; color: #929aab; font-size: 12px; letter-spacing: .7px; }
.identity-bar { margin: 22px 34px 0; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 9px; background: #f6f7fa; border-radius: 9px; color: #6e7890; font-size: 12px; }
.identity-person { display: flex; gap: 8px; align-items: center; min-width: 0; }
.identity-person > span { overflow-wrap: anywhere; }
.identity-person strong { color: #485675; font-weight: 600; }
.identity-person svg { width: 14px; height: 14px; }
.session-time { font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: 12px; }
.session-time.warning { color: #ac6266; }
.notice { margin: 22px 34px 0; padding: 12px 14px; background: #fcf3f3; border: 1px solid #f0dfe1; color: #a0565d; border-radius: 10px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.notice.info { background: #f2f5fb; border-color: #e2e7f3; color: #667697; }
.notice.compact { margin: 16px 0; }
.loading-state, .empty-state { min-height: 348px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.loading-state p { font-size: 13px; color: var(--muted); }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: middle; flex-shrink: 0; }
.loading-state > .spinner { width: 27px; height: 27px; color: #8b99b8; }
.vote-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.micro-label { font-size: 12px; letter-spacing: 1.4px; color: #9aa4b8; }
.page-counter { color: #96a0b5; font-size: 13px; font-variant-numeric: tabular-nums; }
.page-counter b { color: var(--primary); font-weight: 600; font-size: 17px; }
.vote-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.single-tag { color: #8290aa; background: #f2f4f9; padding: 4px 9px; font-size: 12px; border-radius: 5px; white-space: nowrap; }
.vote-progress { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 23px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: #8d96aa; }
.progress-label b { font-weight: 500; color: #7383a4; }
.vote-progress .meter { height: 3px; }
.search-field { position: relative; margin-bottom: 16px; }
.search-field svg { position: absolute; left: 13px; top: 14px; width: 16px; height: 16px; color: #8a96ad; }
.search-field .text-input { padding-left: 38px; height: 44px; font-size: 14px; }
.candidate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.candidate { cursor: pointer; position: relative; min-width: 0; }
.candidate-inner { display: flex; align-items: center; gap: 11px; min-height: 90px; padding: 18px 14px; background: #fff; border: 1px solid #e5e8f0; border-radius: 12px; transition: background .16s, border-color .16s, box-shadow .16s; }
.candidate:hover .candidate-inner { border-color: #b3bdd2; background: #fcfcfe; }
.avatar { width: 37px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #f2f4f8; color: #8c97ac; font-size: 18px; font-weight: 500; flex-shrink: 0; }
.candidate-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.candidate-name { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.candidate-tail { font-size: 12px; color: #9aa3b4; margin-top: 4px; }
.candidate-check { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #dde2ec; border-radius: 50%; color: transparent; flex-shrink: 0; }
.candidate-check svg { width: 10px; height: 10px; }
.candidate input:checked + .candidate-inner { border-color: #8091b6; background: #f3f5fc; box-shadow: 0 0 0 1px #8091b622; }
.candidate input:checked + .candidate-inner .avatar { background: #e4e9f6; color: #697fa8; }
.candidate input:checked + .candidate-inner .candidate-check { background: #637ba6; border-color: #637ba6; color: white; }
.no-results { color: #8b94a8; padding: 30px 10px; font-size: 12px; text-align: center; }
.selection-hint { color: #8a95aa; font-size: 14px; padding: 16px 0 7px; min-height: 41px; }
.selection-hint b { color: #617395; font-weight: 500; }
.action-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 17px; border-top: 1px solid #eef0f5; }
.action-bar .primary { flex: 1; }
.action-bar .secondary { min-width: 95px; }
.review-list { margin: 23px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: flex; align-items: center; gap: 12px; padding: 16px 15px; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-index { color: #a2adbf; font-size: 12px; font-variant-numeric: tabular-nums; }
.review-person { min-width: 0; flex: 1; }
.review-person small { display: block; font-size: 12px; color: #8c97ad; margin-bottom: 3px; }
.review-person strong { color: #414f6c; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.review-person .tail { font-size: 12px; color: #97a1b5; margin-left: 8px; white-space: nowrap; }
.text-button { background: transparent; border: 0; color: #7c8daF; font-size: 14px; min-width: 44px; min-height: 44px; padding: 8px; }
.text-button:hover { color: var(--primary-dark); }
.final-warning { display: flex; align-items: flex-start; gap: 9px; background: #f7f6f2; color: #938168; border: 1px solid #eeeae0; border-radius: 10px; padding: 12px; font-size: 12px; }
.final-warning svg { width: 15px; height: 15px; margin-top: 2px; }
.acknowledgement { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 18px 0 6px; min-height: 40px; color: #56637d; font-size: 14px; }
.acknowledgement input { width: 17px; height: 17px; margin: 0; accent-color: #586e9a; flex-shrink: 0; }
.outcome { text-align: center; padding: 27px 0 6px; }
.outcome-symbol { width: 79px; height: 79px; display: grid; place-items: center; border-radius: 50%; background: #edf5f0; color: #548974; border: 1px solid #dceae1; box-shadow: 0 0 0 10px #f6f9f7; margin: 10px auto 29px; }
.outcome-symbol svg { width: 32px; height: 32px; stroke-width: 1.6; }
.outcome-symbol.pending { background: #f0f3fa; color: #7c8eb0; border-color: #e2e7f1; box-shadow: 0 0 0 10px #f7f8fc; }
.outcome .stage-description { max-width: 340px; margin: 12px auto 23px; }
.receipt { text-align: left; background: #f6f8fa; border: 1px solid #edf0f3; border-radius: 12px; padding: 15px 18px; margin: 26px 0 23px; }
.receipt > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 12px; color: #8a95a8; }
.receipt strong { text-align: right; font-weight: 500; color: #586681; overflow-wrap: anywhere; }
.outcome-note { color: #929bab; font-size: 12px; margin: 12px 0 22px; }
.success-quote { margin-top: 27px; font-size: 12px; color: #91a39c; letter-spacing: 1px; }
.empty-state .stage-icon { margin: 0; width: 53px; height: 53px; }
.empty-state h2 { font-size: 23px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 320px; }
.noscript { padding: 30px; color: var(--red); }
/* Public results are a separate read-only surface; voting keeps its full width. */
.results-entry { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 44px; margin-top: 13px; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: #52658c; font-size: 13px; text-align: left; line-height: 1.55; }
.results-entry:hover { color: #2f436e; }
.results-entry svg { width: 16px; height: 16px; }
#refresh-status { min-width: 44px; min-height: 44px; }
.results-overlay { position: fixed; inset: 0; z-index: 100; }
.results-backdrop { position: absolute; inset: 0; background: #202b4659; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: results-fade-in .2s ease-out; }
.results-drawer { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(660px, calc(100% - 32px)); height: 100%; background: #f7f9fc; border-left: 1px solid #ffffffd9; border-radius: 27px 0 0 27px; box-shadow: -20px 0 70px #1827461a; overflow: hidden; outline: none; animation: results-slide-in .25s ease-out; }
.results-header { flex: 0 0 auto; padding: 21px 36px 4px; background: linear-gradient(120deg,#fff,#f4f6fb); border-bottom: 1px solid #e4e9f2; }
.results-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.results-eyebrow { color: #7b89a3; font-size: 11px; letter-spacing: 1.3px; }
.results-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; background: #edf1f7; border: 1px solid #e6ebf3; border-radius: 50%; color: #62718f; }
.results-close:hover { background: #e4eaf4; }
.results-header h2 { color: #303d59; font-size: 25px; font-weight: 580; letter-spacing: -.6px; line-height: 1.45; overflow-wrap: anywhere; }
.results-header > p { margin-top: 9px; color: #7b869a; font-size: 13px; }
.results-tabs { display: flex; gap: 5px; padding: 4px; margin: 22px 0 8px; background: #e9edf5; border: 1px solid #e4e9f2; border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.results-tab { flex: 1 0 auto; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #7b869d; font-size: 14px; line-height: 1.5; }
.results-tab[aria-selected="true"] { color: #43567f; background: #fff; border-color: #dde4f0; box-shadow: 0 2px 5px #37486806; font-weight: 600; }
.results-update-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; color: #8792a6; font-size: 11px; }
.results-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 62px; padding: 8px 0 8px 9px; border: 0; background: transparent; color: #6e7e9d; font-size: 12px; flex-shrink: 0; }
.results-refresh svg { width: 15px; height: 15px; }
.results-refresh:disabled svg { animation: spin 1.2s linear infinite; }
.results-refresh:disabled { color: #a1abc0; }
.results-header .results-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #ecdde0; border-radius: 9px; background: #fcf5f5; color: #a45d65; font-size: 12px; line-height: 1.7; }
.results-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 26px 36px 25px; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; overflow-anchor: none; scroll-behavior: auto; }
.results-scroll:focus-visible { outline: 2px solid #a0afd0; outline-offset: -3px; }
.results-participation { padding: 20px 23px 15px; border: 1px solid #e1e7f2; border-radius: 17px; background: linear-gradient(135deg,#edf1f9,#f8faff); }
.results-participation-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.results-participation-top h3 { color: #70809e; font-size: 13px; font-weight: 550; }
.results-participation-numbers { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 13px 0 17px; color: #8d98ab; font-variant-numeric: tabular-nums; }
.results-participation-numbers strong { color: #435679; font-size: 34px; font-weight: 520; line-height: 1.35; letter-spacing: -.7px; }
.results-participation-numbers > div > span { color: #8591a9; font-size: 15px; }
.results-participation-numbers small { display: block; color: #8793a9; font-size: 12px; margin-top: 3px; }
.results-participation-numbers .results-turnout { text-align: right; }
.results-turnout strong { font-size: 28px; }
.results-remaining { color: #8793a8; font-size: 12px; margin-top: 10px; }
.results-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 27px 0 14px; }
.results-section-heading h3 { font-size: 14px; font-weight: 550; color: #4a5a78; }
.results-section-heading > span { color: #8c98ad; font-size: 12px; }
.results-positions { display: grid; gap: 17px; }
.position-result { background: #ffffffdf; border: 1px solid #e5eaf2; border-radius: 16px; padding: 21px 23px 22px; }
.position-result-heading { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #edf0f6; margin-bottom: 20px; }
.position-result-index { width: 28px; height: 28px; display: grid; place-items: center; background: #f0f3f9; border-radius: 8px; color: #8a98b0; font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.position-result-heading h4 { margin: 2px 0 0; color: #435371; font-size: 16px; font-weight: 580; line-height: 1.55; overflow-wrap: anywhere; }
.position-result-heading > div { flex: 1; min-width: 0; }
.position-result-total { display: block; font-size: 12px; font-weight: 400; color: #8a96ac; margin-top: 4px; font-variant-numeric: tabular-nums; }
.result-candidates { display: grid; gap: 21px; }
.public-candidate { min-width: 0; }
.public-candidate-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.public-candidate-name { min-width: 0; color: #54617c; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.public-candidate-score { display: flex; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 5px; color: #8994a8; font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.public-candidate-votes { color: #586a8b; font-weight: 550; }
.public-candidate .meter { height: 4px; background: #eef1f7; }
.public-candidate .meter > span { background: linear-gradient(90deg,#a3b2ce,#7d92b7); transition: width .45s ease; }
.position-no-data { padding: 8px 0; font-size: 13px; color: #909bb0; }
.results-empty { padding: 45px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: #8996ad; }
.results-empty svg { width: 35px; height: 35px; }
.results-empty p { font-size: 14px; line-height: 1.85; }
.results-calculation-note { color: #8c98ac; font-size: 12px; margin: 22px 3px 0; line-height: 1.8; }
.results-bottom { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid #e4e9f2; background: #fafbfe; padding: 17px 36px max(17px, env(safe-area-inset-bottom)); color: #8a96ab; font-size: 11px; }
@keyframes results-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes results-slide-in { from { transform: translateX(18px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 640px) {
  .results-drawer { inset: 0; width: 100%; border: 0; border-radius: 0; }
  .results-header { padding: max(12px, env(safe-area-inset-top)) 21px 2px; }
  .results-topline { margin-bottom: 5px; }
  .results-eyebrow { letter-spacing: .8px; font-size: 10px; }
  .results-header h2 { font-size: 21px; }
  .results-header > p { font-size: 12px; }
  .results-tabs { margin-top: 17px; }
  .results-tab { padding-left: 12px; padding-right: 12px; }
  .results-update-row { font-size: 10px; gap: 5px; }
  .results-scroll { padding: 21px; }
  .results-participation { padding: 17px 18px 13px; }
  .results-participation-numbers strong { font-size: 31px; }
  .results-turnout strong { font-size: 26px; }
  .position-result { padding: 19px 18px; }
  .position-result-heading h4 { font-size: 15px; }
  .public-candidate-line { gap: 9px; }
  .public-candidate-score { gap: 4px; font-size: 12px; }
  .public-candidate-name { font-size: 15px; }
  .results-bottom { padding-left: 21px; padding-right: 21px; font-size: 10px; }
  .results-entry { font-size: 12px; }
  .results-entry svg { width: 14px; height: 14px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; } }
@media (min-width: 1400px) { .page-shell { max-width: 1380px; padding: 0 88px; } .layout { gap: 93px; } }
@media (max-width: 1120px) { .page-shell { padding: 0 36px; } .layout { gap: 35px; } .workflow-top { padding-left: 26px; padding-right: 26px; } .steps, .identity-bar, .notice, .card-footnote { margin-left: 26px; margin-right: 26px; } .app-body { padding-left: 26px; padding-right: 26px; } .candidate-inner { gap: 8px; padding: 14px 10px; } .avatar { width: 32px; height: 36px; } .header-meta > span:first-child { display: none; } }
@media (max-width: 860px) {
  .page-shell { max-width: 680px; padding: 0 25px; }
  .site-header { height: 85px; }
  .layout { display: flex; flex-direction: column; gap: 25px; padding: 27px 0 34px; }
  .overview, .workflow { width: 100%; }
  .intro { padding: 0 0 22px; }
  .eyebrow { margin-bottom: 9px; font-size: 12px; letter-spacing: 1.8px; }
  h1 { font-size: 29px; line-height: 1.6; letter-spacing: -1px; }
  h1 br { display: none; }
  .intro-copy { display: none; }
  .accent-word svg { height: 7px; bottom: -4px; }
  .status-panel { padding: 17px 20px 10px; border-radius: 17px; }
  .status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .class-status { padding: 11px 0 13px; }
  .class-status + .class-status { border-top: 0; border-left: 1px solid var(--line); padding-left: 20px; margin-left: -1px; }
  .class-status:nth-child(2n+1) { border-left: 0; padding-left: 0; margin-left: 0; }
  .turnout { font-size: 29px; }
  .status-footer { padding-top: 3px; }
  .status-caption { display: none; }
  .principles { display: none; }
  .workflow { border-radius: 21px; }
  .workflow-top { padding: 24px 30px 20px; }
  .steps, .identity-bar, .notice, .card-footnote { margin-left: 30px; margin-right: 30px; }
  .app-body { padding: 27px 30px 25px; min-height: 0; }
  .candidate-inner { padding: 19px 16px; }
  .avatar { width: 39px; height: 42px; }
  .candidate-grid { gap: 13px; }
  .action-bar { position: sticky; bottom: 0; z-index: 5; background: #fffffff5; margin: 20px -30px -25px; padding: 15px 30px; padding-bottom: max(15px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px #ffffffa0; backdrop-filter: blur(12px); }
  .workflow { overflow: visible; }
  .card-footnote { padding-top: 17px; }
  body.keyboard-open .action-bar { position: static; }
  .site-footer { padding-bottom: max(25px, env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .page-shell { padding: 0 17px; }
  .site-header { height: 78px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 40px; border-radius: 11px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand strong { font-size: 15px; letter-spacing: 1.5px; }
  .brand small { font-size: 8px; letter-spacing: 1.3px; }
  .header-badge { font-size: 11px; padding: 5px 8px; letter-spacing: .5px; }
  .layout { padding-top: 23px; gap: 20px; }
  h1 { font-size: 25px; letter-spacing: -1.3px; }
  .intro { padding-bottom: 19px; }
  .eyebrow { margin-bottom: 6px; font-size: 10px; letter-spacing: 1.4px; }
  .section-heading h2 { font-size: 12px; }
  .live-label { font-size: 12px; }
  .status-panel { padding: 13px 15px 7px; }
  .status-list { gap: 12px; }
  .class-top { gap: 4px; flex-wrap: wrap; }
  .workflow-top .edition { display: none; }
  .app-body > .stage-icon { display: none; }
  .class-status + .class-status { padding-left: 14px; }
  .class-top h3 { font-size: 13px; }
  .open-tag { font-size: 12px; padding: 1px 4px; }
  .class-numbers { font-size: 12px; }
  .class-numbers b { display: block; font-size: 12px; line-height: 1.5; margin-top: 1px; }
  .turnout { font-size: 26px; }
  .turnout-caption { font-size: 12px; }
  .turnout small { font-size: 12px; }
  .status-footer { font-size: 10px; }
  .workflow-top { padding: 20px 22px 17px; gap: 8px; }
  .ballot-title { font-size: 12px; }
  .edition { font-size: 12px; letter-spacing: 1px; }
  .steps, .identity-bar, .notice, .card-footnote { margin-left: 22px; margin-right: 22px; }
  .steps { padding-bottom: 21px; justify-content: space-between; gap: 8px; }
  .steps li { gap: 5px; font-size: 12px; flex: 0 1 auto; }
  .steps li:not(:last-child)::after { display: none; }
  .steps li > span { width: 21px; height: 21px; font-size: 12px; }
  .app-body { padding: 25px 22px; }
  .stage-icon { width: 37px; height: 37px; border-radius: 11px; margin-bottom: 16px; }
  .stage-heading { font-size: 24px; }
  .stage-description { font-size: 14px; }
  .auth-form { margin-top: 24px; }
  .class-options { gap: 10px; }
  .class-option-inner { padding: 13px 12px; font-size: 14px; }
  .text-input, .search-field .text-input { font-size: 16px; }
  .button { font-size: 14px; min-height: 49px; }
  .identity-bar { align-items: center; flex-wrap: wrap; font-size: 12px; padding: 10px; }
  .identity-person { gap: 5px; }
  .session-time { font-size: 12px; }
  .candidate-grid { grid-template-columns: 1fr; gap: 10px; }
  .candidate-inner { min-height: 79px; padding: 15px 17px; gap: 13px; }
  .candidate-name { font-size: 16px; }
  .candidate-tail { font-size: 12px; margin-top: 2px; }
  .avatar { width: 39px; height: 42px; }
  .action-bar { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .review-row { padding: 14px 11px; gap: 9px; }
  .review-person .tail { display: block; margin: 3px 0 0; }
  .receipt { padding: 12px; }
  .receipt > div { font-size: 12px; }
  .outcome { padding-top: 22px; }
  .site-footer { font-size: 11px; letter-spacing: .2px; }
}
@media (max-width: 359px) { .steps { gap: 4px; } .steps li { gap: 3px; } .steps li > span { width: 16px; height: 16px; font-size: 10px; } h1 { font-size: 22px; } .header-badge { font-size: 12px; } .steps li { font-size: 12px; } .workflow-top .edition { display: none; } .identity-bar { flex-wrap: wrap; } .class-numbers { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
