:root {
  --ink: #183128;
  --ink-soft: #52655d;
  --pine: #1f5a42;
  --pine-deep: #123a2a;
  --moss: #7e9a75;
  --tea: #b37943;
  --paper: #f7f3e9;
  --paper-deep: #eee7d8;
  --white: #fffdf8;
  --line: rgba(24, 49, 40, 0.13);
  --shadow: 0 30px 80px rgba(26, 47, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #dce5da;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(circle at 13% 15%, rgba(255, 255, 255, 0.72), transparent 31%),
    linear-gradient(135deg, #dce5da 0%, #cddbcf 48%, #e9e3d3 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  color: white;
  background: var(--pine-deep);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.tea-service-shell {
  width: min(1400px, calc(100% - 48px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(560px, 1.2fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.brand-story {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  padding: 46px 48px 38px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f7f4e9;
  background:
    linear-gradient(180deg, rgba(11, 46, 33, 0.08), rgba(9, 36, 27, 0.84)),
    url("/assets/hero-tea-mountain.svg") center/cover no-repeat,
    var(--pine-deep);
}

.brand-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.018) 23px 24px),
    linear-gradient(180deg, rgba(5, 33, 23, 0.04), rgba(5, 33, 23, 0.68));
}

.story-wash {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: -120px;
  z-index: -1;
  border-radius: 50%;
  border: 70px solid rgba(229, 210, 165, 0.1);
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025);
}

.spirit-showcase {
  position: absolute;
  top: 126px;
  right: 42px;
  z-index: 1;
  width: 154px;
  margin: 0;
  text-align: center;
  filter: drop-shadow(0 24px 30px rgba(3, 30, 20, 0.32));
}

.spirit-halo {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 221, 177, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 227, 184, 0.24), rgba(245, 227, 184, 0.04) 58%, transparent 60%),
    repeating-radial-gradient(circle, transparent 0 25px, rgba(255, 255, 255, 0.055) 26px 27px);
  animation: spirit-float 5s ease-in-out infinite;
}

.spirit-character {
  position: relative;
  width: 78px;
  height: 88px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(145deg, #fffdf4, #e7dec6);
  box-shadow: inset -10px -12px 20px rgba(79, 103, 83, 0.14), 0 16px 30px rgba(4, 33, 22, 0.22);
}

.spirit-character::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 17px;
  top: -7px;
  left: 23px;
  border-radius: 100% 0 100% 0;
  background: #87a573;
  transform: rotate(-18deg);
  box-shadow: 10px 2px 0 -3px #466b4e;
}

.spirit-eye {
  position: absolute;
  top: 38px;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #183128;
}

.spirit-eye.left {
  left: 24px;
}

.spirit-eye.right {
  right: 24px;
}

.spirit-smile {
  position: absolute;
  left: 34px;
  top: 51px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid #9d6d43;
  border-radius: 0 0 50% 50%;
}

.spirit-tail {
  position: absolute;
  bottom: -9px;
  width: 29px;
  height: 22px;
  border-radius: 0 0 60% 60%;
  background: #e9e1cc;
}

.spirit-tail.left {
  left: 1px;
  transform: rotate(13deg);
}

.spirit-tail.middle {
  left: 25px;
}

.spirit-tail.right {
  right: 1px;
  transform: rotate(-13deg);
}

.tea-cup {
  position: absolute;
  right: 4px;
  bottom: 15px;
  width: 28px;
  height: 18px;
  border: 2px solid rgba(247, 244, 233, 0.8);
  border-radius: 3px 3px 11px 11px;
}

.tea-cup::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(247, 244, 233, 0.8);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.floating-leaf {
  position: absolute;
  width: 16px;
  height: 9px;
  border-radius: 100% 0 100% 0;
  background: #d8bb79;
}

.leaf-one {
  left: 9px;
  top: 27px;
  transform: rotate(24deg);
}

.leaf-two {
  right: 13px;
  top: 42px;
  transform: rotate(145deg) scale(0.7);
}

.spirit-showcase figcaption {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.spirit-showcase figcaption strong,
.spirit-showcase figcaption span {
  display: block;
}

.spirit-showcase figcaption strong {
  margin-bottom: 3px;
  color: #f4dfac;
  font: 500 16px/1.2 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.16em;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-line .seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 12px 12px 12px 3px;
  font: 700 24px/1 "STKaiti", "KaiTi", serif;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.brand-line strong,
.brand-line small {
  display: block;
}

.brand-line strong {
  letter-spacing: 0.13em;
  font-size: 16px;
}

.brand-line small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.story-copy {
  margin: auto 0 70px;
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e9d6a8;
  font-size: 13px;
  letter-spacing: 0.26em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.story-copy h1 {
  margin: 0;
  font: 500 clamp(58px, 6vw, 94px)/0.98 "STKaiti", "KaiTi", "Songti SC", serif;
  letter-spacing: 0.06em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.story-copy .lead {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.95;
}

.story-copy .service-promise {
  max-width: 420px;
  margin: 12px 0 0;
  color: rgba(240, 221, 177, 0.76);
  font-size: 11px;
  line-height: 1.7;
}

.tea-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.tea-notes article {
  position: relative;
  padding: 20px 14px 18px;
}

.tea-notes article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.tea-notes span,
.tea-notes strong,
.tea-notes small {
  display: block;
}

.tea-notes span {
  margin-bottom: 14px;
  color: #e7c78d;
  font: 400 13px/1 Georgia, serif;
}

.tea-notes strong {
  font: 500 16px/1.3 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.06em;
}

.tea-notes small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.back-home {
  align-self: flex-start;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.back-home:hover {
  color: white;
}

.chat-card {
  min-width: 0;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 90, 66, 0.04) 28px);
}

.chat-head {
  min-height: 98px;
  padding: 24px 34px 19px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.spirit-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50% 50% 46% 46%;
  background: var(--pine);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.08), 0 8px 18px rgba(31, 90, 66, 0.18);
}

.spirit-avatar::before,
.spirit-avatar::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: white;
}

.spirit-avatar::before {
  left: 16px;
}

.spirit-avatar::after {
  right: 16px;
}

.spirit-avatar span,
.spirit-avatar i {
  position: absolute;
  bottom: -2px;
  width: 16px;
  height: 13px;
  border-radius: 0 0 50% 50%;
  background: var(--pine);
}

.spirit-avatar span {
  left: 5px;
  transform: rotate(12deg);
}

.spirit-avatar i {
  right: 5px;
  transform: rotate(-12deg);
}

.chat-head > div:nth-child(2) {
  min-width: 0;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.title-line h2 {
  margin: 0;
  font: 600 25px/1.1 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.06em;
}

.online-dot {
  padding: 3px 7px;
  color: var(--pine);
  border-radius: 999px;
  background: #e2eee5;
  font-size: 10px;
}

.chat-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trial-tag {
  margin-left: auto;
  padding: 7px 10px;
  flex: 0 0 auto;
  color: #7a5d35;
  border: 1px solid rgba(179, 121, 67, 0.24);
  border-radius: 999px;
  background: #f7edda;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.trust-strip {
  margin: 14px 34px 0;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d675b;
  border: 1px solid rgba(31, 90, 66, 0.1);
  border-radius: 12px;
  background: rgba(226, 238, 229, 0.6);
  font-size: 11px;
}

.learning-status {
  margin: 14px 34px 0;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: #5c4a2f;
  border: 1px solid rgba(179, 121, 67, 0.16);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(247, 237, 218, 0.88), rgba(255, 253, 248, 0.68));
  font-size: 11px;
}

.learning-status strong {
  font-weight: 600;
}

.learning-status small {
  color: #8d7a5d;
  font-size: 9px;
}

.learning-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b37943;
  box-shadow: 0 0 0 0 rgba(179, 121, 67, 0.34);
  animation: learning-pulse 2.2s ease-out infinite;
}

.trust-strip span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--pine);
  font-size: 10px;
}

