:root {
  --v3-ink: #302a3e;
  --v3-ink-soft: #746e7b;
  --v3-plum-950: #171223;
  --v3-plum-900: #21182f;
  --v3-plum-800: #302440;
  --v3-lavender: #796bad;
  --v3-lavender-soft: #e7e1f2;
  --v3-moon: #f6d986;
  --v3-mint: #8fd8c7;
  --v3-ivory: #fbfaf6;
  --v3-surface: #f3f0ec;
  --v3-line: rgba(48, 42, 62, 0.13);
  --v3-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

html {
  background: #111019;
}

body.v3 {
  min-width: 0;
  margin: 0;
  color: var(--v3-ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(122, 101, 166, 0.15), transparent 28%),
    #111019;
  font-family: var(--v3-font);
  font-weight: 400;
  letter-spacing: 0;
}

body.v3 button,
body.v3 textarea,
body.v3 input {
  font-family: inherit;
  letter-spacing: 0;
}

.v3 .mobile-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 calc(84px + env(safe-area-inset-bottom));
  overflow: hidden;
  color: var(--v3-ink);
  background: var(--v3-ivory);
  box-shadow: 0 18px 60px rgba(17, 12, 25, 0.3);
}

.v3 .app-intro {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  color: #fbf8ff;
  background:
    radial-gradient(circle at 50% 36%, rgba(135, 112, 180, 0.16), transparent 38%),
    linear-gradient(180deg, var(--v3-plum-950), var(--v3-plum-900));
}

.v3 .app-intro::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -46px;
  left: -8%;
  height: 76px;
  border-radius: 50% 50% 0 0;
  background: var(--v3-ivory);
}

.v3 .mobile-top {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: max(13px, env(safe-area-inset-top)) 18px 8px;
  color: #fff;
  background: transparent;
  border: 0;
}

.v3 .brand-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.v3 .brand-row > span:last-child {
  display: grid;
  gap: 1px;
}

.v3 .brand-row strong {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.15;
}

.v3 .brand-row small {
  color: #b8afc9;
  font-size: 9px;
  line-height: 1.2;
}

.v3 .brand-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: var(--v3-moon);
  box-shadow: inset 8px 0 0 #2c223a, 0 0 13px rgba(246, 217, 134, 0.28);
}

.v3 .top-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v3 .mini-pill,
.v3 .privacy-link {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 9px;
  color: #c5bdd3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11px;
  text-decoration: none;
}

.v3 .mini-pill.active {
  color: var(--v3-plum-950);
  background: var(--v3-moon);
  border-color: var(--v3-moon);
}

.v3 .privacy-link {
  min-width: 40px;
  padding: 0;
  border-color: transparent;
}

.v3 .privacy-link svg {
  width: 21px;
  height: 21px;
}

.v3 .moon-hero {
  position: relative;
  z-index: 2;
  min-height: 210px;
  padding: 5px 17px 48px;
  color: #fff;
  background: transparent;
}

.v3 .moon-phases {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 7px auto 0;
  padding: 0;
}

.v3 .moon-phase {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  margin: auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(112, 76, 26, 0.22) 0 6%, transparent 7%),
    radial-gradient(circle at 64% 67%, rgba(112, 76, 26, 0.15) 0 8%, transparent 9%),
    linear-gradient(135deg, #ffe6a1, #efc66c);
  box-shadow: 0 0 11px rgba(246, 217, 134, 0.24);
}

.v3 .moon-phase::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--v3-plum-900);
}

.v3 .moon-phase-1::after { transform: translateX(-8px); }
.v3 .moon-phase-2::after { transform: translateX(-14px); }
.v3 .moon-phase-3::after { transform: translateX(-21px); }
.v3 .moon-phase-5::after { transform: translateX(21px); }
.v3 .moon-phase-6::after { transform: translateX(14px); }
.v3 .moon-phase-7::after { transform: translateX(8px); }

.v3 .today-moon {
  display: grid;
  place-items: center;
}

.v3 .moon-phase-full {
  width: 45px;
  height: 45px;
  box-shadow: 0 0 22px rgba(246, 217, 134, 0.42);
}

.v3 .moon-phase-full::after {
  display: none;
}

.v3 .today-moon small {
  margin-top: 4px;
  color: var(--v3-moon);
  font-size: 9px;
  font-weight: 700;
}

.v3 .moon-hero-copy {
  margin: 19px auto 0;
  text-align: center;
}

.v3 .moon-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.28;
}

