/* Shared popup layout, aligned with main_pop_test.php. */
#actorMobileWorks{display:none}
.actor-scroll-track{display:none}
#actorWorkGrid.moreLikeThis--container{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px clamp(6px,.55vw,10px)}
#actorWorkGrid .main-card-playtime,#actorWorkGrid .main-card-new-badge,#actorWorkGrid .main-card-popular-badge{position:absolute}
@media(max-width:900px){#actorWorkGrid.moreLikeThis--container{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:598px){#actorWorkGrid.moreLikeThis--container{grid-template-columns:minmax(0,1fr)}}
#actorProcessingNotice{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#actorList.is-processing .actor-list-item{cursor:wait;opacity:.6}#actorList.is-processing .actor-list-item.active{opacity:1}
.actor-modal[hidden]{display:none!important}
.actor-modal{position:fixed;inset:53px 0 0;z-index:1500;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box;padding:0 16px 32px calc(16px + var(--actor-scrollbar-width,0px));background:#000c}
.actor-modal-panel{position:relative;box-sizing:border-box;width:100%;min-width:0;min-height:100%;border-radius:16px;overflow:hidden;background:#181818;outline:none}
.actor-modal-panel>iframe{display:block;width:100%;height:calc(100dvh - 53px);border:0;background:transparent}
.actor-modal-close{position:absolute;right:16px;top:16px;z-index:2;display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:50%;background:#4a4a4a;color:#fff;cursor:pointer}
.av-theme-light .actor-modal-panel{background:#f5f5f5;color:#111}
html:has(body.actor-popup){background:transparent;overflow-x:hidden;color-scheme:dark}html.actor-embedded{overflow:hidden}html[data-theme=light]:has(body.actor-popup){color-scheme:light}
.actor-popup{--actor-panel:#181818;--actor-card:#1e1e1e;--actor-text:#eee;--actor-muted:#a3a3a3;--actor-border:#ffffff12;--actor-hover:#ffffff06;--actor-selected:#ffffff0d;--actor-avatar:#303030;margin:0;min-width:0;background:var(--actor-panel);color:var(--actor-text);font-family:Arial,'Malgun Gothic',sans-serif;line-height:1.5}
.actor-popup *{box-sizing:border-box}.actor-popup [hidden]{display:none!important}
.actor-popup-header{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px 24px;border-bottom:1px solid var(--actor-border)}
.actor-popup-header>div:nth-child(2){min-width:0;flex:1}.actor-popup h1{font-size:18px;font-weight:600;line-height:1.4;margin:0;overflow-wrap:anywhere}.actor-popup-header p{font-size:12px;color:var(--actor-muted);margin:4px 0 0}
.actor-avatar-placeholder{flex:none;width:40px;height:40px;border-radius:50%;background:#343434;box-shadow:inset 0 0 0 1px #ffffff08}
.actor-popup-header button{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:8px;background:#4a4a4a;border:0;border-radius:50%;color:#fff;cursor:pointer}
html.actor-embedded .actor-popup-header{padding-right:68px}html.actor-embedded #actorClose{display:none}
.actor-popup #actorPopupError{margin:16px 24px;padding:12px 16px;border:1px solid #ed737a66;border-radius:8px;color:#ed737a;font-size:14px}.actor-popup #actorPopupError button{margin-left:8px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:4px;padding:4px 8px;cursor:pointer}
.actor-page-shell{padding:20px 24px 32px}.actor-chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}.actor-sidebar{min-width:0}.actor-sidebar{display:flex;flex-direction:column;gap:16px}
.actor-profile-card,.actor-list-card,.actor-chat-workspace{border:1px solid var(--actor-border);border-radius:12px;overflow:hidden;background:var(--actor-card)}
.actor-profile-card{flex:none;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}.actor-list-card{min-height:130px;display:flex;flex:1;flex-direction:column}.actor-sidebar{height:clamp(540px,calc(var(--actor-host-height,900px) - 160px),760px)}.actor-portrait-placeholder{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#292b30,#383b43);color:#777}.actor-portrait-placeholder svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.2}
.actor-profile-copy{display:contents}.actor-profile-copy h2{min-width:0;margin:0;font-size:18px;font-weight:600;overflow-wrap:anywhere}.actor-profile-copy p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.7;color:var(--actor-muted);overflow-wrap:anywhere}.actor-profile-copy p:empty{display:none}.actor-profile-copy #actorProfileMeta{color:var(--actor-text);font-weight:500}.actor-profile-copy #actorProfileSummary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.actor-chat-workspace{display:flex;flex-direction:column;min-width:0;height:clamp(540px,calc(var(--actor-host-height,900px) - 160px),760px);background:var(--actor-panel)}
.actor-chat-toolbar{flex:none;display:flex;align-items:center;min-height:44px;padding:10px 16px;border-bottom:1px solid var(--actor-border);font-size:13px;font-weight:500}
.actor-popup .actor-chat-workspace #actorChatFrame{display:block;flex:1 1 0;min-height:0;min-width:0;width:100%;height:0;border:0;background:var(--actor-panel)}
.actor-list-card>header,.actor-works-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.actor-list-card h2,.actor-works-section h2{margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}.actor-list-card header span,.actor-works-section header span{flex:none;font-size:12px;color:var(--actor-muted)}
#actorList{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-content:start;min-height:0;overflow-y:auto;min-width:0;padding:0 8px 8px;scrollbar-width:thin;scrollbar-color:#8885 transparent}
.actor-list-item{display:flex;gap:10px;align-items:center;min-width:0;padding:10px;border-radius:8px;color:inherit;text-decoration:none;border:0;transition:background-color .15s ease}.actor-list-item:hover{background:var(--actor-hover)}.actor-list-item.active{background:var(--actor-selected)}.actor-list-item.active b{font-weight:600}.actor-list-item.active::after{content:"";width:5px;height:5px;flex:none;margin-left:auto;border-radius:50%;background:var(--actor-text);opacity:.65}.actor-list-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--actor-avatar);color:var(--actor-text);font-size:13px}.actor-list-item>span:last-child{min-width:0;flex:1}.actor-list-item b{font-size:13px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actor-list-item small{font-size:11px;display:block;color:var(--actor-muted);margin-top:3px;white-space:nowrap}
.actor-works-section{margin-top:28px}.actor-works-section>header{padding:0 0 16px}.actor-works-section h2{font-size:18px}.actor-work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 14px}.actor-work-card{color:inherit;text-decoration:none;min-width:0}.actor-work-placeholder{display:grid;place-items:center;aspect-ratio:16/9;border-radius:8px;background:#252525;color:#888;font-size:28px;border:1px solid var(--actor-border)}.actor-work-card h3{font-size:16px;font-weight:500;line-height:1.4;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.actor-work-card p{font-size:12px;color:var(--actor-muted);margin:6px 0 0}.actor-work-card:hover h3{color:var(--actor-text);text-decoration:underline;text-underline-offset:3px}
.actor-list-item:focus-visible,.actor-work-card:focus-visible,.actor-popup button:focus-visible,.actor-modal-close:focus-visible{outline:2px solid #8ab4f8;outline-offset:2px}#actorWorksEmpty{padding:24px;text-align:center;color:var(--actor-muted);border:1px dashed var(--actor-border);border-radius:12px;font-size:14px}
html[data-theme=light] .actor-popup{--actor-panel:#f5f5f5;--actor-card:#fff;--actor-text:#111;--actor-muted:#666;--actor-border:#00000010;--actor-hover:#00000003;--actor-selected:#00000008;--actor-avatar:#ededed}html[data-theme=light] .actor-portrait-placeholder,html[data-theme=light] .actor-work-placeholder,html[data-theme=light] .actor-avatar-placeholder,.av-theme-light .actor-photo{background:linear-gradient(135deg,#e6e6e9,#f3f3f5);color:#888}
@media(max-width:1100px){.actor-chat-layout{grid-template-columns:230px minmax(0,1fr)}.actor-work-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.actor-modal{padding:0;scrollbar-gutter:auto}.actor-modal-panel{border-radius:0}.actor-modal-close{right:12px;top:12px}.actor-popup-header{min-height:64px;padding:12px 16px}.actor-page-shell{padding:16px}.actor-chat-layout{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:650px){.actor-chat-layout{grid-template-columns:minmax(0,1fr);gap:16px}.actor-sidebar{height:auto;gap:12px}.actor-profile-card{padding:12px}.actor-profile-copy h2{font-size:18px}.actor-profile-copy #actorProfileSummary{-webkit-line-clamp:2}.actor-list-card{min-height:0}.actor-chat-workspace{height:clamp(420px,calc(var(--actor-host-height,900px) - 240px),680px)}#actorList{display:flex;overflow-x:auto;overflow-y:hidden}.actor-list-item{flex:none;max-width:220px}.actor-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:598px){.actor-rail .actor-card{flex-basis:116px}.actor-rail .actor-track{gap:12px}.actor-popup-header{gap:10px}.actor-avatar-placeholder{width:32px;height:32px}.actor-popup h1{font-size:16px}.actor-page-shell{padding:12px}.actor-work-grid{gap:20px 12px}.actor-work-card h3{font-size:14px}.actor-profile-copy p{font-size:13px}}
.actor-modal-close svg,.actor-popup-header button svg{display:block;width:20px;height:20px;pointer-events:none}.actor-modal-close:hover,.actor-popup-header button:hover{background:#4a4a4a}
@media(prefers-reduced-motion:reduce){.actor-list-item{transition:none}.actor-rail .actor-viewport{scroll-behavior:auto}}
.actor-photo,.actor-list-avatar,.actor-avatar-placeholder{overflow:hidden}
.actor-photo>img,.actor-list-avatar>img,.actor-avatar-placeholder>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;border-radius:inherit}
#actorChatToggle{display:none}
#actorMobileBack{display:none}
@media(max-width:900px){
  .actor-popup-header{padding-left:1%;padding-right:1%}
  html.actor-embedded .actor-popup-header{padding-right:calc(36px + 2%)}
  .actor-page-shell{padding-left:0;padding-right:0}
  .actor-chat-layout{grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;max-width:100%;align-items:stretch}
  .actor-sidebar{height:auto;gap:8px;min-height:0;width:100%;max-width:100%}
  .actor-profile-card,.actor-list-card,.actor-chat-workspace{min-width:0;max-width:100%;border-left:0;border-right:0;border-radius:0}
  .actor-works-section{margin-left:1%;margin-right:1%}
  .actor-works-section>header{padding-bottom:10px}
  .actor-works-section h2{font:700 20px/1.25 Arial,'Malgun Gothic',sans-serif}
  #actorWorkGrid.moreLikeThis--container{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:32px 6px!important}
  .actor-profile-card{order:2;padding:10px 1%}
  .actor-profile-copy #actorProfileSummary{-webkit-line-clamp:2}
  .actor-list-card{order:1;min-height:0;flex:none;border:0;background:transparent}
  .actor-list-card>header{min-height:40px;padding:4px 1%;background:var(--actor-panel)}
  .actor-list-card>header h2{font:600 15px/1.4 sans-serif}
  #actorList{display:flex;width:100%;max-width:100%;gap:16px;overflow-x:auto;overflow-y:hidden;padding:6px 1%;border-top:1px solid var(--actor-border);border-bottom:1px solid var(--actor-border);background:var(--actor-card);touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .actor-list-item{flex:none;max-width:220px;padding:6px 0}
  #actorChatToggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:4px 1%;appearance:none;-webkit-appearance:none;border:0;border-radius:0;background:var(--actor-panel);color:var(--actor-text);font:600 15px/1.4 sans-serif;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
  #actorChatToggle[aria-expanded="false"]>span{text-decoration:underline;text-underline-offset:3px}
  #actorChatToggle svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  /* detail.css applies min-height:100vh!important to body, which pins standalone chat below the keyboard. */
  .actor-mobile-open body.actor-popup{height:var(--actor-visible-height,100dvh);min-height:0!important;display:flex;flex-direction:column;overflow:hidden}
  .actor-mobile-open .actor-popup-header{flex:none}
  .actor-mobile-open .actor-page-shell{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 0 max(4px,env(safe-area-inset-bottom))}
  .actor-mobile-open .actor-chat-layout{display:flex;flex-direction:column;flex:1;min-height:0}
  .actor-mobile-open .actor-sidebar,.actor-mobile-open #actorChatToggle{flex:none}
  .actor-mobile-open .actor-chat-workspace{flex:1;min-height:0;height:auto;width:100%}
  .actor-mobile-open .actor-works-section{display:none}
  .actor-mobile-closed .actor-chat-workspace{display:none}
  .actor-mobile-open.actor-mobile-compact .actor-profile-card{display:none}
  .actor-mobile-open.actor-mobile-compact .actor-popup-header{min-height:44px;padding-top:4px;padding-bottom:4px}
  .actor-mobile-open.actor-mobile-short .actor-popup-header,.actor-mobile-open.actor-mobile-short .actor-list-card>header{display:none}
  .actor-mobile-open.actor-mobile-short .actor-list-item{padding:2px 0}
  .actor-mobile-open.actor-mobile-short #actorChatToggle{min-height:32px;padding-top:2px;padding-bottom:2px}
  .actor-mobile-open.actor-mobile-short .actor-chat-layout{gap:4px}
}
@media(min-width:579px) and (max-width:598px){#actorWorkGrid.moreLikeThis--container{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:578px){#actorWorkGrid.moreLikeThis--container{grid-template-columns:minmax(0,1fr)!important;column-gap:0!important}}
@media(max-width:900px){
  .actor-popup-header{display:none}
  #actorMobileBack{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;margin-left:1%;padding:6px;border:0;background:transparent;color:var(--actor-text);cursor:pointer}
  #actorMobileBack svg{width:28px;height:28px}
  html.actor-mobile-open #actorMobileBack, html.actor-has-host-back #actorMobileBack{display:none}
}
/* Mobile open chat uses exactly the video's upper-panel and 40px toolbar budget.
   Keep content scrollable inside that budget rather than resizing on keyboard open. */
@media(max-width:900px){
  .actor-mobile-open .actor-page-shell{padding:0 0 var(--actor-safe-area-bottom,env(safe-area-inset-bottom,0px))}
  .actor-mobile-open .actor-chat-layout{gap:0}
  .actor-mobile-open .actor-sidebar{height:var(--actor-upper-height);flex:0 0 var(--actor-upper-height);gap:0;overflow:hidden}
  .actor-mobile-open .actor-list-card{flex:none;min-height:0}
  .actor-mobile-open .actor-list-card>header{height:40px;min-height:40px}
  .actor-mobile-open #actorList{flex:none}
  .actor-mobile-open .actor-profile-card{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:8px 1%;align-content:start}
  .actor-mobile-open #actorChatToggle{height:40px;min-height:40px;max-height:40px;width:auto;margin-left:var(--actor-safe-area-left,0px);margin-right:var(--actor-safe-area-right,0px);padding:0 1%;border-bottom:1px solid var(--actor-border)}
  .actor-mobile-open .actor-chat-workspace{border:0;width:auto;margin-left:var(--actor-safe-area-left,0px);margin-right:var(--actor-safe-area-right,0px)}
}
@media(max-width:900px){
  .actor-profile-card .actor-profile-copy,.actor-profile-card .actor-portrait-placeholder{display:none!important}
  .actor-profile-card{display:block;margin:8px 1% 4px;padding:0;border:0;background:transparent;height:clamp(96px,26vw,160px)}
  .actor-mobile-open .actor-profile-card{padding:0;overflow:hidden}
  #actorMobileWorks{display:flex;align-items:stretch;gap:8px;width:100%;height:calc(100% - 5px);min-height:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
  #actorList{scrollbar-width:none}
  #actorList::-webkit-scrollbar{display:none}
  .actor-scroll-track{display:block;flex:none;height:2px;margin-top:3px;overflow:hidden;border-radius:4px;background:var(--actor-border)}
  .actor-list-card>.actor-scroll-track{margin:3px 1% 0}
  .actor-scroll-track>span{display:block;width:100%;height:100%;border-radius:inherit;background:var(--actor-muted);opacity:.25}
  .actor-keyboard-open .actor-profile-card{display:none}
  .actor-mobile-open.actor-keyboard-open .actor-sidebar{height:auto;flex-basis:auto;max-height:var(--actor-upper-height)}
  #actorMobileWorks::-webkit-scrollbar{display:none}
  .actor-mobile-work{position:relative;display:block;flex:0 0 auto;aspect-ratio:16/9;height:100%;border-radius:8px;overflow:hidden;background:#111;container-type:size}
  .actor-mobile-work-title{position:absolute;z-index:1;left:5%;right:5%;bottom:5%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;font-size:8px;font-size:11.25cqh;line-height:1.2;font-weight:700;color:#ddd;-webkit-text-fill-color:#ddd;-webkit-text-stroke:1px #000;paint-order:stroke fill;text-shadow:0 1px 3px #000,1px 0 1px #000,-1px 0 1px #000}
  .actor-mobile-work img,.actor-mobile-work video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .actor-mobile-work video{opacity:0}.actor-mobile-work video.is-playing{opacity:1}
  .actor-mobile-work:focus-visible{outline:2px solid #8ab4f8;outline-offset:-2px}
  #actorMobileWorks.is-mouse-dragging,#actorMobileWorks.is-mouse-dragging *{user-select:none;-webkit-user-select:none}
  .actor-mobile-works-empty{align-self:center;margin:auto;padding:8px;color:var(--actor-muted);font-size:13px}
}
@media(max-width:900px) and (pointer:fine){#actorMobileWorks .actor-mobile-work{user-select:none;-webkit-user-select:none}}

@media(max-width:900px) and (pointer:fine){#actorList,#actorList *{user-select:none;-webkit-user-select:none}}

/* Room-separated desktop messenger; mobile arrangement remains unchanged. */
.actor-list-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;min-width:0;flex:1}
.actor-list-copy b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.actor-last-time{font-size:10px;color:var(--actor-muted);align-self:center;white-space:nowrap}
.actor-list-copy .actor-last-message{grid-column:1/-1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--actor-muted)}
@media(min-width:901px){
 .actor-rooms-layout .actor-page-shell{max-width:1600px;margin-inline:auto;padding:20px 24px 32px}
 .actor-rooms-layout .actor-chat-layout{grid-template-columns:minmax(240px,1fr) minmax(320px,1.65fr) minmax(240px,1fr);gap:20px;align-items:stretch}
 .actor-rooms-layout .actor-sidebar{height:clamp(540px,calc(var(--actor-host-height,900px) - 100px),800px)}
 .actor-rooms-layout .actor-chat-workspace{height:clamp(540px,calc(var(--actor-host-height,900px) - 100px),800px);border:1px solid var(--actor-border);border-radius:12px;overflow:hidden}
 .actor-rooms-layout .actor-right-sidebar{min-width:0;min-height:0;height:clamp(540px,calc(var(--actor-host-height,900px) - 100px),800px);display:flex;flex-direction:column;gap:16px}
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header{padding:16px;min-height:0;border:1px solid var(--actor-border);border-radius:12px;gap:10px;position:relative}
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header h1{font-size:16px}
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header #actorClose{position:static;flex:none;margin-left:auto}
 .actor-rooms-layout .actor-right-sidebar .actor-profile-card{min-width:0;min-height:110px;flex:1 0 110px;display:flex;flex-direction:column;justify-content:flex-start}
 .actor-rooms-layout .actor-right-sidebar #actorProfileMeta{flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .actor-rooms-layout .actor-right-sidebar #actorProfileSummary{flex:none;-webkit-line-clamp:var(--actor-profile-lines,2)}
 .actor-rooms-layout .actor-list-card{height:100%;min-height:0}
 .actor-rooms-layout .actor-list-item{padding:12px 8px;gap:10px}
 .actor-rooms-layout .actor-list-item.active::after{display:none}
}
@media(min-width:901px) and (max-width:1100px){
 .actor-rooms-layout .actor-page-shell{padding-inline:12px}
 .actor-rooms-layout .actor-chat-layout{grid-template-columns:minmax(230px,1fr) minmax(300px,1.4fr) minmax(230px,1fr);gap:12px}
 .actor-rooms-layout .actor-last-time{font-size:9px}
}

/* Match the right profile avatar on desktop only. */
@media(min-width:901px){.actor-rooms-layout .actor-list-avatar{width:40px;height:40px}}

/* Selected actor: full rectangular photo in the desktop profile column. */
@media(min-width:901px){
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;align-items:center;flex:0 1 auto;overflow:hidden}
 .actor-rooms-layout .actor-right-sidebar .actor-avatar-placeholder{grid-column:1/-1;width:100%;height:auto;max-height:100%;aspect-ratio:420/540;border-radius:12px;min-width:0;min-height:0;background:var(--actor-avatar)}
 .actor-rooms-layout .actor-right-sidebar .actor-avatar-placeholder>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header>div:not(.actor-avatar-placeholder){min-width:0}
 .actor-rooms-layout .actor-right-sidebar .actor-popup-header h1{overflow-wrap:anywhere}
}
.actor-avatar-placeholder{position:relative}
.actor-avatar-placeholder.is-loading::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#ffffff18 50%,transparent 80%);background-size:200% 100%;animation:actor-gallery-shimmer 1.5s linear infinite}
@keyframes actor-gallery-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.actor-gallery-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.actor-gallery-status.is-error{inset:0;width:auto;height:auto;display:grid;place-items:center;padding:12px;clip-path:none;white-space:normal;color:var(--actor-muted);font-size:13px;text-align:center}
.actor-popup-header .actor-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:rgba(128,128,128,.45);color:#fff;box-shadow:none;cursor:pointer;transition:background .2s}
.actor-popup-header .actor-gallery-arrow.prev{left:10px}
.actor-popup-header .actor-gallery-arrow.next{right:10px}
.actor-popup-header .actor-gallery-arrow:hover{background:rgba(128,128,128,.65);box-shadow:none}
.actor-popup-header .actor-gallery-arrow:disabled{cursor:pointer}
.actor-popup-header .actor-gallery-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.actor-popup-header .actor-gallery-arrow:focus-visible{outline-offset:-3px}
@media(min-width:901px){.actor-avatar-placeholder>img{cursor:default;user-select:none;-webkit-user-select:none}.actor-avatar-placeholder.is-gallery-dragging,.actor-avatar-placeholder.is-gallery-dragging>img{cursor:default}}
@media(max-width:900px){.actor-popup-header .actor-gallery-arrow{display:none}.actor-gallery-status.is-error{font-size:0}}
@media(prefers-reduced-motion:reduce){.actor-avatar-placeholder.is-loading::after{animation:none}}
