/* Dashboards: flat white cards, coral accent, ink charts. KPI tiles after Martens & Meijer, sections after LegalPal. */
.ds-page .page-head .actions { align-items: center; flex-wrap: wrap; }
.ds-scope { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--card-sh); font-size: 12.5px; font-weight: 500; color: var(--t1); white-space: nowrap; }
.ds-scope svg { width: 13px; height: 13px; stroke: var(--hy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-tabs { margin-bottom: 22px; }
.ds-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* header row of one dashboard */
.ds-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ds-top h2 { margin: 0 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--t0); }
.ds-top p { margin: 0; max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--t2); }
.ds-ask { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--card); box-shadow: var(--card-sh); color: var(--t0); text-decoration: none; font-size: 13.5px; font-weight: 500; max-width: 100%; transition: box-shadow .2s, transform .2s var(--ease); }
.ds-ask:hover { box-shadow: var(--card-sh), 0 0 0 1.5px var(--hy); transform: translateY(-1px); }
.ds-ask > svg { flex: none; width: 18px; height: 18px; stroke: var(--hy); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ds-ask > svg:last-child { width: 14px; height: 14px; stroke: var(--t3); }
.ds-ask span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ds-ask small { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--hy); }

/* KPI tiles */
.ds-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ds-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--card-sh); overflow: hidden; }
.ds-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-tl { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-td { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-td.good { color: var(--up-t); background: color-mix(in srgb, var(--up) 12%, transparent); }
.ds-td.bad { color: var(--hy); background: color-mix(in srgb, var(--hy) 12%, transparent); }
.ds-td.flat { color: var(--t3); background: var(--well); }
.ds-ti { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ds-tv { margin: 8px 0 4px; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--t0); white-space: nowrap; }
.ds-tt { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--t2); }
.ds-tvs { color: var(--t3); }
.ds-sp { position: relative; height: 40px; margin: 10px 4px 2px; }
.ds-sp-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ds-sp-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ds-draw 1.1s cubic-bezier(.22, 1, .36, 1) .25s forwards; }
.ds-sp-a { opacity: 0; animation: ds-fade .6s ease .45s forwards; }
.ds-sp-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); transform: scale(0); animation: ds-pop .4s cubic-bezier(.34, 1.56, .64, 1) 1.2s forwards; }
@keyframes ds-draw { to { stroke-dashoffset: 0; } }
@keyframes ds-fade { to { opacity: 1; } }
@keyframes ds-pop { to { transform: scale(1); } }

/* LegalPal sections */
.ds-grid { align-items: stretch; }
.ds-box { min-width: 0; }
.ds-box > .tray-c { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ds-r, .ds-rr { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ds-chart { position: relative; min-width: 0; }
.ds-leg { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--t2); }
.ds-leg span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ds-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ds-leg i.dash { height: 0; width: 14px; border-radius: 0; background: none; border-top: 2px dashed var(--c); }
.ds-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--t2); }
.ds-note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; stroke: var(--hy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-empty { margin: 0; font-size: 13px; color: var(--t3); }
.ds-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 6px; font-size: 12px; line-height: 1.5; color: var(--t3); }
.ds-box .tbl td.nw, .ds-box .tbl td .nw { white-space: nowrap; }
.ds-box .tbl-wrap { margin: 0 -6px; }

/* horizontal bars */
.ds-hb { display: flex; flex-direction: column; gap: 12px; }
.ds-hb-r { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 12px; }
.ds-hb-l { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--t1); }
.ds-hb-l small { font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-hb-t { height: 10px; border-radius: 999px; background: var(--well); overflow: hidden; }
.ds-hb-t i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s var(--ease); }
.ds-hb-r b { font-size: 13px; font-weight: 500; color: var(--t0); text-align: right; white-space: nowrap; }

/* donut + legend */
.ds-mix { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.ds-mix > .ds-leg { flex-direction: column; gap: 8px; }
.ds-mix.col { flex-direction: column; align-items: stretch; }
.ds-mix.col > .ring-wrap { align-self: center; }
.ds-kv { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 180px; }
.ds-kv > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: var(--t1); }
.ds-kv i { width: 10px; height: 10px; border-radius: 3px; }
.ds-kv small { margin-left: 6px; font-size: 11.5px; color: var(--t3); }
.ds-kv b { font-weight: 500; }

