/* Виджеты графиков в демо-чате */
.product-chat-preview .airag-charts {
    margin: 14px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-chat-preview .airag-chart-card {
    --chart-bg: #141414;
    --chart-border: #2a2a2a;
    --chart-line: #ffd54f;
    --chart-text: #f4f4f5;
    --chart-muted: #737373;
    --chart-grid: rgba(255, 255, 255, 0.06);
    background: var(--chart-bg);
    border: 1px solid var(--chart-border);
    border-radius: 14px;
    padding: 14px 14px 12px;
    overflow: hidden;
}

.product-chat-preview .airag-chart-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.product-chat-preview .airag-chart-card__badge {
    flex-shrink: 0;
    min-width: 28px;
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    background: var(--chart-line);
    color: #171717;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-chat-preview .airag-chart-card__titles {
    min-width: 0;
    flex: 1;
}

.product-chat-preview .airag-chart-card__title {
    color: var(--chart-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 2px;
}

.product-chat-preview .airag-chart-card__subtitle {
    color: var(--chart-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.product-chat-preview .airag-chart-card__plot {
    margin: 0 -4px;
}

.product-chat-preview .airag-chart-svg {
    display: block;
    width: 100%;
    height: auto;
}

.product-chat-preview .airag-chart-grid {
    stroke: var(--chart-grid);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.product-chat-preview .airag-chart-grid--v {
    stroke-opacity: 0.55;
}

.product-chat-preview .airag-chart-axis-y,
.product-chat-preview .airag-chart-axis-x {
    fill: var(--chart-muted);
    font-size: 9px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-chat-preview .airag-chart-line {
    stroke: var(--chart-line);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.product-chat-preview .airag-chart-dot {
    fill: var(--chart-line);
    stroke: var(--chart-bg);
    stroke-width: 1.5;
}

.product-chat-preview .airag-chart-dot-ring {
    fill: none;
    stroke: var(--chart-line);
    stroke-opacity: 0.35;
    stroke-width: 1;
}

.product-chat-preview .airag-chart-card__foot {
    margin-top: 8px;
}

.product-chat-preview .airag-chart-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #1f1f1f;
    border: 1px solid var(--chart-border);
    color: var(--chart-muted);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

html[data-color-scheme='light'] .product-chat-preview .airag-chart-card {
    --chart-bg: #f8fafc;
    --chart-border: #e2e8f0;
    --chart-line: #ca8a04;
    --chart-text: #0f172a;
    --chart-muted: #64748b;
    --chart-grid: rgba(15, 23, 42, 0.08);
}

html[data-color-scheme='light'] .product-chat-preview .airag-chart-card__tag {
    background: #f1f5f9;
}

@media (max-width: 720px) {
    .product-chat-preview .airag-chart-card {
        padding: 12px 10px 10px;
        border-radius: 12px;
    }

    .product-chat-preview .airag-chart-card__title {
        font-size: 0.8125rem;
    }
}
