.rp-stories { width:min(520px,calc(100vw - 24px)); max-height:88dvh; overflow:auto; background:#fffaf5; color:#302139; color-scheme:light; }
.rp-stories .dialog-content { display:grid; gap:.7rem; }
.rp-stories .dialog-head, .story-tools { display:flex; align-items:center; justify-content:space-between; gap:.6rem; flex-wrap:wrap; }
.rp-stories h2, .rp-stories p { margin:0; }
.rp-stories p:empty { display:none; }
.rp-stories label { display:block; }
.rp-stories :is(input,textarea,select) { box-sizing:border-box; max-width:100%; min-width:0; min-height:42px; border:1px solid #a88f9f; border-radius:8px; padding:.48rem .6rem; background:#fff; color:inherit; font:inherit; }
.rp-stories :is(input:not([type="checkbox"]),textarea) { width:100%; }
.rp-stories :is(button,select):focus-visible, .rp-stories input:focus-visible { outline:3px solid #72395f; outline-offset:2px; }
#story-content-fields:not([hidden]), .story-audience { display:grid; gap:.4rem; }
.story-audience { border:1px solid #d5c3cf; border-radius:.65rem; min-width:0; padding:.7rem; }
.story-audience legend { font-weight:650; }
#story-people label { display:flex; align-items:center; gap:.55rem; min-height:40px; overflow-wrap:anywhere; }
#story-people input { width:1.1rem; min-height:1.1rem; margin:0; accent-color:#783d62; }
.story-list { list-style:none; margin:0; padding:0; }
.story-list li + li { border-top:1px solid #d6c7ce; }
.story-open { width:100%; background:transparent; border:0; color:inherit; text-align:left; display:grid; grid-template-columns:2.4rem minmax(0,1fr); gap:.12rem .7rem; align-items:center; padding:.6rem .2rem; cursor:pointer; }
.story-avatar { grid-row:1/3; width:2.3rem; aspect-ratio:1; display:grid; place-items:center; border:2px solid #995c7f; border-radius:100%; font-weight:700; color:#65354f; background:#f5e8ef; }
.story-caption { overflow-wrap:anywhere; white-space:pre-wrap; }
.story-open .story-caption { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.story-open strong { overflow-wrap:anywhere; }
#story-photo:not([hidden]) { display:block; width:100%; max-height:62dvh; object-fit:contain; border-radius:.5rem; }
#story-view-caption { white-space:pre-wrap; overflow-wrap:anywhere; }
#story-publish { justify-self:end; }
