:root{--story-ink:#102c2b;--story-lagoon:#164b50;--story-sunset:#6c3c48;--story-plum:#423557;--story-white:#fffaf5;--story-shade:#071a1c}
[data-theme="ink"]{--story-tone:var(--story-ink)}[data-theme="lagoon"]{--story-tone:var(--story-lagoon)}[data-theme="sunset"]{--story-tone:var(--story-sunset)}[data-theme="plum"]{--story-tone:var(--story-plum)}
.hoom-story-editor{width:min(1000px,calc(100vw - 24px))!important;max-width:1000px!important;max-height:calc(100dvh - 24px)!important;padding:0!important;border-radius:24px!important;background:var(--surface);color:var(--ink);overflow:auto}
.hoom-story-editor .timeline-dialog-heading{position:sticky;top:0;z-index:3;background:var(--surface);border-bottom:1px solid var(--line);padding:20px 24px;margin:0}.hoom-story-editor h2{margin:3px 0 0}.hoom-story-editor::backdrop,.story-song-preview::backdrop{background:color-mix(in srgb,var(--story-shade) 85%,transparent)}
.hoom-story-editor .story-composer{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:24px;padding:24px;align-items:start;margin:0}.story-editor-preview{height:580px;max-height:70dvh;min-height:320px;position:relative;overflow:hidden;border-radius:20px;background:radial-gradient(circle at 80% 10%,color-mix(in srgb,var(--story-tone) 60%,var(--story-white)),transparent 65%),var(--story-tone);color:var(--story-white);isolation:isolate}
.story-editor-preview>img,.story-editor-preview>video{width:100%!important;height:100%!important;max-height:none!important;border-radius:0!important;display:block;object-fit:contain}.story-editor-preview[data-fit="cover"]>img,.story-editor-preview[data-fit="cover"]>video{object-fit:cover}.story-editor-preview [hidden],.hoom-story-player [hidden]{display:none!important}
.story-empty-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:16px;padding:24px;background:linear-gradient(145deg,transparent,color-mix(in srgb,var(--story-shade) 35%,transparent))}.story-empty-preview>.icon{width:48px;height:48px}.story-empty-preview strong{font:700 28px/1.2 Outfit,sans-serif;letter-spacing:-.5px}.story-empty-preview>span{font-size:14px;line-height:1.6;max-width:240px}.story-empty-preview .btn{min-height:44px}
.story-caption-overlay{position:absolute;bottom:0;left:0;right:0;margin:0!important;padding:56px 24px 28px;color:var(--story-white)!important;background:linear-gradient(transparent,color-mix(in srgb,var(--story-shade) 80%,transparent));font-size:20px!important;font-weight:700;line-height:1.45;overflow-wrap:anywhere;text-align:center;pointer-events:none;white-space:pre-wrap;z-index:2}.story-editor-preview>.story-music-sticker{position:absolute;top:20px;left:20px;max-width:calc(100% - 40px)}
.story-editor-controls{display:flex;flex-direction:column;gap:16px;min-width:0}.story-editor-controls .field{margin:0}.story-editor-controls textarea{resize:vertical;min-height:80px}.story-file-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.story-file-actions .btn{min-height:44px;cursor:pointer}.story-file-actions>span{font-size:12px;overflow-wrap:anywhere}.story-editor-pickers{display:flex;gap:16px;flex-wrap:wrap}.story-editor-pickers fieldset{border:0;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}.story-editor-pickers legend{font-size:12px;font-weight:700;margin-bottom:8px}.story-editor-pickers label{position:relative;cursor:pointer;display:block}.story-editor-pickers input{position:absolute;opacity:0;width:1px;height:1px}.story-editor-pickers span{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:12px;font-weight:700;min-height:44px;background:var(--surface);transition:background .18s,border-color .18s}.story-editor-pickers input:checked+span{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.story-editor-pickers input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.story-theme-picker span{background:var(--story-tone);color:var(--story-white)}
.story-music-tools{padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 6%,var(--surface)),var(--surface))}.story-music-tools summary{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:750;font-size:14px;cursor:pointer}.story-music-tools .field{margin-top:12px}.story-music-tools small{display:block;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.6}.story-music-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.story-music-actions .btn{min-height:44px;font-size:12px}.story-publish-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.story-publish-row>span{font-size:12px;color:var(--muted)}.story-publish-row .btn{min-height:48px;font-weight:800}
.story-song-preview{width:min(440px,calc(100vw - 24px));max-width:440px;border:1px solid var(--line);border-radius:24px;padding:20px;background:var(--surface);color:var(--ink)}.story-song-preview p{font-size:14px;line-height:1.7;color:var(--muted)}.story-song-preview iframe{display:block;border:0;border-radius:12px;min-width:280px}.story-song-preview .btn{margin-top:16px;min-height:44px}
.hoom-story-player{width:min(440px,calc(100vw - 16px))!important;max-width:440px!important;height:min(900px,calc(100dvh - 16px));max-height:calc(100dvh - 16px)!important;margin:auto;padding:0!important;background:var(--story-shade)!important;color:var(--story-white)!important;border:1px solid color-mix(in srgb,var(--story-white) 15%,transparent)!important;border-radius:24px!important;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 90px color-mix(in srgb,var(--story-shade) 40%,transparent)}dialog.hoom-story-player:not([open]){display:none!important}.hoom-story-player::backdrop{background:color-mix(in srgb,var(--story-shade) 94%,transparent)}
.hoom-story-player .story-progress{height:4px;flex:0 0 4px;display:flex;gap:4px;margin:12px 12px 0;padding:0;overflow:hidden}.hoom-story-player .story-progress>span{height:4px;flex:1;min-width:0;background:color-mix(in srgb,var(--story-white) 25%,transparent);border-radius:4px;overflow:hidden}.hoom-story-player .story-progress i{display:block;height:100%;background:var(--story-white);transform:scaleX(0);transform-origin:left}
.story-player-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px!important;margin:0!important;background:var(--story-shade)!important}.story-player-head>a{display:flex;align-items:center;gap:10px;min-width:0;color:var(--story-white);text-decoration:none}.story-player-head img{width:36px;height:36px;border-radius:50%;object-fit:cover}.story-player-head strong{display:block;font-size:14px}.story-player-head small{display:block;font-size:11px;opacity:.75;margin-top:3px}.story-player-head>div{display:flex;align-items:center;gap:6px}.hoom-story-player .icon-button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer;transition:background .18s}.hoom-story-player .icon-button .icon,.hoom-story-player .icon-button svg{width:22px!important;height:22px!important}.hoom-story-player .icon-button:hover{background:rgba(255,255,255,.3)!important}
.story-player-stage{flex:1;position:relative;min-height:180px;overflow:hidden;touch-action:pan-y;background:radial-gradient(circle at 20% 10%,color-mix(in srgb,var(--story-tone) 55%,var(--story-white)),transparent 75%),var(--story-tone)}.story-player-stage>img,.story-player-stage>video{display:block;width:100%!important;height:100%!important;max-height:none!important;border-radius:0!important;object-fit:contain;position:absolute;inset:0}.story-player-stage[data-fit="cover"]>img,.story-player-stage[data-fit="cover"]>video{object-fit:cover}.story-tap-area{position:absolute;top:0;bottom:0;width:22%;min-width:44px;border:0;background:transparent;color:var(--story-white);z-index:3;display:flex;align-items:center;cursor:pointer;opacity:0;transition:opacity .18s}.story-tap-area.previous{left:0;justify-content:flex-start;padding:12px}.story-tap-area.next{right:0;justify-content:flex-end;padding:12px}.story-tap-area:hover,.story-tap-area:focus-visible{opacity:1}.story-tap-area:focus-visible{outline:2px solid var(--story-white);outline-offset:-4px}.story-tap-area:disabled{pointer-events:none}.story-player-loading,.story-player-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:32px;text-align:center;background:var(--story-tone);color:var(--story-white);z-index:4}.story-player-error p{font-size:14px;line-height:1.7;max-width:280px}.story-player-loading .activity-orbit{color:var(--story-white)}
.story-player-footer{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px!important;background:var(--story-shade)!important;flex:0 0 auto}.story-player-footer>span{width:100%;font-size:11px;opacity:.7;text-align:center}.story-player-footer>a{color:var(--story-white)!important;font-size:12px;min-height:44px;display:inline-flex;align-items:center}.story-music-sticker{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--story-white) 28%,transparent);border-radius:14px;background:color-mix(in srgb,var(--story-shade) 85%,transparent);color:var(--story-white);font-size:12px;font-weight:750;line-height:1.5;text-decoration:none}.story-music-sticker .icon{width:18px;height:18px}
.story-browse-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}.story-browse-grid .timeline-story-card{height:300px;min-width:0;flex:auto}.story-browse-grid .empty-state{grid-column:1/-1}.story-video-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:linear-gradient(135deg,var(--story-lagoon),var(--story-plum));color:var(--story-white)}.story-video-tile .icon{width:36px;height:36px}.story-video-tile>span{font-size:12px;font-weight:700}.story-view-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.hoom-story-player.is-standalone{height:min(820px,calc(100dvh - 180px));min-height:440px}
@media(max-width:700px){.story-browse-page .page-intro{flex-direction:column;align-items:flex-start;gap:12px}.story-browse-page .page-intro>.btn{width:100%;justify-content:center}.hoom-story-editor{width:calc(100vw - 12px)!important;max-height:94dvh!important;border-radius:18px!important}.hoom-story-editor .story-composer{grid-template-columns:1fr;padding:14px;gap:16px}.hoom-story-editor .timeline-dialog-heading{padding:14px 16px}.story-editor-preview{height:320px;max-height:44dvh;min-height:220px}.story-publish-row{position:sticky;bottom:0;z-index:2;background:var(--surface);padding:12px 0}.story-publish-row .btn{min-height:46px;padding:0 18px}.hoom-story-player{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}.story-react-bar{max-width:calc(100vw - 20px);overflow-x:auto;scrollbar-width:none}.story-react-bar::-webkit-scrollbar{display:none}.story-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.story-browse-grid .timeline-story-card{height:240px}.story-editor-pickers{gap:10px}.story-theme-picker span{font-size:12px;padding:10px}.hoom-story-player.is-standalone{height:calc(100dvh - 76px)!important}}
@media(prefers-reduced-motion:reduce){.story-editor-pickers span,.hoom-story-player .icon-button,.story-tap-area{transition:none}}
.hoom-story-editor .story-composer>.activity-card,.hoom-story-editor .story-composer>.resilient-upload-actions{grid-column:1/-1}
.story-browse-page .page-intro>.btn{display:inline-flex!important;min-height:44px}
.conversation-entry{position:relative}.conversation-entry[hidden]{display:none!important}.conversation-story-trigger{position:absolute;top:50%;left:12px;z-index:1;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:3px;border:2px solid var(--accent);border-radius:50%;background:var(--wa-list,var(--surface));cursor:pointer;transition:border-color .2s,box-shadow .2s}.conversation-story-trigger img{width:100%;height:100%;border-radius:50%;object-fit:cover}.conversation-story-trigger:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}.conversation-story-trigger:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.conversation-story-trigger .conversation-story-presence{position:absolute;right:-1px;bottom:-1px}
:root{--story-panel:#fffaf4}html.dark{--story-panel:#10332f}.hoom-story-editor,.hoom-story-editor .timeline-dialog-heading,.hoom-story-editor .story-publish-row,.story-song-preview{background:var(--story-panel)!important}.hoom-story-editor .timeline-dialog-heading h2{color:var(--ink)!important}
.has-story-viewer{background:var(--story-shade)!important}.has-story-viewer :is(.sidebar,.topbar,.mobile-nav,[data-news-ticker]){display:none!important}.has-story-viewer .app-frame{margin:0!important}.has-story-viewer .legacy-content{padding:8px!important;max-width:none!important}.has-story-viewer .story-view-page{padding:0!important;margin:0 auto!important;max-width:460px}.has-story-viewer .story-view-top{margin:0 0 8px;padding:0 4px;min-height:44px}.has-story-viewer .back-link{color:var(--story-white)}.has-story-viewer .hoom-story-player.is-standalone{height:calc(100dvh - 76px);max-height:900px!important;min-height:300px}
.encounter-stories{margin:0 0 20px;padding:16px 20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent) 7%,var(--surface)));min-width:0}.encounter-stories-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.encounter-stories-head h2{font-size:19px;line-height:1.2;margin:0}.encounter-stories-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.encounter-stories-head>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--accent);font-size:12px;font-weight:800;text-decoration:none}.encounter-stories-head>a:hover{color:var(--ink)}.encounter-stories-strip{display:flex;gap:16px;align-items:flex-start;overflow-x:auto;overscroll-behavior-inline:contain;padding:14px 2px 4px;scrollbar-width:thin}.encounter-story,.encounter-story-add{display:flex;flex:0 0 72px;min-width:0;align-items:center;flex-direction:column;gap:8px;text-decoration:none;color:var(--ink);font-size:12px;text-align:center;cursor:pointer}.encounter-story>span,.encounter-story-add>span{position:relative;display:grid;place-items:center;width:66px;height:66px;border-radius:50%;padding:3px;background:linear-gradient(135deg,var(--accent),var(--lavender));transition:transform .18s}.encounter-story-add>span{background:var(--line)}.encounter-story img,.encounter-story-add img{width:100%;height:100%;object-fit:cover;border:3px solid var(--surface);border-radius:50%}.encounter-story-add i{display:grid;place-items:center;position:absolute;right:-2px;bottom:-2px;width:24px;height:24px;border:2px solid var(--surface);border-radius:50%;background:var(--accent);color:var(--surface);font:700 18px/1 Outfit,sans-serif}.encounter-story strong,.encounter-story-add strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.encounter-story:hover>span,.encounter-story-add:hover>span{transform:scale(1.06)}.encounter-story:focus-visible,.encounter-story-add:focus-visible,.encounter-stories-head>a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:12px}.encounter-stories-empty{color:var(--muted);font-size:13px;align-self:center;margin:0;line-height:1.5}@media(max-width:640px){.encounter-stories{padding:12px 16px;margin-bottom:16px}.encounter-stories-head h2{font-size:17px}.encounter-stories-head p{display:none}.encounter-stories-strip{gap:12px;padding-top:8px}.encounter-story,.encounter-story-add{flex-basis:64px}.encounter-story>span,.encounter-story-add>span{width:60px;height:60px}}@media(prefers-reduced-motion:reduce){.encounter-story>span,.encounter-story-add>span{transition:none}}
