.dh-dash {
  /* The app's colours. They follow the page's light or dark theme through the --dh- variables. */
  --dh-dash-frame: var(--dh-bg, #f7f7f6);
  --dh-dash-ground: var(--dh-raised, #fff);
  --dh-dash-ink: var(--dh-fg, #171717);
  --dh-dash-muted: var(--dh-muted, #5c5c5c);
  --dh-dash-faint: var(--dh-faint, #8a8a8a);
  --dh-dash-line: color-mix(in srgb, var(--dh-dash-ink) 11%, transparent);
  --dh-dash-fill: color-mix(in srgb, var(--dh-dash-ink) 6%, transparent);
  --dh-dash-blue: var(--dh-accent, #2563ff);
  --dh-dash-on-blue: var(--dh-on-accent, #fff);
  --dh-dash-good: color-mix(in srgb, #16a34a 76%, var(--dh-dash-ink));
  --dh-dash-warn: color-mix(in srgb, #d97706 76%, var(--dh-dash-ink));
  --dh-dash-bad: color-mix(in srgb, #dc2626 76%, var(--dh-dash-ink));
  --dh-dash-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dh-dash-glide: cubic-bezier(0.32, 0.72, 0, 1);
  --dh-dash-raise: 0 0 0 0.5px var(--dh-dash-line), 0 1px 2px rgb(0 0 0 / 0.08);
  container-type: inline-size;
  background: var(--dh-dash-frame);
  color: var(--dh-dash-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  text-align: left;
}
.dh-dash *,
.dh-dash *::before,
.dh-dash *::after {
  box-sizing: border-box;
}
.dh-dash :where(h1, h2, p, ul, ol, table) {
  margin: 0;
  padding: 0;
  font: inherit;
  list-style: none;
}
.dh-dash :where(button, input, select) {
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.dh-dash :where(button) {
  cursor: pointer;
}
.dh-dash :where(a) {
  color: inherit;
  text-decoration: none;
}
.dh-dash :where(i, em) {
  font-style: normal;
}
.dh-dash :where(svg) {
  flex: none;
  width: 16px;
  height: 16px;
}
.dh-dash [hidden] {
  display: none !important;
}
.dh-dash :where(:focus-visible) {
  outline: 2px solid var(--dh-dash-faint);
  outline-offset: 2px;
}

/* The app: a soft frame holding the side list and the page.
   For an app that fills the window, give it height: 100dvh and the page scrolls inside. */
.dh-dash-app {
  position: relative;
  display: flex;
  gap: 8px;
  min-height: 940px;
  padding: 8px;
  overflow: hidden;
}

/* The side list. */
.dh-dash-side {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 224px;
  padding: 0 2px 0 0;
}
.dh-dash-team,
.dh-dash-me {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px 6px 6px;
  border-radius: 10px;
  color: var(--dh-dash-faint);
  text-align: left;
  transition: background-color 150ms var(--dh-dash-ease), transform 150ms var(--dh-dash-ease);
}
.dh-dash-team > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--dh-dash-ink);
  color: var(--dh-dash-ground);
  font-weight: 600;
}
.dh-dash-me img {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.dh-dash-team span,
.dh-dash-me span {
  display: grid;
  flex: 1;
  min-width: 0;
}
.dh-dash-team strong,
.dh-dash-me strong {
  overflow: hidden;
  color: var(--dh-dash-ink);
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-dash-team small,
.dh-dash-me small {
  overflow: hidden;
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-dash-team:active,
.dh-dash-me:active {
  transform: scale(0.98);
}

.dh-dash-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.dh-dash-nav p {
  margin: 14px 0 4px;
  padding: 0 10px;
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
}
.dh-dash-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--dh-dash-muted);
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-nav a span {
  flex: 1;
}
.dh-dash-nav a b {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
  color: var(--dh-dash-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}
.dh-dash-nav a svg {
  transition: transform 300ms var(--dh-dash-ease);
}
.dh-dash-nav a[aria-current="page"] {
  color: var(--dh-dash-ink);
}
.dh-dash-nav a:active svg {
  transform: scale(0.86);
}
/* The sliding highlight, shared by the side list and the toggles. Until the script has
   placed it, the chosen item carries the fill itself. */
.dh-dash-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  background: var(--dh-dash-fill);
  pointer-events: none;
  transition: transform 340ms var(--dh-dash-glide), width 340ms var(--dh-dash-glide), height 340ms var(--dh-dash-glide);
}
[data-dash-slide]:not([data-ready]) .dh-dash-pill {
  display: none;
}
.dh-dash-nav:not([data-ready]) a[aria-current="page"] {
  background: var(--dh-dash-fill);
}

.dh-dash-plan {
  display: grid;
  gap: 10px;
  margin: auto 0 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
}
.dh-dash-plan p {
  display: grid;
  gap: 2px;
}
.dh-dash-plan p span {
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
}
.dh-dash-plan strong {
  font-weight: 500;
}
.dh-dash-plan small {
  color: var(--dh-dash-muted);
  font-size: inherit;
}
.dh-dash-plan a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  color: var(--dh-dash-muted);
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-plan a svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--dh-dash-ease);
}
.dh-dash-meter {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--dh-dash-fill);
}
.dh-dash-meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--dh-dash-blue);
  transform-origin: left;
  transition: width 500ms var(--dh-dash-glide);
  animation: dh-dash-grow 700ms var(--dh-dash-glide) backwards;
}
@keyframes dh-dash-grow {
  from {
    transform: scaleX(0.02);
  }
}

/* The page: a white sheet with a strip along its top. */
.dh-dash-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
}
.dh-dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 52px;
  padding: 0 12px 0 20px;
  border-bottom: 0.5px solid var(--dh-dash-line);
}
.dh-dash-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--dh-dash-muted);
}
.dh-dash-crumbs i {
  color: var(--dh-dash-line);
}
.dh-dash-crumbs strong {
  color: var(--dh-dash-ink);
  font-weight: 500;
}
.dh-dash-find {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: 8px;
  background: var(--dh-dash-fill);
  color: var(--dh-dash-muted);
  transition: background-color 150ms var(--dh-dash-ease), transform 150ms var(--dh-dash-ease);
}
.dh-dash-find span {
  flex: 1;
  text-align: left;
}
.dh-dash kbd {
  padding: 0 5px;
  border-radius: 5px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
  color: var(--dh-dash-muted);
  font: inherit;
  font-size: 11px;
  line-height: 18px;
}
.dh-dash-find:active {
  transform: scale(0.98);
}
.dh-dash-round {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--dh-dash-muted);
  transition: background-color 150ms var(--dh-dash-ease), color 150ms var(--dh-dash-ease), transform 150ms var(--dh-dash-ease);
}
.dh-dash-round:active {
  transform: scale(0.92);
}
.dh-dash-round:disabled {
  opacity: 0.4;
  cursor: default;
}
.dh-dash-round[aria-expanded="true"] {
  background: var(--dh-dash-fill);
  color: var(--dh-dash-ink);
}
.dh-dash-menu {
  display: none;
  margin-left: -8px;
}
.dh-dash-bell {
  position: relative;
}
.dh-dash-bell > button > i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dh-dash-blue);
  box-shadow: 0 0 0 1.5px var(--dh-dash-ground);
  transition: transform 200ms var(--dh-dash-ease), opacity 200ms var(--dh-dash-ease);
}
.dh-dash-bell[data-read] > button > i {
  opacity: 0;
  transform: scale(0.4);
}
.dh-dash-pop {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 5;
  width: 300px;
  padding: 4px;
  border-radius: 12px;
  background: var(--dh-dash-ground);
  box-shadow: 0 0 0 0.5px var(--dh-dash-line), 0 4px 8px -4px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.08);
  transform-origin: top right;
  animation: dh-dash-pop 150ms var(--dh-dash-ease);
}
@keyframes dh-dash-pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
.dh-dash-pop header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 8px;
}
.dh-dash-pop header strong {
  font-weight: 500;
}
.dh-dash-pop header button {
  color: var(--dh-dash-muted);
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-pop li {
  display: grid;
  grid-template-columns: 7px 1fr;
  gap: 0 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}
.dh-dash-pop li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dh-dash-blue);
  opacity: 0;
  transition: opacity 200ms var(--dh-dash-ease);
}
.dh-dash-pop li[data-fresh] i {
  opacity: 1;
}
.dh-dash-pop time {
  grid-column: 2;
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
}

