/* ==========================================================================
   Dashboard design "insights" — Insights (charts first)
   --------------------------------------------------------------------------
   Scoped to .dashx-insights (renderDashboard wraps the page in it). The
   green card carries the headline beside a POS/Sales trend; stat tiles with
   sparklines follow, then a 12-column chart grid (one column below W 1000).
   Primary text is true black; greys no lighter than #475569. Chart colours
   sit only on marks (lines, bars, dots, cells), never on text.
   Thumbnail for the design picker: .dshp-t-insights (at the end).
   ========================================================================== */

.dashx-insights .dsi { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; min-width: 0; }
.dashx-insights .dsi > * { min-width: 0; }
.dashx-insights .dsi-anim { animation: dsiIn .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes dsiIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dashx-insights .dsi-anim { animation: none; } }

/* ---- The green card ---------------------------------------------------- */
.dashx-insights .dsi-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 16px 16px 18px; border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, #065f46, #047857 55%, #059669);
    box-shadow: 0 20px 44px -24px rgba(4, 78, 59, .6);
    --dbx-flag-w: 112px; --dbx-flag-r: 24px;
}
.dashx-insights .dsi-hero > :not(.dbx-flag) { position: relative; z-index: 1; }
.dashx-insights .dsi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding-right: 100px; }
.dashx-insights .dsi-id {
    display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto;
    margin: -4px; padding: 4px; border: 0; border-radius: 14px; cursor: pointer;
    background: none; color: #fff; font: inherit; text-align: left;
}
.dashx-insights .dsi-id:hover { background: rgba(255, 255, 255, .08); }
.dashx-insights .dsi-id:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dashx-insights .dsi-logo {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
    display: grid; place-items: center; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    font-size: 17px; font-weight: 700; color: #065f46;
}
.dashx-insights .dsi-logo { position: relative; }
.dashx-insights .dsi-logo-img { position: absolute; inset: 0; background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; }
.dashx-insights .dsi-logo.is-all { background: rgba(255, 255, 255, .16); color: #fff; }
.dashx-insights .dsi-id-name { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 16px; font-weight: 700; }
.dashx-insights .dsi-id-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashx-insights .dsi-id-name i { flex-shrink: 0; font-size: 12px; opacity: .8; }

.dashx-insights .dsi-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.dashx-insights .dsi-hl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dashx-insights .dsi-eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dashx-insights .dsi-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.dashx-insights .dsi-glass {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 34px; padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
}
.dashx-insights .dsi-glass span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashx-insights .dsi-glass:hover { background: rgba(255, 255, 255, .2); }
.dashx-insights .dsi-glass:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dashx-insights .dsi-fig-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashx-insights .dsi-fig {
    font-size: clamp(1.85rem, 7vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff;
    min-width: 0; overflow-wrap: anywhere;
}
.dashx-insights .dsi-fig.is-long { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.dashx-insights .dsi-fig.is-xl { font-size: clamp(1.4rem, 5.2vw, 2rem); }
.dashx-insights .dsi-fig.is-xxl { font-size: clamp(1.2rem, 4.6vw, 1.7rem); }
.dashx-insights .dsi-eye {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; display: grid; place-items: center; cursor: pointer;
}
.dashx-insights .dsi-eye:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dashx-insights .dsi-hl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashx-insights .dsi-hl-meta .dsz-delta { background: rgba(255, 255, 255, .15); color: #ecfdf5; }
.dashx-insights .dsi-hl-meta .dsz-delta.up i { color: #6ee7b7; }
.dashx-insights .dsi-hl-meta .dsz-delta.down i { color: #fda4af; }
.dashx-insights .dsi-netchip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.dashx-insights .dsi-netchip b { font-weight: 800; }
.dashx-insights .dsi-netchip.is-up i { color: #6ee7b7; }
.dashx-insights .dsi-netchip.is-down i { color: #fda4af; }
.dashx-insights .dsi-netchip:hover { background: rgba(255, 255, 255, .2); }
.dashx-insights .dsi-netchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The trend beside the headline. */
.dashx-insights .dsi-hc-wrap {
    display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 12px 10px;
    border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
}
.dashx-insights .dsi-hplot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.dashx-insights .dsi-hplot-k { display: inline-flex; align-items: center; gap: 7px; }
.dashx-insights .dsi-hplot-k i { width: 14px; height: 3px; border-radius: 2px; background: #fff; }
.dashx-insights .dsi-hplot-r { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: rgba(255, 255, 255, .78); }
.dashx-insights .dsi-hplot { position: relative; height: 118px; min-width: 0; }
.dashx-insights .dsi-hplot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dashx-insights .dsi-hdot {
    position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%);
    background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 2px 6px rgba(0, 0, 0, .25);
}
.dashx-insights .dsi-hdot.is-peak { background: #065f46; border: 2.5px solid #fff; box-shadow: none; }
/* The best point's amount sits beside its dot, on whichever side has room. */
.dashx-insights .dsi-hpeak {
    position: absolute; transform: translate(12px, -50%); padding: 2px 8px; border-radius: 999px;
    background: #fff; color: #000; font-size: 11px; font-weight: 800; line-height: 16px; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.dashx-insights .dsi-hpeak.is-left { transform: translate(calc(-100% - 12px), -50%); }
.dashx-insights .dsi-hplot.is-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 96px;
    border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 600; text-align: center;
}
.dashx-insights .dsi-hplot.is-empty i { font-size: 22px; }
.dashx-insights .dsi-hax { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.dashx-insights .dsi-hstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.dashx-insights .dsi-hstat {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 10px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: inherit; text-align: left;
}
.dashx-insights .dsi-hstat:hover { background: rgba(255, 255, 255, .2); }
.dashx-insights .dsi-hstat:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dashx-insights .dsi-hstat-k { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-hstat-v { font-size: 16px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-hstat-s { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 640px) {
    .dashx-insights .dsi-hero { padding: 20px 22px 22px; --dbx-flag-w: 116px; }
    .dashx-insights .dsi-head { padding-right: 108px; }
    .dashx-insights .dsi-hero .dbx-opt-btn { width: auto; padding: 0 15px; }
    .dashx-insights .dsi-hero .dbx-opt-lbl { display: inline; }
}
@media (min-width: 900px) {
    .dashx-insights .dsi-hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 26px; align-items: stretch; }
    /* The eyebrow lines up with the chart's header, the net chip with its stats. */
    .dashx-insights .dsi-hl { justify-content: space-between; padding: 6px 0 4px; }
    .dashx-insights .dsi-hplot { height: 132px; }
    .dashx-insights .dsi-fig { font-size: clamp(2.2rem, 3.2vw, 2.9rem); }
}
@media (max-width: 400px) {
    .dashx-insights .dsi-hero { --dbx-flag-r: 20px; border-radius: 20px; }
    .dashx-insights .dsi-hstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .dashx-insights .dsi-hstat { padding: 8px 8px; }
    .dashx-insights .dsi-hstat-v { font-size: 14px; }
}

/* ---- Shortcut dock ----------------------------------------------------- */
.dashx-insights .dsi-dock {
    display: flex; gap: 6px; padding: 10px; border-radius: 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; background: #fff; border: 1px solid #e8edf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.dashx-insights .dsi-dock::-webkit-scrollbar { display: none; }
.dashx-insights .dsi-qa {
    flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 6px 4px;
    border: 0; border-radius: 14px; background: none; cursor: pointer; font: inherit; color: #000;
}
.dashx-insights .dsi-qa:hover { background: #f1f5f9; }
.dashx-insights .dsi-qa:focus-visible { outline: 2px solid #059669; outline-offset: 1px; }
.dashx-insights .dsi-qa-tile {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 19px;
    box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .5);
}
.dashx-insights .dsi-qa-badge {
    position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.dashx-insights .dsi-qa-lbl { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
@media (min-width: 900px) { .dashx-insights .dsi-dock { gap: 8px; } .dashx-insights .dsi-qa { flex: 1 1 0; } }

/* ---- Setup card -------------------------------------------------------- */

/* ---- Stat tiles -------------------------------------------------------- */
.dashx-insights .dsi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .dashx-insights .dsi-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .dashx-insights .dsi-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dashx-insights .dsi-kpi {
    position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 10px; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid #e8edf2; border-radius: 18px; font: inherit; color: #000;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .12s ease, box-shadow .15s ease;
}
.dashx-insights .dsi-kpi::before {
    content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--c, #64748b); opacity: .9;
}
.dashx-insights .dsi-kpi:hover { box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .4); transform: translateY(-1px); }
.dashx-insights .dsi-kpi:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsi-kpi-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dashx-insights .dsi-kpi-l { font-size: 12px; font-weight: 700; color: #334155; line-height: 1.2; min-width: 0; }
.dashx-insights .dsi-kpi-v { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-kpi-v.is-up { color: #047857; }
.dashx-insights .dsi-kpi-v.is-down { color: #dc2626; }
.dashx-insights .dsi-kpi-s { font-size: 11.5px; font-weight: 600; color: #475569; line-height: 1.35; min-height: 16px; }
.dashx-insights .dsi-kpi-s .dsz-delta { font-size: 11px; }
.dashx-insights .dsi-kpi-spark { display: block; margin-top: auto; height: 34px; }
.dashx-insights .dsi-kpi-spark .dsz-spark { display: block; width: 100%; height: 34px; }
.dashx-insights .dsi-kpi-spark.is-flat { position: relative; }
.dashx-insights .dsi-kpi-spark.is-flat i { position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: #e2e8f0; }
.dashx-insights .dsi-kpi-meter { display: block; margin-top: auto; margin-bottom: 14px; height: 8px; border-radius: 999px; background: #eef2f5; overflow: hidden; }
.dashx-insights .dsi-kpi-meter i { display: block; height: 100%; border-radius: 999px; }

/* ---- Cards ------------------------------------------------------------- */
.dashx-insights .dsi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dashx-insights .dsi-grid > * { min-width: 0; }
@media (min-width: 1000px) {
    .dashx-insights .dsi-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .dashx-insights .dsi-s4 { grid-column: span 4; }
    .dashx-insights .dsi-s5 { grid-column: span 5; }
    .dashx-insights .dsi-s6 { grid-column: span 6; }
    .dashx-insights .dsi-s7 { grid-column: span 7; }
    .dashx-insights .dsi-s8 { grid-column: span 8; }
    .dashx-insights .dsi-s12 { grid-column: span 12; }
}
.dashx-insights .dsi-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px;
    background: #fff; border: 1px solid #e8edf2; border-radius: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
@media (min-width: 640px) { .dashx-insights .dsi-card { padding: 18px 20px; } }
.dashx-insights .dsi-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dashx-insights .dsi-head-copy { min-width: 0; }
.dashx-insights .dsi-title { margin: 0; font-size: .98rem; font-weight: 800; color: #000; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashx-insights .dsi-sub { margin: 3px 0 0; font-size: .74rem; font-weight: 600; color: #475569; line-height: 1.4; }
.dashx-insights .dsi-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #000; font-size: .72rem; font-weight: 800; }
.dashx-insights .dsi-count.is-danger { background: #fee2e2; color: #991b1b; }
.dashx-insights .dsi-link {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 999px; cursor: pointer;
    background: #f1f5f9; color: #000; font: inherit; font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.dashx-insights .dsi-link:hover { background: #e2e8f0; }
.dashx-insights .dsi-link:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsi-link i { font-size: .72rem; }
.dashx-insights .dsi-chip {
    flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: #f1f5f9; color: var(--c, #64748b); font-size: 14px;
}
@supports (background: color-mix(in srgb, #fff 50%, #000)) {
    .dashx-insights .dsi-chip { background: color-mix(in srgb, var(--c, #64748b) 14%, #fff); }
}
.dashx-insights .dsi-chip.is-ok { --c: #047857; }
.dashx-insights .dsi-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 4px; }
.dashx-insights .dsi-dot.is-sm { width: 8px; height: 8px; border-radius: 3px; }
.dashx-insights .dsi-note { margin: 10px 0 0; font-size: .72rem; font-weight: 600; color: #475569; }
.dashx-insights .dsi-tot { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.dashx-insights .dsi-tot b { font-size: .95rem; font-weight: 800; color: #000; }
.dashx-insights .dsi-tot span { font-size: .68rem; font-weight: 700; color: #475569; }
.dashx-insights .dsi-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 10px; text-align: center; }
.dashx-insights .dsi-empty-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #f1f5f9; color: #475569; font-size: 20px; }
.dashx-insights .dsi-empty b { font-size: .88rem; font-weight: 800; color: #000; }
.dashx-insights .dsi-empty span { font-size: .76rem; font-weight: 600; color: #475569; }
.dashx-insights .dsi-outline {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 999px;
    background: #fff; color: #000; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.dashx-insights .dsi-outline:hover { border-color: #94a3b8; }
.dashx-insights .dsi-textbtn { padding: 0; border: 0; background: none; color: #047857; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.dashx-insights .dsi-foot-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: .74rem; font-weight: 600; color: #475569; }
.dashx-insights .dsi-more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none;
    color: #047857; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer;
}

/* ---- Needs attention --------------------------------------------------- */
.dashx-insights .dsi-alerts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .dashx-insights .dsi-alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dashx-insights .dsi-alerts { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.dashx-insights .dsi-alert {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: left;
    background: #f8fafc; border: 1px solid #e8edf2; font: inherit; color: #000;
}
.dashx-insights .dsi-alert:hover { background: #f1f5f9; }
@supports (background: color-mix(in srgb, #fff 50%, #000)) {
    .dashx-insights .dsi-alert { background: color-mix(in srgb, var(--c, #64748b) 7%, #fff); border-color: color-mix(in srgb, var(--c, #64748b) 18%, #fff); }
    .dashx-insights .dsi-alert:hover { background: color-mix(in srgb, var(--c, #64748b) 12%, #fff); }
}
.dashx-insights .dsi-alert:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsi-alert-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.dashx-insights .dsi-alert-copy b { font-size: .84rem; font-weight: 800; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-alert-copy span { font-size: .72rem; font-weight: 600; color: #475569; line-height: 1.3; }
.dashx-insights .dsi-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; font-style: normal; }
.dashx-insights .dsi-tag.is-danger { background: #fee2e2; color: #991b1b; }
.dashx-insights .dsi-chev { flex-shrink: 0; font-size: .8rem; color: #64748b; }
.dashx-insights .dsi-attn.is-clear { padding: 12px 16px; }
.dashx-insights .dsi-clear { display: flex; align-items: center; gap: 12px; }
.dashx-insights .dsi-clear-copy { display: flex; flex-direction: column; min-width: 0; }
.dashx-insights .dsi-clear-copy b { font-size: .9rem; font-weight: 800; color: #000; }
.dashx-insights .dsi-clear-copy span { font-size: .74rem; font-weight: 600; color: #475569; }

/* ---- Money flow + the shared chart box --------------------------------- */
.dashx-insights .dsi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -2px 0 8px; }
.dashx-insights .dsi-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #000; }
.dashx-insights .dsi-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.dashx-insights .is-bars .dsi-legend i { width: 10px; height: 10px; border-radius: 3px; }
.dashx-insights .dsi-chart { position: relative; height: 240px; min-width: 0; margin-top: auto; }
.dashx-insights .dsi-week-chart { height: 200px; }
.dashx-insights .dsi-chart canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dashx-insights .dsi-chart .dsb-line-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border-radius: 14px; border: 1px dashed #d7dee5; color: #475569; font-size: .8rem; font-weight: 700; text-align: center;
}
.dashx-insights .dsi-chart .dsb-line-empty i { font-size: 24px; color: rgba(5, 150, 105, .6); }
@media (min-width: 1000px) { .dashx-insights .dsi-chart { height: 270px; } }

/* ---- Revenue sources: the open ring ------------------------------------ */
.dashx-insights .dsi-ring-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.dashx-insights .dsi-ring { position: relative; width: 172px; height: 172px; margin: 0 auto; }
.dashx-insights .dsi-ring-svg { width: 100%; height: 100%; overflow: visible; }
.dashx-insights .dsi-ring-svg path:focus-visible { outline: none; stroke-opacity: .75; }
.dashx-insights .dsi-ring-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.dashx-insights .dsi-ring-c b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #000; }
.dashx-insights .dsi-ring-c span { margin-top: 3px; font-size: .7rem; font-weight: 700; color: #475569; }
.dashx-insights .dsi-src-rows { display: flex; flex-direction: column; }
.dashx-insights .dsi-src {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-top: 1px solid #eef2f6; background: none;
    font: inherit; text-align: left; cursor: pointer; color: #000;
}
.dashx-insights .dsi-src:first-child { border-top: 0; }
.dashx-insights .dsi-src:hover .dsi-src-t { text-decoration: underline; text-underline-offset: 2px; }
.dashx-insights .dsi-src:focus-visible { outline: 2px solid #059669; outline-offset: 2px; border-radius: 8px; }
.dashx-insights .dsi-src-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dashx-insights .dsi-src-t { font-size: .84rem; font-weight: 700; color: #000; }
.dashx-insights .dsi-src-s { font-size: .7rem; font-weight: 600; color: #475569; }
.dashx-insights .dsi-src-end { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.dashx-insights .dsi-src-end b { font-size: .86rem; font-weight: 800; color: #000; font-variant-numeric: tabular-nums; }
.dashx-insights .dsi-src-end small { font-size: .68rem; font-weight: 700; color: #475569; }
@media (min-width: 640px) and (max-width: 999px) {
    .dashx-insights .dsi-ring-wrap { flex-direction: row; align-items: center; gap: 22px; }
    .dashx-insights .dsi-src-rows { flex: 1 1 auto; min-width: 0; }
}

/* ---- Sales heat -------------------------------------------------------- */
.dashx-insights .dsi-hc {
    display: inline-grid; place-items: center; border-radius: 7px; background: #eef2f1; color: #475569;
    font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
/* One green hue in four steps (validated ordinal ramp); zero stays neutral. */
.dashx-insights .dsi-hc.is-l1 { background: #19c98f; color: #000; }
.dashx-insights .dsi-hc.is-l2 { background: #0aa96a; color: #000; }
.dashx-insights .dsi-hc.is-l3 { background: #06825a; color: #fff; }
.dashx-insights .dsi-hc.is-l4 { background: #065f46; color: #fff; }
.dashx-insights .dsi-hc.is-off { background: transparent; }
.dashx-insights .dsi-hc.is-peak { box-shadow: inset 0 0 0 2px #000; }
.dashx-insights .dsi-hc:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsi-heat-cal { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.dashx-insights .dsi-heat-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dashx-insights .dsi-heat-days span { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: #475569; text-align: center; }
.dashx-insights .dsi-heat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dashx-insights .dsi-heat-grid .dsi-hc { width: 100%; aspect-ratio: 1; max-height: 48px; }
.dashx-insights .dsi-heat-strip { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.dashx-insights .dsi-hs { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 40px; }
.dashx-insights .dsi-hs .dsi-hc { width: 40px; height: 28px; border-radius: 8px; }
.dashx-insights .dsi-hs em { font-size: 10px; font-weight: 700; font-style: normal; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44px; }
.dashx-insights .dsi-heat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.dashx-insights .dsi-heat-leg { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #475569; }
.dashx-insights .dsi-heat-leg .dsi-hc { width: 14px; height: 14px; border-radius: 4px; }
.dashx-insights .dsi-heat-leg span { margin: 0 3px; }
.dashx-insights .dsi-heat-peak { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: #475569; }
.dashx-insights .dsi-heat-peak i { color: #d97706; font-size: .72rem; }
.dashx-insights .dsi-heat-peak b { color: #000; }
@media (min-width: 1000px) { .dashx-insights .dsi-heat-cal { max-width: 460px; } }

/* ---- Busiest days (the shared weekday bars, styled here) --------------- */
/* The app-wide .dsz-dow rules (app.css) give the track flex: 1 inside a
   148px row; here the row is auto-height, so the track takes a height of
   its own and the fill keeps the shared thin-mark width. */
.dashx-insights .dsi-dow-body { margin-top: auto; }
.dashx-insights .dsz-dow { height: auto; gap: 8px; padding: 0; }
.dashx-insights .dsz-dow-col { gap: 6px; }
.dashx-insights .dsz-dow-col:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsz-dow-val { min-height: 15px; font-size: 11px; font-weight: 800; line-height: 15px; color: #000; }
.dashx-insights .dsz-dow-track { flex: none; height: 150px; border-bottom: 1px solid #e2e8f0; }
.dashx-insights .dsz-dow-fill { width: min(64%, 26px); border-radius: 6px 6px 2px 2px; background: #059669; }
.dashx-insights .dsz-dow-day { font-size: 11px; font-weight: 700; color: #475569; }
.dashx-insights .dsz-dow-day.peak { color: #000; font-weight: 800; }

/* ---- Top products / business performance: horizontal bars -------------- */
.dashx-insights .dsi-hbars { display: flex; flex-direction: column; gap: 4px; }
.dashx-insights .dsi-hb {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border: 0; border-top: 1px solid #f1f4f8; background: none;
    font: inherit; text-align: left; color: #000; min-width: 0;
}
.dashx-insights .dsi-hb:first-child { border-top: 0; }
.dashx-insights button.dsi-hb { cursor: pointer; }
.dashx-insights button.dsi-hb:focus-visible { outline: 2px solid #059669; outline-offset: 2px; border-radius: 8px; }
.dashx-insights .dsi-hb-rank { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: .7rem; font-weight: 800; }
.dashx-insights .dsi-hb-rank.is-first { background: #fef3c7; color: #92400e; }
.dashx-insights .dsi-bp-tile { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; background: #ecfdf5; color: #065f46; font-size: .78rem; font-weight: 800; }
.dashx-insights .dsi-bp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dashx-insights .dsi-hb-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dashx-insights .dsi-hb-t { font-size: .82rem; font-weight: 700; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-hb-track { display: block; height: 8px; border-radius: 999px; background: #eef2f1; overflow: hidden; }
.dashx-insights .dsi-hb-track i { display: block; height: 100%; border-radius: 999px; background: #059669; }
.dashx-insights .dsi-hb-end { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.dashx-insights .dsi-hb-end b { font-size: .84rem; font-weight: 800; color: #000; font-variant-numeric: tabular-nums; }
.dashx-insights .dsi-hb-end small { font-size: .68rem; font-weight: 700; color: #475569; white-space: nowrap; }

/* ---- Payments mix / costs (the shared stacked bar) --------------------- */
.dashx-insights .dsi-seg { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.dashx-insights .dsi-seg button { padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: #475569; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.dashx-insights .dsi-seg button.is-on { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.dashx-insights .dsi-seg button:focus-visible { outline: 2px solid #059669; outline-offset: 1px; }
.dashx-insights .dsi-mix { min-width: 0; }
.dashx-insights .dsi-cost-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dashx-insights .dsi-cost {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    background: #f8fafc; border: 1px solid #e8edf2; font: inherit; text-align: left; color: #000;
}
.dashx-insights .dsi-cost:hover { background: #f1f5f9; }
.dashx-insights .dsi-cost:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-insights .dsi-cost-k { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #334155; }
.dashx-insights .dsi-cost b { font-size: .98rem; font-weight: 800; color: #000; }
.dashx-insights .dsi-cost-d .dsz-delta { font-size: 10.5px; }

/* ---- Recent sales / low stock rows ------------------------------------- */
.dashx-insights .dsi-rows { display: flex; flex-direction: column; }
.dashx-insights .dsi-row {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-top: 1px solid #eef2f6; background: none;
    font: inherit; text-align: left; cursor: pointer; color: #000; min-width: 0;
}
.dashx-insights .dsi-row:first-child { border-top: 0; }
.dashx-insights .dsi-row:hover .dsi-row-t { text-decoration: underline; text-underline-offset: 2px; }
.dashx-insights .dsi-row:focus-visible { outline: 2px solid #059669; outline-offset: 2px; border-radius: 8px; }
.dashx-insights .dsi-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dashx-insights .dsi-row-t { font-size: .84rem; font-weight: 700; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-row-s { font-size: .7rem; font-weight: 600; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashx-insights .dsi-av { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: .74rem; font-weight: 800; }
.dashx-insights .dsi-av.is-walk { background: #f1f5f9; color: #475569; font-size: .9rem; }
.dashx-insights .dsi-sale-end { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dashx-insights .dsi-row-amt { font-size: .86rem; font-weight: 800; color: #000; font-variant-numeric: tabular-nums; }
.dashx-insights .dsi-row-amt.is-muted { color: #475569; text-decoration: line-through; }
.dashx-insights .dsi-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .02em; }
.dashx-insights .dsi-pill.is-ok { background: #d1fae5; color: #065f46; }
.dashx-insights .dsi-pill.is-warn { background: #fef3c7; color: #92400e; }
.dashx-insights .dsi-pill.is-danger { background: #fee2e2; color: #991b1b; }
.dashx-insights .dsi-pill.is-neutral { background: #f1f5f9; color: #334155; }
.dashx-insights .dsi-low-row { flex-wrap: wrap; }
.dashx-insights .dsi-low-q { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .7rem; font-weight: 800; }
.dashx-insights .dsi-low-row.is-out .dsi-low-q { background: #fee2e2; color: #991b1b; }
.dashx-insights .dsi-low-m { flex: 1 0 100%; display: block; height: 6px; border-radius: 999px; background: #fef3c7; overflow: hidden; }
.dashx-insights .dsi-low-m i { display: block; height: 100%; border-radius: 999px; background: #d97706; }
.dashx-insights .dsi-low-row.is-out .dsi-low-m { background: #fee2e2; }
@media (min-width: 1000px) {
    .dashx-insights .dsi-recent.dsi-s12 .dsi-rows,
    .dashx-insights .dsi-perf.dsi-s12 .dsi-hbars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .dashx-insights .dsi-recent.dsi-s12 .dsi-row:nth-child(2),
    .dashx-insights .dsi-perf.dsi-s12 .dsi-hb:nth-child(2) { border-top: 0; }
}

/* ---- Footer link ------------------------------------------------------- */
.dashx-insights .dsi-foot-link {
    align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border: 0; border-radius: 999px;
    background: none; color: #475569; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer;
}
.dashx-insights .dsi-foot-link span { color: #047857; text-decoration: underline; text-underline-offset: 2px; }
.dashx-insights .dsi-foot-link:hover { background: #f1f5f9; }

/* ==========================================================================
   Picker thumbnail: a green band with a wave, three tiles, bars and a ring.
   ========================================================================== */
.dshp-t.dshp-t-insights { padding: 0; overflow: hidden; background: #f4f7f5; }
.dshp-t-insights > span { position: absolute; display: block; }
.dshp-t-insights .ti-band {
    top: 6px; left: 6px; right: 6px; height: 46px; border-radius: 9px; overflow: hidden;
    background: linear-gradient(135deg, #065f46, #047857 55%, #059669);
}
.dshp-t-insights .ti-band > i { position: absolute; display: block; border-radius: 2px; background: #fff; }
.dshp-t-insights .ti-fig { left: 8px; top: 9px; width: 34px; height: 7px; }
.dshp-t-insights .ti-sub { left: 8px; top: 21px; width: 22px; height: 4px; opacity: .6; }
.dshp-t-insights .ti-wave { position: absolute; right: 6px; top: 6px; width: 54%; height: 34px; }
.dshp-t-insights .ti-kpis { top: 57px; left: 6px; right: 6px; height: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dshp-t-insights .ti-kpis i { position: relative; display: block; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; }
.dshp-t-insights .ti-kpis b { position: absolute; left: 5px; top: 5px; width: 40%; height: 4px; border-radius: 2px; background: #0f172a; }
.dshp-t-insights .ti-kpis u { position: absolute; left: 5px; right: 5px; bottom: 4px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, rgba(5, 150, 105, .15), rgba(5, 150, 105, .55)); }
.dshp-t-insights .ti-kpis i:nth-child(2) u { background: linear-gradient(135deg, rgba(124, 58, 237, .15), rgba(124, 58, 237, .55)); }
.dshp-t-insights .ti-kpis i:nth-child(3) u { background: linear-gradient(135deg, rgba(235, 104, 52, .15), rgba(235, 104, 52, .55)); }
.dshp-t-insights .ti-row { top: 86px; left: 6px; right: 6px; bottom: 6px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 4px; }
.dshp-t-insights .ti-row > span { position: relative; display: block; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; }
.dshp-t-insights .ti-bars { display: flex; align-items: flex-end; gap: 3px; padding: 5px 6px; }
.dshp-t-insights .ti-bars b { flex: 1; display: block; border-radius: 2px 2px 0 0; background: #059669; }
.dshp-t-insights .ti-bars b:nth-child(1) { height: 40%; } .dshp-t-insights .ti-bars b:nth-child(2) { height: 65%; background: #2a78d6; }
.dshp-t-insights .ti-bars b:nth-child(3) { height: 30%; background: #eb6834; } .dshp-t-insights .ti-bars b:nth-child(4) { height: 85%; }
.dshp-t-insights .ti-bars b:nth-child(5) { height: 55%; background: #2a78d6; } .dshp-t-insights .ti-bars b:nth-child(6) { height: 45%; background: #eb6834; }
.dshp-t-insights .ti-bars b:nth-child(7) { height: 95%; }
.dshp-t-insights .ti-ring i {
    position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
    background: conic-gradient(from 135deg, #059669 0 55%, #7c3aed 55% 80%, #0d9488 80% 92%, #e6ebee 92% 100%);
    -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px);
}

/* ==========================================================================
   Colourful, no green card (28 Oct 2026). The headline card is white glass
   with a soft blue / violet / pink / amber wash; the trend line runs blue →
   violet → pink; stat tiles are tinted with their own colour; every panel
   title has a tinted icon tile; top-product bars take one colour each.
   Text stays true black on all of it. Later rules here win over the ones
   above (same selectors).
   ========================================================================== */
.dashx-insights .dsi-hero {
    color: #000; border: 1px solid #e6e8f4;
    background:
        radial-gradient(60% 90% at 0% 0%, rgba(37, 99, 235, .14), transparent 60%),
        radial-gradient(55% 80% at 38% 120%, rgba(245, 158, 11, .14), transparent 60%),
        radial-gradient(50% 85% at 70% -10%, rgba(124, 58, 237, .16), transparent 62%),
        radial-gradient(55% 90% at 108% 70%, rgba(219, 39, 119, .14), transparent 60%),
        rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(15, 23, 42, .05), 0 22px 44px -28px rgba(79, 70, 229, .45);
}
.dashx-insights .dsi-id { color: #000; }
.dashx-insights .dsi-id:hover { background: rgba(15, 23, 42, .05); }
.dashx-insights .dsi-id:focus-visible { outline-color: #4f46e5; }
.dashx-insights .dsi-logo { box-shadow: 0 0 0 1px #e2e8f0, 0 4px 10px -4px rgba(15, 23, 42, .25); }
.dashx-insights .dsi-logo.is-all { background: #eef2ff; color: #4338ca; }
.dashx-insights .dsi-eyebrow { color: #334155; }
.dashx-insights .dsi-glass { background: #fff; border-color: #dfe3ee; color: #000; }
.dashx-insights .dsi-glass:hover { background: #f8fafc; }
.dashx-insights .dsi-glass:focus-visible, .dashx-insights .dsi-eye:focus-visible, .dashx-insights .dsi-hstat:focus-visible, .dashx-insights .dsi-netchip:focus-visible { outline-color: #4f46e5; }
.dashx-insights .dsi-fig { color: #000; }
.dashx-insights .dsi-eye { background: #fff; border-color: #dfe3ee; color: #000; }
.dashx-insights .dsi-hl-meta .dsz-delta { background: #f1f5f9; color: #334155; }
.dashx-insights .dsi-hl-meta .dsz-delta.up { background: #dcfce7; color: #166534; }
.dashx-insights .dsi-hl-meta .dsz-delta.down { background: #fee2e2; color: #991b1b; }
.dashx-insights .dsi-hl-meta .dsz-delta.up i, .dashx-insights .dsi-hl-meta .dsz-delta.down i { color: inherit; }
.dashx-insights .dsi-netchip { background: #f5f3ff; border-color: #e4dcfb; color: #000; }
.dashx-insights .dsi-netchip:hover { background: #ede9fe; }
.dashx-insights .dsi-netchip.is-up i { color: #047857; }
.dashx-insights .dsi-netchip.is-down i { color: #dc2626; }
.dashx-insights .dsi-hc-wrap { background: rgba(255, 255, 255, .78); border-color: #e6e8f4; }
.dashx-insights .dsi-hplot-head { color: #000; }
.dashx-insights .dsi-hplot-k i { width: 16px; background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777); }
.dashx-insights .dsi-hplot-r { color: #475569; }
.dashx-insights .dsi-hdot { background: #db2777; box-shadow: 0 0 0 3px rgba(219, 39, 119, .2), 0 2px 6px rgba(0, 0, 0, .18); }
.dashx-insights .dsi-hdot.is-peak { background: #fff; border: 2.5px solid #7c3aed; box-shadow: 0 2px 6px rgba(124, 58, 237, .3); }
.dashx-insights .dsi-hpeak { background: #000; color: #fff; }
.dashx-insights .dsi-hplot.is-empty { border-color: #cbd5e1; color: #475569; }
.dashx-insights .dsi-hax { color: #475569; }
.dashx-insights .dsi-hstat { color: #000; border: 1px solid transparent; }
.dashx-insights .dsi-hstat:nth-child(1) { background: #eff6ff; border-color: #dbeafe; }
.dashx-insights .dsi-hstat:nth-child(2) { background: #f5f3ff; border-color: #ede9fe; }
.dashx-insights .dsi-hstat:nth-child(3) { background: #fdf2f8; border-color: #fce7f3; }
.dashx-insights .dsi-hstat:hover { filter: brightness(.97); }
.dashx-insights .dsi-hstat-k { color: #334155; }
.dashx-insights .dsi-hstat-s { color: #475569; }
.dashx-insights .dsi-hero .dbx-opt-btn { background: #fff; border-color: #dfe3ee; color: #000; }
.dashx-insights .dsi-hero .dbx-opt-btn:hover { background: #f8fafc; }
.dashx-insights .dsi-hero .dbx-opt-btn:focus-visible { outline-color: #4f46e5; }
.dashx-insights .dsi-hero .dbx-opt-dot { box-shadow: 0 0 0 2px #fff; }

/* Stat tiles tinted with their own colour (no coloured top border). */
.dashx.dashx-insights .dsi-kpi {
    background: linear-gradient(150deg, color-mix(in srgb, var(--c) 17%, #fff) 0%, color-mix(in srgb, var(--c) 6%, #fff) 55%, #fff 100%);
    border: 1px solid color-mix(in srgb, var(--c) 24%, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 26px -20px color-mix(in srgb, var(--c) 70%, transparent);
}
.dashx-insights .dsi-kpi::before { display: none; }
.dashx-insights .dsi-kpi-l { color: #000; }

/* A tinted icon tile beside each panel title. */
.dashx-insights .dsi-head-ic {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
}
.dashx-insights .dsi-head-ic + .dsi-head-copy { flex: 1; }

/* Top products: a colour per bar, the rank tile in the same colour. */
.dashx-insights .dsi-hb[style*="--bar"] .dsi-hb-track i { background: var(--bar); }
.dashx-insights .dsi-hb[style*="--bar"] .dsi-hb-rank { background: color-mix(in srgb, var(--bar) 14%, #fff); color: #000; }

/* Picker thumbnail: the light colourful card. */
.dshp-t-insights .ti-band {
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(37, 99, 235, .22), transparent 60%),
        radial-gradient(60% 120% at 100% 100%, rgba(219, 39, 119, .2), transparent 60%),
        radial-gradient(60% 120% at 60% 0%, rgba(124, 58, 237, .2), transparent 60%), #fff;
    border: 1px solid #e2e8f0;
}
.dshp-t-insights .ti-band > i { background: #0f172a; }
.dshp-t-insights .ti-kpis i:nth-child(1) { background: #ecfdf5; } .dshp-t-insights .ti-kpis i:nth-child(2) { background: #f5f3ff; } .dshp-t-insights .ti-kpis i:nth-child(3) { background: #fff7ed; }
.dshp-t-insights .ti-bars b:nth-child(2) { background: #7c3aed; } .dshp-t-insights .ti-bars b:nth-child(5) { background: #db2777; }
.dshp-t-insights .ti-row > .ti-bars { display: flex; }

/* ==========================================================================
   Smaller type (28 Oct 2026): the user asked for smaller fonts. Every size
   here steps down; later rules win over the ones above.
   ========================================================================== */
.dashx-insights .dsi-id-name { font-size: 14.5px; }
.dashx-insights .dsi-logo { width: 36px; height: 36px; font-size: 15px; }
.dashx-insights .dsi-eyebrow { font-size: 11px; }
.dashx-insights .dsi-glass { min-height: 32px; font-size: 11.5px; }
.dashx-insights .dsi-fig { font-size: clamp(1.5rem, 5.4vw, 2.05rem); }
.dashx-insights .dsi-fig.is-long { font-size: clamp(1.35rem, 4.8vw, 1.85rem); }
.dashx-insights .dsi-fig.is-xl { font-size: clamp(1.2rem, 4.2vw, 1.65rem); }
.dashx-insights .dsi-fig.is-xxl { font-size: clamp(1.05rem, 3.8vw, 1.45rem); }
@media (min-width: 900px) { .dashx-insights .dsi-fig { font-size: clamp(1.7rem, 2.4vw, 2.15rem); } }
.dashx-insights .dsi-eye { width: 30px; height: 30px; font-size: 13px; }
.dashx-insights .dsi-netchip { min-height: 28px; font-size: 11.5px; }
.dashx-insights .dsi-hl-meta .dsz-delta { font-size: 11px; }
.dashx-insights .dsi-hplot-head { font-size: 11px; }
.dashx-insights .dsi-hax { font-size: 10px; }
.dashx-insights .dsi-hpeak { font-size: 10px; }
.dashx-insights .dsi-hstat { padding: 8px 9px; }
.dashx-insights .dsi-hstat-k { font-size: 9.5px; }
.dashx-insights .dsi-hstat-v { font-size: 14px; }
.dashx-insights .dsi-hstat-s { font-size: 10px; }
.dashx-insights .dsi-qa-tile { width: 40px; height: 40px; font-size: 17px; border-radius: 13px; }
.dashx-insights .dsi-qa-lbl { font-size: 10.5px; }
.dashx-insights .dsi-kpi { padding: 12px 12px 8px; gap: 5px; }
.dashx-insights .dsi-kpi-l { font-size: 11px; }
.dashx-insights .dsi-kpi-v { font-size: 1.05rem; }
.dashx-insights .dsi-kpi-s { font-size: 10.5px; }
.dashx-insights .dsi-kpi-s .dsz-delta { font-size: 10px; }
.dashx-insights .dsi-kpi-spark, .dashx-insights .dsi-kpi-spark .dsz-spark { height: 28px; }
.dashx-insights .dsi-title { font-size: .86rem; }
.dashx-insights .dsi-sub { font-size: .68rem; }
.dashx-insights .dsi-head-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
@media (min-width: 640px) { .dashx-insights .dsi-card { padding: 16px 18px; } }
.dashx-insights .dsi-alert-copy b, .dashx-insights .dsi-src-t, .dashx-insights .dsi-row-t { font-size: .78rem; }
.dashx-insights .dsi-hb-t, .dashx-insights .dsi-hb-end b, .dashx-insights .dsi-src-end b, .dashx-insights .dsi-row-amt { font-size: .78rem; }
.dashx-insights .dsi-alert-copy span, .dashx-insights .dsi-src-s, .dashx-insights .dsi-row-s, .dashx-insights .dsi-note, .dashx-insights .dsi-cost-k { font-size: .66rem; }
.dashx-insights .dsi-hb-end small, .dashx-insights .dsi-src-end small, .dashx-insights .dsi-tot span { font-size: .62rem; }
.dashx-insights .dsi-heat-peak, .dashx-insights .dsi-foot-note, .dashx-insights .dsi-clear-copy span { font-size: .68rem; }
.dashx-insights .dsi-empty b, .dashx-insights .dsi-clear-copy b { font-size: .82rem; }
.dashx-insights .dsi-tot b, .dashx-insights .dsi-cost b { font-size: .88rem; }
.dashx-insights .dsi-ring-c b { font-size: 1.35rem; }
.dashx-insights .dsi-ring-c span { font-size: .64rem; }
