/* CSS illustrations of the messaging, group chat and calling interfaces. */
/* A code-rendered illustration of the current three-tab messaging workspace. */
.workspace {
  border: 1px solid #c7cad1;
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  font-size: 11px;
}
.window-bar {
  background: var(--canvas);
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
}
.traffic-lights {
  display: flex;
  gap: 5px;
}
.traffic-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}
.traffic-lights i:nth-child(2) {
  background: #ffbd2e;
}
.traffic-lights i:nth-child(3) {
  background: #28c840;
}
.window-hint {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}
.workspace-body {
  display: grid;
  grid-template-columns: 56px 174px minmax(0, 1fr);
  min-height: 360px;
}
.sidebar {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 15px 6px 10px;
  border-right: 1px solid var(--border);
  background: var(--canvas);
}
.sidebar > img {
  border-radius: 8px;
  margin-bottom: 12px;
  width: 28px;
  height: 28px;
}
.sidebar-item {
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 9px;
  border-radius: 8px;
}
.sidebar-item .icon {
  width: 19px;
  height: 19px;
}
.sidebar-item.selected {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.sidebar-item.bottom {
  margin-top: auto;
}
.conversation-list {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 15px 7px;
}
.conversation-list h3 {
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}
.conversation-list h3 span {
  font-size: 19px;
  color: var(--muted);
  font-weight: 400;
}
.search {
  color: var(--muted);
  background: var(--inset);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 13px 4px 15px;
  padding: 7px;
  border-radius: 6px;
  font-size: 10px;
}
.search .icon {
  width: 12px;
  height: 12px;
}
.conversation {
  display: flex;
  position: relative;
  gap: 7px;
  padding: 12px 6px;
  border-radius: 6px;
}
.conversation.selected {
  background: var(--accent-soft);
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
}
.avatar .icon {
  width: 17px;
  height: 17px;
}
.lavender {
  color: #4c6fff;
  background: #d7deff;
}
.blue {
  color: #2563eb;
  background: #dbeafe;
}
.coral {
  color: #bd4052;
  background: #ffe4e8;
}
.conversation strong {
  font-size: 10px;
  font-weight: 600;
}
.conversation p {
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.conversation small {
  font-size: 7px;
  color: var(--muted);
  position: absolute;
  right: 5px;
  top: 14px;
}
.chat-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-header {
  min-height: 60px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.chat-header strong {
  font-size: 12px;
}
.chat-header small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  color: var(--muted);
}
.chat-header small i {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #22c55e;
}
.chat-header > .icon {
  color: var(--accent);
  width: 19px;
  height: 19px;
}
.chat-messages {
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  flex: 1;
}
.chat-date {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 8px;
  margin-bottom: 3px;
}
.bubble {
  max-width: 96%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
}
.incoming {
  background: var(--inset);
}
.outgoing {
  align-self: flex-end;
  background: var(--accent);
  color: white;
}
.outgoing > span {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 3px;
  font-size: 7px;
  margin-top: 3px;
}
.outgoing .icon {
  width: 10px;
  height: 10px;
}
.file-bubble {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px;
}
.file-bubble > .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.file-bubble strong {
  font-size: 9px;
  font-weight: 500;
}
.file-bubble small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.voice {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-size: 9px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.wave i {
  width: 2px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
}
.wave i:nth-child(2n) {
  height: 12px;
}
.wave i:nth-child(3n) {
  height: 18px;
}
.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  color: var(--muted);
  font-size: 9px;
}
.chat-composer > span:first-child {
  font-size: 18px;
}
.send {
  margin-left: auto;
  background: var(--accent);
  color: white;
  border-radius: 5px;
  padding: 4px;
}
.send .icon {
  width: 12px;
  height: 12px;
}
/* Mobile platform illustrations use the same app tokens and icon family as the Mac preview. */
.phone {
  display: flex;
  flex-direction: column;
  width: min(258px, 100%);
  height: 510px;
  border: 6px solid #24272c;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
}
.phone--ios {
  background: #f2f2f7;
}
.phone--android {
  border-radius: 28px;
}
.phone-status {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 18px;
  font-size: 10px;
  font-weight: 600;
}
.phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 18px;
  border-radius: 14px;
  background: #17181c;
}
.phone--android .phone-camera {
  width: 10px;
  height: 10px;
  top: 13px;
}
.phone-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-signal {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 9px;
}
.phone-signal i {
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}
.phone-signal i:nth-child(2) {
  height: 5px;
}
.phone-signal i:nth-child(3) {
  height: 7px;
}
.phone-signal i:nth-child(4) {
  height: 9px;
}
.phone-battery {
  position: relative;
  width: 17px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.phone-battery::before {
  content: '';
  position: absolute;
  inset: 1px 3px 1px 1px;
  background: currentColor;
  border-radius: 1px;
}
.phone-battery::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 4px;
  right: -3px;
  top: 1px;
  background: currentColor;
  border-radius: 1px;
}
.phone-home-area {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  background: var(--surface);
}
.phone-home-area > span {
  height: 4px;
  width: 78px;
  border-radius: 4px;
  background: #17181c;
}
.phone--android .phone-home-area > span {
  height: 3px;
  width: 62px;
}
.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}
.phone-back {
  display: inline-flex;
  transform: rotate(180deg);
}
.phone-back .icon {
  width: 18px;
  height: 18px;
}
.phone-chat-header .avatar {
  width: 29px;
  height: 29px;
}
.phone-chat-header strong {
  font-size: 12px;
  font-weight: 600;
}
.phone-chat-header small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.phone-chat-header small i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
}
.phone-chat-header > .icon {
  margin-left: auto;
  width: 19px;
  height: 19px;
  color: var(--accent);
}
.phone-messages {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  gap: 15px;
  padding: 17px 12px;
}
.phone-messages .chat-date {
  margin-bottom: 1px;
}
.phone-messages .bubble {
  font-size: 10px;
  padding: 10px;
}
.phone-messages .file-bubble {
  padding: 12px;
}
.phone-messages .voice {
  font-size: 9px;
  gap: 10px;
}
.phone-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 10px 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
}
.phone-composer > span:first-child {
  font-size: 20px;
}
.phone-composer .send {
  padding: 6px;
}

