.afv {
  --afv-blue: var(--pm-accent, #315daf);
  --afv-blue-dark: var(--pm-primary, #183d7d);
  --afv-blue-soft: var(--pm-primary-soft, #eaf1ff);
  --afv-border: var(--pm-border, #d8e1f0);
  --afv-ink: var(--pm-text, #18243b);
  --afv-muted: var(--pm-muted, #7d8aa2);
  --afv-green: var(--pm-success, #49a774);
  --afv-radius: inherit;
  --afv-font: var(--sans, Arial, sans-serif);
  position: relative;
  container-type: inline-size;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: inherit;
  overflow: hidden;
  border: 1px solid rgba(49, 93, 175, .1);
  border-radius: var(--afv-radius);
  background: #fff;
  color: var(--afv-ink);
  font: 400 clamp(8px, 2.15cqi, 12px) / 1.35 var(--afv-font);
  isolation: isolate;
}
.afv,
.afv * {
  box-sizing: border-box;
}
.afv .afv__halo {
  position: absolute;
  z-index: -2;
  top: 52%;
  left: 50%;
  width: 63%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f1f6ff 0 55%, transparent 73%);
  transform: translate(-50%, -50%);
}
.afv .ui,
.afv .document,
.afv .form-card,
.afv .email-card,
.afv .audio-card {
  position: absolute;
  border: 1px solid var(--afv-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 61, 125, .09);
}
.afv .ui strong,
.afv .document strong {
  display: block;
}
.afv .ui small,
.afv .document small {
  color: var(--afv-muted);
}
.afv .lines {
  display: grid;
  gap: 5px;
}
.afv .lines i,
.afv .result-stack article span > i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #e1e6ef;
}
.afv .lines i:nth-child(2) { width: 82%; }
.afv .lines i:nth-child(3) { width: 56%; }
.afv .lines i:nth-child(4) { width: 70%; }
.afv .status {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 7px;
  color: #268554;
  background: #e1f4e9;
  font-weight: 700;
}
.afv .avatar {
  position: relative;
  display: block;
  overflow: hidden;
  width: 43px;
  aspect-ratio: 1;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--afv-blue-soft);
}
.afv .avatar::before,
.afv .avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: var(--afv-blue);
  transform: translateX(-50%);
}
.afv .avatar::before {
  top: 8px;
  width: 13px;
  height: 13px;
}
.afv .avatar::after {
  bottom: -7px;
  width: 31px;
  height: 25px;
}

/* Meeting preparation */
.afv .afv__calendar {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 50px;
  height: 50px;
  padding-top: 15px;
  border: 1px solid var(--afv-border);
  border-radius: 50%;
  color: var(--afv-blue);
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 61, 125, .09);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}
.afv.afv--meeting::before,
.afv.afv--meeting::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  width: 31%;
  height: 28%;
  border-top: 1px dashed #9eafd1;
}
.afv.afv--meeting::before {
  left: 20%;
  border-left: 1px dashed #9eafd1;
  border-radius: 18px 0 0;
}
.afv.afv--meeting::after {
  right: 20%;
  border-right: 1px dashed #9eafd1;
  border-radius: 0 18px 0 0;
}
.afv .ui--customer {
  top: 31%;
  left: 50%;
  width: 34%;
  padding: 18px 14px;
  text-align: center;
  transform: translateX(-50%);
}
.afv .ui--customer small {
  display: block;
  margin: 4px 0 14px;
}
.afv .ui--customer .lines i:nth-child(3) {
  background: var(--afv-blue);
}
.afv .ui--portfolio,
.afv .ui--note,
.afv .ui--tasks {
  width: 25%;
  padding: 13px 12px;
}
.afv .ui--portfolio {
  top: 34%;
  left: 4%;
}
.afv .ui--note {
  top: 63%;
  left: 4%;
}
.afv .ui--tasks {
  top: 42%;
  right: 4%;
}
.afv .ui--note .lines {
  margin-top: 11px;
}
.afv .portfolio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.afv .portfolio > i {
  display: block;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--afv-blue) 0 26%, #7293ce 26% 52%, #a9bee4 52% 76%, #dbe5f6 76%);
}
.afv .portfolio .lines {
  flex: 1;
}
.afv .task {
  position: relative;
  display: block;
  height: 13px;
  margin-top: 9px;
  padding-left: 18px;
}
.afv .task::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #b9c8e2;
  border-radius: 50%;
}
.afv .task i {
  display: block;
  width: 88%;
  height: 4px;
  margin-top: 4px;
  border-radius: 99px;
  background: #e1e6ef;
}
.afv .task.done::before {
  border-color: var(--afv-green);
  background: var(--afv-green);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Report */
.afv .report {
  top: 50%;
  left: 50%;
  width: 45%;
  padding: 22px;
  transform: translate(-50%, -50%);
}
.afv .report small,
.afv .report > span {
  display: block;
}
.afv .report strong {
  margin: 4px 0 2px;
  font: 700 clamp(15px, 4cqi, 24px) / 1.1 var(--serif, Georgia, serif);
}
.afv .report__chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 57px;
  margin: 18px 0;
}
.afv .report__chart i {
  width: 12%;
  border-radius: 3px 3px 0 0;
  background: var(--afv-blue);
}
.afv .report__chart i:nth-child(1) { height: 30%; }
.afv .report__chart i:nth-child(2) { height: 58%; }
.afv .report__chart i:nth-child(3) { height: 43%; }
.afv .report__chart i:nth-child(4) { height: 82%; }
.afv .report .status {
  margin-top: 17px;
}

