:root {
  --paper: #f7f1ed;
  --card: #fffdfc;
  --wine: #7f3348;
  --wine-dark: #612638;
  --blush: #e8c9ce;
  --blush-soft: #f1e1e2;
  --cocoa: #302627;
  --muted: #766b69;
  --line: #e7dcd7;
  --success: #596d5c;
  --shadow: 0 22px 55px rgba(83, 45, 53, 0.08);
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--cocoa);
  background:
    linear-gradient(rgba(127, 51, 72, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(127, 51, 72, 0.22);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  position: absolute;
  top: 0;
  right: 10px;
  left: auto;
  width: clamp(188px, calc(60vw - 47px), 340px);
  height: clamp(188px, calc(60vw - 47px), 340px);
  border-radius: 0;
  background: url("assets/furry-heart-v6-warm-edge.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 26px rgba(127, 51, 72, 0.1));
  opacity: 0.82;
  transform: none;
  transform-origin: 50% 52%;
}

.ambient-two {
  top: 480px;
  right: calc(50% + 90px);
  width: 220px;
  height: 220px;
  background: rgba(237, 219, 205, 0.48);
}

.page-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 18px calc(36px + env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -1px;
}

.brand-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.ghost-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.member-link {
  padding: 9px 5px;
  color: var(--wine);
  font-size: 11px;
  text-decoration: none;
}

.ghost-button {
  padding: 9px 13px;
  border: 1px solid rgba(127, 51, 72, 0.25);
  border-radius: 999px;
  color: var(--wine);
  font-size: 12px;
}

.hero {
  padding: 44px 5px 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 11px;
  letter-spacing: 1.2px;
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: var(--wine);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -2.5px;
}

.hero h1 em {
  color: var(--wine);
  font-style: normal;
}

.hero p {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.composer-card {
  padding: 24px 20px 20px;
  border: 1px solid rgba(127, 51, 72, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 252, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 15px;
  background: #f3ebe8;
}

.mode-button {
  min-height: 41px;
  border: 0;
  border-radius: 11px;
  color: #8f817e;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-button.is-active {
  color: var(--wine);
  background: var(--card);
  box-shadow: 0 5px 16px rgba(83, 45, 53, 0.08);
}

.mode-panel {
  animation: fadeIn 220ms ease both;
}

.section-heading,
.result-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading > div,
.result-intro > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.6px;
}

.section-heading h2,
.result-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.text-button {
  padding: 4px 0;
  color: var(--wine);
  font-size: 12px;
}

.textarea-wrap {
  margin-top: 17px;
  padding: 15px 15px 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.textarea-wrap:focus-within {
  border-color: rgba(127, 51, 72, 0.45);
  box-shadow: 0 0 0 4px rgba(127, 51, 72, 0.06);
}

.textarea-wrap.has-error {
  border-color: #b65b5b;
}

textarea {
  display: block;
  width: 100%;
  min-height: 108px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--cocoa);
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: #afa3a0;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9a8f8c;
  font-size: 10px;
  line-height: 1.5;
}

.textarea-meta strong {
  font-weight: 500;
}

.choice-group {
  margin-top: 24px;
}

.choice-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.choice-label span {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.choice-label small {
  color: #a09491;
  font-size: 10px;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.choice-chip,
.goal-chip {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-chip {
  min-height: 39px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.choice-chip:hover,
.goal-chip:hover {
  transform: translateY(-1px);
}

.choice-chip.is-active {
  border-color: rgba(127, 51, 72, 0.6);
  color: var(--wine);
  background: #fbf3f4;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.goal-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 9px 11px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.goal-chip.is-active {
  border-color: rgba(127, 51, 72, 0.55);
  color: var(--wine);
  background: #fbf3f4;
}

.auto-goal {
  grid-column: 1 / -1;
  min-height: 58px;
  padding-right: 15px;
}

.goal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.goal-copy strong {
  color: inherit;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.goal-copy small {
  overflow: hidden;
  color: #a09491;
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-goal .goal-copy small {
  font-size: 9px;
}

.chip-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 13px;
}

.auto-goal .chip-icon {
  font-size: 9px;
  font-style: italic;
}

.context-details {
  margin-top: 18px;
  border-top: 1px solid #eee5e1;
  border-bottom: 1px solid #eee5e1;
}

.context-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.context-details summary::-webkit-details-marker {
  display: none;
}

.context-details summary > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.context-details summary strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.context-details summary small {
  color: #a09491;
  font-size: 9px;
}

.details-plus {
  color: var(--wine);
  font-size: 16px;
  transition: transform 180ms ease;
}

.context-details[open] .details-plus {
  transform: rotate(45deg);
}

.context-content {
  padding: 0 0 15px;
}

.context-content p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
}

.scene-heading {
  padding: 2px 1px 19px;
}

.scene-heading .step-number {
  display: block;
  margin-bottom: 10px;
}

.scene-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

.scene-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.scene-card {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  padding: 16px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--cocoa);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.scene-card:hover {
  border-color: rgba(127, 51, 72, 0.35);
  box-shadow: 0 10px 24px rgba(83, 45, 53, 0.07);
  transform: translateY(-2px);
}

.scene-card::after {
  position: absolute;
  right: -23px;
  bottom: -31px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--blush-soft);
  border-radius: 50%;
  content: "";
}

.scene-card > span {
  display: block;
  margin-bottom: 12px;
  color: #aa7b86;
  font-size: 8px;
  letter-spacing: 0.4px;
}

.scene-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.scene-card small {
  display: block;
  max-width: 105px;
  margin-top: 9px;
  color: #928582;
  font-size: 8px;
  line-height: 1.55;
}

.scene-card i {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 11px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: var(--blush-soft);
  font-size: 10px;
  font-style: normal;
}

.scene-note {
  margin: 14px 0 0;
  color: #a19592;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.form-error {
  min-height: 18px;
  margin: 12px 2px 2px;
  color: #a24646;
  font-size: 11px;
}

.entry-privacy {
  margin: 6px 2px 0;
  color: #8d8582;
  font-size: 12px;
  line-height: 1.65;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.legal-page {
  width: min(100% - 34px, 760px);
  margin: 0 auto;
  padding: 46px 0 80px;
}

.legal-page header a { color: #823d52; text-decoration: none; }
.legal-page h1 { margin: 38px 0 12px; font-family: var(--serif); font-size: clamp(34px, 8vw, 58px); font-weight: 500; }
.legal-page .legal-updated { color: #948a87; font-size: 13px; }
.legal-card { margin-top: 28px; border: 1px solid rgba(130, 61, 82, .15); border-radius: 24px; background: rgba(255,255,255,.68); padding: clamp(22px, 5vw, 38px); }
.legal-card section + section { margin-top: 28px; }
.legal-card h2 { margin: 0 0 9px; color: #633344; font-size: 18px; }
.legal-card p, .legal-card li { color: #6f6664; font-size: 14px; line-height: 1.85; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 57px;
  padding: 0 19px 0 21px;
  border: 0;
  border-radius: 16px;
  color: #fffaf8;
  background: var(--wine);
  box-shadow: 0 12px 30px rgba(127, 51, 72, 0.2);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.4px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(127, 51, 72, 0.24);
}

.primary-button:active {
  transform: translateY(0);
}

.button-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
}

.prototype-note,
.service-note {
  margin: 11px 0 0;
  color: #a19592;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.loading-panel {
  margin: 26px 0;
  padding: 38px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.8);
  text-align: center;
}

.thinking-orbit {
  position: relative;
  width: 36px;
  height: 36px;
  margin: 0 auto 15px;
  border: 1px solid var(--blush);
  border-radius: 50%;
  animation: rotate 1.7s linear infinite;
}

.thinking-orbit span {
  position: absolute;
  top: -3px;
  left: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wine);
}

.loading-panel p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}

.loading-lines {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
}

.loading-lines i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blush);
  animation: blink 1s infinite alternate;
}

.loading-lines i:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-lines i:nth-child(3) {
  animation-delay: 0.4s;
}

.results-section {
  padding-top: 42px;
  animation: rise 480ms ease both;
}

.result-context {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush-soft);
  font-size: 9px;
}

.result-lead {
  margin: 12px 0 18px 31px;
  color: var(--muted);
  font-size: 11px;
}

.intent-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(127, 51, 72, 0.24);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 201, 206, 0.42), transparent 38%),
    #fcf6f6;
  box-shadow: 0 14px 35px rgba(83, 45, 53, 0.07);
}

