:root {
    color-scheme: light;
    --ink: #18334d;
    --muted: #607890;
    --line: #d8e7f4;
    --paper: #f2f8ff;
    --surface: #fff;
    --brand: #216ba5;
    --accent: #e6ad3c;
    --danger: #a73535;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 88% 0, #dceeff 0, transparent 34%), var(--paper);
    color: var(--ink);
    min-height: 100vh
}

a {
    color: inherit
}

button,
input {
    font: inherit
}

.entry-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px 72px;
    position: relative
}

.entry-panel {
    width: min(100%, 520px);
    padding: clamp(26px, 6vw, 52px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand);
    box-shadow: 0 20px 60px #21443812
}

.school-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 26px
}

.school-logo-main {
    display: block;
    width: 76px;
    height: 100px;
    object-fit: contain;
    padding: 3px;
    border: 1px solid #e1eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px #285b8318
}

.school-branding {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px
}

.school-brand-copy .eyebrow {
    margin-bottom: 5px
}

.school-brand-copy>span {
    color: var(--muted);
    font-size: 14px
}

.entry-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px
}

.school-logo-entry {
    width: 54px;
    height: 72px;
    object-fit: contain;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff
}

.entry-brand .eyebrow {
    margin: 0
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1px;
    color: var(--brand);
    margin: 0 0 12px
}

.entry-panel h1,
.content-wrap h1 {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: 0
}

.lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 28px
}

.code-form {
    display: grid;
    gap: 10px
}

.code-form label {
    font-weight: 700
}

.code-form input {
    height: 60px;
    border: 1px solid #aebfb7;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: 5px;
    text-align: center;
    text-transform: uppercase;
    outline-color: var(--brand)
}

small,
.muted {
    color: var(--muted)
}

.button {
    border: 1px solid transparent;
    border-radius: 4px;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer
}

.button:disabled {
    opacity: .55;
    cursor: not-allowed
}

.button-primary {
    background: var(--brand);
    color: #fff
}

.button-primary:hover:not(:disabled) {
    filter: brightness(.92)
}

.button-wide {
    width: 100%;
    margin-top: 12px
}

.button-quiet {
    background: transparent;
    border-color: var(--line);
    color: var(--ink)
}

.text-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.entry-panel>.text-link {
    display: inline-block;
    margin-top: 22px
}

.notice {
    padding: 13px 15px;
    border-left: 4px solid var(--accent);
    background: #fff8e9;
    margin: 16px 0;
    color: #594718
}

.notice-error {
    border-color: var(--danger);
    background: #fff1f0;
    color: #762626
}

.notice-warn {
    border-color: #c08b27
}

.election-schedule {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #c8def2;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: linear-gradient(110deg, #eaf5ff, #f8fbff);
    color: var(--ink)
}

.election-schedule span {
    color: var(--muted);
    font-size: 13px
}

.election-schedule strong {
    color: var(--brand)
}

.site-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted)
}

.page-shell {
    min-height: 100vh
}

.page-top {
    height: 68px;
    padding: 0 max(20px, calc((100vw - 1100px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: #ffffffdd
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .5px;
    color: var(--brand)
}

.school-logo-header {
    width: 30px;
    height: 40px;
    object-fit: contain;
    padding: 1px;
    border-radius: 5px;
    background: #fff
}

.brand-wordmark {
    line-height: 1.25
}

.brand-link span {
    color: var(--ink)
}

.status-pill {
    background: #e5f4eb;
    color: #1f6347;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700
}

.content-wrap {
    width: min(100% - 36px, 1060px);
    margin: 42px auto 80px
}

.content-wrap>.lead {
    max-width: 660px
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 16px;
    margin: 26px 0
}

.candidate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, transform .15s
}

.candidate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.candidate-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px)
}

.candidate-card:has(input:checked) {
    border: 2px solid var(--brand);
    padding: 17px;
    background: #f3faf6
}

.candidate-card input {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 20px;
    height: 20px;
    accent-color: var(--brand)
}

.candidate-number {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand)
}

.candidate-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    background: #e8efeb;
    border-radius: 11px
}

.candidate-photo-preview {
    width: min(100%, 240px);
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #e7f2fc
}

