.ai-impact-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ai-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ai-tab {
    border: 1px solid #cbd5e1;
    background: white;
    color: #334155;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-tab:hover,
.ai-tab.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.ai-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ai-card {
    min-height: 130px;
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
}

.ai-card span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.ai-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.45;
}

.ai-impact-meter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ai-meter-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #475569;
    font-weight: 800;
}

.ai-meter-bar {
    height: 18px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.ai-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b5fa8, #e6004f);
    transition: width 0.35s ease;
}

.ai-explanation {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-weight: 700;
    line-height: 1.6;
}
