/* /Components/LoadingOverlay.razor.rz.scp.css */
.kat-loading-overlay[b-jxpokxlizb] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kat-loading-card[b-jxpokxlizb] {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.kat-loading-text[b-jxpokxlizb] {
    color: #333;
    font-weight: 600;
}

.kat-spinner[b-jxpokxlizb] {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #1b6ec2;
    border-radius: 50%;
    animation: kat-spin-b-jxpokxlizb 0.8s linear infinite;
}

@keyframes kat-spin-b-jxpokxlizb {
    to { transform: rotate(360deg); }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-bpvxg9107c] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-bpvxg9107c] {
    flex: 1;
}

.sidebar[b-bpvxg9107c] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-bpvxg9107c] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-bpvxg9107c]  a, .top-row[b-bpvxg9107c]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-bpvxg9107c]  a:hover, .top-row[b-bpvxg9107c]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-bpvxg9107c]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-bpvxg9107c] {
        justify-content: space-between;
    }

    .top-row[b-bpvxg9107c]  a, .top-row[b-bpvxg9107c]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-bpvxg9107c] {
        flex-direction: row;
    }

    .sidebar[b-bpvxg9107c] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-bpvxg9107c] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-bpvxg9107c]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-bpvxg9107c], article[b-bpvxg9107c] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-u70wclbhh5] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-u70wclbhh5] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-u70wclbhh5] {
    font-size: 1.1rem;
}

.bi[b-u70wclbhh5] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-u70wclbhh5] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-u70wclbhh5] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-u70wclbhh5] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-u70wclbhh5] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-u70wclbhh5] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-u70wclbhh5] {
        padding-bottom: 1rem;
    }

    .nav-item[b-u70wclbhh5]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-u70wclbhh5]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-u70wclbhh5]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-u70wclbhh5] {
        display: none;
    }

    .collapse[b-u70wclbhh5] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-u70wclbhh5] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Layout/PublicLayout.razor.rz.scp.css */
.public-layout-root[b-86m4i8fjht] { min-height:100vh; display:flex; flex-direction:column; background:var(--rz-base-background-color); }
.public-main[b-86m4i8fjht] { width:100%; max-width:1200px; margin:0 auto; flex:1; }
.public-main .content[b-86m4i8fjht] { padding:12px 16px; }
@media (min-width:1200px) { .public-main[b-86m4i8fjht] { max-width:1400px; } }
/* /Layout/ReporterLayout.razor.rz.scp.css */
/* Full-width, touch-friendly layout */
:deep(.rz-content)[b-p0pz0azdwr] {
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    :deep(.rz-content)[b-p0pz0azdwr] {
        max-width: none;
        margin: 0;
    }
}
/* /Pages/HqMode.razor.rz.scp.css */
/* ══ RESET & ROOT ══ */
.page[b-aobb154iho], .hq-loading[b-aobb154iho] {
    --bg:       #0b0e14;
    --surface:  #131720;
    --surface2: #1a1f2e;
    --surface3: #101319;
    --accent:   #e8c84a;
    --accent2:  #4a9ee8;
    --accent3:  #e84a6f;
    --green:    #4ae89a;
    --orange:   #e8944a;
    --text:     #eef0f5;
    --muted:    #6b7280;
    --border:   rgba(255,255,255,0.06);
}

.hq-loading[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
}

/* ══ ROOT GRID ══
   position:fixed copre il viewport scavalcando padding/max-width
   iniettati da PublicLayout o da Radzen  */
.page[b-aobb154iho] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr 32vh;
    grid-template-columns: 1fr 30%;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

/* ══ HEADER ══ */
.header[b-aobb154iho] {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(7px,1vh,14px) clamp(12px,1.5vw,24px);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.header[b-aobb154iho]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(232,200,74,0.07) 0%, transparent 55%);
    pointer-events: none;
}

.party-identity[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: clamp(8px,1.2vw,16px);
}

.party-logo[b-aobb154iho] {
    width: clamp(30px,3.2vw,48px);
    height: clamp(30px,3.2vw,48px);
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.party-logo--text[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px,1.6vw,22px);
    color: #000;
}