.photo-placeholder {
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 800;
    color: #789187
}

.candidate-card strong {
    font-size: 19px
}

.vision-trigger {
    margin-top: 5px
}

.vision-dialog {
    width: min(92vw, 560px);
    border: 0;
    border-top: 4px solid var(--brand);
    padding: 26px;
    box-shadow: 0 20px 80px #10231e55
}

.vision-dialog::backdrop {
    background: #11221db3
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px
}

.dialog-head h2 {
    font-size: 23px;
    margin: 0 0 20px
}

.vision-dialog h3 {
    font-size: 14px;
    color: var(--brand);
    text-transform: uppercase;
    margin: 20px 0 5px
}

.vision-dialog p {
    line-height: 1.65;
    margin: 0
}

.icon-button {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted)
}

.vote-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px
}

.abstain-card {
    background: #f9faf9
}

.results-wrap {
    max-width: 850px
}

.result-summary {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 28px 0
}

.result-summary div {
    display: grid;
    gap: 5px
}

.result-summary strong {
    font-size: 28px;
    color: var(--brand)
}

.result-summary span,
.result-label span {
    font-size: 13px;
    color: var(--muted)
}

.candidate-results {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0
}

.candidate-results::before {
    content: "HASIL PEMILIHAN";
    position: absolute;
    z-index: 0;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    color: rgba(33, 107, 165, .16);
    font-size: clamp(30px, 6vw, 82px);
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none
}

.result-card {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px #244b6710;
    animation: result-card-enter .5s ease both
}

.result-card-photo-wrap {
    position: relative;
    overflow: hidden;
    background: #e7f2fc
}

.result-candidate-photo {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #e7f2fc
}

.result-photo-placeholder {
    display: grid;
    place-items: center;
    color: #5c86a9;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800
}

.result-candidate-number {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border: 1px solid #ffffff80;
    border-radius: 999px;
    background: #ffffffed;
    color: #205f91;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 12px #16344b20
}

.result-card-content {
    padding: 16px
}

.result-candidate-name {
    min-height: 2.5em;
    margin: 0 0 12px;
    color: #183b5a;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.25
}

.result-card-stats {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 13px
}

.result-vote-count {
    color: #183b5a;
    font-size: 21px
}

.result-percentage {
    margin-left: auto;
    color: var(--brand);
    font-size: 22px
}

.candidate-results .result-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6f0f8
}

.candidate-results .result-track span {
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #55a3dc, var(--brand));
    transition: width 1.15s cubic-bezier(.2, .8, .2, 1)
}

.turnout-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
    padding-top: 22px;
    border-top: 1px solid var(--line)
}

.turnout-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #f5faff)
}

.turnout-card span {
    color: var(--muted);
    font-size: 13px
}

.turnout-card strong {
    color: #205f91;
    font-size: 30px
}

@keyframes result-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.results-list {
    display: grid;
    gap: 22px
}

.result-row {
    display: grid;
    gap: 9px
}

.result-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline
}

.result-track {
    height: 13px;
    background: #e4ece7;
    border-radius: 2px;
    overflow: hidden
}

.result-track span {
    height: 100%;
    display: block;
    background: var(--brand)
}

.winner-note {
    margin-top: 26px;
    padding: 16px;
    background: #eef5f0;
    border-left: 4px solid var(--accent)
}

.success-panel {
    text-align: center
}

.success-mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    background: #e3f3e9;
    color: var(--brand);
    font-size: 34px;
    border-radius: 50%;
    font-weight: 800
}

.success-panel .button {
    margin-top: 14px
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh
}

.admin-nav {
    background: #123a30;
    color: #eef8f3;
    padding: 24px 16px
}

.admin-nav h2 {
    font-size: 16px;
    margin: 0 0 24px
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 20px;
    margin: 0 0 12px;
    border-bottom: 1px solid #bfd8eb;
    color: #1d5e91;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.5;
    text-decoration: none
}

.admin-brand strong {
    color: #183b5a
}

.admin-brand-logo {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #c9ddeb;
    border-radius: 7px;
    background: #fff
}

.school-logo-sidebar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.admin-nav a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 14px
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #ffffff20
}

.admin-main {
    padding: 30px;
    min-width: 0
}

