:root {
  --gold: #f5c544;
  --gold-dark: #d5a100;
  --ink: #222222;
  --muted: #777777;
  --line: #ece3ce;
  --surface: #ffffff;
  --page: #fbf3dc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #e9e9e9;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100vw, 528px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .88) 470px),
    var(--page);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.auth-view {
  display: none;
}

.phone-shell:not(.is-logged-in) [data-auth-view="logged-out"],
.phone-shell.is-logged-in [data-auth-view="logged-in"] {
  display: block;
}

.phone-shell.is-logged-in {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .82) 440px),
    var(--page);
}

.phone-shell.is-chatting {
  background: #f8f8f8;
}

.phone-shell.is-chatting > .hero,
.phone-shell.is-chatting > .auth-view,
.phone-shell.is-chatting > .tabbar {
  display: none;
}

.onboarding {
  position: fixed;
  inset: 0;
  left: 50%;
  z-index: 20;
  width: min(100vw, 528px);
  min-height: 100vh;
  overflow: hidden;
  background: #fbf5e5;
  transform: translateX(-50%);
}

.onboarding.is-hidden {
  display: none;
}

.onboard-slide {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 100vh;
  padding: 52px 22px 30px;
  background: #fbf5e5;
}

.onboard-slide.is-active {
  display: block;
  animation: onboardSceneIn .62s cubic-bezier(.2, .8, .2, 1) both;
}

.onboard-slide.is-active .onboard-mini-actions,
.onboard-slide.is-active .onboard-skip,
.onboard-slide.is-active .onboard-dots,
.onboard-slide.is-active .onboard-pill,
.onboard-slide.is-active h2,
.onboard-slide.is-active > p,
.onboard-slide.is-active .onboard-card {
  animation: onboardItemIn .7s cubic-bezier(.2, .8, .2, 1) both;
}

.onboard-slide.is-active .onboard-cover-copy {
  animation: onboardCoverCopyIn .7s cubic-bezier(.2, .8, .2, 1) .14s both;
}

.onboard-slide.is-active .onboard-next,
.onboard-slide.is-active .onboard-cover-action {
  animation: onboardButtonIn .7s cubic-bezier(.2, .8, .2, 1) .48s both;
}

.onboard-slide.is-active .onboard-mini-actions,
.onboard-slide.is-active .onboard-dots {
  animation-delay: .06s;
}

.onboard-slide.is-active .onboard-pill {
  animation-delay: .14s;
}

.onboard-slide.is-active h2,
.onboard-slide.is-active > p {
  animation-delay: .22s;
}

.onboard-slide.is-active .onboard-card {
  animation-delay: .34s;
}

@keyframes onboardSceneIn {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes onboardCoverCopyIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes onboardButtonIn {
  from {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes onboardItemIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboard-cover {
  padding: 0;
  background: url("./assets/app-cover.jpg") center top / cover no-repeat;
}

.onboard-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .52);
}

.onboard-cover .onboard-mini-actions,
.onboard-cover-copy,
.onboard-cover-action {
  z-index: 1;
}

.onboard-cover-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 48%;
  text-align: center;
  transform: translateY(-50%);
}

.onboard-cover-copy h1 {
  margin: 0 0 20px;
  color: #1f1f1f;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0;
}

.onboard-cover-copy p {
  margin: 9px 0 0;
  color: #697386;
  font-size: 20px;
  line-height: 1.5;
}

.onboard-cover-action {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: min(44vw, 184px);
  height: 54px;
  border: 1px solid #e0b222;
  border-radius: 28px;
  background: #262626;
  color: #ffd65a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.onboard-mini-actions {
  position: absolute;
  top: 26px;
  right: 8px;
  display: flex;
  align-items: center;
  width: 116px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
}

.onboard-mini-actions span {
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: #151515;
}

.onboard-mini-actions i {
  width: 1px;
  height: 20px;
  margin: 0 9px;
  background: rgba(0, 0, 0, .18);
}

.onboard-mini-actions b {
  width: 13px;
  height: 3px;
  border-radius: 3px;
  background: #151515;
}

.onboard-mini-actions em {
  width: 18px;
  height: 18px;
  border: 3px solid #151515;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .72);
}

.onboard-skip {
  position: absolute;
  top: 52px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #8c887d;
  font-size: 14px;
}

.onboard-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 10px;
  margin-bottom: 35px;
}

.onboard-dots span {
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background: #e6e8e9;
}

.onboard-dots span.active {
  width: 13px;
  background: linear-gradient(90deg, #f1aa13, #ffd85b);
}

.onboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 12px;
  border-radius: 9px;
  background: #fff1bb;
  color: #8a6800;
  font-size: 13px;
  font-weight: 700;
}

