.mlps-stories{min-width:0}.mlps-stories h2{margin:0 0 12px}.mlps-stories details{margin-bottom:12px}.mlps-stories form label{display:block;margin:8px 0}.mlps-stories input,.mlps-stories textarea{max-width:100%;box-sizing:border-box}.story-strip{display:flex;gap:10px;overflow-x:auto;padding:4px}.story-card{position:relative;flex:0 0 105px;height:158px;border:3px solid #1764d8;border-radius:14px;overflow:hidden;padding:0;background:#243e60;color:white;cursor:pointer}.story-card.seen{border-color:#8794a5}.story-card img{width:100%;height:100%;object-fit:cover}.story-card>span:last-child{position:absolute;bottom:0;left:0;right:0;background:#000b;padding:8px;overflow-wrap:anywhere;font-size:12px}.story-video{font-size:32px}.story-dialog{border:0;border-radius:12px;background:#111;color:#fff;width:min(680px,95vw);max-height:95vh;padding:12px;box-sizing:border-box}.story-dialog::backdrop{background:#000d}.story-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.story-tools button{font-size:24px;color:white;background:#333;border:0;border-radius:8px;padding:4px 12px}.story-dialog [data-story-content]{display:flex;justify-content:center;margin-top:10px}.story-dialog img,.story-dialog video{max-width:100%;max-height:70vh;object-fit:contain}.story-dialog [data-story-caption]{white-space:pre-wrap;overflow-wrap:anywhere}.story-dialog form[hidden]{display:none!important}
.mlps-stories .story-strip{gap:12px;padding:5px 2px 10px;scroll-snap-type:x proximity}.mlps-stories .story-card,.mlps-stories .story-create-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 116px;height:178px;min-width:0;padding:0;border:0;border-radius:14px;overflow:hidden;scroll-snap-align:start;cursor:pointer;box-shadow:0 2px 7px #0002}.story-create-card{background:#e5edf6;color:#173657}.story-create-face{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.story-create-face .avatar,.story-create-face img{width:76px;height:76px;object-fit:cover;border-radius:50%;font-size:32px}.story-create-label{background:#fff;color:#173657;width:100%;padding:8px 0;font-weight:700;display:grid;justify-items:center;font-size:13px}.story-create-label b{background:#1764d8;color:white;border:3px solid white;border-radius:50%;font-size:24px;width:33px;height:33px;line-height:27px;margin-top:-24px;margin-bottom:4px}.story-card .story-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-card .story-face{position:absolute;top:9px;left:9px;z-index:1;border:3px solid #378bff;border-radius:50%;width:36px;height:36px;background:#fff;overflow:hidden;display:grid;place-items:center}.story-card.seen .story-face{border-color:#a5acb6}.story-face img,.story-face .avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;font-size:14px}.story-card .story-name{background:linear-gradient(transparent,#000c);padding:20px 7px 9px;text-align:left;color:#fff;font-weight:600}.story-text-thumb{padding:42px 8px 30px;font-size:13px;line-height:1.25;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;color:#fff}.story-color-blue{background:#2359a5}.story-color-purple{background:#723b9f}.story-color-green{background:#206b55}.story-color-red{background:#a52f4b}.story-color-dark{background:#272d38}.story-create-dialog{width:min(470px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:16px;padding:20px;background:#fff;color:#172b46;box-sizing:border-box}.story-create-dialog::backdrop{background:#0009}.story-create-dialog header{display:flex;justify-content:space-between;align-items:center}.story-create-dialog header button{font-size:24px;border:0;background:#e8edf3;border-radius:50%;width:36px;height:36px}.mlps-stories .story-create-dialog label{display:grid;gap:6px;font-weight:600;margin:12px 0}.story-create-dialog input,.story-create-dialog select,.story-create-dialog textarea{width:100%;min-width:0;box-sizing:border-box;padding:8px;border:1px solid #cbd5e1;border-radius:7px}.story-create-dialog [hidden],.story-dialog [hidden]{display:none!important}.story-preview{display:grid;place-items:center;min-height:100px;max-height:240px;overflow:auto;color:#fff;text-align:center;padding:12px;border-radius:10px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.story-preview img,.story-preview video{max-width:100%;max-height:210px}.story-dialog .story-text-full{min-height:220px;border-radius:10px;align-items:center;padding:24px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;font-size:22px}.story-dialog [data-story-viewers]{padding:8px;border-radius:8px;border:0;background:#333;color:#fff}.story-dialog [data-viewer-list]{max-height:180px;overflow:auto}.story-dialog [data-viewer-list] p{font-size:13px;margin:7px 0}.story-dialog [data-story-content]{min-width:0}.story-dialog [data-story-content] img{height:auto}.story-create-dialog [role=status]{color:#a52626}.mlps-stories{overflow:hidden}@media(max-width:480px){.mlps-stories .story-card,.mlps-stories .story-create-card{flex-basis:102px;height:156px}.story-create-dialog{padding:14px}}
.story-progress{height:4px;background:#ffffff40;border-radius:3px;overflow:hidden;margin:0 0 8px}.story-progress span{display:block;background:#fff;height:100%;width:0}.story-reactions{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.story-reactions button{background:#303030;border:2px solid transparent;border-radius:50%;font-size:22px;padding:5px;cursor:pointer}.story-reactions button[aria-pressed=true]{border-color:#58a0ff;background:#254568}.story-dialog [data-story-reply]{display:flex;gap:8px;align-items:center}.story-dialog [data-story-reply] input{flex:1;min-width:0;border:1px solid #777;background:#252525;color:white;border-radius:20px;padding:10px}.story-dialog [data-story-reply] button{background:#1764d8;color:white;border:0;border-radius:20px;padding:10px}.story-dialog [data-story-status]{font-size:13px}

/* Stable text preview while typing. */
.story-create-dialog{overflow-anchor:none;scrollbar-gutter:stable}.story-create-dialog .story-preview{box-sizing:border-box;height:clamp(120px,25vh,200px);min-height:0;max-height:none;display:flex;align-items:safe center;justify-content:center;overflow:auto;overflow-anchor:none;scrollbar-gutter:stable}.story-create-dialog .story-preview img,.story-create-dialog .story-preview video{max-height:100%;object-fit:contain}.story-create-dialog textarea{resize:vertical}