.admin-main h1 {
    margin-top: 0;
    font-size: 30px
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0
}

.stat-box {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand)
}

.stat-box strong {
    font-size: 27px;
    display: block
}

.stat-box span {
    font-size: 13px;
    color: var(--muted)
}

.admin-section {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    margin: 18px 0
}

.admin-section h2 {
    margin: 0 0 16px;
    font-size: 19px
}

.admin-candidate-thumbnail {
    display: block;
    width: 52px;
    aspect-ratio: 4 / 6;
    object-fit: cover;
    border-radius: 6px;
    background: #eaf3fb
}

.destructive-zone {
    border-color: #e5b7b7;
    border-top: 4px solid var(--danger)
}

.destructive-intro {
    padding: 14px 16px;
    border-left: 4px solid var(--danger);
    background: #fff3f2;
    color: #612828;
    line-height: 1.6
}

.destructive-guidance {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #e8d8ae;
    background: #fffaf0;
    color: #51451f
}

.destructive-guidance h3 {
    margin: 0 0 6px;
    font-size: 15px
}

.destructive-guidance p,
.destructive-copy p {
    margin: 6px 0;
    line-height: 1.55
}

.destructive-form {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #ecdada;
    border-radius: 6px;
    background: #fffdfd
}

.destructive-copy > strong {
    display: block;
    color: #762626;
    font-size: 16px
}

.destructive-risk {
    color: #762626
}

.destructive-confirm {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap
}

.destructive-confirm label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700
}

.destructive-confirm input {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #c9d6e0;
    border-radius: 4px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.form-field {
    display: grid;
    gap: 6px
}

.form-field.full {
    grid-column: 1/-1
}

.form-field label {
    font-size: 13px;
    font-weight: 700
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #b9c9c1;
    border-radius: 3px;
    background: #fff;
    color: var(--ink)
}

.form-field textarea {
    min-height: 100px;
    resize: vertical
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted)
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e8f1ec;
    border-radius: 3px;
    font-size: 12px
}

.danger {
    color: #8e2929
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px
}

.login-wrap .entry-panel {
    max-width: 420px
}

.test-banner {
    padding: 10px 14px;
    background: #ffe4a8;
    color: #563c08;
    font-weight: 800;
    margin-bottom: 20px
}

.print-codes {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 24px
}

.print-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px
}

.print-head h1 {
    margin: 0;
    color: #173c5b;
    font-size: clamp(22px, 3vw, 30px)
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.coupon {
    min-height: 190px;
    padding: 14px;
    border: 1px dashed #8ca9bf;
    border-radius: 12px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 11px;
    background: #fff
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line)
}

.coupon-logo {
    width: 28px;
    height: 37px;
    object-fit: contain;
    flex: 0 0 auto
}

.coupon-title {
    color: #205f91;
    font-size: 16px;
    letter-spacing: .5px
}

.coupon-identity {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0
}

.coupon-label,
.coupon-nis {
    color: var(--muted);
    font-size: 11px
}

.coupon-name {
    overflow-wrap: anywhere;
    font-size: 15px
}

.coupon-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #edf6ff;
    color: #205f91
}

.coupon-code span {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .7px
}

.coupon-code strong {
    font-size: 21px;
    letter-spacing: 3px
}

/* Blue theme and refined responsive layout */
body {
    background:
        radial-gradient(ellipse at 92% 2%, #dceeff 0, transparent 31%),
        radial-gradient(ellipse at 5% 76%, #e7f3ff 0, transparent 28%),
        var(--paper)
}

.entry-panel {
    border: 1px solid #d5e6f5;
    border-top: 5px solid var(--brand);
    border-radius: 20px;
    box-shadow: 0 24px 70px #285b8318, 0 4px 12px #285b8309
}

.school-mark {
    border-radius: 15px;
    box-shadow: 0 10px 24px #216ba52b
}

.school-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -8px 0 24px
}

.school-logos .school-mark {
    width: 50px;
    height: 66px;
    margin: 0;
    border: 1px solid var(--line);
    background: #fff !important;
    object-fit: contain
}

.code-form input {
    border-color: #c5d8e9;
    border-radius: 12px;
    background: #fafdff;
    transition: border-color .18s, box-shadow .18s
}

.code-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.inline-form input:focus,
.inline-form select:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px #216ba51c
}

