.response-summary {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.9rem;
    padding: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
}

.response-summary-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.response-summary-head strong {
    color: var(--color-gold-bright);
    font-size: 1rem;
}

.response-bars {
    display: grid;
    gap: 0.72rem;
}

.response-bar > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
    color: #f6f7f8;
    font-size: 0.84rem;
    font-weight: 800;
}

.response-bar > div strong {
    flex: 0 0 auto;
    color: var(--color-gold-bright);
}

.response-bar-track {
    display: block;
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.response-bar-track i {
    display: block;
    min-width: 2px;
    height: 100%;
    background: linear-gradient(90deg, var(--color-red), var(--color-gold-bright));
    border-radius: inherit;
}

.response-summary-columns .response-bars {
    min-height: 150px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(54px, 1fr);
    align-items: end;
    overflow-x: auto;
}

.response-summary-columns .response-bar {
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    gap: 0.45rem;
    text-align: center;
}

.response-summary-columns .response-bar > div {
    min-height: 56px;
    display: block;
    margin: 0;
}

.response-summary-columns .response-bar > div span,
.response-summary-columns .response-bar > div strong {
    display: block;
}

.response-summary-columns .response-bar-track {
    width: 100%;
    height: 96px;
    display: flex;
    align-items: end;
}

.response-summary-columns .response-bar-track i {
    width: 100% !important;
    height: var(--column-height, 4px);
}

.response-donut-layout {
    display: grid;
    grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: center;
}

.response-donut {
    width: min(150px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: conic-gradient(var(--color-gold) 0 100%);
    border-radius: 50%;
}

.response-donut::after {
    content: "";
    grid-area: 1 / 1;
    width: 61%;
    aspect-ratio: 1;
    background: #17191d;
    border-radius: 50%;
}

.response-donut > span {
    z-index: 1;
    grid-area: 1 / 1;
    display: grid;
    text-align: center;
}

.response-donut strong {
    font-size: 1.8rem;
    line-height: 1;
}

.response-donut small {
    color: var(--color-muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.response-legend {
    display: grid;
    gap: 0.52rem;
}

.response-legend > div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    color: #eef0f3;
    font-size: 0.82rem;
    font-weight: 800;
}

.response-legend i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.response-average {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.response-average strong {
    color: var(--color-gold-bright);
    font-size: 2.25rem;
    line-height: 1;
}

.response-average span,
.response-empty {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.response-choice-list {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
}

.response-choice-list label {
    min-height: 48px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0.7rem 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    text-transform: none;
    cursor: pointer;
}

.response-choice-list label:has(input:checked) {
    color: #050506;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.response-choice-list input {
    flex: 0 0 auto;
}

@media (max-width: 520px) {
    .response-donut-layout {
        grid-template-columns: 1fr;
    }
}
