#pg-assistant {
  background: #f2eee6;
}

.asst {
  min-height: calc(100vh - var(--tab-h) - var(--safe-b));
  display: flex;
  flex-direction: column;
  padding: 10px 12px calc(var(--tab-h) + var(--safe-b) + 12px);
  background: linear-gradient(180deg, #f2eee6 0, #f7f7f5 100%);
}

.assistant-bw {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.assistant-bw img {
  display: block;
  width: 100%;
  aspect-ratio: 1176 / 220;
  object-fit: cover;
}

.asst-head {
  max-width: 760px;
  width: 100%;
  margin: 0 auto 10px;
  padding: 2px 2px 0;
}

.asst-head h1 {
  color: #263224;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.asst-head p {
  margin-top: 4px;
  color: #6a6254;
  font-size: 13px;
  line-height: 1.55;
}

.asst-chat {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
  min-height: 220px;
  overflow: auto;
}

.asst-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.asst-line.me {
  flex-direction: row-reverse;
}

.asst-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(72, 60, 38, 0.1);
  box-shadow: 0 4px 12px rgba(33, 29, 21, 0.08);
  color: #273226;
  font-size: 13px;
  font-weight: 900;
}

.asst-avatar.brand-avatar {
  padding: 0;
  background: #fff;
}

.asst-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asst-bubble {
  max-width: min(76%, 520px);
  border-radius: 5px 16px 16px 16px;
  padding: 10px 12px;
  line-height: 1.7;
  color: #263224;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 6px 14px rgba(33, 29, 21, 0.06);
}

.asst-line.bot .asst-bubble {
  background: #fff;
  border: 1px solid rgba(72, 60, 38, 0.08);
}

.asst-line.me .asst-bubble {
  color: #10230e;
  background: #95ec69;
  border-radius: 16px 5px 16px 16px;
}

.asst-prompts {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 6px;
}

.asst-prompts button {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(72, 60, 38, 0.12);
}

.asst-input {
  position: sticky;
  bottom: calc(var(--tab-h) + var(--safe-b));
  width: 100%;
  max-width: 760px;
  display: flex;
  gap: 8px;
  margin: auto auto 0;
  padding: 9px 0 4px;
  border-top: 1px solid rgba(72, 60, 38, 0.08);
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.asst-input input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(72, 60, 38, 0.16);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(47, 39, 23, 0.08);
}

.asst-input button {
  width: 66px;
  border-radius: 8px;
  color: #fff;
  background: #07c160;
  font-weight: 800;
}
