/* Product-analytics insights (ADR 0037 D2). Scoped to ins-*. Small inline SVG/CSS charts, no library. */

.ins-lede { color: var(--bs-secondary-color); max-width: 46rem; margin: .25rem 0 0; }
.ins-range { min-width: 11rem; }

.ins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.ins-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-card-bg);   /* a card, not the page ground - body-bg made it vanish into the admin grey */
    padding: 1rem 1.15rem 1.15rem;
}
.ins-card-wide { grid-column: 1 / -1; }
.ins-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.ins-card-head h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.ins-csv {
    font-size: .75rem; text-decoration: none; padding: .1rem .45rem;
    border: 1px solid var(--bs-border-color); border-radius: 6px; color: var(--bs-secondary-color);
}
.ins-csv:hover { color: var(--bs-body-color); }
.ins-empty { color: var(--bs-secondary-color); font-size: .875rem; margin: .25rem 0 0; }
.ins-foot { color: var(--bs-secondary-color); font-size: .8rem; margin: .5rem 0 0; }

.ins-kpis { display: flex; gap: 1.25rem; }
.ins-kpi { display: flex; flex-direction: column; }
.ins-kpi-val { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.ins-kpi-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }

.ins-spark { width: 100%; height: 60px; color: #2f6f4f; margin-top: .6rem; }

.ins-funnel { display: flex; flex-direction: column; gap: .45rem; }
.ins-funnel-row { display: grid; grid-template-columns: 8rem 1fr auto; align-items: center; gap: .5rem; font-size: .85rem; }
.ins-funnel-lbl { color: var(--bs-secondary-color); }
.ins-funnel-bar { height: 14px; background: var(--bs-tertiary-bg); border-radius: 4px; overflow: hidden; }
.ins-funnel-fill { display: block; height: 100%; background: #2f6f4f; }
.ins-funnel-val { font-variant-numeric: tabular-nums; }
.ins-funnel-conv { color: var(--bs-secondary-color); font-size: .78rem; }

.ins-scroll { overflow-x: auto; }
.ins-retention { border-collapse: collapse; font-size: .8rem; }
.ins-retention th, .ins-retention td { padding: .3rem .5rem; text-align: center; white-space: nowrap; }
.ins-cell { color: #0b2a1c; font-variant-numeric: tabular-nums; border-radius: 3px; }
.ins-shade-0 { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.ins-shade-1 { background: #d7eade; }
.ins-shade-2 { background: #a7d4b4; }
.ins-shade-3 { background: #6cb888; }
.ins-shade-4 { background: #2f9c62; color: #fff; }

.ins-adopt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ins-adopt li { display: grid; grid-template-columns: 9rem 1fr 3rem; align-items: center; gap: .5rem; font-size: .82rem; }
.ins-adopt-name { color: var(--bs-body-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-adopt-bar { height: 10px; background: var(--bs-tertiary-bg); border-radius: 4px; overflow: hidden; }
.ins-adopt-fill { display: block; height: 100%; background: #4a7fb5; }
.ins-adopt-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); }

.ins-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.ins-table th, .ins-table td { padding: .3rem .4rem; border-bottom: 1px solid var(--bs-border-color); }
.ins-table thead th { color: var(--bs-secondary-color); font-weight: 600; }
