:root {
  color-scheme: light;
  --bg: #272727;
  --paper: #202020;
  --paper-soft: #303030;
  --gold: #ffe400;
  --gold-deep: #ffe400;
  --gold-soft: rgba(255, 228, 0, 0.45);
  --ink: #f7f1df;
  --text: #e7dfcd;
  --muted: #b7b0a3;
  --line: #4a4a4a;
  --line-strong: #747474;
  --blue: #1f4f3d;
  --blue-deep: #14a76c;
  --green-soft: rgba(20, 167, 108, 0.14);
  --danger: #ff652f;
  --button-top: #ff7a3d;
  --button-bottom: #ff652f;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  --radius: 8px;
  --radius-lg: 12px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 180ms;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.membership-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 560px;
}

.membership-panel .mini-field {
  min-width: 220px;
}

.membership-status {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 16px;
  color: var(--gold);
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid #565656;
  border-radius: var(--radius);
  font-weight: 800;
}

.chat-shell {
  max-width: 980px;
  margin: 0 auto;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  max-height: 52vh;
  overflow: auto;
  padding: 20px;
  background: rgba(24, 24, 24, 0.84);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
}

.chat-message {
  max-width: min(760px, 92%);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid #4a4a4a;
  border-radius: var(--radius);
}

.chat-message.user {
  align-self: flex-end;
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.chat-message strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat-message p {
  margin: 0;
  line-height: 1.55;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
}

.chat-form textarea {
  min-height: 86px;
  resize: vertical;
}

.paywall-card {
  margin-top: 18px;
  padding: 22px;
  color: var(--text);
  background: rgba(24, 24, 24, 0.88);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
}

.paywall-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}

.paywall-card p {
  margin: 0 0 16px;
  color: #d5cec1;
}

.paywall-link {
  display: inline-flex;
  text-decoration: none;
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  overscroll-behavior: contain;
}

.consent-overlay.active {
  display: grid;
}

.signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
}

.signup-overlay.active {
  display: grid;
}

.foundations-required-overlay {
  position: fixed;
  inset: 0;
  z-index: 56;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(8px);
}

.foundations-required-overlay.active {
  display: grid;
}

.consent-dialog,
.signup-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 44px);
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  color: var(--text);
  background: #1d1d1d;
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.consent-page {
  min-height: 100dvh;
  padding: 32px 18px;
  background: #151515;
}

.consent-page-document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 44px);
  color: #efe7d8;
  background: #1f1f1f;
  border: 1px solid rgba(216, 173, 95, 0.32);
  border-radius: 8px;
}

.consent-page-document h1 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.98;
}

.consent-page-document h2 {
  margin: 28px 0 8px;
  color: var(--gold);
  font-size: 15px;
}

.consent-page-document p {
  color: #d5cec1;
  line-height: 1.65;
}

.consent-page-back {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.therapist-consent-dialog {
  width: min(760px, calc(100vw - 36px));
}

.signup-dialog {
  width: min(340px, calc(100vw - 36px));
  padding: 22px;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 32, 32, 0.9), rgba(32, 32, 32, 0.9)) padding-box,
    linear-gradient(135deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.72)) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.foundations-required-dialog {
  position: relative;
  width: min(380px, calc(100vw - 36px));
  padding: 22px;
  color: var(--text);
  background: #1f1f1f;
  border: 1px solid rgba(255, 228, 0, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.consent-dialog h2,
.signup-dialog h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.signup-dialog h2 {
  margin-bottom: 16px;
  padding-right: 34px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.foundations-required-dialog h2 {
  margin: 0 0 16px;
  padding-right: 34px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.consent-dialog p,
.signup-dialog p {
  margin: 0 0 18px;
  color: #d5cec1;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #d5cec1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #565656;
  border-radius: 999px;
}

.signup-link {
  display: flex;
  width: 100%;
  min-height: 38px;
  min-width: 0;
  margin-top: 22px;
  padding: 8px 14px;
  align-items: center;
  justify-content: center;
  color: #e7dfcd;
  background:
    linear-gradient(rgba(32, 32, 32, 0.7), rgba(32, 32, 32, 0.7)) padding-box,
    linear-gradient(135deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.72)) border-box;
  border: 2px solid transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.signup-link:hover:not(:disabled),
.signup-link:focus-visible {
  color: #fff8df;
  box-shadow: 0 0 0 1px rgba(255, 228, 0, 0.18), 0 14px 32px rgba(0, 0, 0, 0.24);
}

.foundations-required-dialog .foundations-required-link {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  padding: 12px 16px;
  color: #101010;
  background: var(--gold);
  border-color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(18, 18, 18, 0.94), rgba(31, 79, 61, 0.82)),
    url("assets/aureliux-ambient.png");
  background-position: center;
  background-size: cover;
}

.upgrade-overlay.upgrade-overlay--hidden {
  display: none;
}

body[data-public-free="true"] .toggle [data-view="payment"],
body[data-public-free="true"] .first-entry-guide,
body[data-public-free="true"] .account-link,
body[data-public-free="true"] .reflection-connect-button {
  display: none !important;
}

body[data-public-free="true"] #timeline.is-first-entry .timeline {
  display: none !important;
}

body[data-public-free="true"] #timeline.is-first-entry .workspace {
  grid-template-columns: 86px minmax(0, 760px) !important;
  justify-content: center;
}

body[data-public-free="true"] #timeline.is-first-entry .memory-workspace {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide {
  display: grid !important;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 86px;
  min-height: 310px;
  padding: 22px 12px;
  justify-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide h3,
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide strong,
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide p,
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .gold-line,
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .next-step > div:not(.step-icon),
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .reassurance {
  display: none !important;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .next-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 60px;
  margin: 0;
  padding: 0 0 36px;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .next-step::before {
  top: 60px;
  bottom: 0;
  left: 30px;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .step-icon {
  color: transparent;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18) 27%, transparent 34%),
    linear-gradient(135deg, rgba(255, 228, 0, 0.96), rgba(20, 167, 108, 0.9) 52%, rgba(255, 101, 47, 0.86));
  border-color: rgba(255, 228, 0, 0.72);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  font-size: 0;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .next-step:nth-of-type(3) .step-icon,
body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide .next-step:nth-of-type(5) .step-icon {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16) 28%, transparent 35%),
    linear-gradient(135deg, rgba(20, 167, 108, 0.98), rgba(62, 197, 134, 0.94) 48%, rgba(255, 228, 0, 0.68));
  border-color: rgba(20, 167, 108, 0.8);
}

@media (max-width: 760px) {
  body[data-public-free="true"] #timeline.is-first-entry .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center;
    justify-content: center;
    justify-items: center;
  }

  body[data-public-free="true"] #timeline.is-first-entry .memory-workspace {
    grid-column: 1;
    width: min(100%, 620px);
  }

  body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide {
    display: none !important;
  }

  body[data-public-free="true"] #timeline.is-first-entry .memory-card,
  body[data-public-free="true"] #timeline.is-first-entry .story-panel,
  body[data-public-free="true"] #timeline.is-first-entry .first-entry-actions {
    width: 100%;
    max-width: none;
  }
}

body[data-public-free="true"] #timeline.is-first-entry .memory-workspace.has-rendered-analysis #mobileAddMoreMemories {
  display: inline-flex !important;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-actions .primary,
body[data-public-free="true"] #timeline.is-first-entry #mobileAddMoreMemories {
  width: min(310px, 100%);
  height: 58px;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-align: center;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
}

body[data-public-free="true"] #timeline.is-first-entry #mobileAddMoreMemories {
  color: #151515;
  background: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-actions .primary:hover:not(:disabled),
body[data-public-free="true"] #timeline.is-first-entry #mobileAddMoreMemories:hover:not(:disabled) {
  box-shadow: 0 22px 50px rgba(255, 101, 47, 0.34);
}

body[data-public-free="true"] #timeline.is-first-entry #mobileAddMoreMemories:hover:not(:disabled) {
  color: #151515;
  box-shadow: none;
}

.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(10, 10, 10, 0.68);
  backdrop-filter: blur(14px);
}

.waitlist-overlay.active {
  display: grid;
}

.waitlist-dialog {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  padding: 24px;
  color: var(--text);
  background: #1f1f1f;
  border: 1px solid rgba(255, 228, 0, 0.36);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.waitlist-dialog h2 {
  margin: 0 40px 12px 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.waitlist-dialog p {
  margin: 0 0 18px;
  color: #d5cec1;
  line-height: 1.55;
}

.waitlist-form {
  display: grid;
  gap: 14px;
}

.waitlist-form .mini-field {
  padding: 0;
  border-left: 0;
}

.waitlist-form .mini-field strong {
  margin-bottom: 7px;
  color: var(--gold);
}

.waitlist-form .mini-field strong span {
  color: #b7b0a3;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.waitlist-form .mini-field input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: #fff8df;
  background: #111;
  border: 1px solid rgba(255, 228, 0, 0.42);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 223, 0.04);
}

.waitlist-form .mini-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 228, 0, 0.14);
  outline: 0;
}

.waitlist-submit {
  width: 100%;
  min-height: 44px;
}

.waitlist-status {
  min-height: 20px;
  margin: 0;
  color: #d5cec1;
  font-size: 13px;
  font-weight: 700;
}

.upgrade-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 228, 0, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
}

.upgrade-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(34px, 7vw, 64px);
  text-align: center;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid rgba(255, 228, 0, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.upgrade-dialog span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.upgrade-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 8vw, 82px);
  font-weight: 600;
  line-height: 0.95;
}

.upgrade-dialog p {
  margin: 18px 0 0;
  color: #d5cec1;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}

.upgrade-password-form {
  display: grid;
  gap: 10px;
  width: min(340px, 100%);
  margin: 28px auto 0;
  text-align: left;
}

.upgrade-password-form label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upgrade-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.upgrade-password-row input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 228, 0, 0.34);
  border-radius: var(--radius);
  font: inherit;
}