.messages {
  flex: 1 1 auto;
  min-height: 250px;
  max-height: 390px;
  padding: 25px 34px 14px;
  overflow: auto;
  scroll-behavior: smooth;
}

.message {
  max-width: 84%;
  margin: 0 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: message-in 260ms ease both;
}

.message-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50% 50% 45% 45%;
  background: var(--pine);
  font: 500 13px/1 "STKaiti", "KaiTi", serif;
}

.message > div:last-child {
  min-width: 0;
}

.message p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(34, 58, 48, 0.06);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message small {
  display: block;
  margin: 7px 4px 0;
  color: #829087;
  font-size: 10px;
}

.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.user-message .message-mark {
  color: var(--pine-deep);
  background: #dfd1b7;
}

.user-message p {
  color: white;
  border: 0;
  border-radius: 16px 4px 16px 16px;
  background: var(--pine);
}

.user-message small {
  text-align: right;
}

.typing p {
  color: var(--ink-soft);
}

.quick-area {
  padding: 4px 34px 14px;
}

.quick-title {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.quick-title span {
  color: var(--tea);
  font: 600 12px/1 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.12em;
}

.quick-title small {
  color: #8a968f;
  font-size: 10px;
}

.quick-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-list::-webkit-scrollbar {
  display: none;
}

.quick-list button {
  padding: 9px 12px;
  flex: 0 0 auto;
  color: #445c51;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 11px;
  transition: 160ms ease;
}

.quick-list button:hover,
.quick-list button:focus-visible {
  color: white;
  border-color: var(--pine);
  background: var(--pine);
  outline: none;
}

.handoff-banner {
  margin: 0 34px 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(179, 121, 67, 0.24);
  border-radius: 16px;
  background: #fbf1df;
  animation: message-in 240ms ease both;
}

.handoff-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--tea);
  font: 600 13px/1 "STKaiti", "KaiTi", serif;
}

