.evm-result-screen {
    padding: var(--evm-card-padding, 42px);
}

.evm-result-screen > .evm-machine-title {
    margin-bottom: 15px;
}

.evm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.evm-tab {
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid var(--evm-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--evm-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.evm-tab.is-active {
    border-color: var(--evm-primary);
    background: var(--evm-primary);
    color: #101820;
}

.evm-tab-content {
    min-height: 520px;
}

.evm-result-summary,
.evm-public-results,
.evm-detail-results {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.evm-result-title {
    text-align: center;
}

.evm-candidate-result {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr);
    gap: 50px;
    align-items: center;
    max-width: 660px;
    min-height: 330px;
    margin: 0 auto;
    padding: 28px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.evm-candidate-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.evm-candidate-photo,
.evm-candidate-placeholder {
    width: 142px;
    height: 142px;
    border: 4px solid var(--evm-primary);
    border-radius: 50%;
    object-fit: cover;
}

.evm-candidate-placeholder {
    display: grid;
    place-items: center;
    background: var(--evm-accent);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
}

.evm-candidate-number {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--evm-primary);
    color: #101820;
    font-size: 0.875rem;
    font-weight: 700;
}

.evm-score-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 260px;
    padding: 25px 0;
}

.evm-score-line {
    position: relative;
    flex: 1;
    width: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.evm-score-marker {
    position: absolute;
    left: 50%;
    bottom: calc(var(--evm-score) * 1%);
    width: 20px;
    height: 20px;
    border: 4px solid var(--evm-text);
    border-radius: 50%;
    background: var(--evm-primary);
    transform: translate(-50%, 50%);
    animation: evm-marker-rise 0.9s ease-out;
}

.evm-score-marker span {
    position: absolute;
    left: 24px;
    top: 50%;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--evm-primary);
    color: #101820;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translateY(-50%);
}

.evm-gauge-label {
    position: absolute;
    left: 50%;
    color: var(--evm-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
}

.evm-gauge-label--top { top: 0; }
.evm-gauge-label--bottom { bottom: 0; }

.evm-result-interpretation {
    text-align: center;
    color: var(--evm-muted);
    font-size: 1.125rem;
    font-weight: 600;
}

.evm-topic-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.evm-result-bar-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.evm-result-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.evm-result-bar i,
.evm-distribution-bar i {
    display: block;
    width: calc(var(--evm-bar) * 1%);
    height: 100%;
    border-radius: inherit;
    background: var(--evm-primary);
}

.evm-result-summary > .evm-button {
    align-self: center;
}

.evm-public-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.evm-detail-card,
.evm-public-statement {
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.evm-detail-card h3,
.evm-public-statement h4 {
    margin: 14px 0 18px;
}

.evm-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.evm-candidate-reason {
    margin-top: 18px !important;
    padding: 16px;
    border-left: 4px solid var(--evm-primary);
    background: rgba(255, 255, 255, 0.05);
    color: var(--evm-muted);
}

.evm-source-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--evm-primary);
    font-weight: 600;
    text-decoration-color: currentColor;
    text-underline-offset: 4px;
}

.evm-result-restart {
    margin-top: 30px;
}

@keyframes evm-marker-rise {
    from { bottom: 0; opacity: 0.4; }
}
