.demo-app.demo-app-agent-deals {
  min-height: 0;
  background: #fff;
}
.demo-app-agent-deals .demo-body {
  min-height: 0;
  padding: 0;
}
.ad-story {
  --ad-emerald: #059669;
  --ad-done: #087451;
  --ad-amber: #b7791f;
  --ad-amber-ink: #80501f;
  --ad-hair: #d5dde4;
  color: var(--demo-ink);
}
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.ad-table th,
.ad-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--demo-line);
}
.ad-table thead th {
  white-space: nowrap;
  padding-block: 12px;
  color: var(--demo-muted);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f4f7f8;
}
.ad-table tbody th,
.ad-table tbody td {
  vertical-align: middle;
}
.ad-table tbody tr {
  transition: background-color 160ms ease;
}
.ad-table tbody tr:hover {
  background: #f7faf9;
}
.ad-table tbody tr:last-child > * {
  border-bottom: 0;
}
.ad-mono {
  display: block;
  white-space: nowrap;
  font: 500 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.ad-quiet {
  color: var(--demo-muted);
}
/* Separators are drawn dots, so the copy carries no symbol characters. */
.ad-join {
  white-space: nowrap;
}
.ad-join > span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.ad-person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.ad-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ad-done);
  font-weight: 600;
}
tr[data-status="ordered"] .ad-report {
  color: var(--ad-amber-ink);
}
tr[data-status="ordered"] .ad-report .ad-pad {
  color: var(--ad-amber);
  background: transparent;
  animation: ad-pulse 2.4s ease-in-out infinite;
}
.ad-none {
  display: block;
  width: 12px;
  height: 1.5px;
  background: #b7c0ca;
}
.ad-avatar {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e3f3ec;
  color: var(--ad-done);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
}
.ad-pad {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  background: currentColor;
}
/* The flip: one line swaps in place without reflowing the row. */
.ad-flip {
  position: relative;
  display: inline-grid;
  max-width: 100%;
  border-radius: 3px;
  cursor: default;
}
.ad-flip > span {
  grid-area: 1 / 1;
  transition: opacity 160ms ease;
}
.ad-flip-answer {
  opacity: 0;
  color: var(--ad-done);
}
.ad-flip:hover .ad-flip-rest,
.ad-flip:focus-visible .ad-flip-rest {
  opacity: 0;
}
.ad-flip:hover .ad-flip-answer,
.ad-flip:focus-visible .ad-flip-answer {
  opacity: 1;
}
.ad-flip:focus-visible {
  outline: 2px solid var(--ad-emerald);
  outline-offset: 3px;
}
@keyframes ad-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(183 121 31 / 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px rgb(183 121 31 / 0);
  }
}
/* Narrow frames stack each deal into a card; the roles keep it a table. */
@media (max-width: 640px) {
  .ad-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .ad-table,
  .ad-table tbody,
  .ad-table tbody th,
  .ad-table tbody td {
    display: block;
    width: auto;
  }
  .ad-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 16px;
    border-bottom: 1px solid var(--demo-line);
  }
  .ad-table tbody tr > * {
    padding: 0;
    border: 0;
  }
  .ad-table tbody th {
    grid-column: 1 / 3;
  }
  .ad-table tbody td:nth-of-type(1) {
    justify-self: end;
    align-self: center;
  }
  .ad-table tbody td:nth-of-type(2) {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  tr[data-status="ordered"] .ad-report .ad-pad {
    animation: none;
  }
  .ad-flip > span,
  .ad-table tbody tr {
    transition: none;
  }
}
