/* Original LOOP destination layouts built around native HumHub features. */
.loop-chat-layout{max-width:1420px;margin:10px auto}.loop-chat-grid{display:grid;grid-template-columns:minmax(285px,360px) minmax(0,1fr);gap:32px;margin:0}.loop-chat-grid>aside,.loop-chat-grid>section{width:auto;padding:0;min-width:0}
.loop-chat-sidebar #mail-conversation-overview{background:var(--loop-surface);border:0;border-radius:24px;padding:25px 24px;min-height:calc(100dvh - 135px);box-shadow:none;color:var(--loop-text)}
.loop-chat-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.loop-chat-heading h1{font-size:28px;letter-spacing:-1px;margin:0;font-weight:600}.loop-chat-heading h1 a{color:inherit;text-decoration:none;cursor:pointer}.loop-chat-heading #mail-conversation-create-button{border-radius:24px;background:var(--loop-raised);border:0;color:var(--loop-text);float:none!important;font-size:11px;padding:10px}
.loop-chat-sidebar .loop-chat-tabs{justify-content:space-between;margin-bottom:17px;gap:12px}.loop-chat-sidebar [data-loop-chat-panel][hidden]{display:none!important}.loop-chat-sidebar .loop-contact{padding:14px 2px;border-bottom:1px solid var(--loop-border);text-decoration:none}.loop-chat-filter{margin:0 0 20px;font-size:11px;color:var(--loop-muted)}.loop-chat-filter>summary{cursor:pointer;margin-bottom:10px}.loop-chat-filter #conversation-filter-link{font-size:12px}.loop-chat-sidebar #inbox{padding:0}.loop-chat-sidebar .hh-list-item{background:transparent;border-color:var(--loop-border);padding:14px 6px;border-radius:12px}.loop-chat-sidebar .hh-list-item:hover,.loop-chat-sidebar .hh-list-item.active{background:var(--loop-soft)}
.loop-chat-message-root,#mail-conversation-root{min-height:calc(100dvh - 135px);background:var(--loop-surface);border-radius:24px;overflow:hidden}.loop-chat-welcome{min-height:calc(100dvh - 135px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 35px}.loop-chat-welcome small{font-size:9px;letter-spacing:2px;color:var(--loop-accent);margin-top:30px}.loop-chat-welcome h1{font-size:30px;letter-spacing:-1px;margin:15px 0;font-weight:600}.loop-chat-welcome p{font-size:13px;color:var(--loop-muted);line-height:1.9;margin-bottom:25px}.loop-chat-welcome .btn{border-radius:24px;padding:13px 23px;font-size:12px}.loop-chat-promises{display:flex;gap:17px;flex-wrap:wrap;justify-content:center;color:var(--loop-muted);font-size:9px;margin-top:40px}.loop-chat-promises span:before{content:'✦';color:var(--loop-accent);margin-right:5px}
.loop-chat-art{position:relative;width:230px;height:145px;margin:0 auto}.loop-chat-art>span{position:absolute;display:grid;place-items:center;background:#8a66ba;border:2px solid #cba4ff44;border-radius:26px 26px 4px 26px;width:135px;height:90px;left:4px;top:2px;font-size:38px;letter-spacing:7px;color:#f4eaff;box-shadow:0 20px 40px #0002;transform:rotate(-12deg)}.loop-chat-art>span:nth-child(2){left:94px;top:54px;width:122px;height:80px;background:#c7a3ff;color:#593a7c;transform:rotate(12deg);border-radius:25px 25px 25px 4px}.loop-chat-art>i{position:absolute;right:2px;top:4px;font-size:28px;font-style:normal;color:var(--loop-accent)}.loop-chat-art.small{transform:scale(.55);height:100px;width:200px;transform-origin:center center}.loop-chat-empty{text-align:center;padding:75px 0 35px}.loop-chat-empty h2{font-size:16px;margin:15px 0}.loop-chat-empty p{font-size:11px;color:var(--loop-muted);line-height:1.9}.loop-chat-empty .btn{font-size:11px;border-radius:22px;padding:10px 20px;margin-top:10px}
.loop-chat-thread .panel{background:var(--loop-surface);border:0;box-shadow:none;border-radius:0}.loop-chat-thread .panel-heading,.loop-chat-thread .panel-footer{background:var(--loop-surface);border-color:var(--loop-border)}.loop-chat-thread .mail-conversation-entry{color:var(--loop-text)}.loop-chat-thread .mail-conversation-entry.own .content{background:var(--loop-soft)}.loop-chat-thread .ProseMirror{color:var(--loop-text)}
.loop-communities-page{max-width:1420px;margin:8px auto 45px}.loop-community-heading{display:flex;align-items:center;justify-content:space-between;gap:25px}.loop-community-heading small{font-size:10px;color:var(--loop-accent);letter-spacing:2px}.loop-community-heading h1{font-size:39px;letter-spacing:-1.5px;margin:12px 0}.loop-community-heading p,.loop-section-title p{font-size:13px;color:var(--loop-muted);line-height:1.8}.loop-community-heading .btn{border-radius:25px;padding:12px 20px;white-space:nowrap}
.loop-community-tabs{display:flex;gap:34px;border-bottom:1px solid var(--loop-border);margin:30px 0}.loop-community-tabs a{font-size:14px;text-decoration:none;color:var(--loop-muted);padding:0 5px 14px}.loop-community-tabs a[aria-current]{color:var(--loop-text);border-bottom:3px solid var(--loop-accent)}.loop-section-title{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:20px 0}.loop-section-title h2{font-size:25px;letter-spacing:-.6px;margin:0 0 8px}.loop-section-title p{margin:0}.loop-section-title>a{font-size:12px;white-space:nowrap}
.loop-community-carousel{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x proximity;padding:0 0 15px}.loop-community-feature-card{flex:0 0 260px;scroll-snap-align:start}.loop-community-card{overflow:hidden;border:1px solid var(--loop-border);border-radius:20px;background:var(--loop-surface);height:100%;box-shadow:none}.loop-community-card-cover{display:block;position:relative;height:215px;color:white!important;isolation:isolate;text-decoration:none}.loop-community-card-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.loop-community-card-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 10%,#181020c9);z-index:-1}.loop-community-card-cover>div{position:absolute;bottom:17px;left:20px;right:20px}.loop-community-card-cover h3{font-size:20px;line-height:1.4;margin:0 0 7px;font-weight:600}.loop-community-card-cover p{font-size:11px;margin:0;color:#eee6f5}.loop-community-privacy{position:absolute;top:15px;left:15px;border-radius:20px;background:#ede4ffc9;color:#412e60;font-size:9px;padding:5px 10px}.loop-community-card-body{padding:17px 20px 20px}.loop-community-card-body>p{font-size:11px;color:var(--loop-muted);line-height:1.8;margin:0 0 15px;min-height:20px}.loop-community-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.loop-community-card-actions .btn{border-radius:22px;font-size:11px;float:none!important;padding:9px 14px;margin:0}.loop-community-grid .card-space{padding:0;width:auto}.loop-community-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:22px 0;overflow:visible}.loop-community-filters{background:var(--loop-surface);border-radius:18px;padding:20px}.loop-community-filters form{margin:0}.loop-community-empty{grid-column:1/-1;padding:35px;text-align:center;color:var(--loop-muted)}
.loop-community-invite{margin:30px 0 45px;border:1px solid #9b70c84a;border-radius:22px;background:linear-gradient(115deg,#62428a38,#9c72d212);padding:32px;display:grid;grid-template-columns:80px 1fr 240px;gap:25px;align-items:center}.loop-community-orbit{font-size:75px;color:var(--loop-accent);line-height:1}.loop-community-invite h2{font-size:23px;letter-spacing:-.5px;margin:0 0 10px}.loop-community-invite p{font-size:12px;color:var(--loop-muted);line-height:1.8;max-width:580px}.loop-community-invite .btn{font-size:11px;border-radius:20px;padding:10px 17px;margin:10px 0 0}.loop-community-benefits{display:grid;gap:17px;font-size:12px;color:var(--loop-accent)}
.loop-watch-page{max-width:1420px;margin:0 auto}.loop-watch-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.loop-watch-heading small{font-size:8px;letter-spacing:2px;color:var(--loop-accent)}.loop-watch-heading h1{font-size:25px;margin:4px 0;letter-spacing:-.6px}.loop-watch-heading .loop-media-tabs{margin:0;padding:0;border:0;gap:28px}.loop-watch-heading .loop-media-tabs a{font-size:13px;padding-bottom:7px;text-decoration:none}.loop-watch-upload{display:grid;place-items:center;padding:0;line-height:1;flex-shrink:0;box-sizing:border-box;width:45px;height:45px;border-radius:50%;background:var(--loop-accent);color:#382348!important;font-size:30px;text-decoration:none!important}.loop-watch-upload>svg{display:block;width:24px;height:24px}
.loop-watch-layout{position:relative}.loop-watch-feed{height:calc(100dvh - 210px);min-height:390px;overflow-y:auto;position:relative;scroll-snap-type:y mandatory;scrollbar-width:none}.loop-watch-feed::-webkit-scrollbar{display:none}.loop-watch-slide{height:100%;min-height:100%;display:flex;align-items:center;justify-content:center;gap:20px;scroll-snap-align:start;scroll-snap-stop:always;padding:0 60px}.loop-watch-frame{height:100%;aspect-ratio:9/16;max-width:calc(100% - 100px);position:relative;background:#050507;border-radius:22px;overflow:hidden}.loop-watch-media{display:block;height:100%;width:100%;object-fit:contain;background:#050507}.loop-watch-caption{position:absolute;bottom:48px;left:0;right:0;padding:50px 18px 16px;background:linear-gradient(transparent,#000b);color:#fff;pointer-events:none}.loop-watch-caption a{pointer-events:auto;color:#fff;text-decoration:none}.loop-watch-author{display:flex;gap:9px;align-items:center;font-size:12px}.loop-watch-author img{width:28px;height:28px;border-radius:50%;object-fit:cover}.loop-watch-caption p{font-size:11px;line-height:1.7;margin:10px 0 0;max-height:100px;overflow:auto;pointer-events:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.loop-watch-actions{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:24px;width:74px;align-self:flex-end;padding-bottom:20px}.loop-watch-actions>a,.loop-watch-actions>button,.loop-watch-comment>a{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--loop-text);font-size:11px;text-align:center;text-decoration:none;border:0;background:transparent;padding:0}.loop-watch-actions>button>span,.loop-watch-actions>a>span{font-size:25px;line-height:1}.loop-watch-actions small{font-size:9px}.loop-watch-actions>.btn{font-size:9px;padding:7px 10px;background:var(--loop-soft);border-radius:20px}.loop-watch-actions .loop-reactions{flex-direction:column;gap:4px}.loop-watch-actions .loop-reaction-trigger{flex-direction:column;font-size:10px;gap:4px}.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon{width:32px;height:32px}.loop-watch-actions [data-reaction-mini]{display:none}.loop-watch-comment>a:before{content:'\f0e5';font:25px FontAwesome}.loop-watch-actions>.loop-share-post{font-size:10px}.loop-watch-actions>.loop-share-post .fa{font-size:24px}.loop-watch-arrows{position:absolute;right:5px;top:40%;display:grid;gap:16px}.loop-watch-arrows button{width:47px;height:47px;border-radius:50%;border:1px solid var(--loop-border);background:var(--loop-raised);color:var(--loop-text);font-size:27px}.loop-watch-arrows button:disabled{opacity:.3;cursor:default}.loop-watch-footer{display:flex;gap:23px;align-items:center;justify-content:center;padding:15px 0 0;font-size:10px;color:var(--loop-muted)}.loop-watch-footer small{font-size:9px}.loop-watch-empty{text-align:center;min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.loop-watch-empty>div{font-size:90px;color:var(--loop-accent)}.loop-watch-empty h2{font-size:27px}.loop-watch-empty p{color:var(--loop-muted);font-size:13px}
@media(max-width:1200px){.loop-community-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.loop-chat-grid{grid-template-columns:300px minmax(0,1fr);gap:24px}.loop-chat-welcome h1{font-size:25px}.loop-community-invite{grid-template-columns:60px 1fr 200px;padding:25px}.loop-community-orbit{font-size:55px}}
@media(max-width:900px){.loop-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.loop-community-benefits{display:none}.loop-community-invite{grid-template-columns:65px 1fr}.loop-chat-grid{grid-template-columns:260px minmax(0,1fr);gap:18px}.loop-chat-sidebar #mail-conversation-overview{padding:22px 17px}.loop-chat-welcome{padding:30px 20px}.loop-chat-welcome h1{font-size:22px}.loop-chat-promises{gap:10px}.loop-chat-welcome p{font-size:11px}.loop-watch-arrows{display:none}.loop-watch-slide{padding:0 5px}}
@media(max-width:700px){.loop-chat-grid{display:flex;flex-direction:column;gap:18px}.loop-chat-sidebar #mail-conversation-overview{min-height:0}.loop-chat-empty{padding:15px 0 25px}.loop-chat-welcome,#mail-conversation-root{min-height:460px}.loop-chat-art{transform:scale(.85);height:130px}.loop-chat-welcome h1{font-size:25px}.loop-chat-welcome small{margin-top:10px}.loop-chat-promises{margin-top:25px}.loop-chat-layout.mail-conversation-single-message .loop-chat-sidebar{display:none}.loop-community-heading{align-items:flex-start}.loop-community-heading h1{font-size:30px}.loop-community-heading p{font-size:11px}.loop-community-heading .btn{font-size:10px;padding:10px 12px}.loop-community-carousel{gap:16px}.loop-community-feature-card{flex-basis:235px}.loop-community-invite{padding:22px;gap:15px;grid-template-columns:1fr}.loop-community-orbit{display:none}.loop-community-invite h2{font-size:22px}.loop-community-grid{gap:15px}.loop-community-grid .loop-community-card-cover{height:175px}.loop-community-card-cover h3{font-size:16px}.loop-community-card-body{padding:14px}.loop-community-filters{padding:14px}.loop-section-title h2{font-size:23px}.loop-section-title>a{font-size:10px}.loop-watch-heading{flex-wrap:wrap;gap:10px}.loop-watch-heading h1{font-size:21px}.loop-watch-heading .loop-media-tabs{order:3;width:100%;justify-content:center;gap:30px}.loop-watch-upload{width:38px;height:38px}.loop-watch-feed{height:calc(100dvh - 285px);min-height:330px}.loop-watch-slide{gap:9px;padding:0}.loop-watch-frame{max-width:calc(100% - 62px);border-radius:17px}.loop-watch-actions{width:53px;gap:15px;padding-bottom:12px}.loop-watch-caption{padding:40px 10px 10px;bottom:40px}.loop-watch-caption p{font-size:10px;max-height:60px}.loop-watch-author{font-size:10px}.loop-watch-footer{flex-wrap:wrap;gap:10px}.loop-watch-footer small{width:100%;text-align:center}.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon{width:28px;height:28px}}
@media(max-width:420px){.loop-community-grid{grid-template-columns:1fr}}

.loop-reels-shelf{position:relative;margin:0 0 30px;padding:18px 16px 16px;border-radius:21px;background:var(--loop-surface);border:1px solid var(--loop-border);overflow:hidden}.loop-reels-shelf>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.loop-reels-shelf h2{font-size:16px;letter-spacing:-.3px;margin:0;font-weight:600;display:flex;align-items:center;gap:8px}.loop-reels-shelf h2>span{font-size:23px;color:var(--loop-accent)}.loop-reels-shelf>header>a{font-size:10px;text-decoration:none}.loop-reels-shelf-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.loop-reels-shelf-track::-webkit-scrollbar{display:none}.loop-reels-preview,.loop-reels-create-preview{flex:0 0 192px;aspect-ratio:9/16;border-radius:14px;overflow:hidden;position:relative;display:block;text-decoration:none!important;color:#fff!important;scroll-snap-align:start;background:#121016;isolation:isolate}.loop-reels-preview>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-2}.loop-reels-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,#08040fd9);z-index:-1}.loop-reels-preview>div{position:absolute;bottom:13px;left:12px;right:12px}.loop-reels-preview strong{display:block;font-size:11px;line-height:1.5;margin-bottom:6px}.loop-reels-preview>div>span{font-size:9px;line-height:1.6;display:block}.loop-reels-preview-play{position:absolute;top:10px;right:10px;font-size:23px;text-shadow:0 2px 8px #0006}.loop-reels-create-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;background:radial-gradient(at 20% 20%,#9e68c9,#4c3365 65%)}.loop-reels-create-preview>span{font-size:42px;line-height:1}.loop-reels-create-preview>strong{font-size:15px;line-height:1.6}.loop-reels-create-preview>small{font-size:10px;background:#ffffff26;padding:7px 12px;border-radius:18px}.loop-reels-shelf-window>nav{position:absolute;left:5px;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:space-between;pointer-events:none}.loop-reels-shelf-window>nav>button{pointer-events:auto;width:31px;height:31px;border:1px solid #ffffff33;background:#39333edb;border-radius:50%;color:#fff;font-size:25px;line-height:1;box-shadow:0 3px 10px #0004}.loop-reels-preview:hover>img{filter:brightness(1.1)}
@media(max-width:700px){.loop-reels-shelf{padding:15px 12px;margin-bottom:22px}.loop-reels-preview,.loop-reels-create-preview{flex-basis:145px}.loop-reels-shelf-window>nav{display:none}}

/* Member profile: native upload, friendship, blocking and permission controls retained. */
.loop-member-page{max-width:1120px;margin:10px auto;display:grid;grid-template-columns:300px minmax(0,1fr);gap:38px;align-items:start}.loop-member-card{position:sticky;top:94px;min-width:0}.loop-member-card .panel-profile{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0}.loop-member-card .panel-profile-header{position:relative;height:410px}.loop-member-card .profile-banner-image-container{height:410px!important;position:relative;background:transparent}.loop-member-card .profile-banner-image-container>img{position:absolute;top:0;left:0;width:100%;height:280px;object-fit:cover;border:0;border-radius:22px}.loop-member-card.loop-member-no-cover .profile-banner-image-container{background:url('../img/loop-mountain-cover.png') top center/100% 280px no-repeat;border-radius:22px}.loop-member-card.loop-member-no-cover .profile-banner-image-container>img{display:none}.loop-member-card .profile-user-photo-container{position:absolute!important;top:225px!important;left:50%!important;bottom:auto!important;transform:translateX(-50%);width:120px!important;height:120px!important;background:var(--loop-surface);border-radius:50%;border:6px solid var(--loop-surface);padding:0;z-index:2}.loop-member-card .profile-user-photo-container img{width:108px!important;height:108px!important;object-fit:cover;border:0!important;border-radius:50%!important;margin:0!important}.loop-member-card .img-profile-data{position:absolute!important;top:365px!important;left:0!important;bottom:auto!important;width:100%;margin:0;padding:0;text-align:center;text-shadow:none;background:none}.loop-member-card .img-profile-data h1{font-size:25px;line-height:1.4;margin:0;font-weight:600;letter-spacing:-.7px}.loop-member-card .img-profile-data h1 a{color:var(--loop-text);text-decoration:none}.loop-member-card .img-profile-data h2{font-size:11px;color:var(--loop-muted);margin:5px 0}.loop-member-card .panel-profile>.panel-body{padding:0;border:0}.loop-member-card .panel-profile-controls .container{padding:0;max-width:none}.loop-member-card .panel-profile-controls .row{margin:0}.loop-member-card .panel-profile-controls .col-lg-12{padding:0}.loop-member-card .statistics{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;float:none!important;margin:0 0 20px!important;padding:0!important}.loop-member-card .statistics .entry{display:flex;gap:5px;align-items:center;background:var(--loop-surface);border:1px solid var(--loop-border);border-radius:25px;padding:9px 11px;margin:0;font-size:11px;float:none!important;line-height:1.3}.loop-member-card .statistics .entry br{display:none}.loop-member-card .statistics .count{font-size:12px;color:var(--loop-accent);font-weight:600}.loop-member-card .statistics .title{font-size:10px;color:var(--loop-muted)}.loop-member-card .controls-header{display:flex;align-items:center;justify-content:center;gap:6px;float:none!important;margin:0 auto 13px;flex-wrap:wrap}.loop-member-card .controls-header .btn{border-radius:22px;padding:9px 14px;font-size:11px}.loop-member-card .dropdown-menu{background:var(--loop-surface);color:var(--loop-text);border-color:var(--loop-border);box-shadow:0 10px 30px #0004}.loop-member-card .dropdown-menu a{color:var(--loop-text)}
.loop-member-extra{text-align:center;padding:0 12px}.loop-member-post-count{font-size:10px;color:var(--loop-muted);text-decoration:none}.loop-member-bio{font-size:12px;line-height:1.9;margin:20px 0;color:var(--loop-text);overflow-wrap:anywhere}.loop-member-direct-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin:22px 0 10px}.loop-member-direct-actions .btn,.loop-member-direct-actions button{font-size:11px;border-radius:22px;padding:10px 14px;margin:0!important;float:none!important;border:1px solid var(--loop-border);background:var(--loop-surface);color:var(--loop-accent)}.loop-member-direct-actions .btn-primary{background:var(--loop-accent);color:#302039}.loop-member-since{color:var(--loop-muted);font-size:10px;margin:20px 0}.loop-member-share-status{font-size:10px;color:var(--loop-accent)}.loop-member-connections{margin:30px 0 20px;color:var(--loop-muted);font-size:11px}.loop-member-connections>summary{cursor:pointer;padding:12px}.loop-member-connections>.panel{border:0;background:var(--loop-surface);border-radius:17px}.loop-member-tabs .panel{background:transparent;border:0;box-shadow:none;margin:0 0 25px}.loop-member-tabs .panel-heading{display:none}.loop-member-tabs .list-group,.loop-member-tabs .nav{display:flex;flex-wrap:wrap;gap:25px;border-bottom:1px solid var(--loop-border);padding:0!important}.loop-member-tabs .list-group-item{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important}.loop-member-tabs .list-group-item>a,.loop-member-tabs .list-group>a{padding:12px 5px!important;color:var(--loop-muted);font-size:13px;display:block;text-decoration:none}.loop-member-tabs .list-group-item.active a,.loop-member-tabs .list-group>a.active{border-bottom:3px solid var(--loop-accent);color:var(--loop-text)}.loop-member-tabs .list-group-item i{display:none}.loop-member-feed{min-width:0}.loop-member-card .image-upload-loader{padding:0!important}.loop-chat-sidebar #inbox>.loop-chat-empty{border:0;box-shadow:none;background:transparent}
@media(max-width:1000px){.loop-member-page{grid-template-columns:250px minmax(0,1fr);gap:25px}.loop-member-card .profile-banner-image-container>img{height:250px}.loop-member-card.loop-member-no-cover .profile-banner-image-container{background-size:100% 250px}.loop-member-card .profile-user-photo-container{top:195px!important}.loop-member-card .img-profile-data{top:335px!important}.loop-member-card .panel-profile-header,.loop-member-card .profile-banner-image-container{height:385px!important}.loop-member-card .img-profile-data h1{font-size:23px}}
@media(max-width:700px){.loop-member-page{display:block;margin:0}.loop-member-card{position:static;max-width:390px;margin:0 auto 30px}.loop-member-card .profile-banner-image-container>img{height:260px}.loop-member-card.loop-member-no-cover .profile-banner-image-container{background-size:100% 260px}.loop-member-card .profile-user-photo-container{top:205px!important}.loop-member-card .img-profile-data{top:345px!important}.loop-member-card .panel-profile-header,.loop-member-card .profile-banner-image-container{height:395px!important}.loop-member-connections{display:block}.loop-member-feed{padding:0}.loop-member-tabs .list-group{justify-content:center}}
.loop-camera-profile{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--loop-raised);border:1px solid var(--loop-border)}.loop-camera-profile img{display:block;width:34px;height:34px;object-fit:contain}.loop-camera-profile:hover{background:var(--loop-soft)}.loop-camera-profile:focus-visible{outline:2px solid var(--loop-accent);outline-offset:3px}@media(max-width:700px){.loop-camera-profile{width:34px;height:34px}.loop-camera-profile img{width:29px;height:29px}}
/* Override the native wide-header geometry only inside the member sidebar. */
.loop-member-page .loop-member-card .panel-profile-header{border:0!important;box-shadow:none!important}.loop-member-page .loop-member-card .profile-banner-image-container{overflow:visible!important}.loop-member-page .loop-member-card .img-profile-data{height:auto!important;min-height:0!important;padding:0!important}.loop-member-page .loop-member-card .img-profile-data h1{margin:0!important;padding:0!important;height:auto!important;line-height:1.4!important;font-size:25px!important;position:static!important;color:var(--loop-text)!important}.loop-member-page .loop-member-card .img-profile-data h2:empty{display:none}.loop-member-page .loop-member-card .panel-profile-controls{padding:0!important}.loop-member-page .loop-member-card .panel-profile-controls .container,.loop-member-page .loop-member-card .panel-profile-controls .row,.loop-member-page .loop-member-card .panel-profile-controls .col-lg-12{width:100%!important;margin:0!important;padding:0!important}.loop-member-page .loop-member-card .statistics{width:100%!important;max-width:none!important;float:none!important;justify-content:center!important;margin:0 0 20px!important}.loop-member-page .loop-member-card .statistics .count{color:var(--loop-accent)!important;font-size:12px!important}.loop-member-page .loop-member-card .statistics .title{color:var(--loop-muted)!important}.loop-member-page .loop-member-card .statistics .entry{float:none!important}.loop-member-page .loop-member-tabs .list-group{flex-direction:row!important}.loop-member-page .loop-member-tabs .list-group>a.list-group-item{width:auto!important;flex:0 0 auto!important;padding:12px 8px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--loop-muted)!important;font-size:13px!important}.loop-member-page .loop-member-tabs .list-group>a.list-group-item.active{border-bottom:3px solid var(--loop-accent)!important;color:var(--loop-text)!important}
.loop-reels-shelf-window>nav>button:disabled{opacity:.25;cursor:default}.loop-member-page .loop-member-card .img-profile-data{background:transparent!important;box-shadow:none!important}.loop-member-page .loop-member-card .controls-header .btn-accent{background:var(--loop-soft);color:var(--loop-accent);border-color:var(--loop-border)}.loop-chat-sidebar #inbox>.loop-chat-empty{border:0!important}.loop-community-card-actions .btn{border-color:var(--loop-border);color:var(--loop-accent)}
/* One consistent outline control per reel action, centered on a single rail. */
.loop-watch-actions{width:56px;gap:16px;align-items:center;padding-bottom:12px}
.loop-watch-actions>.likeLinkContainer,.loop-watch-actions>.loop-watch-comment{display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;margin:0}
.loop-watch-actions .loop-reactions{display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1}
.loop-watch-actions .loop-reaction-trigger,.loop-watch-actions>.loop-share-post,.loop-watch-actions>.loop-watch-comment>a,.loop-watch-actions>[data-loop-watch-mute],.loop-watch-actions>a[aria-label='Report this reel']{display:flex;align-items:center;justify-content:center;width:48px;min-height:44px;padding:4px;margin:0;gap:3px;background:transparent;border:0;color:var(--loop-text);line-height:1}
.loop-watch-actions .loop-post-action-icon,.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon{display:block;width:30px;height:30px;margin:0}
.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon:not(svg){font-size:28px;line-height:30px}
.loop-watch-actions .loop-watch-comment>a::before{content:none!important;display:none!important}
.loop-watch-actions .comment-count,.loop-watch-actions [data-reaction-total]{font-size:12px;line-height:1.2;text-align:center}
.loop-watch-actions [data-loop-watch-mute]>small,.loop-watch-actions>a[aria-label='Report this reel']>small{display:none}
[data-loop-watch-mute][data-muted=true] [data-loop-sound-on],[data-loop-watch-mute][data-muted=false] [data-loop-sound-off]{display:none}
@media(max-width:700px){.loop-watch-actions{width:46px;gap:10px}.loop-watch-actions .loop-post-action-icon,.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon{width:27px;height:27px}.loop-watch-actions .loop-reaction-trigger,.loop-watch-actions>.loop-share-post,.loop-watch-actions>.loop-watch-comment>a,.loop-watch-actions>[data-loop-watch-mute]{width:44px}}

/* Member identity grows with the name/title instead of fixed absolute slots. */
.loop-member-page .loop-member-card{--loop-member-cover-height:280px}
.loop-member-page .loop-member-card .panel-profile-header{height:auto!important;min-height:0!important}
.loop-member-page .loop-member-card .profile-banner-image-container{display:block!important;position:relative;height:auto!important;min-height:0!important;padding:calc(var(--loop-member-cover-height) + 80px) 0 24px!important;border-radius:22px 22px 0 0}
.loop-member-page .loop-member-card .profile-banner-image-container>img{height:var(--loop-member-cover-height)!important;border-radius:22px;object-fit:cover}
.loop-member-page .loop-member-card.loop-member-no-cover .profile-banner-image-container{background-size:100% var(--loop-member-cover-height)!important;background-position:top center;background-repeat:no-repeat}
.loop-member-page .loop-member-card .profile-user-photo-container{top:calc(var(--loop-member-cover-height) - 60px)!important}
.loop-member-page .loop-member-card .img-profile-data{position:static!important;top:auto!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;padding:0 10px!important;overflow-wrap:anywhere}
.loop-member-page .loop-member-card .img-profile-data h1{line-height:1.35!important;font-size:25px!important;letter-spacing:-.5px}
.loop-member-page .loop-member-card .img-profile-data h2{font-size:12px!important;line-height:1.6!important;margin:8px 0 0!important;padding:0!important;color:var(--loop-muted)!important;overflow-wrap:anywhere}
.loop-cover-edit-active .loop-member-card .profile-banner-image-container{outline:none!important}
.loop-cover-edit-active .loop-member-card .profile-banner-image-container>img{outline:2px solid var(--loop-accent);outline-offset:3px}
@media(max-width:1000px){.loop-member-page .loop-member-card{--loop-member-cover-height:250px}}
@media(max-width:700px){.loop-member-page .loop-member-card{--loop-member-cover-height:260px}}

.loop-member-page .loop-member-card.loop-member-no-cover .profile-banner-image-container{background:none!important}
.loop-member-page .loop-member-card.loop-member-no-cover .profile-banner-image-container:before{content:'';position:absolute;top:0;left:0;width:100%;height:var(--loop-member-cover-height);border-radius:22px;background:url('../img/loop-mountain-cover.png') center/cover no-repeat;pointer-events:none}
.loop-cover-edit-active .loop-member-card.loop-member-no-cover .profile-banner-image-container:before{outline:2px solid var(--loop-accent);outline-offset:3px}

/* Native banner images otherwise retain HumHub's 192px maximum height. */
.loop-member-page .loop-member-card .profile-banner-image-container>img.img-profile-header-background{height:var(--loop-member-cover-height)!important;min-height:var(--loop-member-cover-height)!important;max-height:none!important;width:100%!important;max-width:100%!important;object-fit:cover;object-position:center}

#profile-image-crop-modal .modal-body{max-height:calc(100dvh - 220px);overflow:auto}#profile-image-crop-modal .loop-cover-crop-help{color:var(--loop-muted);font-size:12px;line-height:1.6;margin:0 0 14px}#profile-image-crop-modal .modal-footer{position:relative;background:var(--loop-surface)}

/* Reels owns one viewport; only the snap feed scrolls between videos. */
.loop-shell #main-content:has(.loop-watch-page){height:100dvh;box-sizing:border-box;padding-bottom:16px}
.loop-shell #main-content:has(.loop-watch-page)>#layout-content{height:100%;min-height:0}
.loop-shell .loop-watch-page{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.loop-shell .loop-watch-layout{min-height:0;height:100%}
.loop-shell .loop-watch-feed{height:100%;min-height:0;overscroll-behavior-y:contain}
.loop-shell .loop-watch-empty{min-height:0;overflow:auto}
.loop-shell .loop-watch-footer{min-width:0;flex-wrap:wrap;row-gap:5px;padding-top:10px}
@media(max-width:700px){.loop-shell #main-content:has(.loop-watch-page){padding-bottom:calc(80px + env(safe-area-inset-bottom))}.loop-watch-heading{margin-bottom:10px}.loop-watch-footer{column-gap:12px}}
@media(max-height:600px){.loop-watch-heading{margin-bottom:8px}.loop-watch-actions{gap:5px;padding-bottom:5px}.loop-watch-actions .loop-post-action-icon,.loop-watch-actions .loop-reaction-trigger .loop-reaction-icon{width:24px;height:24px}.loop-watch-actions .loop-reaction-trigger,.loop-watch-actions>.loop-share-post,.loop-watch-actions>.loop-watch-comment>a,.loop-watch-actions>[data-loop-watch-mute]{min-height:30px}.loop-watch-caption{bottom:32px}.loop-watch-caption p{max-height:50px}.loop-watch-footer small{display:none}}

/* Caption disclosure replaces the independent description scrollbar. */
.loop-watch-caption [data-loop-caption-text]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:none;overflow:hidden;scrollbar-width:none}
.loop-watch-caption [data-loop-caption-text]::-webkit-scrollbar,.loop-watch-caption.is-expanded::-webkit-scrollbar{display:none}
.loop-watch-caption .loop-caption-toggle{pointer-events:auto;display:block;background:transparent;border:0;color:#fff;font:inherit;font-size:12px;font-weight:700;padding:4px 0 0;text-align:left;cursor:pointer}
.loop-watch-caption .loop-caption-toggle[hidden]{display:none}
.loop-watch-caption .loop-caption-toggle:focus-visible{outline:2px solid var(--loop-accent);outline-offset:3px}
.loop-watch-caption.is-expanded{max-height:calc(100% - 48px);overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;pointer-events:auto;background:linear-gradient(transparent,rgba(0,0,0,.92) 30px);padding-top:36px}
.loop-watch-caption.is-expanded [data-loop-caption-text]{display:block;-webkit-line-clamp:unset;overflow:visible;max-height:none}
.loop-watch-caption.is-expanded .loop-caption-toggle{position:sticky;bottom:0;background:#08080b;padding:6px 0}

/* Keep caption links and disclosure above the browser's two-row video controls. */
.loop-watch-frame{--loop-playback-controls-space:88px}
.loop-watch-frame .loop-watch-caption{bottom:var(--loop-playback-controls-space)}
.loop-watch-frame .loop-watch-caption.is-expanded{max-height:calc(100% - var(--loop-playback-controls-space) - 12px)}


/* Compact circular reel navigation, with optical alignment independent of font glyphs. */
.loop-watch-arrows{top:50%;transform:translateY(-50%);gap:16px}
.loop-watch-arrows button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#333;color:#fff;line-height:1;transition:background .15s ease}
.loop-watch-arrows button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.loop-watch-arrows button:hover:not(:disabled){background:#454545}
.loop-watch-arrows button:disabled{opacity:.4}
.loop-watch-arrows button:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Center navigation on the cards, and center each chevron inside its button. */
.loop-reels-shelf-window{position:relative}
.loop-reels-shelf-window>nav>button{display:grid;place-items:center;padding:0;width:44px;height:44px;flex:none}
.loop-reels-shelf-window>nav>button>svg{display:block;width:24px;height:24px;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.loop-reels-preview-avatar{position:absolute;top:10px;left:10px;width:40px;height:40px;border:3px solid var(--loop-accent,#a77bfa);border-radius:50%;overflow:hidden;background:var(--loop-surface,#191a22);box-shadow:0 2px 8px #0006}
.loop-reels-preview-avatar>img{display:block;width:100%;height:100%;object-fit:cover}
