/* ------------------------------------------------------------------
   Management dashboard preview (assets/dashboard.js), modeled on the
   Oriental Weavers demo dashboard, in the MP004 palette
   ------------------------------------------------------------------ */
.dash, .dash-pack { --d-ok: #2f7d3a; --d-no: #ec7a62; --d-warn: #d9a441; }
.dash { overflow: hidden; border-radius: 30px; background: #f4f2ea; border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(5 25 20 / .12); font-family: var(--font); color: var(--body); text-align: start; }
.dash-ar { font-family: "IBM Plex Sans Arabic", var(--font); font-weight: 400; font-size: .86em; color: var(--muted); }
.dash h4 { margin: 0; font-size: 18px; font-weight: 600; color: var(--heading); letter-spacing: -0.1px; }
.dash h4 .dash-ar { margin-inline-start: 6px; }

/* Top bar */
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px 24px; background: var(--midnight); color: var(--cream); }
.dash-brand b { display: block; font-size: 17px; font-weight: 600; }
.dash-brand b span { margin: 0 4px; color: var(--lettuce); }
.dash-brand small { font-size: 12.5px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dash-brand .dash-ar { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.dash-tabs button { padding: 8px 13px; border: 0; border-radius: 10px; background: transparent; font: 500 13.5px var(--font); color: color-mix(in srgb, var(--cream) 82%, transparent); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.dash-tabs button:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); color: var(--cream); }
.dash-tabs button[aria-selected="true"] { background: var(--cream); color: var(--coach); }
.dash-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 24px 0; font-size: 13px; font-weight: 500; color: var(--heading); }
.dash-pill { padding: 6px 12px; border-radius: 100px; background: #f6c45c; color: #3d2a00; font-size: 12.5px; font-weight: 600; }
.dash-pill .dash-ar { color: #5c4300; }
.dash-panel { display: grid; gap: 16px; padding: 16px 24px 24px; }
.dash-panel[hidden] { display: none; }

/* Cards */
.dash-card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #e6e6dc; }
.dash-sub { max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.dash-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; min-width: 0; }
.dash-h { margin: 6px 2px -4px !important; }
.dash-foot { font-size: 12.5px; color: var(--muted); }

/* Overview */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 26px; border-radius: 20px; background: linear-gradient(160deg, var(--coach), var(--midnight)); color: var(--cream); }
.dash-hero__main > small { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dash-big { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; }
.dash-big b { font-size: clamp(52px, 7vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -2px; color: var(--lettuce); }
.dash-delta { padding: 6px 12px; border-radius: 100px; background: color-mix(in srgb, var(--lettuce) 18%, transparent); font-size: 14px; font-weight: 600; color: var(--lettuce); }
.dash-big-label { font-size: 18px; font-weight: 600; }
.dash-big-label .dash-ar { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dash-hero__text { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: color-mix(in srgb, var(--cream) 85%, transparent); }
.dash-hero__text b { color: var(--cream); }
.dash-hero__kpis { display: grid; gap: 10px; align-content: center; }
.dash-hero__kpis > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); background: color-mix(in srgb, var(--cream) 5%, transparent); }
.dash-hero__kpis b { font-size: 28px; font-weight: 600; color: var(--cream); }
.dash-hero__kpis em { display: block; font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--cream); }
.dash-hero__kpis small { font-size: 12.5px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dash-key { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dash-key i, .dash-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--lettuce); }
.dash-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.dash-bars i { flex: 1; min-width: 0; border-radius: 4px 4px 0 0; background: var(--evergreen); }
.dash-bars i.hl { background: var(--lettuce); }
.dash-bars i.zero { background: #e6e6dc; }
.dash-axis { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.dash-records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-records > div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e6e6dc; }
.dash-records small { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.dash-records b { font-size: 22px; font-weight: 600; color: var(--heading); }
.dash-records span { font-size: 12.5px; color: var(--muted); }

/* Every chat */
.dash-every { position: relative; }
.dash-every__pct { position: absolute; top: 20px; inset-inline-end: 22px; display: grid; justify-items: end; text-align: end; }
.dash-every__pct b { font-size: 40px; font-weight: 700; line-height: 1; color: var(--d-ok); }
.dash-every__pct small { max-width: 170px; font-size: 12.5px; color: var(--muted); }
.dash-every .dash-sub { padding-inline-end: 190px; }
.dash-bracket { font-size: 13px; color: var(--heading); }
.dash-stack { display: flex; gap: 3px; height: 42px; }
.dash-stack i { min-width: 3px; border-radius: 8px; }
.o1 { background: var(--d-ok); }
.o2 { background: var(--coach); }
.o3 { background: #9fcf98; }
.o4 { background: var(--d-warn); }
.o5 { background: #c9cbc4; }
.o6 { background: repeating-linear-gradient(135deg, #eceee8 0 6px, #e1e3dc 6px 12px); }
.o7 { background: #7aa7c7; }
.dash-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.dash-legend > div { display: grid; gap: 2px; align-content: start; }
.dash-legend .sw { width: 12px; height: 12px; border-radius: 3px; margin-bottom: 4px; }
.dash-legend b { font-size: 22px; font-weight: 600; color: var(--heading); }
.dash-legend b small { margin-inline-start: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.dash-legend em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--heading); }
.dash-legend small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.dash-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.dash-metrics > div { display: grid; gap: 3px; align-content: start; padding-inline-start: 14px; border-inline-start: 3px solid var(--d-ok); }
.dash-metrics > div.warn { border-color: var(--d-warn); }
.dash-metrics b { font-size: 30px; font-weight: 600; color: var(--heading); }
.dash-metrics b small { margin-inline-start: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dash-metrics em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--heading); }
.dash-metrics span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* Journey funnel */
.dash-funnel { display: grid; gap: 0; }
.dash-frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 64px; gap: 12px; align-items: center; }
.dash-flabel b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.dash-flabel small { display: block; font-size: 12px; color: var(--muted); }
.dash-tag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 100px; background: #fbe9c8; font-size: 11px; font-weight: 600; color: #7a4f00; }
.dash-fbar { display: flex; justify-content: center; }
.dash-fbar i { height: 30px; border-radius: 8px; background: var(--d-ok); }
.dash-frow.last .dash-fbar i { background: var(--coach); }
.dash-fn { font-size: 20px; font-weight: 600; color: var(--heading); text-align: end; }
.dash-fstep { padding: 4px 0; text-align: end; }
.dash-stop { font-size: 11.5px; font-weight: 600; color: #7a5b1e; }

/* Tables */
.dash-table { display: grid; font-size: 13.5px; }
.dash-tr { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, .8fr)); gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid #ecece4; }
.dash-tr > span:not(:first-child) { text-align: end; font-weight: 600; color: var(--heading); }
.dash-tr .open { color: #a26d0a; }
.dash-tr b { font-weight: 600; color: var(--heading); }
.dash-tr small { display: block; font-size: 12px; color: var(--muted); }
.dash-th { border-top: 0; padding-top: 0; font-size: 12px; }
.dash-th > span, .dash-th > span:not(:first-child) { font-weight: 500; color: var(--muted); }
.dash-total { font-size: 14.5px; }
.dash-mini { display: block; width: 70%; height: 4px; margin-top: 8px; border-radius: 4px; background: #ecece4; }
.dash-mini i { display: block; height: 100%; border-radius: 4px; background: var(--coach); }

/* Ranking & approvals */
.dash-rank { display: grid; }
.dash-rank > div { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) 40px 44px 76px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #ecece4; font-size: 13.5px; }
.dash-rank .dash-rhead { border-top: 0; padding-top: 0; font-size: 12px; color: var(--muted); }
.dash-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ecece4; font-size: 12px; font-weight: 700; color: var(--heading); }
.dash-n.top { background: var(--coach); color: var(--cream); }
.dash-rname b { display: block; font-weight: 600; color: var(--heading); }
.dash-rbar, .dash-tb, .dash-ab { display: flex; height: 8px; border-radius: 8px; background: #ecece4; overflow: hidden; }
.dash-rbar i, .dash-tb i { display: block; height: 100%; border-radius: 8px; background: var(--d-ok); }
.dash-rbar.top i { background: var(--coach); }
.dash-rn { text-align: end; color: var(--heading); }
.dash-rp { text-align: end; color: var(--muted); }
.dash-rc { font-size: 12.5px; font-weight: 600; }
.dash-rc.up { color: var(--d-ok); }
.dash-rc.down { color: #c4452b; }
.dash-kpi3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-kpi3 b { font-size: 30px; font-weight: 600; color: var(--heading); }
.dash-kpi3 b.g { color: var(--d-ok); }
.dash-kpi3 b small { margin-inline-start: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dash-kpi3 em { display: block; font-style: normal; font-size: 14px; font-weight: 600; color: var(--heading); }
.dash-kpi3 span { font-size: 12.5px; color: var(--muted); }
.dash-appr { display: grid; gap: 10px; margin-top: 6px; }
.dash-appr > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 76px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--heading); }
.dash-appr b { text-align: end; font-size: 12.5px; }
.dash-ab i.ok { background: var(--d-ok); }
.dash-ab i.no { background: var(--d-no); }
.dash-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--muted); }
.dash-keys span { display: inline-flex; align-items: center; gap: 6px; }
.dash-keys i.ok { background: var(--d-ok); }
.dash-keys i.no { background: var(--d-no); }

/* Customers */
.dash-heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.dash-heat small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.dash-heat b { font-size: 11.5px; font-weight: 500; color: var(--heading); }
.dash-heat i { aspect-ratio: 1; border-radius: 3px; }
.dash-heat .l0 { background: #eef1e8; }
.dash-heat .l1 { background: #cfe3c6; }
.dash-heat .l2 { background: #9fcb93; }
.dash-heat .l3 { background: #5f9e5c; }
.dash-heat .l4 { background: #2f7d3a; }
.dash-heat i.off { box-shadow: inset 0 0 0 1.5px var(--d-warn); }
.dash-grad { width: 80px !important; height: 8px !important; background: linear-gradient(90deg, #eef1e8, #2f7d3a) !important; }
.dash-keys i.offk { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d-warn); }
.dash-topics { display: grid; gap: 9px; }
.dash-topics > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 50px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--heading); }
.dash-topics b { text-align: end; font-size: 13px; }
.dash-wait { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: w; }
.dash-wait li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #ecece4; counter-increment: w; }
.dash-wait li::before { content: counter(w); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fbe9c8; font-size: 12px; font-weight: 700; color: #7a4f00; }
.dash-wait b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.dash-wait small { font-size: 12.5px; color: var(--muted); }
.dash-wait span { display: grid; justify-items: end; font-size: 11.5px; color: var(--muted); }
.dash-wait span b { font-size: 20px; color: #a26d0a; }

/* Industry insights */
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #e3e3d8; border-radius: 100px; background: #fafaf5; font: 500 13px var(--font); color: var(--heading); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.dash-chips button svg { width: 14px; height: 14px; color: var(--evergreen); }
.dash-chips button:hover { border-color: var(--evergreen); }
.dash-chips button[aria-pressed="true"] { background: var(--coach); border-color: var(--coach); color: var(--cream); }
.dash-chips button[aria-pressed="true"] svg { color: var(--lettuce); }
.dash-ins__body { display: grid; gap: 12px; margin-top: 6px; padding-top: 18px; border-top: 1px solid #ecece4; }
.dash-ins__body h5 { margin: 0; font-size: 20px; font-weight: 600; color: var(--heading); }
.dash-pack { display: grid; gap: 14px; }
.dash-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.dash-finish span { margin-inline-end: 4px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.dash-finish b { padding: 4px 10px; border-radius: 100px; background: #f1f1ea; font-weight: 500; color: var(--heading); }
.dash-finish b.end { background: var(--lettuce); color: var(--coach); }
.dash-finish i { font-style: normal; color: var(--muted); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-tiles > div { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; background: #fafaf5; border: 1px solid #ecece4; border-top: 3px solid var(--d-ok); }
.dash-tiles > div.safe { border-top-color: #7aa7c7; }
.dash-tiles b { font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--heading); }
.dash-tiles b small { margin-inline-start: 4px; font-size: 15px; font-weight: 500; color: var(--muted); }
.dash-tiles em { font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--heading); }
.dash-tiles span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* On the page around it */
.dash-wrap { margin-top: 40px; }
.dash-block .dash { margin-top: 8px; }

@media (max-width: 1100px) {
  .dash-hero, .dash-two { grid-template-columns: minmax(0, 1fr); }
  .dash-metrics, .dash-records, .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dash { border-radius: 22px; }
  .dash-top, .dash-meta { padding-inline: 14px; }
  .dash-panel { padding: 12px 12px 16px; gap: 12px; }
  .dash-card { padding: 16px; border-radius: 16px; }
  .dash-hero { padding: 18px; }
  .dash-hero__kpis > div { grid-template-columns: 84px 1fr; padding: 12px; }
  .dash-hero__kpis b { font-size: 22px; }
  .dash-every__pct { position: static; justify-items: start; text-align: start; }
  .dash-every .dash-sub { padding-inline-end: 0; }
  .dash-metrics { grid-template-columns: minmax(0, 1fr); }
  .dash-records, .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-tr { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, .7fr)); gap: 6px; font-size: 12.5px; }
  .dash-th { font-size: 10.5px; }
  .dash-rank > div { grid-template-columns: 26px minmax(0, 1fr) 36px 40px; }
  .dash-rank .dash-rbar, .dash-rank .dash-rc, .dash-rank .dash-rhead > span:nth-child(3), .dash-rank .dash-rhead > span:nth-child(6) { display: none; }
  .dash-appr > div { grid-template-columns: minmax(0, 1fr) 70px; }
  .dash-appr .dash-ab { grid-column: 1 / -1; grid-row: 2; }
  .dash-heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .dash-heat small { font-size: 8px; }
  .dash-kpi3 b, .dash-metrics b { font-size: 24px; }
  .dash-tiles b { font-size: 26px; }
  .dash-funnel .dash-frow { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) 50px; }
  .dash-fn { font-size: 16px; }
}
.cap-more { justify-self: start; max-width: 100%; height: auto; min-height: 48px; padding-block: 12px; white-space: normal; }
.ind-dash__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--heading); }
.ind-dash__more svg { width: 14px; height: 14px; }
.ind-dash .dash-tiles > div { background: var(--cream); }

/* ==================================================================
   App-style dashboard (sidebar, metric cards, charts), refined look
   ================================================================== */
.dash--app { display: grid; grid-template-columns: 236px minmax(0, 1fr); border-radius: 28px; background: #f3f2ec; border: 1px solid rgb(5 25 20 / .08); box-shadow: 0 40px 100px rgb(5 25 20 / .18), 0 2px 6px rgb(5 25 20 / .05); font-variant-numeric: tabular-nums; }
.dash-side { display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; background: radial-gradient(120% 60% at 0% 0%, #0d3b2e, var(--midnight) 70%); color: var(--cream); }
.dash--app .dash-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.dash-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lettuce); color: var(--coach); font-weight: 700; font-size: 18px; box-shadow: 0 8px 20px rgb(170 221 102 / .25); }
.dash--app .dash-brand b { display: block; font-size: 16px; color: var(--cream); }
.dash--app .dash-brand small { font-size: 12px; color: rgb(252 246 235 / .6); }
.dash--app .dash-tabs { display: grid; gap: 4px; }
.dash--app .dash-tabs button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; text-align: start; font-size: 14px; color: rgb(252 246 235 / .72); }
.dash--app .dash-tabs button svg { flex: none; width: 18px; height: 18px; color: rgb(252 246 235 / .55); transition: color .15s ease; }
.dash--app .dash-tabs button:hover { background: rgb(255 255 255 / .06); color: var(--cream); }
.dash--app .dash-tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgb(170 221 102 / .2), rgb(170 221 102 / .06)); color: var(--cream); box-shadow: inset 3px 0 0 var(--lettuce); }
.dash--app .dash-tabs button[aria-selected="true"] svg { color: var(--lettuce); }
.dash-side__foot { margin-top: auto; }
.dash-side__foot .dash-pill { display: inline-block; font-size: 11.5px; line-height: 1.4; }
.dash-main { min-width: 0; display: grid; align-content: start; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 24px 26px 6px; }
.dash-head small { font-size: 12.5px; color: var(--muted); }
.dash-title { margin: 2px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.4px; color: var(--heading); }
.dash-head__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6e6dc; font-size: 12.5px; font-weight: 500; color: var(--heading); }
.dash-chip svg { width: 15px; height: 15px; color: var(--evergreen); }
.dash-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--evergreen), var(--coach)); color: var(--lettuce); font-size: 12.5px; font-weight: 700; }
.dash--app .dash-panel { padding: 16px 26px 28px; gap: 18px; }
.dash--app .dash-card { border: 1px solid rgb(5 25 20 / .06); border-radius: 22px; box-shadow: 0 1px 2px rgb(5 25 20 / .04), 0 14px 34px rgb(5 25 20 / .06); }
.dash--app .dash-card h4 { font-size: 17px; }

/* Metric cards with trend lines */
.dash-kpis { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-kpi { position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; min-height: 168px; padding: 18px 18px 52px; border-radius: 22px; background: #fff; border: 1px solid rgb(5 25 20 / .06); box-shadow: 0 1px 2px rgb(5 25 20 / .04), 0 14px 34px rgb(5 25 20 / .06); }
.dash-kpi__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.dash-kpi__label::first-letter, .dash-kpi__sub::first-letter { text-transform: uppercase; }
.dash-kpi__value { font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; color: var(--heading); }
.dash-kpi__sub { font-size: 12px; color: var(--muted); }
.dash-kpi .dash-delta { justify-self: start; padding: 4px 9px; font-size: 12px; background: rgb(47 125 58 / .1); color: var(--d-ok); }
.dash-kpi--feature { background: radial-gradient(120% 120% at 100% 0%, #1f6b52, var(--coach) 55%, var(--midnight)); border: 0; }
.dash-kpi--feature .dash-kpi__label, .dash-kpi--feature .dash-kpi__sub { color: rgb(252 246 235 / .72); }
.dash-kpi--feature .dash-kpi__value { font-size: 46px; color: var(--lettuce); }
.dash-kpi--feature .dash-delta { background: rgb(170 221 102 / .16); color: var(--lettuce); }
.dash-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48px; }
.dash-spark .l { fill: none; stroke: var(--evergreen); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dash-spark .a { fill: rgb(18 91 73 / .08); }
.dash-spark.on-dark .l { stroke: var(--lettuce); }
.dash-spark.on-dark .a { fill: rgb(170 221 102 / .14); }

/* Daily chart with gridlines and a short summary beside it */
.dash-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.dash-plot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.dash-yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 170px; font-size: 10.5px; color: var(--muted); text-align: end; }
.dash--app .dash-bars { height: 170px; gap: 5px; padding: 0 2px; background: repeating-linear-gradient(180deg, #ecece4 0 1px, transparent 1px 85px); border-bottom: 1px solid #dcdcd2; }
.dash--app .dash-bars i { position: relative; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2a7a5f, var(--evergreen)); transition: filter .15s ease; }
.dash--app .dash-bars i.hl { background: linear-gradient(180deg, #c4ec8c, var(--lettuce)); }
.dash--app .dash-bars i.zero { background: #e2e3dc; }
.dash--app .dash-bars i span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 6px; border-radius: 6px; background: var(--midnight); color: var(--cream); font-size: 10.5px; font-style: normal; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.dash--app .dash-bars i:hover { filter: brightness(1.08); }
.dash--app .dash-bars i:hover span { opacity: 1; }
.dash--app .dash-axis { padding-inline-start: 36px; }
.dash-story { display: grid; align-content: space-between; gap: 14px; background: linear-gradient(160deg, #fbfaf4, #f1f3e6) !important; }
.dash-story__tag { justify-self: start; padding: 5px 10px; border-radius: 100px; background: var(--lettuce); font-size: 11.5px; font-weight: 600; color: var(--coach); }
.dash-story p { font-size: 15px; line-height: 1.65; color: var(--body); }
.dash-story p b { color: var(--heading); }
.dash-story__ar { font-size: 15px; }
.dash--app .dash-records > div { position: relative; padding: 18px 18px 18px 64px; border: 1px solid rgb(5 25 20 / .06); border-radius: 18px; box-shadow: 0 10px 26px rgb(5 25 20 / .05); }
.dash-rec-ico { position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--panel); color: var(--evergreen); }
.dash-rec-ico svg { width: 18px; height: 18px; }

/* Every chat: donut + outcome list */
.dash-every__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.dash-donut { position: relative; width: 220px; aspect-ratio: 1; }
.dash-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-donut circle { fill: none; stroke-width: 22; }
.dash-donut .track { stroke: #eef0e8; }
.dash-donut .o1 { stroke: var(--d-ok); }
.dash-donut .o2 { stroke: var(--coach); }
.dash-donut .o3 { stroke: #9fcf98; }
.dash-donut .o4 { stroke: var(--d-warn); }
.dash-donut .o5 { stroke: #c9cbc4; }
.dash-donut .o6 { stroke: #e2e4dc; }
.dash-donut .o7 { stroke: #7aa7c7; }
.dash-donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 40px; }
.dash-donut__c b { font-size: 38px; font-weight: 700; letter-spacing: -1px; color: var(--d-ok); }
.dash-donut__c small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.dash-olist { display: grid; gap: 4px; margin-top: 10px; }
.dash-olist > div { display: grid; grid-template-columns: 12px minmax(0, 1.5fr) minmax(0, 1fr) 84px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #f0f0ea; }
.dash-olist .sw { width: 12px; height: 12px; border-radius: 4px; }
.dash-olist__t em { display: block; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--heading); }
.dash-olist__t small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.dash-olist__bar { display: block; height: 8px; border-radius: 8px; background: #f0f0ea; overflow: hidden; }
.dash-olist__bar i { display: block; height: 100%; border-radius: 8px; }
.dash-olist b { text-align: end; font-size: 15px; color: var(--heading); }
.dash-olist b small { margin-inline-start: 5px; font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* Softer funnel and tiles */
.dash--app .dash-fbar i { height: 32px; border-radius: 10px; background: linear-gradient(90deg, #2f8a63, var(--evergreen)); box-shadow: 0 6px 14px rgb(18 91 73 / .18); }
.dash--app .dash-frow.last .dash-fbar i { background: linear-gradient(90deg, var(--lettuce), #8fcf4f); box-shadow: 0 6px 14px rgb(170 221 102 / .3); }
.dash--app .dash-heat i { border-radius: 4px; }
.dash--app .dash-tiles > div { background: #fff; box-shadow: 0 10px 26px rgb(5 25 20 / .05); }

@media (max-width: 1100px) {
  .dash--app { grid-template-columns: minmax(0, 1fr); }
  .dash-side { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; overflow-x: auto; }
  .dash--app .dash-brand { border: 0; padding: 0; flex: none; }
  .dash--app .dash-tabs { display: flex; flex-wrap: nowrap; gap: 4px; }
  .dash-side { scrollbar-width: none; }
  .dash-side::-webkit-scrollbar { display: none; }
  .dash--app .dash-tabs button { width: auto; white-space: nowrap; padding: 9px 12px; }
  .dash--app .dash-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--lettuce); }
  .dash-side__foot { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dash--app .dash-brand span:not(.dash-logo) { display: none; }
  .dash-head { padding: 18px 14px 4px; }
  .dash-title { font-size: 22px; }
  .dash--app .dash-panel { padding: 12px 12px 16px; }
  /* The headline number full width, the smaller ones in pairs */
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-kpi--feature, .dash-kpis > :last-child:nth-child(even) { grid-column: 1 / -1; }
  .dash-kpi { min-height: 0; padding: 14px 14px 40px; border-radius: 18px; }
  .dash-kpi__value { font-size: 26px; }
  .dash-kpi--feature .dash-kpi__value { font-size: 40px; }
  .dash--app .dash-bars { height: 130px; }
  .dash-every__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dash-donut { width: 190px; }
  .dash-olist > div { grid-template-columns: 12px minmax(0, 1fr) 70px; }
  .dash-olist__bar { display: none; }
  .dash--app .dash-records > div { padding: 16px; }
  .dash-rec-ico { position: static; margin-bottom: 6px; }
}
