.vote-tabs {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.vote-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 0.0625rem solid #DCE3E9;
    border-radius: 0.375rem;
    color: var(--black);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.vote-tab.is-active {
    background: var(--app-green);
    color: var(--white);
}

.vote-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3125rem;
    background: var(--white);
    border-radius: 0.25rem;
    color: var(--black);
    font-size: 0.75rem;
}

.vote-tab.is-active .vote-tab-count {
    color: var(--app-darker-green);
}

.vote-pane[hidden] {
    display: none;
}

.vote-day {
    margin-bottom: 0.375rem;
    color: var(--small-text);
    font-size: 0.8125rem;
    text-align: center;
}

.vote-box {
    overflow: hidden;
    background: var(--white);
    border: 0.0625rem solid var(--app-green);
    border-radius: 0.375rem;
}

.vote-box .vote-title {
    padding: 0.6875rem 1rem;
    background: var(--app-green);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.vote-countdown {
    padding: 0.75rem 1rem;
    text-align: center;
}

.vc-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-size: 0.8125rem;
}

.vc-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.vc-clock i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.875rem;
    background: #14212B;
    border-radius: 0.1875rem;
    color: var(--white);
    font-style: normal;
}

.vc-clock b {
    color: var(--black);
}

.vote-inner {
    padding: 0 1rem 1rem;
}

.vote-box.is-closed .vote-inner {
    padding-top: 1rem;
}

.vote-closed-note {
    color: var(--small-text);
    font-size: 0.8125rem;
}

.vote-inner .vote-question {
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9375rem;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vote-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 0.0625rem solid #DCE3E9;
    border-radius: 0.375rem;
    color: var(--black);
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
}

.vote-option:hover {
    border-color: var(--app-green);
}

.vo-radio {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    border: 0.125rem solid var(--app-green);
    border-radius: 50%;
}

.vh-arrow {
    display: inline-flex;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--app-green);
}

.vh-arrow svg {
    width: 100%;
    height: 100%;
}

.vote-option.is-static {
    cursor: default;
    color: var(--small-text);
}

.vote-option.is-static .vo-radio {
    border-color: #DCE3E9;
}

.vote-option.is-picked {
    color: var(--black);
}

.vote-option.is-picked .vo-radio {
    background: var(--app-green);
    border-color: var(--app-green);
    box-shadow: inset 0 0 0 0.1875rem var(--white);
}

.vh-detail .vote-box {
    margin-bottom: 1rem;
}

.vh-detail .vote-results {
    padding: 1rem;
    background: var(--white);
    border-radius: 0.375rem;
}

.vh-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9rem;
    padding: 0.4375rem 0.75rem;
    background: #DCE3E9;
    border-radius: 0.25rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.8125rem;
}

.vh-chip.is-blank {
    background: #EDF1F4;
    color: var(--small-text);
}

.vh-item.is-blank .vh-row {
    cursor: default;
}

.vh-item.is-voted .vh-chip {
    background: var(--app-green);
    color: var(--white);
}

.vote-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(20, 33, 43, 0.06);
}

.vote-intro-text {
    flex: 1 1 16rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
}

.vote-intro-history {
    flex-shrink: 0;
    padding: 0.6875rem 2rem;
    background: var(--app-green);
    border: 0;
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.vote-intro-history:hover {
    background: var(--app-darker-green);
}

.vote-empty {
    padding: 2.5rem 1rem;
    margin: 0;
    color: var(--small-text);
    font-weight: 700;
    text-align: center;
}

.vote-range {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
    max-width: 34rem;
    margin-bottom: 1.25rem;
}

.vote-range-fields {
    display: flex;
    flex: 1 1 18rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 1rem;
    background: var(--white);
    border: 0.0625rem solid #DCE3E9;
    border-radius: 0.5rem;
}

.vote-range-fields input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.25rem 0;
    background: transparent;
    border: 0;
    color: var(--black);
    font-family: inherit;
    font-size: 1rem;
}

.vote-range-fields input:focus {
    outline: none;
}

.vote-range-dash {
    color: var(--small-text);
}

.vote-range-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    background: var(--app-green);
    border: 0;
    border-radius: 0.5rem;
    color: var(--white);
    cursor: pointer;
}

.vote-range-submit:hover {
    background: var(--app-darker-green);
}

.vote-range-submit svg {
    width: 1.375rem;
    height: 1.375rem;
}

.vote-history-table {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
}

.vh-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vh-item {
    border-top: 0.0625rem solid #EDF1F4;
}

.vh-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1rem;
    padding: 0.9375rem 1.5rem;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vh-item.is-focus {
    background: #F3FDF8;
    box-shadow: inset 0.25rem 0 0 var(--app-green);
}