/* Form */
.afv .form-card {
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: 68%;
  transform: translate(-50%, -50%);
}
.afv .form-card header {
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--afv-border);
}
.afv .form-card header span {
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--afv-blue);
  background: var(--afv-blue-soft);
  font-weight: 700;
}
.afv .form-card dl {
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
  padding: 14px 15px;
}
.afv .form-card dt {
  color: #66738a;
}
.afv .form-card dd {
  overflow: hidden;
  margin: 0;
  padding: 5px 7px;
  border: 1px solid #d5e1f5;
  border-radius: 4px;
  color: var(--afv-blue-dark);
  background: #eff4ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Customer data sources */
.afv .source {
  width: 20%;
  padding: 12px;
}
.afv .source--pms {
  top: 15%;
  left: 5%;
}
.afv .source--crm {
  bottom: 15%;
  left: 5%;
}
.afv .source--mail {
  top: 15%;
  right: 5%;
}
.afv .source--docs {
  right: 5%;
  bottom: 15%;
}
.afv .source-customer {
  top: 50%;
  left: 50%;
  width: 29%;
  padding: 17px 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}
.afv .source-customer .lines {
  margin-top: 12px;
}
.afv .source-customer em {
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 28px;
  height: 28px;
  padding-top: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--afv-green);
  font-style: normal;
  transform: translateX(-50%);
}
.afv.afv--sources::before,
.afv.afv--sources::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 27% 20%;
  border: 1px dashed #9eafd1;
  border-radius: 30%;
}
.afv .bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 30px;
  margin-top: 10px;
}
.afv .bars i {
  width: 6px;
  background: var(--afv-blue);
}
.afv .bars i:nth-child(1) { height: 35%; }
.afv .bars i:nth-child(2) { height: 75%; }
.afv .bars i:nth-child(3) { height: 55%; }
.afv .bars i:nth-child(4) { height: 95%; }
.afv .mail-icon,
.afv .doc-icon,
.afv .person-icon,
.afv .clock-icon,
.afv .mic-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 23px;
  margin-top: 11px;
  color: var(--afv-blue);
}
.afv .mail-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
}
.afv .mail-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 14px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}
.afv .doc-icon {
  width: 22px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.afv .doc-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 4px;
  left: 4px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.afv .person-icon {
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 42% 42%;
}
.afv .person-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

/* Follow-up email */
.afv .email-card {
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: 82%;
  transform: translate(-50%, -50%);
}
.afv .email-card header {
  display: flex;
  gap: 15px;
  padding: 13px;
  border-bottom: 1px solid var(--afv-border);
}
.afv .email-card header .mail-icon {
  flex: 0 0 auto;
  margin: 2px 0;
}
.afv .email-card dl {
  display: grid;
  flex: 1;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 5px;
  margin: 0;
}
.afv .email-card dt {
  color: var(--afv-muted);
}
.afv .email-card dd {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.afv .email-card > div {
  position: relative;
  padding: 18px;
}
.afv .email-card p {
  margin: 0 0 15px;
}
.afv .email-card .status {
  margin-top: 22px;
}
.afv .clock-icon {
  position: absolute;
  right: 17px;
  bottom: 14px;
  width: 35px;
  height: 35px;
  margin: 0;
  border: 1px solid var(--afv-border);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(24, 61, 125, .08);
}
.afv .clock-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 16px;
  width: 2px;
  height: 10px;
  background: currentColor;
}
.afv .clock-icon::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(25deg);
  transform-origin: left;
}

/* Meeting follow-up */
.afv .audio-card {
  top: 50%;
  left: 7%;
  width: 31%;
  padding: 20px 14px;
  text-align: center;
  transform: translateY(-50%);
}
.afv .mic-icon {
  width: 14px;
  height: 24px;
  margin: 0 auto 14px;
  border: 3px solid currentColor;
  border-radius: 9px;
}
.afv .mic-icon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 24px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%);
}
.afv .wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 39px;
}
.afv .wave i {
  width: 2px;
  border-radius: 4px;
  background: var(--afv-blue);
}
.afv .wave i:nth-child(3n + 1) { height: 35%; }
.afv .wave i:nth-child(3n + 2) { height: 80%; }
.afv .wave i:nth-child(3n) { height: 55%; }
.afv .audio-card small {
  color: var(--afv-muted);
}
.afv .flow-arrow {
  position: absolute;
  top: 48%;
  left: 41%;
  color: var(--afv-blue);
  font-size: 22px;
}
.afv .result-stack {
  position: absolute;
  top: 50%;
  right: 6%;
  display: grid;
  gap: 9px;
  width: 45%;
  transform: translateY(-50%);
}
.afv .result-stack .ui {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
}
.afv .result-stack article > b {
  color: var(--afv-blue);
  font-size: 15px;
}
.afv .result-stack article span {
  display: grid;
  flex: 1;
  gap: 6px;
}
.afv .result-stack article span > i {
  width: 75%;
}

@container (max-width: 340px) {
  .afv .ui--note {
    display: none;
  }
  .afv .ui--portfolio,
  .afv .ui--tasks {
    top: 48%;
  }
  .afv .ui--customer {
    width: 39%;
  }
  .afv .form-card {
    width: 80%;
  }
  .afv .source {
    width: 23%;
  }
  .afv .source-customer {
    width: 32%;
  }
  .afv .report {
    width: 56%;
  }
  .afv .email-card {
    width: 90%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .afv .ui,
  .afv .document,
  .afv .form-card,
  .afv .email-card,
  .afv .audio-card {
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .afv:hover .ui,
  .afv:hover .document,
  .afv:hover .form-card,
  .afv:hover .email-card,
  .afv:hover .audio-card {
    box-shadow: 0 11px 27px rgba(24, 61, 125, .13);
  }
}