.upgrade-password-row button {
  min-height: 46px;
  padding: 0 18px;
  color: #101010;
  background: var(--gold);
  border-color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.upgrade-password-status {
  min-height: 20px;
  margin: 0;
  color: #ffb08f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #4a4a4a;
  border-radius: var(--radius);
}

.consent-check input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.consent-check--optional {
  margin-top: 12px;
  border-color: rgba(216, 173, 95, 0.45);
  background: rgba(216, 173, 95, 0.06);
}

.consent-summary {
  margin: 14px 0;
  padding: 12px 14px;
  color: #d5cec1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid #4a4a4a;
  border-radius: var(--radius);
}

.consent-summary summary {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.consent-summary p {
  margin: 10px 0 0;
  color: #d5cec1;
  font-size: 13px;
  line-height: 1.5;
}

.consent-link-row {
  margin: 14px 0;
  font-size: 13px;
  font-weight: 800;
}

.consent-link-row a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-document {
  max-height: min(44vh, 430px);
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  color: #e7dfcd;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid #4a4a4a;
  border-radius: var(--radius);
  font: 500 12px/1.5 Inter, system-ui, sans-serif;
}

.consent-document--full {
  max-height: min(48vh, 520px);
}

.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .membership-panel,
  .chat-form,
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .membership-panel .mini-field,
  .chat-form button,
  .consent-actions button {
    width: 100%;
  }

  .consent-overlay {
    align-items: start;
    min-height: 100dvh;
    padding: 10px;
  }

  .consent-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .therapist-consent-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 18px;
    overflow: hidden;
  }

  .therapist-consent-dialog h2 {
    font-size: 30px;
  }

  .therapist-consent-dialog .consent-document--full {
    flex: 1 1 auto;
    min-height: min(34dvh, 180px);
    max-height: none;
  }

  .therapist-consent-dialog .consent-check {
    margin-top: 12px;
    padding: 12px;
  }

  .therapist-consent-dialog .consent-actions {
    flex: 0 0 auto;
    margin-top: 12px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 228, 0, 0.045) 0 1px, transparent 1px 33%),
    radial-gradient(circle at 20% 16%, rgba(20, 167, 108, 0.13), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(255, 101, 47, 0.12), transparent 26%),
    #272727;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.main {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  padding: 0 44px 48px;
}

.main::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 30%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(39, 39, 39, 0.12), rgba(39, 39, 39, 0.66) 50%, rgba(39, 39, 39, 0.88)),
    url("assets/aureliux-ambient.png");
  background-position: center;
  background-size: cover;
  opacity: 0.18;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  margin: 0 -44px 34px;
  padding: 10px 44px 12px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(22px) saturate(1.15);
  border-bottom: 1px solid rgba(201, 193, 180, 0.62);
  box-shadow: 0 8px 34px rgba(41, 34, 23, 0.05);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--gold-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 240, 0.86));
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(36, 32, 27, 0.08);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.toggle {
  display: flex;
  gap: 4px;
  margin-top: 0;
  padding: 5px;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(201, 193, 180, 0.68);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(41, 34, 23, 0.07);
}

.toggle button {
  padding: 11px 24px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.toggle button.active {
  color: var(--blue-deep);
  background: linear-gradient(180deg, #ffffff, #f4f2ed);
  border: 1px solid rgba(49, 76, 70, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(36, 32, 27, 0.06);
}

.view {
  display: none;
  position: relative;
  z-index: 1;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto 30px;
  padding-top: 0;
  text-align: center;
}

.hero::before {
  content: "";
  display: block;
  width: min(520px, 72vw);
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, rgba(169, 154, 120, 0.14), rgba(49, 76, 70, 0.14), transparent);
}

.hero::after {
  display: none;
}

.hero h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 68px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h2 span {
  color: var(--gold);
  font-size: 30px;
  margin-left: 8px;
}

.hero p {
  max-width: 650px;
  margin: 18px auto 0;
  color: #5f625d;
  font-size: 17px;
  line-height: 1.65;
}

.trust-row {
  display: none;
}

#timeline.is-first-entry .trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  margin-top: 26px;
  color: #6f665e;
  font-size: 14px;
}

.trust-row span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.trust-row span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: rgba(201, 150, 58, 0.12);
  border: 1px solid rgba(201, 150, 58, 0.28);
  border-radius: 999px;
}

.aureliux-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 30px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 28px;
  color: #e7dfcd;
  background: rgba(24, 24, 24, 0.86);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.intro-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.intro-copy h3 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
}

.intro-copy p {
  max-width: 760px;
  margin: 0;
  color: #d5cec1;
  font-size: 15px;
  line-height: 1.68;
}

.intro-copy p + p {
  margin-top: 12px;
}

.intro-principles {
  display: grid;
  gap: 12px;
}

.intro-principles article {
  padding: 14px 16px;
  background: #202020;
  border: 1px solid #4c4c4c;
  border-radius: var(--radius-md);
}

.intro-principles strong {
  display: block;
  margin-bottom: 5px;
  color: #fff8df;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.intro-principles p {
  margin: 0;
  color: #d5cec1;
  font-size: 13px;
  line-height: 1.48;
}

.workspace {
  display: grid;
  grid-template-columns: 210px minmax(560px, 760px) 350px;
  gap: 30px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  --timeline-dot-column: 44px;
  --timeline-dot-size: 34px;
  --timeline-dot-offset: calc((var(--timeline-dot-column) - var(--timeline-dot-size)) / 2);
  --timeline-line-x: calc(var(--timeline-dot-column) / 2);
  padding-top: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 28px;
  bottom: 34px;
  left: var(--timeline-line-x);
  width: 2px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 228, 0, 0.08), rgba(255, 228, 0, 0.65) 18%, rgba(20, 167, 108, 0.78) 58%, rgba(255, 101, 47, 0.58));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 228, 0, 0.16);
}

.timeline-list {
  display: grid;
  gap: 0;
}

.memory-item,
.progress-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-dot-column) minmax(0, 1fr);
  gap: 12px;
  min-height: 54px;
  margin-bottom: 58px;
  align-items: start;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
}

.memory-item {
  padding: 0;
}

.timeline-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 154px;
  padding: 6px;
  background: rgba(22, 22, 21, 0.96);
  border: 1px solid rgba(231, 223, 205, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.timeline-context-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #ffe0d6;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: 700 13px/1 Inter, system-ui, sans-serif;
  text-align: left;
}

.timeline-context-menu button:hover,
.timeline-context-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.memory-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 56px;
  z-index: -1;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(201, 193, 180, 0.62);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(41, 34, 23, 0.06);
}

.memory-item.active::after {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.94));
  border-color: rgba(49, 76, 70, 0.28);
}

.timeline-dot,
.progress-step span {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  margin-left: var(--timeline-dot-offset);
  place-items: center;
  color: var(--gold-deep);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 34%, transparent 36%),
    #f6faf7;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  box-shadow:
    0 0 0 5px rgba(255, 228, 0, 0.08),
    0 8px 22px rgba(36, 32, 27, 0.14);
  font-size: 13px;
}

.memory-item.active .timeline-dot {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.7), transparent 30%),
    var(--blue-deep);
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(20, 167, 108, 0.2),
    0 0 22px rgba(20, 167, 108, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.memory-item > .memory-age {
  display: block;
  grid-column: 2;
  min-width: 0;
  margin: 0;
  padding: 16px 16px 0;
  color: var(--gold-deep);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.memory-item > strong {
  display: block;
  grid-column: 2;
  padding: 5px 16px 0;
  overflow-wrap: anywhere;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 15px;
}

.memory-item > span:last-child {
  display: block;
  grid-column: 2;
  min-height: 38px;
  padding: 5px 16px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.35;
}

.memory-item.active > .memory-age,
.memory-item.active > strong,
.memory-item.active > span:last-child {
  background: transparent;
  border-color: transparent;
}

.progress-step strong {
  grid-column: 2;
  max-width: 120px;
  margin: 0;
  color: #6f665e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.timeline-empty {
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.timeline-empty strong {
  display: block;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
}

.timeline-empty span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.new-memory {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(32, 58, 52, 0.2);
  font-size: 15px;
  font-weight: 700;
}

#timeline.is-first-entry .new-memory {
  display: none;
}

#timeline.is-first-entry .first-entry-add-memory {
  display: block;
  grid-column: 2;
  width: min(220px, 100%);
  margin: -26px 0 0 calc(var(--timeline-dot-column) + 12px);
}

.privacy-card {
  width: calc(100% - 44px);
  margin-top: 24px;
  margin-left: 44px;
  padding: 16px 14px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.privacy-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.memory-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.9)),
    rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(201, 193, 180, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.08);
}

.memory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(169, 154, 120, 0.2), rgba(49, 76, 70, 0.18), transparent);
}

.memory-head {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 96px minmax(150px, 190px) minmax(180px, 230px);
  gap: 0;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(201, 193, 180, 0.62);
}

.memory-title {
  min-width: 0;
}

.eyebrow {
  display: none;
}

.memory-title {
  border-left: 0;
  padding-left: 0;
}

#memoryTitle {
  width: 100%;
  margin-top: 3px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  line-height: 1.3;
}

.mini-field {
  min-width: 0;
  padding: 0 18px;
  color: var(--muted);
  border-left: 1px solid rgba(201, 193, 180, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.mini-field strong {
  display: block;
  color: #4e4a45;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mini-field strong span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.mini-field input {
  width: 100%;
  margin-top: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
}

.mini-field select {
  width: 100%;
  min-height: 24px;
  margin-top: 3px;
  padding: 0 20px 0 0;
  color: #fff8df;
  background: #202020;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  line-height: 24px;
  text-align: left;
  text-indent: 0;
}

.mini-field select option {
  color: #fff8df;
  background: #202020;
}

.other-feeling {
  display: none;
  margin-top: 8px;
  border-bottom: 1px solid rgba(201, 193, 180, 0.72);
}

.other-feeling.active {
  display: block;
}

.journal-box {
  position: relative;
}

.save-memory-button {
  min-height: 34px;
  margin-top: 12px;
  padding: 0 16px;
  color: #504b45;
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(201, 193, 180, 0.72);
  border-radius: 8px;
  font-size: 13px;
}

.memory-validation {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #fff4dc;
  background: rgba(161, 64, 39, 0.26);
  border: 1px solid rgba(255, 122, 61, 0.45);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.memory-validation[hidden] {
  display: none;
}

textarea {
  width: 100%;
  min-height: 310px;
  margin-top: 24px;
  padding: 28px 30px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(201, 193, 180, 0.64);
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 2px 14px rgba(72, 61, 45, 0.04);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(49, 76, 70, 0.42);
}

textarea:focus {
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 2px 14px rgba(72, 61, 45, 0.04),
    0 0 0 4px rgba(49, 76, 70, 0.08);
}

textarea::placeholder {
  color: #9a9188;
  font-style: italic;
}

.textarea-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
  color: #9a9188;
  font-size: 12px;
  pointer-events: none;
}

.prompt-area {
  display: none;
  margin-top: 28px;
}

.prompt-area p {
  margin: 0 0 11px;
  color: #655d56;
  font-size: 14px;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 8px 13px;
  color: #65708d;
  background: #f6f7fb;
  border: 1px solid #d9ddec;
  border-radius: 999px;
  font-size: 12px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

#timeline.is-first-entry .story-actions,
#timeline.is-first-entry .analysis-status,
#timeline.is-first-entry .insights-area,
#timeline.is-first-entry .reveal-button {
  display: none;
}

.actions {
  display: none;
}

#timeline.is-first-entry .actions {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 22px;
}

.analyze-progress {
  display: none;
  width: 100%;
  margin: 6px 0 0;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(49, 76, 70, 0.24);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  overflow: hidden;
}

.analyze-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue-deep);
}