.party-name[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px,2.4vw,36px);
    letter-spacing: 0.04em;
    line-height: 1;
}

.party-subtitle[b-aobb154iho] {
    font-size: clamp(7px,0.68vw,10px);
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-right[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: clamp(12px,1.6vw,24px);
}

.live-badge[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(7px,0.65vw,10px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e84a4a;
}

.live-dot[b-aobb154iho] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e84a4a;
    animation: hq-live-pulse 1.4s ease-in-out infinite;
}

.total-votes[b-aobb154iho] { text-align: right; }

.total-label[b-aobb154iho] {
    font-size: clamp(7px,0.65vw,10px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.total-number[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px,3.6vw,54px);
    color: var(--accent);
    line-height: 1;
}

.total-pct[b-aobb154iho] {
    font-size: clamp(9px,0.9vw,14px);
    color: var(--accent);
    opacity: .7;
}

/* ══ MAIN PANEL ══ */
.main-panel[b-aobb154iho] {
    grid-column: 1/2;
    grid-row: 2;
    padding: clamp(8px,1vh,16px) clamp(12px,1.5vw,24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(4px,0.6vh,8px);
}

.section-label[b-aobb154iho] {
    font-size: clamp(7px,0.62vw,10px);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    flex-shrink: 0;
}

.candidates-grid[b-aobb154iho] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3px,0.5vh,7px) clamp(8px,1vw,16px);
    flex: 1;
    align-content: start;
}

.candidate-row[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: clamp(5px,0.6vw,10px);
    animation: fadeIn 0.35s ease both;
    min-width: 0;
}

.candidate-row:nth-child(1)[b-aobb154iho]  { animation-delay: .04s }
.candidate-row:nth-child(2)[b-aobb154iho]  { animation-delay: .08s }
.candidate-row:nth-child(3)[b-aobb154iho]  { animation-delay: .12s }
.candidate-row:nth-child(4)[b-aobb154iho]  { animation-delay: .16s }
.candidate-row:nth-child(5)[b-aobb154iho]  { animation-delay: .20s }
.candidate-row:nth-child(6)[b-aobb154iho]  { animation-delay: .24s }
.candidate-row:nth-child(7)[b-aobb154iho]  { animation-delay: .28s }
.candidate-row:nth-child(8)[b-aobb154iho]  { animation-delay: .32s }
.candidate-row:nth-child(9)[b-aobb154iho]  { animation-delay: .36s }
.candidate-row:nth-child(10)[b-aobb154iho] { animation-delay: .40s }
.candidate-row:nth-child(11)[b-aobb154iho] { animation-delay: .44s }
.candidate-row:nth-child(12)[b-aobb154iho] { animation-delay: .48s }
.candidate-row:nth-child(13)[b-aobb154iho] { animation-delay: .52s }

@@keyframes fadeIn {
    from[b-aobb154iho] { opacity: 0; transform: translateX(-8px); }
    to[b-aobb154iho]   { opacity: 1; transform: translateX(0); }
}

.avatar[b-aobb154iho] {
    width: clamp(28px,2.8vw,44px);
    height: clamp(28px,2.8vw,44px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(232,200,74,0.25);
    background: var(--surface2);
}

.avatar--initials[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px,1vw,16px);
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
}

.cand-info[b-aobb154iho] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cand-name-row[b-aobb154iho] {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rank[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(9px,0.85vw,12px);
    color: var(--muted);
    flex-shrink: 0;
}

.cand-name[b-aobb154iho] {
    font-size: clamp(9px,0.95vw,13px);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cand-votes[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px,1.4vw,20px);
    color: var(--accent);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.hq-mayor-votes-block[b-aobb154iho] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.hq-mayor-votes-label[b-aobb154iho] {
    font-size: clamp(7px, 0.65vw, 10px);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}

.hq-light .hq-mayor-votes-label[b-aobb154iho] {
    color: rgba(26,30,46,0.45);
}

/* ══ SIDEBAR ══ */
.sidebar[b-aobb154iho] {
    grid-column: 2/3;
    grid-row: 1/3;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mini-party[b-aobb154iho] {
    flex: 1;
    padding: clamp(7px,1vh,14px) clamp(9px,0.9vw,16px);
    display: flex;
    flex-direction: column;
    gap: clamp(4px,0.7vh,9px);
    position: relative;
    overflow: hidden;
}

.mini-party:not(:last-child)[b-aobb154iho] {
    border-bottom: 1px solid var(--border);
}

.mini-party[b-aobb154iho]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--mini-accent, var(--accent2));
}

.mini-header[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-logo[b-aobb154iho] {
    width: clamp(18px,1.8vw,28px);
    height: clamp(18px,1.8vw,28px);
    border-radius: 5px;
    object-fit: contain;
    flex-shrink: 0;
}

.mini-logo--text[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(8px,0.85vw,13px);
    color: #fff;
}

.mini-name-block[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-clickable[b-aobb154iho] {
    cursor: pointer;
    border-radius: 5px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background 0.15s ease;
}

.mini-clickable:hover[b-aobb154iho] {
    background: rgba(255, 255, 255, 0.06);
}

.mini-name[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(12px,1.4vw,20px);
    letter-spacing: .04em;
    line-height: 1;
}

.mini-total[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px,1.7vw,26px);
    line-height: 1;
}

.mini-pct[b-aobb154iho] {
    font-size: clamp(7px,0.65vw,10px);
    color: var(--muted);
    margin-top: 1px;
}

.mini-candidates-grid[b-aobb154iho] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2px,0.4vh,5px) clamp(5px,0.5vw,9px);
    flex: 1;
    align-content: start;
}

.mini-cand-row[b-aobb154iho] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
}