.intent-card::after {
  position: absolute;
  top: -37px;
  right: -40px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(127, 51, 72, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.intent-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intent-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.intent-symbol {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: var(--blush-soft);
  font-family: Georgia, serif;
  font-size: 14px;
}

.intent-kicker {
  display: block;
  margin-bottom: 3px;
  color: #aa7784;
  font-size: 8px;
  letter-spacing: 0.7px;
}

.intent-title-wrap h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.probability-tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(127, 51, 72, 0.12);
  border-radius: 999px;
  color: #a2737d;
  background: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

.intent-summary {
  margin-top: 20px;
}

.intent-summary > span {
  display: block;
  margin-bottom: 7px;
  color: #a2737d;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.intent-summary p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.intent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid rgba(127, 51, 72, 0.1);
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.intent-toggle i {
  font-size: 14px;
  font-style: normal;
  transition: transform 180ms ease;
}

.intent-toggle[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.intent-details {
  padding-top: 7px;
  animation: fadeIn 180ms ease both;
}

.intent-detail-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid rgba(127, 51, 72, 0.08);
}

.intent-detail-row:first-child {
  border-top: 0;
}

.intent-detail-row > span {
  color: #a2737d;
  font-size: 9px;
  line-height: 1.65;
}

.intent-detail-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.intent-detail-row.is-observation {
  margin: 2px -9px -4px;
  padding: 11px 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.reply-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 3px 14px;
  color: #9f918e;
  font-size: 9px;
}

.reply-divider::before,
.reply-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.reply-divider span {
  flex: 0 0 auto;
}

.conversation-shell {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(127, 51, 72, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 252, 0.96), rgba(248, 239, 238, 0.92));
  box-shadow: 0 18px 44px rgba(74, 52, 54, 0.08);
}

.conversation-shell-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid rgba(127, 51, 72, 0.12);
  background: rgba(255, 253, 252, 0.72);
}

.conversation-eyebrow {
  color: var(--wine);
  font-size: 7px;
  letter-spacing: 1.5px;
}

.conversation-shell-heading h3 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.conversation-shell-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.conversation-round-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush-soft);
  font-size: 8px;
}

