.product-mockup {
  --product-canvas: #eef1f3;
  --product-panel: #fff;
  --product-ink: #17211d;
  --product-muted: #485952;
  --product-border: #d9e2de;
  --product-green: #14683f;
  --product-soft-green: #e0f0e6;
  container: infootball-mockup / inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 16px;
  background: var(--product-canvas);
  color: var(--product-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.product-mockup *,
.product-mockup *::before,
.product-mockup *::after {
  box-sizing: inherit;
}

.product-mockup strong {
  font-weight: 600;
}

.product-mockup small {
  display: block;
  color: var(--product-muted);
  font-size: 0.88em;
}

.product-top,
.product-person,
.product-profile-meta,
.product-event-footer,
.product-composer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-top {
  min-height: 46px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--product-border);
  background: var(--product-panel);
  font-size: 14px;
}

.product-top--person {
  min-height: 54px;
}

.product-top--person small {
  font-size: 12px;
}

.product-grid-icon,
.product-calendar-icon {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--product-green);
}

.product-grid-icon {
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 6px 6px no-repeat;
}

.product-calendar-icon {
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.product-calendar-icon::before {
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1px solid currentColor;
  content: '';
}

.product-directory {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1fr);
  min-height: 210px;
}

.product-directory-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--product-border);
  background: var(--product-panel);
}

.product-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  margin-bottom: 4px;
  padding: 5px 10px;
  border: 1px solid var(--product-border);
  border-radius: 6px;
  background: #fafcfb;
  color: var(--product-muted);
}

.product-search-icon {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 2px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.product-search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 4px;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
  content: '';
}

.product-avatar {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #dfeec9;
  color: #375a23;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.product-avatar--blue {
  background: #e0edf5;
  color: #265475;
}

.product-avatar--large {
  width: 45px;
  height: 45px;
  font-size: 15px;
}

.product-person {
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.product-person--selected {
  background: var(--product-soft-green);
}

.product-profile-area {
  display: grid;
  min-width: 0;
  padding: 17px;
  place-items: center;
}

.product-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 330px;
  padding: 14px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: var(--product-panel);
}

.product-profile-name {
  display: grid;
  justify-items: start;
  color: var(--product-muted);
  overflow-wrap: anywhere;
}

.product-profile-name strong {
  color: var(--product-ink);
  font-size: 17px;
}

.product-profile-meta {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--product-border);
}

.product-tag,
.product-action {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.product-tag {
  background: var(--product-soft-green);
  color: var(--product-green);
}

.product-action {
  padding: 5px 9px;
  background: var(--product-green);
  color: #fff;
}

.product-chat {
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 13px clamp(10px, 4cqi, 20px);
}

.product-chat-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 2px;
  color: var(--product-muted);
  font-size: 11px;
}

.product-chat-day::before,
.product-chat-day::after {
  flex: 1;
  border-top: 1px solid var(--product-border);
  content: '';
}

.product-bubble {
  justify-self: start;
  width: fit-content;
  max-width: 86%;
  padding: 8px 11px;
  border: 1px solid var(--product-border);
  border-radius: 10px 10px 10px 3px;
  background: var(--product-panel);
  overflow-wrap: anywhere;
}

.product-bubble--outgoing {
  justify-self: end;
  border-color: var(--product-green);
  border-radius: 10px 10px 3px 10px;
  background: var(--product-green);
  color: #fff;
}

.product-bubble-time {
  display: block;
  margin: 2px 0 0;
  color: var(--product-muted);
  font-size: 10px;
  text-align: right;
}

.product-bubble--outgoing .product-bubble-time {
  color: #d5efe0;
}

.product-composer {
  justify-content: space-between;
  min-height: 42px;
  margin: 0;
  padding: 7px 14px;
  border-top: 1px solid var(--product-border);
  background: var(--product-panel);
  color: var(--product-muted);
}

.product-send-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 5px;
  background: var(--product-soft-green);
  color: var(--product-green);
  font-weight: 700;
}

.product-event {
  padding: 13px clamp(10px, 4cqi, 18px);
}

.product-event-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: var(--product-panel);
}

.product-event-title {
  font-size: 18px;
  line-height: 1.2;
}

.product-event-datetime {
  width: 100%;
  padding: 7px 10px;
  border-inline-start: 2px solid var(--product-green);
  border-radius: 0 6px 6px 0;
  background: var(--product-canvas);
}

.product-event-card p {
  margin: 0;
  color: var(--product-muted);
}

.product-event-footer {
  flex-wrap: wrap;
  width: 100%;
  padding-top: 9px;
  border-top: 1px solid var(--product-border);
}

.product-tag--status {
  margin-inline-start: auto;
}

@container infootball-mockup (max-width: 380px) {
  .product-directory {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .product-directory-list {
    padding-bottom: 0;
    border-right: 0;
    background: none;
  }

  .product-search {
    margin: 0;
    background: var(--product-panel);
  }

  .product-person {
    display: none;
  }

  .product-profile-area {
    padding: 10px 11px 12px;
  }

  .product-profile {
    max-width: none;
  }
}