/* iPhone demonstrates group media and quoted replies; Android demonstrates voice calling. */
.phone-group-header {
  background: #f2f2f7;
  min-height: 52px;
}
.phone-group-header > strong {
  font-size: 12px;
}
.phone-group-header .avatar .icon {
  width: 18px;
  height: 18px;
}
.phone-more {
  margin-left: auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
}
.group-messages {
  gap: 10px;
  padding: 12px 10px;
  background: var(--surface);
}
.group-message {
  display: flex;
  gap: 7px;
  max-width: 100%;
}
.group-message > .avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 10px;
  margin-top: 15px;
}
.group-message > div {
  min-width: 0;
}
.group-author {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
}
.group-media {
  border-radius: 8px;
  overflow: hidden;
  width: 165px;
  max-width: 100%;
  background: var(--inset);
}
.group-photo {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: cover;
}
.group-media > span {
  display: block;
  padding: 7px 9px;
  font-size: 9px;
}
.group-message .bubble {
  max-width: 100%;
  font-size: 9px;
  padding: 9px;
}
.group-reply {
  align-self: flex-end;
}
.phone-messages .group-reply {
  font-size: 9px;
}
.quoted-message {
  border-left: 2px solid #c5ccff;
  padding: 3px 7px;
  margin-bottom: 8px;
  background: #405de0;
  border-radius: 0 4px 4px 0;
}
.quoted-message strong {
  font-size: 8px;
  font-weight: 600;
}
.quoted-message p {
  margin-top: 3px;
  font-size: 8px;
}
.phone--ios .phone-composer {
  background: var(--surface);
  margin-top: 7px;
}
.phone--call {
  background: #070a16;
  color: #f4f6ff;
}
.phone--call .phone-camera {
  background: #000;
}
.call-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
.call-preview-header strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.call-preview-header small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: #a8b0c8;
  font-variant-numeric: tabular-nums;
}
.call-preview-header > span {
  font-size: 19px;
}
.call-preview-person {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;
  padding: 12px 0 18px;
}
.call-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #c5ccff;
  background: #1b2458;
  font-size: 33px;
  margin-bottom: 19px;
}
.call-preview-person > strong {
  font-size: 21px;
  font-weight: 500;
}
.call-preview-person > p {
  font-size: 10px;
  color: #a8b0c8;
  margin-top: 10px;
}
.call-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin-top: 23px;
}
.call-wave i {
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: #9aa8ff;
}
.call-wave i:nth-child(2n) {
  height: 12px;
}
.call-wave i:nth-child(3n) {
  height: 18px;
}
.call-wave i:nth-child(7) {
  height: 24px;
  background: #ff8b72;
}
.call-preview-controls {
  display: flex;
  align-items: start;
  justify-content: space-evenly;
  margin: 0 12px 24px;
  padding: 12px 4px;
  background: #171c2c;
  border-radius: 24px;
}
.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.call-control > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #242a3e;
}
.call-control .icon {
  width: 19px;
  height: 19px;
}
.call-control small {
  font-size: 8px;
  color: #a8b0c8;
}
.call-control--active > span {
  background: #e6eaff;
  color: #2f4ae0;
}
.call-control--end > span {
  background: #e11d48;
  color: #fff;
}
.phone--call .phone-home-area {
  background: #070a16;
}
.phone--call .phone-home-area > span {
  background: #f4f6ff;
}