.analyze-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: translateX(-100%);
  animation: aureliuxThink 1.8s ease-in-out infinite;
}

@keyframes aureliuxThink {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

.analyze-progress.active {
  display: block;
}

.report-loading {
  max-width: 1080px;
  margin: 0 auto;
}

#timeline.is-analyzing .analysis-status {
  display: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.primary {
  padding: 18px 84px;
  color: #fff;
  background: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(32, 58, 52, 0.22);
  font-size: 17px;
  font-weight: 700;
}

.primary:hover:not(:disabled),
.reveal-button:hover:not(:disabled),
.new-memory:hover:not(:disabled) {
  box-shadow: 0 20px 44px rgba(32, 58, 52, 0.26);
}

.secondary:hover:not(:disabled),
.save-memory-button:hover:not(:disabled) {
  border-color: rgba(49, 76, 70, 0.3);
  background: rgba(255, 253, 249, 0.9);
}

.secondary {
  padding: 15px 54px;
  color: #504b45;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid rgba(201, 193, 180, 0.72);
  border-radius: 8px;
  font-size: 15px;
}

.danger {
  color: var(--danger);
}

.actions small {
  color: #8a8178;
}

#timeline.is-first-entry .continue-button {
  min-height: 48px;
  padding: 0 84px;
  border-radius: 12px;
  font-size: 17px;
  box-shadow: 0 18px 40px rgba(32, 58, 52, 0.22);
}

#timeline.is-first-entry .actions small {
  max-width: 360px;
  font-size: 12px;
}

.next-panel {
  padding: 32px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.next-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.gold-line {
  height: 1px;
  margin: 18px 0 30px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.next-step {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  margin-bottom: 8px;
  padding-bottom: 31px;
}

.next-step::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 0;
  left: 30px;
  border-left: 1px dashed rgba(201, 193, 180, 0.82);
}

.next-step:last-of-type::before {
  display: none;
}

.next-step.final-step::before {
  display: none;
}

.step-icon {
  z-index: 2;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--gold-deep);
  background: #f6faf7;
  border: 1px solid rgba(156, 143, 108, 0.24);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-weight: 700;
}

.next-step strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
}

.next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reassurance {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 20px;
  color: #455d57;
  background: linear-gradient(135deg, var(--green-soft), #f6faf7);
  border: 1px solid rgba(49, 76, 70, 0.16);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.moon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue-deep);
  background: #edf5f1;
  border-radius: 999px;
}

@media (min-width: 1201px) and (max-width: 1380px) {
  .workspace {
    grid-template-columns: 190px minmax(520px, 700px) 320px;
    gap: 24px;
  }

  .memory-card {
    padding: 30px;
  }

  .next-panel {
    padding: 26px;
  }

  .next-step strong {
    font-size: 21px;
  }
}

#timeline:not(.is-first-entry) .workspace {
  grid-template-columns: 300px minmax(0, 1fr);
  width: calc(100vw - 44px);
  max-width: none;
  margin-left: -22px;
  margin-right: 0;
}

#timeline:not(.is-first-entry) .first-entry-guide,
#timeline:not(.is-first-entry) .prompt-area,
#timeline:not(.is-first-entry) .actions {
  display: none;
}

#timeline:not(.is-first-entry) .timeline {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
}

#timeline:not(.is-first-entry) .memory-workspace {
  max-width: 900px;
}

#timeline:not(.is-first-entry) .memory-item {
  margin-bottom: 20px;
}

#timeline:not(.is-first-entry) .timeline::before {
  bottom: 190px;
}

#timeline:not(.is-first-entry) .new-memory {
  display: block;
}

.memory-workspace.is-empty {
  min-height: 420px;
  visibility: hidden;
  pointer-events: none;
}

.insights-area {
  margin-top: 34px;
  scroll-margin-top: 24px;
}

.insights-area header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 193, 180, 0.54);
}

.insights-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.insights-title-line span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.insights-area h3,
.report h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.insights-area p,
.analysis-status,
.report-card p,
.empty-state p,
.placeholder-card p,
.thread-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.analysis-output,
.report {
  display: grid;
  gap: 18px;
}

.memory-workspace:not(.has-rendered-analysis) .insights-area,
.memory-workspace:not(.has-rendered-analysis) .reflection-actions,
.memory-workspace:not(.has-rendered-analysis) .reveal-button {
  display: none;
}

#timeline.is-analyzing .reflection-actions,
#timeline.is-analyzing .reveal-button {
  display: none;
}

.simple-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--space-3);
}

.analysis-output section,
.report section {
  display: grid;
  gap: 12px;
}

.report-list,
.thread-grid,
.three-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 13px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 13px;
}

.report-card,
.empty-state,
.placeholder-card,
.thread-card,
.practice-list {
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.9));
  border: 1px solid rgba(201, 193, 180, 0.66);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.thread-card {
  min-height: 152px;
}

.thread-card h4,
.report-card h4 {
  margin: 0 0 var(--space-3);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.thread-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.thread-card li + li {
  margin-top: 8px;
}

.editable-thread-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 10px;
  row-gap: 5px;
  min-height: 32px;
  padding: 8px 8px 9px 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.editable-thread-item::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: 0;
  left: 22px;
  height: 1px;
  background: rgba(201, 193, 180, 0.48);
}

.editable-thread-item::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 999px;
}

.editable-thread-item:last-child {
  border-bottom: 0;
}

.editable-thread-item:last-child::after {
  display: none;
}

.editable-thread-item [contenteditable="true"] {
  min-width: 0;
  min-height: 1.35em;
  outline: none;
}

.editable-thread-item [contenteditable="true"]:focus {
  background: rgba(247, 245, 240, 0.64);
  box-shadow: 0 0 0 3px rgba(49, 76, 70, 0.08);
}

.thread-item-title {
  display: block;
  color: #4d4741;
  font-weight: 700;
  line-height: 1.35;
}

.thread-item-detail {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.remove-thread-item {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 24px;
  height: 24px;
  transform: none;
  color: var(--danger);
  background: transparent;
  border: 0;
}

.editable-thread-item > span,
.thread-item-title,
.thread-item-detail {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
}

.empty-thread-item {
  color: var(--muted);
  font-style: italic;
}

.option-card {
  position: relative;
  padding-right: 42px;
}

.remove-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--danger);
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 0.8;
}

.remove-card.remove-thread-item {
  position: static;
  top: auto;
  right: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 24px;
  height: 24px;
}

.add-thread-line {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 10px;
  color: #fff8df;
  background: var(--blue-deep);
  border: 1px solid rgba(255, 248, 223, 0.22);
  border-radius: 8px;
  font: 800 12px/1 Inter, system-ui, sans-serif;
}

.add-thread-line:hover,
.add-thread-line:focus-visible {
  color: #fff8df;
  background: #203c35;
  outline: none;
}

.removed-tray > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.removed-tray {
  padding: 18px;
  background: rgba(255, 253, 249, 0.62);
  border: 1px dashed rgba(201, 193, 180, 0.72);
  border-radius: var(--radius);
}

.removed-tray h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.removed-tray button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.reflection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.reveal-button {
  justify-self: center;
  min-height: 54px;
  min-width: 320px;
  color: #fff;
  background: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(32, 58, 52, 0.22);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.single-reflection-button.reveal-button {
  color: var(--blue-deep);
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(49, 76, 70, 0.28);
  box-shadow: 0 14px 30px rgba(32, 58, 52, 0.12);
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto 30px;
}

.report-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}

.report-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#report .report {
  max-width: 1080px;
  margin: 0 auto;
}

.report-feedback {
  max-width: 1080px;
  margin: 22px auto 0;
  padding: 20px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(201, 193, 180, 0.62);
  border-radius: var(--radius);
  box-shadow: none;
}

.report-feedback fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-feedback legend {
  width: 100%;
  margin: 0 0 6px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.15;
}

.report-feedback fieldset label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #5b524a;
  background: rgba(247, 245, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.report-feedback input[type="radio"] {
  accent-color: var(--gold-deep);
}

.feedback-detail {
  display: none;
  margin-top: 18px;
}

.feedback-detail.active {
  display: grid;
  gap: 9px;
}

.feedback-detail span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.feedback-detail textarea {
  min-height: 130px;
  margin: 0;
  resize: vertical;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.feedback-submit,
.feedback-regenerate {
  margin-top: 18px;
}

.timeline.is-empty::before {
  display: none;
}

.feedback-thanks {
  margin: 14px 0 0;
  color: var(--gold);
  font-weight: 800;
}

.report-cover {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 48px 54px;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.86)),
    radial-gradient(circle at 84% 20%, rgba(49, 76, 70, 0.08), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(169, 154, 120, 0.08), transparent 30%);
  border: 1px solid rgba(201, 193, 180, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 76px rgba(36, 32, 27, 0.11);
}

.report-cover::after {
  display: none;
}

.report-cover::before {
  content: "";
  position: absolute;
  right: 76px;
  bottom: 58px;
  width: 190px;
  height: 1px;
  opacity: 0.52;
  background: linear-gradient(90deg, transparent, rgba(169, 154, 120, 0.2), rgba(49, 76, 70, 0.18), transparent);
  box-shadow:
    -18px -42px 0 rgba(169, 154, 120, 0.1),
    -52px 34px 0 rgba(49, 76, 70, 0.1);
  transform: rotate(-18deg);
}

.report-kicker,
.reframe-panel span,
.carry-note span,
.report-synthesis span,
.report-need-line span,
.report-words span,
.insight-strip article > span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.report-cover h3 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 12px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 600;
}

.report-cover p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: #4f5652;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1.24;
}

.report-synthesis {
  padding: 26px 34px;
  background: rgba(255, 253, 249, 0.82);
  border-top: 1px solid rgba(201, 193, 180, 0.54);
  border-bottom: 1px solid rgba(201, 193, 180, 0.44);
}

.report-synthesis p {
  max-width: 840px;
  margin: 12px 0 0;
  color: #34302c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.34;
}

.report-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.story-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.story-note.featured {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(247, 245, 240, 0.84));
  border-color: var(--line-strong);
}

.story-note span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: #f6faf7;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.story-note p {
  margin: 0;
  color: #4f4944;
  font-size: 15px;
  line-height: 1.75;
}

.insight-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
}

.insight-strip article,
.reframe-panel,
.carry-note,
.designed-list,
.map-card,
.self-return-card,
.watch-card,
.aftercare-grid article {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 245, 240, 0.9));
  border: 1px solid rgba(201, 193, 180, 0.66);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(41, 34, 23, 0.075);
}

