/* Screen 2 — messaging phone mock. Similar-but-distinct from WhatsApp; no brand assets. */
.chat-header {
  flex-shrink: 0;
  background: #1f7a6d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
}
.chat-header .back { font-size: 18px; opacity: .9; }
.chat-header .avatar-c {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e7f3f1; color: #1f7a6d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.chat-header .who { line-height: 1.2; }
.chat-header .who .n { font-weight: 600; font-size: 15px; }
.chat-header .who .s { font-size: 11.5px; opacity: .85; }
.chat-header .icons { margin-left: auto; display: flex; gap: 16px; opacity: .9; }

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  background: #efe7dd;
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bubble {
  max-width: 78%;
  padding: 7px 10px 5px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  animation: pop .15s ease;
  position: relative;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.in  { align-self: flex-start; background: #ffffff; border-top-left-radius: 2px; }
.bubble.out { align-self: flex-end;   background: #d7f2cf; border-top-right-radius: 2px; }
.bubble .stamp {
  display: flex; justify-content: flex-end; align-items: center; gap: 3px;
  font-size: 10px; color: #8a9096; margin-top: 3px;
}
.bubble .ticks { color: #9ab0c4; font-size: 11px; letter-spacing: -2px; }
.bubble .link-ish { color: #0a6ed1; text-decoration: underline; }

.sys-chip {
  align-self: center;
  background: #e2ded6;
  color: #5c6166;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  margin: 6px 0;
  animation: pop .2s ease;
}
.day-chip {
  align-self: center;
  background: #e8e2d8;
  color: #6e7377;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 8px;
}

.typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  display: none;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.typing.show { display: flex; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b6bcc2;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f4f1ec;
}
.input-bar .fake-input {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  padding: 9px 14px;
  font-size: 13px;
  color: #9aa0a6;
}
.input-bar .mic {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1f7a6d; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* live-mode input (hidden unless armed) */
.live-input { display: none; flex: 1; }
.live-input input {
  width: 100%; border: none; border-radius: 18px;
  padding: 9px 14px; font-size: 13px; outline: none;
}
body.live .fake-input { display: none; }
body.live .live-input { display: block; }
