:root {
    --bg: #eef2ff;
    --ink: #12151c;
    --muted: #5b6475;
    --card: rgba(255, 255, 255, 0.92);
    --line: rgba(255, 255, 255, 0.7);
    --line-strong: #d9e0f0;
    --primary: #3157e8;
    --primary-2: #1d3fbf;
    --soft: #e7edff;
    --ok: #067647;
    --warn: #b54708;
    --bad: #b42318;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(37, 56, 120, 0.12);
    --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    min-height: 100vh;
    background:
        radial-gradient(900px 480px at 0% -10%, rgba(99, 132, 255, 0.45), transparent 60%),
        radial-gradient(700px 420px at 100% 0%, rgba(56, 189, 248, 0.28), transparent 55%),
        radial-gradient(600px 400px at 80% 100%, rgba(167, 139, 250, 0.22), transparent 50%),
        var(--bg);
    background-attachment: fixed;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin: 0 0 8px; line-height: 1.12; }
h2 { margin: 0 0 6px; font-size: 1.35rem; }
h3 { margin: 0 0 8px; font-size: 1.08rem; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 30px rgba(37, 56, 120, 0.06);
}
.topbar a { color: var(--ink); text-decoration: none; }
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.brand strong { display: block; font-size: 1.02rem; line-height: 1.15; }
.mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #6d8bff, var(--primary) 55%, #7c3aed);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: -0.04em;
    flex: none;
    box-shadow: 0 8px 18px rgba(49, 87, 232, 0.35);
}
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav form { display: inline; }
.nav a:not(.btn) { padding: 8px 10px; border-radius: 10px; transition: background .2s ease; }
.nav a:not(.btn):hover { background: var(--soft); text-decoration: none; }
.topbar .who {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.page { padding: 28px 0 40px; }
.page > * { animation: rise .55s ease both; }
.page > *:nth-child(2) { animation-delay: .06s; }
.page > *:nth-child(3) { animation-delay: .12s; }
.page > *:nth-child(4) { animation-delay: .18s; }

.site-foot {
    margin: 8px auto 22px;
    width: min(1080px, calc(100% - 32px));
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
}
.site-foot p { margin: 0; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.lead, .muted { color: var(--muted); line-height: 1.55; }
.lead { font-size: 1.05rem; max-width: 62ch; }

.hero, .card, .panel, .stat, .step {
    background: var(--card);
    border: 1px solid #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero {
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
        radial-gradient(400px 180px at 100% 0%, rgba(99, 132, 255, .25), transparent 70%);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.home-hero {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 28px;
    align-items: center;
}
.home-note {
    background: linear-gradient(160deg, #3157e8, #6d4aff);
    color: #fff;
    border-radius: 22px;
    padding: 22px 22px 14px;
    box-shadow: 0 16px 36px rgba(49, 87, 232, 0.28);
}
.home-note .eyebrow { color: #dbe6ff; }
.home-note ol { margin: 4px 0 8px; padding-left: 1.15rem; }
.home-note li { margin: 12px 0; line-height: 1.45; }
.home-note strong { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { border-radius: var(--radius); padding: 20px; }
.step:hover, .stat:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(37, 56, 120, 0.16); }
.step .num {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #6d8bff, var(--primary));
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 8px 16px rgba(49, 87, 232, 0.28);
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-mini { margin-top: 8px; padding: 6px 10px; font-size: 0.82rem; }
.limit-note { display: block; margin-top: 6px; color: var(--bad); font-weight: 700; }
.block-title { margin: 22px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stat .s { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.identity { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); margin: 8px 0 0; }
.dash-actions { margin-bottom: 18px; }
#buscar-resultado { margin-top: 14px; text-align: left; }
#buscar-resultado table { width: 100%; }
.stat { border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; }
.stat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6d8bff, #7c3aed);
}
.stat .n { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat .l { color: var(--muted); margin-top: 6px; font-size: 0.92rem; }

.card, .panel { border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.table-wrap { overflow-x: auto; margin-top: 8px; max-width: 100%; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
    background: linear-gradient(180deg, #4c73f5, var(--primary));
    color: #fff;
    box-shadow: 0 10px 20px rgba(49, 87, 232, 0.28);
}
.btn-primary:hover { background: linear-gradient(180deg, #3d64ea, var(--primary-2)); }
.btn-sand, .btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-sand:hover, .btn-line:hover { background: var(--soft); }
.btn-fase {
    background: linear-gradient(180deg, #f5b942, #e08a12);
    color: #fff;
    box-shadow: 0 10px 20px rgba(224, 138, 18, 0.32);
}
.btn-fase:hover { background: linear-gradient(180deg, #e8a82a, #c9760c); }
.btn-back {
    background: #fff;
    color: var(--primary);
    border-color: #c5d2f6;
    box-shadow: 0 8px 18px rgba(49, 87, 232, 0.14);
    margin-bottom: 14px;
}
.btn-back:hover { background: var(--soft); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line-strong); }
.btn-salir {
    background: linear-gradient(180deg, #f97066, #d92d20);
    color: #fff;
    box-shadow: 0 8px 16px rgba(217, 45, 32, 0.28);
}
.btn-salir:hover { background: linear-gradient(180deg, #f04438, #b42318); color: #fff; }
.btn-ok { background: linear-gradient(180deg, #12a06a, var(--ok)); color: #fff; }

.form-card { padding: 28px; }
label { display: block; font-weight: 700; margin: 0 0 6px; font-size: 0.92rem; }
input, select, textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #d5dced;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.js-upper { text-transform: uppercase; }
input::placeholder, textarea::placeholder { color: #98a0ae; text-transform: none; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(49, 87, 232, 0.15);
}
.field { margin-bottom: 4px; }
.reveal { animation: rise .35s ease both; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fieldset {
    border: 1px solid rgba(213, 220, 237, .9);
    border-radius: 16px;
    padding: 14px 14px 6px;
    margin: 14px 0;
    background: rgba(255,255,255,.45);
}
.fieldset legend { padding: 0 6px; font-weight: 800; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 6px 0 10px; }

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.filters-4 {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.72fr) minmax(160px, 0.78fr) auto;
    align-items: end;
}
.filters-4 .field { margin-bottom: 0; }
.filters-4 .field-compact select {
    padding: 8px 10px;
    font-size: 0.86rem;
}
.ghost-label { visibility: hidden; }
.filter-actions { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.filter-actions .btn { width: auto; min-height: 40px; }
#cola-tabla.is-loading { opacity: 0.45; pointer-events: none; transition: opacity .2s ease; }

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 8px;
}
.data-table thead th {
    position: sticky;
    top: 0;
    background: #f7f9ff;
    z-index: 1;
}
.data-table td strong { display: block; }
.data-table td small { color: var(--muted); font-size: 0.82rem; }
.data-table tbody tr:nth-child(even) { background: #f8faff; }
.cell-action { width: 1%; white-space: nowrap; text-align: right; }
.table-wrap { max-height: 640px; }

a.stat { color: inherit; text-decoration: none; display: block; }
a.stat:hover { text-decoration: none; }
.stat.is-current { outline: 2px solid rgba(49, 87, 232, 0.35); }

.person-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(145deg, #6d8bff, #3157e8 60%, #7c3aed);
    flex: none;
}
.cedula-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4f7ff;
    margin-bottom: 14px;
}
.cedula-row span { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cedula-row strong { font-size: 1.25rem; letter-spacing: 0.04em; }
.facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.facts article {
    margin: 0;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f5f8ff, #fff);
    border: 1px solid #e3e9f8;
    box-shadow: 0 8px 18px rgba(37, 56, 120, 0.05);
}
.facts span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 800;
}
.facts strong { display: block; margin-top: 4px; font-size: 0.98rem; line-height: 1.35; }
.info-rows { list-style: none; margin: 0; padding: 0; }
.info-rows li {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #e7ecf5;
    text-align: left;
}
.info-rows li:last-child { border-bottom: 0; }
.info-rows span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.info-rows strong { font-size: 0.98rem; overflow-wrap: anywhere; }
.info-rows .btn-mini { margin-top: 0; }

.alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; animation: rise .35s ease both; }
.alert-ok { background: #e8f7ef; color: var(--ok); }
.alert-bad { background: #fdecec; color: var(--bad); }
.alert-warn { background: #fff4e8; color: var(--warn); }

.error-page {
    width: min(680px, 100%);
    margin: clamp(24px, 8vh, 80px) auto;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid #fff;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.9)),
        radial-gradient(360px 180px at 100% 0%, rgba(99,132,255,.26), transparent 70%);
    box-shadow: var(--shadow);
    text-align: center;
}
.error-code {
    display: inline-block;
    margin-bottom: 12px;
    color: transparent;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(4.5rem, 14vw, 8rem);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: .8;
}
.error-page .lead { margin-inline: auto; }
.error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #e7ecf5; vertical-align: middle; }
th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #f4f7ff; }
.empty { color: var(--muted); padding: 18px 8px; }

.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.badge-pendiente { background: #fff4e8; color: var(--warn); }
.badge-activo { background: #e8f7ef; color: var(--ok); }
.badge-inactivo { background: #fdecec; color: var(--bad); }

.back { display: inline-block; margin-bottom: 12px; font-weight: 700; }
.kv { display: grid; gap: 8px; }
.kv p { margin: 0; }
.kv span { color: var(--muted); display: inline-block; min-width: 150px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split + .panel { margin-top: 36px; }
.admin-filters {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(125px, .7fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.admin-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #e3e9f8;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 10px 25px rgba(37, 56, 120, .1);
    text-align: center;
}
.admin-action-card h2 { margin-bottom: 5px; font-size: .98rem; letter-spacing: -.02em; }
.admin-action-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
    flex: 1;
}
.admin-action-card .btn { width: 100%; padding: 8px 10px; border-radius: 9px; font-size: .78rem; }
.admin-action-icon {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}
.admin-action-danger .admin-action-icon, .admin-action-danger h2 { color: var(--bad); }
.btn.is-disabled { opacity: .62; cursor: not-allowed; box-shadow: none; }
.admin-dashboard-head { align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--card); box-shadow: 0 10px 25px rgba(37, 56, 120, .1); }
.admin-dashboard-head h1 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.admin-dashboard-head .lead { margin: 4px 0 0; font-size: .88rem; }
.admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-metrics .stat { padding: 12px 14px; }
.admin-metrics .stat .n { font-size: 1.4rem; }
.admin-metrics .stat .l { font-size: .82rem; }
.admin-metrics .stat .s { font-size: .7rem; }
.admin-user-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.admin-users-page .page-head { margin-bottom: 12px; }
.admin-users-page .page-head h1 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.admin-users-page .page-head .lead { margin: 4px 0 0; font-size: .88rem; }
.admin-users-page .page-head .btn,
.admin-users-page > .btn-back { padding: 8px 11px; border-radius: 9px; font-size: .78rem; }
.admin-user-stats { gap: 8px; margin-bottom: 12px; }
.admin-user-stats .stat { padding: 10px 12px; border-radius: 13px; }
.admin-user-stats .stat .n { font-size: 1.35rem; }
.admin-user-stats .stat .l { margin-top: 4px; font-size: .76rem; }
.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-bottom: 10px;
    overflow-x: auto;
    border: 1px solid #fff;
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 24px rgba(37, 56, 120, .08);
}
.admin-tabs a {
    flex: 1;
    min-width: max-content;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}
.admin-tabs a:hover, .admin-tabs a.is-active {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #4c73f5, var(--primary));
}
.admin-row-actions { display: flex; gap: 6px; align-items: center; }
.admin-row-actions form { margin: 0; }
.admin-row-actions .btn-mini { margin-top: 0; white-space: nowrap; }
.admin-users-page .admin-filters {
    position: relative;
    z-index: 50;
    padding: 12px;
    gap: 9px;
    margin-bottom: 12px;
    transform: none !important;
    transition: none;
}
.admin-users-page .admin-filters:hover { transform: none; }
.admin-users-page .admin-filters label { margin-bottom: 4px; font-size: .76rem; }
.admin-users-page .admin-filters input,
.admin-users-page .admin-filters select { padding: 8px 9px; border-radius: 9px; font-size: .8rem; }
.admin-dropdown-field { position: relative; z-index: 2; }
.admin-dropdown-field:has(.admin-filter-toggle[aria-expanded="true"]) { z-index: 20; }
.admin-filter-dropdown { position: relative; }
.admin-filter-toggle {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #d5dced;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .8rem;
    text-align: left;
    cursor: pointer;
}
.admin-filter-toggle:hover,
.admin-filter-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 87, 232, .12);
}
.admin-filter-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-filter-toggle b { color: var(--muted); font-size: .8rem; }
.admin-filter-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 5px);
    left: 0;
    width: max(100%, 190px);
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d8e0f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(16, 24, 48, .18);
}
.admin-filter-menu[hidden] { display: none; }
.admin-filter-menu button {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .78rem;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}
.admin-filter-menu button:hover,
.admin-filter-menu button:focus {
    outline: none;
    background: var(--soft);
    color: var(--primary-2);
}
.admin-users-page .admin-filters .filter-actions { align-self: end; }
.admin-users-page .admin-filters .btn { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: .76rem; }
.admin-users-table-panel { padding: 14px; }
.admin-users-table-panel .table-head { margin-bottom: 4px; }
.admin-users-table-panel .table-head h2 { font-size: 1.05rem; }
.admin-users-table-panel .hint { margin: 3px 0 6px; font-size: .76rem; }
.admin-users-table-panel th,
.admin-users-table-panel td { padding: 8px 6px; font-size: .78rem; }
.admin-users-table-panel th { font-size: .66rem; }
.admin-users-table-panel .data-table td small { font-size: .7rem; }
.admin-users-table-panel .badge { padding: 3px 7px; font-size: .66rem; }
.admin-users-table-panel .btn-mini { padding: 5px 7px; border-radius: 7px; font-size: .68rem; }
.admin-users-table-panel .pagination { padding-top: 9px; justify-content: center; }
.admin-users-table-panel .page-link { padding: 5px 8px; font-size: .72rem; }
#admin-users-results { position: relative; z-index: 1; transition: opacity .18s ease; }
#admin-users-results.is-loading { opacity: .45; pointer-events: none; }
.admin-modal {
    width: min(720px, 100%);
    max-height: min(86vh, 820px);
    overflow-y: auto;
}
.admin-lookup-result { margin-top: 14px; }
.network-summary { margin-top: 18px; text-align: left; }
.network-summary h3 { text-align: center; }
.network-counts { grid-template-columns: repeat(4, 1fr); margin: 10px 0; }
.network-counts .network-total { border-color: #b8c7ff; background: var(--soft); }
.network-counts .network-total strong { color: var(--primary); }
.network-level {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
}
.network-level summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f7f8fc;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}
.network-level summary b {
    min-width: 26px;
    padding: 3px 7px;
    border-radius: 99px;
    background: var(--soft);
    color: var(--primary);
    text-align: center;
}
.network-level table { font-size: .72rem; }
.network-level th, .network-level td { padding: 8px 10px; }
.network-level td small { display: block; color: var(--muted); }
.network-level > small { display: block; padding: 8px 10px; color: var(--muted); }
.text-ok { color: var(--ok); font-weight: 700; }
.admin-filters .field, .report-filter .field { margin: 0; }
.report-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.admin-form-card { max-width: 900px; margin-inline: auto; }
.admin-stack { display: grid; gap: 16px; align-content: start; }
.admin-bars { display: grid; gap: 9px; margin-top: 14px; }
.admin-bars > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e3e9f8;
    border-radius: 13px;
    background: linear-gradient(90deg, #f3f6ff, #fff);
}
.admin-bars span { color: var(--muted); font-weight: 700; }
.admin-bars strong { color: var(--primary-2); }

.auth-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 18px;
    align-items: stretch;
}
.auth-aside {
    background: linear-gradient(160deg, #2746c7 0%, #3157e8 42%, #6d4dff 100%);
    color: #fff;
    border-radius: 28px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    box-shadow: 0 24px 50px rgba(49, 87, 232, 0.28);
}
.auth-aside h1 { color: #fff; }
.auth-aside .eyebrow { color: #dbe6ff; }
.auth-aside .lead { color: #e7eeff; }
.auth-points { margin: 22px 0 0; padding: 0; list-style: none; }
.auth-points li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #e7eeff;
}

.modal-root {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 48, 0.46);
    border: 0;
    animation: fade .25s ease;
}
.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(16, 24, 48, 0.28);
    text-align: center;
    animation: pop .38s cubic-bezier(.2, .8, .2, 1);
}
.modal-dialog h2 { margin-bottom: 8px; }
.modal-dialog .lead { margin-inline: auto; }
.modal-dialog .hero-actions { justify-content: center; }
.modal-dialog form { text-align: left; }
.modal-root.is-closed { display: none; }
.modal-legal {
    width: min(680px, 100%);
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}
.modal-legal-body { overflow: auto; }
.modal-legal h2,
.modal-legal h3,
.modal-legal p,
.modal-legal li { text-align: left; }
.modal-legal h3 { margin: 16px 0 6px; font-size: 1rem; }
.modal-legal ul { margin: 8px 0 14px; padding-left: 1.15rem; }
.modal-legal .hero-actions {
    flex: none;
    justify-content: center;
    margin-top: 12px;
}
.check-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: 4px 0 14px;
    text-align: left;
}
.check-row span { text-align: left; }
.hero-actions.actions-center { justify-content: center; }
.hero-actions.actions-center .btn { width: auto; }
.check-row input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    padding: 0;
    flex: none;
    accent-color: var(--primary);
}
.linkish {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.modal-ok h2 { color: var(--ok); }
.modal-bad h2 { color: var(--bad); }

.pagination { display: flex; gap: 6px; list-style: none; padding: 14px 0 0; margin: 0; flex-wrap: wrap; }
.page-item .page-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}
.page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-item.disabled .page-link { color: #98a0ae; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
@media (max-width: 1100px) {
    .stats.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-user-stats { grid-template-columns: repeat(3, 1fr); }
    .admin-filters { grid-template-columns: repeat(2, 1fr); }
    .admin-filters .filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .auth-layout, .split, .steps, .home-hero, .stats, .stats.cols-3, .stats.cols-5 { grid-template-columns: 1fr; }
    .filters, .filters-4 { grid-template-columns: 1fr 1fr; }
    .filters-4 .filter-actions { grid-column: 1 / -1; }
    .filters-4 .ghost-label { display: none; }
    .page-head { align-items: center; flex-direction: column; text-align: center; }
    .page-actions { width: 100%; flex-direction: column; align-items: center; }
    .page-head .btn { width: 100%; }
    .facts .btn-mini { width: auto; }
    .auth-aside { min-height: 0; align-items: center; text-align: center; }
    .cedula-row { flex-direction: column; align-items: center; text-align: center; }
    .facts { grid-template-columns: 1fr; }
    .facts article, .stat, .step, .hero, .card, .panel, .home-note, .filters, .fieldset { text-align: center; }
    .admin-action-card { align-items: center; text-align: center; }
    .admin-action-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-filters, .report-filter { grid-template-columns: 1fr 1fr; text-align: center; }
    .admin-filters .filter-actions, .report-filter .filter-actions { grid-column: 1 / -1; justify-content: center; }
    .field { text-align: center; }
    .card .check-row,
    .card .check-row span,
    .fieldset .check-row,
    .fieldset .check-row span { text-align: left; }
    .table-head { flex-direction: column; align-items: center; text-align: center; }
    .identity, .hero-actions, .dash-actions { justify-content: center; }
    .lead, .eyebrow, h1, h2, h3 { text-align: center; }
    .lead { margin-inline: auto; }
    .person-top { flex-direction: column; align-items: center; text-align: center; }
    .home-note ol { text-align: left; display: inline-block; }
    .topbar { overflow: visible; z-index: 30; }
    .topbar .wrap {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        min-height: 0;
    }
    .brand, .brand-text, .brand strong { text-align: left; }
    .menu-toggle { display: flex; flex: none; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(260px, calc(100vw - 24px));
        margin: 0;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(16, 24, 48, 0.18);
        z-index: 40;
    }
    .nav.is-open { display: flex; }
    .person-card,
    .person-card h3,
    .person-card .muted,
    .person-card .person-top { text-align: left; }
    .person-card .person-top { flex-direction: row; align-items: center; }
    .nav a:not(.btn), .nav .btn, .nav form { width: 100%; text-align: center; }
    .nav form { display: block; }
    .nav .btn { width: 100%; }
}
@media (max-width: 700px) {
    .row-2, .filters, .filters-4, .admin-filters, .report-filter { grid-template-columns: 1fr; }
    .hero, .auth-aside, .card, .panel, .form-card { padding: 18px; }
    .wrap, .site-foot { width: min(1080px, calc(100% - 20px)); }
    .hero-actions .btn,
    .page-actions .btn,
    .filter-actions,
    .filter-actions .btn,
    .btn-back { width: 100%; }
    .hero-actions.actions-center { justify-content: center; }
    .hero-actions.actions-center .btn { width: auto; }
    .filter-actions { flex-direction: column; align-items: stretch; }
    .admin-filters .filter-actions, .report-filter .filter-actions { grid-column: auto; }
    .admin-action-grid, .admin-metrics, .admin-user-stats { grid-template-columns: 1fr; }
    .admin-row-actions { justify-content: center; flex-wrap: wrap; }
    .admin-users-page .filter-actions { width: auto; flex-direction: row; justify-content: center; }
    .admin-users-page .filter-actions .btn { width: auto; }
    .admin-users-page .page-head .btn,
    .admin-users-page > .btn-back { width: auto; }
    .error-actions { flex-direction: column; align-items: stretch; }
    .error-actions .btn { width: 100%; }
    .kv span { display: block; min-width: 0; margin-bottom: 2px; }
    .person-top { align-items: flex-start; }
    .cedula-row strong { font-size: 1.05rem; overflow-wrap: anywhere; }
    .modal-dialog { padding: 18px; width: min(460px, calc(100vw - 24px)); }
    .modal-legal { width: min(680px, calc(100vw - 24px)); }
    h1 { font-size: 1.55rem; }
    th, td { padding: 10px 6px; }
    .facts strong, .identity span { overflow-wrap: anywhere; }
    .info-rows li { grid-template-columns: minmax(0, 1fr) auto; }
    .info-rows span { grid-column: 1; grid-row: 1; }
    .info-rows strong { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
    .info-rows .btn-mini,
    .info-rows .limit-note { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Reportes y seguimiento */
.report-modules {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}
.report-module {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, .62);
    color: var(--muted);
}
.report-module > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: #e8ebf2;
    font-size: .72rem;
    font-weight: 800;
}
.report-module div { display: flex; min-width: 0; flex-direction: column; }
.report-module strong { overflow: hidden; color: var(--ink); font-size: .82rem; text-overflow: ellipsis; }
.report-module small { font-size: .68rem; }
.report-module.is-active { border-color: transparent; background: var(--primary); color: rgba(255,255,255,.78); box-shadow: 0 9px 22px rgba(49, 87, 232, .2); }
.report-module.is-active > span { background: rgba(255,255,255,.18); color: #fff; }
.report-module.is-active strong { color: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2, .section-heading .eyebrow { margin-bottom: 0; text-align: left; }
.section-heading > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.report-chart { margin-top: 16px; }
.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    min-height: 190px;
    padding-top: 24px;
    overflow-x: auto;
}
.daily-column { display: flex; min-width: 25px; height: 160px; flex: 1 0 25px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.daily-column strong, .daily-column small { font-size: .64rem; white-space: nowrap; }
.daily-column small { color: var(--muted); transform: rotate(-35deg); transform-origin: center; }
.daily-column i { width: min(22px, 78%); min-height: 8px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #6384ff, var(--primary)); }
.report-split { margin-top: 0; }
.metric-bars { display: grid; gap: 14px; margin-top: 18px; }
.metric-bars > div { display: grid; gap: 6px; }
.metric-bars span { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; }
.metric-bars b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.metric-bars i, .compact-progress i { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #e9edf7; }
.metric-bars em, .compact-progress em { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7c3aed); }
.validator-report { margin-top: 16px; }
.validator-report td small { display: block; margin-top: 2px; color: var(--muted); }
.compact-progress { min-width: 140px; }
.tracking-search {
    display: grid;
    grid-template-columns: 1fr minmax(230px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin: 16px 0;
}
.tracking-search h2, .tracking-search .eyebrow { text-align: left; }
.tracking-search .field { margin: 0; }
.tracking-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid #b8c7ff;
    border-radius: 13px;
    background: #edf1ff;
    font-size: .82rem;
}
.tracking-result strong { width: 100%; }
.tracking-result small { color: var(--muted); }
.tracking-result.is-warning { border-color: #f6caa8; background: #fff7ed; }
.tracking-result.is-error { border-color: #f4b8b4; background: #fff1f0; }
.tracking-result.is-success { border-color: #9dd8c0; background: #ecfdf5; }
.map-panel { margin-top: 0; }
#tracking-map { width: 100%; height: 430px; border: 1px solid var(--line-strong); border-radius: 14px; background: #e8edf6; z-index: 1; }
.tracking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; margin-top: 16px; }
.pending-places { display: grid; gap: 8px; max-height: 425px; overflow-y: auto; }
.pending-place {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.pending-place:hover { border-color: var(--primary); background: var(--soft); }
.pending-place span { display: flex; min-width: 0; flex-direction: column; }
.pending-place strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.pending-place small { color: var(--muted); font-size: .68rem; }
.pending-place b { color: var(--primary); font-size: .72rem; }
.coordinate-form { display: flex; flex-direction: column; gap: 12px; }
.coordinate-form .field { margin: 0; }
.coordinate-form .btn { align-self: flex-start; }

.report-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 12px;
}
.report-title-row h2, .report-title-row .eyebrow { margin: 0; text-align: left; }
.report-title-row > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.report-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.report-kpis .stat { position: relative; overflow: hidden; min-width: 0; }
.report-kpis .stat::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
    content: "";
}
.report-kpis .stat.is-success::before { background: var(--ok); }
.report-kpis .stat.is-warning::before { background: #f79009; }
.report-kpis .stat.is-danger::before { background: var(--bad); }
.report-downloads, .future-reports { margin-top: 24px; }
.report-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-download-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #cbd6ff;
    border-radius: 15px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 9px 24px rgba(37, 56, 120, .07);
}
.report-download-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: var(--soft);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
}
.report-download-card h3 { margin: 0 0 3px; font-size: .86rem; }
.report-download-card p { margin: 0; color: var(--muted); font-size: .69rem; }
.period-heading { padding-top: 8px; border-top: 1px solid var(--line-strong); }
.validation-funnel { display: grid; gap: 11px; margin-top: 8px; }
.validation-funnel > div { display: grid; gap: 5px; }
.validation-funnel span { display: flex; justify-content: space-between; gap: 12px; font-size: .76rem; }
.validation-funnel i { display: block; height: 10px; overflow: hidden; border-radius: 99px; background: #e9edf7; }
.validation-funnel em { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, #6384ff, #7c3aed); }
.electoral-summary { display: flex; flex-direction: column; }
.electoral-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.electoral-figures article {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #f2f5ff);
    text-align: center;
}
.electoral-figures strong { color: var(--primary); font-size: 1.65rem; }
.electoral-figures span { margin-top: 5px; color: var(--muted); font-size: .7rem; }
.future-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.future-report-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 13px;
    padding: 17px;
    border: 1px dashed #c8cfdd;
    border-radius: 15px;
    background: rgba(255,255,255,.55);
}
.future-report-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #e8ebf2;
    color: #667085;
    font-weight: 800;
}
.future-report-card h3 { margin: 0 0 7px; font-size: .9rem; }
.future-report-card ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: .7rem; }
.future-report-card > b {
    padding: 5px 8px;
    border-radius: 99px;
    background: #e8ebf2;
    color: #667085;
    font-size: .62rem;
}
.report-filter { padding: 14px 16px; gap: 10px; }
.report-filter label { margin-bottom: 4px; font-size: .68rem; }
.report-filter input, .report-filter select {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: .75rem;
}
.report-filter .filter-actions { gap: 6px; }
.report-filter .btn { width: auto; min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: .69rem; }
.trend-chart { position: relative; min-height: 245px; padding: 8px 8px 0 34px; }
.trend-chart svg {
    width: 100%;
    height: 205px;
    overflow: visible;
    border-bottom: 1px solid var(--line-strong);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #e9edf7 50px);
}
.trend-line { fill: none; stroke: var(--primary); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.trend-area { fill: url(#reportTrendFill); stroke: none; }
.trend-scale {
    position: absolute;
    top: 8px;
    bottom: 31px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--muted);
    font-size: .62rem;
}
.trend-labels { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; color: var(--muted); font-size: .64rem; }
.trend-labels strong { color: var(--ink); }
.status-donut-wrap { display: grid; grid-template-columns: auto minmax(150px, 1fr); align-items: center; justify-content: center; gap: 28px; min-height: 235px; }
.status-donut {
    position: relative;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    border-radius: 50%;
}
.status-donut::after { position: absolute; width: 108px; height: 108px; border-radius: 50%; background: #fff; content: ""; }
.status-donut span { position: relative; z-index: 1; display: flex; flex-direction: column; color: var(--muted); font-size: .65rem; text-align: center; }
.status-donut strong { color: var(--ink); font-size: 1.5rem; }
.status-legend { display: grid; gap: 12px; }
.status-legend > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .75rem; }
.status-legend i { width: 9px; height: 9px; border-radius: 50%; }
.status-legend i.is-active { background: var(--ok); }
.status-legend i.is-pending { background: #f79009; }
.status-legend i.is-inactive { background: var(--bad); }
.audit-report { margin-top: 16px; }
.audit-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 14px; }
.audit-kpis article { display: flex; flex-direction: column; padding: 11px; border: 1px solid var(--line-strong); border-radius: 11px; background: #f8f9fd; text-align: center; }
.audit-kpis strong { color: var(--primary); font-size: 1.25rem; }
.audit-kpis span { color: var(--muted); font-size: .65rem; }
.audit-table { font-size: .7rem; }
.audit-table td small { display: block; color: var(--muted); }
.audit-module { display: inline-block; padding: 4px 7px; border-radius: 99px; background: var(--soft); color: var(--primary); font-size: .62rem; font-weight: 800; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.password-toggle:hover { background: #d9e3ff; }
.initial-password-layout { max-width: 900px; margin-inline: auto; }
.initial-password-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.initial-password-actions .btn { width: 100%; }

@media (max-width: 900px) {
    .report-modules { grid-template-columns: repeat(3, 1fr); }
    .report-kpis { grid-template-columns: repeat(3, 1fr); }
    .report-download-grid, .future-report-grid { grid-template-columns: 1fr; }
    .tracking-grid { grid-template-columns: 1fr; }
    .tracking-search { grid-template-columns: 1fr 1fr; text-align: center; }
    .tracking-search > div:first-child { grid-column: 1 / -1; }
    .tracking-search h2, .tracking-search .eyebrow { text-align: center; }
    .status-donut-wrap { grid-template-columns: 1fr; gap: 15px; }
    .status-donut { margin: auto; }
}
@media (max-width: 600px) {
    .report-modules { grid-template-columns: repeat(2, 1fr); }
    .report-kpis { grid-template-columns: repeat(2, 1fr); }
    .report-title-row { flex-direction: column; align-items: center; text-align: center; }
    .report-title-row h2, .report-title-row .eyebrow { text-align: center; }
    .report-download-card { grid-template-columns: auto minmax(0, 1fr); text-align: left; }
    .report-download-card .btn { grid-column: 1 / -1; width: 100%; }
    .future-report-card { grid-template-columns: auto minmax(0, 1fr); text-align: left; }
    .future-report-card > b { grid-column: 1 / -1; justify-self: center; }
    .electoral-figures { grid-template-columns: 1fr; }
    .audit-kpis { grid-template-columns: repeat(2, 1fr); }
    .trend-labels strong { display: none; }
    .section-heading { flex-direction: column; text-align: center; }
    .section-heading h2, .section-heading .eyebrow { text-align: center; }
    .tracking-search { grid-template-columns: 1fr; }
    .tracking-search > div:first-child { grid-column: auto; }
    .tracking-search .btn, .coordinate-form .btn { width: 100%; }
    #tracking-map { height: 350px; }
    .compact-progress { min-width: 90px; }
}

@media print {
    body { background: #fff; }
    .topbar, .site-foot, .btn-back, .report-modules, .report-filter,
    .report-downloads, .future-reports { display: none !important; }
    .wrap { width: 100%; }
    .panel, .stat { break-inside: avoid; box-shadow: none; }
}