.report-map {
  position: relative;
  display: grid;
  gap: 0;
  counter-reset: report-step;
  padding: 10px 0;
  background: rgba(255, 253, 249, 0.56);
  border: 1px solid rgba(201, 193, 180, 0.52);
  border-radius: var(--radius-lg);
}

.report-map::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 57px;
  width: 1px;
  background: linear-gradient(180deg, rgba(169, 154, 120, 0.18), rgba(49, 76, 70, 0.18));
}

.map-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.34fr) 1fr;
  gap: 22px;
  align-items: start;
  min-height: 0;
  padding: 22px 34px 22px 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-card::before {
  counter-increment: report-step;
  content: counter(report-step, decimal-leading-zero);
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: 20px;
  place-items: center;
  color: var(--gold-deep);
  background: #f6faf7;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.map-card::after {
  content: "";
  position: absolute;
  top: auto;
  left: 94px;
  right: 34px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 154, 120, 0.14), rgba(49, 76, 70, 0.12), transparent);
}

.map-card:last-child::after {
  display: none;
}

.map-card span,
.self-return-card span,
.watch-card span,
.aftercare-grid span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-card span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.map-card h4,
.self-return-card h3 {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1.05;
}

.map-card h4 {
  grid-column: 2;
  grid-row: 2;
}

.map-card p,
.self-return-card p,
.watch-card p,
.aftercare-grid p {
  margin: 0;
  color: #514a44;
  line-height: 1.7;
}

.map-card p {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.present-pattern-list {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.present-pattern-list li {
  position: relative;
  padding-left: 18px;
  color: inherit;
  line-height: 1.65;
}

.present-pattern-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold-deep);
  border-radius: 999px;
}

.report-words {
  display: grid;
  gap: 14px;
  padding: 24px 28px;
  background: rgba(255, 253, 249, 0.66);
  border: 1px solid rgba(201, 193, 180, 0.54);
  border-radius: var(--radius-lg);
}

.report-words > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-words q {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #4f4944;
  background: rgba(247, 245, 240, 0.84);
  border: 1px solid rgba(201, 193, 180, 0.6);
  border-radius: 999px;
  font-size: 14px;
}

.report-words q::before,
.report-words q::after {
  color: rgba(156, 143, 108, 0.72);
}

.report-need-line {
  padding: 30px 34px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(201, 193, 180, 0.58);
  border-radius: var(--radius-lg);
}

.report-need-line p {
  max-width: 880px;
  margin: 0;
  color: #34302c;
  font-size: 22px;
  line-height: 1.55;
}

.self-return-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.88));
  border-color: rgba(49, 76, 70, 0.24);
}

.self-return-card h3 {
  max-width: 780px;
  font-size: 40px;
}

.aftercare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.watch-card {
  display: grid;
  gap: 10px;
}

.insight-strip h4 {
  margin: 12px 0 10px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
}

.insight-strip p,
.reframe-panel p,
.carry-note p {
  margin: 10px 0 0;
  color: #514a44;
  line-height: 1.7;
}

.designed-list h3 {
  margin: 0 0 16px;
}

.designed-list > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.designed-list article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 253, 249, 0.66);
  border: 1px solid rgba(201, 193, 180, 0.58);
  border-radius: 8px;
}

.designed-list article span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.designed-list article p {
  margin: 0;
  color: #524b45;
  line-height: 1.55;
}

.carry-note {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(247, 245, 240, 0.88));
}

.carry-note p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
}

.practice-list {
  margin: 0;
  padding-left: 42px;
}

.breath-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(255, 252, 246, 0.78);
  backdrop-filter: blur(10px);
}

.breath-overlay.active {
  display: grid;
}

.breath-overlay > div {
  max-width: 420px;
  padding: 34px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

[contenteditable="true"]:focus,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(201, 150, 58, 0.32);
  outline-offset: 2px;
}

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

  .analyze-progress::after {
    display: none;
  }
}

/* High-contrast editorial theme inspired by the samplesite reference. */
.topbar {
  background: rgba(31, 31, 31, 0.94);
  border-bottom: 1px solid #3b3b3b;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  color: #fff8df;
  background: transparent;
  border-color: rgba(255, 248, 223, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 248, 223, 0.08), 0 14px 28px rgba(0, 0, 0, 0.34);
}

.brand h1,
.hero h2,
.report-head h2,
.report-cover h3 {
  color: #fff8df;
}

.brand p,
.report-kicker,
.reframe-panel span,
.carry-note span,
.report-synthesis span,
.report-words span,
.insight-strip article > span {
  color: var(--gold);
}

.toggle {
  background: #202020;
  border-color: #565656;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.toggle button {
  color: #d5cec1;
}

.toggle button.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 228, 0, 0.22), 0 10px 24px rgba(255, 228, 0, 0.18);
}

.hero::before,
.gold-line {
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue-deep), transparent);
}

.hero p,
.report-head p,
.report-cover p,
.insights-area p,
.analysis-status,
.placeholder-card p,
.thread-card li,
.memory-item > span:last-child,
.next-step p,
.privacy-card p,
.report-card p,
.map-card p,
.present-pattern-list li,
.self-return-card p,
.aftercare-grid p,
.report-synthesis p,
.story-note p,
.insight-strip p,
.reframe-panel p,
.carry-note p,
.designed-list article p {
  color: #c9c1b5;
}

.topbar,
.memory-card,
.next-panel,
.timeline-empty,
.report-card,
.empty-state,
.placeholder-card,
.thread-card,
.practice-list,
.insight-strip article,
.reframe-panel,
.carry-note,
.designed-list,
.map-card,
.self-return-card,
.aftercare-grid article,
.report-feedback,
.removed-tray {
  background: linear-gradient(180deg, #242424, #1f1f1f);
  border-color: #4a4a4a;
}

.memory-card,
.next-panel,
.thread-card,
.report-card,
.report-cover,
.map-card,
.self-return-card,
.aftercare-grid article,
.designed-list,
.carry-note {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.memory-card::before {
  background: linear-gradient(180deg, var(--gold), var(--blue-deep), var(--danger));
}

.memory-head,
.mini-field,
.editable-thread-item,
.insights-area header,
.thread-card li,
.map-card::after {
  border-color: #4c4c4c;
}

.memory-title input,
.mini-field input,
.mini-field select,
.manifestation-toggle,
textarea,
.editable-thread-item [contenteditable="true"],
.thread-item-title,
.map-card h4,
.self-return-card h3,
.insight-strip h4,
.designed-list h3,
.memory-item > strong,
.timeline-empty strong,
.next-panel h3,
.insights-area h3,
.report h3,
.thread-card h4,
.report-card h4 {
  color: #fff8df;
}

textarea,
.report-synthesis,
.story-note,
.report-map,
.report-words,
.designed-list article,
.report-words q,
.removed-tray button,
.secondary,
.save-memory-button,
.report-actions button {
  background: #202020;
  border-color: #565656;
  color: #e7dfcd;
}

.analyze-progress {
  color: #fff8df;
  background: #202020;
  border-color: #565656;
}

.analyze-progress::after {
  background: linear-gradient(90deg, transparent, rgba(255, 228, 0, 0.18), transparent);
}

textarea:focus,
.editable-thread-item [contenteditable="true"]:focus {
  background: #252525;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(20, 167, 108, 0.18);
}

.primary,
.continue-button,
.new-memory {
  color: #151515;
  background: linear-gradient(180deg, #ff7a3d, var(--danger));
  box-shadow: 0 18px 42px rgba(255, 101, 47, 0.24);
}

.reveal-button {
  color: #fff8df;
  background: linear-gradient(180deg, #ff7a3d, var(--danger));
  box-shadow: 0 18px 42px rgba(255, 101, 47, 0.24);
}

.report-loading.analyze-progress {
  color: #151515;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 800;
}

.report-loading.analyze-progress.active {
  background: linear-gradient(105deg, #ffe400, #b7f06d, #ffd24a, #ffe400);
  background-size: 260% 260%;
  animation: reflectionHuePulse 2.4s ease-in-out infinite;
}

.report-loading.analyze-progress::before {
  background: var(--danger);
}

@keyframes reflectionHuePulse {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 12px 28px rgba(255, 228, 0, 0.18);
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 16px 36px rgba(183, 240, 109, 0.28);
    filter: hue-rotate(10deg);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 12px 28px rgba(255, 228, 0, 0.18);
    filter: hue-rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-loading.analyze-progress.active {
    animation: none;
  }
}

.primary:hover:not(:disabled),
.reveal-button:hover:not(:disabled),
.new-memory:hover:not(:disabled) {
  box-shadow: 0 22px 50px rgba(255, 101, 47, 0.34);
}

.new-memory {
  color: #111;
  background: var(--gold);
  box-shadow: 0 18px 42px rgba(255, 228, 0, 0.22);
}

.new-memory:hover:not(:disabled) {
  box-shadow: 0 22px 50px rgba(255, 228, 0, 0.32);
}

.secondary:hover:not(:disabled),
.save-memory-button:hover:not(:disabled),
.report-actions button:hover:not(:disabled) {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.timeline-dot,
.progress-step span,
.step-icon,
.story-note span,
.map-card::before {
  color: #111;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.62), transparent 30%),
    var(--gold);
  border-color: var(--gold);
}

.memory-item.active .timeline-dot,
.designed-list article span {
  color: #111;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.42), transparent 31%),
    var(--blue-deep);
}

.memory-item::after {
  background: #202020;
  border-color: #4a4a4a;
}

.memory-item.active::after {
  background: #2b2b2b;
  border-color: var(--blue-deep);
}

.memory-item > .memory-age,
.remove-thread-item,
.remove-card,
.report-words q::before,
.report-words q::after {
  color: var(--danger);
}

.editable-thread-item::before {
  background: var(--gold);
}

.report-cover {
  background:
    linear-gradient(135deg, #242424, #1f1f1f),
    radial-gradient(circle at 82% 18%, rgba(255, 101, 47, 0.2), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(20, 167, 108, 0.18), transparent 30%);
  border-color: #565656;
}

.report-cover::after {
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%);
}

.report-cover::before,
.report-map::before {
  background: linear-gradient(180deg, var(--gold), var(--blue-deep), var(--danger));
}

.report-feedback fieldset label {
  color: #e7dfcd;
  background: #202020;
  border-color: #565656;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: var(--gold);
}

body:has(#timeline.view.active),
body:has(#report.view.active) {
  background:
    linear-gradient(90deg, rgba(255, 228, 0, 0.045) 0 1px, transparent 1px 33%),
    radial-gradient(circle at 20% 16%, rgba(20, 167, 108, 0.13), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(255, 101, 47, 0.12), transparent 26%),
    #272727;
}

body:has(#report.view.active) {
  background:
    linear-gradient(90deg, rgba(255, 228, 0, 0.035) 0 1px, transparent 1px 33%),
    radial-gradient(circle at 20% 16%, rgba(20, 167, 108, 0.09), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(255, 101, 47, 0.08), transparent 26%),
    #202020;
}

body:has(#timeline.view.active) .main::after,
body:has(#report.view.active) .main::after {
  display: block;
  left: 0;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(39, 39, 39, 0.6), rgba(39, 39, 39, 0.38) 48%, rgba(39, 39, 39, 0.66)),
    url("assets/aureliux-ambient.png");
  background-position: center;
  background-size: cover;
  opacity: 0.2;
}

body:has(#report.view.active) .main::after {
  opacity: 0.12;
}

#analyzeMemory,
#firstEntryContinue {
  color: #fff8df;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .main::after,
  .topbar,
  .report-head,
  .report-feedback,
  .breath-overlay {
    display: none !important;
  }

  .main {
    padding: 0;
  }

  .view {
    display: none !important;
  }

  #report.view {
    display: block !important;
  }

  #report .report {
    max-width: none;
    gap: 14px;
  }

  #report {
    padding: 0.25in;
  }

  .report-cover,
  .map-card,
  .self-return-card,
  .aftercare-grid article,
  .designed-list,
  .carry-note {
    break-inside: avoid;
    box-shadow: none;
    border-color: #cfc7b8;
    background: #fff;
  }

  .report-cover {
    min-height: 0;
    padding: 28px;
  }

  .report-map {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 0;
    padding: 18px;
  }

  .report-cover::before,
  .report-cover::after,
  .map-card::before,
  .map-card::after {
    display: none;
  }
}

@media (max-width: 1200px) {
  .workspace,
  #timeline:not(.is-first-entry) .workspace {
    grid-template-columns: 1fr;
  }

  .aureliux-intro {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .timeline {
    display: block;
    width: min(300px, 100%);
    margin: 0 auto 22px;
  }

  #timeline.is-first-entry .timeline {
    display: none;
  }

  .next-panel {
    max-width: 760px;
  }

  .main::after {
    width: 100%;
    opacity: 0.15;
  }

  .report-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body,
  .app,
  .main {
    min-height: 100dvh;
  }

  .app {
    overflow-x: hidden;
  }

  .main {
    padding: 22px;
  }

  #timeline:not(.is-first-entry) .workspace {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  #timeline:not(.is-first-entry) .timeline {
    box-sizing: border-box;
    --timeline-line-x: calc((var(--timeline-dot-column) / 2) + 16px);
    padding-left: 16px;
  }

  #timeline:not(.is-first-entry) .account-link {
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .topbar {
    height: auto;
    margin: -22px -22px 28px;
    padding: 0 18px 12px;
    align-items: center;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand h1 {
    font-size: 26px;
  }

  .brand p {
    display: none;
  }

  .toggle button {
    padding: 10px 14px;
    font-size: 17px;
  }

  .hero {
    text-align: left;
  }

  .hero h2 {
    font-size: 44px;
  }

  .aureliux-intro {
    margin-bottom: 24px;
    padding: 18px;
  }

  .intro-copy h3 {
    font-size: 27px;
  }

  .intro-copy p {
    font-size: 14px;
    line-height: 1.58;
  }

  .intro-principles {
    gap: 8px;
  }

  .intro-principles article {
    padding: 10px 12px;
  }

  .intro-principles p {
    line-height: 1.38;
  }

  #timeline.is-first-entry .trust-row {
    justify-content: flex-start;
    gap: 14px;
  }

  .memory-card,
  .next-panel {
    padding: 22px;
  }

  .memory-card::before {
    width: 3px;
  }

  .memory-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-meta {
    grid-template-columns: 1fr;
  }

  .mini-field {
    min-width: 0;
    padding: 0;
    border-left: 0;
  }

  .memory-title-line {
    width: 100%;
    min-width: 0;
  }

  textarea {
    min-height: 260px;
    padding: 22px 20px;
    font-size: 21px;
  }

  .report-list,
  .thread-grid,
  .three-grid,
  .two-column,
  .placeholder-grid,
  .simple-analysis-grid,
  .report-story,
  .report-map,
  .insight-strip,
  .aftercare-grid,
  .designed-list > div {
    grid-template-columns: 1fr;
  }

  .report-cover {
    min-height: 0;
    padding: 28px 22px;
  }

  .report-cover::before {
    right: 36px;
    bottom: 42px;
    width: 120px;
  }

  .report-cover::after {
    right: 32px;
    top: 70px;
    width: 110px;
    height: 110px;
  }

  .report-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }

  .report-head h2 {
    font-size: 46px;
    line-height: 0.98;
  }

  .report-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .report-actions .secondary {
    width: 100%;
    min-height: 52px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.2;
  }

  .report-cover h3 {
    font-size: 42px;
  }

  .report-cover p,
  .carry-note p {
    font-size: 20px;
    line-height: 1.3;
  }

  .report-synthesis {
    padding: 22px;
  }

  .report-synthesis p {
    font-size: 19px;
    line-height: 1.32;
  }

  .story-note p,
  .map-card p,
  .self-return-card p,
  .aftercare-grid p,
  .insight-strip p,
  .reframe-panel p,
  .designed-list article p {
    font-size: 14px;
    line-height: 1.6;
  }

  .map-card h4,
  .self-return-card h3 {
    font-size: 28px;
  }

  .map-card,
  .self-return-card,
  .aftercare-grid article,
  .designed-list {
    padding: 20px;
  }

  .map-card {
    min-height: 0;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 18px 20px 20px;
  }

  .report-map::before {
    left: 42px;
  }

  .map-card::before {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 1 / span 3;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .map-card::after {
    display: none;
  }

  .map-card span,
  .map-card h4,
  .map-card p {
    grid-column: 2;
  }

  .map-card span {
    grid-row: 1;
  }

  .map-card h4 {
    grid-row: 2;
  }

  .map-card p {
    grid-row: 3;
  }

  .primary,
  .continue-button,
  .reveal-button {
    width: 100%;
    min-width: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .story-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-actions .secondary {
    width: 100%;
  }

  .thread-card {
    min-height: 0;
  }

  .report-feedback {
    padding: 18px;
  }
}

/* Integrated app polish overrides */
.topbar .toggle button {
  color: #d5cec1;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.topbar .toggle button.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 228, 0, 0.34);
}

.trust-row span,
.progress-step strong,
.progress-step span:last-child,
.mini-field strong,
.mini-field input,
.mini-field select,
.manifestation-toggle,
.memory-item > strong,
.memory-item > span:last-child {
  color: #d5cec1;
}

@media (min-width: 861px) {
  .progress-step-active span {
    color: #fff;
    background:
      radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.7), transparent 30%),
      var(--blue-deep);
    border-color: var(--blue-deep);
    box-shadow:
      0 0 0 5px rgba(20, 167, 108, 0.2),
      0 0 22px rgba(20, 167, 108, 0.34),
      0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .progress-step-active strong {
    color: #fff8df;
    font-weight: 700;
  }
}

.trust-row span::before {
  border-color: var(--gold);
  opacity: 0.72;
}

.feeling-field select,
.manifestation-field select {
  color: #fff8df;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 9px) 10px / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 5px) 10px / 6px 6px no-repeat,
    #202020;
}

.feeling-field select option,
.manifestation-field select option {
  color: #fff8df;
  background: #202020;
}

.manifestation-select {
  position: relative;
  margin-top: 3px;
}

.manifestation-toggle {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 0 0;
  color: #fff8df;
  background: #202020;
  border: 0;
  border-radius: 0;
  outline: none;
  font: inherit;
  font-size: 13px;
  line-height: 24px;
  text-align: left;
}

.manifestation-toggle::after {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.manifestation-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifestation-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 220px;
  padding: 8px;
  overflow-y: auto;
  background: #202020;
  border: 1px solid #565656;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.manifestation-select.open .manifestation-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.manifestation-options label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #fff8df;
  font-size: 12px;
  line-height: 1.25;
}

.manifestation-options input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.manifestation-options span {
  overflow-wrap: anywhere;
}

.first-entry-actions {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  max-width: 720px;
  padding: 14px;
  margin-top: 14px;
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.first-entry-actions .primary {
  min-height: 58px;
}

.chat-head {
  align-items: flex-end;
  gap: 28px;
}

.membership-panel {
  padding: 16px;
  background: rgba(24, 24, 24, 0.84);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
}

.membership-panel .mini-field strong,
.membership-panel .mini-field input {
  color: #e7dfcd;
}

.membership-status {
  min-height: 48px;
  color: var(--gold);
  background: transparent;
  border-color: #565656;
  box-shadow: none;
}

.chat-shell {
  display: grid;
  gap: 18px;
}

.chat-log {
  min-height: 260px;
  max-height: 46vh;
}

.chat-log.is-locked {
  min-height: 180px;
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.chat-form button {
  min-height: 86px;
}

.paywall-card {
  order: -1;
  border-color: rgba(255, 228, 0, 0.55);
  box-shadow: 0 18px 48px rgba(255, 101, 47, 0.1);
}

.paywall-card h3 {
  font-size: 30px;
}

.paywall-link[href="#"] {
  pointer-events: none;
  opacity: 0.72;
}

.report-head {
  gap: 22px;
}

.report-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-actions button {
  min-width: 128px;
  white-space: normal;
}

.report-cover::after {
  opacity: 0.42;
  transform: rotate(-19deg) scale(0.82);
}

.report-synthesis p,
.report-cover p,
.map-card p,
.self-return-card p,
.aftercare-grid p {
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.42;
}

@media (min-width: 1100px) {
  #timeline.is-first-entry .hero {
    margin-bottom: 22px;
  }

  #timeline.is-first-entry .workspace {
    align-items: start;
  }

  #timeline.is-first-entry .memory-card {
    padding-top: 28px;
  }

  #timeline.is-first-entry .journal-box textarea {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .brand h1 {
    font-size: 27px;
  }

  .brand p {
    display: none;
  }

  .toggle {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    padding: 4px;
  }

  .toggle button {
    min-width: 0;
    padding: 10px 12px;
    font-size: 17px;
  }

  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .trust-row {
    gap: 10px 14px;
  }

  .first-entry-actions {
    position: sticky;
    bottom: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .chat-head {
    align-items: stretch;
  }

  .membership-panel {
    padding: 12px;
  }

  .chat-log {
    min-height: 220px;
  }

  .chat-log.is-locked {
    min-height: 160px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    min-height: 58px;
  }

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

  .report-actions .danger {
    grid-column: 1 / -1;
  }

  .report-cover h3 {
    font-size: 38px;
  }

  .report-synthesis p,
  .report-cover p,
  .map-card p,
  .self-return-card p,
  .aftercare-grid p {
    font-size: 20px;
    line-height: 1.42;
  }
}