/* The page's content. Each pane fades in, its parts one after another. */
.dh-dash-main {
  flex: 1;
  min-height: 0;
  padding: 24px 28px 32px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dh-dash-pane--narrow {
  max-width: 720px;
}
.dh-dash-pane > * {
  animation: dh-dash-in 300ms var(--dh-dash-ease) backwards;
}
.dh-dash-pane > :nth-child(2) {
  animation-delay: 40ms;
}
.dh-dash-pane > :nth-child(3) {
  animation-delay: 80ms;
}
.dh-dash-pane > :nth-child(n + 4) {
  animation-delay: 120ms;
}
@keyframes dh-dash-in {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(6px);
  }
}
.dh-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}
.dh-dash-head h1 {
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.03em;
}
.dh-dash-head p {
  margin-top: 4px;
  color: var(--dh-dash-muted);
}
.dh-dash-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Buttons: white and raised, or blue for the one main action. */
.dh-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
  font-weight: 500;
  white-space: nowrap;
  transition: transform 150ms var(--dh-dash-ease), filter 150ms var(--dh-dash-ease), background-color 150ms var(--dh-dash-ease);
}
.dh-dash-btn svg {
  margin-left: -2px;
  color: var(--dh-dash-muted);
}
.dh-dash-btn:active {
  transform: scale(0.97);
}
.dh-dash-btn--main {
  background: var(--dh-dash-blue);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.2), 0 1px 2px rgb(0 0 0 / 0.2);
  color: var(--dh-dash-on-blue);
}
.dh-dash-btn--main svg {
  color: inherit;
}
.dh-dash-btn--risk {
  color: var(--dh-dash-bad);
}