.button {
    border-radius: 10px;
    transition: transform .16s, box-shadow .16s, background .16s
}

.button-primary {
    box-shadow: 0 5px 14px #216ba526
}

.button-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px #216ba533
}

.button-quiet {
    background: #f4f9ff
}

.button-quiet:hover {
    background: #e7f2fc;
    border-color: #c4d9ec
}

.notice {
    border-radius: 0 10px 10px 0
}

.page-top {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 74px;
    border-bottom-color: #d7e7f3;
    background: #ffffffed;
    backdrop-filter: blur(12px)
}

.status-pill {
    background: #e0f1ff;
    color: #205b8d
}

.content-wrap {
    margin-top: 48px
}

.candidate-card {
    border-color: #d9e7f3;
    border-radius: 16px;
    box-shadow: 0 5px 18px #244b6710;
    transition: border-color .18s, box-shadow .18s, transform .18s
}

.candidate-card:hover {
    border-color: #80b4df;
    box-shadow: 0 12px 26px #244b6718
}

.candidate-card:has(input:checked) {
    border-color: var(--brand);
    background: #eef7ff;
    box-shadow: 0 0 0 4px #216ba51a, 0 12px 26px #244b6718
}

.candidate-photo {
    border-radius: 11px;
    background: #e7f2fc
}

.photo-placeholder {
    color: #5c86a9
}

.vision-dialog {
    border-radius: 18px
}

.vision-dialog::backdrop {
    background: #16344b88;
    backdrop-filter: blur(3px)
}

.result-summary {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px #244b670b
}

.result-track {
    height: 14px;
    background: #e6f0f8;
    border-radius: 999px
}