.v3 .moon-hero-copy p {
  margin: 8px 0 0;
  color: #d9d1e8;
  font-size: 16px;
  line-height: 1.5;
}

.v3 .moon-hero-copy small {
  display: block;
  margin-top: 4px;
  color: #aaa1bd;
  font-size: 12px;
  line-height: 1.5;
}

.v3 .mode-panel {
  display: none;
  width: auto;
  margin: 10px 16px 0;
  padding: 13px;
  border: 1px solid var(--v3-line);
  border-radius: 8px;
  background: #f1edf4;
  box-shadow: none;
}

.v3[data-mode="demo"] .mode-panel,
.v3[data-mode="qa"] .mode-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v3 .mode-copy p,
.v3 .mode-copy strong {
  color: var(--v3-ink);
}

.v3 .mode-switch a {
  border-radius: 6px;
}

.v3 .mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  min-width: 0;
  padding: 3px;
}

.v3 .mode-switch a {
  display: grid;
  min-width: 0;
  min-height: 38px;
  place-items: center;
  padding: 0 5px;
  font-size: 11px;
}

.v3 .section-panel {
  width: 100%;
  margin: 0;
  padding: 30px 20px 34px;
  color: var(--v3-ink);
  background: var(--v3-ivory);
  border: 0;
  border-top: 1px solid var(--v3-line);
  border-radius: 0;
  box-shadow: none;
}

.v3 .primary-panel {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  padding-top: 8px;
  border-top: 0;
}

.v3 .primary-panel::before,
.v3 .primary-panel::after {
  display: none;
}

.v3 .section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.v3 .section-title span {
  color: var(--v3-lavender);
  font-size: 11px;
  font-weight: 700;
}

.v3 .section-title h2,
.v3 .section-title h1 {
  margin: 4px 0 0;
  color: var(--v3-ink);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
}