/* A two or four way toggle with a sliding highlight. */
.dh-dash-seg {
  position: relative;
  display: flex;
  height: 32px;
  padding: 2px;
  border-radius: 8px;
  background: var(--dh-dash-fill);
}
.dh-dash-seg button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--dh-dash-muted);
  white-space: nowrap;
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-seg button small {
  color: var(--dh-dash-faint);
  font-size: 12px;
}
.dh-dash-seg button[aria-pressed="true"] {
  color: var(--dh-dash-ink);
}
.dh-dash-seg .dh-dash-pill {
  border-radius: 6px;
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
}
.dh-dash-seg:not([data-ready]) button[aria-pressed="true"] {
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
}

/* A card is a soft frame: a title strip on top, a white sheet set into it. */
.dh-dash-card {
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--dh-dash-frame);
  box-shadow: 0 0 0 0.5px var(--dh-dash-line), 0 1px 2px rgb(0 0 0 / 0.04);
}
.dh-dash-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--dh-dash-muted);
}
.dh-dash-card > header h2 {
  margin-right: auto;
  color: var(--dh-dash-ink);
  font-weight: 500;
}
.dh-dash-card > header a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-card > header a svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--dh-dash-ease);
}
.dh-dash-inset {
  border-radius: 10px;
  background: var(--dh-dash-ground);
  box-shadow: 0 0 0 0.5px var(--dh-dash-line);
}
.dh-dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 12px;
}
.dh-dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dh-dash-live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  content: "";
  animation: dh-dash-pulse 2.4s ease-in-out infinite;
}
@keyframes dh-dash-pulse {
  50% {
    opacity: 0.35;
  }
}