.mini-cand-name[b-aobb154iho] {
    font-size: clamp(7px,0.7vw,10px);
    color: rgba(238,240,245,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mini-cand-votes[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(9px,0.95vw,14px);
    flex-shrink: 0;
}

/* ══ STRISCIA SEGGI ══ */
.seggi-strip[b-aobb154iho] {
    grid-column: 1 / 3;
    grid-row: 3;
    border-top: 1px solid var(--border);
    background: var(--surface3);
    display: flex;
    overflow: hidden;
}

.seggio-card[b-aobb154iho] {
    flex: 1;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: clamp(5px,0.7vh,10px) clamp(6px,0.6vw,10px);
    gap: clamp(3px,0.4vh,5px);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease both;
}

.seggio-card:last-child[b-aobb154iho] { border-right: none; }

.seggio-card:nth-child(1)[b-aobb154iho] { animation-delay: .08s }
.seggio-card:nth-child(2)[b-aobb154iho] { animation-delay: .13s }
.seggio-card:nth-child(3)[b-aobb154iho] { animation-delay: .18s }
.seggio-card:nth-child(4)[b-aobb154iho] { animation-delay: .23s }
.seggio-card:nth-child(5)[b-aobb154iho] { animation-delay: .28s }
.seggio-card:nth-child(6)[b-aobb154iho] { animation-delay: .33s }
.seggio-card:nth-child(7)[b-aobb154iho] { animation-delay: .38s }

@@keyframes fadeUp {
    from[b-aobb154iho] { opacity: 0; transform: translateY(8px); }
    to[b-aobb154iho]   { opacity: 1; transform: translateY(0); }
}

.seggio-card[b-aobb154iho]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

/* colori barra superiore per stato */
.seggio-card.in-corso[b-aobb154iho]::before    { background: var(--orange); }
.seggio-card.completato[b-aobb154iho]::before  { background: var(--green); }
.seggio-card.in-attesa[b-aobb154iho]::before   { background: var(--muted); }
.seggio-card.aperto[b-aobb154iho]::before      { background: var(--accent2); }

.seg-head[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.seg-num[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px,1.4vw,20px);
    line-height: 1;
}

.seg-badge[b-aobb154iho] {
    font-size: clamp(6px,0.58vw,8px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.in-corso   .seg-badge[b-aobb154iho]  { background: rgba(232,148,74,.18);  color: var(--orange); }
.completato .seg-badge[b-aobb154iho]  { background: rgba(74,232,154,.15);  color: var(--green); }
.in-attesa  .seg-badge[b-aobb154iho]  { background: rgba(107,114,128,.15); color: var(--muted); }
.aperto     .seg-badge[b-aobb154iho]  { background: rgba(74,158,232,.15);  color: var(--accent2); }

.seg-scrutinio[b-aobb154iho] {
    font-size: clamp(6px,0.58vw,8px);
    color: var(--muted);
    letter-spacing: .03em;
    flex-shrink: 0;
}

.seg-pills[b-aobb154iho] {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.pill[b-aobb154iho] {
    font-size: clamp(5px,0.55vw,7px);
    padding: 1px 3px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: .03em;
}

.pill-null[b-aobb154iho]  { background: rgba(232,74,111,.12);  color: var(--accent3); }
.pill-white[b-aobb154iho] { background: rgba(107,114,128,.12); color: var(--muted); }
.pill-cont[b-aobb154iho]  { background: rgba(232,148,74,.12);  color: var(--orange); }

.seg-divider[b-aobb154iho] {
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.seg-cands[b-aobb154iho] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1px,0.25vh,3px) clamp(3px,0.3vw,5px);
    flex: 1;
    align-content: start;
    overflow: hidden;
}

.seg-cand-row[b-aobb154iho] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px;
    min-width: 0;
}

.seg-cand-name[b-aobb154iho] {
    font-size: clamp(6px,0.6vw,8px);
    color: rgba(238,240,245,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.seg-cand-votes[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(8px,0.85vw,12px);
    color: var(--accent);
    flex-shrink: 0;
}

.in-attesa .seg-cands[b-aobb154iho] { opacity: .3; }

/* ══ MAYOR HERO — main panel ══ */
.hq-mayor-hero[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px,0.8vw,14px);
    padding: clamp(6px,0.7vh,12px) clamp(8px,0.8vw,14px);
    border-left: 3px solid;
    border-radius: 8px;
    margin-bottom: clamp(6px,0.7vh,10px);
    cursor: default;
}

.hq-mayor-hero-photo[b-aobb154iho] {
    width: clamp(42px,4.5vw,68px);
    height: clamp(42px,4.5vw,68px);
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid;
    background: rgba(255,255,255,0.06);
}

.hq-mayor-hero-photo--initials[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(14px,1.5vw,22px);
    font-weight: 700;
}

.hq-mayor-hero-left[b-aobb154iho] {
    display: flex;
    align-items: center;
    gap: clamp(8px,0.8vw,14px);
    min-width: 0;
}

.hq-mayor-hero-info[b-aobb154iho] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hq-mayor-hero-name[b-aobb154iho] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(14px,1.5vw,22px);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hq-mayor-badge[b-aobb154iho] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: clamp(6px,0.58vw,8px);
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 4px;
    opacity: .85;
    width: fit-content;
}

.hq-lista-votes-row[b-aobb154iho] {
    margin-bottom: clamp(4px,0.5vh,8px);
}

.hq-cand-divider[b-aobb154iho] {
    height: 1px;
    opacity: 0.18;
    border-radius: 100px;
    margin: clamp(4px,0.5vh,8px) 0 clamp(6px,0.7vh,10px);
}

/* ══ MAYOR HERO — sidebar ══ */
.mini-mayor-hero-row[b-aobb154iho] {
    grid-column: 1 / -1;
    align-items: center;
    gap: clamp(4px,0.4vw,8px);
    margin-bottom: clamp(2px,0.3vh,4px);
}

.mini-mayor-photo[b-aobb154iho] {
    width: clamp(20px,2vw,30px);
    height: clamp(20px,2vw,30px);
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 1px solid;
    background: rgba(255,255,255,0.06);
}

.mini-mayor-photo--initials[b-aobb154iho] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(7px,0.7vw,11px);
    font-weight: 700;
}

.mini-mayor-info[b-aobb154iho] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mini-mayor-name[b-aobb154iho] {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-mayor-badge[b-aobb154iho] {
    display: inline-flex;
    align-items: center;
    font-size: clamp(5px,0.48vw,7px);
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1px 4px;
    border-radius: 3px;
    opacity: .8;
    width: fit-content;
}

.mini-cand-divider[b-aobb154iho] {
    grid-column: 1 / -1;
    height: 1px;
    opacity: 0.15;
    border-radius: 100px;
    margin: clamp(1px,0.2vh,3px) 0;
}

.mini-mayor-votes-block[b-aobb154iho] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
    margin-left: auto;
}

.mini-mayor-votes-label[b-aobb154iho] {
    font-size: clamp(5px,0.48vw,7px);
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* ══ SEGGI — riga sindaco + voto senza pref. ══ */
.seg-mayor-row[b-aobb154iho] {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.seg-mayor-name[b-aobb154iho] {
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.seg-cand-label[b-aobb154iho] {
    font-size: clamp(5px,0.5vw,7px);
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ══ FLOATING CONTROLS ══ */
.hq-float-zone[b-aobb154iho] {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 120px;
    height: 52px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    pointer-events: auto;
}

.hq-float-controls[b-aobb154iho] {
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hq-float-controls.hq-controls-visible[b-aobb154iho] {
    opacity: 1;
    pointer-events: auto;
}

.hq-ctrl-btn[b-aobb154iho] {
    background: rgba(20, 24, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.hq-ctrl-btn:hover[b-aobb154iho] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.hq-ctrl-btn--active[b-aobb154iho] {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ══ LIGHT THEME ══ */
.page.hq-light[b-aobb154iho] {
    --bg:       #f0f2f7;
    --surface:  #ffffff;
    --surface2: #e8eaf0;
    --surface3: #eceef4;
    --text:     #1a1e2e;
    --muted:    #6b7280;
    --border:   rgba(0,0,0,0.09);
}

.hq-light .seg-cand-name[b-aobb154iho] {
    color: rgba(26, 30, 46, 0.85);
}

.hq-light .mini-cand-name[b-aobb154iho] {
    color: rgba(26, 30, 46, 0.85);
}

.hq-light .mini-cand-votes[b-aobb154iho] {
    color: rgba(26, 30, 46, 0.75);
}

.hq-light .hq-ctrl-btn[b-aobb154iho] {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.14);
    color: #1a1e2e;
}

.hq-light .hq-ctrl-btn:hover[b-aobb154iho] {
    background: rgba(0, 0, 0, 0.07);
}

/* ══ D'HONDT PROJECTED SEATS ══ */
.candidate-row--projected[b-aobb154iho] {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--hq-proj-color, rgba(255,255,255,0.04)) 0%, transparent 100%);
}

.avatar--projected[b-aobb154iho] {
    box-shadow: 0 0 0 0.5px var(--hq-proj-accent, rgba(255,255,255,0.35));
}

.mini-cand-row--projected[b-aobb154iho] {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--hq-proj-color, rgba(255,255,255,0.05)) 0%, transparent 100%);
    padding-left: 4px;
    margin-left: -4px;
}

.hq-proj-gem[b-aobb154iho] {
    font-size: clamp(4px, 0.45vw, 6px);
    color: var(--hq-proj-accent, rgba(255,255,255,0.5));
    flex-shrink: 0;
    animation: hq-proj-pulse-b-aobb154iho 2.4s ease-in-out infinite;
}

@keyframes hq-proj-pulse-b-aobb154iho {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}
/* /Pages/Reporter.razor.rz.scp.css */
.reporter-header[b-a6tawoscbc] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.reporter-header-left[b-a6tawoscbc] {
    flex: 1;
    min-width: 220px;
}

.reporter-header-right[b-a6tawoscbc] {
    min-width: 140px;
    text-align: right;
}

.reporter-name[b-a6tawoscbc] {
    font-weight: 600;
}

.reporter-subtitle[b-a6tawoscbc] {
    margin-top: 6px;
    color: var(--rz-text-secondary);
    font-size: 0.95rem;
}

.reporter-actions[b-a6tawoscbc] {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.reporter-meta[b-a6tawoscbc] {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    color: var(--rz-text-secondary);
    font-size: 0.95rem;
}

.reporter-counters[b-a6tawoscbc] {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
}

.reporter-counter[b-a6tawoscbc] {
    border: 1px solid var(--rz-base-200);
    border-radius: 10px;
    padding: 12px;
    background: var(--rz-body-background);
}

.reporter-counter-title[b-a6tawoscbc] {
    font-weight: 600;
    margin-bottom: 8px;
}

.reporter-stepper[b-a6tawoscbc] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.reporter-stepper-value[b-a6tawoscbc] {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reporter-partybar[b-a6tawoscbc] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Mini guida voti ── */
.vote-guide[b-a6tawoscbc] {
    border: 1px solid #dce8f5;
    border-radius: 10px;
    background: #f5f9ff;
    margin-bottom: 10px;
    overflow: hidden;
}

.vote-guide-toggle[b-a6tawoscbc] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a4a7a;
    list-style: none;
    user-select: none;
}

.vote-guide-toggle[b-a6tawoscbc]::-webkit-details-marker { display: none; }

.vote-guide-icon[b-a6tawoscbc] { font-size: 1rem; }

.vote-guide-chevron[b-a6tawoscbc] {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: #5a7a9a;
}

details.vote-guide[open] .vote-guide-chevron[b-a6tawoscbc] {
    transform: rotate(90deg);
}

.vote-guide-body[b-a6tawoscbc] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 14px 12px;
    border-top: 1px solid #dce8f5;
}

.vote-guide-row[b-a6tawoscbc] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.vote-guide-badge[b-a6tawoscbc] {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 150px;
    text-align: center;
}

.vote-guide-badge--symbol[b-a6tawoscbc]    { background: #e3f0ff; color: #1565c0; }
.vote-guide-badge--pref[b-a6tawoscbc]      { background: #e8f5e9; color: #2e7d32; }
.vote-guide-badge--null[b-a6tawoscbc]      { background: #fce4ec; color: #b71c1c; }
.vote-guide-badge--blank[b-a6tawoscbc]     { background: #f3e5f5; color: #6a1b9a; }
.vote-guide-badge--contested[b-a6tawoscbc] { background: #fff3e0; color: #e65100; }

.vote-guide-desc[b-a6tawoscbc] {
    font-size: 0.83rem;
    color: #3a5a7a;
}

.reporter-toolbar[b-a6tawoscbc] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-group[b-a6tawoscbc] {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.toolbar-group--critical[b-a6tawoscbc] {
    background: rgba(255, 87, 34, 0.06);
    border: 1px solid rgba(255, 87, 34, 0.18);
    border-radius: 8px;
    padding: 4px 8px;
}

.toolbar-btn-wrap[b-a6tawoscbc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.toolbar-label[b-a6tawoscbc] {
    font-size: 0.68rem;
    color: var(--rz-text-secondary);
    white-space: nowrap;
    line-height: 1;
}

.toolbar-separator[b-a6tawoscbc] {
    width: 1px;
    height: 44px;
    background: var(--rz-base-300);
    margin: 0 4px;
    flex-shrink: 0;
}

.reporter-table[b-a6tawoscbc] {
    width: 100%;
    border-collapse: collapse;
}

.reporter-table th[b-a6tawoscbc],
.reporter-table td[b-a6tawoscbc] {
    padding: 10px;
    border-bottom: 1px solid var(--rz-base-200);
}

@media (max-width: 900px) {
    .reporter-actions[b-a6tawoscbc] {
        grid-template-columns: repeat(2, 1fr);
    }

    .reporter-meta[b-a6tawoscbc] {
        grid-template-columns: 1fr;
    }

    .reporter-counters[b-a6tawoscbc] {
        grid-template-columns: 1fr;
    }

    .reporter-header[b-a6tawoscbc] {
        flex-direction: column;
    }

    .reporter-header-right[b-a6tawoscbc] {
        text-align: left;
    }
}
