/* Folknity Build10 Repair: entire V2 theme preserved, fixes isolated below existing styles. */
:root{--v10f-ink:#f7f7ff;--v10f-glass:rgba(15,19,43,.88);--v10f-edge:rgba(194,184,255,.24)}
/* Only interactive controls resist accidental long-press text selection. Messages/captions remain copyable. */
:where(.side-menu,.topbar,.mobile-nav,.f8-more-sheet,.f9-story-viewer,.v10f-reels,.v10f-create-mode,.post-actions,.v10f-crop-modal) :is(button,a,.f-icon){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
:where(.chat-page,.post-text,.msg-body,.v10f-comments-list) :is(p,span,strong,small){-webkit-user-select:text;user-select:text}
/* Mobile Notifications and Create restored side by side, independent of lower nav. */
@media(max-width:720px){.topbar .top-actions>.icon-link[title="Notifications"]{display:flex!important;position:absolute!important;right:12px!important;top:calc(11px + env(safe-area-inset-top))!important;z-index:104!important;align-items:center;justify-content:center;min-width:42px;min-height:42px}.topbar .top-actions .top-create{right:64px!important;left:auto!important;top:calc(11px + env(safe-area-inset-top))!important;position:absolute!important;z-index:102!important}.topbar .topbar-inner .brand{margin-left:0!important;padding-right:105px!important}}
/* A real Reels tab on laptop and mobile, independent of sidebar scrolling. */
.left-sidebar .side-menu .v10f-desktop-reels{display:flex;align-items:center;gap:10px}
@media(min-width:721px){.v10f-desktop-reels{display:flex!important}}
body.route-feed:has(.v10f-reels){overflow:hidden!important}
body.route-feed:has(.v10f-reels) :is(.topbar,.left-sidebar,.right-sidebar,.mobile-nav,.f8-more-fab,.f8-more-sheet){visibility:hidden!important;pointer-events:none!important}
body.route-feed:has(.v10f-reels) :is(.app-shell,.main-content){overflow:visible!important;contain:none!important;transform:none!important}
.v10f-reels{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;z-index:1350!important;overflow-y:auto!important;overflow-x:hidden!important;background:#03040b!important;scroll-snap-type:y mandatory!important;scrollbar-width:none!important;overscroll-behavior:contain!important}
.v10f-reels::-webkit-scrollbar{display:none!important}
.v10f-reels .v10-reels-head{display:none!important}
.v10f-reels .v10-reel-slide{width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;scroll-snap-align:start!important;scroll-snap-stop:always!important;display:grid!important;place-items:center!important;overflow:hidden!important;padding:0!important;background:#03040b!important;contain:layout paint!important}
.v10f-reels .v10-reel-frame{height:100dvh!important;max-height:100dvh!important;width:min(100vw,calc(100dvh * .5625))!important;max-width:100vw!important;aspect-ratio:auto!important;border-radius:0!important;box-shadow:none!important;background:#03040b!important;position:relative!important}
.v10f-reels .v10-reel-video{height:100%!important;width:100%!important;object-fit:contain!important;object-position:center!important;background:#03040b!important;max-height:none!important;image-rendering:auto}
.v10f-reels .v10-reel-badge{top:calc(14px + env(safe-area-inset-top))!important;right:12px!important;z-index:4}
.v10f-reels .v10-reel-main{bottom:calc(24px + env(safe-area-inset-bottom))!important;left:16px!important;right:85px!important;z-index:4}
.v10f-reels .v10-reel-tools{position:absolute!important;right:10px!important;bottom:calc(62px + env(safe-area-inset-bottom))!important;z-index:10!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:9px!important}
.v10f-reels .v10-reel-tools :is(button,a){min-height:44px;min-width:44px;border:0!important;background:transparent!important;color:#fff!important;font-size:26px!important;padding:5px!important;border-radius:12px!important;text-shadow:0 2px 8px #000!important;text-decoration:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;cursor:pointer}
.v10f-reels .v10-reel-tools button:hover,.v10f-reels .v10-reel-tools a:hover{background:#ffffff1e!important}
.v10f-reels .v10-reel-tools small{font-size:11px!important;font-weight:650!important;line-height:1.1!important;color:#fff!important;text-shadow:0 1px 4px #000!important}
.v10f-reels .v10f-reel-action{margin:0!important;display:contents}
.v10f-reels .v10f-reel-action button[aria-pressed="true"]{color:#eabfff!important}
.v10f-reels .v10-reel-progress{height:3px!important;bottom:0!important}
.v10f-reels-exit{position:fixed!important;top:calc(15px + env(safe-area-inset-top));left:max(16px,calc((100vw - 520px)/2 - 66px));display:inline-flex;align-items:center;gap:8px;z-index:20;padding:8px 12px;background:#121629cf;border:1px solid #ffffff50;border-radius:999px;color:white!important;font-size:13px;font-weight:750;text-decoration:none!important}
@media(max-width:720px){.v10f-reels .v10-reel-frame{width:100vw!important;border-radius:0!important}.v10f-reels .v10-reel-main{bottom:calc(30px + env(safe-area-inset-bottom))!important}.v10f-reels-exit{left:13px;top:calc(16px + env(safe-area-inset-top))}}
@media(min-width:721px){.v10f-reels .v10-reel-frame{border-inline:1px solid #29263b!important;background:#040712!important}.v10f-reels .v10-reel-main{bottom:28px!important}.v10f-reels-exit{left:clamp(12px,10vw,130px)}}
/* Semi-height native-feeling comments drawer, no scrolling behind overlay. */
.v10f-comments-layer[hidden]{display:none!important}.v10f-comments-layer{position:fixed;inset:0;z-index:1801;display:flex;justify-content:center;align-items:end}.v10f-comments-scrim{position:absolute;inset:0;background:#01020ab3;backdrop-filter:blur(3px)}
.v10f-comments-open{overflow:hidden!important}.v10f-comments-drawer{position:relative;display:flex;flex-direction:column;width:min(510px,100%);height:min(62dvh,680px);background:linear-gradient(160deg,#171937,#0b0d20);color:#fff;border:1px solid #9695c24a;box-shadow:0 -22px 80px #000b;border-radius:23px 23px 0 0;overflow:hidden;animation:v10f-rise .22s cubic-bezier(.18,.82,.3,1)}
.v10f-comments-drawer header{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff1b}.v10f-comments-drawer h2{margin:0;font-size:17px}.v10f-comments-drawer header button{width:38px;height:38px;background:#ffffff15;color:white;border:0;border-radius:10px}.v10f-comments-list{padding:12px 17px;flex:1;overflow:auto;overscroll-behavior:contain}.v10f-comment{padding:11px 4px;border-bottom:1px solid #ffffff12}.v10f-comment strong{color:#fff;font-size:13px}.v10f-comment p{margin:5px 0;white-space:pre-wrap;line-height:1.45;font-size:14px}.v10f-comment small{color:#aeb3ca;font-size:11px}.v10f-comments-drawer form{display:flex;align-items:center;gap:10px;padding:12px 15px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #ffffff1b}.v10f-comments-drawer input[name="body"]{flex:1;min-width:0;border:1px solid #979bc344;border-radius:999px;padding:11px 15px;background:#080b1c;color:white;font-size:14px}
/* Story creator avatar+name is one anchored unit, independent of obsolete row rules. */
.f9-story-media .story-view>.v10-story-author-wrap,.v6-story-content .story-view>.v10-story-author-wrap{position:absolute!important;top:calc(24px + env(safe-area-inset-top))!important;left:14px!important;right:62px!important;z-index:9!important;display:flex!important;align-items:center!important;width:auto!important;min-width:0!important;padding:5px!important;margin:0!important;gap:0!important;background:linear-gradient(90deg,#0008,transparent)!important}
.v10f-story-identity{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;max-width:100%!important;flex:0 1 auto!important;white-space:nowrap!important;min-width:0!important}
.v10f-story-identity .avatar{width:35px!important;height:35px!important;flex:0 0 35px!important;border-radius:50%!important;object-fit:cover!important;margin:0!important;padding:0!important}
.v10f-story-identity strong{max-width:calc(100% - 47px)!important;display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;white-space:nowrap!important;margin:0!important;flex:none!important;font-size:13px!important;line-height:1.25!important}
.v10f-story-identity a{display:inline!important;max-width:100%!important;color:white!important;text-decoration:none!important}
/* Crop editor lives in modal after gallery selection; do not render a blank slot. */
.v10f-upload-field>input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.v10f-upload-field{position:relative!important}.v10f-upload-field small{font-size:12px;color:#b5bdd9}.v10f-create-mode{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.v10f-create-mode :is(button,a){background:#161b3b;color:#f6f5ff;border:1px solid #9a8fc65a;padding:11px 15px;border-radius:12px;font-size:13px;font-weight:750;cursor:pointer;text-decoration:none}
.v10f-create-mode button[aria-pressed="true"]{background:linear-gradient(115deg,#5240a6,#27245f);border-color:#a69afa;color:#fff;box-shadow:inset 0 0 0 1px #9187f534}
.v10f-media-stage{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px dashed #aca1f45c;border-radius:17px;padding:20px;background:linear-gradient(120deg,#171b3a,#10152b)}
.v10f-select-file,.v10f-reedit{border:1px solid #aca2e465;background:linear-gradient(140deg,#4d3d97,#2d295c);color:#fff;border-radius:12px;padding:12px 17px;font-weight:750;cursor:pointer}
.v10f-media-status{font-size:12px;color:#ccd1ea;overflow-wrap:anywhere}.v10f-crop-open{overflow:hidden!important}.v10f-crop-modal{position:fixed;inset:0;z-index:9990;display:grid;place-items:center;padding:12px;color:#fff}.v10f-crop-backdrop{position:absolute;inset:0;background:#01030bea;backdrop-filter:blur(12px)}
.v10f-crop-box{position:relative;z-index:1;width:min(650px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;display:flex;flex-direction:column;gap:11px;padding:19px;background:linear-gradient(145deg,#1e214a,#0e122b);border:1px solid #b7a7ff53;border-radius:22px;box-shadow:0 25px 95px #000a;animation:v10f-rise .25s ease-out}
.v10f-crop-box header{display:flex;justify-content:space-between;align-items:start;gap:12px}.v10f-crop-box header span{color:#c3bafa;font-size:10px;font-weight:800;letter-spacing:.12em}.v10f-crop-box h2{font-size:22px;margin:4px 0 0}.v10f-crop-box header>button{border:0;color:white;background:#ffffff1d;border-radius:50%;width:40px;height:40px;font-size:20px;cursor:pointer}
.v10f-canvas-wrap{min-height:150px;display:grid;place-items:center;overflow:hidden;background:#050813;border-radius:15px;border:1px solid #ffffff12}.v10f-canvas-wrap canvas{display:block;max-height:min(45dvh,440px);max-width:100%;object-fit:contain;border-radius:4px;touch-action:none;cursor:grab}.v10f-crop-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.v10f-crop-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.v10f-crop-controls input{max-width:130px;accent-color:#b9a5ff}.v10f-crop-controls button,.v10f-crop-box footer button:first-child{padding:10px 14px;border-radius:10px;background:#33305e;color:#fff;border:1px solid #ffffff30;cursor:pointer}.v10f-crop-box p{font-size:12px;color:#bdc2d8;line-height:1.4}.v10f-crop-box footer{display:flex;justify-content:end;gap:10px}.v10f-crop-box footer .button{margin:0}
/* Improve Explore desktop/mobile text sizing, form contrast, and autocomplete containment. */
.route-search .v4-explore-hero :is(h1,p),.route-search .v4-explore-form :is(input,button),.route-search .v4-scope-tabs a{color:#f5f6ff!important;text-shadow:none!important;line-height:1.45!important}
.route-search .v4-explore-search{min-width:0!important;flex:1 1 240px!important}.route-search .v4-explore-form{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:10px!important;position:relative;z-index:5;max-width:100%!important}.route-search .v4-explore-form input[type="search"]{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:15px 14px!important;box-sizing:border-box!important;background:#0a112a!important;border:1px solid #7e79a26b!important;border-radius:12px!important;color:#fff!important;letter-spacing:normal!important;font-size:15px!important}.route-search .v4-explore-form input::placeholder{color:#aeb9d1!important;opacity:1!important}.route-search .v4-explore-form button{flex:0 0 auto;white-space:nowrap}.route-search .v4-explore-hero h1{overflow-wrap:break-word!important}
/* Shared post/Reel preview cards in chats, no cross-user media leaks. */
.v10f-share-preview{display:flex;align-items:center;gap:11px;min-height:83px;margin:9px 0 5px;padding:10px;max-width:320px;background:#141a36;border:1px solid #bdb0f54a;border-radius:13px;color:#f6f6ff!important;text-decoration:none!important;overflow:hidden}.v10f-share-preview img{width:68px;height:68px;object-fit:cover;border-radius:8px;flex:none}.v10f-preview-symbol{width:68px;height:68px;display:grid;place-items:center;font-size:26px;background:#45388880;border-radius:10px;flex:none}.v10f-preview-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.v10f-preview-copy strong{font-size:12px}.v10f-preview-copy>span,.v10f-preview-copy small{color:#c7c5e2;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v10f-preview-open{color:#d1bafd;font-size:17px}.chat-bubble .v10f-share-preview{color:#fff!important}
@keyframes v10f-rise{from{opacity:.4;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.v10f-crop-box,.v10f-comments-drawer{animation:none!important}}

/* Build 10.2: active share sheet must be ABOVE the viewport Reel player. */
.f9-share-backdrop:not([hidden]){z-index:2800!important}
.f9-share-sheet:not([hidden]){z-index:2801!important}
@media(max-width:720px){.topbar .top-actions>.icon-link[title="Notifications"]{display:flex!important}.topbar .top-actions .top-create{display:flex!important;right:64px!important;left:auto!important}}