/* The four figures. */
.dh-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dh-dash-stats > div {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 16px;
  border-left: 0.5px solid var(--dh-dash-line);
}
.dh-dash-stats > div:first-child {
  border-left: 0;
}
.dh-dash-stats > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dh-dash-muted);
}
.dh-dash-stats strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dh-dash-stats p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  color: var(--dh-dash-muted);
}
.dh-dash-stats em {
  color: var(--dh-dash-good);
  font-variant-numeric: tabular-nums;
}
.dh-dash-stats em[data-bad] {
  color: var(--dh-dash-bad);
}
.dh-dash-stats small {
  font-size: inherit;
}
.dh-dash-spark {
  position: absolute;
  top: 46px;
  right: 16px;
  width: 64px;
  height: 20px;
  color: var(--dh-dash-faint);
  animation: dh-dash-draw 900ms var(--dh-dash-glide) backwards 200ms;
}
/* A figure that has just changed fades in over the old one. */
.dh-dash-swap {
  display: inline-block;
  animation: dh-dash-in 260ms var(--dh-dash-ease);
}

/* The chart. Lines are drawn left to right; the pointer shows the day under it. */
.dh-dash-chart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  padding: 16px 16px 12px 14px;
}
.dh-dash-scale,
.dh-dash-days {
  display: flex;
  justify-content: space-between;
  color: var(--dh-dash-faint);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.dh-dash-scale {
  flex-direction: column;
  margin: -8px 0;
  text-align: right;
}
.dh-dash-days {
  grid-column: 2;
}
.dh-dash-plot {
  position: relative;
  height: 216px;
  background: linear-gradient(var(--dh-dash-line), var(--dh-dash-line)) 0 0 / 100% 0.5px no-repeat,
    linear-gradient(var(--dh-dash-line), var(--dh-dash-line)) 0 50% / 100% 0.5px no-repeat,
    linear-gradient(var(--dh-dash-line), var(--dh-dash-line)) 0 100% / 100% 0.5px no-repeat;
  cursor: crosshair;
  touch-action: pan-y;
}
.dh-dash-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dh-dash-area {
  color: var(--dh-dash-blue);
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  animation: dh-dash-fade 900ms var(--dh-dash-ease) backwards 200ms;
}
.dh-dash-lines {
  animation: dh-dash-draw 900ms var(--dh-dash-glide) backwards;
}
.dh-dash-lines path {
  stroke: var(--dh-dash-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dh-dash-lines path[data-dash-before] {
  stroke: var(--dh-dash-faint);
  stroke-width: 1.5;
  stroke-dasharray: 1 5;
}
@keyframes dh-dash-draw {
  from {
    clip-path: inset(-8px 100% -8px -8px);
  }
  to {
    clip-path: inset(-8px);
  }
}
@keyframes dh-dash-fade {
  from {
    opacity: 0;
  }
}
.dh-dash-rule,
.dh-dash-dot,
.dh-dash-tip {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--dh-dash-ease);
}
.dh-dash-plot[data-over] :is(.dh-dash-rule, .dh-dash-dot, .dh-dash-tip) {
  opacity: 1;
}
.dh-dash-rule {
  width: 0.5px;
  height: 100%;
  background: var(--dh-dash-faint);
}
.dh-dash-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--dh-dash-blue);
  box-shadow: 0 0 0 2px var(--dh-dash-ground);
}
.dh-dash-tip {
  z-index: 2;
  display: grid;
  min-width: 112px;
  margin: 8px 0 0 10px;
  padding: 6px 10px 8px;
  border-radius: 8px;
  background: var(--dh-dash-ground);
  box-shadow: 0 0 0 0.5px var(--dh-dash-line), 0 4px 8px -4px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.08);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dh-dash-tip[data-flip] {
  margin-left: -10px;
  translate: -100% 0;
}
.dh-dash-tip span,
.dh-dash-tip em {
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
}
.dh-dash-tip strong {
  font-weight: 500;
}
.dh-dash-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dh-dash-key i {
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--dh-dash-blue);
}
.dh-dash-key i[data-before] {
  margin-left: 8px;
  background: linear-gradient(90deg, var(--dh-dash-faint) 2px, transparent 2px) 0 0 / 4px 2px;
}