.handoff-banner strong,
.handoff-banner p {
  display: block;
  margin: 0;
}

.handoff-banner strong {
  color: #65451f;
  font-size: 12px;
}

.handoff-banner p {
  margin-top: 3px;
  color: #826949;
  font-size: 10px;
  line-height: 1.5;
}

.handoff-banner button {
  padding: 8px 11px;
  color: white;
  border: 0;
  border-radius: 10px;
  background: #8b6032;
  cursor: pointer;
  font-size: 11px;
}

.chat-composer {
  margin-top: auto;
  padding: 14px 34px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}

.chat-composer > label {
  display: block;
  margin-bottom: 8px;
  color: #617069;
  font-size: 11px;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.composer-row textarea {
  width: 100%;
  min-height: 62px;
  max-height: 150px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid rgba(31, 90, 66, 0.2);
  border-radius: 14px;
  outline: none;
  background: white;
  font-size: 14px;
  line-height: 1.55;
  transition: 160ms ease;
}

.composer-row textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(31, 90, 66, 0.09);
}

.composer-row button {
  min-width: 92px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  border: 0;
  border-radius: 14px;
  background: var(--pine);
  box-shadow: 0 10px 22px rgba(31, 90, 66, 0.2);
  cursor: pointer;
  transition: 160ms ease;
}

.composer-row button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--pine-deep);
}

.composer-row button:disabled {
  opacity: 0.56;
  cursor: wait;
}

.composer-row svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-composer > p {
  margin: 8px 2px 0;
  color: #8b958f;
  font-size: 10px;
}

.honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.lead-drawer {
  position: absolute;
  z-index: 10;
  inset: 126px 34px auto;
  max-height: calc(100vh - 70px);
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(31, 90, 66, 0.14);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 26px 70px rgba(20, 45, 34, 0.28);
  animation: drawer-in 220ms ease both;
}

.chat-card {
  position: relative;
}

.lead-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.lead-head span {
  color: var(--tea);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.lead-head h3 {
  margin: 5px 0 0;
  font: 600 24px/1.2 "STKaiti", "KaiTi", serif;
}

.lead-head button {
  width: 34px;
  height: 34px;
  color: #5d6a64;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.lead-drawer label > span {
  display: block;
  margin: 0 0 7px;
  color: #53645c;
  font-size: 11px;
}

.lead-drawer label small {
  color: #9aa29e;
  font-weight: 400;
}

.lead-drawer label b {
  color: #9b572f;
  font-weight: 500;
}

.lead-fields {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
}

.lead-drawer input[type="text"],
.lead-drawer textarea {
  width: 100%;
  margin-bottom: 13px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: white;
  font-size: 12px;
}

.lead-drawer input:focus,
.lead-drawer textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(31, 90, 66, 0.08);
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 1px 0 14px;
}

.consent-line input {
  margin: 3px 0 0;
  accent-color: var(--pine);
}