.reply-list {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  max-height: 620px;
  padding: 18px 15px 2px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(127, 51, 72, 0.22) transparent;
  scrollbar-width: thin;
}

.chat-turn {
  padding-bottom: 18px;
}

.chat-turn + .chat-turn {
  padding-top: 18px;
  border-top: 1px dashed rgba(127, 51, 72, 0.16);
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-message + .chat-message {
  margin-top: 12px;
}

.chat-message.is-outgoing {
  justify-content: flex-end;
}

.chat-message-body {
  min-width: 0;
  max-width: min(82%, 430px);
}

.chat-message.is-outgoing .chat-message-body {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.chat-speaker {
  display: block;
  margin: 0 3px 5px;
  color: #9b8985;
  font-size: 8px;
}

.chat-message.is-outgoing .chat-speaker {
  color: var(--wine);
}

.chat-avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(127, 51, 72, 0.13);
  border-radius: 50%;
  color: var(--cocoa);
  background: #fff;
  font-family: var(--serif);
  font-size: 10px;
  box-shadow: 0 5px 14px rgba(74, 52, 54, 0.07);
}

.chat-avatar.is-so {
  border-color: var(--wine);
  color: #fff9f6;
  background: var(--wine);
  font-family: Georgia, serif;
  font-size: 8px;
}

.chat-bubble {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px 16px 16px;
  color: var(--cocoa);
  background: #fff;
  font-size: 12px;
  line-height: 1.65;
  box-shadow: 0 8px 20px rgba(74, 52, 54, 0.055);
}

.reply-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 16px 5px 16px 16px;
  color: #fff9f6;
  background:
    linear-gradient(145deg, #8a3e53, var(--wine));
  box-shadow: 0 12px 26px rgba(91, 43, 56, 0.18);
}

.reply-card.is-recommended {
  border-color: transparent;
}

.reply-card.is-recommended::before {
  display: none;
}

.reply-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reply-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffe7eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.reply-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffc6d0;
}

