.presenceStoryCard{padding:18px;border:1px solid rgba(222,191,110,.28);border-radius:22px;background:linear-gradient(140deg,rgba(28,65,49,.95),rgba(6,31,25,.97));color:#f4ead6;box-shadow:0 8px 24px #0002}
.presenceStoryCard h2{margin:0 0 8px;font:23px/1.2 Georgia,serif;color:#e7c66b}
.presenceStoryCard p{font:15px/1.5 system-ui;margin:8px 0 14px;color:#d8dfd5}
.presenceStoryChapter{padding:8px 0;border-top:1px solid #d8bd6b26}
.presenceStoryCard button,.presenceStoryActive button{font:15px/1.4 system-ui;min-height:44px;border:1px solid #d8bd6b55;border-radius:12px;background:#0c332a;color:#f4ead6;padding:10px 12px;cursor:pointer}
.presenceStoryChapter>button:first-child{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left}
.presenceStoryChapter strong{font-size:17px;color:#eed392}
.presenceStoryChapter span{font-size:14px;color:#d8dfd5}
.presenceStoryChapter .presenceStoryErase{margin-top:6px;background:transparent;border-color:transparent;text-decoration:underline;font-size:14px}
.presenceStoryCard button:focus-visible,.presenceStoryActive button:focus-visible{outline:3px solid #e7c66b;outline-offset:3px}
.presenceStoryCard button:disabled{opacity:.65;cursor:wait}
.presenceStoryActive{display:flex;flex-wrap:wrap;gap:8px;font-size:15px}
.presenceStoryActive>strong,.presenceStoryActive>span{flex-basis:100%}
.presenceStoryReader{margin-top:8px}
.presenceStoryReader summary{padding:10px 4px;min-height:24px;cursor:pointer;font:15px/1.6 system-ui;color:#eed392}
.presenceStoryReader summary:focus-visible,.presenceStoryHistory:focus-visible{outline:3px solid #e7c66b;outline-offset:3px;border-radius:8px}
.presenceStoryHistory{max-height:360px;max-height:min(45vh,360px);overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:8px 0;padding:0 8px 0 0}
.presenceStoryHistory li{padding:10px 12px;margin:8px 0;background:#ffffff08;border:1px solid #d8bd6b26;border-radius:12px}
.presenceStoryHistory li strong{font:600 14px/1.5 system-ui}
.presenceStoryHistory li p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0;font-size:15px}
.presenceStoryRecoveries{margin-top:14px;padding:14px;border:1px solid #d8bd6b55;border-radius:14px;background:#0c332a}
.presenceStoryRecoveries h3{margin:0 0 8px;font:20px/1.3 Georgia,serif;color:#eed392}
.presenceStoryRecovery{padding:10px 0;border-top:1px solid #d8bd6b26}
.presenceStoryRecovery strong{font:600 16px/1.5 system-ui;color:#eed392}
.presenceStoryRecovery textarea{display:block;box-sizing:border-box;width:100%;min-height:140px;max-height:320px;margin:8px 0;padding:10px;border:1px solid #d8bd6b55;border-radius:10px;background:#082e25;color:#fff8e7;resize:vertical;font:15px/1.5 system-ui}
.presenceStoryRecovery textarea:focus-visible{outline:3px solid #e7c66b;outline-offset:3px}
.presenceStoryRecovery button{margin:4px 6px 4px 0}


/* iPhone / texte agrandi : les titres et sous-titres de chapitre
   doivent occuper leur hauteur naturelle sans chevaucher les lignes suivantes. */
#presenceForYouPanel .presenceStoryChapter,
.presenceStoryCard .presenceStoryChapter{
  display:block!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  padding:14px 0!important;
  overflow:visible!important;
}
.presenceStoryCard .presenceStoryChapter>button:first-child{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:56px!important;
  padding:12px 14px!important;
  white-space:normal!important;
}
.presenceStoryCard .presenceStoryChapter strong,
.presenceStoryCard .presenceStoryChapter span{
  display:block!important;
  position:static!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  line-height:1.35!important;
  overflow-wrap:break-word!important;
  white-space:normal!important;
}
.presenceStoryCard .presenceStoryChapter .presenceStoryErase{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  min-height:44px!important;
  padding:8px 12px!important;
  margin-top:8px!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:normal!important;
}
.presenceStoryCard .presenceStoryReader{clear:both;display:block!important;}