/* Final visual QA fixes */
.topbar .toggle button {
  transform: none;
  transition: color 120ms var(--ease), border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

.topbar .toggle button:not(.active) {
  color: #d5cec1;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.topbar .toggle button:hover:not(:disabled):not(.active),
.topbar .toggle button:focus-visible:not(.active) {
  color: #f7f1df;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 228, 0, 0.16);
  box-shadow: none;
}

.topbar .toggle button.active,
.topbar .toggle button.active:hover,
.topbar .toggle button.active:focus-visible {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 228, 0, 0.34);
}

#timeline.is-first-entry .hero {
  margin-bottom: 18px;
}

#timeline.is-first-entry .hero::before {
  margin-bottom: 18px;
}

#timeline.is-first-entry .hero p {
  margin-top: 14px;
}

#timeline.is-first-entry .trust-row {
  margin-top: 18px;
}

.privacy-card {
  background: rgba(24, 24, 24, 0.9);
  border-color: #565656;
  border-radius: var(--radius-lg);
}

.privacy-card strong {
  color: #f7f1df;
}

.privacy-card p {
  color: #d5cec1;
}

.first-entry-actions {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.first-entry-actions .primary {
  width: min(310px, 100%);
}

@media (min-width: 1100px) {
  #timeline.is-first-entry .memory-head {
    padding-bottom: 22px;
  }

  #timeline.is-first-entry .journal-box textarea {
    min-height: 200px;
  }
}

@media (max-width: 760px) {
  #timeline.is-first-entry .view-inner {
    padding-top: 28px;
  }

  #timeline.is-first-entry .hero {
    margin-bottom: 16px;
  }

  #timeline.is-first-entry .hero h2 {
    font-size: 39px;
  }

  #timeline.is-first-entry .memory-card {
    padding-top: 24px;
  }

  #timeline.is-first-entry .memory-head {
    padding-bottom: 22px;
  }

  #timeline.is-first-entry .journal-box textarea {
    min-height: 190px;
  }

  .first-entry-actions {
    margin-top: 16px;
  }

  .first-entry-actions .primary {
    width: 100%;
    min-height: 52px;
  }

  .privacy-card {
    display: none;
  }
}

/* Visual review corrections */
.journal-box textarea,
#timeline.is-first-entry .journal-box textarea {
  color: #e7dfcd;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.journal-box textarea::placeholder {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.journal-box textarea:focus,
.journal-box textarea:focus-visible {
  border-color: rgba(255, 228, 0, 0.58);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255, 228, 0, 0.12);
}

.carry-note,
.story-note {
  background: rgba(24, 24, 24, 0.92);
  border-color: #565656;
}

.carry-note p,
.story-note p {
  color: #d5cec1;
}

.story-note.featured {
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.94), rgba(31, 79, 61, 0.72));
}

.report-map {
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.map-card {
  grid-template-columns: 50px minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 18px 28px 18px 18px;
  background: rgba(255, 255, 255, 0.015);
}

.map-card::before {
  width: 30px;
  height: 30px;
  margin-left: 8px;
}

.map-card::after {
  left: 74px;
}

.map-card p {
  max-width: 700px;
  color: #d5cec1;
}

.map-card.no-body {
  grid-template-columns: 50px minmax(0, 1fr);
}

.map-card.no-body h4 {
  grid-column: 2;
}

.map-card.no-body p {
  display: none;
}

.chat-log.is-locked {
  display: none;
  min-height: 0;
  max-height: none;
}

/* Requested product refinements */
.brand {
  align-items: center;
  gap: 7px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #f7f1df;
  border-color: rgba(247, 241, 223, 0.78);
  font-size: 27px;
  line-height: 1;
}

.brand h1 {
  margin-top: -1px;
  margin-left: -1px;
}

#timeline.is-first-entry .first-entry-guide {
  display: none;
}

body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide {
  display: grid !important;
}

@media (max-width: 760px) {
  body[data-public-free="true"] #timeline.is-first-entry .first-entry-guide {
    display: none !important;
  }
}

@media (min-width: 761px) {
  #timeline.is-first-entry .workspace {
    grid-template-columns: 210px minmax(560px, 760px);
    justify-content: center;
  }
}

.report-actions.hidden {
  display: none !important;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.plan-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
}

.plan-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1;
}

.plan-card p {
  margin: 0;
  color: #d5cec1;
  font-size: 14px;
  line-height: 1.5;
}

.plan-card .primary,
.plan-card .secondary {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  text-align: center;
}

.featured-plan {
  border-color: rgba(255, 228, 0, 0.58);
}

@media (max-width: 760px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 25px;
  }

  .plan-options {
    grid-template-columns: 1fr;
  }

  .go-deeper-shell {
    grid-template-columns: 1fr;
  }

  .go-deeper-plan {
    min-height: 0;
  }

  .go-deeper-plan h2 {
    min-height: 0;
  }
}

.chat-log.is-locked .chat-message {
  max-width: 760px;
}

@media (min-width: 1100px) {
  #timeline.is-first-entry .privacy-card {
    width: calc(100% - 34px);
    margin-left: 34px;
    padding: 16px;
    font-size: 12px;
  }

  #timeline.is-first-entry .privacy-card p {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 7px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand h1 {
    font-size: 25px;
  }

  .toggle {
    flex: 0 1 auto;
  }

  .toggle button {
    padding: 9px 10px;
    font-size: 16px;
  }

  #timeline.is-first-entry .view-inner {
    padding-top: 18px;
  }

  #timeline.is-first-entry .hero::before {
    margin-bottom: 12px;
  }

  #timeline.is-first-entry .hero h2 {
    font-size: 34px;
    line-height: 0.96;
  }

  #timeline.is-first-entry .hero p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  #timeline.is-first-entry .trust-row {
    display: none;
  }

  #timeline.is-first-entry .memory-card {
    padding: 18px 22px 20px;
  }

  #timeline.is-first-entry .memory-head {
    gap: 10px;
    padding-bottom: 14px;
  }

  #timeline.is-first-entry .mini-field {
    gap: 3px;
  }

  #timeline.is-first-entry .journal-box textarea {
    min-height: 126px;
    font-size: 17px;
    line-height: 1.5;
  }

  .journal-box textarea::placeholder {
    font-size: 21px;
  }

  .textarea-footer {
    margin-top: 8px;
  }

  .first-entry-actions {
    margin-top: 14px;
  }

  .map-card,
  .map-card.no-body {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 20px 18px 16px;
  }

  .map-card p {
    grid-column: 2;
    grid-row: auto;
    align-self: start;
  }

  .map-card::before {
    margin-left: 4px;
  }

  .chat-log.is-locked {
    min-height: 0;
  }
}

#timeline.is-first-entry .memory-item.active .timeline-dot::before {
  content: "1";
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

#timeline.is-first-entry .memory-item.active .timeline-dot {
  color: #111;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.62), transparent 30%),
    var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 5px rgba(255, 228, 0, 0.14),
    0 0 22px rgba(255, 228, 0, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.next-panel .story-note.featured,
.next-panel .carry-note,
.report .carry-note {
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.95), rgba(31, 79, 61, 0.78));
  border-color: #565656;
}

.next-panel .story-note.featured p,
.next-panel .story-note.featured span,
.next-panel .carry-note p,
.report .carry-note p {
  color: #e7dfcd;
}

/* First-memory flow cleanup */
#timeline.is-first-entry .first-entry-actions {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 520px;
  margin-top: 16px;
}

#timeline.is-first-entry .first-entry-actions small {
  max-width: 310px;
  color: #d5cec1;
  line-height: 1.45;
}

#timeline.is-first-entry .mobile-add-more {
  display: none;
}

@media (max-width: 760px) {
  #timeline.is-first-entry .memory-card {
    padding-bottom: 18px;
  }

  #timeline.is-first-entry .first-entry-actions {
    position: sticky;
    bottom: 10px;
    z-index: 8;
    display: grid;
    justify-items: center;
    max-width: none;
    padding: 10px;
    margin-top: 12px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 228, 0, 0.22);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }

  #timeline.is-first-entry .first-entry-actions .primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    min-height: 54px;
    text-align: center;
  }

  #timeline.is-first-entry .first-entry-actions small {
    max-width: none;
    padding: 0 4px;
    text-align: center;
    font-size: 12px;
  }

  .memory-validation {
    font-size: 12px;
  }
}

.next-panel .reassurance {
  color: #e7dfcd;
  display: block;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.95), rgba(31, 79, 61, 0.8));
  border: 1px solid #565656;
  line-height: 1.55;
}

.next-panel .reassurance {
  padding: 18px 20px;
}

/* Form sizing corrections */
.journal-box textarea,
#timeline.is-first-entry .journal-box textarea {
  min-height: 220px;
  padding: 20px 22px;
  color: #e7dfcd;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.journal-box textarea::placeholder {
  color: #9f978d;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
}

.chat-head {
  align-items: start;
}

.membership-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  width: min(520px, 100%);
  max-width: 520px;
  padding: 14px;
  gap: 10px;
  justify-self: end;
}

.membership-panel .mini-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.membership-panel .secondary,
.membership-status {
  width: 100%;
  min-height: 42px;
}

.membership-status {
  justify-content: center;
  padding: 0 14px;
}

@media (min-width: 1100px) {
  #timeline.is-first-entry .journal-box textarea {
    min-height: 220px;
  }
}

/* Big-picture polish pass */
#timeline.is-first-entry .journal-box textarea,
.journal-box textarea {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 228, 0, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

#timeline.is-first-entry .journal-box textarea:focus,
.journal-box textarea:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 228, 0, 0.48);
}

.textarea-footer span:first-child {
  color: #cfc7b8;
}

.paywall-note {
  margin-top: -4px;
  color: #bfb7a8;
  font-size: 14px;
}

.membership-status {
  color: #d5cec1;
  background: rgba(255, 255, 255, 0.035);
  border-style: dashed;
  font-weight: 700;
}

.report-actions .danger,
#resetAll {
  color: #ffd4c6;
  border-color: rgba(255, 101, 47, 0.46);
  background: rgba(255, 101, 47, 0.08);
}

.report-synthesis {
  padding: 24px 28px;
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid #565656;
  border-radius: var(--radius-lg);
}

.report-synthesis p {
  max-width: 850px;
}

.faq-head,
.faq-shell {
  width: min(980px, calc(100vw - 44px));
  margin-right: auto;
  margin-left: auto;
}

.faq-head {
  margin-bottom: 18px;
}

.faq-shell {
  display: grid;
  gap: 14px;
}