/* no-show heatmap */
.ds-heat { display: grid; grid-template-columns: minmax(62px, 1.4fr) repeat(7, minmax(28px, 1fr)); gap: 4px; font-size: 12px; }
.ds-heat-h { padding-bottom: 4px; text-align: center; font-size: 11.5px; color: var(--t3); }
.ds-heat-l { display: flex; align-items: center; font-size: 12.5px; color: var(--t1); white-space: nowrap; overflow: hidden; }
.ds-heat-c { display: grid; place-items: center; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--hy) var(--a), var(--well)); color: var(--t1); font-variant-numeric: tabular-nums; }
.ds-heat-c.hot { color: #fff; font-weight: 600; }

/* attention list */
.ds-att { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 18px; }
.ds-att-i { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line-2); color: var(--t1); text-decoration: none; border-radius: 10px; transition: background .2s; min-width: 0; }
.ds-att-i:hover { background: var(--hy-soft); }
.ds-att-i b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--t0); }
.ds-att-i small { display: block; font-size: 12px; line-height: 1.4; color: var(--t2); }
.ds-att-d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.ds-att-i.bad .ds-att-d { background: var(--hy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hy) 18%, transparent); }
.ds-att-i.warn .ds-att-d { background: var(--warn); }
.ds-att-i.ok .ds-att-d { background: var(--up); }
.ds-att-v { flex: none; font-size: 11px; font-weight: 550; color: var(--t3); padding: 2px 8px; border-radius: 999px; background: var(--well); white-space: nowrap; }
.ds-att-i > svg { flex: none; width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease), stroke .2s; }
.ds-att-i:hover > svg { stroke: var(--hy); transform: translateX(2px); }
.c4 > .tray-c .ds-att, .c5 > .tray-c .ds-att, .c6 > .tray-c .ds-att, .c7 > .tray-c .ds-att { grid-template-columns: 1fr; }

/* review themes, diverging */
.ds-div { display: flex; flex-direction: column; gap: 11px; }
.ds-div-r { display: grid; grid-template-columns: minmax(84px, 32%) 1fr; align-items: center; gap: 10px; }
.ds-div-l { font-size: 13px; color: var(--t1); }
.ds-div-b { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ds-div-b > div { display: flex; align-items: center; gap: 6px; height: 12px; }
.ds-div-b .l { justify-content: flex-end; }
.ds-div-b i { display: block; height: 10px; width: 0; transition: width 1s var(--ease); }
.ds-div-b i.neg { background: var(--hy); border-radius: 999px 2px 2px 999px; }
.ds-div-b i.pos { background: var(--navy); border-radius: 2px 999px 999px 2px; }
.ds-div-b em { font-style: normal; font-size: 11px; color: var(--t3); }
.ds-score { font-weight: 500; }
.ds-score.hi { color: var(--up-t); }
.ds-score.lo { color: var(--hy); }

/* unanswered reviews */
.ds-rv { display: flex; flex-direction: column; gap: 8px; }
.ds-rv-i { display: block; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); color: var(--t1); text-decoration: none; transition: box-shadow .2s; }
.ds-rv-i:hover { box-shadow: 0 0 0 1.5px var(--hy); }
.ds-rv-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.ds-rv-h b { font-weight: 500; }
.ds-rv-i p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--t2); }
.ds-stars { display: inline-flex; gap: 2px; }
.ds-stars i { width: 9px; height: 9px; border-radius: 2px; background: var(--well); transform: rotate(45deg) scale(.8); }
.ds-stars i.on { background: var(--hy); }

/* funnel */
.ds-fun { display: flex; flex-direction: column; gap: 10px; }
.ds-fun-r { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; }
.ds-fun-l { font-size: 13px; color: var(--t1); }
.ds-fun-t { position: relative; height: 34px; border-radius: 10px; background: var(--well); overflow: hidden; }
.ds-fun-t i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; background: color-mix(in srgb, var(--hy) calc(100% - var(--k) * 18%), var(--navy)); transition: width 1.1s var(--ease); }
.ds-fun-t b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: #fff; }
.ds-fun-p { font-size: 12.5px; font-weight: 500; color: var(--t2); text-align: right; font-variant-numeric: tabular-nums; }
.ds-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ds-steps > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.ds-steps small { font-size: 11.5px; color: var(--t3); }
.ds-steps b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--t0); }
.ds-steps span { font-size: 12px; color: var(--t2); }