/* Rows with a bar under them: sales by channel, usage. */
.dh-dash-bars li {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 0.5px solid var(--dh-dash-line);
}
.dh-dash-bars li:first-child {
  border-top: 0;
}
.dh-dash-bars p {
  display: flex;
  gap: 8px;
}
.dh-dash-bars p span {
  margin-right: auto;
}
.dh-dash-bars strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dh-dash-bars em {
  min-width: 32px;
  color: var(--dh-dash-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Tables. */
.dh-dash-table {
  overflow-x: auto;
}
.dh-dash-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.dh-dash-table :is(th, td) {
  height: 40px;
  padding: 0 14px;
  border-top: 0.5px solid var(--dh-dash-line);
  color: var(--dh-dash-muted);
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}
.dh-dash-table th {
  height: 36px;
  border-top: 0;
  font-size: 12px;
}
.dh-dash-table td b {
  color: var(--dh-dash-ink);
  font-weight: 500;
}
.dh-dash-table tbody tr {
  transition: background-color 150ms var(--dh-dash-ease);
}
.dh-dash-table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms var(--dh-dash-ease);
}
.dh-dash-table th button svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 150ms var(--dh-dash-ease), transform 300ms var(--dh-dash-glide);
}
.dh-dash-table th[aria-sort="ascending"] button,
.dh-dash-table th[aria-sort="descending"] button {
  color: var(--dh-dash-ink);
}
.dh-dash-table th:not([aria-sort="none"]) button svg {
  opacity: 1;
}
.dh-dash-table th[aria-sort="ascending"] button svg {
  transform: rotate(180deg);
}
.dh-dash-who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dh-dash-ink);
}
.dh-dash-who span {
  overflow: hidden;
  max-width: 20ch;
  text-overflow: ellipsis;
}
.dh-dash-face {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dh-dash-fill);
  object-fit: cover;
}
.dh-dash-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dh-dash-ink);
}
.dh-dash-state::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  content: "";
}
.dh-dash-state[data-state="Pending"]::before {
  background: #f59e0b;
}
.dh-dash-state[data-state="Refunded"]::before {
  background: var(--dh-dash-faint);
}
.dh-dash-filters {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4px !important;
}
.dh-dash-filters .dh-dash-seg {
  background: none;
  padding: 0;
}
.dh-dash-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--dh-dash-fill);
  color: var(--dh-dash-muted);
  transition: background-color 150ms var(--dh-dash-ease);
}
.dh-dash-field:focus-within {
  background: color-mix(in srgb, var(--dh-dash-ink) 10%, transparent);
}
.dh-dash-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  outline: 0;
  color: var(--dh-dash-ink);
}
.dh-dash input::placeholder {
  color: var(--dh-dash-faint);
  opacity: 1;
}
.dh-dash input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.dh-dash-none {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 44px 16px 48px;
  border-top: 0.5px solid var(--dh-dash-line);
  color: var(--dh-dash-muted);
  animation: dh-dash-in 240ms var(--dh-dash-ease);
}
.dh-dash-none svg {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  color: var(--dh-dash-faint);
}
.dh-dash-none p:first-of-type {
  color: var(--dh-dash-ink);
}
.dh-dash-none button {
  margin-top: 14px;
}
.dh-dash-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dh-dash-muted);
  font-variant-numeric: tabular-nums;
}
.dh-dash-pager p {
  margin-right: auto;
  padding-left: 14px;
}
.dh-dash-pager button {
  background: var(--dh-dash-ground);
  box-shadow: var(--dh-dash-raise);
  color: var(--dh-dash-ink);
}