.v3 .section-title p {
  margin: 5px 0 0;
  color: var(--v3-ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.v3 .icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  color: #6d6675;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.v3 .icon-button:hover,
.v3 .icon-button:focus-visible {
  background: var(--v3-surface);
  outline: none;
}

.v3 .demo-scenes {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.v3[data-mode="demo"] .demo-scenes,
.v3[data-mode="qa"] .demo-scenes {
  display: grid;
}

.v3 .demo-scenes button {
  min-height: 42px;
  padding: 7px 8px;
  color: #5f537d;
  background: #f0ecf4;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
}

.v3 .talk-box {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
}

.v3 .talk-box > span {
  color: #4a4257;
  font-size: 14px;
  font-weight: 650;
}

.v3 .talk-box textarea,
.v3 .followup-form textarea,
.v3 .report-box textarea {
  width: 100%;
  resize: none;
  color: var(--v3-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
  line-height: 1.75;
}

.v3 .talk-box textarea {
  min-height: 184px;
  padding: 14px 0;
}

.v3 textarea::placeholder {
  color: #a39ca8;
}

.v3 .voice-strip {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.v3 .voice-action {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  color: #fff;
  background: var(--v3-plum-800);
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}

.v3 .voice-action svg {
  width: 22px;
  height: 22px;
}

.v3 .voice-strip p {
  margin: 0 2px;
  color: var(--v3-ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.v3 .voice-strip.unavailable .voice-action {
  display: none;
}

.v3 .draft-hint {
  margin: 14px 0 0;
  padding: 13px 14px;
  color: #4d4560;
  background: #f2eef5;
  border: 0;
  border-left: 3px solid #978bc0;
  border-radius: 0;
}

.v3 .draft-hint strong {
  font-size: 13px;
}

.v3 .draft-hint p {
  margin: 4px 0 0;
  color: #756e7d;
  font-size: 12px;
  line-height: 1.55;
}

.v3 .self-check {
  margin-top: 15px;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--v3-line);
  border-radius: 0;
}

.v3 .self-check summary {
  min-height: 52px;
  padding: 16px 28px 13px 0;
  color: #5b4d86;
  font-size: 14px;
  font-weight: 650;
}

.v3 .self-check summary::after {
  right: 5px;
}

.v3 .self-check-intro {
  margin: 5px 0 13px;
}

.v3 .self-check-intro strong {
  font-size: 16px;
  font-weight: 650;
}

.v3 .self-check-intro p {
  margin: 4px 0 0;
  color: var(--v3-ink-soft);
  font-size: 12px;
}

.v3 .rating-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0;
}

.v3 .rating-card {
  display: grid;
  min-width: 0;
  min-height: 318px;
  justify-items: center;
  padding: 15px 9px;
  color: var(--v3-ink);
  background: #f4f1ed;
  border: 1px solid var(--v3-line);
  border-radius: 8px;
  box-shadow: none;
}

.v3 .rating-card > span {
  color: #494252;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.v3 .rating-card > strong {
  margin-top: 7px;
  color: #6253a2;
  font-size: 34px;
  font-weight: 650;
}

.v3 .rating-card[data-rating-card="energy"] > strong {
  color: #378d80;
}

.v3 .rating-card > small {
  min-height: 35px;
  color: #7b7581;
  font-size: 11px;
  text-align: center;
}

.v3 .rating-card input[type="range"] {
  width: 54px;
  height: 178px;
  margin: 3px 0 0;
  accent-color: #6e67db;
}

.v3 .rating-card[data-rating-card="energy"] input[type="range"] {
  accent-color: #68c9b8;
}

.v3 .primary-button,
.v3 .subtle-button,
.v3 .small-action {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 650;
  letter-spacing: 0;
}

.v3 .primary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
  padding: 0 17px;
  color: #fff;
  background: var(--v3-plum-800);
  border: 1px solid var(--v3-plum-800);
  box-shadow: none;
}

.v3 .primary-button:disabled {
  color: #fff;
  background: #c5c0c5;
  border-color: #c5c0c5;
}

.v3 .privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: #756f7b;
  font-size: 11px;
  line-height: 1.55;
}

.v3 .privacy-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.v3 .response-section,
.v3 .history-section,
.v3 .tools-section {
  padding-top: 33px;
}

.v3 .response-area,
.v3 .history-list {
  display: block;
}

.v3 .empty-state {
  min-height: 90px;
  padding: 16px 0;
  color: var(--v3-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.v3 .empty-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.v3 .response-card,
.v3 .release-card,
.v3 .memory-panel,
.v3 .conversation-next,
.v3 .context-disclosure {
  margin: 0;
  padding: 20px 0;
  color: var(--v3-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
  box-shadow: none;
}

.v3 .response-card {
  padding-top: 2px;
}

.v3 .response-evening-step {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--v3-line);
}

.v3 .response-evening-intro {
  display: grid;
  gap: 5px;
}

.v3 .response-evening-intro span {
  color: #6d5b8f;
  font-size: 12px;
  font-weight: 700;
}

.v3 .response-evening-intro p {
  margin: 0;
  color: #5d5862;
  font-size: 14px;
  line-height: 1.7;
}

.v3 .response-evening-step .closure-ritual {
  padding-top: 10px;
}

.v3 .response-evening-step .evening-checkin {
  padding-bottom: 2px;
}

.v3 .response-card h3,
.v3 .release-card h3 {
  margin: 0 0 10px;
  color: #493d72;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
}

.v3 .response-card p,
.v3 .release-card p,
.v3 .conversation-next p {
  color: #4b4455;
  font-size: 14px;
  line-height: 1.75;
}

.v3 .echo-primary {
  margin: 0 0 15px;
  color: #3e3848 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.v3 .response-intro {
  margin: 0 0 12px;
  color: var(--v3-ink-soft) !important;
  font-size: 12px !important;
}

.v3 .continuity-line {
  margin: 13px 0 4px;
  padding-left: 12px;
  color: #665e70 !important;
  border-left: 2px solid rgba(143, 216, 199, 0.78);
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.v3 .continuity-line span {
  display: block;
  margin-bottom: 2px;
  color: #4d746e;
  font-size: 11px;
  font-weight: 650;
}

.v3 .continuity-card,
.v3 .echo-details,
.v3 .context-disclosure {
  padding: 14px 0;
  color: var(--v3-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--v3-line);
  border-radius: 0;
}

.v3 .continuity-card summary,
.v3 .echo-details summary,
.v3 .context-disclosure summary {
  min-height: 44px;
  padding: 11px 26px 9px 0;
  color: #574a78;
  font-size: 13px;
  font-weight: 650;
}

.v3 .continuity-card p,
.v3 .echo-details p,
.v3 .context-disclosure p {
  margin: 6px 0 0;
  color: var(--v3-ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.v3 .context-disclosure {
  padding: 9px 0 13px;
  border-top: 0;
  border-bottom: 1px solid var(--v3-line);
}

.v3 .context-disclosure summary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}

.v3 .context-disclosure summary::-webkit-details-marker,
.v3 .context-disclosure summary::after {
  display: none;
}

.v3 .context-symbol {
  align-self: start;
  padding-top: 2px;
  color: #7561aa;
  font-size: 18px;
  line-height: 1;
}

.v3 .context-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v3 .context-summary-copy strong {
  color: #4d416f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.v3 .context-summary-copy small {
  overflow-wrap: anywhere;
  color: var(--v3-ink-soft);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
}

.v3 .context-peek {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #67578f;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.v3 .context-peek-close,
.v3 .context-disclosure[open] .context-peek-open {
  display: none;
}

.v3 .context-disclosure[open] .context-peek-close {
  display: inline;
}

.v3 .context-body {
  padding: 2px 0 8px 30px;
  animation: v3-context-reveal 180ms ease-out;
}

.v3 .context-reflection {
  margin: 0;
  color: #4f4857;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.8;
}

.v3 .context-boundary {
  margin: 12px 0 0;
  padding-left: 12px;
  color: #766f7c;
  border-left: 2px solid rgba(87, 175, 156, 0.42);
  font-size: 11px;
  line-height: 1.7;
}

.v3 .context-disclosure .context-intro {
  margin: 0 0 13px;
  color: #55505d;
}

.v3 .context-observations {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(92, 78, 118, 0.12);
}

.v3 .context-observation {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(92, 78, 118, 0.12);
}

.v3 .context-observation p {
  margin: 0;
  color: #5b5463;
  font-size: 12px;
}

.v3 .context-observation strong {
  color: #352d43;
  font-size: 16px;
  font-weight: 650;
}

.v3 .context-observation span,
.v3 .context-observation a {
  color: #81788a;
  font-size: 11px;
  line-height: 1.55;
}

.v3 .context-observation a {
  width: fit-content;
  color: #5e5190;
  text-decoration: underline;
  text-decoration-color: rgba(94, 81, 144, 0.28);
  text-underline-offset: 3px;
}

.v3 .context-disclosure .context-caution {
  margin: 13px 0 0;
  color: #766f7c;
  font-size: 11px;
}

.v3 .context-disclosure .context-empty {
  margin: 0;
  padding: 13px 15px;
  color: #625b69;
  background: rgba(239, 246, 243, 0.72);
  border-left: 2px solid rgba(87, 175, 156, 0.52);
  font-size: 12px;
  line-height: 1.75;
}

@keyframes v3-context-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.v3 .emotion-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
}

.v3 .gentle-list {
  gap: 0;
  padding: 2px 0 4px;
}

.v3 .gentle-list p + p {
  margin-top: 8px;
}

.v3 .emotion-pill {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1px 9px;
  padding: 10px 0;
  background: transparent;
  border: 0;
}

.v3 .emotion-pill span {
  grid-row: 1 / 3;
  color: #8275aa;
  font-size: 11px;
}

.v3 .emotion-pill strong {
  color: #4b4358;
  font-size: 13px;
}

.v3 .emotion-pill p {
  margin: 3px 0 0;
  color: var(--v3-ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.v3 .feedback-row,
.v3 .continue-row,
.v3 .memory-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.v3 .small-action {
  min-width: 0;
  padding: 0 8px;
  color: #5e5275;
  background: #f0ecf4;
  border: 1px solid transparent;
  font-size: 12px;
}

.v3 .small-action.active {
  color: #473a79;
  background: #e0daf0;
  border-color: #9589bb;
}

.v3 .memory-panel {
  margin: 0;
  padding: 17px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--v3-line);
}

.v3 .memory-panel > summary {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 4px 28px 4px 0;
  list-style: none;
  cursor: pointer;
}

.v3 .memory-panel > summary::-webkit-details-marker {
  display: none;
}

.v3 .memory-panel > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: #6e6590;
  font-size: 18px;
}

.v3 .memory-panel[open] > summary::after {
  content: "−";
}

.v3 .memory-panel > summary strong {
  color: #356f68;
  font-size: 15px;
  font-weight: 650;
}

.v3 .memory-panel > summary span,
.v3 .memory-item p {
  margin: 6px 0;
  color: #5e726f;
  font-size: 12px;
  line-height: 1.65;
}

.v3 .memory-items {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(143, 216, 199, 0.62);
}

.v3 .memory-item {
  padding: 11px 0 0;
  border-top: 1px solid rgba(55, 112, 104, 0.13);
}

.v3 .memory-item strong {
  color: #416d68;
  font-size: 13px;
}

.v3 .memory-item .feedback-row {
  grid-template-columns: repeat(3, 1fr);
}

.v3 .memory-item .small-action {
  color: #476d68;
  background: transparent;
  border-color: rgba(55, 112, 104, 0.22);
}

.v3 .metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0;
}

.v3 .metric {
  min-width: 0;
  padding: 12px 5px;
  text-align: center;
  background: #f4f1ed;
  border: 1px solid var(--v3-line);
  border-radius: 8px;
}

.v3 .metric span {
  display: block;
  min-height: 28px;
  color: #817a86;
  font-size: 10px;
  line-height: 1.4;
}

.v3 .metric strong {
  display: block;
  margin-top: 4px;
  color: #5f4e98;
  font-size: 19px;
  font-weight: 650;
}

.v3 .post-range {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.v3 .post-range > p {
  margin: 0;
}

.v3 .post-range .rating-card {
  width: 100%;
  min-height: 250px;
}

.v3 .self-reflection > summary {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 7px 28px 7px 0;
  list-style: none;
  cursor: pointer;
}

.v3 .self-reflection > summary::-webkit-details-marker {
  display: none;
}

.v3 .self-reflection > summary strong {
  color: #4d416f;
  font-size: 15px;
  font-weight: 650;
}

.v3 .self-reflection > summary span {
  color: var(--v3-ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.v3 .self-reflection-body > p {
  margin: 6px 0 0;
  color: var(--v3-ink-soft);
  font-size: 12px;
}

.v3 .conversation-next h3 {
  margin: 0 0 8px;
  color: #493d72;
  font-size: 17px;
  font-weight: 650;
}

.v3 .continue-row {
  grid-template-columns: 1fr 1fr;
}

.v3 .continue-row .small-action:first-child {
  color: #fff;
  background: linear-gradient(100deg, #646ce2, #60cbbb);
}

.v3 .continue-row .small-action:last-child {
  color: #5e4e8c;
  background: transparent;
  border-color: #8375aa;
}

.v3 .followup-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-line);
  border-radius: 8px;
}

.v3 .followup-form[hidden] {
  display: none;
}

.v3 .followup-form textarea {
  min-height: 145px;
}

.v3 .followup-voice-strip .voice-action {
  min-height: 52px;
}

.v3 .followup-form .primary-button {
  margin-top: 0;
}

.v3 .subtle-button {
  color: #63577d;
  background: transparent;
  border: 1px solid var(--v3-line);
}

.v3 .followup-item {
  margin-top: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--v3-line);
}

.v3 .followup-item p {
  margin: 4px 0;
}

.v3 .history-list {
  position: relative;
  padding-left: 22px;
}

.v3 .history-list::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  background: #d9d2df;
}

.v3 .history-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
  padding: 0 0 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.v3 .history-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v3-moon);
  border: 2px solid var(--v3-ivory);
  box-shadow: 0 0 0 1px #d0b55f;
}

.v3 .history-item span {
  color: #8a8490;
  font-size: 10px;
}

.v3 .history-item p {
  margin: 4px 0 0;
  color: #504958;
  font-size: 13px;
  line-height: 1.55;
}

.v3 .history-actions {
  display: grid;
  align-content: start;
  gap: 5px;
}

.v3 .history-actions button {
  min-height: 36px;
  padding: 0 9px;
  color: #665a82;
  background: transparent;
  border: 1px solid var(--v3-line);
  border-radius: 7px;
  font-size: 11px;
}

.v3 .tool-list {
  display: grid;
  gap: 11px;
}

.v3 .tool-card {
  padding: 15px;
  background: #f4f1ed;
  border: 1px solid var(--v3-line);
  border-radius: 8px;
}

.v3 .tool-button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--v3-ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.v3 .tool-button span {
  font-size: 15px;
  font-weight: 650;
}

.v3 .tool-button strong {
  min-width: 44px;
  color: #665a85;
  font-size: 12px;
  text-align: right;
}

.v3 .tool-button svg {
  color: #665a85;
}

.v3 .breath-guide {
  display: none;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 13px;
}

.v3 .breath-guide.active {
  display: grid;
}

.v3 .breath-orb {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 50%;
  color: #514775;
  background: radial-gradient(circle, #f8f3d9 0 34%, #dad4ef 35% 59%, #b7e3d9 60%);
}

.v3 .breath-copy {
  display: grid;
  gap: 5px;
}

.v3 .breath-copy strong,
.v3 .breath-copy span,
.v3 .breath-copy small {
  color: var(--v3-ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.v3 .mindful-categories {
  display: flex;
  gap: 7px;
  margin: 10px -2px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.v3 .mindful-categories::-webkit-scrollbar {
  display: none;
}

.v3 .mindful-categories button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #675b79;
  background: #fff;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  font-size: 11px;
}

.v3 .mindful-categories button.active {
  color: #4e417c;
  background: #e5dff1;
  border-color: #a79cc7;
}

.v3 .mindful-line {
  margin: 11px 0 0;
  padding: 13px 14px;
  color: #4b4553;
  background: #fff;
  border-left: 3px solid #d7b95e;
  font-size: 13px;
  line-height: 1.7;
}

.v3 .qa-panel {
  background: #f4f1f6;
}

.v3 .qa-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.v3 .qa-item,
.v3 .report-box {
  border-radius: 8px;
}

.v3 .thumb-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 430px;
  min-height: 76px;
  margin-inline: auto;
  padding: 4px 6px max(4px, env(safe-area-inset-bottom));
  background: rgba(251, 250, 246, 0.96);
  border: 0;
  border-top: 1px solid var(--v3-line);
  border-radius: 0;
  box-shadow: 0 -5px 18px rgba(40, 33, 50, 0.05);
  backdrop-filter: blur(16px);
}

.v3 .thumb-nav:has(#qaNavButton:not([hidden])) {
  grid-template-columns: repeat(5, 1fr);
}

.v3 .thumb-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px 2px;
  color: #706a77;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
}

.v3 .thumb-nav button.active {
  color: #514182;
  background: transparent;
}

.v3 .thumb-nav button.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #6655a0;
}

.v3 .thumb-nav svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.v3 .modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(17, 12, 24, 0.68);
}

.v3 .modal-backdrop[hidden] {
  display: none;
}

.v3 .safety-modal {
  width: min(100%, 430px);
  padding: 22px;
  color: var(--v3-ink);
  background: var(--v3-ivory);
  border-radius: 8px;
}

.v3 .safety-modal h2 {
  font-size: 21px;
  font-weight: 650;
}

.v3 .toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 18px;
  width: min(calc(100% - 36px), 394px);
  margin: auto;
  padding: 12px 14px;
  color: #fff;
  background: #261c34;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
}

.v3 .toast[hidden] {
  display: none;
}

body.v3[data-dictation-visual="listening"] .app-intro,
body.v3[data-dictation-visual="listening"] .primary-panel {
  color: #fff;
  background:
    radial-gradient(circle at 50% 62%, rgba(114, 220, 205, 0.45), transparent 21%),
    radial-gradient(circle at 43% 58%, rgba(111, 111, 235, 0.67), transparent 37%),
    linear-gradient(180deg, #171223 0%, #2a2143 66%, #383f62 100%);
}

body.v3[data-dictation-visual="listening"] .app-intro::after {
  background: transparent;
}

body.v3[data-dictation-visual="listening"] .primary-panel {
  position: relative;
  min-height: 515px;
  border-top: 0;
}

body.v3[data-dictation-visual="listening"] .primary-panel::before,
body.v3[data-dictation-visual="listening"] .primary-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  left: 50%;
  top: 58%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 244, 238, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: v3-breathe 10s ease-in-out infinite;
  pointer-events: none;
}

body.v3[data-dictation-visual="listening"] .primary-panel::after {
  width: 330px;
  height: 330px;
  animation-delay: -0.8s;
}

body.v3[data-dictation-visual="listening"] .primary-panel > * {
  position: relative;
  z-index: 1;
}

body.v3[data-dictation-visual="listening"] .section-title h2,
body.v3[data-dictation-visual="listening"] .section-title span,
body.v3[data-dictation-visual="listening"] .talk-box > span,
body.v3[data-dictation-visual="listening"] .privacy-note {
  color: #fff;
}

body.v3[data-dictation-visual="listening"] .talk-box textarea,
body.v3[data-dictation-visual="listening"] .talk-box textarea::placeholder,
body.v3[data-dictation-visual="listening"] .voice-strip p {
  color: rgba(255, 255, 255, 0.79);
}

body.v3[data-dictation-visual="listening"] .talk-box {
  border-color: rgba(255, 255, 255, 0.2);
}

body.v3[data-dictation-visual="listening"] .voice-action {
  background: linear-gradient(105deg, #6871e6, #7d65d6 48%, #64cdb9);
  box-shadow: 0 0 0 12px rgba(123, 124, 235, 0.1), 0 0 0 28px rgba(101, 207, 190, 0.06);
}

@keyframes v3-breathe {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(0.82); }
  40% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 340px) {
  .v3 .mobile-top { padding-inline: 16px; }
  .v3 .moon-hero { padding-inline: 13px; }
  .v3 .section-panel { padding-inline: 16px; }
  .v3 .moon-hero-copy h1 { font-size: 27px; }
  .v3 .moon-phase { width: 22px; height: 22px; }
  .v3 .moon-phase-full { width: 41px; height: 41px; }
  .v3 .primary-button { padding-inline: 10px; font-size: 14px; }
  .v3 .feedback-row { grid-template-columns: 1fr; }
  .v3 .memory-item .feedback-row { grid-template-columns: 1fr; }
  .v3 .rating-row { gap: 7px; }
  .v3 .rating-card { padding-inline: 7px; }
}

@media (min-width: 431px) {
  .v3 .mobile-shell {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

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

/* Daily review is a quiet continuation of the conversation, not a report card. */
.v3 .review-section {
  border-top: 1px solid rgba(82, 66, 112, 0.13);
  background: rgba(248, 247, 250, 0.72);
}

.v3 .daily-review-area,
.v3 .weekly-clues-area {
  display: grid;
  gap: 18px;
}

.v3 .review-empty {
  display: grid;
  gap: 16px;
  min-height: 148px;
  align-content: center;
  padding: 22px 0;
  border-block: 1px solid rgba(82, 66, 112, 0.12);
}

.v3 .review-empty-copy {
  display: grid;
  gap: 12px;
}

.v3 .review-empty-preview {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-left: 3px solid rgba(96, 185, 173, 0.72);
  background: rgba(230, 244, 241, 0.54);
}

.v3 .review-empty-preview strong {
  color: #3f3a47;
  font-size: 14px;
  font-weight: 680;
}

.v3 .review-empty-preview span {
  color: #6b6570;
  font-size: 13px;
  line-height: 1.65;
}

.v3 .review-empty p,
.v3 .review-opening p,
.v3 .review-self-sense p,
.v3 .closure-ritual p,
.v3 .weekly-clues-area p {
  margin: 0;
  color: #625e69;
  font-size: 14px;
  line-height: 1.75;
}

.v3 .review-start,
.v3 .review-path {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(82, 66, 112, 0.2);
  background: transparent;
  color: #544078;
  font-weight: 680;
  text-align: left;
}

.v3 .review-path {
  width: 100%;
  margin-top: 4px;
  padding: 10px 2px;
  text-align: center;
}

.v3 .review-opening {
  display: grid;
  gap: 10px;
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(82, 66, 112, 0.12);
}

.v3 .review-opening > span,
.v3 .review-threads > strong,
.v3 .review-self-sense > strong,
.v3 .closure-ritual > strong,
.v3 .weekly-clues-head > strong {
  color: #4d3c70;
  font-size: 15px;
  font-weight: 700;
}

.v3 .review-opening > p:first-of-type {
  color: #34313a;
  font-size: 17px;
  line-height: 1.72;
}

.v3 .review-soft-line {
  padding-left: 13px;
  border-left: 2px solid rgba(91, 191, 177, 0.62);
}

.v3 .review-threads,
.v3 .review-self-sense,
.v3 .closure-ritual {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}

.v3 .review-thread {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 56px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
  color: #4f4a55;
  text-align: left;
}

.v3 .review-thread > span {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 1px solid #7d6ba1;
  border-radius: 50%;
}

.v3 .review-thread p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
}

.v3 .review-thread.active {
  border-color: rgba(83, 69, 116, 0.32);
  background: rgba(238, 235, 246, 0.82);
}

.v3 .review-thread.active > span {
  border-color: #5d4b84;
  background: #5d4b84;
  box-shadow: inset 0 0 0 2px #f3f0f8;
}

.v3 .review-self-sense {
  padding-block: 14px;
  border-block: 1px solid rgba(82, 66, 112, 0.1);
}

.v3 .closure-ritual {
  padding-top: 12px;
}

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

.v3 .closure-actions button {
  min-width: 0;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(82, 66, 112, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #514b59;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.v3 .closure-actions button.active {
  border-color: #66528e;
  background: #51406f;
  color: #fff;
}

.v3 .closure-message {
  padding: 12px 14px;
  border-left: 3px solid #62b9ad;
  background: rgba(217, 242, 237, 0.44);
  color: #3f5552 !important;
}

.v3 .evening-checkin {
  gap: 12px;
  padding-block: 18px 8px;
}

.v3 .felt-state-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.v3 .felt-state-actions button {
  min-width: 0;
  min-height: 54px;
  padding: 8px 6px;
  border: 1px solid rgba(82, 66, 112, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #514a59;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.v3 .felt-state-actions button:disabled {
  border-color: rgba(91, 185, 172, 0.46);
  background: rgba(222, 243, 239, 0.68);
  color: #41635e;
}

.v3 .evening-hold {
  gap: 12px;
  padding: 18px 16px;
  border-left: 3px solid #63bbae;
  background: rgba(235, 244, 242, 0.72);
}

.v3 .felt-state-label {
  color: #6d5b8f;
  font-size: 12px;
  font-weight: 700;
}

.v3 .evening-hold > strong {
  color: #302b37;
  font-size: 19px;
  line-height: 1.45;
}

.v3 .evening-hold-body {
  color: #3f3a44 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.v3 .evening-hold-prompt {
  padding-top: 10px;
  border-top: 1px solid rgba(77, 99, 95, 0.13);
  color: #66616a !important;
}

.v3 .evening-hold-actions,
.v3 .evening-complete-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v3 .evening-hold-actions button,
.v3 .evening-complete-actions button {
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(82, 66, 112, 0.23);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #51485d;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.v3 .evening-hold-actions button.primary {
  border-color: #604d86;
  background: #51406f;
  color: #fff;
}

.v3 .rechoose-evening {
  justify-self: start;
  min-height: 38px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid rgba(82, 66, 112, 0.26);
  background: transparent;
  color: #746a7d;
  font-size: 12px;
}

.v3 .evening-complete {
  gap: 11px;
  padding: 20px 16px;
  border-left: 3px solid #d3b15a;
  background: rgba(249, 245, 232, 0.72);
}

.v3 .evening-complete > strong {
  color: #332e38;
  font-size: 18px;
  line-height: 1.55;
}

.v3 .settled-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(196, 154, 53, 0.62);
  border-radius: 50%;
  background: #f3d479;
  box-shadow: 0 0 22px rgba(224, 184, 79, 0.28);
}

.v3 .settle-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #171126 0%, #25214d 56%, #315f68 100%);
  color: #f8f4ff;
}

.v3.settling {
  overflow: hidden;
}

.v3 .settle-overlay[hidden] {
  display: none;
}

.v3 .settle-dialog {
  display: grid;
  gap: 14px;
  width: min(100%, 390px);
  margin-inline: auto;
  text-align: center;
}

.v3 .settle-moon {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  margin: 0 auto 16px;
  border: 1px solid rgba(181, 222, 218, 0.26);
  border-radius: 50%;
  animation: settle-breathe 8s ease-in-out both;
}

.v3 .settle-moon span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff6c7 0%, #f5d67b 48%, #b89c65 100%);
  box-shadow: 0 0 38px rgba(239, 218, 147, 0.34);
}

.v3 .settle-overlay[data-stage="complete"] .settle-moon {
  animation: none;
  transform: scale(0.88);
}

.v3 .settle-dialog > p,
.v3 .settle-dialog > h2 {
  margin: 0;
}

.v3 #settlePhase {
  min-height: 20px;
  color: #bcded9;
  font-size: 13px;
}

.v3 #settleTitle {
  color: #fffaf0;
  font-size: 25px;
  font-weight: 680;
  line-height: 1.48;
}