.onboard-info h2 {
  margin: 18px 0 11px;
  color: #292929;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 800;
}

.onboard-info > p {
  margin: 0;
  color: #666057;
  font-size: 16px;
  line-height: 1.7;
}

.onboard-card {
  margin-top: 27px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(178, 138, 43, .12);
}

.onboard-card header {
  padding: 13px 16px;
  background: linear-gradient(90deg, #ffd65a, #f3aa10);
  color: #6b4a00;
  font-size: 14px;
  font-weight: 800;
}

.lesson-box,
.bubble,
.onboard-card h3,
.onboard-card > p,
.onboard-card ol {
  margin-left: 14px;
  margin-right: 14px;
}

.lesson-box {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #ead9aa;
  border-radius: 8px;
  background: #fff9eb;
}

.lesson-box small {
  display: block;
  margin-bottom: 7px;
  color: #e2a000;
  font-weight: 800;
}

.lesson-box strong {
  color: #282828;
  font-size: 15px;
}

.bubble {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #4c3b0c;
  font-size: 14px;
  line-height: 1.55;
}

.bubble.user {
  background: linear-gradient(90deg, #ffd65a, #eda90c);
}

.bubble.ai,
.bubble.note {
  background: #f1ede3;
  color: #47423a;
}

.bubble.ai strong {
  display: block;
  margin-bottom: 5px;
  color: #df9a00;
  font-size: 12px;
}

.bubble.note {
  margin-bottom: 14px;
  background: #f7f3ea;
  color: #4f4a42;
}

.onboard-card h3 {
  margin-top: 15px;
  color: #7d5400;
  font-size: 18px;
  line-height: 1.45;
}

.onboard-card > p {
  margin-top: 16px;
  color: #666057;
  font-size: 14px;
  line-height: 1.65;
}

.onboard-card ol {
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
}

.onboard-card li {
  padding: 10px 0;
  border-top: 1px dashed #e5d7af;
  color: #4b463d;
  font-size: 14px;
}

.onboard-card li span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f6c84d;
  color: #7c5a00;
  font-size: 12px;
  font-weight: 800;
}

.onboard-next {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: min(73vw, 302px);
  height: 58px;
  border-radius: 32px;
  font-size: 19px;
  font-weight: 800;
  transform: translateX(-50%);
}

.onboard-next.outline {
  border: 2px solid #ffc52c;
  background: #fff;
  color: #292929;
}

.onboard-next.filled {
  border: 0;
  background: linear-gradient(90deg, #ffd95e, #eda509);
  color: #5a3f00;
}

.hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .15) 0, rgba(251, 243, 220, .3) 54%, rgba(251, 243, 220, .96) 100%),
    url("./assets/app-cover.jpg") center 8% / 250px auto no-repeat;
}

.phone-shell.is-logged-in .hero {
  height: 270px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1) 0, rgba(251, 243, 220, .2) 48%, rgba(251, 243, 220, .98) 100%),
    url("./assets/app-cover.jpg") center 4% / 292px auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--page) 0, rgba(251, 243, 220, 0) 19%, rgba(251, 243, 220, 0) 81%, var(--page) 100%),
    linear-gradient(180deg, rgba(251, 243, 220, 0) 45%, var(--page) 100%);
  pointer-events: none;
}

.status-bar {
  height: env(safe-area-inset-top);
  min-height: 2px;
}

.topbar {
  display: grid;
  grid-template-columns: 96px 1fr 126px;
  align-items: center;
  height: 72px;
  padding: 0 8px 0 14px;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.mini-program-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  width: 119px;
  height: 32px;
  padding: 0 10px;
  border-radius: 18px;
  background: rgba(255, 246, 213, .92);
  box-shadow: inset 0 0 0 1px rgba(211, 164, 25, .14);
}

.mini-program-actions button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 28px;
  border: 0;
  background: transparent;
}

.mini-program-actions button:first-child {
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  width: 31px;
}

.mini-program-actions span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #151515;
}

.mini-program-actions i {
  width: 1px;
  height: 21px;
  margin: 0 8px;
  background: rgba(0, 0, 0, .14);
}

.mini-program-actions b {
  width: 13px;
  height: 3px;
  border-radius: 4px;
  background: #171717;
}

.mini-program-actions em {
  width: 18px;
  height: 18px;
  border: 3px solid #171717;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff6d7;
}

.coach-portrait {
  position: absolute;
  left: 50%;
  top: 0;
  width: 248px;
  height: 190px;
  object-fit: cover;
  object-position: 50% 18%;
  opacity: 0;
  transform: translateX(-50%);
}

.phone-shell.is-logged-in .coach-portrait {
  top: 8px;
  width: 248px;
  height: 170px;
}

