:root {
  --v5-night: #171421;
  --v5-ink: #332f39;
  --v5-muted: #756f7a;
  --v5-violet: #675d91;
  --v5-lilac: #e7e2f0;
  --v5-mint: #79aa9d;
  --v5-paper: #fcfbf8;
  --v5-line: rgba(51, 47, 57, 0.1);
}

body.v5 {
  letter-spacing: 0;
}

.v5 .mobile-shell {
  background: var(--v5-paper);
}

.v5 .section-panel {
  padding-inline: clamp(18px, 5.6vw, 24px);
}

.v5 .section-title h1,
.v5 .section-title h2,
.v5 .response-card h3,
.v5 .conversation-stage h3,
.v5 .conversation-organization h3,
.v5 .conversation-next h3 {
  letter-spacing: 0;
  font-weight: 560;
}

.v5 .section-title p,
.v5 .response-card p,
.v5 .conversation-stage p,
.v5 .conversation-organization p,
.v5 .conversation-next p {
  letter-spacing: 0;
}

.v5 .response-area {
  display: grid;
  gap: 0;
}

.v5 .response-card {
  padding: 4px 0 22px;
  border: 0;
  background: transparent;
}

.v5 .response-card h3 {
  margin-bottom: 13px;
  color: #625881;
  font-size: 13px;
}

.v5 .response-card .echo-primary {
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  color: #39343f;
  font-size: 18px;
  line-height: 1.9;
}

.v5 .echo-details {
  margin-top: 16px;
  border-top: 1px solid var(--v5-line);
}

.v5 .echo-details summary {
  padding-block: 14px 8px;
  color: var(--v5-muted);
  font-size: 13px;
}

.v5 .feedback-row {
  gap: 8px;
}

.v5 .small-action {
  min-height: 42px;
  padding-inline: 13px;
  color: #5c5564;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--v5-line);
}

.v5 .small-action.is-active {
  color: #fff;
  background: #655b8c;
  border-color: #655b8c;
}

.v5 .thumb-nav button:focus-visible,
.v5 button:focus-visible,
.v5 a:focus-visible {
  outline: 2px solid rgba(103, 93, 145, 0.6);
  outline-offset: 2px;
}

.v5 .conversation-stage {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 13px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--v5-line);
}

.v5 .stage-mark {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--v5-mint);
  box-shadow: 0 0 0 5px rgba(121, 170, 157, 0.12);
}

.v5 .conversation-stage h3 {
  margin: 0 0 8px;
  color: #4f4957;
  font-size: 16px;
}

.v5 .conversation-stage p {
  margin: 0;
  color: var(--v5-muted);
  font-size: 14px;
  line-height: 1.8;
}

.v5 .conversation-stage small,
.v5 .conversation-stage em {
  display: block;
  color: #8a8490;
  font-size: 11px;
  font-style: normal;
  line-height: 1.65;
}

.v5 .conversation-stage small {
  margin-bottom: 6px;
}

.v5 .conversation-stage em {
  margin-top: 10px;
}

.v5 .conversation-stage.is-reflecting {
  margin-inline: -10px;
  padding: 23px 10px 24px;
  background: rgba(232, 242, 238, 0.42);
  border-top-color: transparent;
}

.v5 .conversation-stage.is-ready {
  margin-inline: -10px;
  padding: 23px 10px 24px;
  background: linear-gradient(110deg, rgba(231, 226, 240, 0.58), rgba(232, 242, 238, 0.5));
  border-top-color: transparent;
}

.v5 .organize-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  background: #5e547f;
  border: 0;
  border-radius: 7px;
}

.v5 .organize-button:disabled {
  opacity: 0.68;
}

.v5 .conversation-organization {
  padding: 26px 0 28px;
  border-block: 1px solid var(--v5-line);
}

.v5 .organization-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.v5 .organization-heading > span {
  color: #7c70a5;
  font-size: 17px;
}

.v5 .organization-heading p,
.v5 .organization-heading h3 {
  margin: 0;
}

.v5 .organization-intro {
  max-width: 34em;
  margin: -6px 0 22px 29px;
  color: #77707c;
  font-size: 13px;
  line-height: 1.78;
}

