:root {
  --navy: #10233f;
  --navy-2: #1b3557;
  --paper: #f4f1eb;
  --surface: #fffdf9;
  --ink: #172235;
  --muted: #6e7682;
  --line: #dedbd3;
  --red: #e2574c;
  --green: #2b7a67;
  --amber: #b7791f;
  --shadow: 0 18px 45px rgba(16, 35, 63, .1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; padding-bottom: calc(24px + var(--safe-bottom)); }
.app-shell.is-compact { padding-bottom: calc(100px + var(--safe-bottom)); }
.eyebrow { display: block; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #fac5bd; }
.button { min-height: 50px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:active { transform: scale(.98); }
.button-large { min-height: 58px; font-size: 1rem; }
.button-primary { background: var(--red); color: white; box-shadow: 0 10px 25px rgba(226, 87, 76, .23); }
.button-secondary { background: var(--navy); color: white; }
.button-light { background: var(--surface); color: var(--navy); }
.button-ghost { border: 1px dashed #b7b4ad; background: transparent; color: var(--navy); }
.button-danger-outline { border: 1px solid rgba(226,87,76,.32); background: #fff5f3; color: #b54037; }
.full { width: 100%; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #e9e6df; color: var(--navy); cursor: pointer; flex: 0 0 auto; }
.icon-button.light { background: rgba(255,255,255,.12); color: white; }
.icon-button.danger { color: var(--red); font-size: 1.4rem; }

.hero { background: var(--navy); color: white; min-height: 475px; padding: max(32px, env(safe-area-inset-top)) 24px 42px; border-radius: 0 0 34px 34px; position: relative; overflow: hidden; }
.hero::after { content: ""; width: 240px; height: 240px; border: 50px solid rgba(255,255,255,.035); border-radius: 50%; position: absolute; right: -100px; top: 20px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 42px; position: relative; z-index: 1; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; background: var(--surface); border-radius: 18px; box-shadow: 0 15px 35px rgba(0,0,0,.18); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { color: white; font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 12vw, 4rem); line-height: .98; letter-spacing: -.04em; margin: 10px 0 18px; position: relative; z-index: 1; }
.hero h1 em { color: #fac5bd; font-style: normal; }
.hero p { color: #cbd4df; font-size: 1rem; line-height: 1.55; max-width: 360px; margin: 0 0 28px; }
.home-content { padding: 0 18px 24px; max-width: 760px; margin: auto; }
.resume-card { margin: -25px 0 20px; position: relative; background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.resume-card h2 { margin: 4px 0; font-size: 1.1rem; }
.resume-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.resume-card .button { min-height: 44px; }
.resume-card-actions { display: grid; gap: 8px; flex: 0 0 auto; }
.resume-card-actions .button { padding: 0 15px; font-size: .78rem; }
.trust-strip { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px 26px; }
.trust-strip span { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-strip b { color: var(--navy); font-size: .95rem; }
.trust-strip small { color: var(--muted); font-size: .67rem; margin-top: 2px; }
.trust-strip i { width: 1px; height: 28px; background: var(--line); }
.section-block { margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.history-list { display: grid; gap: 10px; }
.history-entry { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.history-item { width: 100%; border: 0; background: var(--surface); padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.history-item span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.history-item strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item small { color: var(--muted); margin-top: 3px; }
.history-item > b { font-size: 1.2rem; color: var(--navy); }
.history-icon { width: 42px; height: 42px; border-radius: 13px; background: #e9eef4; display: grid; place-items: center; color: var(--navy); }
.history-item-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.history-item-actions button { min-height: 42px; border: 0; background: #faf8f4; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .74rem; font-weight: 800; }
.history-item-actions button + button { border-left: 1px solid var(--line); }
.history-item-actions button.danger { color: #b54037; }
.history-item-actions svg { width: 16px; height: 16px; }
.empty-state { border: 1px dashed #c8c4bc; border-radius: 18px; padding: 28px 20px; text-align: center; color: var(--muted); }
.empty-state span { color: #9ca3ad; }
.empty-state svg { width: 28px; height: 28px; }
.empty-state p { margin: 8px 0 0; font-size: .88rem; }
.install-banner { width: 100%; margin-top: 18px; border: 0; background: #dfece7; color: var(--navy); border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 14px; text-align: left; }
.install-banner > svg { width: 25px; height: 25px; color: var(--green); }
.install-banner span { display: flex; flex-direction: column; }
.install-banner small { color: var(--muted); margin-top: 2px; }

.topbar { max-width: 760px; margin: auto; padding: max(22px, env(safe-area-inset-top)) 18px 16px; display: flex; align-items: center; gap: 14px; }
.topbar h1 { font-family: Georgia, "Times New Roman", serif; margin: 2px 0 0; font-size: 1.65rem; }
.form-page { max-width: 720px; margin: auto; padding: 8px 16px 42px; }
.form-page form { display: grid; gap: 14px; min-width: 0; }
.form-card { position: relative; padding: 22px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step-number { position: absolute; right: 16px; top: 10px; font-family: Georgia, "Times New Roman", serif; color: #ebe7df; font-size: 3rem; }
.form-card h2 { position: relative; margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.field, .field-grid { min-width: 0; }
.field { display: grid; gap: 7px; margin-top: 14px; }
.field > span { color: #535d6c; font-size: .78rem; font-weight: 700; }
.field input, .field select { width: 100%; min-width: 0; max-width: 100%; min-height: 51px; border: 1px solid #cbc8c1; background: white; color: var(--ink); border-radius: 12px; padding: 0 13px; outline: none; }
.field input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,35,63,.08); }
.field-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #ebe8e1; padding: 4px; border-radius: 13px; margin-top: 14px; }
.segmented button { min-height: 43px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; }
.segmented button.active { background: white; color: var(--navy); box-shadow: 0 3px 12px rgba(16,35,63,.08); }
.single-round { background: #edf1f5; color: var(--navy); padding: 13px; border-radius: 12px; text-align: center; font-weight: 700; margin-top: 14px; }
.rule-note { display: flex; gap: 7px; color: var(--muted); font-size: .75rem; margin: 12px 0 0; align-items: center; }
.check-field { display: flex; gap: 12px; margin-top: 18px; padding: 14px; background: #f1eee8; border-radius: 13px; }
.check-field input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; }
.check-field span { display: flex; flex-direction: column; }
.check-field b { font-size: .85rem; }
.check-field small { color: var(--muted); line-height: 1.35; margin-top: 4px; }
.option-input-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; margin-bottom: 9px; }
.option-input-row > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: .72rem; font-weight: 700; }
.option-input-row input { min-height: 48px; border: 1px solid #cbc8c1; border-radius: 12px; padding: 0 13px; width: 100%; }
.setup-option-card { padding: 10px 0; border-bottom: 1px solid #ebe7df; }
.setup-option-card:last-child { border-bottom: 0; }
.candidate-editor { margin: 6px 0 0 38px; padding-top: 10px; border-radius: 13px; background: #f2f0eb; overflow: hidden; }
.candidate-editor-label { padding: 0 11px 3px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--navy); font-size: .76rem; font-weight: 800; }
.candidate-editor-label b { color: var(--green); font-size: .66rem; white-space: nowrap; }
.candidate-editor > p { margin: 0; padding: 0 11px 9px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.candidate-editor textarea { display: block; width: calc(100% - 20px); min-height: 120px; margin: 0 10px; padding: 11px 12px; border: 1px solid #cbc8c1; border-radius: 11px; background: white; color: var(--ink); font-size: 1rem; line-height: 1.45; resize: vertical; outline: none; }
.candidate-editor textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,35,63,.08); }
.candidate-editor small { display: block; padding: 8px 11px 12px; color: var(--muted); font-size: .68rem; line-height: 1.35; }

.count-header { background: var(--navy); color: white; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 14px 14px; }
.count-header > div { display: flex; flex-direction: column; min-width: 0; }
.count-header > div span { color: #b8c5d5; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-header > div strong { margin-top: 2px; font-size: .88rem; }
.counter-pill { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: white; border-radius: 12px; min-width: 60px; height: 43px; padding: 0 10px; }
.counter-pill b { font-size: 1.05rem; }
.counter-pill span { color: #b8c5d5; margin-left: 3px; font-size: .7rem; }
.progress-track { height: 5px; background: #cad1d9; }
.progress-track i { display: block; height: 100%; background: var(--red); transition: width .25s ease; }
.count-page { max-width: 760px; margin: auto; padding: 23px 14px 24px; }
.count-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.count-intro h1 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.count-intro > b { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 2rem; }
.count-intro > b small { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .8rem; }
.candidate-grid { display: grid; gap: 10px; }
.candidate-button { min-height: 76px; border: 1px solid #d5d1c9; border-radius: 17px; background: var(--surface); color: var(--ink); padding: 10px 13px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; text-align: left; box-shadow: 0 5px 16px rgba(16,35,63,.045); animation: rise .32s both; animation-delay: var(--delay); touch-action: pan-y; }
.candidate-button:active { background: #edf3f0; border-color: var(--green); }
.candidate-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #e8edf3; color: var(--navy); font-size: .72rem; font-weight: 700; }
.candidate-button strong { line-height: 1.2; }
.candidate-button b { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: white; font-size: 1.15rem; }
.candidate-correction { min-height: 76px; border: 1px solid #d5d1c9; border-radius: 17px; background: var(--surface); color: var(--ink); padding: 10px 11px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; box-shadow: 0 5px 16px rgba(16,35,63,.045); animation: rise .32s both; animation-delay: var(--delay); }
.candidate-correction > strong { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.edit-mode-note { margin: -7px 0 15px; padding: 11px 13px; border-radius: 12px; background: #e8edf3; color: var(--navy); font-size: .74rem; line-height: 1.4; }
.vote-stepper { display: grid; grid-template-columns: 36px minmax(34px, auto) 36px; align-items: center; gap: 5px; }
.vote-stepper button { width: 36px; height: 36px; border: 0; border-radius: 11px; background: #e8edf3; color: var(--navy); font-size: 1.35rem; font-weight: 800; touch-action: manipulation; }
.vote-stepper button:last-child { background: var(--navy); color: white; }
.vote-stepper button:disabled { opacity: .35; }
.vote-stepper b { min-width: 34px; text-align: center; font-size: 1rem; }
.special-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.special-votes > button { min-height: 70px; border: 1px dashed #aaa69d; border-radius: 16px; background: transparent; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 12px 14px; color: var(--ink); touch-action: pan-y; }
.special-votes > button > span { grid-column: 1; font-size: .66rem; color: var(--muted); text-transform: uppercase; }
.special-votes > button > strong { grid-column: 1; }
.special-votes > button > b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 1.25rem; }
.special-votes.correction-votes { align-items: stretch; }
.special-vote-correction { min-height: 84px; border: 1px dashed #aaa69d; border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 1fr; align-content: start; color: var(--ink); }
.special-vote-correction > span { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.special-vote-correction > strong { margin: 2px 0 9px; }
.special-vote-correction .vote-stepper { grid-template-columns: 32px minmax(28px, auto) 32px; justify-content: start; }
.special-vote-correction .vote-stepper button { width: 32px; height: 32px; }
.special-vote-correction .vote-stepper b { grid-row: auto; grid-column: auto; align-self: center; font-size: 1rem; }
.undo-button { width: 100%; margin-top: 16px; border: 0; background: transparent; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; }
.undo-button:disabled { opacity: .35; }
.live-results-card { margin-top: 8px; padding: 18px 15px 14px; border-radius: 19px; background: var(--navy); color: white; box-shadow: 0 14px 32px rgba(16,35,63,.16); }
.live-results-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.live-results-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: #dce5ef; font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #69d0ac; box-shadow: 0 0 0 4px rgba(105,208,172,.13); }
.live-results-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 17px 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.live-results-summary span { color: #dbe3ec; font-size: .78rem; }
.live-results-summary span b { color: white; font-size: 1.2rem; margin-right: 4px; }
.live-results-summary small { color: #9fb0c4; font-size: .68rem; white-space: nowrap; }
.live-results-list { display: grid; gap: 13px; }
.live-result-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; }
.live-rank { color: #8fa2b8; font-family: Georgia, "Times New Roman", serif; font-size: .92rem; }
.live-result-main > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-result-main strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.live-result-main span { color: #c5d0dc; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.live-result-bar { height: 6px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.live-result-bar i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: #fac5bd; transition: width .25s ease; }
.live-result-row > b { min-width: 28px; text-align: right; font-size: .95rem; }
.live-seat-projection { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.15); }
.live-seat-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.live-seat-title > strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.live-seat-title > span { color: #9fb0c4; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.live-seat-row { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.live-seat-row > div { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.live-seat-row > div b { color: #fac5bd; white-space: nowrap; }
.live-seat-row ol { margin: 8px 0 0; padding-left: 27px; color: #dbe3ec; font-size: .72rem; line-height: 1.55; }
.live-seat-row small { display: block; margin-top: 7px; color: #fac5bd; font-size: .66rem; }
.live-seat-projection > p { margin: 10px 0 0; color: #9fb0c4; font-size: .68rem; line-height: 1.4; }
.live-seat-projection .projection-message { padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.07); color: #dbe3ec; }
.projection-message strong { color: white; }
.candidate-status-grid { display: grid; gap: 10px; margin-top: 14px; }
.candidate-status-block { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.055); }
.candidate-status-block.is-elected { border-color: rgba(105,208,172,.36); background: rgba(105,208,172,.09); }
.candidate-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border-bottom: 1px solid rgba(255,255,255,.1); }
.candidate-status-heading > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.candidate-status-heading i { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.12); color: #c4ceda; font-style: normal; font-weight: 900; }
.candidate-status-block.is-elected .candidate-status-heading i { background: #69d0ac; color: var(--navy); }
.candidate-status-heading strong { font-size: .76rem; }
.candidate-status-heading > b { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); color: white; font-size: .72rem; }
.candidate-status-block ul { list-style: none; margin: 0; padding: 4px 11px 7px; }
.candidate-status-block li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.candidate-status-block li:last-child { border-bottom: 0; }
.candidate-status-block li > span { color: white; font-size: .75rem; font-weight: 700; }
.candidate-status-block li > small { color: #9fb0c4; font-size: .62rem; text-align: right; }
.candidate-status-block > p { margin: 0; padding: 11px; color: #9fb0c4; font-size: .68rem; text-align: left; }
.live-results-card > p { margin: 14px 0 0; text-align: center; color: #8fa2b8; font-size: .62rem; }
.offline-note { text-align: center; color: var(--muted); font-size: .72rem; }
.offline-note i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.cancel-session-button { width: 100%; min-height: 46px; margin-top: 4px; border: 0; background: transparent; color: #a5453d; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .76rem; font-weight: 800; }

.results-hero { background: var(--navy); color: white; padding: max(15px, env(safe-area-inset-top)) 18px 34px; border-radius: 0 0 30px 30px; text-align: center; }
.results-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.results-topline > span { font-size: .82rem; font-weight: 700; }
.results-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; margin: 7px 0 -4px; }
.results-hero h1 small { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #9fb0c4; font-size: 1rem; }
.results-hero > p { color: #bdc9d7; margin: 0 0 20px; }
.hero-progress { height: 6px; border-radius: 8px; background: rgba(255,255,255,.13); overflow: hidden; }
.hero-progress i { display: block; height: 100%; background: #fac5bd; }
.results-page { max-width: 760px; margin: auto; padding: 0 14px 28px; }
.stats-grid { margin: -18px 0 14px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 17px; box-shadow: var(--shadow); overflow: hidden; }
.stats-grid div { padding: 15px 7px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border: 0; }
.stats-grid span { color: var(--muted); font-size: .65rem; }
.stats-grid b { font-size: .93rem; margin-top: 3px; }
.results-card { border: 1px solid var(--line); background: var(--surface); border-radius: 19px; padding: 19px 16px; margin-top: 13px; }
.results-card.verdict { border-left: 5px solid var(--green); }
.results-card.verdict.counting { border-left-color: var(--amber); }
.results-card.verdict.local { border-left-color: var(--red); }
.results-card h2 { font-family: Georgia, "Times New Roman", serif; margin: 5px 0 7px; font-size: 1.35rem; line-height: 1.15; }
.results-card p { color: var(--muted); line-height: 1.45; margin: 0; font-size: .86rem; }
.results-card > small { display: block; margin-top: 11px; color: var(--green); font-size: .7rem; font-weight: 700; }
.results-list { display: grid; gap: 15px; }
.result-row { display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; }
.result-rank { font-family: Georgia, "Times New Roman", serif; color: #9ca3ad; font-size: 1.1rem; }
.result-main > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; }
.result-main span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.result-bar { height: 7px; border-radius: 8px; background: #e8e5de; overflow: hidden; margin-top: 7px; }
.result-bar i { display: block; height: 100%; border-radius: inherit; background: var(--navy); min-width: 2px; }
.result-row > b { font-size: 1.05rem; min-width: 30px; text-align: right; }
.seat-list { display: grid; gap: 10px; margin-top: 12px; }
.seat-list-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.seat-list-heading { display: flex; justify-content: space-between; gap: 14px; }
.seat-list-heading b { white-space: nowrap; color: var(--navy); }
.seat-list-row ol { margin: 10px 0 0; padding-left: 28px; color: #505a68; font-size: .8rem; line-height: 1.65; }
.seat-list-row small { display: block; margin-top: 7px; color: var(--red); font-size: .7rem; font-weight: 700; }
.fine-print { margin-top: 12px !important; font-size: .7rem !important; }
.results-actions { display: grid; gap: 10px; margin-top: 16px; }
.warning-box { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .72rem; line-height: 1.4; padding: 12px 8px; }
.warning-box svg { flex: 0 0 auto; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); min-height: calc(70px + var(--safe-bottom)); padding: 7px 28px var(--safe-bottom); background: rgba(255,253,249,.94); backdrop-filter: blur(16px); border-top: 1px solid rgba(16,35,63,.1); display: grid; grid-template-columns: 1fr 1fr; }
.bottom-nav button { border: 0; background: transparent; color: #8a9099; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; font-weight: 700; }
.bottom-nav button.active { color: var(--red); }
.bottom-nav svg { width: 23px; height: 23px; }
.legal-footer { text-align: center; color: #99968f; font-size: .64rem; padding: 20px 14px 0; }
.is-compact .legal-footer { display: none; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 30px); background: var(--navy); color: white; padding: 12px 17px; border-radius: 13px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s ease; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="warning"] { background: #8d3f37; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 680px) {
  .hero { padding-left: max(24px, calc((100% - 710px) / 2)); }
  .hero h1 { font-size: 4.4rem; }
  .candidate-grid { grid-template-columns: 1fr 1fr; }
  .field-grid:not(.two) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 520px) {
  .resume-card { align-items: stretch; flex-direction: column; }
  .resume-card-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 370px) {
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 2.55rem; }
  .stats-grid span { font-size: .58rem; }
  .stats-grid b { font-size: .8rem; }
  .field-grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
