/* CERO SENTADILLAS — chat · design system handoff §3 (vinho marca · verde CTA) */
:root {
  --bg: #faf7f5; --card: #fff; --tx: #2b1a1f; --tx-soft: #6f5a60;
  --line: rgba(123,45,62,.14);
  --brand: #7B2D3E; --brand-soft: rgba(123,45,62,.08);
  --go: #1B7A4D; --go-2: #14603c;
  --maxw: 448px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--tx);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
.hl { color: var(--brand); font-weight: 700; }
.hl-strong { color: var(--brand); font-weight: 800; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-soft); z-index: 60; }
.progress__fill { height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }

.chathead {
  position: sticky; top: 4px; z-index: 50;
  background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-top: 4px;
}
.chathead__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.chathead__id { display: flex; flex-direction: column; line-height: 1.25; }
.chathead__name { font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.chathead__status { font-size: 12px; color: var(--go); }
.chathead, .chat__msgs { max-width: var(--maxw); margin-left: auto; margin-right: auto; width: 100%; }

.chat { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.chat__msgs { padding: 16px 12px 28px; display: flex; flex-direction: column; gap: 10px; }

.grp { display: flex; align-items: flex-end; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--ghost { background: transparent; }
.bubble {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 14px; max-width: 82%;
  font-size: 14.5px; line-height: 1.5;
  box-shadow: 0 2px 8px -4px rgba(123,45,62,.15);
  animation: pop .25s ease;
}
.bubble--img { padding: 4px; }
.bubble--img img { display: block; max-width: min(280px, 100%); border-radius: 13px; }
.bubble--typing { display: flex; gap: 4px; padding: 14px 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-soft); opacity: .4; animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }

.guest {
  align-self: flex-end;
  background: var(--brand); color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 11px 14px; max-width: 82%;
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  animation: pop .25s ease;
}

.choices { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 0 38px; }
.choices.out { opacity: 0; transition: opacity .25s ease; }
.choice {
  background: var(--card); border: 1.5px solid var(--brand); color: var(--brand);
  border-radius: 14px; padding: 13px 16px;
  font-size: 14.5px; font-weight: 700; text-align: left;
  opacity: 0; animation: rise .3s ease forwards;
}
.choice:active { background: var(--brand-soft); }
.choice--go {
  display: block; background: var(--go); border-color: var(--go); color: #fff;
  text-decoration: none; text-align: center; text-transform: uppercase;
  font-weight: 800; letter-spacing: .3px; font-size: 15.5px; padding: 16px;
  box-shadow: 0 10px 26px -10px rgba(27,122,77,.55);
}
.choice--go:active { background: var(--go-2); }

@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }
