.ecct-score-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 2.4vh 1.5vw 2.4vh 1vw;
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
}

.ecct-visitors-card {
    width: 100%;
    display: block;
    padding: 2.4vh 1.5vw 2.4vh 1vw;
}

.ecct-score-card__header {
    display: flex;
    align-items: center;
    gap: 1vh;
    margin-bottom: 0.5vh;
}

.ecct-score-card__icon {
    height: 5vh;
    width: 5vh;
    min-height: 36px;
    min-width: 36px;
    object-fit: contain;
    display: block;
}

.ecct-score-card__title {
    margin: 0;
    font-size: 3vh;
    color: var(--white, #ffffff);
}

.ecct-score-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.2vh;
}

.ecct-score-card__label {
    font-size: 2.1vh;
    color: var(--font-not-selected);
}

.ecct-score-card__rank {
    font-size: 1.7vh;
    font-style: italic;
    color: var(--font-not-selected);
    margin-bottom: 0;
}

.ecct-score-card__score-row {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.ecct-score-card__score {
    font-size: 2.4vh;
    font-weight: 600;
    min-width: 6vh;
}

.ecct-score-card__progress-track {
    flex: 1;
    width: auto;
    height: 1.6vh;
    background: var(--deep-green-500, rgba(13, 60, 57, 0.6));
    border-radius: 999px;
    overflow: hidden;
}

.ecct-score-card__progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--orange, #FF7E58),
        var(--yellow, #F6CF71),
        var(--neon-green, #41ED9B)
    );
    background-size: calc(var(--ecct-progress-scale, 1) * 100%) 100%;
    background-position: left center;
}

.ecct-panel__spider {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ecct-panel__spider-graph {
    flex: 1 1 auto;
    min-height: 0;
}

.ecct-panel__spider-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0.2rem 0 0.8rem;
}

.ecct-panel__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecct-panel__legend-label {
    color: var(--white, #ffffff);
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}

.ecct-panel__legend-swatch {
    width: 17px;
    height: 17px;
    border: 1px solid #09c269;
    border-radius: 5px;
    background: rgba(9, 194, 105, 0.23);
    display: inline-block;
}

.ecct-panel__legend-threshold-icon {
    position: relative;
    width: 14px;
    height: 10px;
    display: inline-block;
}

.ecct-panel__legend-threshold-line {
    position: absolute;
    top: 50%;
    left: 1px;
    width: 13px;
    height: 2px;
    transform: translateY(-50%);
    background: #fe7e58;
    border-radius: 999px;
}

.ecct-panel__legend-threshold-cap {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 10px;
    background: #fe7e58;
    border-radius: 999px;
}

.ecct-panel__sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    justify-content: flex-start;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35vw;
}

.ecct-panel__score-row {
    flex: 0 0 auto;
}

.ecct-panel__safety-row {
    flex: 0 0 auto;
}

.ecct-panel__safety-card {
    width: 100%;
    padding: 1.4vh 1vw 1vh;
}

.ecct-panel__safety-card .portal-dropdown__section {
    gap: 10px;
}

.ecct-panel__safety-card .portal-dropdown__safety-margin {
    gap: 2px;
}

.ecct-panel__safety-card .portal-dropdown__metric {
    min-height: 44px;
}
