/* Chat page. Leans on hifi.css tokens (paper/ink palette, IBM Plex). */
.chat-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}
.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--pad-x, 40px) 12px;
}
.chat-top__name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.chat-main {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px var(--pad-x, 40px) 24px;
}
.chat-empty { margin-top: 18vh; text-align: center; }
.chat-greet { font-size: 20px; font-weight: 500; margin-bottom: 22px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chat-chip {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 13px;
  padding: 8px 14px;
  background: transparent;
  border: var(--stroke, 1px) solid var(--muted-2);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.msg { margin: 14px 0; line-height: 1.55; font-size: 15.5px; }
.msg p { margin: 0 0 10px; }
.msg p:last-child { margin-bottom: 0; }
.msg--user {
  margin-left: auto;
  max-width: 85%;
  width: fit-content;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 14px;
}
.msg--ai { color: var(--ink-2); }
.msg__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: chatBlink 1s steps(1) infinite;
}
@keyframes chatBlink { 50% { opacity: 0; } }
.chat-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px var(--pad-x, 40px) 22px;
  background: var(--paper);
  border-top: var(--stroke, 1px) solid var(--paper-3);
}
.chat-bar input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: var(--stroke-2, 1.5px) solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
}
.chat-bar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-send {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
}
@media (max-width: 640px) {
  .chat-top, .chat-main, .chat-bar { padding-left: 18px; padding-right: 18px; }
  .chat-empty { margin-top: 10vh; }
}
.chat-top__updated { font-size: 11.5px; color: var(--muted); }
