/* ============================================================
   Smart Inventory — Intelligence / Recommendations styles
   ============================================================ */

.intel-page { padding: 0; }

/* ---- Score chips row ---- */
.rec-scores-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    padding: 6px 0 18px;
}
.rec-score-chip {
    --c: #94a3b8;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
    background: color-mix(in srgb, var(--c) 8%, transparent);
    display: flex; flex-direction: column; gap: 4px;
}
.rec-score-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.rec-score-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--c); }
.rec-score-value small { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.rec-score-band { font-size: 12px; font-weight: 600; color: var(--c); }

/* ---- Recommendation list ---- */
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-soft, rgba(0,0,0,.02));
    border: 1px solid var(--border-color, rgba(0,0,0,.06));
    border-radius: 14px;
    align-items: center;
    transition: all .2s ease;
}
.rec-card:hover { border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.04); }
.rec-card-icon {
    width: 42px; height: 42px;
    background: rgba(124,58,237,.10);
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 18px;
}
.rec-card-main { min-width: 0; }
.rec-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rec-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.rec-card-ref { font-size: 12px; color: var(--text-muted); }
.rec-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.rec-card-actions { display: flex; gap: 6px; }
.rec-sev {
    font-size: 10.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    letter-spacing: 0.04em;
}

/* ---- Event stream ---- */
.evt-stream { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; }
.evt-row {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-soft, rgba(0,0,0,.02));
    border-radius: 10px;
    align-items: center;
}
.evt-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 0 4px currentColor;
}
.evt-title { font-size: 12.5px; }
.evt-mute { color: var(--text-muted); }
.evt-meta { font-size: 11px; color: var(--text-muted); }

@media (max-width: 767px) {
    .rec-card { grid-template-columns: 36px 1fr; }
    .rec-card-actions { grid-column: 1 / -1; }
    .rec-scores-row { grid-template-columns: 1fr 1fr; }
}
