.cu-fallacy-tags,
.cu-fallacy-form,
.cu-fallacy-def {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.45rem 0;
}

.cu-fallacy-form,
.cu-fallacy-def {
    display: grid;
    padding: 0.7rem;
    border-radius: 12px;
    background: #f4fffd;
}

.cu-fallacy-tag,
.cu-fallacy-form button,
.cu-fallacy-def button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: #0d9488;
    color: #fff;
}

.cu-fallacy-tag--contested {
    background: #fff;
    color: #1c1917;
    box-shadow: inset 0 0 0 2px #0f766e;
}

.cu-fallacy-form label {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.cu-spark {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0.55rem 0;
}

.cu-spark button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: #0d9488;
    color: #fff;
}

.cu-spark__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #e8c56b;
    color: #1c1917;
    font-weight: 700;
}

.cu-spark__badge::before {
    content: "";
    width: 0.55rem;
    height: 0.7rem;
    margin-right: 0.35rem;
    background: #c2410c;
    clip-path: polygon(50% 0, 80% 38%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 20% 38%);
}

.cu-spark__note,
.cu-spark__balance {
    margin: 0.35rem 0;
}

.cu-vote-board {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.cu-vote-card {
    background: color-mix(in srgb, #0d9488 16%, #fff);
    border: 1px solid color-mix(in srgb, #0d9488 42%, #d6d3d1);
    border-radius: 14px;
    padding: 1rem 1rem 1.1rem;
    color: #1c1917;
}

.cu-vote-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.cu-vote-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    background: #e8c56b;
    color: #1c1917;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cu-vote-pill--upcoming {
    background: #e7e5e4;
}

.cu-vote-pill--closed {
    background: #0f766e;
    color: #fff;
}

.cu-vote-card__when,
.cu-vote-card__area,
.cu-vote-habit,
.cu-vote-empty {
    margin: 0.2rem 0 0.55rem;
}

.cu-vote-card h2,
.cu-vote-card h3 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.25rem;
}

.cu-yea-nay {
    display: flex;
    width: 100%;
    min-height: 4rem;
    margin-top: 0.75rem;
    border: 2px solid #6b7280;
    border-radius: 14px;
    overflow: hidden;
    background: #d1d5db;
}

.cu-yea-nay__half {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 750;
    cursor: pointer;
}

.cu-yea-nay__half + .cu-yea-nay__half {
    border-left: 2px solid #6b7280;
}

.cu-yea-nay__half--yea[aria-pressed="true"] {
    background: #15803d;
    color: #fff;
}

.cu-yea-nay__half--nay[aria-pressed="true"] {
    background: #b91c1c;
    color: #fff;
}

.cu-yea-nay__half--pop {
    animation: cu-vote-pop 280ms ease;
}

.cu-yea-nay__icon {
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
}

.cu-yea-nay__half:focus-visible,
.cu-vote-card button:focus-visible,
.cu-vote-card a:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 2px;
}

.cu-vote-confirm {
    margin: 0.65rem 0 0;
    font-weight: 700;
}

.cu-vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cu-vote-result {
    margin-top: 0.8rem;
}

.cu-vote-result__row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.45rem;
    align-items: center;
    margin: 0.35rem 0;
}

.cu-vote-result__track {
    height: 0.7rem;
    background: #e7e5e4;
    border-radius: 999px;
    overflow: hidden;
}

.cu-vote-result__fill {
    height: 100%;
    transform-origin: left center;
    animation: cu-vote-grow 0.7s ease;
}

.cu-vote-result__fill--yea {
    background: #15803d;
}

.cu-vote-result__fill--nay {
    background: #b91c1c;
}

.cu-vote-upcoming {
    margin: 0;
    padding-left: 1.1rem;
}

.cu-vote-prefs {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.cu-vote-prefs label {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
}

@keyframes cu-vote-pop {
    0% { transform: scale(0.96); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes cu-vote-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 700px) {
    .cu-yea-nay,
    .cu-yea-nay__half {
        min-height: 4.5rem;
    }

    .cu-yea-nay__half {
        font-size: 1.28rem;
    }

    .cu-vote-result__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cu-yea-nay__half--pop,
    .cu-vote-result__fill {
        animation: none;
    }
}

html[data-theme="dark"] .cu-vote-card {
    background: color-mix(in srgb, #0d9488 28%, #1c1917);
    border-color: color-mix(in srgb, #5eead4 35%, #44403c);
    color: #fafaf9;
}

html[data-theme="dark"] .cu-vote-pill--upcoming,
html[data-theme="dark"] .cu-yea-nay {
    color: #1c1917;
}