.recommended-tag {
  color: rgba(255, 249, 246, 0.72);
  font-size: 9px;
}

.reply-text {
  margin: 11px 0 13px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.reply-reason {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 249, 246, 0.18);
  color: rgba(255, 249, 246, 0.72);
  font-size: 9px;
  line-height: 1.65;
}

.reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.copy-button,
.regenerate-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff9f6;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 10px;
}

.regenerate-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.copy-button:hover,
.regenerate-button:hover {
  transform: translateY(-1px);
}

.regenerate-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.copy-button svg,
.regenerate-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.continue-card {
  padding: 15px;
  border-top: 1px solid rgba(127, 51, 72, 0.14);
  background: rgba(255, 253, 252, 0.78);
}

.continue-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.continue-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 5px var(--blush-soft);
}

.continue-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
}

.continue-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.continue-input-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.continue-input-row input {
  min-width: 0;
  flex: 1;
  height: 43px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  color: var(--cocoa);
  background: #fff;
  font-size: 12px;
}

.continue-input-row input:focus {
  border-color: rgba(127, 51, 72, 0.5);
}

.continue-input-row button {
  width: 58px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--wine);
  cursor: pointer;
  font-size: 11px;
}

.continue-input-row button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.continue-status {
  min-height: 15px;
  margin: 8px 0 0;
  color: var(--success);
  font-size: 10px;
}

.consult-banner {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 24px 20px 20px;
  border-radius: 22px;
  color: #fff9f6;
  background: var(--cocoa);
}

.consult-banner::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(232, 201, 206, 0.25);
  border-radius: 50%;
  content: "";
}

.consult-copy,
.consult-button {
  position: relative;
  z-index: 1;
}

.consult-kicker {
  color: var(--blush);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.consult-copy h3 {
  margin: 12px 0 9px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.consult-copy p {
  margin: 0;
  color: #cbbfbb;
  font-size: 10px;
  line-height: 1.7;
}

.consult-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 201, 206, 0.28);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.consult-button span {
  font-family: var(--serif);
  font-size: 13px;
}

.consult-button small {
  color: var(--blush);
  font-size: 9px;
}

.promise-section {
  padding: 66px 8px 48px;
  text-align: center;
}

.promise-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.7;
}

.promise-items {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
}

.promise-items span:not(:last-child)::after {
  margin-left: 10px;
  color: var(--blush);
  content: "·";
}