/* gift cards grouped bars */
.ds-gb { flex: 1; display: flex; align-items: flex-end; gap: 10px; min-height: 170px; padding-top: 6px; }
.ds-gb-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.ds-gb-b { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.ds-gb-b i { width: min(16px, 42%); height: 0; border-radius: 5px 5px 2px 2px; transition: height 1s var(--ease); }
.ds-gb-b i.a { background: var(--hy); }
.ds-gb-b i.b { background: var(--navy); }
.ds-gb-c > span { font-size: 11.5px; color: var(--t3); }
.ds-gc-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ds-gc-sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-gc-sum small { font-size: 11.5px; color: var(--t3); }
.ds-gc-sum b { font-size: 16px; font-weight: 500; color: var(--t0); white-space: nowrap; }

/* venue cards side by side */
.ds-vc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ds-vc-i { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; border-radius: 16px; background: var(--panel-2); color: var(--t1); text-decoration: none; transition: box-shadow .2s; min-width: 0; }
.ds-vc-i:hover { box-shadow: 0 0 0 1.5px var(--hy); }
.ds-vc-h { display: flex; flex-direction: column; }
.ds-vc-h b { font-size: 14px; font-weight: 550; color: var(--t0); }
.ds-vc-h span { font-size: 12px; }
.ds-vc-v { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--t0); }
.ds-vc-i .ds-sp { height: 32px; margin: 2px 4px 4px; }
.ds-vc-i .ds-sp-dot { box-shadow: 0 0 0 3px var(--panel-2); }
.ds-vc-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ds-vc-s span { display: flex; flex-direction: column; min-width: 0; }
.ds-vc-s small { font-size: 10.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-vc-s b { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ds-vc-s b.bad { color: var(--hy); }

/* revenue per city */
.ds-city { display: flex; flex-direction: column; gap: 16px; }
.ds-city-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.ds-city-h b { font-weight: 500; color: var(--t0); }
.ds-city-h span { color: var(--t1); }
.ds-city-b { display: flex; gap: 2px; height: 28px; }
.ds-city-b i { position: relative; display: block; width: 0; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--hy) calc(var(--o) * 100%), var(--navy)); overflow: hidden; transition: width 1s var(--ease); }
.ds-city-b i span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 550; color: #fff; white-space: nowrap; }

/* comparison table */
.ds-cmp { display: inline-block; padding: 1px 7px; border-radius: 999px; }
.ds-cmp.best { color: var(--up-t); background: color-mix(in srgb, var(--up) 12%, transparent); font-weight: 550; }
.ds-cmp.worst { color: var(--hy); background: color-mix(in srgb, var(--hy) 12%, transparent); font-weight: 550; }

/* budget */
.ds-bud { display: flex; flex-direction: column; gap: 12px; }
.ds-bud-v { display: flex; align-items: baseline; gap: 8px; }
.ds-bud-v b { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--t0); }
.ds-bud-v span { font-size: 13px; color: var(--t2); }
.ds-bud .meter { height: 10px; }
.ds-bud .meter i { background: var(--hy); }
.ds-bud-s { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-bud-s span { display: flex; flex-direction: column; }
.ds-bud-s small { font-size: 11.5px; color: var(--t3); }
.ds-bud-s b { font-size: 15px; font-weight: 500; color: var(--t0); }

@media (max-width: 860px) {
  .ds-tabs { margin-bottom: 16px; }
  .ds-top h2 { font-size: 20px; }
  .ds-box > .tray-c { padding: 16px 14px; }
  .ds-box .tray-h { padding: 12px 12px 8px; }
  .ds-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
  .ds-tv { font-size: 26px; }
}
@media (max-width: 480px) {
  .ds-kpis { grid-template-columns: 1fr 1fr; }
  .ds-tile { padding: 14px 14px 10px; }
  .ds-tv { font-size: 21px; }
  .ds-th { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ds-tl { white-space: normal; }
  .ds-tt .ds-tvs { display: none; }
  .ds-hb-r { grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; }
  .ds-fun-r { grid-template-columns: 78px 1fr 38px; gap: 8px; }
  .ds-heat { gap: 3px; font-size: 11px; grid-template-columns: minmax(54px, 1.3fr) repeat(7, minmax(24px, 1fr)); }
  .ds-heat-c { height: 30px; border-radius: 6px; }
  .ds-vc-s { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-ask { width: 100%; }
  .ds-att { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-sp-l { animation: none; stroke-dashoffset: 0; }
  .ds-sp-a { animation: none; opacity: 1; }
  .ds-sp-dot { animation: none; transform: none; }
}
