/* Warm, scoped Memory Moment additions; never override HTML hidden. */
#memoryForm [hidden], #memoryFollowups [hidden] { display: none !important; }
#memoryForm, #memoryFollowups { min-width: 0; overflow-wrap: anywhere; }
#memoryForm h3 { margin: 12px 0; font-size: 1.4rem; }
#memoryForm .memory-help { font-size: .83rem; line-height: 1.65; color: #625a50; margin: 14px 0; }
#memoryForm select, #memoryForm textarea { width: 100%; min-width: 0; max-width: 100%; }
#memoryForm textarea { min-height: 145px; resize: vertical; }
#memoryForm label, #memoryForm legend { line-height: 1.5; }
#memoryForm .check-label { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
#memoryForm .check-label input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: #b84830; }
#memoryForm .check-label span { min-width: 0; }
#memoryForm .feeling-options { display: flex; flex-wrap: wrap; gap: 8px; }
#memoryForm .feeling-options label { margin: 0; cursor: pointer; }
#memoryForm .feeling-options span { display: block; padding: 9px 13px; }
#memoryForm .feeling-options input:focus-visible + span { outline: 3px solid #874529; outline-offset: 3px; }
#memoryForm fieldset { min-width: 0; margin-top: 22px; }
#memoryForm button { min-height: 44px; white-space: normal; }
#memoryForm button:focus-visible, #memoryFollowups button:focus-visible { outline: 3px solid #a64129; outline-offset: 4px; }
#memorySnapshot { white-space: pre-wrap; margin: 16px 0; padding: 18px; background: #fff5d8; border-left: 3px solid #d87850; font-size: 1rem; line-height: 1.6; }
#memoryForm :disabled { opacity: .8; cursor: not-allowed; }
#memoryStatus { font-size: .9rem; line-height: 1.6; color: #345640; }
#memoryStatus:empty { display: none; }
#memoryStatus.memory-error { color: #a32b20; }
#memoryCancelFollowup { margin-top: 18px; }
#memoryFollowups { grid-column: 1 / -1; padding: 28px; border: 1px solid #dac7a9; background: #fff9eb; border-radius: 16px; }
#memoryFollowups h3 { margin: 10px 0; font-family: Georgia, serif; font-size: 1.8rem; }
#memoryFollowups p { max-width: 80ch; font-size: .9rem; line-height: 1.7; }
.memory-due-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.memory-due-list li { padding: 20px; border: 1px solid #e4d5bb; border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; background: #fffdf7; }
.memory-due-list span { font-size: .85rem; }
.memory-due-status { font-weight: 600; }
#memoryFollowups .memory-start { background: #f7df98; color: #342c21; padding: 12px 16px; margin-top: auto; min-height: 44px; }
#memoryFollowups button:disabled { background: #eee7d9; color: #6c6255; cursor: not-allowed; }
/* Reduce on-page cue exposure only; this cannot erase earlier exposure. */
body.memory-answering-followup #stories,
body.memory-answering-followup #dashboard,
body.memory-answering-followup #detailTabContent,
body.memory-answering-followup .memory-section > div:first-child { display: none !important; }
body.memory-answering-followup #memoryForm { grid-column: 1 / -1; width: min(100%, 760px); justify-self: center; }
@media (max-width: 600px) {
  #memoryFollowups { padding: 20px 16px; }
  .memory-due-list { grid-template-columns: minmax(0, 1fr); }
  #memoryForm .card-top { gap: 10px; flex-wrap: wrap; }
  #memoryForm .feeling-options span { padding: 9px 11px; }
  #memoryForm .button { width: 100%; }
}
