.memory-panel{border:0;border-radius:20px;color:#313638;background:#fffefa}
.memory-panel .modal-header{border-bottom:1px solid #eeece6}
.memory-panel .modal-body{padding:24px}
.memory-panel blockquote,#memoryReaderStory{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.memory-panel blockquote{border-left:2px solid #c9c6ba;padding-left:16px;color:#62675e}
.memory-panel label{font-size:.9rem}
.memory-panel small{color:#69706d}
#memoryReaderStory{font-size:1.1rem}
#lyricsContent{position:relative}
.memory-line{position:relative}
.memory-bubble{position:absolute;right:8px;border:1px solid #deddd5;background:#fffefa;color:#656b65;border-radius:24px;padding:9px 13px;font-size:12px;line-height:1.3;max-width:170px;cursor:pointer;z-index:1}
.memory-bubble:hover,.memory-bubble:focus{background:#eeeee7;color:#303a31}
.memory-controls{font-size:13px;margin-bottom:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
@media(min-width:768px){#lyricsContent.has-memories .lyrics-text{padding-right:180px}}
@media(max-width:767px){.memory-reader .modal-dialog{margin:0;align-items:stretch;justify-content:flex-end;min-height:100%;height:100%;max-width:none}.memory-reader .modal-dialog:before{display:none}.memory-reader .modal-content{max-height:85vh;border-radius:20px 20px 0 0}.memory-bubble{max-width:120px;font-size:11px;right:0;padding:8px;transform:translateY(-100%)}#lyricsContent.has-memories .memory-line.memory-marked{display:inline-block;margin-top:44px}}
@media(prefers-reduced-motion:reduce){.memory-reader.fade .modal-dialog{transition:none}}

/* Warm paper for stories; strong text contrast, restrained accent colors. */
#memoryOverview{background:#fff7eb;border:1px solid #ead9bf;border-left:4px solid #ad8050;box-shadow:0 4px 16px rgba(89,69,50,.04);color:#594532;}
#memoryOverview .memory-eyebrow{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#765533;letter-spacing:.06em;margin-bottom:12px;}
#memoryOverview .memory-eyebrow span{font-size:24px;line-height:1;}
#memoryOverview h4{font-size:22px;line-height:1.5;font-weight:700;color:#594532;margin-bottom:10px;}
#memoryOverview #memoryStatus{font-size:15px;line-height:1.85;margin-bottom:18px;max-width:42em;color:#685441;}
#memoryOverview .btn{min-height:44px;white-space:normal;border-radius:24px;padding:10px 18px;margin:0 8px 8px 0;font-size:14px;}
#memoryCompose,#memoryOverview.has-stories #memoryBrowse{background:#765533;border-color:#765533;color:#fff;}
#memoryOverview.has-stories #memoryCompose{background:transparent;color:#654c35;border-color:#b99c79;}
#memoryOverview #memoryMore{color:#654c35;}
#memoryCompose:hover,#memoryOverview.has-stories #memoryBrowse:hover{background:#5c4128;border-color:#5c4128;color:#fff;}
#memoryOverview .btn:focus-visible,.memory-bubble:focus-visible{outline:3px solid #8b6845;outline-offset:3px;}
.memory-panel{background:#fffdf8;color:#493d32;}
.memory-panel .modal-header{background:#fff7eb;border-bottom-color:#ead9bf;border-radius:20px 20px 0 0;}
.memory-panel h5{color:#594532;font-weight:700;line-height:1.5;}
.memory-panel blockquote{border-left:3px solid #b69570;color:#69523b;background:#fbf4e9;padding:12px 16px;border-radius:0 8px 8px 0;}
#memoryReaderTag{color:#765533!important;font-weight:600;font-size:14px;}
.memory-panel .btn-dark{background:#765533;border-color:#765533;color:#fff;min-height:44px;}
.memory-panel .btn-dark:hover{background:#5c4128;border-color:#5c4128;}
.memory-bubble{background:#fff7eb;border-color:#dfc9ac;color:#654c35;}
.memory-bubble:hover,.memory-bubble:focus{background:#f5e8d4;color:#594532;}
@media(max-width:767px){#memoryOverview{padding:22px 18px;}#memoryOverview h4{font-size:20px;}#memoryOverview #memoryStatus{font-size:14px;}.memory-panel .modal-body{padding:20px;}#memoryOverview .btn{max-width:100%;}}