.advisor-card {
  position: relative;
  z-index: 2;
  margin: -115px 24px 0;
  padding: 9px 12px;
  border: 1px solid #eed084;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 18px rgba(176, 130, 32, .1);
}

.phone-shell.is-logged-in .advisor-card {
  margin: -160px 29px 0;
  padding: 11px 14px 14px;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(172, 122, 20, .08);
}

.advisor-head {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.phone-shell.is-logged-in .advisor-head {
  min-height: 39px;
  margin-bottom: 10px;
}

.advisor-head img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border-radius: 50%;
  border: 1px solid #e5dfd0;
  object-fit: cover;
  object-position: 50% 18%;
}

.phone-shell.is-logged-in .advisor-head img {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

.advisor-head div {
  flex: 1;
  min-width: 0;
  color: #6b6b6b;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-shell.is-logged-in .advisor-head div {
  font-size: 16px;
}

.advisor-head strong {
  color: #292929;
  font-weight: 700;
}

.bell-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #f7b321;
}

.bell-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.solo-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  width: calc(100% - 68px);
  min-height: 86px;
  margin: 24px auto 0;
  padding: 15px 18px 15px 14px;
  border: 1px solid #f4bd28;
  border-radius: 10px;
  background: #fff4c9;
  color: inherit;
  text-align: left;
}

.solo-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4054;
  box-shadow: 0 0 0 3px rgba(255, 64, 84, .14);
}

.solo-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ffe59a;
  font-size: 22px;
}

.solo-copy {
  min-width: 0;
}

.solo-copy strong,
.solo-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.solo-copy strong {
  color: #9a6900;
  font-size: 17px;
  line-height: 1.35;
}

.solo-copy span {
  margin-top: 3px;
  color: #7f7663;
  font-size: 13px;
}

.service-card {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  align-items: center;
  width: 100%;
  min-height: 110px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.service-card-primary {
  border-color: #f2bf2f;
  background: #fff6cc;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 27px;
}

.diamond {
  background: #ffe39c;
  color: #1296db;
}

.cloud {
  background: #eef3f8;
  color: #ded4f4;
}

.service-copy {
  min-width: 0;
}

.service-copy strong {
  display: block;
  margin-bottom: 2px;
  color: #242424;
  font-size: 20px;
  line-height: 1.25;
}

.service-copy span,
.service-copy em {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.service-copy span {
  color: #6c6c6c;
}

.service-copy em,
.service-card b {
  color: #c49a00;
}

.service-card b {
  font-size: 25px;
  font-weight: 500;
}

.content {
  position: relative;
  z-index: 1;
  padding: 17px 24px 112px;
}

.phone-shell.is-logged-in .content {
  padding: 28px 29px 112px;
}

.feature-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 6px 8px;
}

.feature-title h2 {
  margin: 0;
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.feature-title p {
  margin: 0;
  color: #9f9a8f;
  font-size: 13px;
}

.daily-card {
  padding: 13px 17px 14px;
  border-left: 2px solid #eda900;
  border-radius: 9px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 10px 22px rgba(178, 138, 43, .09);
}

.daily-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-card header span {
  color: #b47a00;
  font-size: 15px;
  font-weight: 800;
}

.daily-card header em {
  padding: 3px 9px;
  border-radius: 12px;
  background: #fff3c8;
  color: #bd8a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.daily-card h3 {
  margin: 14px 0 18px;
  color: #4c4c4c;
  font-size: 16px;
  font-weight: 500;
}

.daily-card a {
  color: #c49400;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.recommend-title {
  margin-top: 27px;
}

.recommend-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-right: -24px;
  padding: 0 24px 6px 0;
  scrollbar-width: none;
}

.recommend-scroll::-webkit-scrollbar {
  display: none;
}

.recommend-scroll button {
  flex: 0 0 auto;
  max-width: 245px;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid #f5ca55;
  border-radius: 18px;
  background: #fff5cf;
  color: #a66c00;
  font-size: 13px;
  text-align: left;
}

.recommend-scroll button::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff5664;
  vertical-align: 2px;
}

.section-title,
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h2,
.history-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.section-title h2 span {
  color: #f0ae18;
}

.section-title p {
  margin: 0;
  color: #a69c88;
  font-size: 14px;
  font-style: italic;
}

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 22px;
}

.prompt-grid button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.prompt-grid button::first-letter {
  color: #f0ae18;
}

.lesson-card {
  min-height: 130px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(178, 138, 43, .08);
}

.lesson-card span {
  display: block;
  color: #b78b00;
  font-weight: 700;
  font-size: 16px;
}

.lesson-card h3 {
  margin: 15px 0 16px;
  color: #555555;
  font-size: 20px;
  font-weight: 500;
}

.lesson-card a {
  color: #c9a100;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.history-head {
  margin: 24px 0 12px;
}

