.ect-module,
.ect-module * { box-sizing: border-box; }

.ect-module {
    --ect-dark: #07152c;
    --ect-blue: #273c8e;
    --ect-red: #e92c28;
    width: 100%;
    font-family: inherit;
}

.ect-heading { margin-bottom: 22px; }
.ect-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--ect-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ect-heading h3 {
    margin: 0;
    color: var(--ect-dark);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
}
.ect-heading h3 strong { color: var(--ect-red); }
.ect-heading p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
}
.ect-heading p strong { color: var(--ect-dark); }

.ect-chart-wrap {
    position: relative;
    min-height: 310px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(7, 21, 44, .09);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 21, 44, .06);
}
.ect-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.ect-chart-fallback {
    display: grid;
    min-height: 270px;
    margin: 0;
    place-items: center;
    color: #667085;
}

.ect-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ect-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(7, 21, 44, .09);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(7, 21, 44, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ect-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 60, 142, .22);
    box-shadow: 0 12px 30px rgba(7, 21, 44, .08);
}

.ect-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ect-flag {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 5px 15px rgba(7, 21, 44, .12);
}
.ect-card h4 {
    margin: 0 0 3px;
    color: var(--ect-dark);
    font-size: 17px;
    line-height: 1.2;
}
.ect-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}
.ect-card p strong {
    color: var(--ect-red);
    font-size: 16px;
}

.ect-breakdown {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ect-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(7, 21, 44, .1);
    color: #475467;
    font-size: 13px;
}
.ect-breakdown li:last-child { border-bottom: 0; }
.ect-breakdown strong {
    color: #101828;
    font-variant-numeric: tabular-nums;
}

.ect-progress {
    height: 6px;
    margin-top: auto;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(7, 21, 44, .09);
}
.ect-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ect-blue), var(--ect-red));
}
.ect-no-target {
    margin-top: auto;
    padding-top: 14px;
    color: #98a2b3;
    font-size: 12px;
}

@media (max-width: 1199px) {
    .ect-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
    .ect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .ect-grid { grid-template-columns: 1fr; }
    .ect-chart-wrap { min-height: 260px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ect-card { transition: none; }
    .ect-card:hover { transform: none; }
}
