.opstory .story-episodes,.opstory .story-episodes-heading{max-width:820px}
.opstory .story-episode{max-width:780px}
.opstory .story-episode-top{max-width:780px}
.opstory .story-episode-row{display:grid;grid-template-columns:minmax(0,1fr) 0;align-items:start;gap:0}
.opstory .story-episode-main{min-width:0}
.opstory .story-episode-fold>.story-cover{padding:0;line-height:normal}
.opstory .story-episode-fold[open]>.story-cover{border-bottom-left-radius:0;border-bottom-right-radius:0}
.opstory .story-episode-fold>.story-feature-body{animation:story-content-reveal .28s ease both}
.opstory .story-participant-rail{padding-top:5px;min-width:0;width:178px;margin-left:22px}
.opstory .story-participant-rail .story-participant-grid{grid-template-columns:repeat(var(--story-avatar-columns,4),40px)}
.story-participant-grid{display:grid;grid-template-columns:repeat(4,40px);gap:6px;align-content:start}
.story-participant{display:block;width:40px;height:40px;border:1px solid #d8b46c66;border-radius:4px;padding:2px;background:#15344080;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.story-participant img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
.story-participant:hover{border-color:#fff0c9;box-shadow:0 0 12px #e2c58540}
.opstory .story-participants-add{margin-top:10px;width:178px;max-width:100%;white-space:normal;font-size:11px}
.opstory-dialog .story-participant-selection{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.opstory-dialog .story-person-chip{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #75b8c342;border-radius:4px;background:#102a3680;max-width:100%}
.opstory-dialog .story-person-chip img,.opstory-dialog .story-person-result img{width:36px;height:36px;flex:0 0 36px;object-fit:cover;border-radius:3px}
.opstory-dialog .story-person-chip span,.opstory-dialog .story-person-result span{overflow-wrap:anywhere;text-align:left}
.opstory-dialog .story-person-chip button{min-width:30px;min-height:30px;padding:2px;font-size:20px;margin-left:auto}
.opstory-dialog .story-character-results{display:grid;gap:6px;max-height:280px;overflow:auto;scrollbar-width:thin;scrollbar-color:#baa978 #153441;margin:10px 0 16px}
.opstory-dialog button.story-person-result{justify-content:flex-start;width:100%;gap:10px;text-align:left}
.opstory-dialog .story-character-notice{margin:8px 0;color:#a5bec5;font-size:13px;overflow-wrap:anywhere}
@media(min-width:1240px) and (max-width:1359px){
 .opstory .story-participant-rail{--story-avatar-columns:3;width:132px}
}
@media(max-width:1239px){
 .opstory .story-episode-row{grid-template-columns:minmax(0,1fr);gap:10px}
 .opstory .story-episode{max-width:780px}.opstory .story-episodes,.opstory .story-episodes-heading{max-width:820px}
 .opstory .story-participant-rail{padding-top:0;margin-left:0}.opstory .story-participants-add{width:auto}
}
@media(max-width:620px){.opstory .story-episodes,.opstory .story-episodes-heading{max-width:calc(100% - 14px)}}
@media(prefers-reduced-motion:reduce){.opstory .story-episode-fold>.story-feature-body{animation:none}.story-participant{transition:none}}

.story-participant-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.opstory .story-participant-actions .story-participants-add{width:auto;flex:1 1 150px;margin-top:0}.story-participant{box-sizing:border-box}.story-participant>.pn-inline-avatar{width:100%;height:100%;display:block;box-sizing:border-box}
