/* Life Story — warm prompt panel in Memories */

#memoriesStoryGuide {
  padding: 0 0.25rem 1.5rem;
  text-align: left;
  margin: 10px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.storyGuideLayout {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.storyGuideOverviewCard {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(30, 78, 120, 0.14);
  background: linear-gradient(165deg, #fffefb 0%, #faf7f2 55%, #f3eee6 100%);
}

.storyGuideOverviewEyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6578;
}

.storyGuideOverviewTitle {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #2c3340;
}

.storyGuideOverviewLead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4a5568;
}

.storyGuideOverviewProgressBar {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(30, 78, 120, 0.12);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.storyGuideOverviewProgressBar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c9120, #487f14);
  transition: width 0.35s ease;
}

.storyGuideOverviewProgressText {
  font-size: 0.82rem;
  color: #5a6578;
}

.storyGuideChapterList {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.storyGuideChapterCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(30, 78, 120, 0.14);
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #2c3340;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.storyGuideChapterCard:hover {
  border-color: rgba(30, 78, 120, 0.22);
  border-left-color: rgba(74, 139, 181, 0.45);
  background: #f8fafc;
  box-shadow: 0 3px 10px rgba(44, 51, 64, 0.06);
}

.storyGuideChapterCardActive,
.storyGuideChapterCard.storyGuideChapterCardActive:hover {
  border-color: rgba(30, 78, 120, 0.28);
  border-left-color: #1e4e78;
  background: linear-gradient(135deg, #eef5fb 0%, #f7fafc 100%);
  box-shadow: 0 6px 18px rgba(30, 78, 120, 0.12);
  transform: translateX(2px);
}

.storyGuideChapterCardActive .storyGuideChapterTitle {
  color: #1e4e78;
  font-weight: 700;
}

.storyGuideChapterCardActive .storyGuideChapterCount {
  color: #1e4e78;
  font-weight: 650;
}

.storyGuideChapterCardProgress:not(.storyGuideChapterCardActive) {
  border-left-color: rgba(92, 145, 32, 0.55);
  background: linear-gradient(135deg, rgba(92, 145, 32, 0.06) 0%, #ffffff 100%);
}

.storyGuideChapterCardComplete:not(.storyGuideChapterCardActive) {
  border-color: rgba(72, 127, 20, 0.28);
  border-left-color: #5c9120;
  background: linear-gradient(135deg, rgba(92, 145, 32, 0.1) 0%, #ffffff 100%);
}

.storyGuideChapterCardProgress:not(.storyGuideChapterCardActive) .storyGuideChapterCount,
.storyGuideChapterCardComplete:not(.storyGuideChapterCardActive) .storyGuideChapterCount {
  color: #487f14;
  font-weight: 650;
}

.storyGuideChapterCardHead {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.storyGuideChapterTitle {
  font-weight: 600;
  font-size: 0.92rem;
}

.storyGuideChapterCount {
  font-size: 0.78rem;
  color: #5a6578;
  flex-shrink: 0;
}

.storyGuideChapterSubtitle {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #5a6578;
}

.storyGuideChapterBadge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #487f14;
  background: rgba(92, 145, 32, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.storyGuidePromptPanelHead h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: #2c3340;
}

.storyGuidePromptPanelHead p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #5a6578;
}

.storyGuideChapterRecordAll {
  margin-bottom: 0.85rem;
}

.storyGuidePromptList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.storyGuidePromptCard {
  position: relative;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(30, 78, 120, 0.14);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.storyGuidePromptCardDone {
  border-color: rgba(72, 127, 20, 0.35);
  border-left: 4px solid #5c9120;
  background:
    linear-gradient(135deg, rgba(92, 145, 32, 0.1) 0%, rgba(252, 255, 248, 0.95) 42%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(72, 127, 20, 0.1);
}

.storyGuidePromptDoneBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(180deg, #5c9120 0%, #487f14 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 12px rgba(72, 127, 20, 0.22);
}

.storyGuidePromptDoneBadge i {
  font-size: 0.7rem;
}

.storyGuidePromptCardDone .storyGuidePromptText {
  color: #24301a;
}

.storyGuidePromptCardDone .storyGuidePromptActions {
  margin-top: 0.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(92, 145, 32, 0.16);
}

.storyGuidePromptText {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #2c3340;
  font-style: italic;
}

.storyGuidePromptHint {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5a6578;
}

.storyGuidePromptActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.storyGuidePromptBtn {
  font-size: 0.82rem;
}

.storyGuidePromptCustomBadge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e4e78;
  background: rgba(30, 78, 120, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.storyGuidePromptCardCustom {
  border-style: dashed;
}

.storyGuidePromptDeleteBtn {
  color: #8b3a3a;
}

.storyGuideSavedAnswer {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(30, 78, 120, 0.05);
  border: 1px solid rgba(30, 78, 120, 0.12);
}

.storyGuideSavedAnswerList {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.55rem 0 0.75rem;
}

.storyGuideSavedAnswerLabel {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #487f14;
}

.storyGuideSavedAudio {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.55rem;
}

.storyGuideSavedAnswerMemory {
  border-color: rgba(72, 127, 20, 0.18);
  background: rgba(92, 145, 32, 0.05);
}

.storyGuideSavedAnswerDiary {
  border-color: rgba(30, 78, 120, 0.16);
}

.storyGuideSavedPreview {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3d4654;
}

.storyGuideViewSavedBtn {
  margin-top: 0.15rem;
}

.storyGuideCustomForm {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(30, 78, 120, 0.22);
  background: rgba(30, 78, 120, 0.03);
}

.storyGuideCustomFormTitle {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #2c3340;
}

.storyGuideCustomLabel {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5568;
}

.storyGuideCustomText,
.storyGuideCustomHint {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(30, 78, 120, 0.18);
  border-radius: 8px;
  font: inherit;
  color: #2c3340;
  background: #fff;
}

.storyGuideCustomText {
  resize: vertical;
  min-height: 4.5rem;
}

.storyGuideCustomFormActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.storyGuideAskForm {
  max-width: 32rem;
  width: min(92vw, 32rem);
}

#storyGuideAskLightbox.form {
  z-index: var(--f2n-lightbox-overlay-z, 10050);
}

.storyGuideAskPromptPreview {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(44, 51, 64, 0.1);
  background: #f8fafc;
  font-style: italic;
  line-height: 1.5;
  color: #2c3340;
}

.storyGuideAskLabel {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4a5568;
}

.storyGuideAskSearch {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(44, 51, 64, 0.14);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.storyGuideAskSearch:focus {
  outline: none;
  border-color: rgba(30, 78, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 78, 120, 0.1);
}

.storyGuideAskResults {
  margin-bottom: 1rem;
  max-height: 18rem;
  overflow-y: auto;
}

.storyGuideAskActions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media screen and (max-width: 767px) {
  #storyGuideAskLightbox > .accountForm.storyGuideAskForm {
    width: 100%;
    max-width: 100%;
  }
}

.storyGuidePromptEmpty {
  color: #5a6578;
  font-size: 0.92rem;
}

.storyGuideAutobioHints {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.55fr);
  gap: 1.35rem 1.75rem;
  align-items: stretch;
  margin: 0 0 1.35rem;
  padding: 1.35rem 1.45rem;
  border-radius: 16px;
  border: 1px solid rgba(44, 51, 64, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 252, 0.88) 48%, rgba(241, 246, 243, 0.9) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(44, 51, 64, 0.05);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.storyGuideAutobioHints::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6ba028 0%, #487f14 55%, #3a7199 100%);
  pointer-events: none;
}

.storyGuideAutobioHintsIntro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  min-width: 0;
  padding-left: 0.35rem;
}

.storyGuideAutobioHintsHeader {
  margin: 0;
}

.storyGuideAutobioHintsEyebrow {
  margin: 0 0 0.4rem;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #487f14;
  line-height: 1.2;
}

.storyGuideAutobioHintsTitle {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--profileNavy, #2c3340);
}

.storyGuideAutobioHintsLead {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: #5a6578;
}

.storyGuideAutobioHintsBody {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(44, 51, 64, 0.08);
}

.storyGuideAutobioHintsBodyLabel {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--profileNavy, #2c3340);
  opacity: 0.55;
}

.storyGuideAutobioHintsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.65rem;
  flex: 1;
}

.storyGuideAutobioHintsItem {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.storyGuideHintLink {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid rgba(44, 51, 64, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.storyGuideHintLink:hover {
  background: #ffffff;
  border-color: rgba(72, 127, 20, 0.28);
  box-shadow: 0 8px 20px rgba(44, 51, 64, 0.06);
  transform: translateY(-2px);
}

.storyGuideHintLink:focus-visible {
  outline: none;
  border-color: rgba(72, 127, 20, 0.45);
  box-shadow: 0 0 0 3px rgba(92, 145, 32, 0.14);
}

.storyGuideHintLinkMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding-right: 1.4rem;
  width: 100%;
}

.storyGuideHintLinkIndex {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #487f14;
  opacity: 0.85;
}

.storyGuideHintLinkTitle {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--profileNavy, #2c3340);
  line-height: 1.25;
}

.storyGuideHintLinkPrompt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  color: #5a6578;
  padding-right: 0.35rem;
}

.storyGuideHintLinkAction {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(72, 127, 20, 0.08);
  color: #487f14;
  font-size: 0.62rem;
  opacity: 0.75;
  transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.storyGuideHintLink:hover .storyGuideHintLinkAction {
  opacity: 1;
  background: rgba(72, 127, 20, 0.14);
  transform: translateX(2px);
}

.storyGuideOpenGuideBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(44, 51, 64, 0.1);
  border-radius: 999px;
  background: #2c3340;
  color: #ffffff;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(44, 51, 64, 0.14);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.storyGuideOpenGuideBtn i {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.storyGuideOpenGuideBtn:hover {
  background: #1f2a36;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(44, 51, 64, 0.18);
}

.storyGuideOpenGuideBtn:hover i {
  opacity: 1;
  transform: translateX(2px);
}

.storyGuideOpenGuideBtn:active {
  transform: translateY(0);
}

.storyGuideOpenGuideBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(92, 145, 32, 0.22),
    0 8px 20px rgba(44, 51, 64, 0.14);
}

@media (max-width: 980px) {
  .storyGuideAutobioHints {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.15rem 1.15rem 1.2rem;
  }

  .storyGuideAutobioHintsIntro {
    gap: 0.95rem;
    padding-left: 0.2rem;
  }

  .storyGuideAutobioHintsBody {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(44, 51, 64, 0.08);
  }

  .storyGuideAutobioHintsList {
    grid-template-columns: 1fr;
  }

  .storyGuideOpenGuideBtn {
    width: 100%;
    align-self: stretch;
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .storyGuideAutobioHintsList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .storyGuideAutobioHints {
    border-radius: 14px;
    padding: 1rem 0.95rem 1.05rem;
  }

  .storyGuideAutobioHintsTitle {
    font-size: 1.12rem;
  }

  .storyGuideHintLink {
    padding: 0.8rem 0.85rem;
  }
}

.conversationGuidePanel {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(92, 145, 32, 0.28);
  background: linear-gradient(180deg, rgba(252, 255, 248, 0.98) 0%, #fff 100%);
}

.conversationGuidePanelTitle {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3340;
}

.conversationGuidePanelLead {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5a6578;
}

.conversationGuidePromptList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.conversationGuidePromptItem {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(30, 78, 120, 0.05);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #2c3340;
  font-style: italic;
}

.conversationGuidePromptHint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-style: normal;
  color: #5a6578;
}

@media screen and (max-width: 767px) {
  .storyGuideLayout {
    grid-template-columns: minmax(0, 1fr);
  }

  .storyGuidePromptActions {
    flex-direction: column;
    align-items: stretch;
  }

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