.result-track span {
    border-radius: inherit;
    background: linear-gradient(90deg, #55a3dc, var(--brand))
}

.winner-note {
    border-radius: 0 12px 12px 0;
    background: #e8f4ff
}

.success-mark {
    background: #e1f1ff
}

.admin-shell {
    grid-template-columns: 252px minmax(0, 1fr);
    background: #f2f8ff
}

.admin-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 17px;
    background: linear-gradient(180deg, #e2f1ff 0%, #d7eaff 100%);
    color: #183b5a;
    border-right: 1px solid #cfe2f3
}

.admin-nav h2 {
    padding: 8px 12px 20px;
    margin-bottom: 12px;
    color: #1d5e91;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: .5px
}

.admin-nav a {
    margin: 3px 0;
    padding: 11px 13px;
    border-radius: 10px;
    font-weight: 600;
    transition: background .16s, color .16s, transform .16s
}

.admin-nav a:hover {
    background: #ffffffa8;
    color: #174f7d;
    transform: translateX(2px)
}

.admin-nav a.active {
    background: #fff;
    color: #175c94;
    box-shadow: 0 4px 14px #235b8517
}

.admin-nav .button-quiet {
    width: 100%;
    background: #ffffff99;
    border-color: #c6dced
}

.admin-main {
    padding: clamp(22px, 3.2vw, 44px);
    max-width: 1500px;
    width: 100%;
    margin: 0 auto
}

.admin-main h1 {
    color: #173c5b;
    letter-spacing: -.5px
}

.admin-top {
    padding-bottom: 18px;
    border-bottom: 1px solid #dce9f5
}

.admin-top>span {
    padding: 9px 14px;
    border: 1px solid #d7e7f4;
    border-radius: 999px;
    background: #fff;
    color: #496984;
    font-size: 14px
}

.stats-grid {
    gap: 16px
}

.stat-box,
.admin-section {
    border: 1px solid #dce9f5;
    border-radius: 15px;
    box-shadow: 0 7px 22px #244b670b
}

.stat-box {
    padding: 20px;
    border-top: 3px solid #71afe0;
    background: linear-gradient(145deg, #fff, #f8fbff)
}

.stat-box strong {
    color: #205f91
}

.admin-section {
    padding: clamp(18px, 2.4vw, 26px)
}

.admin-section h2 {
    color: #1b496d
}

.form-field input,
.form-field select,
.form-field textarea,
.inline-form input,
.inline-form select {
    border-color: #cbdceb;
    border-radius: 9px
}

.table-wrap {
    border: 1px solid #e1ebf4;
    border-radius: 11px
}

table {
    background: #fff
}

th {
    background: #edf6ff;
    color: #456a87
}

tbody tr:nth-child(even) {
    background: #f8fbff
}

tbody tr:hover {
    background: #eff7ff
}

.tag {
    background: #e6f2fd;
    color: #315d80;
    border-radius: 999px
}

.test-banner {
    border-radius: 10px
}

.announcement {
    border-radius: 18px;
    box-shadow: 0 20px 60px #214e7014
}

.coupon {
    border-radius: 8px
}

@media(max-width:700px) {
    .admin-shell {
        grid-template-columns: minmax(0, 1fr)
    }

    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 6;
        height: auto;
        padding: 10px;
        border-right: 0;
        border-bottom: 1px solid #cfe2f3;
        box-shadow: 0 5px 18px #244b6710
    }

    .admin-nav a {
        margin: 0;
        padding: 9px 11px
    }

    .admin-nav form {
        flex: 0 0 auto;
        margin: 0 !important
    }

    .admin-nav .button-quiet {
        width: auto
    }

    .admin-main {
        padding: 22px 14px
    }

    .admin-top {
        align-items: flex-start
    }

    .admin-top>span {
        font-size: 12px
    }

    .content-wrap {
        margin-top: 30px
    }
}

@media(max-width:700px) {
    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-nav {
        padding: 12px;
        display: flex;
        gap: 4px;
        overflow: auto;
        align-items: center
    }

    .admin-nav h2 {
        display: none
    }

    .admin-brand {
        flex: 0 0 auto;
        padding: 0 9px 0 2px;
        margin: 0;
        border: 0
    }

    .admin-brand>span:last-child {
        display: none
    }

    .admin-brand-logo {
        flex-basis: 34px;
        width: 34px;
        height: 44px
    }

    .admin-nav a {
        white-space: nowrap
    }

    .admin-main {
        padding: 20px 14px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-field.full {
        grid-column: auto
    }

    .candidate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-top {
        padding: 0 18px
    }

    .content-wrap {
        margin-top: 28px
    }

    .result-summary {
        gap: 20px;
        justify-content: space-between
    }

    .result-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px
    }

    .candidate-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px
    }

    .result-card-content {
        padding: 12px
    }

    .turnout-summary {
        gap: 9px
    }

    .turnout-card {
        padding: 13px
    }

    .turnout-card strong {
        font-size: 25px
    }
}

@media(max-width:520px) {
    .candidate-grid {
        grid-template-columns: 1fr
    }

    .school-logo-main {
        width: 64px;
        height: 84px
    }

    .candidate-results,
    .turnout-summary {
        grid-template-columns: 1fr
    }

    .result-card {
        display: grid;
        grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
        align-items: stretch
    }

    .result-card-content {
        align-self: center;
        padding: 16px
    }

    .result-candidate-name {
        min-height: 0
    }
}

@media(max-width:760px) {
    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm
    }

    body {
        background: #fff
    }

    .page-top,
    .vote-actions,
    .site-footer {
        display: none !important
    }

    .content-wrap {
        width: 100%;
        margin: 0
    }

    .result-track {
        border: 1px solid #bbb
    }

    .result-track span {
        background: #888 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }

    .print-head button {
        display: none
    }

    .result-card {
        break-inside: avoid;
        box-shadow: none
    }

    .result-card-photo-wrap {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }

    .print-codes {
        width: 100%;
        padding: 0
    }

    .admin-nav,
    .admin-main > .admin-top,
    .attendance-filter,
    .attendance-print .admin-top button,
    .admin-section form,
    .admin-section .button {
        display: none !important
    }

    .admin-shell {
        display: block
    }

    .admin-main {
        padding: 0
    }

    .admin-section {
        border: 0;
        box-shadow: none
    }

    @media(prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            animation-duration: .01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .01ms !important
        }
    }

    .print-head {
        margin-bottom: 12px
    }

    .coupon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px
    }

    .coupon {
        min-height: 175px;
        padding: 10px;
        border-radius: 0;
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }
}