.faq-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 24px 26px;
  color: #d9d1c4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(18, 19, 18, 0.86);
  border: 1px solid rgba(231, 223, 205, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.faq-item span {
  grid-row: 1 / span 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #171717;
  background: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.faq-item h3 {
  margin: 0;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.faq-item p {
  grid-column: 2;
  margin: 4px 0 0;
  color: #d9d1c4;
  font-size: 16px;
  line-height: 1.62;
}

.faq-item a {
  color: #8fe6b6;
}

.faq-item a:hover,
.faq-item a:focus-visible {
  color: #b6ffd1;
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand {
    justify-content: center;
  }

  .toggle {
    width: 100%;
    justify-content: center;
  }

  .toggle button {
    flex: 1 1 0;
    padding: 8px 5px;
    font-size: 16px;
  }

  .hero h2 span,
  #timeline.is-first-entry .hero h2 span {
    display: none;
  }

  #timeline.is-first-entry .memory-card {
    padding-bottom: 18px;
  }

  #timeline.is-first-entry .journal-box textarea,
  .journal-box textarea {
    min-height: 150px;
  }

  .report-head h2 {
    font-size: 38px;
    line-height: 0.98;
  }

  .faq-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 20px 18px;
  }

  .faq-item span {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .faq-item h3 {
    font-size: 29px;
  }

  .faq-item p {
    font-size: 15px;
    line-height: 1.56;
  }

  .report-cover,
  .report-synthesis,
  .report-words,
  .self-return-card,
  .aftercare-grid article,
  .report-feedback {
    padding: 18px;
  }

  .report-cover h3 {
    font-size: 33px;
  }

  .report-synthesis p,
  .map-card p,
  .self-return-card p,
  .aftercare-grid p {
    font-size: 17px;
    line-height: 1.45;
  }

  .map-card,
  .map-card.no-body {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 370px) {
  .brand h1 {
    font-size: 23px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  #timeline.is-first-entry .hero h2 {
    font-size: 31px;
  }
}

@media (max-width: 760px) {
  #timeline.is-first-entry .journal-box textarea,
  .journal-box textarea {
    min-height: 170px;
    padding: 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
  }

  .journal-box textarea::placeholder {
    font-size: 16px;
    line-height: 1.55;
  }

  .membership-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

/* Current product polish */
.brand {
  gap: 0;
}

.brand h1 {
  margin-left: 0;
  letter-spacing: 0;
}

.mobile-add-more {
  display: none;
  min-height: 58px;
  width: min(310px, 100%);
  justify-content: center;
  color: #151515;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.paywall-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px;
  background: rgba(24, 24, 24, 0.9);
}

.go-deeper-shell,
.go-deeper-note {
  width: min(1120px, calc(100vw - 44px));
  margin-left: auto;
  margin-right: auto;
}

.account-link {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin-top: 8px;
  padding: 2px 4px;
  color: #bdb5a3;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-link:hover,
.account-link:focus-visible {
  color: var(--gold);
}

.mobile-account-link {
  display: none;
}

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  color: #f5eddb;
  background: rgba(24, 24, 24, 0.94);
  border: 1px solid rgba(255, 228, 0, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  pointer-events: none;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast[data-kind="success"] {
  border-color: rgba(20, 167, 108, 0.62);
}

.app-toast[data-kind="warning"] {
  border-color: rgba(255, 179, 71, 0.7);
}

.app-toast[data-kind="error"] {
  border-color: rgba(255, 101, 47, 0.74);
}

.signup-dialog .mini-field {
  margin-bottom: 22px;
  padding: 0;
  border-left: 0;
}

.signup-dialog .mini-field strong {
  margin-bottom: 7px;
}

.signup-dialog .mini-field strong,
.signup-dialog .mini-field input {
  color: #e7dfcd;
}

.signup-dialog .signup-link {
  min-height: 38px;
  padding: 8px 14px;
  color: #e7dfcd;
  background:
    linear-gradient(rgba(32, 32, 32, 0.7), rgba(32, 32, 32, 0.7)) padding-box,
    linear-gradient(135deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.72)) border-box;
  border: 2px solid transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.signup-dialog .signup-link:hover:not(:disabled),
.signup-dialog .signup-link:focus-visible {
  color: #fff8df;
  box-shadow: 0 0 0 1px rgba(255, 228, 0, 0.18), 0 14px 32px rgba(0, 0, 0, 0.24);
}

.go-deeper-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: clamp(8px, 3vw, 26px);
}

.go-deeper-plan {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 18px;
  min-height: 560px;
  padding: clamp(20px, 3vw, 28px);
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 32, 32, 0.92), rgba(32, 32, 32, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.72)) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.go-deeper-plan:hover {
  transform: translateY(-2px);
}

.go-deeper-plan.selected {
  background:
    linear-gradient(rgba(39, 39, 39, 0.98), rgba(39, 39, 39, 0.98)) padding-box,
    linear-gradient(var(--gold), var(--gold)) border-box;
  box-shadow: 0 0 0 1px rgba(255, 228, 0, 0.24), 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 228, 0, 0.16);
}

.go-deeper-label {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.go-deeper-plan h2 {
  display: flex;
  align-items: flex-start;
  min-height: 90px;
  margin: 0;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 0.98;
}

.go-deeper-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.go-deeper-price span {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.go-deeper-plan p:not(.go-deeper-label):not(.go-deeper-price) {
  margin: 0;
  color: #c9c1b5;
  line-height: 1.55;
}

.insights-instruction-highlight {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 228, 0, 0.1);
  border: 1px solid rgba(255, 228, 0, 0.18);
  border-radius: 8px;
  font-weight: 700;
}

.go-deeper-plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.go-deeper-plan li {
  position: relative;
  padding-left: 18px;
  color: #ded6c7;
  font-size: 14px;
  line-height: 1.45;
}

.go-deeper-plan li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.go-deeper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.go-deeper-button.is-disabled {
  opacity: 0.62;
  cursor: wait;
  pointer-events: none;
}

.go-deeper-note {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.go-deeper-note p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .go-deeper-shell {
    grid-template-columns: 1fr;
  }

  .go-deeper-plan {
    min-height: 0;
  }

  .go-deeper-plan h2 {
    min-height: 0;
  }
}

.plan-options {
  margin-top: 0;
  gap: 16px;
}

.plan-card {
  min-height: 230px;
  padding: 20px;
  align-content: stretch;
  grid-template-rows: auto auto 1fr auto;
}

.plan-card span {
  font-size: 14px;
}

.plan-card h4 {
  color: #fff8df;
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.plan-card p {
  color: #d5cec1;
  font-size: 15px;
  line-height: 1.55;
}

.plan-card .primary,
.plan-card .secondary {
  min-height: 46px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 10px;
  }

  .brand {
    gap: 0;
    justify-content: center;
  }

  .brand h1 {
    margin-top: 0;
    margin-left: 0;
  }

  .toggle button:nth-child(2) {
    text-indent: 2px;
  }

  .toggle button:nth-child(3) {
    text-indent: 5px;
  }

  .mobile-add-more {
    display: inline-flex;
  }

  .first-entry-actions {
    display: grid;
    gap: 10px;
  }

  .first-entry-actions .primary,
  .mobile-add-more {
    width: 100%;
    min-height: 52px;
    height: 52px;
  }

  #timeline.is-first-entry .journal-box textarea,
  .journal-box textarea {
    min-height: 120px;
    height: 130px;
  }

  .paywall-card {
    padding: 16px;
  }

  .plan-card {
    min-height: 0;
  }
}

/* Report redesign pass */
.report-head,
.report,
.report-feedback {
  width: min(1080px, calc(100vw - 44px));
  margin-left: auto;
  margin-right: auto;
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}

.report-head h2 {
  color: #fff8df;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 0.98;
  white-space: nowrap;
}

.report-head p {
  margin-top: 8px;
  max-width: 520px;
  color: #d5cec1;
  font-size: 16px;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 10px;
  width: min(1080px, calc(100vw - 44px));
  margin: 18px auto 0;
  justify-content: end;
}

.report-actions button,
.report-actions .danger,
#resetAll {
  min-height: 48px;
  min-width: 0;
  color: #e7dfcd;
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(231, 223, 205, 0.26);
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

.report-actions button:hover:not(:disabled) {
  border-color: rgba(255, 228, 0, 0.52);
  box-shadow: 0 12px 28px rgba(255, 228, 0, 0.08);
}

.report {
  display: grid;
  gap: 18px;
}

.report-need-line {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  background:
    linear-gradient(90deg, rgba(255, 228, 0, 0.12), transparent 26%),
    rgba(247, 241, 223, 0.08);
  border: 1px solid rgba(247, 241, 223, 0.2);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.report-need-line p {
  max-width: 860px;
  margin: 0;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 35px);
  font-weight: 600;
  line-height: 1.18;
}

.report-map {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(18, 19, 18, 0.86);
  border: 1px solid rgba(231, 223, 205, 0.2);
  border-radius: 10px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
}

.report-map::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 48px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 101, 47, 0.5));
}

.map-card,
.map-card.no-body {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 0 26px;
  align-items: center;
  min-height: 138px;
  padding: 28px 34px 28px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.026);
}

.map-card::before {
  counter-increment: report-step;
  content: counter(report-step, decimal-leading-zero);
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: start;
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0;
  place-items: center;
  color: #171717;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.map-card::after {
  content: "";
  position: absolute;
  left: 96px;
  right: 34px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 241, 223, 0.12), transparent);
}

.map-card:last-child::after {
  display: none;
}