.v5 .organization-heading p {
  margin-bottom: 4px;
  color: #8a8490;
  font-size: 11px;
}

.v5 .organization-heading h3 {
  color: #443d4d;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
}

.v5 .organization-flow {
  display: grid;
  gap: 0;
}

.v5 .organization-flow > p {
  position: relative;
  margin: 0;
  padding: 0 0 20px 18px;
  color: #514b56;
  font-size: 15px;
  line-height: 1.86;
  border-left: 1px solid rgba(103, 93, 145, 0.23);
}

.v5 .organization-flow > p::before {
  position: absolute;
  top: 8px;
  left: -4px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #9488b5;
}

.v5 .organization-flow p span {
  display: block;
  margin-bottom: 5px;
  color: #81788d;
  font-size: 11px;
}

.v5 .organization-flow .organization-hold {
  color: #39343f;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
}

.v5 .organization-flow .organization-tonight {
  margin: 4px 0 0;
  padding: 17px 18px;
  color: #4e4860;
  background: rgba(231, 226, 240, 0.55);
  border-left: 0;
}

.v5 .organization-flow .organization-tonight::before {
  display: none;
}

.v5 .organization-flow .organization-question {
  padding-top: 18px;
  color: #544a74;
  font-weight: 520;
  border-left: 0;
}

.v5 .weekly-clues-area {
  margin-top: 28px;
}

.v5 .weekly-portrait {
  padding: 26px 0 12px;
  border-top: 1px solid var(--v5-line);
}

.v5 .weekly-portrait-head > span {
  color: #70668e;
  font-size: 11px;
}

.v5 .weekly-portrait-head h3 {
  margin: 7px 0 8px;
  color: #3f3948;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 23px;
  font-weight: 560;
  line-height: 1.45;
}

.v5 .weekly-portrait-head p {
  max-width: 30em;
  margin: 0;
  color: #7c7580;
  font-size: 12px;
  line-height: 1.7;
}

.v5 .weekly-tide {
  position: relative;
  margin-top: 22px;
  padding: 17px 0 15px;
  border-block: 1px solid rgba(51, 47, 57, 0.08);
}

.v5 .weekly-tide-labels {
  position: absolute;
  z-index: 2;
  top: 13px;
  bottom: 55px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #928b95;
  font-size: 9px;
  pointer-events: none;
}

.v5 .weekly-tide-chart {
  height: 132px;
  padding-left: 28px;
}

.v5 .weekly-tide-chart svg {
  display: block;
  width: 100%;
  height: 132px;
  overflow: visible;
}

.v5 .weekly-guide {
  fill: none;
  stroke: rgba(103, 93, 145, 0.1);
  stroke-dasharray: 2 7;
  stroke-width: 1;
}

.v5 .weekly-tide-line {
  fill: none;
  stroke: url("#weeklyTideGradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(103, 93, 145, 0.16));
}

.v5 .weekly-tide-halo {
  fill: rgba(121, 170, 157, 0.16);
}

.v5 .weekly-tide-dot {
  fill: #fff;
  stroke: #7166a0;
  stroke-width: 2.6;
}

.v5 .weekly-day-buttons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-top: 3px;
}