.v3 #settleBody {
  color: rgba(248, 244, 255, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

.v3 .settle-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.v3 .settle-actions button {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: transparent;
  color: #f8f4ff;
  font-size: 14px;
  font-weight: 680;
}

.v3 .settle-actions button.primary {
  border-color: #efe0a4;
  background: #f0dd96;
  color: #2e2940;
}

@keyframes settle-breathe {
  0% { transform: scale(0.82); opacity: 0.72; }
  42% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.88); opacity: 0.9; }
}

.v3 .review-boundary {
  margin: 0;
  color: #8a858f;
  font-size: 12px;
  line-height: 1.65;
}

.v3 .weekly-clues-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(82, 66, 112, 0.14);
}

.v3 .weekly-clues-head {
  display: grid;
  gap: 5px;
}

.v3 .weekly-clue-list {
  display: grid;
  gap: 9px;
}

.v3 .weekly-clue-list p {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.v3 .weekly-clue-list p > span {
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: #cfac55;
}

@media (max-width: 350px) {
  .v3 .history-item {
    grid-template-columns: 1fr;
  }

  .v3 .history-actions {
    display: flex;
  }

  .v3 .history-actions button {
    flex: 1 1 0;
    min-width: 0;
  }

  .v3 .closure-actions {
    grid-template-columns: 1fr;
  }

  .v3 .evening-hold-actions,
  .v3 .evening-complete-actions {
    grid-template-columns: 1fr;
  }
}