footer {
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

footer p {
  margin: 8px 0 0;
  color: #a29692;
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(48, 38, 39, 0.56);
  backdrop-filter: blur(5px);
  animation: fadeIn 180ms ease both;
}

.consult-modal {
  position: relative;
  width: min(100%, 430px);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 30px 22px 22px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(29, 16, 20, 0.28);
  animation: slideUp 260ms ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f3ece8;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.modal-kicker {
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 1px;
}

.consult-modal h2 {
  margin: 13px 35px 10px 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
}

.modal-intro {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.service-facts {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  margin: 21px 0;
  padding: 16px 10px;
  border-radius: 16px;
  background: #f8f1ef;
}

.service-facts div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.service-facts strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.service-facts span {
  color: var(--muted);
  font-size: 9px;
}

.service-facts i {
  width: 1px;
  height: 25px;
  background: var(--line);
}

.fit-list {
  margin-bottom: 20px;
}

.fit-list h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 14px;
}

.fit-list p {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 7px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.fit-list p span {
  color: #b58691;
  font-family: Georgia, serif;
  font-size: 9px;
}

.modal-action {
  min-height: 53px;
}

.consult-intake {
  display: block;
}

.intake-back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.intake-fields {
  display: grid;
  gap: 13px;
  margin: 21px 0 19px;
}

.intake-field {
  display: grid;
  gap: 7px;
}

.intake-field > span,
.material-scope legend {
  color: var(--cocoa);
  font-size: 10px;
  font-weight: 600;
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--cocoa);
  background: #fff;
  outline: 0;
  font-size: 11px;
  line-height: 1.65;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.intake-field input {
  min-height: 45px;
  padding: 10px 12px;
}

.intake-field textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.intake-field input:focus,
.intake-field textarea:focus {
  border-color: #c795a1;
  box-shadow: 0 0 0 3px rgba(127, 51, 72, 0.08);
}

.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: #b5aaa7;
}

.material-scope {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.material-scope legend {
  margin-bottom: 9px;
}

.material-scope label {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.material-scope input,
.consent-check input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--wine);
}

.material-scope label:has(input:checked) {
  border-color: #c795a1;
  background: #fcf6f5;
}

.material-scope span {
  display: grid;
  gap: 3px;
}

.material-scope strong {
  font-size: 10px;
}

.material-scope small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.material-preview {
  margin: 15px 0;
  padding: 13px;
  border-radius: 14px;
  background: #f8f1ef;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.preview-heading strong {
  font-size: 10px;
}

.preview-heading span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--wine);
  background: #f0dfe1;
  font-size: 8px;
}

.material-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.consent-check {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--cocoa);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.7;
}

.privacy-tip {
  margin: 8px 0 0;
  color: #9c8e8a;
  font-size: 8px;
  line-height: 1.6;
}

.intake-error {
  min-height: 16px;
  margin: 8px 0 4px;
  font-size: 9px;
}

.consult-success {
  padding: 24px 4px 4px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 21px;
}

.consult-success h2 {
  margin: 0 0 10px;
}

.consult-success p {
  margin: 0 auto 21px;
  max-width: 320px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.secondary-button {
  width: 100%;
  min-height: 49px;
  border: 1px solid #d7c4c3;
  border-radius: 13px;
  color: var(--wine);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.consult-success small {
  display: block;
  margin-top: 10px;
  color: #a19592;
  font-size: 8px;
}

.demo-toast {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--success);
  background: #edf1ec;
  font-size: 10px;
  line-height: 1.6;
}

.copy-toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--cocoa);
  box-shadow: 0 12px 35px rgba(48, 38, 39, 0.23);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 200ms ease, transform 200ms ease;
  font-size: 11px;
  white-space: nowrap;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.modal-open {
  overflow: hidden;
}

/* V2：一步直达，结果后微调 */
.quick-start-card {
  padding: 20px 18px 17px;
}

.entry-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.entry-label {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 1px;
}

.entry-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.entry-textarea {
  margin-top: 12px;
  padding: 13px 14px 9px;
  border-color: #ddc7c3;
  border-radius: 19px;
}

.entry-textarea textarea {
  height: 118px;
  min-height: 118px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
}

.entry-textarea textarea::placeholder {
  color: #b5aaa7;
  font-family: var(--serif);
}

.entry-button {
  margin-top: 2px;
}

.entry-reassurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.entry-reassurance i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--wine);
}

.auto-judge-note {
  display: grid;
  gap: 5px;
  margin-top: 21px;
  padding: 16px;
  border: 1px dashed #dccbc6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.auto-judge-note strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.auto-judge-note span {
  color: #9b8f8c;
  font-size: 8px;
}

.is-single-reply .reply-text {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.75;
}

.direction-panel {
  margin-top: 17px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 252, 0.68);
}