.v5 .weekly-day-buttons button {
  min-width: 0;
  min-height: 39px;
  padding: 4px 0;
  color: #89828d;
  font: inherit;
  font-size: 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.v5 .weekly-day-buttons button i {
  display: block;
  width: 4px;
  height: 4px;
  margin: 0 auto 5px;
  background: #d9d4dd;
  border-radius: 50%;
}

.v5 .weekly-day-buttons button.has-report i {
  background: #8579aa;
}

.v5 .weekly-day-buttons button.active {
  color: #4e4665;
  background: rgba(231, 226, 240, 0.5);
}

.v5 .weekly-day-buttons button.active i {
  background: #6fa99b;
  box-shadow: 0 0 0 4px rgba(111, 169, 155, 0.13);
}

.v5 .weekly-day-detail {
  min-height: 38px;
  margin: 10px 0 0;
  color: #6f6873;
  font-size: 11px;
  line-height: 1.65;
}

.v5 .weekly-portrait-stories {
  display: grid;
  margin-top: 18px;
}

.v5 .weekly-portrait-stories article {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  padding: 17px 0;
  border-top: 1px solid rgba(51, 47, 57, 0.08);
}

.v5 .weekly-portrait-stories article > span {
  padding-top: 2px;
  color: #aaa2ad;
  font-size: 9px;
}

.v5 .weekly-portrait-stories strong {
  display: block;
  margin-bottom: 7px;
  color: #544c61;
  font-size: 13px;
  font-weight: 560;
}

.v5 .weekly-portrait-stories p {
  margin: 0;
  color: #6d6671;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
}

.v5 .weekly-portrait-stories .weekly-open-thread {
  margin-inline: -10px;
  padding-inline: 10px;
  background: linear-gradient(100deg, rgba(231, 226, 240, 0.44), rgba(226, 241, 236, 0.38));
  border-top-color: transparent;
}

.v5 .weekly-portrait-fit {
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(51, 47, 57, 0.08);
}

.v5 .weekly-portrait-fit > span {
  display: block;
  margin-bottom: 10px;
  color: #716a76;
  font-size: 12px;
}

.v5 .weekly-portrait-fit > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v5 .weekly-portrait-fit button,
.v5 .weekly-portrait-actions button,
.v5 .weekly-portrait-collapsed button {
  min-height: 42px;
  padding: 0 12px;
  color: #5d5666;
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--v5-line);
  border-radius: 7px;
}

.v5 .weekly-portrait-fit > strong {
  color: #5f826f;
  font-size: 12px;
  font-weight: 560;
}

.v5 .weekly-portrait-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.v5 .weekly-portrait-actions button.primary {
  color: #fff;
  background: #615781;
  border-color: #615781;
}

.v5 .weekly-portrait-boundary {
  margin: 12px 0 0;
  color: #97909a;
  font-size: 10px;
  line-height: 1.65;
}

.v5 .weekly-portrait-collapsed {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 11px;
  padding: 21px 0;
  border-top: 1px solid var(--v5-line);
}

.v5 .weekly-portrait-collapsed > span {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: #86aa9f;
  border-radius: 50%;
}

.v5 .weekly-portrait-collapsed strong,
.v5 .weekly-portrait-collapsed p {
  display: block;
  margin: 0;
}

.v5 .weekly-portrait-collapsed strong {
  color: #534c5b;
  font-size: 13px;
}

.v5 .weekly-portrait-collapsed p {
  margin-top: 4px;
  color: #89828d;
  font-size: 11px;
  line-height: 1.55;
}

.v5 .weekly-portrait-collapsed button {
  grid-column: 2;
  justify-self: start;
  min-height: 36px;
}

@media (max-width: 350px) {
  .v5 .weekly-portrait-head h3 {
    font-size: 20px;
  }

  .v5 .weekly-tide-chart {
    padding-left: 23px;
  }

  .v5 .weekly-portrait-actions {
    grid-template-columns: 1fr;
  }
}

.v5 .organization-flow .organization-question::before {
  display: none;
}

.v5 .organization-boundary {
  margin: 0 0 18px;
  color: #8a8490;
  font-size: 12px;
  line-height: 1.7;
}

.v5 .organization-feedback {
  padding-top: 18px;
  border-top: 1px solid var(--v5-line);
}

.v5 .organization-feedback > p {
  margin: 0 0 11px;
  color: #665e6d;
  font-size: 13px;
}

.v5 .organization-feedback > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v5 .conversation-next {
  margin: 0;
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--v5-line);
}

.v5 .conversation-next h3 {
  color: #49434f;
  font-size: 16px;
}

.v5 .listening-composer {
  padding-block: 26px 30px;
}

.v5 .continuation-invite > span {
  display: block;
  margin-bottom: 5px;
  color: #81779a;
  font-size: 11px;
}

.v5 .continuation-invite h3,
.v5 .continuation-invite p {
  margin: 0;
}

.v5 .continuation-invite h3 {
  color: #403a47;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 20px;
  font-weight: 560;
}

.v5 .continuation-invite p {
  margin-top: 9px;
  color: #706976;
  font-size: 14px;
  line-height: 1.75;
}

