:root {
    --ink:#17231f;
    --muted:#75817c;
    --green:#17795b;
    --green2:#0e6248;
    --mint:#e8f4ee;
    --line:#e7ebe8;
    --bg:#f7f9f7;
    --white:#fff;
    --gold:#d4a958;
    --red:#9b3b35;
    --shadow:0 12px 32px rgba(24,48,37,.06)
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:'DM Sans',sans-serif;
    font-size:15px
}
h1,h2,h3,.brand {
    font-family:Manrope,'DM Sans',sans-serif;
    letter-spacing:-.035em
}
h1 {
    font-size:clamp(30px,4vw,40px);
    margin:10px 0 8px;
    line-height:1.12
}
h2 {
    font-size:23px;
    margin:0 0 7px
}
h3 {
    font-size:19px;
    margin:0
}
p {
    margin:0;
    line-height:1.55
}
.muted {
    color:var(--muted)
}
.eyebrow {
    font-size:10px;
    letter-spacing:.17em;
    font-weight:700;
    color:var(--green)
}
.topbar {
    height:74px;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(calc((100% - 1160px)/2),28px)
}
.brand {
    display:flex;
    align-items:center;
    gap:11px;
    font-size:15px;
    font-weight:800;
    color:var(--ink);
    text-decoration:none;
    letter-spacing:-.02em
}
.brand b {
    font-size:10px;
    letter-spacing:.18em;
    color:var(--green);
    margin-left:4px
}
.brand-mark {
    width:34px;
    height:34px;
    background:var(--green);
    color:white;
    display:grid;
    place-items:center;
    border-radius:11px;
    font-size:16px
}
.top-actions {
    display:flex;
    align-items:center;
    gap:23px
}
.user-chip {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:600
}
.user-chip i,.status-pill i {
    width:7px;
    height:7px;
    background:#44a879;
    border-radius:50%;
    display:inline-block
}
.user-chip small {
    padding:4px 8px;
    background:#edf5f0;
    color:#53806a;
    border-radius:20px;
    font-size:10px
}
.text-button,.back-link {
    color:var(--muted);
    text-decoration:none;
    border:0;
    background:none;
    font:inherit;
    cursor:pointer
}
.text-button:hover,.back-link:hover {
    color:var(--green)
}
.page-wrap {
    max-width:1120px;
    margin:0 auto;
    padding:44px 26px 38px;
    min-height:calc(100vh - 130px)
}
.welcome-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:31px
}
.status-pill {
    display:flex;
    align-items:center;
    gap:8px;
    background:#edf6f0;
    color:#4c7c62;
    border:1px solid #dcebe0;
    padding:9px 13px;
    border-radius:30px;
    font-size:12px;
    font-weight:600
}
.admin-banner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#edf4ef;
    border:1px solid #dce9df;
    padding:17px 20px;
    border-radius:12px;
    margin:0 0 35px
}
.admin-banner b {
    font-size:14px
}
.admin-banner p {
    font-size:12px;
    color:var(--muted);
    margin-top:3px
}
.button {
    height:43px;
    padding:0 17px;
    border:0;
    border-radius:8px;
    font:600 13px 'DM Sans',sans-serif;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    cursor:pointer;
    transition:.15s ease
}
.button span {
    font-size:17px;
    font-weight:400
}
.button.primary {
    color:white;
    background:var(--green);
    box-shadow:0 4px 10px #17795b24
}
.button.primary:hover {
    background:var(--green2);
    transform:translateY(-1px)
}
.button.dark {
    background:#263c32;
    color:white
}
.button.subtle {
    background:#f1f5f2;
    color:var(--green);
    border:1px solid #dfe9e2
}
.button.full {
    width:100%
}
.section-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    margin:0 0 17px
}
.section-heading p {
    font-size:13px;
    color:var(--muted)
}
.quiet-tag {
    font-size:10px;
    letter-spacing:.12em;
    font-weight:700;
    color:#8d9992
}
.candidate-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px
}
.candidate-card,.edit-card {
    background:white;
    border:1px solid var(--line);
    border-radius:13px;
    overflow:hidden;
    box-shadow:var(--shadow)
}
.candidate-photo {
    height:255px;
    position:relative;
    background:#e9eeeb;
    overflow:hidden
}
.candidate-photo img,.ballot-photo img,.edit-photo img {
    width:100%;
    height:100%;
    object-fit:cover
}
.photo-placeholder {
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:10px;
    background:radial-gradient(circle at 50% 35%,#dfeee5,#e9edeb 70%);
    color:var(--green)
}
.photo-placeholder span {
    width:94px;
    height:94px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#d1e6d8;
    color:var(--green);
    font:700 40px Manrope
}
.photo-placeholder small {
    font-size:9px;
    letter-spacing:.16em;
    color:#789486;
    font-weight:700
}
.candidate-number {
    position:absolute;
    right:14px;
    top:14px;
    padding:7px 10px;
    color:#315b46;
    background:#ffffffda;
    border-radius:6px;
    font-size:10px;
    font-weight:700;
    letter-spacing:.1em
}
.candidate-info {
    padding:19px 21px 21px
}
.candidate-info h3 {
    margin-bottom:6px
}
.candidate-info p {
    color:var(--muted);
    font-size:13px
}
.vote-panel {
    margin-top:22px;
    padding:20px 22px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px
}
.vote-copy {
    display:flex;
    align-items:center;
    gap:14px
}
.vote-icon {
    width:38px;
    height:38px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#eaf4ed;
    color:var(--green);
    font-weight:700
}
.vote-copy h3 {
    font-size:15px;
    margin-bottom:4px
}
.vote-copy p,.footnote {
    color:var(--muted);
    font-size:12px
}
.footnote {
    text-align:center;
    margin:17px 0
}
.footer {
    height:56px;
    display:flex;
    gap:9px;
    align-items:center;
    justify-content:center;
    border-top:1px solid var(--line);
    color:#89938e;
    font-size:11px
}
.footer span {
    color:#bbc4be
}
.auth-wrap {
    min-height:100vh
}
.auth-layout {
    min-height:100vh;
    display:grid;
    grid-template-columns:1.06fr .94fr;
    background:white
}
.auth-art {
    position:relative;
    overflow:hidden;
    background:#155d48;
    color:white;
    padding:58px clamp(36px,7vw,110px);
    display:flex;
    flex-direction:column;
    justify-content:center
}
.auth-art:before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(145deg,#155d48 3%,#0b4738 100%)
}
.art-orb {
    position:absolute;
    border:1px solid #ffffff20;
    border-radius:50%
}
.orb-a {
    width:600px;
    height:600px;
    right:-240px;
    top:-170px
}
.orb-b {
    width:390px;
    height:390px;
    right:-136px;
    top:-65px
}
.art-content,.art-footer {
    position:relative;
    z-index:1
}
.eyebrow.light {
    color:#a9d9bc
}
.art-content h1 {
    font-size:clamp(44px,6vw,70px);
    letter-spacing:-.065em;
    line-height:1.04;
    margin:21px 0
}
.art-content h1 em {
    font-style:normal;
    color:#b4d6a7
}
.art-content>p {
    color:#d2e2d9;
    font-size:16px;
    max-width:360px
}
.art-note {
    margin-top:47px;
    padding:15px 17px;
    border:1px solid #ffffff30;
    border-radius:10px;
    display:flex;
    align-items:center;
    gap:13px;
    width:max-content;
    background:#ffffff0a
}
.shield {
    width:32px;
    height:32px;
    border-radius:50%;
    background:#ffffff1c;
    display:grid;
    place-items:center;
    color:#b4d6a7
}
.art-note b,.art-note small {
    display:block
}
.art-note b {
    font-size:12px
}
.art-note small {
    color:#c2dbce;
    font-size:11px;
    margin-top:4px
}
.art-footer {
    position:absolute;
    bottom:32px;
    color:#c4d9ce;
    font-size:11px
}
.auth-panel {
    padding:45px clamp(32px,7vw,100px);
    display:flex;
    flex-direction:column
}
.auth-brand {
    align-self:flex-start
}
.auth-form {
    width:100%;
    max-width:380px;
    margin:auto
}
.auth-form h2 {
    font-size:31px;
    margin-top:12px
}
.auth-form>.muted {
    font-size:13px;
    margin-bottom:28px
}
.stack {
    display:flex;
    flex-direction:column;
    gap:17px
}
.stack label,.create-form label,.edit-card label {
    font-size:12px;
    font-weight:600;
    display:flex;
    flex-direction:column;
    gap:8px
}
.stack input,.create-form input,.edit-card input:not([type=file]) {
    width:100%;
    height:44px;
    border:1px solid #dfe5e0;
    border-radius:7px;
    background:white;
    padding:0 12px;
    font:13px 'DM Sans',sans-serif;
    color:var(--ink);
    outline:none
}
.stack input:focus,.create-form input:focus,.edit-card input:focus {
    border-color:#70a78c;
    box-shadow:0 0 0 3px #e7f2eb
}
.stack .button {
    margin-top:7px;
    height:47px
}
.secure-note {
    text-align:center;
    margin-top:23px;
    color:#8b9991;
    font-size:11px
}
.secure-note span {
    color:var(--green);
    font-size:8px;
    margin-right:5px
}
.auth-bottom {
    margin-top:auto;
    text-align:center;
    color:#8b9690;
    font-size:11px
}
.notice {
    padding:12px 14px;
    border-radius:8px;
    font-size:13px;
    margin-bottom:18px
}
.notice.error {
    background:#fff1ef;
    color:var(--red);
    border:1px solid #f1d8d4
}
.notice.success {
    background:#ecf6ee;
    color:#306a4b;
    border:1px solid #d9eadd
}
.auth-form .notice {
    margin-bottom:16px
}
.vote-header {
    margin:23px 0 27px
}
.back-link {
    font-size:12px
}
.ballot-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px
}
.ballot-option {
    position:relative;
    display:flex;
    flex-direction:column;
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:.15s
}
.ballot-option:hover {
    border-color:#9ebdaa;
    transform:translateY(-2px)
}
.ballot-option input {
    position:absolute;
    opacity:0
}
.ballot-option:has(input:checked) {
    border:2px solid var(--green);
    box-shadow:0 0 0 3px #17795b13
}
.radio-ui {
    position:absolute;
    z-index:2;
    top:14px;
    left:14px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#fff;
    border:1px solid #c5d0c9
}
.ballot-option input:checked~.radio-ui {
    border:6px solid var(--green)
}
.ballot-photo {
    height:200px;
    background:#e9eeeb;
    display:grid;
    place-items:center;
    color:var(--green)
}
.ballot-photo>span {
    width:75px;
    height:75px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#d1e6d8;
    font:700 34px Manrope
}
.ballot-text {
    padding:15px 18px;
    display:flex;
    flex-direction:column;
    gap:5px
}
.ballot-text small {
    color:var(--green);
    font-size:9px;
    font-weight:700;
    letter-spacing:.12em
}
.ballot-text b {
    font:700 17px Manrope
}
.ballot-text>span {
    font-size:12px;
    color:var(--muted)
}
.select-label {
    margin:0 18px 17px;
    align-self:flex-end;
    font-size:11px;
    color:#8c9991
}
.ballot-option:has(input:checked) .select-label {
    color:var(--green);
    font-weight:700
}
.ballot-submit {
    margin-top:21px;
    padding:17px 19px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px
}
.ballot-submit>span {
    font-size:12px;
    color:var(--muted)
}
.already-voted {
    max-width:520px;
    margin:65px auto;
    background:white;
    border:1px solid var(--line);
    border-radius:14px;
    padding:42px;
    text-align:center
}
.success-mark {
    width:52px;
    height:52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    margin:0 auto 17px;
    background:#eaf4ed;
    color:var(--green);
    font-size:24px
}
.already-voted p {
    color:var(--muted);
    margin:8px 0 23px;
    font-size:13px
}
.admin-section {
    margin-top:39px
}
.stats-row {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:34px
}
.stat-card {
    padding:17px 19px;
    border:1px solid var(--line);
    border-radius:10px;
    background:white
}
.stat-card span {
    display:block;
    color:#87938c;
    font-size:9px;
    letter-spacing:.13em;
    font-weight:700
}
.stat-card b {
    display:block;
    font:700 27px Manrope;
    margin-top:7px
}
.admin-candidate-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px
}
.edit-card {
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:13px
}
.edit-photo {
    width:76px;
    height:76px;
    border-radius:10px;
    background:#e9f0eb;
    overflow:hidden;
    display:grid;
    place-items:center;
    color:var(--green);
    font:700 26px Manrope
}
.upload-label {
    padding:12px;
    background:#f8faf8;
    border:1px dashed #cbd8ce;
    border-radius:8px
}
.upload-label input {
    font-size:11px
}
.upload-label small {
    font-size:10px;
    color:var(--muted);
    font-weight:400
}
.accounts-layout {
    display:grid;
    grid-template-columns:minmax(260px,.8fr) 1.2fr;
    gap:20px
}
.create-form,.member-list {
    padding:20px;
    background:white;
    border:1px solid var(--line);
    border-radius:11px
}
.create-form {
    display:flex;
    flex-direction:column;
    gap:14px
}
.form-hint {
    font-size:11px;
    color:var(--muted)
}
.list-title {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:10px;
    letter-spacing:.12em;
    color:#849189;
    font-weight:700;
    margin-bottom:9px
}
.list-title span {
    background:#edf4ef;
    border-radius:20px;
    padding:4px 8px;
    color:#52755e
}
.member-row {
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 0;
    border-bottom:1px solid #eff2ef
}
.member-row:last-child {
    border:0
}
.avatar-small {
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e4f0e7;
    color:var(--green);
    font-weight:700;
    font-size:12px
}
.member-row>span:nth-child(3) {
    display:flex;
    flex-direction:column;
    gap:3px;
    flex:1
}
.member-row b {
    font-size:12px
}
.member-row small {
    font-size:10px;
    color:var(--muted)
}
.vote-state {
    font-size:9px;
    color:#8a938e;
    background:#f2f4f2;
    padding:5px 8px;
    border-radius:20px
}
.vote-state.done {
    background:#eaf4ed;
    color:#39805a
}
.empty-state {
    padding:25px;
    text-align:center;
    color:var(--muted);
    font-size:12px
}
.admin-privacy {
    margin-top:22px;
    padding:14px 16px;
    border-radius:8px;
    background:#eff5f0;
    color:#6d8173;
    font-size:11px
}
@media(max-width:760px) {
    .auth-layout {
        grid-template-columns:1fr
    }
    .auth-art {
        min-height:340px;
        padding:45px 32px
    }
    .auth-art h1 {
        font-size:48px!important;
        margin:15px 0
    }
    .art-note {
        margin-top:25px
    }
    .art-footer {
        display:none
    }
    .auth-panel {
        min-height:540px;
        padding:28px 30px 35px
    }
    .auth-form {
        margin:55px auto
    }
    .auth-bottom {
        margin-top:20px
    }
    .topbar {
        height:64px;
        padding:0 18px
    }
    .top-actions {
        gap:10px
    }
    .user-chip {
        font-size:11px;
        gap:5px
    }
    .user-chip small {
        display:none
    }
    .page-wrap {
        padding:30px 18px
    }
    .welcome-row {
        align-items:flex-start
    }
    .welcome-row>.status-pill {
        font-size:10px;
        padding:7px 9px
    }
    .candidate-photo {
        height:190px
    }
    .ballot-photo {
        height:155px
    }
    .candidate-info {
        padding:15px
    }
    .candidate-info h3 {
        font-size:16px
    }
    .candidate-info p {
        font-size:11px
    }
    .ballot-grid {
        gap:12px
    }
    .ballot-text {
        padding:12px
    }
    .ballot-text b {
        font-size:14px
    }
    .ballot-submit {
        align-items:flex-start;
        flex-direction:column
    }
    .ballot-submit .button {
        width:100%
    }
    .accounts-layout {
        grid-template-columns:1fr
    }
    .admin-candidate-grid {
        gap:12px
    }
    .edit-card {
        padding:13px
    }
    .stats-row {
        gap:8px
    }
    .stat-card {
        padding:13px
    }
    .stat-card b {
        font-size:22px
    }
    .stat-card span {
        font-size:8px
    }
}
@media(max-width:470px) {
    .candidate-grid,.ballot-grid,.admin-candidate-grid {
        grid-template-columns:1fr
    }
    .candidate-photo {
        height:230px
    }
    .ballot-photo {
        height:210px
    }
    .admin-banner {
        align-items:flex-start;
        flex-direction:column
    }
    .section-heading {
        align-items:flex-start
    }
    .quiet-tag {
        font-size:8px
    }
    .vote-panel {
        align-items:flex-start;
        flex-direction:column
    }
    .vote-panel>.button {
        width:100%
    }
}
.language-switch {
    display:flex;
    align-items:center;
    gap:6px;
    padding:7px 11px;
    border:1px solid #dfe8e1;
    background:#fff;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    z-index:10
}
.language-switch a {
    color:var(--green);
    text-decoration:none
}
.language-switch a:hover {
    text-decoration:underline
}
.auth-wrap>.language-switch {
    position:fixed;
    top:20px;
    right:24px
}
.topbar .language-switch {
    margin-left:0
}
@media(max-width:760px) {
    .auth-wrap>.language-switch {
        top:12px;
        right:12px
    }
    .topbar .language-switch {
        padding:6px 8px;
        font-size:10px
    }
    .top-actions {
        gap:8px
    }
}
.results-panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:11px;
    padding:5px 20px;
    box-shadow:var(--shadow)
}
.result-row {
    display:grid;
    grid-template-columns:minmax(170px,1fr) minmax(100px,1.2fr) 52px;
    align-items:center;
    gap:18px;
    padding:14px 0;
    border-bottom:1px solid #eff2ef
}
.result-row:last-child {
    border-bottom:0
}
.result-person {
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0
}
.result-person img,.result-person>span {
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    background:#e5f0e8;
    display:grid;
    place-items:center;
    color:var(--green);
    font-weight:700
}
.result-person>div {
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0
}
.result-person b {
    font-size:13px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.result-person small {
    font-size:10px;
    color:var(--muted)
}
.result-meter {
    height:8px;
    background:#edf1ee;
    border-radius:10px;
    overflow:hidden
}
.result-meter>div {
    height:100%;
    background:var(--green);
    border-radius:10px
}
.result-percent {
    text-align:right;
    color:var(--green);
    font:700 14px Manrope
}
@media(max-width:470px) {
    .results-panel {
        padding:4px 12px
    }
    .result-row {
        grid-template-columns:minmax(100px,1fr) minmax(55px,.8fr) 38px;
        gap:9px
    }
    .result-person img,.result-person>span {
        width:34px;
        height:34px
    }
    .result-person {
        gap:7px
    }
    .result-person b {
        font-size:11px
    }
    .result-percent {
        font-size:12px
    }
}
.add-candidate-card {
    min-height:280px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px dashed #bfd0c3;
    background:#fbfdfb;
    border-radius:12px;
    color:var(--ink)
}
.add-candidate-plus {
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    border-radius:50%;
    background:#eaf4ed;
    color:var(--green);
    font-size:26px;
    font-weight:400
}
.add-candidate-card b {
    font:700 14px Manrope
}
.add-candidate-card small {
    font-size:11px;
    color:var(--muted)
}
.add-candidate-card .button {
    margin-top:5px
}
.candidate-photo img,.ballot-photo img,.edit-photo img {
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:cover;
    object-position:center
}
.button.danger {
    background:#fff1ef;
    color:#9b3b35;
    border:1px solid #f0d8d4
}
.button.danger:hover {
    background:#fae5e2
}
.remove-user {
    margin-left:auto
}
.remove-link {
    border:0;
    background:transparent;
    color:#9b3b35;
    font:600 10px 'DM Sans',sans-serif;
    cursor:pointer;
    padding:6px 4px
}
.remove-link:hover {
    text-decoration:underline
}
.remove-locked {
    font-size:9px;
    color:#8a938e;
    white-space:nowrap
}
@media(max-width:540px) {
    .remove-locked {
        white-space:normal;
        text-align:right;
        max-width:72px
    }
    .member-row {
        gap:7px
    }
}
.reset-panel {
    padding:20px;
    background:#fffafa;
    border:1px solid #efd9d5;
    border-radius:11px
}
.reset-panel>p {
    font-size:12px;
    color:#815b57;
    margin-bottom:15px
}
.reset-form {
    display:flex;
    align-items:end;
    gap:14px;
    flex-wrap:wrap
}
.reset-form label {
    font-size:12px;
    font-weight:600;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:min(100%,260px)
}
.reset-form input[name=confirm_phrase] {
    height:42px;
    border:1px solid #e6d6d3;
    border-radius:7px;
    padding:0 11px;
    font:13px 'DM Sans',sans-serif
}
.reset-form .button {
    background:#a33b32;
    color:white
}
.reset-form .button:hover {
    background:#852c25
}
@media(max-width:540px) {
    .reset-form {
        align-items:stretch;
        flex-direction:column
    }
    .reset-form .button {
        width:100%
    }
}
.account-tools {
    display:flex;
    flex-direction:column;
    gap:14px;
    min-width:0
}
.bulk-import-form {
    padding:18px;
    background:#f3f7f4;
    border:1px solid #dfe9e2;
    border-radius:11px;
    display:flex;
    flex-direction:column;
    gap:11px
}
.bulk-import-form h3 {
    font-size:15px
}
.bulk-import-form p,.bulk-import-form small {
    font-size:11px;
    line-height:1.5;
    color:var(--muted)
}
.bulk-import-form label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:11px;
    font-weight:600
}
.bulk-import-form input[type=file] {
    width:100%;
    font:11px 'DM Sans',sans-serif;
    color:var(--muted)
}
.template-link {
    font-size:11px;
    font-weight:700;
    color:var(--green);
    text-decoration:none
}
.template-link:hover {
    text-decoration:underline
}
.brand-logo {
    width:56px;
    height:44px;
    object-fit:contain;
    display:block;
    flex:0 0 auto
}
.auth-brand .brand-logo {
    width:68px;
    height:54px
}
@media(max-width:760px) {
    .brand-logo {
        width:48px;
        height:38px
    }
    .auth-brand .brand-logo {
        width:62px;
        height:48px
    }
}
/* MPK visual refinement */
:root {
    --ink:#142a22;
    --muted:#6f8178;
    --green:#168052;
    --green2:#0c6542;
    --mint:#e8f3ec;
    --line:#e3ebe5;
    --bg:#f5f8f5;
    --gold:#e3bd59;
    --shadow:0 16px 42px rgba(20,55,37,.075)
}
body {
    background:radial-gradient(ellipse at 90% -10%,#eaf4ed 0,transparent 38%),var(--bg)
}
.topbar {
    height:78px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    box-shadow:0 1px 0 rgba(21,70,45,.04)
}
.brand {
    gap:12px;
    font-size:16px
}
.brand-logo {
    width:60px;
    height:48px;
    filter:drop-shadow(0 4px 5px rgba(16,70,41,.10))
}
.brand b {
    color:#17804f
}
.page-wrap {
    padding-top:52px;
    padding-bottom:56px
}
.welcome-row {
    margin-bottom:36px
}
.welcome-row h1 {
    font-size:clamp(34px,4vw,46px);
    letter-spacing:-.055em;
    margin-top:12px
}
.eyebrow {
    letter-spacing:.19em
}
.status-pill {
    padding:10px 15px;
    box-shadow:0 4px 14px rgba(30,110,68,.06)
}
.section-heading {
    margin-bottom:19px
}
.section-heading h2 {
    font-size:24px;
    letter-spacing:-.04em
}
.section-heading p {
    margin-top:5px
}
.candidate-grid {
    gap:22px
}
.candidate-card,.edit-card {
    border-radius:17px;
    box-shadow:0 10px 30px rgba(24,58,39,.055);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.candidate-card:hover {
    transform:translateY(-4px);
    box-shadow:0 18px 38px rgba(24,58,39,.12);
    border-color:#d4e4d8
}
.candidate-photo {
    height:300px;
    background:linear-gradient(145deg,#e8f0e9,#dfe9e1)
}
.candidate-number {
    background:#fff;
    color:#176c45;
    box-shadow:0 5px 18px #173a2720;
    border-radius:20px;
    padding:8px 12px
}
.candidate-info {
    padding:21px 23px 24px
}
.candidate-info h3 {
    font-size:21px
}
.candidate-info p {
    margin-top:5px
}
.vote-panel {
    margin-top:25px;
    padding:22px 24px;
    border-radius:15px;
    box-shadow:0 8px 24px rgba(25,58,39,.045)
}
.vote-icon {
    width:42px;
    height:42px;
    background:#e3f2e8
}
.button {
    border-radius:9px;
    min-height:44px
}
.button.primary {
    background:linear-gradient(135deg,#198652,#116b47);
    box-shadow:0 6px 15px #1680522b
}
.button.primary:hover {
    box-shadow:0 9px 20px #16805236
}
.admin-banner {
    border-radius:15px;
    background:linear-gradient(110deg,#edf7ef,#e6f2e9);
    padding:19px 22px;
    margin-bottom:37px
}
.auth-layout {
    background:#fff
}
.auth-art {
    background:#124b37;
    padding-left:clamp(42px,8vw,124px)
}
.auth-art:before {
    background:radial-gradient(circle at 88% 30%,#25734f 0,transparent 37%),linear-gradient(150deg,#176343 0%,#0d4736 68%,#093c2e 100%)
}
.auth-art:after {
    content:'';
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    right:-220px;
    bottom:-235px;
    border:1px solid #ffffff18;
    box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff05
}
.auth-emblem {
    position:relative;
    z-index:1;
    width:150px;
    height:110px;
    object-fit:contain;
    margin:0 0 30px -8px;
    filter:drop-shadow(0 10px 18px #001b1050)
}
.art-content h1 {
    font-size:clamp(48px,6.3vw,76px);
    margin:17px 0 19px
}
.art-content>p {
    max-width:400px;
    font-size:16px
}
.art-note {
    border-radius:13px;
    background:#ffffff0d;
    margin-top:40px;
    padding:16px 18px
}
.auth-panel {
    padding:48px clamp(36px,7vw,104px);
    background:linear-gradient(180deg,#fff,#fcfdfc)
}
.auth-brand {
    gap:13px
}
.auth-brand .brand-logo {
    width:74px;
    height:58px
}
.auth-form h2 {
    letter-spacing:-.05em
}
.stack {
    gap:18px
}
.stack input {
    height:48px;
    border-radius:9px
}
.stack input:focus {
    border-color:#64a780;
    box-shadow:0 0 0 4px #e5f2e9
}
.stack .button {
    height:49px;
    border-radius:9px
}
.auth-bottom {
    padding-top:16px
}
.ballot-option {
    border-radius:16px;
    box-shadow:0 8px 25px rgba(24,58,39,.045)
}
.ballot-option:has(input:checked) {
    border:2px solid var(--green);
    box-shadow:0 8px 28px #17795b20
}
.ballot-photo {
    height:240px;
    background:linear-gradient(145deg,#edf3ee,#e1ebe3)
}
.ballot-text b {
    letter-spacing:-.035em
}
.ballot-submit {
    margin-top:24px;
    border-radius:13px;
    padding:18px 21px;
    box-shadow:0 7px 22px rgba(24,58,39,.04)
}
.admin-section {
    margin-top:44px
}
.stats-row {
    gap:16px;
    margin-bottom:38px
}
.stat-card {
    border-radius:13px;
    padding:20px 21px;
    box-shadow:0 7px 20px rgba(24,58,39,.04)
}
.stat-card b {
    font-size:31px;
    color:#165e3d
}
.results-panel,.member-list,.create-form,.bulk-import-form,.reset-panel {
    border-radius:14px;
    box-shadow:0 8px 24px rgba(24,58,39,.045)
}
.edit-card {
    padding:21px
}
.edit-photo {
    width:88px;
    height:88px;
    border-radius:13px
}
.add-candidate-card {
    border-radius:16px;
    min-height:310px;
    transition:.18s ease
}
.add-candidate-card:hover {
    background:#f3faf5;
    border-color:#80b794
}
.accounts-layout {
    gap:22px
}
.footer {
    background:#fff
}
@media(max-width:760px) {
    .page-wrap {
        padding-top:33px;
        padding-bottom:40px
    }
    .candidate-photo {
        height:230px
    }
    .ballot-photo {
        height:180px
    }
    .auth-emblem {
        width:124px;
        height:92px;
        margin-bottom:19px
    }
    .auth-art {
        padding-left:32px
    }
    .art-note {
        margin-top:24px
    }
    .auth-panel {
        padding-top:34px
    }
    .stats-row {
        margin-bottom:28px
    }
}
@media(max-width:470px) {
    .candidate-photo {
        height:240px
    }
    .ballot-photo {
        height:210px
    }
    .auth-emblem {
        width:110px;
        height:82px
    }
    .welcome-row h1 {
        font-size:34px
    }
    .brand-logo {
        width:44px;
        height:36px
    }
    .topbar .brand {
        font-size:14px
    }
    .auth-brand .brand-logo {
        width:60px;
        height:47px
    }
}
.audit-panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 8px 24px rgba(24,58,39,.045);
    padding:4px 20px
}
.audit-row {
    display:flex;
    align-items:center;
    gap:13px;
    padding:14px 0;
    border-bottom:1px solid #eff2ef
}
.audit-row:last-child {
    border-bottom:0
}
.audit-icon {
    width:34px;
    height:34px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#eaf4ed;
    color:var(--green);
    font-size:17px
}
.audit-copy {
    display:flex;
    flex-direction:column;
    gap:4px;
    flex:1;
    min-width:0
}
.audit-copy b {
    font-size:12px;
    overflow-wrap:anywhere
}
.audit-copy small,.audit-row time {
    font-size:10px;
    color:var(--muted)
}
.audit-row time {
    white-space:nowrap
}
.confirmation-card {
    max-width:700px;
    margin:34px auto 65px;
    padding:26px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:17px;
    box-shadow:0 14px 40px rgba(24,58,39,.07)
}
.confirmation-heading {
    display:flex;
    align-items:center;
    gap:13px;
    padding-bottom:20px;
    border-bottom:1px solid #edf1ee
}
.confirmation-heading h2 {
    font-size:19px
}
.confirmation-heading p {
    font-size:12px;
    color:var(--muted);
    margin-top:4px
}
.confirmation-check {
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e8f4eb;
    color:var(--green);
    font-weight:700
}
.confirmation-candidate {
    display:flex;
    align-items:center;
    gap:20px;
    padding:23px 0
}
.confirmation-photo {
    width:150px;
    height:150px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:13px;
    background:linear-gradient(145deg,#edf3ee,#e1ebe3);
    color:var(--green)
}
.confirmation-photo img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center
}
.confirmation-photo>span {
    width:66px;
    height:66px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#d1e6d8;
    font:700 28px Manrope
}
.confirmation-person h3 {
    font-size:24px;
    margin:8px 0
}
.confirmation-person p {
    font-size:13px;
    color:var(--muted)
}
.confirmation-note {
    padding:13px 15px;
    border-radius:9px;
    background:#f3f7f4;
    color:#63796c;
    font-size:12px
}
.confirmation-actions {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:20px
}
.confirmation-actions form {
    margin:0
}
.confirmation-actions .button {
    min-height:46px
}
@media(max-width:540px) {
    .audit-panel {
        padding:3px 12px
    }
    .audit-row {
        gap:8px
    }
    .audit-row time {
        font-size:9px;
        white-space:normal;
        text-align:right
    }
    .confirmation-card {
        padding:18px;
        margin-top:23px
    }
    .confirmation-candidate {
        gap:13px
    }
    .confirmation-photo {
        width:100px;
        height:120px
    }
    .confirmation-person h3 {
        font-size:19px
    }
    .confirmation-actions {
        align-items:stretch;
        flex-direction:column
    }
    .confirmation-actions .button {
        width:100%
    }
}
/* Dedicated ballot confirmation screen */
.confirmation-card {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    max-width:790px;
    margin:32px auto 72px;
    padding:30px 34px 28px;
    border:1px solid #e2ebe4;
    border-radius:24px;
    background:linear-gradient(145deg,#fff 0%,#fbfdfb 70%,#f0f7f1 100%);
    box-shadow:0 24px 70px rgba(13,66,41,.11)
}
.confirmation-card:before {
    content:"";
    position:absolute;
    z-index:-1;
    width:320px;
    height:320px;
    right:-185px;
    top:-195px;
    border-radius:50%;
    background:radial-gradient(circle,#d9eddf 0,rgba(217,237,223,0) 70%)
}
.confirmation-progress {
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 0 24px;
    border-bottom:1px solid #e8eee9
}
.confirmation-progress>span:not(.step-connector) {
    display:flex;
    align-items:center;
    gap:9px;
    color:#99a69e
}
.confirmation-progress i {
    width:27px;
    height:27px;
    display:grid;
    place-items:center;
    border-radius:50%;
    font-style:normal;
    font:700 11px Manrope;
    background:#edf1ee;
    color:#849188
}
.confirmation-progress b {
    font-size:11px;
    font-weight:700
}
.confirmation-progress .step-done {
    color:#4f8665!important
}
.confirmation-progress .step-done i {
    background:#e5f3e9;
    color:#18804f
}
.confirmation-progress .step-current {
    color:#163d2c!important
}
.confirmation-progress .step-current i {
    background:#177a4c;
    color:#fff;
    box-shadow:0 4px 12px #177a4c40
}
.step-connector {
    height:1px;
    width:55px;
    background:linear-gradient(90deg,#b8d9c2,#dce6de)
}
.confirmation-heading {
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    padding:23px 0 19px;
    border:0
}
.confirmation-heading h2 {
    font-size:21px;
    letter-spacing:-.04em
}
.confirmation-heading p {
    font-size:12px;
    color:#718278;
    margin-top:5px
}
.confirmation-check {
    width:42px;
    height:42px;
    border:1px solid #d9ebdd;
    background:linear-gradient(145deg,#edf8ef,#deefe2);
    box-shadow:0 5px 12px #24603c12
}
.confirmation-candidate {
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:210px 1fr;
    align-items:center;
    gap:26px;
    padding:18px;
    border:1px solid #286649;
    border-radius:19px;
    background:radial-gradient(circle at 82% 18%,#347453 0,transparent 33%),linear-gradient(125deg,#174f38,#103f2e 74%,#0c3829);
    box-shadow:0 14px 30px #103f2e28
}
.confirmation-candidate:after {
    content:"";
    position:absolute;
    pointer-events:none;
    right:-85px;
    bottom:-155px;
    width:300px;
    height:300px;
    border:1px solid #ffffff15;
    border-radius:50%;
    box-shadow:0 0 0 35px #ffffff08,0 0 0 70px #ffffff05
}
.confirmation-photo {
    position:relative;
    z-index:1;
    width:210px;
    height:218px;
    border:1px solid #ffffff30;
    border-radius:13px;
    background:linear-gradient(145deg,#dce9df,#c6dacb);
    box-shadow:0 10px 24px #001a1040
}
.confirmation-photo img {
    object-fit:cover;
    object-position:center
}
.confirmation-photo>span {
    width:76px;
    height:76px;
    background:#e6f1e8;
    color:#176c45;
    font-size:33px
}
.confirmation-person {
    position:relative;
    z-index:1;
    padding:6px 9px 6px 0;
    color:#fff
}
.confirmation-person .eyebrow {
    color:#b8dfc5;
    font-size:9px;
    letter-spacing:.2em
}
.confirmation-person h3 {
    font-size:clamp(24px,4vw,34px);
    letter-spacing:-.055em;
    margin:12px 0 8px;
    color:#fff
}
.confirmation-person p {
    font-size:13px;
    color:#d4e6d9;
    max-width:330px
}
.confirmation-note {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:18px;
    padding:14px 16px;
    border:1px solid #e0ebe2;
    border-radius:12px;
    background:#f4f8f4;
    color:#547160;
    font-size:12px
}
.confirmation-note:before {
    content:"";
    width:7px;
    height:7px;
    flex:0 0 auto;
    border-radius:50%;
    background:#3b9a66;
    box-shadow:0 0 0 4px #dff0e4
}
.confirmation-actions {
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #e8eee9
}
.confirmation-actions .button {
    min-height:48px;
    padding:0 19px;
    border-radius:10px;
    font-size:12px
}
.confirmation-actions .button.primary {
    box-shadow:0 7px 18px #177a4c35
}
.confirmation-actions .button.subtle {
    background:#fff;
    border-color:#dfe8e1;
    color:#5d7164
}
.confirmation-actions .button.subtle:hover {
    background:#f3f7f4;
    border-color:#bfd5c5
}
@media(max-width:600px) {
    .confirmation-card {
        padding:20px 17px 18px;
        border-radius:19px;
        margin:22px auto 46px
    }
    .confirmation-progress {
        gap:8px;
        padding-bottom:19px
    }
    .confirmation-progress b {
        font-size:10px
    }
    .step-connector {
        width:28px
    }
    .confirmation-heading {
        padding:20px 0 16px
    }
    .confirmation-heading h2 {
        font-size:18px
    }
    .confirmation-candidate {
        grid-template-columns:112px 1fr;
        gap:15px;
        padding:12px;
        border-radius:15px
    }
    .confirmation-photo {
        width:112px;
        height:142px;
        border-radius:10px
    }
    .confirmation-person h3 {
        font-size:22px;
        margin:9px 0 6px
    }
    .confirmation-person p {
        font-size:11px
    }
    .confirmation-note {
        font-size:11px
    }
    .confirmation-actions {
        gap:10px
    }
    .confirmation-actions .button {
        min-height:46px;
        padding:0 12px;
        font-size:11px
    }
}
@media(max-width:390px) {
    .confirmation-candidate {
        grid-template-columns:92px 1fr;
        gap:12px;
        padding:10px
    }
    .confirmation-photo {
        width:92px;
        height:125px
    }
    .confirmation-person h3 {
        font-size:19px
    }
}
/* Election administration, account security, backups and archive */
.brand-logo {
    width:42px;
    height:42px;
    object-fit:contain;
    filter:drop-shadow(0 3px 5px #132b1d1c)
}
.status-pill.status-closed {
    background:#f1f3f1;
    color:#657169;
    border-color:#e1e5e2
}
.status-pill.status-upcoming {
    background:#fff7e8;
    color:#956a22;
    border-color:#f0e5c9
}
.status-pill.status-not_scheduled {
    background:#f3f2ed;
    color:#777264;
    border-color:#e8e5da
}
.schedule-card {
    display:grid;
    grid-template-columns:minmax(210px,.7fr) 1.3fr;
    gap:22px;
    padding:22px;
    border:1px solid var(--line);
    border-radius:14px;
    background:white;
    box-shadow:var(--shadow)
}
.schedule-current {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:17px;
    border-radius:11px;
    background:linear-gradient(145deg,#edf6ef,#f7faf7)
}
.schedule-current small {
    font-size:11px;
    line-height:1.6;
    color:var(--muted)
}
.schedule-status {
    padding:7px 10px;
    border-radius:20px;
    background:#e2f2e6;
    color:#277249;
    font-size:12px
}
.schedule-status.status-closed {
    background:#edf0ed;
    color:#677169
}
.schedule-status.status-upcoming {
    background:#fff1d6;
    color:#956a22
}
.schedule-status.status-not_scheduled {
    background:#eeeae0;
    color:#766e55
}
.schedule-form {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
    align-content:center
}
.schedule-form label,.password-reset label,.reset-form label,.bulk-import-form label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:11px;
    font-weight:700;
    color:#53635a
}
.schedule-form label:first-child {
    grid-column:1/-1
}
.schedule-form input,.password-reset input,.reset-form input,.bulk-import-form input[type=file] {
    width:100%;
    height:42px;
    padding:0 11px;
    border:1px solid #dfe6e1;
    border-radius:7px;
    background:#fff;
    color:var(--ink);
    font:12px 'DM Sans',sans-serif
}
.schedule-form .button {
    grid-column:1/-1;
    justify-self:start
}
.results-locked {
    display:flex;
    align-items:center;
    gap:14px;
    padding:20px;
    border:1px solid #e4e8e4;
    border-radius:12px;
    background:#f3f5f3;
    color:#708078
}
.results-locked>span {
    font-size:22px
}
.results-locked b {
    font-size:13px;
    color:#34483c
}
.results-locked p {
    font-size:11px;
    margin-top:4px
}
.member-active-state {
    padding:5px 8px;
    border-radius:20px;
    background:#fff0eb;
    color:#9b5147;
    font-size:9px;
    white-space:nowrap
}
.member-active-state.active {
    background:#edf6ef;
    color:#3f7955
}
.member-toggle,.remove-user {
    margin:0
}
.mini-action,.remove-link {
    padding:5px 8px;
    border:1px solid #e2e8e3;
    border-radius:6px;
    background:#fff;
    color:#63736a;
    font:600 10px 'DM Sans',sans-serif;
    cursor:pointer;
    white-space:nowrap
}
.mini-action:hover {
    border-color:#9bbda5;
    color:var(--green)
}
.remove-link {
    color:#a1443c;
    border-color:#f0dedb
}
.remove-locked {
    font-size:9px;
    color:#939c96;
    max-width:88px
}
.password-reset {
    margin:0 0 6px 42px;
    padding:9px 0 12px;
    border-bottom:1px solid #eff2ef
}
.password-reset summary {
    cursor:pointer;
    color:var(--green);
    font-size:10px;
    font-weight:700
}
.password-reset form {
    display:flex;
    align-items:end;
    gap:9px;
    margin-top:10px
}
.password-reset label {
    flex:1
}
.password-reset input {
    height:37px
}
.password-reset .button {
    height:37px;
    white-space:nowrap;
    font-size:10px
}
.history-list {
    display:grid;
    gap:10px
}
.history-card {
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:11px;
    background:white
}
.history-card summary {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:15px 17px;
    cursor:pointer;
    list-style:none
}
.history-card summary::-webkit-details-marker {
    display:none
}
.history-title {
    display:flex;
    flex-direction:column;
    gap:4px
}
.history-title b {
    font-size:13px
}
.history-title small,.history-expand {
    font-size:10px;
    color:var(--muted)
}
.history-expand {
    display:flex;
    align-items:center;
    gap:8px
}
.history-card[open] .history-expand i {
    transform:rotate(180deg)
}
.history-results {
    padding:0 17px 12px
}
.history-results>div {
    display:flex;
    justify-content:space-between;
    padding:9px 0;
    border-top:1px solid #eff2ef;
    font-size:11px
}
.history-results b {
    color:var(--green)
}
.reset-panel {
    padding:19px 21px;
    border:1px solid #f0dfd9;
    border-radius:12px;
    background:#fffaf8
}
.reset-panel>p {
    max-width:760px;
    font-size:12px;
    color:#80635d
}
.reset-form {
    display:flex;
    align-items:end;
    gap:12px;
    margin-top:16px
}
.reset-form label {
    max-width:230px;
    flex:1
}
.button.danger {
    background:#a3443d;
    color:#fff
}
.button.danger:hover {
    background:#87372f
}
.bulk-import-form {
    display:flex;
    flex-direction:column;
    gap:11px;
    padding:18px;
    border:1px solid #e3ebe5;
    border-radius:10px;
    background:#f8faf8
}
.bulk-import-form h3 {
    font-size:15px
}
.bulk-import-form p,.bulk-import-form small {
    font-size:11px;
    color:var(--muted);
    line-height:1.5
}
.template-link {
    font-size:11px;
    color:var(--green);
    font-weight:700
}
.password-card {
    max-width:560px;
    margin:40px auto;
    padding:28px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:15px;
    box-shadow:var(--shadow)
}
.password-card h1 {
    font-size:30px
}
.password-card>.muted {
    font-size:12px;
    margin-bottom:22px
}
.password-card .stack small {
    font-size:10px;
    color:var(--muted);
    font-weight:400
}
.password-card .stack input {
    width:100%;
    height:44px;
    border:1px solid #dfe5e0;
    border-radius:7px;
    padding:0 12px;
    font:13px 'DM Sans',sans-serif
}
.password-card .stack input:focus {
    border-color:#70a78c;
    outline:3px solid #e7f2eb
}
.member-list {
    min-width:0
}
.member-row {
    flex-wrap:wrap
}
.member-row>span:nth-child(3) {
    min-width:110px
}
@media(max-width:900px) {
    .schedule-card {
        grid-template-columns:1fr
    }
    .member-row {
        gap:7px
    }
    .member-active-state {
        margin-left:auto
    }
}
@media(max-width:620px) {
    .schedule-form {
        grid-template-columns:1fr
    }
    .schedule-form label:first-child,.schedule-form .button {
        grid-column:auto
    }
    .schedule-form .button {
        width:100%
    }
    .reset-form {
        align-items:stretch;
        flex-direction:column
    }
    .reset-form label {
        max-width:none
    }
    .reset-form .button {
        width:100%
    }
    .password-reset {
        margin-left:0
    }
    .password-reset form {
        align-items:stretch;
        flex-direction:column
    }
    .password-reset .button {
        width:100%
    }
    .history-card summary {
        align-items:flex-start;
        flex-direction:column
    }
    .member-row>span:nth-child(3) {
        min-width:calc(100% - 72px)
    }
    .member-active-state {
        margin-left:0
    }
    .remove-locked {
        max-width:none
    }
}
.manual-controls {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-top:15px;
    padding:16px 18px;
    border:1px solid #e3ebe5;
    border-radius:11px;
    background:#f8faf8
}
.manual-controls>div {
    display:flex;
    flex-direction:column;
    gap:4px
}
.manual-controls>div b {
    font-size:12px;
    color:#34483c
}
.manual-controls>div small {
    font-size:10px;
    color:var(--muted)
}
.manual-controls form {
    margin:0
}
.manual-controls .button {
    white-space:nowrap
}
@media(max-width:620px) {
    .manual-controls {
        align-items:stretch;
        flex-direction:column
    }
    .manual-controls .button {
        width:100%
    }
}
.import-format-hint {
    padding:9px 11px;
    border-radius:7px;
    background:#eef5ef;
    color:#61786a;
    font-size:10px;
    line-height:1.5
}
.notice {
    position:sticky;
    top:10px;
    z-index:80;
    box-shadow:0 10px 28px rgba(25,45,33,.12)
}
/* Keep the admin activity feed compact; scroll the history within its panel. */
.audit-panel {
    max-height:330px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#b8cbbd #f3f6f3
}
.audit-panel::-webkit-scrollbar {
    width:9px
}
.audit-panel::-webkit-scrollbar-track {
    background:#f3f6f3;
    border-radius:9px
}
.audit-panel::-webkit-scrollbar-thumb {
    background:#b8cbbd;
    border:2px solid #f3f6f3;
    border-radius:9px
}
.audit-panel::-webkit-scrollbar-thumb:hover {
    background:#8eae98
}
/* Keep ballot images within their fixed photo frame. */
.ballot-photo {
    overflow:hidden;
    isolation:isolate
}
.ballot-photo img {
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center
}

/* Scroll the account list so it stays compact as member count grows. */
.member-list{max-height:520px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b8cbbd #f3f6f3}
.member-list .list-title{position:sticky;top:0;z-index:2;padding:5px 0;background:#fff}
.member-list::-webkit-scrollbar{width:9px}.member-list::-webkit-scrollbar-track{background:#f3f6f3;border-radius:9px}.member-list::-webkit-scrollbar-thumb{background:#b8cbbd;border:2px solid #f3f6f3;border-radius:9px}.member-list::-webkit-scrollbar-thumb:hover{background:#8eae98}
.member-row>.member-number{min-width:22px;text-align:right;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}

/* Post-vote thank-you card */
.thank-you-wrap{min-height:calc(100vh - 290px);display:grid;place-items:center;padding:30px 0}
.thank-you-card{position:relative;isolation:isolate;overflow:hidden;width:min(100%,680px);padding:clamp(30px,6vw,58px);border:1px solid #dfe9e1;border-radius:24px;background:linear-gradient(145deg,#fff 15%,#f1f8f2 100%);box-shadow:0 24px 70px rgba(24,58,39,.10);text-align:center}
.thank-you-card:before,.thank-you-card:after{position:absolute;z-index:-1;content:"";width:230px;height:230px;border:1px solid #17795b12;border-radius:50%;pointer-events:none}
.thank-you-card:before{top:-145px;right:-85px;box-shadow:0 0 0 24px #17795b08,0 0 0 48px #17795b05}
.thank-you-card:after{bottom:-175px;left:-100px;box-shadow:0 0 0 24px #17795b08,0 0 0 48px #17795b05}
.thank-you-mark{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 24px;border:8px solid #e3f1e6;border-radius:50%;background:linear-gradient(145deg,#21845c,#126849);box-shadow:0 10px 24px #17795b30;color:#fff;font-size:34px;font-weight:700}
.thank-you-card>.eyebrow{letter-spacing:.2em}
.thank-you-card h1{margin:14px 0 12px;font-size:clamp(32px,5vw,46px)}
.thank-you-message{max-width:440px;margin:0 auto;color:#65766b;font-size:15px;line-height:1.7}
.thank-you-privacy{display:flex;align-items:center;justify-content:center;gap:10px;margin:26px auto;padding:13px 16px;border:1px solid #e1ebe3;border-radius:12px;background:#f8fbf8;color:#597060;font-size:12px}
.thank-you-privacy p{margin:0}
.thank-you-card>.button{min-height:48px;padding:0 22px;border-radius:10px}
@media(max-width:600px){.thank-you-wrap{min-height:calc(100vh - 230px);padding:18px 0}.thank-you-card{padding:30px 20px;border-radius:18px}.thank-you-mark{width:66px;height:66px;margin-bottom:19px}.thank-you-message{font-size:13px}.thank-you-privacy{font-size:11px}}