/* R413 — Velvet Room owner header: content-first, no boxed secondary controls.
   Dashboard and Create remain the only broad primary actions.
   Hero + Avatar editing lives on those images. */
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] .heroDock{
  padding:0 13px 10px!important;
  background:#050507!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerControlsR183{
  display:block!important;
  width:100%!important;
  margin:10px 0 5px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerControlsR183[hidden]{display:none!important}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  margin:4px 0 6px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413 .roomOwnerBtnR183{
  width:100%!important;
  min-width:0!important;
  min-height:47px!important;
  height:auto!important;
  padding:10px 8px!important;
  margin:0!important;
  border:0!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--mode-accent,#a55eff) 86%,#100d19)!important;
  box-shadow:none!important;
  color:#fff!important;
  font:820 clamp(13px,3.6vw,17px)/1.15 system-ui,sans-serif!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:normal!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413 #roomOwnerCreatePostR183{
  background:rgba(230,231,239,.92)!important;
  color:#101019!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413 .roomOwnerBtnR183:active{
  opacity:.78!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-around!important;
  gap:0 7px!important;
  padding:1px 0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerBtnR183{
  width:auto!important;
  flex:1 1 28%!important;
  min-width:0!important;
  min-height:40px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:9px 4px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.78)!important;
  font:760 clamp(11px,3vw,14px)/1.2 system-ui,sans-serif!important;
  text-align:center!important;
  text-decoration:none!important;
  letter-spacing:0!important;
  outline-offset:1px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerBtnR183.primary,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerCommunityR412{
  color:var(--mode-accent,#b96bff)!important;
  font-weight:850!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerBtnR183:focus-visible,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413 .roomOwnerBtnR183:focus-visible{
  outline:2px solid var(--mode-accent,#bd74ff)!important;
  outline-offset:0!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerBtnR183:active{
  color:#fff!important;
  background:transparent!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroR183,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarR183{
  display:none!important; /* originals retain canonical upload handlers */
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] .vrRoomAboutR139{
  margin:8px 0 2px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #vrSharePrivateRoomV1{
  min-height:35px!important;
  margin:1px 0!important;
  padding:6px 1px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-weight:800!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #vrOwnerModeToggleR384{
  margin:3px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #vrOwnerModeToggleR384 .vrOwnerModeOptionR384{
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-height:42px!important;
  padding:9px 3px!important;
  font-size:clamp(11px,3vw,14px)!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #vrOwnerModeToggleR384 .vrOwnerModeOptionR384.is-active{
  border:0!important;
  border-bottom:2px solid var(--mode-accent,#c477ff)!important;
  border-radius:0!important;
  color:var(--mode-accent,#c477ff)!important;
  box-shadow:none!important;
}
#roomOwnerHeroOverlayR413,#roomOwnerAvatarOverlayR413{
  display:none!important; /* fail closed until authenticated Room ownership */
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroOverlayR413:not([hidden]),
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarOverlayR413:not([hidden]){
  display:grid!important;
  align-items:center!important;
  justify-items:center!important;
  position:absolute!important;
  z-index:30!important;
  width:40px!important;height:40px!important;
  padding:7px!important;
  border:0!important;
  border-radius:50%!important;
  color:#fff!important;
  background:rgba(7,7,12,.76)!important;
  backdrop-filter:blur(6px)!important;
  -webkit-backdrop-filter:blur(6px)!important;
  box-shadow:0 1px 10px rgba(0,0,0,.35)!important;
  cursor:pointer!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroOverlayR413{
  top:11px!important;right:14px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] .avatarDock{
  position:relative!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarOverlayR413{
  right:-9px!important;bottom:-4px!important;
  width:37px!important;height:37px!important;
  color:#101218!important;
  background:#e7e9ef!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroOverlayR413 svg,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarOverlayR413 svg{
  display:block!important;width:22px!important;height:22px!important;
  pointer-events:none!important;
  max-width:22px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroOverlayR413:focus-visible,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarOverlayR413:focus-visible{
  outline:3px solid var(--mode-accent,#a65eff)!important;outline-offset:2px!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerHeroOverlayR413:disabled,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerAvatarOverlayR413:disabled{
  opacity:.5!important;cursor:wait!important;
}
@media(max-width:350px){
  html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413{gap:8px!important}
  html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 .roomOwnerBtnR183{
    flex-basis:30%!important;
  }
  html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerPrimaryR413 .roomOwnerBtnR183{
    font-size:13px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #roomOwnerHeroOverlayR413,#roomOwnerAvatarOverlayR413{transition:none!important}
}

/* R413 visual QA repair: secondary text-row flex selector must NEVER make
   the old Hero/Avatar tool buttons visible under their image controls. */
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 #roomOwnerHeroR183,
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #roomOwnerSecondaryR413 #roomOwnerAvatarR183{
  display:none!important;
}
html[data-vr-surface="channel"] body[data-vr-channel-owner="1"] #vrSpendCreditProfileR372{
  background:transparent!important;
  border-color:transparent!important;
}
