.stories-faixa { border-block: 1px solid var(--border); padding: 14px 0; margin-bottom: 16px; }
.stories-cabecalho { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; }
.stories-cabecalho strong { color:var(--accent); }
.stories-cabecalho span { color:var(--muted-foreground); font-size:.78rem; }
.stories-lista { display:flex; gap:14px; overflow-x:auto; padding:3px 2px 6px; scrollbar-width:thin; }
.story-pessoa { background:none; color:var(--foreground); border:0; width:74px; flex:0 0 74px; padding:0; margin:0; font-size:.78rem; font-weight:500; }
.story-pessoa > span:last-child { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:7px; }
.story-anel { display:grid; place-items:center; width:68px; height:68px; border-radius:50%; background:var(--gradient-primary); padding:3px; }
.story-anel img { width:62px; height:62px; border:3px solid var(--background); border-radius:50%; object-fit:cover; }
.story-pessoa.visto .story-anel { background:var(--border); }
.story-adicionar .story-anel { background:var(--secondary); border:1px dashed var(--accent); color:var(--accent); }
.story-anel svg { width:26px; height:26px; }
#storiesStatus { margin:8px 0 0; font-size:.82rem; }
.story-dialog { background:var(--background); color:var(--foreground); border:1px solid var(--border); border-radius:8px; padding:16px; width:min(460px, calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; }
.story-dialog::backdrop { background:var(--overlay); }
.story-topo { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.story-topo strong { flex:1; min-width:0; overflow-wrap:anywhere; }
.story-icone { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; margin:0; padding:8px; border-radius:50%; background:var(--secondary); color:var(--foreground); }
.story-icone svg { width:20px; height:20px; }
.story-previa { display:block; width:100%; height:min(52dvh, 520px); object-fit:contain; background:var(--background); border-radius:4px; margin-bottom:12px; }
.story-acoes { display:flex; gap:8px; }
.story-acoes button { margin:0; }
.story-tempo { display:flex; gap:4px; margin-bottom:12px; }
.story-tempo span { flex:1; height:3px; background:var(--border); overflow:hidden; border-radius:2px; }
.story-tempo span.passado { background:var(--accent); }
.story-tempo span.atual::after { content:''; display:block; height:100%; background:var(--accent); animation:storyAvanco var(--story-duracao, 7s) linear forwards; }
.story-dialog.pausado .story-tempo span.atual::after { animation-play-state:paused; }
.story-rodape { display:flex; justify-content:space-between; align-items:center; gap:8px; }
#storyLegenda { overflow-wrap:anywhere; margin-bottom:12px; }
#storyData { font-size:.8rem; color:var(--muted-foreground); }
@keyframes storyAvanco { from { width:0; } to { width:100%; } }
@media(prefers-reduced-motion:reduce) { .story-tempo span.atual::after { animation:none; width:100%; } }
.story-icone[hidden], #stories[hidden] { display:none; }
.story-reacoes { display:flex; justify-content:space-between; gap:6px; margin-top:16px; }
.story-reacao { display:grid; place-items:center; width:42px; height:42px; flex:0 1 42px; padding:0; margin:0; background:var(--secondary); border:1px solid var(--border); border-radius:50%; font-size:1.4rem; }
.story-reacao[aria-pressed="true"] { background:var(--primary); border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.story-reacao:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.story-respostas { margin-top:16px; max-height:130px; overflow-y:auto; overflow-wrap:anywhere; }
.story-respostas p { margin:6px 0; }
#storyReacaoStatus { font-size:.82rem; min-height:1.2em; margin:8px 0 0; }
.story-reacoes[hidden], .story-respostas[hidden] { display:none; }
.story-musica{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.story-musica span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;opacity:.85}
.story-anel video { width:62px; height:62px; border:3px solid var(--background); border-radius:50%; object-fit:cover; }
.story-previa[hidden], .story-musica[hidden] { display:none; }
.story-link { display:inline-flex; gap:6px; align-items:center; max-width:100%; padding:8px 14px; margin-bottom:12px; border-radius:999px; background:var(--secondary); color:var(--accent); text-decoration:none; font-weight:600; overflow-wrap:anywhere; }
.story-link[hidden] { display:none; }
.story-visualizacoes { color:var(--accent); font-size:.85rem; min-height:1.2em; margin:12px 0 0; }
.story-visualizacoes[hidden] { display:none; }
