:root {
  --v11-night: #171323;
  --v11-night-soft: #242039;
  --v11-paper: #f8f7f9;
  --v11-surface: #ffffff;
  --v11-ink: #292536;
  --v11-muted: #77717f;
  --v11-line: #e9e5eb;
  --v11-violet: #66568f;
  --v11-mint: #5e998d;
  --v11-gold: #e4c56f;
}

body.v11 {
  min-width: 0;
  color: var(--v11-ink);
  background: var(--v11-paper);
}

body.v11.v11-menu-visible,
body.v11.v11-drawer-visible {
  overflow: hidden;
}

body.v11 .mobile-shell {
  width: min(100%, 680px);
  max-width: 680px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--v11-paper);
}

body.v11 .app-intro {
  min-height: 252px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 32px;
  border-radius: 0;
  background: var(--v11-night);
}

body.v11 .mobile-top {
  position: relative;
  z-index: 3;
  min-height: 40px;
}

body.v11 .brand-row strong {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: 0;
}

body.v11 .brand-dot {
  background: var(--v11-gold);
}

body.v11 .top-tools .language-picker,
body.v11 .top-tools .privacy-link {
  display: none;
}

body.v11 .v11-more-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: #f6f3fb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

body.v11 .moon-hero {
  min-height: 172px;
  padding-top: 13px;
}

body.v11 .moon-phase-rail {
  margin-inline: -5px;
}

body.v11 .moon-summary-line {
  display: none;
}

body.v11 .moon-hero-copy {
  margin-top: 17px;
  text-align: center;
}

body.v11 .moon-hero-copy h1 {
  margin: 0;
  color: #f5f2fb;
  font-size: 28px;
  font-weight: 540;
  line-height: 1.25;
  letter-spacing: 0;
}

body.v11 .moon-hero-copy small {
  display: block;
  margin-top: 8px;
  color: #c4bdd4;
  font-size: 14px;
  line-height: 1.55;
}

body.v11 .mode-panel {
  display: none !important;
}

body.v11[data-mode="qa"] .mode-panel {
  display: flex !important;
  margin: 12px 14px 0;
}

body.v11 .primary-panel,
body.v11 .response-section {
  margin: 0;
  padding: 28px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.v11 .primary-panel {
  box-sizing: border-box;
  min-height: calc(100svh - 340px);
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
}

body.v11 .demo-scenes,
body.v11 .draft-hint,
body.v11 .self-check,
body.v11 .privacy-note {
  display: none;
}

body.v11[data-mode="demo"] .demo-scenes,
body.v11[data-mode="qa"] .demo-scenes {
  display: flex;
  margin-bottom: 16px;
  overflow-x: auto;
}

body.v11 .draft-clear {
  top: 24px;
  right: 18px;
}

body.v11 .talk-box {
  display: block;
  flex: 1;
  min-height: 210px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.v11 .talk-box textarea {
  width: 100%;
  min-height: 210px;
  max-height: 44svh;
  padding: 6px 4px;
  color: var(--v11-ink);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 430;
  line-height: 1.8;
  letter-spacing: 0;
  resize: none;
}

body.v11 .talk-box textarea::placeholder {
  color: #8b8492;
  opacity: 1;
}

body.v11 .talk-box textarea:focus {
  box-shadow: none;
}

body.v11 .voice-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--v11-line);
}

body.v11 .voice-action {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--v11-violet);
  box-shadow: 0 12px 28px rgba(65, 52, 99, 0.17);
}

body.v11 .voice-action svg {
  width: 21px;
  height: 21px;
}

body.v11 .voice-strip p {
  margin: 0;
  color: var(--v11-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

body.v11 #saveEntry {
  min-height: 52px;
  margin-top: 10px;
  border-radius: 7px;
  color: var(--v11-violet);
  border: 1px solid #dcd5e6;
  background: var(--v11-surface);
  box-shadow: none;
}

body.v11 #saveEntry:disabled {
  display: none;
}

body.v11.has-active-conversation .app-intro {
  min-height: 156px;
  padding-bottom: 18px;
}

body.v11.has-active-conversation .moon-hero {
  min-height: 80px;
  padding-top: 6px;
}

body.v11.has-active-conversation .moon-phase-rail {
  transform: scale(0.8);
  transform-origin: center top;
}

body.v11.has-active-conversation .moon-hero-copy {
  margin-top: -4px;
}

body.v11.has-active-conversation .moon-hero-copy h1 {
  font-size: 20px;
}

body.v11.has-active-conversation .moon-hero-copy small {
  display: none;
}

body.v11.has-active-conversation #talkSection {
  display: none;
}

body.v11:not(.has-active-conversation) #responseSection {
  display: none;
}

body.v11 .response-section {
  padding-top: 18px;
}

body.v11 .response-section > .section-title {
  display: none;
}

body.v11 .response-area {
  display: grid;
  gap: 18px;
}

body.v11 #responseArea > .v11-thread-opening {
  order: 0;
}

body.v11 #responseArea > .response-card {
  order: 1;
}