.v5 .continuation-prompts {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.v5 .continuation-prompts button {
  position: relative;
  min-height: 42px;
  padding: 9px 34px 9px 13px;
  color: #5b5365;
  font: inherit;
  font-size: 13px;
  text-align: left;
  background: rgba(231, 226, 240, 0.38);
  border: 1px solid rgba(103, 93, 145, 0.1);
  border-radius: 6px;
}

.v5 .continuation-prompts button::after {
  position: absolute;
  top: 50%;
  right: 13px;
  content: "›";
  color: #8b81a2;
  font-size: 19px;
  transform: translateY(-52%);
}

.v5 .listening-composer .followup-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.v5 .listening-composer .followup-form textarea {
  width: 100%;
  min-height: 116px;
  padding: 14px;
  color: #454049;
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(103, 93, 145, 0.15);
  border-radius: 7px;
}

.v5 .listening-composer .followup-form textarea:focus {
  border-color: rgba(103, 93, 145, 0.48);
  outline: 3px solid rgba(103, 93, 145, 0.09);
}

.v5 .listening-composer .followup-voice-strip {
  margin: 0;
}

.v5 .continuation-submit {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(104px, 0.8fr);
  gap: 8px;
}

.v5 .continuation-submit .primary-button,
.v5 .continuation-submit .subtle-button {
  width: 100%;
  min-height: 46px;
  margin: 0;
}

.v5 .listening-composer .review-path {
  margin-top: 14px;
}

.v5 .response-evening-step,
.v5 .self-reflection,
.v5 .context-disclosure,
.v5 .memory-panel {
  margin: 0;
  border-inline: 0;
  border-radius: 0;
  box-shadow: none;
}

.v5 .response-evening-step {
  padding: 24px 0;
  background: transparent;
  border-top: 0;
}

.v5 .context-disclosure {
  order: 4;
}

@media (max-width: 350px) {
  .v5 .organization-feedback > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v5 .organization-feedback .small-action {
    width: 100%;
  }
}

@media (max-width: 430px) and (min-height: 651px) and (max-height: 880px) {
  .v5 .talk-box {
    height: 170px;
    min-height: 170px;
  }

  .v5 .voice-strip {
    padding-block: 8px;
  }

  .v5 .voice-strip p {
    display: none;
  }

  .v5 .primary-button {
    margin-top: 10px;
  }
}

@media (max-height: 650px) {
  .v5 .app-intro {
    height: 170px;
    min-height: 170px;
    padding-bottom: 12px;
    overflow: hidden;
  }

  .v5 .app-intro::after {
    bottom: -68px;
    height: 76px;
  }

  .v5 .mobile-top {
    min-height: 45px;
    padding-top: 7px;
  }

  .v5 .moon-hero {
    height: 116px;
    padding-top: 2px;
  }

  .v5 .moon-phases {
    margin-top: 2px;
  }

  .v5 .moon-phase {
    width: 17px;
    height: 17px;
  }

  .v5 .moon-phase-full {
    width: 34px;
    height: 34px;
  }

  .v5 .moon-hero-copy {
    margin-top: 5px;
  }

  .v5 .moon-hero-copy h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .v5 .moon-hero-copy p {
    margin-top: 3px;
    font-size: 11px;
  }

  .v5 .moon-hero-copy small {
    display: none;
  }

  .v5 .primary-panel {
    padding-top: 2px;
  }

  .v5 .section-title {
    margin-bottom: 5px;
  }

  .v5 .section-title h2 {
    font-size: 18px;
  }

  .v5 .talk-box {
    height: 106px;
    min-height: 106px;
  }

  .v5 .talk-box textarea {
    font-size: 16px;
    line-height: 1.62;
  }

  .v5 .voice-strip {
    margin-top: 6px;
    padding-block: 6px;
  }

  .v5 .voice-action {
    min-height: 44px;
  }

  .v5 .voice-strip p {
    display: none;
  }

  .v5 .self-check {
    margin-top: 7px;
  }

  .v5 .self-check > summary {
    min-height: 35px;
    padding-block: 7px;
    font-size: 11px;
  }

  .v5 .primary-button {
    min-height: 44px;
    margin-top: 7px;
  }
}

@media (max-width: 350px) and (max-height: 650px) {
  .v5 .moon-hero-copy {
    display: none;
  }

  .v5 .moon-hero {
    height: 108px;
  }
}

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