:root {
    --page-bg: #f6f8fb;
    --panel-border: #dfe5ee;
    --muted-blue: #2f6f9f;
    --ink: #172033;
}

body {
    background: var(--page-bg);
    color: var(--ink);
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.hero-band {
    background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
}

.eyebrow {
    color: var(--muted-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.content-panel {
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(23, 32, 51, .04);
}

.metric-card {
    min-height: 118px;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 18px;
}

.metric-card__value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.metric-card__label {
    color: #667085;
    margin-top: 8px;
    font-size: .92rem;
}

.vote-filter-card {
    color: inherit;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.vote-filter-card:hover,
.vote-filter-card:focus-visible {
    border-color: #9cb3cc;
    box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
}

.vote-filter-card.is-active {
    border-color: #2f6f9f;
    box-shadow: 0 0 0 3px rgba(47, 111, 159, .16);
}

.faction-chart-wrap {
    height: 300px;
    min-height: 260px;
}

.faction-reaction-list {
    display: grid;
    gap: 10px;
}

.faction-reaction-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--panel-border);
}

.faction-reaction-item:last-child {
    border-bottom: 0;
}

.faction-reaction-item__dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
}

.faction-reaction-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.deputy-photo {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(120px, .55fr) 1fr;
    gap: 10px 16px;
}

.detail-list dt {
    color: #667085;
    font-weight: 500;
}

.detail-list dd {
    margin: 0;
}

.table > :not(caption) > * > * {
    padding: .9rem 1rem;
}

.search-panel {
    max-width: 680px;
}

.cron-command {
    padding: 14px 16px;
    overflow-x: auto;
    color: #172033;
    background: #f6f8fb;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    font-size: .9rem;
}

.cron-guide {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 16px;
}

.cron-guide dt {
    color: #667085;
    font-weight: 600;
}

.cron-guide dd {
    margin: 0;
}

.telegram-feedback {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: calc(100vw - 36px);
    padding: 10px 16px;
    color: #ffffff;
    background: #1d77bb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 32, 51, .18);
    font-weight: 700;
    line-height: 1.2;
}

.telegram-feedback:hover,
.telegram-feedback:focus-visible {
    color: #ffffff;
    background: #155f97;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .search-panel {
        flex-direction: column;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cron-guide {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .telegram-feedback {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        font-size: .9rem;
    }
}
