/* Folknity 10.2: focused fixes, no external CSS/fonts or mandatory glow. */
:root{--f102-ink:#fcfcff}
.v10f-reels .v10-reel-tools .v10-2-icon{width:27px;height:27px;display:block;flex:none;pointer-events:none;fill:none!important;stroke:currentColor!important}
.v10f-reels .v10-reel-tools{z-index:40!important}
.v10f-reels .v10-reel-tools button,.v10f-reels .v10-reel-tools a{min-width:47px;min-height:47px;color:#fff!important;text-shadow:none!important}
.v10f-reels .v10f-reel-action button[aria-pressed=true] .v10-2-icon{color:#fc86bd!important;fill:rgba(252,134,189,.38)!important}
.v10f-reels .v10-reel-sound{font-size:24px!important}.v10f-reels .v10-reel-video{object-fit:contain!important}
.v10-2-comment{display:flex;flex-direction:column;gap:8px}.v10-2-comment-head{display:flex;align-items:center;gap:10px;min-width:0}.v10-2-comment-head>div{display:flex;flex-direction:column;gap:3px}.v10-2-comment-head small{display:block;color:#b9bbd4;font-size:11px}.v10-2-comment-head a{text-decoration:none;color:#fff}
.v10-2-comment-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;background:#6051a2;overflow:hidden;font-weight:800}.v10-2-comment-avatar img{width:100%;height:100%;object-fit:cover}
.v10-2-comment p{margin:1px 0 0 48px!important;font-size:14px!important;line-height:1.4}.v10-2-comment-like{align-self:flex-start;margin-left:48px;border:0;background:none;color:#b9c0d9;padding:4px 0;min-height:32px;cursor:pointer;font-size:12px}.v10-2-comment-like[aria-pressed=true]{color:#ff8aab}
.chat-bubble-wrap .v10-2-rich-preview{width:min(330px,74vw)!important;max-width:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;overflow:hidden!important;border-radius:17px!important;padding:0!important;text-decoration:none!important;background:#131936!important;box-shadow:0 4px 16px #02030d5c}
.v10-2-preview-media{width:100%;height:clamp(145px,37vw,260px);position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#292855,#0a0e26)}
.chat-bubble-wrap .v10-2-preview-media img,.chat-bubble-wrap .v10-2-preview-media video{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important}
.v10-2-rich-preview .v10f-preview-copy{display:flex;gap:4px;padding:13px 14px 15px;flex:1;min-width:0;width:100%;flex-direction:column}
.v10-2-rich-preview .v10f-preview-copy strong{font-size:14px!important;line-height:1.3}.v10-2-rich-preview .v10f-preview-copy span{font-size:12px!important}.v10-2-rich-preview .v10f-preview-copy small{font-size:12px!important;color:#bac2d7!important;white-space:normal!important;line-height:1.35!important}
.v10-2-play-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#070b1999;padding:14px 17px;font-size:23px;color:white;backdrop-filter:blur(5px)}
/* Force identity anchored as a SINGLE group, regardless of legacy story flex rules. */
.f9-story-viewer .f9-story-media .story-view>.v10-story-author-wrap{position:absolute!important;left:13px!important;right:auto!important;top:calc(26px + env(safe-area-inset-top))!important;width:max-content!important;max-width:calc(100% - 87px)!important;display:inline-flex!important;justify-content:flex-start!important;align-items:center!important;gap:0!important;z-index:15!important}
.f9-story-viewer .v10f-story-identity{display:inline-flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;width:max-content!important;max-width:100%!important;gap:9px!important}
.f9-story-viewer .v10f-story-identity .avatar{width:35px!important;height:35px!important;flex:0 0 35px!important}
.f9-story-viewer .v10f-story-identity strong{display:inline-block!important;width:auto!important;max-width:calc(100% - 44px)!important;margin:0!important;flex:0 1 auto!important;text-align:left!important}
.f9-story-viewer .v10f-story-identity strong a{white-space:nowrap!important}
@media(max-width:720px){.topbar .top-actions .top-create{right:64px!important}.topbar .top-actions>.icon-link[title="Notifications"]{display:flex!important;right:12px!important}.topbar .topbar-inner .brand{margin-left:0!important;padding-right:105px!important}}
@media(prefers-reduced-motion:reduce){.v10-2-rich-preview{transition:none!important}}

/* Explore search: use readable, stable responsive fields and unclipped results. */
body.route-search .v4-explore-hero{min-width:0;overflow-wrap:break-word}
body.route-search .v4-explore-hero h1{font-size:clamp(29px,6.5vw,54px)!important;line-height:1.15!important;letter-spacing:-.02em;overflow-wrap:break-word}
body.route-search .v4-explore-form{position:relative!important;display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:10px!important;max-width:100%;isolation:isolate}
body.route-search .v4-explore-search{display:block!important;flex:1 1 235px!important;min-width:0!important;max-width:100%}
body.route-search .v4-explore-search>input[type=search]{font-size:16px!important;line-height:1.4!important;color:#f9fbff!important;-webkit-text-fill-color:#f9fbff!important;min-height:49px!important;padding:11px 14px!important;width:100%!important;box-sizing:border-box!important;background:#101933!important;border:1px solid rgba(183,177,234,.55)!important;outline-offset:2px!important}
body.route-search .v4-explore-form .button{white-space:nowrap;min-height:49px!important;padding:11px 18px!important}
body.route-search .v4-scope-tabs{display:flex!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:thin;gap:8px;padding:8px 2px}
body.route-search .v4-scope-tabs a{flex:none!important;white-space:nowrap!important;color:#e7e8fa!important;padding:9px 13px!important}
body.route-search .v4-discovery-grid{max-width:100%;min-width:0;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr))!important}
body.route-search .v4-discovery-grid>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){body.route-search .v4-explore-form .button{flex:1 1 100%!important;justify-content:center}body.route-search .v4-explore-hero{padding:22px 18px!important}}