/* Lists of rows: activity, invoices, switches. */
.dh-dash-feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border-top: 0.5px solid var(--dh-dash-line);
}
.dh-dash-feed li:first-child {
  border-top: 0;
}
.dh-dash-feed p {
  display: grid;
  flex: 1;
  min-width: 0;
}
.dh-dash-feed b {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-dash-feed p span,
.dh-dash-feed time {
  color: var(--dh-dash-muted);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
.dh-dash-bills li {
  padding-right: 8px;
}
.dh-dash-bills strong {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* The download button's arrow turns into a tick once pressed. */
.dh-dash-bills button svg {
  grid-area: 1 / 1;
  transition: opacity 200ms var(--dh-dash-ease), transform 200ms var(--dh-dash-ease), filter 200ms var(--dh-dash-ease);
}
.dh-dash-bills button svg:last-child,
.dh-dash-bills button[data-done] svg:first-child {
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.6);
}
.dh-dash-bills button[data-done] svg:last-child {
  opacity: 1;
  filter: none;
  transform: none;
  color: var(--dh-dash-good);
}

/* Customers. */
.dh-dash-people li {
  border-top: 0.5px solid var(--dh-dash-line);
}
.dh-dash-people li:first-child {
  border-top: 0;
}
.dh-dash-people a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.6fr) 88px minmax(0, 0.7fr) minmax(0, 0.9fr) 56px 16px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  color: var(--dh-dash-muted);
  transition: background-color 150ms var(--dh-dash-ease);
}
.dh-dash-people li:first-child a {
  border-radius: 10px 10px 0 0;
}
.dh-dash-people li:last-child a {
  border-radius: 0 0 10px 10px;
}
.dh-dash-people .dh-dash-face {
  width: 32px;
  height: 32px;
}
.dh-dash-people p {
  display: grid;
  min-width: 0;
}
.dh-dash-people p :is(b, span) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-dash-people p b {
  color: var(--dh-dash-ink);
  font-weight: 500;
}
.dh-dash-people p span {
  font-size: 12px;
  line-height: 16px;
}
.dh-dash-num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dh-dash-num b {
  color: var(--dh-dash-ink);
  font-weight: 400;
}
.dh-dash-people a > svg {
  color: var(--dh-dash-faint);
  transition: transform 200ms var(--dh-dash-ease), color 150ms var(--dh-dash-ease);
}
.dh-dash-tag {
  justify-self: start;
  padding: 0 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dh-dash-tint, #2563ff) 12%, var(--dh-dash-ground));
  color: color-mix(in srgb, var(--dh-dash-tint, #2563ff) 70%, var(--dh-dash-ink));
  font-size: 12px;
  line-height: 20px;
}
.dh-dash-tag[data-kind="New"] {
  --dh-dash-tint: #16a34a;
}
.dh-dash-tag[data-kind="Wholesale"] {
  --dh-dash-tint: #d97706;
}

/* Billing and settings. */
.dh-dash-price {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 14px;
}
.dh-dash-price p {
  display: grid;
  flex: 1;
  min-width: 0;
}
.dh-dash-price strong {
  font-weight: 500;
}
.dh-dash-price span {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.03em;
}
.dh-dash-price small {
  display: inline-block;
  color: var(--dh-dash-muted);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
}
.dh-dash-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 14px;
}
.dh-dash-form label {
  display: grid;
  gap: 6px;
}
.dh-dash-form label > span:first-child {
  color: var(--dh-dash-muted);
}
.dh-dash-form :is(input, select) {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  outline: 0;
  background: var(--dh-dash-fill);
  appearance: none;
  transition: background-color 150ms var(--dh-dash-ease), box-shadow 150ms var(--dh-dash-ease);
}
.dh-dash-form :is(input, select):focus {
  background: color-mix(in srgb, var(--dh-dash-ink) 9%, transparent);
}
.dh-dash-form :is(input, select):focus-visible {
  box-shadow: 0 0 0 2px var(--dh-dash-faint);
}
.dh-dash-select {
  position: relative;
  display: block;
}
.dh-dash-select svg {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--dh-dash-muted);
  pointer-events: none;
}
.dh-dash-switch {
  flex: none;
  width: 36px;
  height: 22px;
  padding: 2px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--dh-dash-ink) 18%, transparent);
  transition: background-color 200ms var(--dh-dash-ease);
}
.dh-dash-switch i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 300ms cubic-bezier(0.3, 1.35, 0.5, 1), width 150ms var(--dh-dash-ease);
}
.dh-dash-switch[aria-checked="true"] {
  background: var(--dh-dash-blue);
}
.dh-dash-switch[aria-checked="true"] i {
  transform: translateX(14px);
}
.dh-dash-switch:active i {
  width: 21px;
}
.dh-dash-switch[aria-checked="true"]:active i {
  transform: translateX(11px);
}
.dh-dash-save {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 28px;
}
/* The save button: its label gives way to a spinner, then a tick. */
.dh-dash-save [data-dash-save] {
  min-width: 124px;
}
.dh-dash-save [data-dash-save] svg,
.dh-dash-spin {
  display: none;
}
.dh-dash-save [data-state="saving"] .dh-dash-spin {
  display: block;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: dh-dash-turn 600ms linear infinite;
}
.dh-dash-save [data-state="saved"] svg {
  display: block;
  animation: dh-dash-pop 200ms var(--dh-dash-ease);
}
.dh-dash-save [data-state] span {
  animation: dh-dash-in 200ms var(--dh-dash-ease);
}
@keyframes dh-dash-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Search, opened with the search button or Cmd K. */
.dh-dash-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 120px 16px 0;
  background: rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: dh-dash-fade 200ms var(--dh-dash-ease);
}
.dh-dash-palette {
  align-self: flex-start;
  width: min(480px, 100%);
  padding: 4px;
  border-radius: 14px;
  background: var(--dh-dash-ground);
  box-shadow: 0 0 0 0.5px var(--dh-dash-line), 0 6px 8px -4px rgb(0 0 0 / 0.24), 0 1px 2px rgb(0 0 0 / 0.1);
  animation: dh-dash-rise 240ms var(--dh-dash-ease);
}
@keyframes dh-dash-rise {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px) scale(0.98);
  }
}
.dh-dash-palette label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px;
  border-bottom: 0.5px solid var(--dh-dash-line);
  color: var(--dh-dash-muted);
}
.dh-dash-palette input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  outline: 0;
  color: var(--dh-dash-ink);
}
.dh-dash-palette ul {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}
.dh-dash-palette li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--dh-dash-muted);
  text-align: left;
  transition: background-color 150ms var(--dh-dash-ease), color 150ms var(--dh-dash-ease);
}
.dh-dash-palette li button[data-on] {
  background: var(--dh-dash-fill);
  color: var(--dh-dash-ink);
}
.dh-dash-palette > p {
  padding: 20px 10px 22px;
  color: var(--dh-dash-muted);
  text-align: center;
}

