/* Карточки ECP Visual — не зависят от темы сайта. */

.ecp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.ecp-group {
    margin: 8px 0 18px;
}

.ecp-group-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dfe5ee;
    color: #1b2330;
}

.ecp-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    padding: 14px 16px;
    box-sizing: border-box;
}

.ecp-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8efff;
    color: #1f5eff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
}

.ecp-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ecp-line1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecp-name {
    font-weight: 600;
    font-size: 15px;
    color: #1b2330;
}

.ecp-role {
    color: #6b7788;
    font-size: 13px;
}

.ecp-org {
    color: #6b7788;
    font-size: 12px;
    margin-top: 2px;
}

.ecp-meta {
    color: #6b7788;
    font-size: 12px;
    margin-top: 2px;
}

.ecp-title {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #1f5eff;
    text-decoration: none;
}

.ecp-title:hover {
    text-decoration: underline;
}

.ecp-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 13px;
}

.ecp-actions a {
    color: #1f5eff;
    text-decoration: none;
    white-space: nowrap;
}

.ecp-actions a:hover {
    text-decoration: underline;
}

.ecp-pill {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.ecp-pill-ok {
    background: #e3f6ec;
    color: #137a4b;
}

.ecp-pill-bad {
    background: #fdecea;
    color: #b42318;
}

.ecp-pill-demo {
    background: #fff4d6;
    color: #8a5a00;
}

.ecp-pill-unknown {
    background: #eef1f6;
    color: #6b7788;
}

.ecp-error {
    background: #fdecea;
    color: #b42318;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.ecp-empty {
    color: #6b7788;
    font-size: 14px;
}

@media (max-width: 720px) {
    .ecp-card {
        flex-wrap: wrap;
    }

    .ecp-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
}