body.v11 #responseArea > .conversation-stage {
  order: 2;
}

body.v11 #responseArea > .conversation-exchanges {
  order: 3;
}

body.v11 #responseArea > .conversation-next {
  order: 4;
}

body.v11 #responseArea > .v11-aftercare {
  order: 5;
}

body.v11 .moon-response-anchor {
  display: none;
}

body.v11 .v11-thread-opening {
  display: flex;
  justify-content: flex-end;
  padding-left: 13%;
}

body.v11 .v11-thread-opening p,
body.v11 .user-turn {
  margin: 0;
  padding: 13px 15px;
  color: #3e374b;
  border-radius: 7px 7px 2px 7px;
  background: #ece8f2;
  font-size: 15px;
  line-height: 1.75;
}

body.v11 .response-card,
body.v11 .holding-turn {
  margin: 0;
  padding: 2px 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.v11 .response-card > h3,
body.v11 .holding-turn > span {
  margin: 0 0 11px;
  color: #655880;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

body.v11 .active-dialogue {
  display: grid;
  gap: 9px;
}

body.v11 .active-dialogue-turn {
  margin: 0;
  color: #373140;
  font-size: 16px;
  font-weight: 430;
  line-height: 1.8;
}

body.v11 .active-dialogue-turn.is-receive {
  font-weight: 520;
}

body.v11 .active-dialogue-turn::before,
body.v11 .active-dialogue-turn::after {
  display: none !important;
}

body.v11 .active-dialogue-turn {
  padding: 0 !important;
}

body.v11 .active-dialogue-turn.is-invite {
  color: #504665;
}

body.v11 .continuity-line {
  margin: 13px 0 0;
  color: var(--v11-muted);
  font-size: 13px;
  line-height: 1.7;
}

body.v11 .continuity-line span {
  display: block;
  margin-bottom: 3px;
  color: #6c6087;
  font-size: 11px;
  font-weight: 650;
}

body.v11 .response-card .echo-details {
  margin-top: 12px;
}

body.v11 .response-card .echo-details > summary {
  color: #8b8491;
  font-size: 11px;
}

body.v11 .response-card .emotion-list,
body.v11 .response-card .response-intro,
body.v11 .response-card .feedback-row {
  font-size: 12px;
}

body.v11 .response-voice-row {
  margin-top: 13px;
}

body.v11 .response-voice-row small {
  display: none;
}

body.v11 .response-voice-button,
body.v11 .response-voice-stop {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 5px;
  color: #655880;
  background: transparent;
}

body.v11 .conversation-stage {
  margin: 0;
  padding: 14px 15px;
  border-radius: 6px;
}

body.v11 .conversation-exchanges {
  display: grid;
  gap: 20px;
}

body.v11 .conversation-exchange {
  display: grid;
  gap: 14px;
  margin: 0;
}

body.v11 .conversation-exchange .user-turn {
  justify-self: end;
  max-width: 87%;
}

body.v11 .conversation-exchange .user-turn > span {
  display: none;
}

body.v11 .conversation-exchange .user-turn p {
  margin: 0;
}

body.v11 .conversation-next {
  margin: 2px -18px -28px;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--v11-line);
  border-radius: 0;
  background: rgba(248, 247, 249, 0.97);
  box-shadow: none;
}

body.v11 .continuation-invite span,
body.v11 .continuation-invite h3 {
  display: none;
}

body.v11 .continuation-invite p {
  margin: 0 0 13px;
  color: #625b6b;
  font-size: 13px;
  line-height: 1.65;
}

body.v11 .continuation-prompts,
body.v11 .review-path {
  display: none;
}

body.v11 .followup-form {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 46px;
  align-items: end;
  gap: 8px;
}

body.v11 #followupText {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 52px;
  max-height: 128px;
  padding: 13px 12px;
  border: 1px solid #dfd9e3;
  border-radius: 7px;
  color: var(--v11-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
  resize: none;
}

body.v11 .followup-voice-strip {
  display: contents;
}

body.v11 .followup-voice-strip .voice-action {
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}

body.v11 .followup-voice-strip .voice-action span,
body.v11 .followup-voice-strip p {
  display: none;
}

body.v11 .continuation-submit {
  display: contents;
}

body.v11 .continuation-submit .primary-button {
  grid-column: 3;
  grid-row: 1;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

body.v11 .continuation-submit .primary-button::before {
  content: "↑";
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

body.v11 .continuation-submit .subtle-button {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  color: #746b7d;
  border: 0;
  background: transparent;
  font-size: 12px;
}

body.v11 .v11-aftercare {
  margin: 0;
  border-top: 1px solid var(--v11-line);
}

body.v11 .v11-aftercare:not([open]) {
  display: none;
}

body.v11 .v11-aftercare > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  color: #655880;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

body.v11 .v11-aftercare > summary::-webkit-details-marker {
  display: none;
}

body.v11 .v11-aftercare > summary::after {
  content: "＋";
  color: #8b8296;
  font-size: 18px;
}

body.v11 .v11-aftercare[open] > summary::after {
  content: "−";
}

body.v11 .v11-aftercare-body {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

body.v11 .response-evening-step,
body.v11 .release-card,
body.v11 .context-disclosure,
body.v11 .memory-panel {
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
}

body.v11 .thumb-nav,
body.v11 .app-scope {
  display: none;
}

body.v11 .review-section,
body.v11 .history-section,
body.v11 .tools-section,
body.v11 .qa-panel {
  display: none;
}

body.v11 .review-section.v11-feature-open,
body.v11 .history-section.v11-feature-open,
body.v11 .tools-section.v11-feature-open,
body.v11 .qa-panel.v11-feature-open {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: calc(54px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--v11-paper);
}

body.v11 .v11-drawer-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: max(16px, calc((100vw - 680px) / 2 + 16px));
  z-index: 74;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #625a6c;
  border: 1px solid var(--v11-line);
  border-radius: 50%;
  background: #fff;
}

body.v11 .v11-drawer-close svg {
  width: 18px;
  height: 18px;
}

body.v11 .v11-more-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
}

body.v11 .v11-more-layer[hidden] {
  display: none;
}

body.v11 .v11-more-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 15, 27, 0.48);
  backdrop-filter: blur(3px);
}