/* One short message at the bottom, for a result that shows nowhere else. */
.dh-dash-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--dh-dash-ink);
  color: var(--dh-dash-ground);
  box-shadow: 0 4px 8px -4px rgb(0 0 0 / 0.3);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 200ms var(--dh-dash-ease), transform 200ms var(--dh-dash-ease), filter 200ms var(--dh-dash-ease);
}
.dh-dash-toast[data-open] {
  opacity: 1;
  filter: none;
  transform: translate(-50%, 0);
  transition-duration: 300ms;
}
.dh-dash-scrim {
  display: none;
}

@media (hover: hover) {
  .dh-dash-team:hover,
  .dh-dash-me:hover,
  .dh-dash-round:hover:not(:disabled) {
    background: var(--dh-dash-fill);
  }
  .dh-dash-pager button:hover:not(:disabled) {
    background: var(--dh-dash-ground);
    filter: brightness(0.97);
  }
  .dh-dash-round:hover:not(:disabled),
  .dh-dash-nav a:hover,
  .dh-dash-seg button:hover,
  .dh-dash-plan a:hover,
  .dh-dash-card > header a:hover,
  .dh-dash-pop header button:hover,
  .dh-dash-table th button:hover {
    color: var(--dh-dash-ink);
  }
  .dh-dash-plan a:hover svg {
    transform: translate(1px, -1px);
  }
  .dh-dash-card > header a:hover svg,
  .dh-dash-people a:hover > svg {
    color: var(--dh-dash-ink);
    transform: translateX(2px);
  }
  .dh-dash-find:hover {
    background: color-mix(in srgb, var(--dh-dash-ink) 9%, transparent);
  }
  .dh-dash-btn:hover {
    filter: brightness(0.97);
  }
  .dh-dash-btn--main:hover {
    filter: brightness(1.08);
  }
  .dh-dash-table tbody tr:hover,
  .dh-dash-people a:hover,
  .dh-dash-pop li:hover {
    background: color-mix(in srgb, var(--dh-dash-ink) 3%, transparent);
  }
}

