.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #fff8f4, #ffede5);
}

.chat-nav {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
}

.chat-nav h1 {
  margin: 0;
  font-size: 17px;
  text-align: center;
}

.chat-back {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.chat-quota {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #c56a45;
  font-size: 11px;
  font-weight: 700;
}

.chat-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 14px 12px;
}

.msg { display: flex; margin-top: 10px; }
.msg--agent { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }
.msg__bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}
.msg--user .msg__bubble {
  background: #ff7a45;
  color: #fff;
}
.msg--choices {
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  padding: 10px 12px;
  background: #fff;
  color: #9a4e32;
  font-size: 14px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.08);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px 22px;
}
.composer input {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #f3d3c4;
  border-radius: 14px;
  background: #fff;
  font: inherit;
}
.composer button {
  padding: 0 14px;
  background: #ff7a45;
  color: #fff;
  font-weight: 700;
}

.xh-page {
  padding: 4px 14px 24px;
  background: #fff5f0;
}
.xh-nav {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 44px;
}
.xh-nav h1 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; }
.xh-nav a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #333;
  text-decoration: none;
}
.xh-card {
  margin-top: 4px;
  padding: 22px 16px 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(196, 112, 76, 0.08);
}
.xh-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.xh-brand img { width: 36px; height: 36px; object-fit: contain; }
.xh-brand strong { font-size: 22px; letter-spacing: 0.5px; }
.xh-cover {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.xh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.xh-head h2 { margin: 0; font-size: 22px; }
.xh-head span { color: #b9a59c; font-size: 14px; }
.xh-card p { margin: 10px 0 0; color: #4d4d4d; font-size: 15px; line-height: 1.7; }
.xh-next {
  width: 100%;
  margin-top: 22px;
  border-radius: 999px;
  min-height: 52px;
  background: #73c04b;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.xh-question { margin-top: 12px; }
.xh-question textarea {
  width: 100%;
  min-height: 96px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #f3d3c4;
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}
.xh-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #8a6a5c;
  font-size: 12px;
}

.chat-lock__ver {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff2e8;
  color: #b08968;
  font-size: 10px;
  font-weight: 700;
}

.chat-lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 28px 46px;
  text-align: center;
}

.chat-lock__ico {
  width: 88px;
  height: 88px;
  margin-bottom: 2px;
}

.chat-lock h2 {
  margin: 0;
  font-size: 19px;
  color: #5c4033;
}

.chat-lock p {
  margin: 0;
  max-width: 250px;
  color: #8a6a5c;
  font-size: 13px;
  line-height: 1.7;
}

.chat-lock__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  margin-top: 14px;
}

.chat-lock__links a {
  display: block;
  padding: 11px 16px;
  border-radius: 999px;
  background: #ff7a45;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.chat-lock__links a + a {
  background: #fff;
  border: 1px solid #f3d3c4;
  color: #b0603d;
}