.consent-line span {
  margin: 0 !important;
  line-height: 1.6;
}

.lead-submit {
  width: 100%;
  padding: 12px;
  color: white;
  border: 0;
  border-radius: 11px;
  background: var(--pine);
  cursor: pointer;
  font-weight: 600;
}

.lead-submit:disabled {
  opacity: 0.56;
}

.lead-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--pine);
  font-size: 11px;
  text-align: center;
}

.chat-footer {
  padding: 11px 34px 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #929b96;
  border-top: 1px solid rgba(24, 49, 40, 0.06);
  font-size: 9px;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes spirit-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes learning-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(179, 121, 67, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 121, 67, 0);
  }
}

@media (max-width: 980px) {
  .tea-service-shell {
    width: min(760px, calc(100% - 28px));
    grid-template-columns: 1fr;
  }

  .brand-story {
    min-height: auto;
    padding: 28px 30px;
  }

  .story-copy {
    margin: 70px 0 40px;
  }

  .spirit-showcase {
    top: 104px;
    right: 36px;
  }

  .story-copy h1 {
    font-size: 64px;
  }

  .tea-notes,
  .back-home {
    display: none;
  }

  .chat-card {
    min-height: 720px;
  }

  .lead-drawer {
    inset: auto 18px 18px;
  }
}

@media (max-width: 560px) {
  body {
    background: var(--white);
  }

  .tea-service-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-story {
    min-height: 190px;
    padding: calc(20px + env(safe-area-inset-top)) 20px 24px;
  }

  .brand-line .seal {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand-line strong {
    font-size: 13px;
  }

  .brand-line small {
    font-size: 9px;
  }

  .story-copy {
    margin: 34px 0 0;
    padding-right: 88px;
  }

  .eyebrow {
    display: none;
  }

  .story-copy h1 {
    font-size: 41px;
    line-height: 1;
  }

  .story-copy .lead {
    margin-top: 11px;
    font-size: 11px;
    line-height: 1.65;
  }

  .story-copy .service-promise {
    display: none;
  }

  .spirit-showcase {
    top: 64px;
    right: 9px;
    width: 92px;
    transform: scale(0.58);
    transform-origin: top right;
  }

  .spirit-showcase figcaption {
    display: none;
  }

  .chat-card {
    min-height: calc(100vh - 190px);
  }

  .chat-head {
    min-height: 78px;
    padding: 16px 18px 13px;
  }

  .spirit-avatar {
    width: 42px;
    height: 42px;
  }

  .spirit-avatar::before,
  .spirit-avatar::after {
    top: 17px;
  }

  .spirit-avatar::before {
    left: 13px;
  }

  .spirit-avatar::after {
    right: 13px;
  }

  .title-line h2 {
    font-size: 21px;
  }

  .chat-head p {
    max-width: 210px;
    font-size: 10px;
  }

  .trial-tag {
    display: none;
  }

  .trust-strip {
    margin: 10px 16px 0;
    padding: 8px 10px;
    font-size: 9px;
  }

  .learning-status {
    margin: 10px 16px 0;
    padding: 8px 10px;
    grid-template-columns: auto 1fr;
    font-size: 9px;
  }

  .learning-status small {
    display: none;
  }

  .messages {
    min-height: 245px;
    max-height: 370px;
    padding: 18px 16px 8px;
  }

  .message {
    max-width: 93%;
    gap: 8px;
  }

  .message p {
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.65;
  }

  .message-mark {
    width: 27px;
    height: 27px;
  }

  .quick-area {
    padding: 4px 16px 12px;
  }

  .handoff-banner {
    margin: 0 16px 12px;
    grid-template-columns: auto 1fr;
  }

  .handoff-banner button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-composer {
    padding: 12px 16px 14px;
  }

  .composer-row {
    gap: 8px;
  }

  .composer-row textarea {
    min-height: 58px;
    font-size: 13px;
  }

  .composer-row button {
    min-width: 60px;
    padding: 0 14px;
  }

  .composer-row button span {
    display: none;
  }

  .chat-footer {
    padding: 10px 16px calc(11px + env(safe-area-inset-bottom));
  }

  .lead-drawer {
    position: fixed;
    inset: auto 0 0;
    max-height: 86vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .lead-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
