/* Read-only business application previews within automatic workflow stories. */
.avp-root {
  --avp-ink: #183044;
  --avp-body: #445b6c;
  --avp-muted: #526b7e;
  --avp-line: #dce6ee;
  --avp-green: #087a6d;
  --avp-purple: #742774;
  color: var(--avp-ink);
  font:
    400 14px/1.45 Inter,
    Arial,
    sans-serif;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.avp-root *,
.avp-root *::before,
.avp-root *::after {
  box-sizing: border-box;
}
.avp-root :is(h3, p, dl, dt, dd, figure, figcaption, ul, ol) {
  margin: 0;
}
.avp-root :is(ul, ol) {
  list-style: none;
  padding: 0;
}
.avp-root svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.avp-window {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d5e0e9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 22px #1830440a;
}
.avp-header {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  background: #f4f8fb;
  border-bottom: 1px solid var(--avp-line);
}
.avp-brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  background: #e4eef4;
  color: #315e7b;
}
.avp-title {
  min-width: 0;
}
.avp-title h3 {
  color: var(--avp-ink);
  font:
    600 16px/1.25 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.avp-overline {
  display: block;
  color: #526b7e;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.avp-window-dots {
  display: flex;
  gap: 3px;
  margin-left: auto;
  padding-left: 4px;
}
.avp-window-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.avp-workspace {
  display: flex;
  flex: 1;
  min-width: 0;
}
.avp-body {
  padding: 20px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.avp-context {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.avp-subtitle {
  color: var(--avp-body);
  font-size: 13px;
  flex: 1 1 180px;
}
.avp-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  color: #12695e;
  background: #e9f5f0;
  border: 1px solid #cce6da;
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.avp-status[data-tone="pending"],
.avp-record-status[data-tone="pending"] {
  background: #fff5df;
  color: #785017;
  border-color: #f0dfb7;
}
.avp-status[data-tone="error"],
.avp-record-status[data-tone="error"] {
  background: #fff0ee;
  color: #9a312c;
  border-color: #f2d0cc;
}
.avp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
.avp-field {
  min-width: 0;
}
.avp-field dt {
  color: var(--avp-body);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 6px;
}
.avp-field-value {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cfdde7;
  border-radius: 5px;
  background: #fff;
  color: var(--avp-ink);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.avp-field-empty {
  color: #647788;
  background: #f8fafc;
}
.avp-field-highlight .avp-field-value {
  border-color: #5d9f90;
  background: #effaf5;
  box-shadow: 0 0 0 2px #087a6d0b;
}
.avp-field-highlight dt {
  color: #096c60;
}
.avp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.avp-metric {
  padding: 14px;
  background: #f5f9fa;
  border: 1px solid #dfebee;
  border-radius: 7px;
  min-width: 0;
}
.avp-metric dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--avp-body);
}
.avp-metric dd {
  margin-top: 6px;
  color: #153d50;
  font-weight: 600;
  font-size: clamp(20px, 6cqi, 28px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.avp-metric:only-child {
  grid-column: 1/-1;
}
.avp-chart {
  padding-top: 2px;
}
.avp-chart figcaption {
  color: var(--avp-body);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.avp-bar-list {
  display: grid;
  gap: 15px;
}
.avp-bar-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  font-size: 12px;
}
.avp-bar-label span {
  overflow-wrap: anywhere;
}
.avp-bar-label strong {
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.avp-bar-track {
  height: 9px;
  border-radius: 2px;
  background: #edf2f5;
  overflow: hidden;
}
.avp-bar-fill {
  display: block;
  height: 100%;
  background: #319985;
  border-radius: inherit;
}
.avp-bar-row:nth-child(2) .avp-bar-fill {
  background: #5c87b0;
}
.avp-bar-row:nth-child(3) .avp-bar-fill {
  background: #8b6bab;
}
.avp-records {
  border: 1px solid var(--avp-line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.avp-records-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--avp-line);
  background: #f7fafc;
  color: #4d6475;
  font-size: 11px;
  font-weight: 600;
}
.avp-records-head svg {
  width: 15px;
  height: 15px;
}
.avp-records-head small {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 5px;
  text-align: center;
  background: #e5edf3;
  border-radius: 4px;
  font-size: 10px;
}
.avp-record {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
}
.avp-record + .avp-record {
  border-top: 1px solid #e8eef3;
}
.avp-record-main {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.avp-record-main strong {
  display: block;
  color: var(--avp-ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.avp-record-main span {
  display: block;
  margin-top: 3px;
  color: var(--avp-body);
  font-size: 12px;
}
.avp-record-status {
  display: inline-block;
  max-width: 45%;
  padding: 3px 6px;
  border: 1px solid #d4e8df;
  border-radius: 4px;
  color: #256652;
  background: #edf8f1;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.avp-action {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  background: #edf7f3;
  color: #165b4b;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #d4e9df;
}
.avp-action svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.avp-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 10px 16px;
  border-top: 1px solid var(--avp-line);
  font-size: 10px;
  color: #526777;
  background: #f9fbfc;
}
.avp-sample-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #508878;
  flex: 0 0 5px;
}
.avp-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  flex: 1;
  min-height: 210px;
  padding: 16px;
  text-align: center;
  color: #5b7283;
}
.avp-empty svg {
  width: 42px;
  height: 42px;
  color: #829baa;
}
.avp-empty p {
  max-width: 25ch;
  font-size: 13px;
}

/* App canvas: a quiet business form and a visual navigation rail. */
.avp-app .avp-header {
  background: #742774;
  color: #fff;
  border-color: #742774;
}
.avp-app .avp-title h3 {
  color: #fff;
}
.avp-app .avp-overline {
  color: #f1dbee;
}
.avp-app .avp-brand-icon {
  color: #fff;
  background: #ffffff1f;
}
.avp-app .avp-body {
  background: #fcfbfd;
  padding: 18px 16px;
}
.avp-app-rail {
  width: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  padding: 16px 4px;
  background: #f1edf5;
  border-right: 1px solid #e5deea;
}
.avp-rail-item {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #71657b;
  border-radius: 6px;
}
.avp-rail-item svg {
  width: 17px;
  height: 17px;
}
.avp-rail-current {
  color: #742774;
  background: #e4d6e9;
}
.avp-app .avp-field dt {
  font-size: 11px;
}
.avp-app .avp-field-value {
  border-color: #d8d0df;
  border-bottom-color: #a396b1;
}
.avp-app .avp-field-highlight .avp-field-value {
  border-color: #90619e;
  border-bottom-color: #742774;
  background: #faf3fc;
}
.avp-app .avp-field-highlight dt {
  color: #742774;
}
.avp-app .avp-records-head {
  background: #f6f2f8;
}

/* Conversation preview. */
.avp-messages .avp-header {
  background: #e8f4f0;
}
.avp-messages .avp-brand-icon {
  color: #087a6d;
  background: #d3ece3;
}
.avp-messages .avp-body {
  background: #f6f9f7;
}
.avp-body > .avp-messages {
  display: grid;
  gap: 16px;
  align-content: start;
  background: transparent;
}
.avp-message {
  max-width: 92%;
  padding: 12px 14px;
  border: 1px solid #d9e5e1;
  border-radius: 9px 9px 9px 2px;
  background: #fff;
  color: #243e4c;
  box-shadow: 0 2px 4px #233e4c03;
}
.avp-message-out {
  justify-self: end;
  background: #e7f5ed;
  border-color: #c9e3d7;
  border-radius: 9px 9px 2px 9px;
}
.avp-message-origin {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #34705b;
}
.avp-message p {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Document, delivery and monitoring treatments. */
.avp-document .avp-body {
  background: #fffcf7;
}
.avp-document-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #d8d3c4;
  color: #75603a;
  font-size: 12px;
}
.avp-document .avp-fields {
  background: #fff;
  padding: 14px;
  border: 1px solid #e6dfd1;
  border-radius: 5px;
}
.avp-document .avp-field-value {
  border: 0;
  padding: 6px 0;
  min-height: 28px;
  border-radius: 0;
  background: transparent;
}
.avp-document .avp-field-highlight .avp-field-value {
  border-bottom: 2px solid #b99345;
  background: #fff7df;
  box-shadow: none;
}
.avp-document .avp-field-highlight dt {
  color: #6f541d;
}
.avp-dashboard .avp-brand-icon {
  color: #785813;
  background: #f6eccb;
}
.avp-dashboard .avp-metric:first-child {
  background: #edf7f2;
  border-color: #d2e8db;
}
.avp-deployment .avp-brand-icon {
  color: #5365a2;
  background: #e6eafb;
}
.avp-deployment .avp-field-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.avp-monitor .avp-brand-icon {
  color: #0f7281;
  background: #daf0f3;
}
.avp-monitor .avp-record {
  border-left: 3px solid #9ac9c8;
  padding-left: 9px;
}

@container (max-width: 340px) {
  .avp-header {
    padding: 13px;
    gap: 9px;
  }
  .avp-title h3 {
    font-size: 15px;
  }
  .avp-body {
    padding: 16px;
    gap: 16px;
  }
  .avp-app .avp-body {
    padding: 16px 12px;
  }
  .avp-app-rail {
    width: 34px;
    flex-basis: 34px;
    padding-inline: 2px;
  }
  .avp-rail-item {
    width: 27px;
  }
  .avp-fields {
    gap: 12px 9px;
  }
  .avp-field-value {
    padding: 8px;
    font-size: 12px;
  }
  .avp-metric {
    padding: 11px;
  }
  .avp-metric dd {
    font-size: 23px;
  }
  .avp-record {
    padding: 10px;
  }
  .avp-document .avp-fields {
    padding: 11px;
  }
}
@container (max-width: 285px) {
  .avp-app-rail {
    display: none;
  }
  .avp-fields {
    grid-template-columns: 1fr;
  }
  .avp-window-dots {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .avp-root *,
  .avp-root *::before,
  .avp-root *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .avp-window {
    box-shadow: none;
    break-inside: avoid;
  }
}