.history-head button {
  border: 0;
  background: transparent;
  color: #9e9e9e;
  font-size: 16px;
}

.chat-row {
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  align-items: center;
  width: 100%;
  min-height: 65px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 5px 14px rgba(161, 130, 52, .06);
  text-align: left;
}

.chat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff9df;
  color: #9f9f9f;
}

.chat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.chat-copy {
  min-width: 0;
}

.chat-copy span {
  display: block;
  overflow: hidden;
  color: #4d4d4d;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-copy em {
  margin-right: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #eef5ff;
  color: #5d85bf;
  font-style: normal;
}

.chat-copy time {
  display: block;
  margin-top: 4px;
  color: #9b9b9b;
  font-size: 14px;
}

.chat-row b {
  color: #aaa;
  font-size: 24px;
  font-weight: 400;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(100vw, 528px);
  min-height: 55px;
  padding: 7px 24px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid #e9e9e9;
  background: rgba(255, 255, 255, .98);
  transform: translateX(-50%);
}

.tabbar button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #9a9a9a;
}

.tabbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar span {
  font-size: 12px;
}

.tabbar .active {
  color: #e5ad00;
}

.chat-page {
  position: relative;
  display: none;
  min-height: 100vh;
  background: #f8f8f8;
}

.phone-shell.is-chatting .chat-page {
  display: block;
}

.chat-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 126px;
  align-items: center;
  height: 68px;
  padding: 0 8px 0 4px;
  background: #f7cc43;
}

.chat-topbar h1 {
  margin: 0;
  text-align: center;
  color: #171717;
  font-size: 15px;
  font-weight: 700;
}

.native-chat {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: #fafafa;
}

.native-chat-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 60px 14px 124px;
}

.dify-message {
  max-width: 86%;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.dify-message.user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: #ffd965;
  color: #4c3700;
}

.dify-message.assistant {
  margin-left: 44px;
  margin-right: auto;
  border: 1px solid #ececec;
  border-bottom-left-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .035);
}

.dify-message.loading {
  color: #7a879a;
}

.chat-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #1d1d1d;
}

.chat-back svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-floating-back {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  z-index: 4;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.chat-message-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.chat-message-row > img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  object-position: 50% 18%;
}

.chat-welcome-card {
  max-width: 305px;
  padding: 14px 13px 11px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .04);
}

.chat-welcome-card p {
  margin: 0 0 27px;
  color: #494949;
  font-size: 17px;
  line-height: 1.45;
}

.chat-welcome-card p span {
  color: #555;
  font-weight: 400;
}

.chat-choice-box {
  padding: 12px;
  border: 1px solid #f0c658;
  border-radius: 7px;
  background: #fff9e9;
}

.chat-choice-box strong {
  display: block;
  margin-bottom: 10px;
  color: #9c6800;
  font-size: 14px;
}

.chat-choice-box button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  width: 100%;
  min-height: 62px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #efd17d;
  border-radius: 7px;
  background: #fff;
  color: #444;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.chat-choice-box button em {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f6c73b;
  color: #564000;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chat-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  width: 160px;
  margin: 42px auto 0;
  color: #b2b2b2;
  text-align: center;
}

.chat-divider span {
  height: 1px;
  margin-top: 11px;
  background: #d9d9d9;
}

.chat-divider p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.chat-divider em {
  font-style: normal;
}

.chat-add {
  position: absolute;
  right: 17px;
  bottom: 82px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #d1d1d1;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.chat-composer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: block;
  width: min(100vw, 528px);
  min-height: 82px;
  padding: 10px 22px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #e4e4e4;
  background: #fff;
  transform: translateX(-50%);
}

.chat-input-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.send-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 18px;
}

.chat-input {
  display: block;
  min-width: 0;
}

.chat-input input {
  width: 100%;
  height: 72px;
  padding: 0 18px;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  outline: none;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 17px;
}

.chat-input input::placeholder {
  color: #c7c7c7;
}

.send-button {
  background: #fafafa;
  color: #f1f1f1;
}

.send-button:not(:disabled) {
  background: #ffd457;
  color: #fff;
}

.send-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 430px) {
  .onboard-slide {
    padding-left: 22px;
    padding-right: 22px;
  }

  .onboard-info h2 {
    font-size: 27px;
  }

  .topbar {
    grid-template-columns: 96px 1fr 126px;
    padding-left: 8px;
  }

  .topbar h1 {
    font-size: 14px;
  }

  .mini-program-actions {
    width: 119px;
    height: 32px;
    padding: 0 10px;
  }

  .mini-program-actions i {
    margin: 0 4px;
  }

  .advisor-card {
    margin-left: 24px;
    margin-right: 24px;
  }

  .content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }
}