.direction-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.direction-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.direction-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.direction-heading > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #a09491;
  font-size: 8px;
}

.direction-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.direction-choices button {
  min-width: 0;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cocoa);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.direction-choices button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.direction-choices button strong,
.direction-choices button span {
  display: block;
}

.direction-choices button strong {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.direction-choices button span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.direction-choices button:hover {
  border-color: rgba(127, 51, 72, 0.35);
  transform: translateY(-1px);
}

.direction-choices button.is-active {
  border-color: var(--wine);
  color: var(--wine);
  background: var(--blush-soft);
}

.direction-choices button.is-active span {
  color: #8e5b68;
}

.direction-status {
  min-height: 14px;
  margin: 8px 1px 0;
  color: var(--success);
  font-size: 8px;
}

.custom-direction-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
  padding: 12px 2px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.custom-direction-toggle b {
  font-size: 14px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.custom-direction-toggle[aria-expanded="true"] b {
  transform: rotate(45deg);
}

.custom-direction-panel {
  margin-top: 12px;
}

.custom-direction-panel[hidden] {
  display: none;
}

.custom-direction-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--cocoa);
  font-size: 9px;
  font-weight: 600;
}

.custom-direction-panel textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cocoa);
  background: #fff;
  font: inherit;
  font-size: 9px;
  line-height: 1.65;
}

.custom-direction-panel textarea:focus {
  outline: 2px solid rgba(127, 51, 72, 0.12);
  border-color: var(--wine);
}

.custom-direction-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 2px 10px;
  color: var(--muted);
  font-size: 8px;
}

.custom-direction-meta b {
  font-weight: 400;
}

.custom-direction-submit {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--wine);
  border-radius: 12px;
  color: #fff;
  background: var(--wine);
  cursor: pointer;
  font-size: 9px;
}

.custom-direction-status {
  min-height: 14px;
  margin: 8px 1px 0;
  color: var(--success);
  font-size: 8px;
}

.member-after-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 252, 0.78);
}

.member-after-value h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.member-after-value p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.member-after-value a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush-soft);
  font-size: 9px;
  text-decoration: none;
}

.member-after-value a span {
  font-family: Georgia, serif;
  font-size: 13px;
}

@media (max-width: 355px) {
  .conversation-shell-heading {
    padding-right: 14px;
    padding-left: 14px;
  }

  .conversation-shell-heading p {
    max-width: 190px;
  }

  .reply-list,
  .continue-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .chat-message {
    gap: 6px;
  }

  .chat-avatar {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .chat-message-body {
    max-width: 84%;
  }

  .reply-card {
    padding: 12px;
  }

  .reply-text {
    font-size: 14px;
  }

  .continue-input-row {
    gap: 6px;
  }

  .continue-input-row button {
    width: 52px;
  }

  .direction-choices button {
    padding-inline: 9px;
  }

  .custom-direction-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .member-after-value {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-after-value a {
    align-self: flex-end;
  }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  from { opacity: 0.25; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-1px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 760px) {
  .page-shell {
    padding-top: 12px;
    padding-bottom: 60px;
  }

  .hero {
    padding-top: 62px;
  }

  .modal-backdrop {
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-shell {
    width: min(100%, 540px);
    padding-top: 34px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-name {
    font-size: 32px;
  }

  .brand-note {
    font-size: 10px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 34px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero p {
    margin-top: 30px;
    font-size: 18px;
  }

  .ambient-one {
    top: 20px;
    right: auto;
    left: calc(50% - 26px);
    width: 480px;
    height: 480px;
    opacity: 0.86;
  }
}

@media (max-width: 355px) {
  .page-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  .composer-card {
    padding-right: 15px;
    padding-left: 15px;
  }

  .header-actions {
    gap: 3px;
  }

  .member-link {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }

  .ghost-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .goal-chip {
    padding: 0 10px;
  }

  .promise-items {
    gap: 6px;
    font-size: 8px;
  }

  .promise-items span:not(:last-child)::after {
    margin-left: 6px;
  }
}

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