.map-card span,
.self-return-card span,
.watch-card span,
.carry-note span {
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.map-card-heading {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 8px;
}

.map-card-heading span {
  margin: 0;
}

.map-card h4,
.map-card.no-body h4 {
  margin: 0;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.map-card p,
.map-card.no-body p {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  color: #d9d1c4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.present-pattern-list li {
  color: #d9d1c4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
}

.map-card.no-title p {
  grid-row: 1 / span 2;
}

.map-card.no-title .map-card-heading {
  display: none;
}

.self-return-card,
.watch-card,
.report .carry-note,
.report-feedback {
  display: block;
  padding: 30px 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(18, 19, 18, 0.86);
  border: 1px solid rgba(231, 223, 205, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.self-return-card {
  border-left: 4px solid var(--gold);
}

.self-return-card h3 {
  max-width: 820px;
  margin: 12px 0 10px;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.self-return-card p,
.watch-card p,
.report .carry-note p {
  max-width: 860px;
  margin: 12px 0 0;
  color: #d9d1c4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
}

.watch-card {
  background:
    linear-gradient(90deg, rgba(255, 101, 47, 0.08), transparent 24%),
    rgba(18, 19, 18, 0.86);
}

.report .carry-note {
  background:
    linear-gradient(90deg, rgba(31, 79, 61, 0.28), transparent 36%),
    rgba(18, 19, 18, 0.86);
}

.report .carry-note p {
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.18;
}

.report-feedback {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 24px 26px;
  background: rgba(18, 19, 18, 0.78);
}

.report-feedback[hidden] {
  display: none !important;
}

.report-feedback fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 10px;
  align-items: center;
  margin: 0;
}

.report-feedback legend {
  flex: 1 1 100%;
  margin-bottom: 14px;
  color: #d9d1c4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
}

.report-feedback fieldset label {
  min-height: 42px;
  padding: 0 16px;
  color: #e7dfcd;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(231, 223, 205, 0.2);
  border-radius: var(--radius);
}

.feedback-detail {
  margin-top: 14px;
}

.feedback-submit,
.feedback-regenerate {
  margin-top: 12px;
}

.reflection-rating {
  display: grid;
  gap: 14px;
}

.reflection-rating h3 {
  margin: 0;
  color: #fff8df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.rating-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #d9d1c4;
  font-size: 12px;
  font-weight: 800;
}

.rating-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(26px, 1fr));
  gap: 6px;
  align-items: center;
}

.rating-options::before {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  top: 50%;
  height: 2px;
  background: rgba(231, 223, 205, 0.22);
  transform: translateY(-50%);
}

.rating-options label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rating-perfect {
  padding-top: 0;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options label span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #d9d1c4;
  background: #222322;
  border: 1px solid rgba(231, 223, 205, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.rating-options label .rating-end-label {
  position: absolute;
  top: -24px;
  display: block;
  width: auto;
  height: auto;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.rating-options input:checked + span {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 228, 0, 0.12);
}

.rating-options label:focus-within span {
  outline: 2px solid rgba(255, 248, 223, 0.5);
  outline-offset: 3px;
}

.reflection-next-label {
  display: block;
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.reflection-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.free-reflection-restart {
  display: none;
}

body[data-public-free="true"] .free-reflection-restart {
  display: grid;
}

.reflection-next-button {
  display: grid;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  justify-items: center;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
}

.reflection-next-button strong {
  color: inherit;
  font-size: 16px;
  line-height: 1.2;
}

.reflection-next-button span {
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.78;
}

.reflection-connect-button {
  display: grid;
  color: #e7dfcd;
  background:
    linear-gradient(#202020, #202020) padding-box,
    linear-gradient(135deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.72)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.reflection-connect-button strong {
  max-width: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.reflection-connect-button span {
  max-width: 22ch;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.78;
}

.reflection-connect-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

@media (max-width: 760px) {
  .hero {
    text-align: center;
  }

  .hero h2,
  #timeline.is-first-entry .hero h2 {
    font-size: clamp(31px, 9.8vw, 41px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .hero p,
  #timeline.is-first-entry .hero p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero h2,
  #timeline.is-first-entry .hero h2 {
    font-size: clamp(30px, 9.2vw, 38px);
  }
}

@media (max-width: 760px) {
  .report-head,
  .report,
  .report-feedback {
    width: calc(100vw - 44px);
  }

  .report-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .report-head h2 {
    font-size: 34px;
    white-space: normal;
  }

  .report-head p {
    font-size: 14px;
    line-height: 1.45;
  }

  .report-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: calc(100vw - 44px);
    justify-content: stretch;
  }

  .report-actions button,
  .report-actions .danger,
  #resetAll {
    grid-column: auto;
    min-height: 46px;
    padding: 0 7px;
    font-size: 11.5px;
  }

  .report-need-line,
  .self-return-card,
  .watch-card,
  .report .carry-note,
  .report-feedback {
    padding: 20px;
  }

  .report-need-line p {
    font-size: 23px;
    line-height: 1.2;
  }

  .report-map::before {
    top: 25px;
    bottom: 25px;
    left: 24px;
  }

  .map-card,
  .map-card.no-body {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 0;
    padding: 21px 18px 22px 0;
    gap: 9px 14px;
    align-items: start;
  }

  .map-card::before {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .map-card::after {
    left: 48px;
    right: 18px;
  }

  .map-card-heading,
  .map-card p,
  .map-card.no-body p,
  .present-pattern-list {
    grid-column: 2;
  }

  .map-card-heading {
    grid-row: 1;
    gap: 7px;
    align-self: start;
  }

  .map-card-heading span {
    display: block;
    line-height: 1.15;
  }

  .map-card h4,
  .map-card.no-body h4 {
    font-size: 24px;
    line-height: 1.08;
  }

  .map-card p,
  .map-card.no-body p,
  .present-pattern-list {
    grid-row: 2;
    margin-top: 0;
    align-self: start;
  }

  .map-card p,
  .map-card.no-body p {
    font-size: 15px;
    line-height: 1.52;
  }

  .present-pattern-list {
    gap: 8px;
  }

  .present-pattern-list li {
    font-size: 15px;
    line-height: 1.52;
  }

  .map-card.no-title p {
    grid-row: 1;
  }

  .self-return-card h3 {
    font-size: 30px;
  }

  .self-return-card p,
  .watch-card p {
    font-size: 15px;
    line-height: 1.58;
  }

  .report .carry-note p {
    font-size: 24px;
    line-height: 1.18;
  }

  .report-feedback fieldset {
    align-items: stretch;
  }

  .report-feedback fieldset label {
    flex: 1 1 0;
    justify-content: center;
  }

  .rating-options {
    gap: 3px;
  }

  .rating-options label span {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .reflection-next-actions {
    grid-template-columns: 1fr;
  }

  .reflection-next-label {
    margin-bottom: 7px;
  }

  .reflection-next-button {
    width: 100%;
    min-width: 0;
    padding: 14px 12px;
  }

  .reflection-next-button strong,
  .reflection-next-button span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .reflection-connect-button strong {
    white-space: normal;
  }
}

/* First-entry responsive guardrail: prevents the desktop timeline/form layout from compressing. */
#timeline.is-first-entry .memory-item > strong,
#timeline.is-first-entry .progress-step strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 1100px) {
  #timeline.is-first-entry .timeline-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #timeline.is-first-entry .memory-item,
  #timeline.is-first-entry .progress-step {
    grid-template-columns: var(--timeline-dot-column) minmax(112px, 1fr);
    min-height: 54px;
    margin-bottom: 28px;
  }

  #timeline.is-first-entry .memory-item > .memory-age,
  #timeline.is-first-entry .memory-item > span:last-child {
    display: none;
  }

  #timeline.is-first-entry .memory-item > strong,
  #timeline.is-first-entry .progress-step strong {
    width: min(128px, 100%);
    max-width: 128px;
    margin-left: 10px;
    padding: 0;
    align-self: center;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
  }

  #timeline.is-first-entry .first-entry-add-memory {
    grid-column: 1;
    width: min(160px, calc(100% - var(--timeline-dot-column) - 12px));
    margin: -6px 0 0 calc(var(--timeline-dot-column) + 12px);
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  #timeline.is-first-entry .view-inner {
    width: min(760px, calc(100vw - 44px));
    margin-right: auto;
    margin-left: auto;
  }

  #timeline.is-first-entry .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 760px;
  }

  #timeline.is-first-entry .timeline {
    display: grid;
    width: 100%;
    margin: 0 auto 4px;
    padding: 0;
  }

  #timeline.is-first-entry .timeline::before {
    top: 17px;
    right: 11%;
    bottom: auto;
    left: 11%;
    width: auto;
    height: 2px;
    transform: none;
    background: linear-gradient(90deg, rgba(255, 228, 0, 0.7), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.58));
  }

  #timeline.is-first-entry .timeline-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
  }

  #timeline.is-first-entry .memory-item,
  #timeline.is-first-entry .progress-step {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    min-height: 0;
    margin: 0;
    text-align: center;
  }

  #timeline.is-first-entry .memory-item::after {
    display: none;
  }

  #timeline.is-first-entry .timeline-dot,
  #timeline.is-first-entry .progress-step span {
    grid-column: 1;
    margin-left: 0;
  }

  #timeline.is-first-entry .memory-item > .memory-age,
  #timeline.is-first-entry .memory-item > span:last-child {
    display: none;
  }

  #timeline.is-first-entry .memory-item > strong,
  #timeline.is-first-entry .progress-step strong {
    grid-column: 1;
    width: min(126px, 100%);
    max-width: none;
    min-height: 34px;
    padding: 0;
    color: #d5cec1;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  #timeline.is-first-entry .first-entry-add-memory {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(240px, 100%);
    margin: 8px 0 0;
  }

  #timeline.is-first-entry .account-link {
    justify-self: center;
    margin-top: 8px;
  }

  #timeline.is-first-entry .memory-card {
    width: 100%;
    max-width: none;
  }

  #timeline.is-first-entry .memory-head {
    grid-template-columns: minmax(180px, 1fr) 84px minmax(140px, 1fr) minmax(150px, 1fr);
  }

  #timeline.is-first-entry .first-entry-actions {
    max-width: none;
  }
}

@media (max-width: 760px) {
  input,
  textarea,
  select,
  .mini-field input,
  .mini-field select,
  .signup-dialog .mini-field input,
  .membership-panel .mini-field input,
  .feedback-detail textarea,
  .upgrade-password-row input,
  .manifestation-toggle {
    font-size: 16px !important;
  }
}

/* Mobile first-entry timeline experiment. Remove this block to revert. */
@media (max-width: 760px) {
  #timeline.is-first-entry .workspace {
    gap: 10px;
  }

  #timeline.is-first-entry .timeline {
    display: block;
    width: min(100%, 360px);
    margin: -6px auto 0;
    padding: 0;
  }

  #timeline.is-first-entry .timeline::before {
    top: 17px;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    height: 2px;
    transform: none;
    background: linear-gradient(90deg, rgba(255, 228, 0, 0.82), rgba(20, 167, 108, 0.78), rgba(255, 101, 47, 0.68));
    box-shadow: 0 0 14px rgba(255, 228, 0, 0.12);
  }

  #timeline.is-first-entry .timeline-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: start;
  }

  #timeline.is-first-entry .memory-item,
  #timeline.is-first-entry .progress-step {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #timeline.is-first-entry .memory-item::after {
    display: none;
  }

  #timeline.is-first-entry .timeline-dot,
  #timeline.is-first-entry .progress-step span {
    grid-column: 1;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #101010;
    background: var(--gold);
    border-color: rgba(255, 228, 0, 0.86);
    box-shadow:
      0 0 0 4px rgba(255, 228, 0, 0.11),
      0 8px 18px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: 900;
  }

  #timeline.is-first-entry .memory-item > .memory-age,
  #timeline.is-first-entry .memory-item > span:last-child {
    display: none;
  }

  #timeline.is-first-entry .memory-item > strong,
  #timeline.is-first-entry .progress-step strong {
    grid-column: 1;
    width: min(78px, 100%);
    min-height: 30px;
    margin: 0;
    padding: 0;
    color: #d5cec1;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
  }

  #timeline.is-first-entry .first-entry-add-memory {
    display: none;
  }

  #timeline.is-first-entry .timeline > .account-link {
    display: none;
  }

  #timeline.is-first-entry .mobile-account-link {
    display: block;
    justify-self: center;
    margin: 10px auto 0;
  }
}