/* Narrower: the side list becomes a drawer, and the columns stack. */
@container (max-width: 920px) {
  .dh-dash-side {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 12;
    width: 252px;
    padding: 12px;
    background: var(--dh-dash-frame);
    box-shadow: 0 0 0 0.5px var(--dh-dash-line);
    transform: translateX(-102%);
    transition: transform 320ms var(--dh-dash-glide);
  }
  .dh-dash-scrim {
    position: absolute;
    inset: 0;
    z-index: 11;
    display: block;
    background: rgb(0 0 0 / 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--dh-dash-ease);
  }
  .dh-dash-app[data-menu] .dh-dash-side {
    transform: none;
  }
  .dh-dash-app[data-menu] .dh-dash-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .dh-dash-menu {
    display: grid;
  }
  .dh-dash-plan {
    margin-top: 24px;
  }
  .dh-dash-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .dh-dash-main {
    padding: 20px 16px 28px;
  }
  .dh-dash-top {
    padding: 0 8px 0 16px;
  }
}
@container (max-width: 720px) {
  .dh-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-dash-stats > div:nth-child(odd) {
    border-left: 0;
  }
  .dh-dash-stats > div:nth-child(n + 3) {
    border-top: 0.5px solid var(--dh-dash-line);
  }
  .dh-dash-table:not(.dh-dash-table--brief) :is(th, td):nth-child(4),
  .dh-dash-people a > :is(.dh-dash-num, time) {
    display: none;
  }
  .dh-dash-people a {
    grid-template-columns: 32px minmax(0, 1fr) auto 16px;
  }
  .dh-dash-find {
    width: auto;
  }
  .dh-dash-find :is(span, kbd) {
    display: none;
  }
  .dh-dash-find {
    padding: 0 8px;
    border-radius: 50%;
    background: none;
  }
  .dh-dash-key {
    display: none;
  }
}
@container (max-width: 520px) {
  .dh-dash-table :is(th, td):nth-child(3) {
    display: none;
  }
  .dh-dash-spark,
  .dh-dash-who .dh-dash-face {
    display: none;
  }
  .dh-dash-table :is(th, td) {
    padding: 0 10px;
  }
  .dh-dash-who span {
    max-width: 13ch;
  }
  .dh-dash-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .dh-dash-field,
  .dh-dash-filters .dh-dash-seg {
    width: 100%;
  }
  .dh-dash-filters {
    gap: 4px;
  }
  .dh-dash-filters .dh-dash-seg button {
    flex: 1;
    justify-content: center;
    padding: 0 4px;
  }
  .dh-dash-tools,
  .dh-dash-tools .dh-dash-seg {
    width: 100%;
  }
  .dh-dash-tools .dh-dash-seg button,
  .dh-dash-tools .dh-dash-btn {
    flex: 1;
    justify-content: center;
  }
  .dh-dash-pop {
    right: -4px;
    width: min(300px, 86cqw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-dash *,
  .dh-dash *::before {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .dh-dash-spin {
    animation-duration: 900ms !important;
    animation-iteration-count: infinite !important;
  }
}