body.v11 .v11-more-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(86svh, 720px);
  margin: 0 auto;
  padding: 11px 18px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(23, 19, 35, 0.22);
}

body.v11 .v11-sheet-grabber {
  display: block;
  width: 38px;
  height: 4px;
  margin: 0 auto 17px;
  border-radius: 4px;
  background: #d8d3dc;
}

body.v11 .v11-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.v11 .v11-menu-heading small {
  color: #7c7485;
  font-size: 11px;
}

body.v11 .v11-menu-heading h2 {
  margin: 3px 0 0;
  font-size: 21px;
  font-weight: 590;
  letter-spacing: 0;
}

body.v11 .v11-menu-heading > button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #655f6d;
  background: #f4f2f5;
}

body.v11 .v11-menu-heading svg {
  width: 18px;
  height: 18px;
}

body.v11 .v11-menu-actions {
  display: grid;
}

body.v11 .v11-menu-actions > button,
body.v11 .v11-privacy-choice {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 63px;
  padding: 9px 2px;
  color: var(--v11-ink);
  border: 0;
  border-top: 1px solid var(--v11-line);
  background: transparent;
  text-align: left;
}

body.v11 .v11-menu-actions svg,
body.v11 .v11-privacy-choice svg {
  width: 19px;
  height: 19px;
  color: #71628f;
}

body.v11 .v11-menu-actions span {
  display: grid;
  gap: 2px;
}

body.v11 .v11-menu-actions strong,
body.v11 .v11-privacy-choice span {
  font-size: 14px;
  font-weight: 560;
}

body.v11 .v11-menu-actions small {
  color: var(--v11-muted);
  font-size: 11px;
}

body.v11 .v11-menu-actions > .v11-qa-menu-item {
  display: none;
}

body.v11[data-mode="qa"] .v11-menu-actions > .v11-qa-menu-item {
  display: grid;
}

body.v11 .v11-menu-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px;
  border-top: 1px solid var(--v11-line);
}

body.v11 .v11-menu-preferences > span {
  color: var(--v11-muted);
  font-size: 12px;
}

body.v11 .v11-menu-preferences > div {
  display: flex;
  gap: 6px;
}

body.v11 .v11-menu-preferences button {
  min-height: 34px;
  padding: 0 12px;
  color: #756d7e;
  border: 1px solid #e2dee5;
  border-radius: 5px;
  background: #fff;
}

body.v11 .v11-menu-preferences button.active {
  color: #fff;
  border-color: var(--v11-violet);
  background: var(--v11-violet);
}

body.v11 .v11-boundary-note {
  margin: 14px 0 0;
  color: #8a8490;
  font-size: 10px;
  line-height: 1.55;
}

body.v11.v10.is-listening .primary-panel,
body.v11.v10.followup-listening .conversation-next {
  border-radius: 0;
}

body.v11.v10.is-listening .voice-action,
body.v11.v10.followup-listening .followup-voice-strip .voice-action {
  color: #fff;
}

@media (max-width: 360px) {
  body.v11 .app-intro {
    min-height: 232px;
    padding-inline: 14px;
  }

  body.v11 .primary-panel,
  body.v11 .response-section {
    padding-inline: 14px;
  }

  body.v11 .talk-box textarea {
    font-size: 19px;
  }

  body.v11 .conversation-next {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  body.v11 .followup-form {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  body.v11 .followup-voice-strip .voice-action {
    width: 48px;
    min-height: 48px;
  }
}

@media (max-height: 760px) {
  body.v11 .primary-panel {
    min-height: 0;
  }

  body.v11 .talk-box {
    flex: none;
    height: 160px;
    min-height: 160px;
  }

  body.v11 .talk-box textarea {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v11 *,
  body.v11 *::before,
  body.v11 *::after {
    scroll-behavior: auto !important;
  }
}
