.ai-article-summary {
    margin: 28px 0 0;
    padding: 18px 20px 18px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: #ffffff;
    color: #050505;
    font-family: inherit;
}

.ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 13px;
}

.ai-summary-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #050505;
    font-size: 1.18rem;
    line-height: 1.2;
}

.ai-summary-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-right: 9px;
    color: #d42031;
}

.ai-summary-title-text {
    font-weight: 800;
}

.ai-summary-title-source {
    color: #333333;
    font-weight: 400;
    font-size: 14px;
}

.ai-summary-preview {
    max-width: 720px;
    margin-top: 14px;
    color: #303030;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.ai-summary-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 2px 0;
    background: transparent !important;
    color: #333333 !important;
    cursor: pointer;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ai-summary-toggle:hover,
.ai-summary-toggle:focus {
    color: #c41442;
    outline: none;
}

.ai-summary-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    transform: rotate(45deg);
    margin-top: 5px;
}

.ai-summary-toggle[aria-expanded="false"]::after {
    margin-top: -3px;
    transform: rotate(225deg);
}

.ai-summary-full {
    max-width: 720px;
    margin-top: 14px;
}

.ai-summary-full ul {
    margin: 0;
    padding-left: 22px;
}

.ai-summary-full li {
    margin: 0 0 9px;
    color: #050505;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ai-summary-text {
    display: flex;
    flex-direction: column;
}

.ai-summary-full li::marker {
    color: #050505;
    font-size: 0.9em;
}

.ai-trade-insight {
    max-width: 720px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #e5e5e5;
    color: #303030;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-trade-insight strong {
    color: #c41442;
    font-weight: 700;
}

.ai-summary-style-editorial {
    padding: 18px 18px 18px 20px;
    border: 0;
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    border-left: 4px solid #c41442;
    border-radius: 0;
    border-right: 1px solid #d7d7d7;
}

.ai-summary-style-editorial .ai-summary-header {
    padding-bottom: 11px;
    border-bottom-color: #ececec;
}

.ai-summary-style-editorial .ai-summary-preview,
.ai-summary-style-editorial .ai-summary-full,
.ai-summary-style-editorial .ai-trade-insight {
    max-width: 760px;
}

.ai-summary-style-premium {
    border-color: #ead7d9;
    border: 2px solid #d42031;
    background: #fbf7f7;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.ai-summary-style-premium .ai-summary-header {
    border-bottom-color: #e8dada;
}

.ai-summary-style-premium .ai-trade-insight {
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #ead7d9;
    border-radius: 6px;
    background: #ffffff;
}

.ai-summary-style-minimal {
    padding: 13px 0;
    border: 0;
    border-top: 1px solid #d42031;
    border-bottom: 1px solid #d7d7d7;
    border-radius: 0;
}

.ai-summary-style-minimal .ai-summary-header {
    padding-bottom: 0;
    border-bottom: 0;
}

.ai-summary-style-minimal .ai-summary-title {
    font-size: 1.05rem;
}

.ai-summary-style-minimal .ai-summary-icon {
    width: 20px;
    height: 20px;
}

.ai-summary-style-minimal .ai-summary-preview {
    margin-top: 8px;
    font-size: 0.96rem;
}

.ai-summary-style-minimal .ai-summary-full,
.ai-summary-style-minimal .ai-trade-insight {
    max-width: 720px;
}

@media (max-width: 640px) {
    .ai-article-summary {
        margin: 22px 0 26px;
        padding: 16px;
    }

    .ai-summary-style-editorial {
        padding: 16px 0 16px 16px;
    }

    .ai-summary-style-minimal {
        padding: 12px 0;
    }

    .ai-summary-header {
        align-items: flex-start;
    }

    .ai-summary-title {
        flex-wrap: wrap;
        font-size: 1.05rem;
    }

    .ai-summary-title-source {
        width: calc(100% - 33px);
        margin-left: 33px;
    }

    .ai-summary-preview {
        font-size: 1rem;
    }
}