.vh-caret {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid var(--small-text);
    border-bottom: 0.125rem solid var(--small-text);
    transform: rotate(45deg) translate(-0.125rem, -0.125rem);
    transition: transform 0.15s ease;
}

.vh-item.is-open .vh-caret {
    transform: rotate(-135deg) translate(-0.125rem, -0.125rem);
}

.vh-detail[hidden] {
    display: none;
}

.vh-detail {
    padding: 0 1.5rem 1.25rem;
}

.vh-question {
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.875rem;
}

.vh-detail .vote-result {
    margin-bottom: 0.75rem;
}

.vh-detail .vote-result-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    color: var(--app-gray);
    font-weight: 600;
    font-size: 0.8125rem;
}

.vh-detail .vote-result.mine .vote-result-head {
    color: var(--black);
}

.vh-detail .vote-bar {
    width: 100%;
    height: 0.5rem;
    overflow: hidden;
    background: var(--line-gray);
    border-radius: 0.25rem;
}

.vh-detail .vote-bar-fill {
    width: 0;
    height: 100%;
    background: var(--locked-menu-item-light);
    border-radius: 0.25rem;
}

.vh-detail .vote-result.mine .vote-bar-fill {
    background: var(--st-primary);
}

.vh-result-label {
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 700;
    font-size: 0.8125rem;
}

.vh-detail .vote-result-head span:first-child {
    color: var(--app-darker-green);
}

.vh-detail .vote-result.is-second .vote-result-head span:first-child {
    color: var(--app-red);
}

.vh-detail .vote-result.is-second .vote-bar-fill {
    background: var(--app-red);
}

.vote-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--app-red);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vote-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--app-red);
    border-radius: 50%;
    animation: vote-live-pulse 1.5s ease-out infinite;
}

@keyframes vote-live-pulse {
    0% {
        transform: scale(0.86);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(244, 23, 90, 0.55);
    }
    45% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.86);
        opacity: 0.7;
        box-shadow: 0 0 0 0.4rem rgba(0, 0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-live-dot {
        animation: none;
    }
}

.vh-week {
    flex: 1 1 auto;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9375rem;
}

.vh-head .vh-week {
    color: var(--small-text);
    font-size: 0.8125rem;
}

.vh-vote {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    min-width: 9rem;
}

.vh-head .vh-vote {
    min-width: 9rem;
}

.vh-mark {
    display: inline-block;
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    background: #DCE3E9;
    border-radius: 0.25rem;
}

.vh-item.is-voted .vh-mark,
.vh-mark.is-voted {
    background: var(--app-green);
}

.vh-mark-label {
    color: var(--small-text);
    font-size: 0.875rem;
}

.vh-item.is-voted .vh-mark-label {
    color: var(--app-darker-green);
    font-weight: 700;
}

.vote-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.25rem 0 0.5rem;
}

.vote-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vote-card.is-focus {
    box-shadow: 0 0 0 0.125rem var(--app-green);
}

.vote-card .vote-description {
    margin-top: 0.5rem;
    color: var(--app-gray);
    font-weight: 400;
    font-size: 0.8125rem;
    line-height: 1.5;
}

#vote-focus[hidden] {
    display: none;
}

#vote-focus {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vf-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 43, 0.55);
}

.vf-window {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: 90vh;
    padding: 2.75rem 1.5rem 1.5rem;
    overflow-y: auto;
    background: var(--white);
    border-radius: 0.75rem;
}

.vf-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
    background: transparent;
    border: 0;
    color: var(--small-text);
    cursor: pointer;
}

.vf-close svg {
    width: 100%;
    height: 100%;
}

.vf-body .vote-card {
    margin: 0;
    box-shadow: none;
}

#vote-thanks[hidden] {
    display: none;
}

#vote-thanks {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 43, 0.55);
}

.vt-window {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 2.5rem 2rem 2rem;
    background: var(--white);
    border-radius: 0.75rem;
    text-align: center;
}

.vt-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
    background: transparent;
    border: 0;
    color: var(--small-text);
    cursor: pointer;
}

.vt-close svg {
    width: 100%;
    height: 100%;
}

.vt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    background: var(--app-green);
    border-radius: 50%;
    color: var(--white);
}

.vt-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.vt-title {
    margin: 0 0 0.5rem;
    color: var(--black);
    font-size: 1.25rem;
}

.vt-text {
    margin: 0 0 1.5rem;
    color: var(--small-text);
    font-size: 0.9375rem;
}

.vt-ok {
    padding: 0.6875rem 2.5rem;
    background: var(--app-green);
    border: 0;
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.vt-ok:hover {
    background: var(--app-darker-green);
}

@media (max-width: 48rem) {
    .vh-vote,
    .vh-head .vh-vote {
        min-width: 7rem;
    }

    .vh-mark-label {
        display: none;
    }
}
