/* Connecta V117: scoped final layer, after legacy surface styles. */
.spaces-v111,.connections-v116{--surface-soft:color-mix(in srgb,var(--panel,#20152f) 94%,#b777f2)}
.spaces-v111 .spaces-heading{padding:18px 0 8px}.spaces-heading h1{font-size:clamp(25px,4vw,36px);line-height:1.2;margin:8px 0}.spaces-heading p{margin:8px 0;font-size:13px}.spaces-v111 .spaces-tabs{scrollbar-width:none;gap:7px;flex-wrap:nowrap;overflow:auto}.spaces-tabs::-webkit-scrollbar{display:none!important}.spaces-v111 .spaces-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.spaces-v111 .spaces-feature{padding:0;overflow:hidden;border-radius:22px;background:var(--panel,#20152f);box-shadow:0 8px 24px #0905110d;min-width:0;transition:transform .2s,border-color .2s}.spaces-feature:hover{transform:translateY(-3px)}.spaces-feature>img{display:block;width:100%;height:150px;object-fit:cover}.spaces-feature>div{padding:18px}.spaces-v111 .spaces-feature h2{font-size:18px;line-height:1.3;margin:7px 0 10px}.spaces-v111 .spaces-feature p{font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.spaces-feature>div>small{font-size:9px;letter-spacing:1.6px;color:#b998da}.spaces-feature>div>span{font-size:12px;color:#c7a4f0}.spaces-v111>.connections-inline-link-v116,.retro-v112>.connections-inline-link-v116{display:inline-flex;align-items:center;gap:9px;padding:11px 16px;background:linear-gradient(110deg,#8351d624,#d557ad1a);border:1px solid #b381d644;border-radius:13px;margin:6px 0 16px;font-size:12px;text-decoration:none}
/* Media size follows the source aspect ratio. No cover crop or forced 2:3. */
.discovery-v109:has(.is-clips){max-width:980px}.discovery-v109:has(.is-clips)>header{padding:6px 0}.discovery-v109:has(.is-clips)>header h1{font-size:26px;margin:6px 0}.discovery-v109:has(.is-clips)>header p,.discovery-v109:has(.is-clips)>header>a{display:none}.discovery-v109:has(.is-clips)>nav{scrollbar-width:none;flex-wrap:nowrap;overflow:auto;padding:4px 0 10px;margin:8px 0}.discovery-v109 .discovery-items.is-clips{width:100%;max-width:680px;display:flex;flex-direction:column;align-items:center;gap:22px;margin:auto}.discovery-v109 .is-clips article{position:relative;width:min(100%,calc((100svh - 155px)*var(--clip-ratio,0.5625)));max-width:680px;min-width:0;border:1px solid #ad7ad23b;border-radius:22px;overflow:hidden;background:#0a0711;scroll-margin-top:86px;margin:0;isolation:isolate}.discovery-v109 .is-clips article>video{display:block!important;width:100%!important;height:auto!important;aspect-ratio:var(--clip-ratio,9/16)!important;max-height:calc(100svh - 155px)!important;object-fit:contain!important;background:#0a0711}.is-clips .discovery-copy{position:absolute;left:0;right:0;bottom:38px;padding:54px 18px 14px;background:linear-gradient(transparent,#0b0719dd);color:#fff;pointer-events:none}.is-clips .discovery-copy a,.is-clips .discovery-copy details{pointer-events:auto;color:#fff}.is-clips .discovery-copy>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;margin:7px 0}.is-clips .discovery-copy>small{font-size:10px;margin:5px 0}.is-clips .discovery-copy>a:first-child{font-weight:700;font-size:13px}.is-clips .discovery-open{font-size:11px}.clip-play-v117{position:absolute;top:12px;right:12px;z-index:2;background:#100b1ed9;border:1px solid #ffffff40;border-radius:14px;color:white;padding:10px 14px;min-height:44px;cursor:pointer}.clip-play-v117[hidden]{display:none}.discovery-autoplay{min-height:38px;display:inline-flex;align-items:center;font-weight:600}.discovery-explainer{max-width:680px;font-size:12px;color:var(--muted,#b7a4ca);line-height:1.7}
/* Identity is one readable block; public bio and links get their own space. */
body .fb-profile .fb-cover{height:330px!important;border-radius:22px 22px 0 0}.fb-profile .cover-shade{inset:0!important;background:linear-gradient(180deg,#08041108 15%,#090513b8 57%,#090513f5)!important}body .fb-profile .fb-identity.profile-overlap-v114{grid-template-columns:118px minmax(0,1fr)!important;gap:12px 22px!important;margin-top:-210px!important;padding:12px 24px 22px!important}.fb-profile .profile-overlap-v114>img{width:118px!important;height:118px!important;border:4px solid #ffffffbd!important;align-self:center!important;margin:0!important;box-shadow:0 8px 28px #0004}.fb-profile .profile-heading-v114{min-height:180px;padding:12px 0!important;gap:8px!important;justify-content:center!important;min-width:0}.fb-profile .profile-heading-v114 h1{font-size:32px!important;line-height:1.18!important;margin:0!important;overflow-wrap:anywhere}.profile-handle-v117{display:block!important;margin:0!important;font-size:14px!important;opacity:.9;overflow-wrap:anywhere}.profile-friends-v117{display:flex;gap:7px;align-items:center;font-size:13px;color:white}.profile-stats-v117{display:flex;gap:18px;align-items:center;color:white;font-size:12px;line-height:1.5}.profile-stats-v117 b{font-size:15px}.fb-profile .profile-heading-v114 .mini-faces{display:flex;margin:0!important}.fb-profile .profile-heading-v114 .mini-faces img{width:25px!important;height:25px!important;border:2px solid #fff8!important}.fb-profile .profile-overlap-v114 .profile-meta-v113{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0!important;grid-column:1/-1}.fb-profile .profile-meta-v113 span{border-radius:20px;background:var(--panel,#21152f);border:1px solid var(--line,#a776ce38);padding:7px 11px;font-size:12px!important}.fb-profile .profile-buttons{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px!important;align-items:stretch!important}.fb-profile .profile-buttons>a,.fb-profile .profile-buttons button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:11px 13px!important;border-radius:13px!important;min-width:0!important;min-height:44px;font:600 13px/1.3 system-ui!important;margin:0!important;box-sizing:border-box;text-decoration:none}.fb-profile .profile-buttons form{margin:0;display:flex}.fb-profile .profile-buttons form button{width:100%}.fb-profile .profile-buttons [hidden]{display:none!important}.profile-bio-panel-v117{margin:0 22px 16px;padding:17px 20px;border-radius:18px;background:var(--panel,#21152f);border:1px solid var(--line,#ac7bd338)}.profile-bio-panel-v117>small{display:block;letter-spacing:1.7px;font-size:9px;color:var(--muted,#b7a4cc);margin-bottom:7px}.profile-bio-panel-v117 .profile-bio-v104{font-size:14px!important;line-height:1.8!important;margin:0 0 10px!important;white-space:pre-line;overflow-wrap:anywhere}.profile-bio-panel-v117 .profile-inline-links-v104{margin:0!important}.fb-profile .profile-tabs{scrollbar-width:none;flex-wrap:nowrap;overflow:auto;gap:4px}.profile-tabs::-webkit-scrollbar{display:none!important}.fb-profile .profile-tabs a{white-space:nowrap;padding:11px 15px!important;border-radius:12px;font-size:12px}.connections-profile-v116,.retro-corner-v112{padding:19px!important;border:1px solid var(--line,#ae7ad339)!important;background:var(--panel,#21152f)!important;border-radius:20px!important}.connections-profile-v116 h2,.retro-corner-v112 h2{font-size:17px!important;line-height:1.4}.connections-profile-v116>a,.retro-corner-v112>a,.corner-controls>a{display:inline-flex!important;align-items:center;gap:8px;min-height:42px;padding:10px 12px;border:1px solid var(--line,#aa7bd43b);border-radius:12px;background:#a775cb0c;color:inherit;text-decoration:none;font-size:12px!important;line-height:1.4;margin:4px 4px 4px 0}.action-icon-v117{width:17px;height:17px;flex:none}.connections-profile-v116>p{font-size:13px;line-height:1.8}.connections-personality-v116{gap:7px}.connections-personality-v116 span{border-radius:10px;font-size:11px}
/* Communities retain their real covers, icons, members and permissions. */
.communities-home .community-splash{padding:26px;border-radius:24px;margin-bottom:22px}.community-splash h1{font-size:clamp(27px,4vw,43px);line-height:1.15;max-width:620px}.community-splash p{font-size:13px;line-height:1.75;max-width:600px}.communities-home .community-cards{gap:19px}.community-card-v101{border-radius:22px!important;box-shadow:0 12px 30px #09051114;transition:transform .2s}.community-card-v101:hover{transform:translateY(-3px)}.community-card-v101 .card-art{height:166px!important;position:relative}.community-card-v101 h3{font-size:19px;line-height:1.3}.community-card-v101 .card-body{padding:20px!important}.community-icon-image-v113,.community-icon-v113{width:100%!important;height:100%!important;object-fit:contain}.community-card-v101 .card-art>b,.community-avatar{box-shadow:0 5px 18px #09051240;border-radius:17px!important;backdrop-filter:blur(12px)}.community-space .community-hero{border-radius:22px;overflow:hidden}.community-tabs{scrollbar-width:none}.community-tabs::-webkit-scrollbar{display:none!important}.community-pane .members-grid>a,.community-side>a{border-radius:15px}.community-art-fallback-v117{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.community-art-note-v117{position:absolute;right:10px;bottom:10px;font-size:9px;color:#fff;background:#130b27a8;padding:3px 7px;border-radius:8px;z-index:1;pointer-events:none}
/* Decorative illustrative portraits: four / six / eight, with a pause control. */
.connection-faces-v93.orbit-v117{inset:0!important;animation:none!important;border-radius:0}.orbit-v117 .connection-face-v93{left:var(--x,50%)!important;top:var(--y,50%)!important;right:auto!important;bottom:auto!important;width:38px;height:38px;opacity:var(--visible,1);transform:translate(-50%,-50%) scale(var(--scale,1));transition:left 2s cubic-bezier(.3,.1,.2,1),top 2s cubic-bezier(.3,.1,.2,1),opacity .6s,transform 1.6s;animation:none!important;border-width:2px;box-shadow:0 6px 18px #8852d348}.orbit-caption-v117{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:9px;position:relative;z-index:1}.orbit-caption-v117 small{font-size:10px;color:#7d6c99}.orbit-caption-v117 button{font:10px system-ui;padding:6px 8px;min-height:28px;border-radius:10px;border:1px solid #9672b63b;color:#7d6c99;background:transparent;cursor:pointer}.signup-live i.pulse-dot-v117{display:inline-block;width:7px;height:7px;border-radius:50%;background:#48c99b;margin-right:7px;animation:livePulseV117 2s ease-in-out infinite}.signup-community[data-source=simulated] .pulse-dot-v117{background:#b99cde;animation:none}.signup-community[data-source=unavailable] .pulse-dot-v117{background:#ac9cb8;animation:none}@keyframes livePulseV117{50%{box-shadow:0 0 0 5px #48c99b18;opacity:.65}}
@media(max-width:700px){.spaces-v111 .spaces-grid{grid-template-columns:1fr 1fr;gap:12px}.spaces-feature>img{height:105px}.spaces-feature>div{padding:14px}.spaces-v111 .spaces-feature h2{font-size:15px}.spaces-v111 .spaces-feature p{font-size:11px;-webkit-line-clamp:2}.spaces-v111 .spaces-tabs a{font-size:11px;padding:9px 11px}.discovery-v109:has(.is-clips){width:calc(100% - 20px);margin:8px auto 95px}.discovery-v109:has(.is-clips)>header h1{font-size:21px}.discovery-v109 .is-clips article{width:min(100%,calc((100svh - 165px)*var(--clip-ratio,0.5625)));border-radius:18px;scroll-margin-top:70px}.discovery-v109 .is-clips article>video{max-height:calc(100svh - 165px)!important}.is-clips .discovery-copy{padding:44px 13px 8px;bottom:34px}.is-clips .discovery-copy>p{font-size:12px}.discovery-autoplay{font-size:11px;margin:4px 0}.communities-home .community-splash{padding:20px!important;margin-top:12px}.community-splash h1{font-size:29px!important;line-height:1.18!important;margin:10px 0}.community-splash p{font-size:12px!important}.community-splash .community-orbit{display:none}.community-splash .splash-actions{display:flex;gap:8px;flex-wrap:wrap}.splash-actions>*{padding:11px 12px!important;font-size:12px!important;min-height:42px}.community-card-v101 .card-art{height:148px!important}body .fb-profile .fb-cover{height:310px!important}body .fb-profile .fb-identity.profile-overlap-v114{grid-template-columns:90px minmax(0,1fr)!important;margin-top:-201px!important;gap:10px 14px!important;padding:8px 15px 18px!important}.fb-profile .profile-overlap-v114>img{width:90px!important;height:90px!important}.fb-profile .profile-heading-v114{min-height:181px!important;padding-right:0!important}.fb-profile .profile-heading-v114 h1{font-size:24px!important}.fb-profile .profile-heading-v114 p.profile-handle-v117{font-size:13px!important}.profile-friends-v117{font-size:12px}.profile-stats-v117{gap:12px;font-size:11px;flex-wrap:wrap}.profile-stats-v117 b{font-size:14px}.fb-profile .profile-overlap-v114>.profile-buttons{display:grid!important;grid-template-columns:1fr 1fr;width:100%!important}.profile-bio-panel-v117{margin:0 14px 14px;padding:15px}.profile-bio-panel-v117 .profile-bio-v104{font-size:13px!important}.cover-editor-v113:not([open]){margin-top:-305px!important;margin-bottom:263px!important}.orbit-v117 .connection-face-v93{width:30px;height:30px}.connections-profile-v116,.retro-corner-v112{margin-bottom:14px!important}}
@media(max-width:360px){.spaces-v111 .spaces-grid{grid-template-columns:1fr}.spaces-feature{display:grid;grid-template-columns:105px minmax(0,1fr)}.spaces-feature>img{height:100%;min-height:160px}.fb-profile .profile-overlap-v114>img{width:76px!important;height:76px!important}body .fb-profile .fb-identity.profile-overlap-v114{grid-template-columns:76px minmax(0,1fr)!important;gap:10px!important}.fb-profile .profile-heading-v114 h1{font-size:21px!important}.profile-stats-v117{gap:7px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.orbit-v117 .connection-face-v93,.spaces-feature,.community-card-v101{transition:none!important}.signup-live i.pulse-dot-v117{animation:none!important}}
.preview-shortcut-v117{margin:8px 0 12px;padding:9px 12px;border:1px solid #a775ca30;border-radius:12px;font-size:11px}.preview-shortcut-v117 summary{cursor:pointer;color:var(--muted,#b7a4cc)}.preview-shortcut-v117>div{padding-top:10px}.discovery-v109:has(.is-clips)>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.discovery-v109:has(.is-clips)>header>small{display:none}.discovery-v109:has(.is-clips)>header h1{font-size:24px;white-space:nowrap}.discovery-v109:has(.is-clips)>header .discovery-autoplay{margin:0;font-size:10px;padding:8px 10px;white-space:nowrap}.discovery-v109:has(.is-clips)>nav>a{white-space:nowrap;flex:none}.spaces-channel-person-v117{display:flex;gap:9px;align-items:center;text-decoration:none;color:inherit}.spaces-channel-person-v117>img{width:35px;height:35px;border-radius:50%;object-fit:cover}.spaces-channel-person-v117 strong,.spaces-channel-person-v117 small{display:block}.spaces-channel-person-v117 small{font-size:10px;color:var(--muted,#b5a2cb)}.spaces-channel-person-v117 strong{font-size:13px}.spaces-channel-messages>article{padding:16px;border-radius:16px;background:var(--panel,#21152f);border:1px solid var(--line,#a776ce33);margin-bottom:12px}.profile-community>b>img{width:100%;height:100%;object-fit:contain}
.spaces-v111 .spaces-tabs a{white-space:nowrap;flex:none;padding:9px 12px}.spaces-paths-v117{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0 16px}.spaces-paths-v117>a{padding:12px 14px!important;border:1px solid #a97bd53b;border-radius:13px;background:#a775ca0e;text-decoration:none;font-size:12px!important;color:inherit;margin:0!important;min-width:0}.spaces-v111 .spaces-heading p{margin:7px 0}.spaces-paths-v117+nav{margin-top:8px}
.fb-profile .profile-buttons>a.primary,.fb-profile .profile-buttons button.primary{background:linear-gradient(110deg,#7945d6,#b250b5)!important;color:#fff!important;border:0!important}.profile-bio-panel-v117 .profile-extra-links-v105>summary{font-size:12px;color:var(--muted,#bba6ce);min-height:32px;cursor:pointer}
@media(max-width:700px){body .communities-home .community-splash{padding:18px!important;margin-bottom:14px!important}body .communities-home .community-splash h1{font-size:24px!important;line-height:1.2!important;margin:6px 0 10px!important}body .community-splash h1 em{display:block!important}body .community-splash small{display:none}body .community-splash p{margin:8px 0 14px!important;font-size:12px!important}.community-tools-v98{display:grid!important;grid-template-columns:minmax(0,1fr) 98px;gap:8px!important;align-items:center;margin:10px 0!important}.community-modes-v98{display:flex!important;flex-wrap:nowrap!important;overflow:auto;scrollbar-width:none;min-width:0}.community-modes-v98 button{flex:none;white-space:nowrap;font-size:10px!important;padding:9px!important}.community-tools-v98 select{width:98px;min-width:0;font-size:10px;padding:9px}.community-categories-v98{display:flex!important;flex-wrap:nowrap!important;overflow:auto;scrollbar-width:none;gap:6px}.community-categories-v98 button{white-space:nowrap;flex:none;font-size:10px!important}.community-categories-v98::-webkit-scrollbar,.community-modes-v98::-webkit-scrollbar{display:none!important}.discovery>header{gap:12px!important;margin:18px 0 12px!important}.discovery>header h2{font-size:22px!important}.communities-home [data-community-lab]{margin:12px 0!important}}
